/* ═══════════════════════════════════════════════════════════════
   DESIGN : PALAIS ROYAL — Bordeaux Profond & Or Souverain
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Montserrat:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ═══════ PALETTE SOUVERAINE ═══════ */
:root {
    /* Fonds — profondeur veloutée */
    --bg-main: #1a0206;
    --bg-deep: #0f0103;
    --bg-card: #24050a;
    --bg-card-hover: #2e070e;
    --bg-velvet: rgba(20, 2, 5, 0.92);

    /* Bordeaux — gamme complète */
    --bordeaux: #7a1525;
    --bordeaux-light: #9e1f35;
    --bordeaux-dark: #4a0a14;
    --bordeaux-glow: rgba(122, 21, 37, 0.35);

    /* Or — gamme royale */
    --gold: #e8c76a;
    --gold-bright: #f5deb3;
    --gold-light: #fff5d6;
    --gold-pale: #faf0d8;
    --gold-deep: #b8963e;
    --gold-shadow: rgba(232, 199, 106, 0.15);
    --gold-glow: rgba(232, 199, 106, 0.4);
    --gold-shimmer: rgba(255, 245, 214, 0.6);

    /* Textes */
    --text-main: #fff8f0;
    --text-cream: #f0e0c8;
    --text-muted: #c4a8a8;
    --text-ghost: rgba(196, 168, 168, 0.5);

    /* Bordures */
    --border: rgba(232, 199, 106, 0.25);
    --border-soft: rgba(232, 199, 106, 0.12);
    --border-hover: rgba(232, 199, 106, 0.8);
    --border-glow: rgba(232, 199, 106, 0.5);

    /* Transitions */
    --ease-luxe: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-silk: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-snap: cubic-bezier(0.68, -0.15, 0.265, 1.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ═══════ CORPS — VELOURS & SATIN ═══════ */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    /* Texture de velours profond avec motif damassé subtil */
    background-image: 
        /* Points de lumière dorée scintillants */
        radial-gradient(circle at 20% 30%, rgba(232, 199, 106, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(232, 199, 106, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(122, 21, 37, 0.15) 0%, transparent 60%),
        /* Motif damassé losangé */
        radial-gradient(circle, rgba(232, 199, 106, 0.18) 1.2px, transparent 1.2px),
        linear-gradient(135deg, rgba(30, 4, 10, 0.85) 25%, transparent 25%), 
        linear-gradient(225deg, rgba(30, 4, 10, 0.85) 25%, transparent 25%), 
        linear-gradient(45deg, rgba(30, 4, 10, 0.85) 25%, transparent 25%), 
        linear-gradient(315deg, rgba(30, 4, 10, 0.85) 25%, transparent 25%);
    background-size: 
        100% 100%, 100% 100%, 100% 100%,
        32px 32px, 32px 32px, 32px 32px, 32px 32px, 32px 32px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Voile de profondeur */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(232, 199, 106, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* ═══════ PARTICULES DORÉES SOUVERAINES ═══════ */
#particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2.5px; height: 2.5px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 
        0 0 8px var(--gold-light),
        0 0 16px var(--gold-glow),
        0 0 32px rgba(232, 199, 106, 0.2);
    animation: floatGold 12s infinite ease-in-out;
}

.particle:nth-child(odd) {
    width: 1.5px; height: 1.5px;
    animation-duration: 15s;
    animation-delay: -3s;
}

.particle:nth-child(3n) {
    width: 3.5px; height: 3.5px;
    background: var(--gold-light);
    animation-duration: 18s;
    animation-delay: -6s;
}

@keyframes floatGold {
    0% { 
        transform: translateY(105vh) translateX(0) scale(0.5) rotate(0deg); 
        opacity: 0; 
    }
    10% { opacity: 0.7; }
    50% { 
        opacity: 0.9; 
        transform: translateY(50vh) translateX(20px) scale(1) rotate(180deg); 
    }
    90% { opacity: 0.4; }
    100% { 
        transform: translateY(-15vh) translateX(-10px) scale(1.3) rotate(360deg); 
        opacity: 0; 
    }
}

/* ═══════ MENU FIXE — CRISTAL ROYAL ═══════ */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: linear-gradient(
        180deg,
        rgba(26, 2, 6, 0.96) 0%,
        rgba(26, 2, 6, 0.88) 60%,
        rgba(26, 2, 6, 0.75) 100%
    );
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    z-index: 1000;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(232, 199, 106, 0.08);
    transition: all 0.5s var(--ease-luxe);
}

nav::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border) 20%,
        var(--gold) 50%,
        var(--border) 80%,
        transparent 100%
    );
}

nav span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--gold-pale) 0%,
        var(--gold-light) 30%,
        var(--gold) 60%,
        var(--gold-deep) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: none;
}

nav span::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--gold-shimmer) 50%,
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 4s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes shimmerText {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(100%); opacity: 0.8; }
}

nav div a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 500;
    transition: all 0.4s var(--ease-luxe);
    margin-left: 2rem;
    position: relative;
    padding: 0.3rem 0;
}

nav div a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: all 0.4s var(--ease-luxe);
    transform: translateX(-50%);
}

nav div a:hover, nav div a.active {
    color: var(--gold-light);
    font-weight: 600;
    text-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(232, 199, 106, 0.15);
    letter-spacing: 0.3em;
}

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

/* ═══════ HERO — AUTEL ROYAL ═══════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    z-index: 3;
}

/* Effet de lumière dramatique derrière la carte */
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(232, 199, 106, 0.06) 0%,
        rgba(122, 21, 37, 0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
    animation: breatheLight 8s infinite ease-in-out;
}

@keyframes breatheLight {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ═══════ CARTE HERO — COFFRET ROYAL ═══════ */
.hero-card-frame {
    background: 
        /* Reflet de surface */
        linear-gradient(
            165deg,
            rgba(255, 245, 214, 0.03) 0%,
            transparent 40%,
            transparent 60%,
            rgba(122, 21, 37, 0.15) 100%
        ),
        /* Profondeur veloutée */
        radial-gradient(ellipse at 30% 20%, rgba(60, 10, 20, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(20, 2, 5, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, #2a060c 0%, #1a0306 50%, #0f0103 100%);
    border: 2.5px double var(--gold);
    box-shadow: 
        /* Ombre profonde */
        0 30px 80px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(232, 199, 106, 0.1),
        /* Lueur dorée externe pulsante */
        0 0 60px rgba(232, 199, 106, 0.08),
        0 0 120px rgba(232, 199, 106, 0.04),
        /* Lueur interne */
        inset 0 0 0 3px rgba(15, 1, 3, 0.8),
        inset 0 0 50px rgba(232, 199, 106, 0.06),
        inset 0 -30px 60px rgba(0, 0, 0, 0.4);
    padding: 5rem 4rem;
    max-width: 820px;
    width: 100%;
    position: relative;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.6s var(--ease-luxe);
}

.hero-card-frame:hover {
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(232, 199, 106, 0.15),
        0 0 80px rgba(232, 199, 106, 0.12),
        0 0 160px rgba(232, 199, 106, 0.06),
        inset 0 0 0 3px rgba(15, 1, 3, 0.8),
        inset 0 0 70px rgba(232, 199, 106, 0.1),
        inset 0 -30px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Bordure intérieure ornée */
.hero-card-frame::before {
    content: "";
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px solid rgba(232, 199, 106, 0.15);
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

/* Coins ornés — motifs floraux subtils */
.hero-card-frame::after {
    content: "✦";
    position: absolute;
    top: 12px; left: 12px;
    font-size: 0.7rem;
    color: var(--gold);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Coins ornés supplémentaires via pseudo */
.hero-card-frame .corner-tr,
.hero-card-frame .corner-bl,
.hero-card-frame .corner-br {
    position: absolute;
    font-size: 0.7rem;
    color: var(--gold);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Ligne de séparation élégante */
.hero-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--gold) 30%,
        var(--gold-light) 50%,
        var(--gold) 70%,
        transparent 100%
    );
    margin: 1.5rem auto;
    position: relative;
}

.hero-divider::before,
.hero-divider::after {
    content: "◆";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    color: var(--gold);
    opacity: 0.6;
}

.hero-divider::before { left: -15px; }
.hero-divider::after { right: -15px; }

/* ═══════ BADGE — SCEAU ROYAL ═══════ */
.badge {
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-light);
    border: 1.5px solid var(--border);
    padding: 0.7rem 2rem;
    margin-bottom: 2.5rem;
    background: 
        linear-gradient(135deg, rgba(122, 21, 37, 0.5) 0%, rgba(60, 10, 20, 0.3) 100%);
    border-radius: 50px;
    box-shadow: 
        0 0 25px rgba(232, 199, 106, 0.1),
        inset 0 1px 0 rgba(255, 245, 214, 0.1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    transition: all 0.4s var(--ease-luxe);
}

.badge::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 245, 214, 0.15),
        transparent
    );
    animation: badgeShimmer 5s infinite ease-in-out;
}

@keyframes badgeShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.badge:hover {
    border-color: var(--gold);
    box-shadow: 
        0 0 35px rgba(232, 199, 106, 0.2),
        inset 0 1px 0 rgba(255, 245, 214, 0.15);
    letter-spacing: 0.4em;
}

/* ═══════ NOM INVITÉ — CALLIGRAPHIE ═══════ */
.guest-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.8vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-style: italic;
    opacity: 0.9;
}

/* ═══════ SOUS-TITRE — POÉSIE ═══════ */
.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 1.8rem;
    letter-spacing: 0.08em;
    text-shadow: 0 0 30px rgba(232, 199, 106, 0.15);
}

/* ═══════ TITRE PRINCIPAL — OR SOUVERAIN ═══════ */
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.03em;
    margin-bottom: 1.2rem;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        var(--gold-pale) 15%,
        var(--gold-light) 35%,
        var(--gold) 55%,
        var(--gold-deep) 75%,
        #8a6a20 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: 
        drop-shadow(0 12px 24px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 40px rgba(232, 199, 106, 0.1));
    position: relative;
}

/* Effet de brillance sur le titre */
.main-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 245, 214, 0.4) 50%,
        transparent 60%,
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes titleShine {
    0%, 100% { background-position: -200% center; }
    50% { background-position: 200% center; }
}

.main-title span {
    font-size: 0.32em;
    display: block;
    margin-top: 0.5em;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5em;
    font-weight: 500;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    text-transform: uppercase;
    opacity: 0.85;
}

/* ═══════ LIGNE DATE ═══════ */
.date-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* ═══════ COMPTE À REBOURS — HORLOGE ROYALE ═══════ */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: 
        linear-gradient(
            145deg,
            rgba(36, 5, 10, 0.9) 0%,
            rgba(20, 2, 5, 0.95) 100%
        );
    border: 1px solid var(--border-soft);
    padding: 1.6rem 1.8rem;
    min-width: 95px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(232, 199, 106, 0.05),
        0 0 0 1px rgba(232, 199, 106, 0.03);
    transition: all 0.5s var(--ease-luxe);
    position: relative;
    overflow: hidden;
}

/* Lueur pulsante sur les items */
.countdown-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--gold) 50%,
        transparent 100%
    );
    opacity: 0.3;
    animation: pulseLine 3s infinite ease-in-out;
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

.countdown-item:hover {
    border-color: var(--gold);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(232, 199, 106, 0.1),
        inset 0 1px 0 rgba(232, 199, 106, 0.1);
}

.countdown-item .number {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    line-height: 1;
    text-shadow: 0 0 20px rgba(232, 199, 106, 0.2);
    transition: all 0.3s var(--ease-luxe);
}

.countdown-item:hover .number {
    color: var(--gold-pale);
    text-shadow: 0 0 30px rgba(232, 199, 106, 0.35);
}

.countdown-item .label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-top: 0.7rem;
    display: block;
    font-weight: 500;
    opacity: 0.8;
}

/* Séparateurs entre les items */
.countdown-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    opacity: 0.4;
    font-weight: 300;
    padding-top: 0.5rem;
}

/* ═══════ BOUTON — JOYAU SOUVERAIN ═══════ */
.btn-submit {
    display: inline-block;
    width: 100%;
    max-width: 420px;
    padding: 1.3rem 2rem;
    background: 
        linear-gradient(
            135deg,
            var(--bordeaux) 0%,
            var(--bordeaux-dark) 50%,
            #3a0812 100%
        );
    color: var(--gold-light);
    border: 1.5px solid var(--border);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: all 0.5s var(--ease-luxe);
    text-decoration: none;
    text-align: center;
    box-shadow: 
        0 10px 35px rgba(122, 21, 37, 0.5),
        0 0 0 1px rgba(232, 199, 106, 0.05),
        inset 0 1px 0 rgba(255, 245, 214, 0.08);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

/* Effet de lumière traversante */
.btn-submit::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 245, 214, 0.12) 50%,
        transparent 100%
    );
    transition: left 0.7s var(--ease-luxe);
}

/* Bordure lumineuse au hover */
.btn-submit::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        var(--gold) 0%,
        transparent 30%,
        transparent 70%,
        var(--gold) 100%
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s var(--ease-luxe);
    filter: blur(8px);
}

.btn-submit:hover {
    background: 
        linear-gradient(
            135deg,
            var(--bordeaux-light) 0%,
            var(--bordeaux) 50%,
            var(--bordeaux-dark) 100%
        );
    border-color: var(--gold);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 
        0 18px 45px rgba(122, 21, 37, 0.6),
        0 0 40px rgba(232, 199, 106, 0.15),
        inset 0 1px 0 rgba(255, 245, 214, 0.12);
    letter-spacing: 0.35em;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover::after {
    opacity: 0.6;
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(122, 21, 37, 0.4);
}

/* ═══════ FOOTER — BASE SOUVERAINE ═══════ */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-soft);
    margin-top: 5rem;
    background: 
        linear-gradient(
            180deg,
            rgba(36, 5, 10, 0.6) 0%,
            rgba(15, 1, 3, 0.9) 100%
        );
    position: relative;
    z-index: 3;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border) 30%,
        var(--gold) 50%,
        var(--border) 70%,
        transparent 100%
    );
}

.footer-glam {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--gold-light);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(232, 199, 106, 0.15);
}

footer p {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.7;
}

/* ═══════ ANIMATIONS GLOBALES ═══════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Classes d'animation */
.animate-fade-up {
    animation: fadeInUp 1s var(--ease-luxe) forwards;
}

.animate-fade {
    animation: fadeIn 1.2s var(--ease-luxe) forwards;
}

.animate-scale {
    animation: scaleIn 0.8s var(--ease-luxe) forwards;
}

.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }
.delay-4 { animation-delay: 0.8s; opacity: 0; }
.delay-5 { animation-delay: 1s; opacity: 0; }
.delay-6 { animation-delay: 1.2s; opacity: 0; }

/* ═══════ SCROLLBAR LUXE ═══════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--bordeaux-dark) 0%,
        var(--bordeaux) 50%,
        var(--bordeaux-dark) 100%
    );
    border-radius: 4px;
    border: 1px solid rgba(232, 199, 106, 0.15);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--bordeaux) 0%,
        var(--bordeaux-light) 50%,
        var(--bordeaux) 100%
    );
    border-color: var(--border);
}

/* ═══════ SÉLECTION ═══════ */
::selection {
    background: rgba(232, 199, 106, 0.25);
    color: var(--gold-pale);
    text-shadow: 0 0 10px var(--gold-glow);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
    nav {
        padding: 0.9rem 1.2rem;
    }

    nav span {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
    }

    nav div a {
        margin-left: 1rem;
        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero-card-frame {
        padding: 2.5rem 1.5rem;
        border-radius: 12px;
    }

    .countdown {
        gap: 0.8rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 1rem 0.8rem;
    }

    .countdown-item .number {
        font-size: 1.8rem;
    }

    .countdown-separator {
        display: none;
    }

    .btn-submit {
        padding: 1.1rem 1.5rem;
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.8rem 0.5rem;
    }

    .countdown-item .number {
        font-size: 1.5rem;
    }

    .countdown-item .label {
        font-size: 0.5rem;
        letter-spacing: 0.15em;
    }

    .hero-card-frame {
        padding: 2rem 1rem;
    }
}

/* ═══════ EFFET DE GRAIN SUBTIL (optionnel, à activer avec une classe sur body) ═══════ */
.grain::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════════════════════════
   SUPPLÉMENT HAUTE JOAILLERIE — PALAIS ROYAL
   ═══════════════════════════════════════════════════════════════ */

/* 1. Effet de lueur dynamique sous le curseur (Spotlight royal) */
.hero-card-frame {
    overflow: hidden;
}

.hero-card-frame::before {
    content: "";
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 199, 106, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.3s, height 0.3s;
    z-index: 1;
}

/* 2. Étoiles étincelantes aux coins du cadre */
.hero-card-frame .corner-tr::before,
.hero-card-frame::after {
    animation: sparkleCorner 3s infinite ease-in-out;
}

@keyframes sparkleCorner {
    0%, 100% { opacity: 0.3; transform: scale(1); filter: drop-shadow(0 0 2px var(--gold)); }
    50% { opacity: 1; transform: scale(1.4); filter: drop-shadow(0 0 8px var(--gold-bright)); }
}

/* 3. Effet de battement de cœur léger sur les chiffres du compte à rebours */
.countdown-item .number {
    animation: numberPulse 4s infinite ease-in-out;
}

@keyframes numberPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(232, 199, 106, 0.2); }
    50% { text-shadow: 0 0 35px rgba(232, 199, 106, 0.4), 0 0 10px rgba(255, 245, 214, 0.6); }
}

/* 4. Effet de survol ultra-luxueux sur les séparateurs de texte */
.hero-divider {
    transition: all 0.5s var(--ease-luxe);
}
.hero-card-frame:hover .hero-divider {
    width: 180px;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

/* 5. Effet de flou de profondeur (Glassmorphism poussé) sur les badges */
.badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 6. Liseré lumineux continu qui tourne autour du bouton au survol */
@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-submit {
    isolation: isolate;
}

.btn-submit::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg at 50% 50%, var(--gold-deep) 0deg, var(--gold-light) 90deg, var(--bordeaux) 180deg, var(--gold-light) 270deg, var(--gold-deep) 360deg);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderRotate 4s linear infinite;
}

.btn-submit:hover::after {
    opacity: 0.7;
}