:root {
    --bordeaux: #7B1E4B;
    --orange: #E8541A;
    --ocre: #D97706;
    --gold: #C5A059;
    --dark: #121212;
    --light: #FAF7F2;
    --white: #ffffff;
    --transition-speed: 0.6s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1), filter 3s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Légèrement plus sombre pour faire ressortir les couleurs */
    z-index: -1;
}

#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    pointer-events: none;
    opacity: 0;
    /* Effet Aurora : Un grand halo central */
    background: radial-gradient(circle at center, var(--color, #64ffda) 0%, transparent 80%);
    backdrop-filter: blur(120px) saturate(1.5);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- VIDEO BACKGROUND --- */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-bg-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* --- TYPOGRAPHIE --- */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: 0.4s ease;
    color: white;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 50px;
    color: var(--dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

/* --- MOBILE NAV TOGGLE --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BUTTONS --- */
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
    border: 2px solid var(--gold);
}

.btn-gold:hover {
    background: transparent;
    color: var(--gold);
}

/* --- SECTIONS --- */
section {
    padding: 120px 50px;
    max-width: 1100px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.section-tag {
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 40px;
    color: var(--bordeaux);
    line-height: 1.2;
}

/* --- FOOTER --- */
footer {
    background: #000;
    padding: 80px 50px;
    color: #888;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    border-bottom: 1px solid #222;
    padding-bottom: 60px;
}

.footer-logo {
    color: white;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- UTILITIES --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease forwards;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.4);
        /* Assure la visibilité du menu */
    }

    nav.scrolled {
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links {
        display: none !important;
        /* Cache les liens textes sur mobile */
    }

    .mobile-nav-toggle {
        display: block !important;
        /* FORCE l'affichage du burger */
        color: white !important;
        background: #E8541A !important;
        /* Orange RMD pour visibilité MAX */
        padding: 10px 15px !important;
        border-radius: 10px !important;
        z-index: 2000 !important;
        position: relative !important;
        font-size: 1.8rem !important;
    }

    nav.scrolled .mobile-nav-toggle {
        color: var(--dark) !important;
        background: rgba(0, 0, 0, 0.05) !important;
    }

    .hero h1 {
        font-size: 3.2rem !important;
        word-break: break-word;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    section {
        padding: 50px 20px !important;
        margin: 30px 15px !important;
        border-radius: 25px !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* Grille et Flex pour mobile */
    div[style*="display: flex"] {
        flex-direction: column !important;
    }

    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

.nav-overlay .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.nav-overlay .nav-links a {
    font-size: 2rem;
    color: white;
    font-family: 'Playfair Display', serif;
}