/* ============================================
   PAGE DE GARDE (LANDING) - DESIGN PREMIUM
   ============================================ */

/* ============================================
   VARIABLES CSS - PALETTE COULEURS
   ============================================ */
:root {
    /* ============================================
       STYLE A : WARM & ELEGANT (Chaud & Élégant)
       ACTIF PAR DÉFAUT - TON MARRON
       ============================================ */
    
    /* Accent - Marron profond et élégant */
    --accent: #8B6F47;
    --accent-hover: #A0825F;
    --accent-contrast: #FFFFFF;
    
    /* Texte - Anthracite pour contraste */
    --text-strong: #1A1A1A;
    --text: #2C2C2C;
    --text-muted: #4A4A4A;
    
    /* Glass card - Beige marron chaud */
    --glass-bg: rgba(250, 242, 230, 0.72);
    --glass-border: rgba(139, 111, 71, 0.3);
    
    /* Overlay - Teinte marron subtile et chaude */
    --overlay: linear-gradient(
        to bottom,
        rgba(245, 235, 220, 0.25) 0%,
        rgba(240, 228, 210, 0.18) 50%,
        rgba(245, 235, 220, 0.22) 100%
    );
    
    /* Image filters - Warm avec teinte marron */
    --image-filter: contrast(1.2) saturate(1.25) brightness(1.08) hue-rotate(-8deg) sepia(0.1);
    --image-filter-webkit: contrast(1.2) saturate(1.25) brightness(1.08) hue-rotate(-8deg) sepia(0.1);
    
    /* Typographie */
    --font-handwriting: 'Dancing Script', cursive;
    --font-elegant: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* ============================================
       STYLE B : CINEMATIC DARK (Cinématique Sombre)
       Pour activer : décommentez ce bloc et commentez Style A
       ============================================ */
    /*
    --accent: #D4AF37;
    --accent-hover: #E8C547;
    --accent-contrast: #FFFFFF;
    
    --text-strong: #F5F5F0;
    --text: #E8E8E0;
    --text-muted: #D0D0C8;
    
    --glass-bg: rgba(250, 248, 245, 0.78);
    --glass-border: rgba(212, 175, 55, 0.35);
    
    --overlay: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.22) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.18) 100%
    );
    
    --image-filter: contrast(1.25) saturate(1.15) brightness(0.95) hue-rotate(2deg);
    --image-filter-webkit: contrast(1.25) saturate(1.15) brightness(0.95) hue-rotate(2deg);
    
    --font-handwriting: 'Dancing Script', cursive;
    --font-elegant: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - Image de fond en plein écran */
body {
    min-height: 100vh;
    width: 100%;
    position: relative;
    font-family: var(--font-body);
    color: var(--text);
    overflow-x: hidden;
    /* Image de fond - AX5.png en plein écran */
    background-image: url('IMAGES/AX5.png');
    background-size: cover;
    /* Position ajustée pour bien voir les visages - centre verticalement */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Color grading CSS - utilise les variables du style actif */
    filter: var(--image-filter);
    -webkit-filter: var(--image-filter-webkit);
}

/* Overlay - utilise la variable du style actif (warm ou cinematic) */
.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 0;
    pointer-events: none;
}

/* Sélecteur de langue discret */
.landing-language-selector {
    position: fixed;
    top: var(--spacing-md, 1.5rem);
    right: var(--spacing-md, 1.5rem);
    display: flex;
    gap: var(--spacing-xs, 0.5rem);
    z-index: 10;
}

.landing-lang-btn {
    padding: var(--spacing-xs, 0.5rem) var(--spacing-md, 1.5rem);
    border: 2px solid var(--accent);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--accent);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.landing-lang-btn:hover {
    background: var(--accent);
    color: var(--accent-contrast);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.4);
    border-color: var(--accent-hover);
}

.landing-lang-btn.active {
    background: var(--accent);
    color: var(--accent-contrast);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.4);
}

.landing-lang-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Conteneur principal */
.landing-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg, 2rem);
}

/* Contenu centré - Glass card premium minimaliste et professionnel */
.landing-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    /* Glass card premium - utilise les variables du style actif */
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: 28px;
    padding: 4rem 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback si backdrop-filter non supporté */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .landing-content {
        /* Utilise la couleur de base du glass-bg mais plus opaque (beige marron) */
        background: rgba(250, 242, 230, 0.92);
    }
}

/* Noms des mariés - Design épuré et professionnel */
.landing-couple-names {
    font-family: var(--font-handwriting);
    font-size: 5.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
    /* Ombre élégante pour faire "pop" le marron */
    text-shadow: 0 3px 12px rgba(139, 111, 71, 0.4),
                 0 2px 6px rgba(0, 0, 0, 0.25),
                 0 1px 3px rgba(0, 0, 0, 0.15);
    letter-spacing: 5px;
    line-height: 1.2;
    position: relative;
}

/* Messages romantiques - Style élégant et poétique */
.landing-messages {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.landing-message-line {
    font-family: var(--font-elegant);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-strong);
    font-style: italic;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25),
                 0 1px 2px rgba(255, 255, 255, 0.9);
    opacity: 0.9;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.landing-message-line:nth-child(1) {
    animation-delay: 0.2s;
}

.landing-message-line:nth-child(2) {
    animation-delay: 0.4s;
}

.landing-message-line:nth-child(3) {
    animation-delay: 0.6s;
}


/* Bouton CTA principal - Design minimaliste et discret */
.landing-cta-btn {
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    /* Ombre premium avec couleur accent marron */
    box-shadow: 0 4px 16px rgba(139, 111, 71, 0.4),
                0 2px 8px rgba(139, 111, 71, 0.3),
                0 0 0 1px rgba(139, 111, 71, 0.2);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.landing-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.landing-cta-btn:hover::before {
    left: 100%;
}

.landing-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 111, 71, 0.6),
                0 4px 12px rgba(139, 111, 71, 0.5),
                0 0 0 1px rgba(139, 111, 71, 0.3);
}

.landing-cta-btn:active {
    transform: translateY(-1px);
}

.landing-cta-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.landing-cta-btn:hover .cta-arrow {
    transform: translateX(5px);
}



/* Responsive */
@media (max-width: 768px) {
    .landing-language-selector {
        top: var(--spacing-sm, 1rem);
        right: var(--spacing-sm, 1rem);
    }

    .landing-lang-btn {
        padding: var(--spacing-xs, 0.5rem) var(--spacing-sm, 1rem);
        font-size: 0.85rem;
    }

    .landing-content {
        padding: var(--spacing-lg, 2rem) var(--spacing-md, 1.5rem);
        max-width: 90%;
    }

    .landing-couple-names {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        letter-spacing: 3px;
    }

    .landing-messages {
        margin-bottom: 2rem;
        gap: 0.7rem;
    }

    .landing-message-line {
        font-size: 1rem;
    }

    .landing-cta-btn {
        width: auto;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .landing-content {
        padding: 2.5rem 1.5rem;
    }

    .landing-couple-names {
        font-size: 3rem;
        margin-bottom: 1.2rem;
        letter-spacing: 2px;
    }

    .landing-messages {
        margin-bottom: 1.5rem;
        gap: 0.6rem;
    }

    .landing-message-line {
        font-size: 0.9rem;
    }

    .landing-cta-btn {
        font-size: 0.9rem;
        padding: 0.85rem 1.75rem;
    }
}

/* Tablettes en mode paysage */
@media (min-width: 481px) and (max-width: 768px) {
    .landing-content {
        padding: 3rem 2rem;
    }

    .landing-couple-names {
        font-size: 4.5rem;
    }

    .landing-cta-btn {
        width: auto;
        padding: 1rem 2.5rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .landing-content {
        padding: 2rem 1.25rem;
    }

    .landing-couple-names {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .landing-message-line {
        font-size: 0.85rem;
    }

    .landing-cta-btn {
        font-size: 0.85rem;
        padding: 0.75rem 1.5rem;
        padding: 0.85rem 1.8rem;
    }
}

