/* ============================================
   STYLES GÉNÉRAUX - MISSFAC
   Palette : Blanc (#FFFFFF), Rouge (#C8102E), Noir (#1A1A1A)
   Police principale : Garamond
   ============================================ */

/* Police chargée dans le header via Google Fonts ; fallbacks système ci-dessous. */

/* ---------- VARIABLES CSS ---------- */
:root {
    --primary-red: #C8102E;
    --primary-red-dark: #A00D24;
    --primary-red-light: #F5E6E8;
    --black: #1A1A1A;
    --black-light: #2C2C2C;
    --white: #FFFFFF;
    --gray-light: #F8F6F5;
    --gray: #E0DCD9;
    --gray-dark: #6B6561;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(200, 16, 46, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'EB Garamond', 'Times New Roman', serif;
    --font-secondary: 'EB Garamond', Georgia, serif;
    --radius: 12px;
    --radius-sm: 6px;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-red-dark);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- TYPOGRAPHIE GARAMOND ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
}

h1 { font-size: 3.2rem; letter-spacing: -0.02em; }
h2 { font-size: 2.4rem; letter-spacing: -0.01em; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--black-light);
    margin-bottom: 1.2rem;
}

.text-garamond {
    font-family: var(--font-primary);
}

.text-red { color: var(--primary-red); }
.text-white { color: var(--white); }
.text-black { color: var(--black); }
.text-center { text-align: center; }
.text-justify { text-align: justify; }

/* ---------- BOUTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ---------- HEADER & NAVIGATION ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    padding: 0 24px;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* LOGO - Position parfaite et bien visible */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo img:hover {
    transform: scale(1.03);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--black);
    letter-spacing: -0.5px;
}

.logo-text .brand span {
    color: var(--primary-red);
}

.logo-text .subtitle {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation principale */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--black);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 60%;
}

.nav a:hover {
    color: var(--primary-red);
    background: rgba(200, 16, 46, 0.06);
}

.nav a.active {
    color: var(--primary-red);
    background: rgba(200, 16, 46, 0.08);
}

/* Bouton CTA dans le header */
.nav .btn-nav {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-left: 8px;
}

.nav .btn-nav::after {
    display: none;
}

.nav .btn-nav:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    color: var(--white) !important;
}

/* Menu mobile - Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- SECTION HERO (ACCUEIL) ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(200, 16, 46, 0.08);
    color: var(--primary-red);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(200, 16, 46, 0.12);
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--primary-red);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(200, 16, 46, 0.2);
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--black-light);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-tags span {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
    border: 1px solid var(--gray);
    box-shadow: var(--shadow);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-quote {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--gray);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gray-dark);
    font-family: var(--font-primary);
}

.hero-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--primary-red);
    font-style: normal;
    margin-right: 6px;
}

/* ---------- SECTION ACCÈS RAPIDES ---------- */
.quick-access {
    padding: 60px 24px;
    background: var(--white);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.quick-access-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--black);
    border: 1px solid transparent;
}

.quick-access-item:hover {
    background: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-red);
}

.quick-access-item .icon {
    font-size: 1.4rem;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 24px 30px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .hero h1 { font-size: 3.4rem; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px 24px;
        gap: 4px;
        border-bottom: 2px solid var(--primary-red);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav a {
        width: 100%;
        padding: 12px 16px;
        text-align: center;
        font-size: 1rem;
    }

    .nav .btn-nav {
        margin-left: 0;
        margin-top: 8px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .logo-text .brand {
        font-size: 1.2rem;
    }

    .logo img {
        height: 44px;
    }

    .header-inner {
        height: 68px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-tags span {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .logo-text .brand {
        font-size: 1rem;
    }

    .logo-text .subtitle {
        font-size: 0.6rem;
    }

    .logo img {
        height: 38px;
    }
}

/* ============================================
   HEADER - VERSION PRO
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.header.scrolled {
    box-shadow: 0 4px 35px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.99);
}

.header .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.logo img:hover {
    filter: drop-shadow(0 4px 12px rgba(200, 16, 46, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--black);
    letter-spacing: -0.5px;
}

.logo-text .brand span {
    color: var(--primary-red);
}

.logo-text .subtitle {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-dark);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: -2px;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--black);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
}

.nav a i {
    margin-right: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav a:hover::after,
.nav a.active::after {
    width: 60%;
}

.nav a:hover {
    color: var(--primary-red);
    background: rgba(200, 16, 46, 0.05);
}

.nav a:hover i {
    transform: translateY(-2px);
    color: var(--primary-red);
}

.nav a.active {
    color: var(--primary-red);
    background: rgba(200, 16, 46, 0.08);
}

.nav a.active i {
    color: var(--primary-red);
}

/* ===== BOUTON CTA ===== */
.nav .btn-nav {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-left: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.82rem;
    border: none;
    transition: all 0.3s ease;
}

.nav .btn-nav::after {
    display: none;
}

.nav .btn-nav i {
    margin-right: 8px;
    color: var(--white);
}

.nav .btn-nav:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200, 16, 46, 0.35);
    color: var(--white) !important;
}

.nav .btn-nav:hover i {
    color: var(--white);
    transform: none;
}

/* ===== MENU TOGGLE (Mobile) ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.menu-toggle:hover span {
    background: var(--primary-red);
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-red);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary-red);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .nav a {
        font-size: 0.82rem;
        padding: 6px 12px;
    }
    
    .nav .btn-nav {
        padding: 8px 18px;
        font-size: 0.78rem;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px 30px 30px;
        gap: 4px;
        border-bottom: 3px solid var(--primary-red);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        align-items: stretch;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav a {
        width: 100%;
        padding: 12px 20px;
        text-align: left;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
        border-left: 3px solid transparent;
    }

    .nav a::after {
        display: none;
    }

    .nav a:hover,
    .nav a.active {
        border-left-color: var(--primary-red);
        background: rgba(200, 16, 46, 0.05);
    }

    .nav a i {
        width: 24px;
        text-align: center;
        margin-right: 12px;
    }

    .nav .btn-nav {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
        justify-content: center;
        padding: 14px;
        font-size: 0.9rem;
    }

    .header .container-fluid {
        padding: 0 20px;
    }
    
    .header-inner {
        height: 70px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .logo-text .brand {
        font-size: 1.2rem;
    }
    
    .logo-text .subtitle {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .header .container-fluid {
        padding: 0 15px;
    }
    
    .header-inner {
        height: 62px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo img {
        height: 38px;
    }
    
    .logo-text .brand {
        font-size: 1rem;
    }
    
    .logo-text .subtitle {
        font-size: 0.5rem;
        letter-spacing: 1.5px;
    }
    
    .nav {
        top: 62px;
        padding: 15px 20px 25px;
        max-height: calc(100vh - 62px);
    }
    
    .nav a {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
}