:root {
    --gold: #c5a059;
    --dark: #2c2c2c;
    /* Couleur blanc cassé / pêche très douce */
    --light-bg: #fdf8f4; 
    --text: #4a4a4a;
    --white: #ffffff;
    --font-titles: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

body, html {
    height: 100%;
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text);
    scroll-behavior: smooth;
    font-weight: 300;
}

.hidden { display: none !important; }

/* Parallax */

/* --- PREMIÈRE SECTION PARALLAX (BAGUE) --- */
.parallax {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    
    /* SOLUTION : On utilise 'contain' au lieu de 'cover' sur les grands écrans */
    /* ou on limite la taille de diffusion */
    background-size: cover; 
    
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('mariage-bague.webp');
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- OPTIMISATION GRANDS ÉCRANS (PC) --- */
@media (min-width: 800px) {
    .parallax {
        /* On empêche l'image de zoomer à l'infini */
        background-size: 750px auto; 
        /* On remplit le reste avec la couleur de fond du site */
        background-color: var(--light-bg); 
    }
}

/* --- DEUXIÈME PARALLAX (CHATEAU) --- */
.parallax-chateau {
    /* Remplacez par votre photo du château */
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('photo-chateau.jpg');
    height: 80vh; /* Un peu plus court que le premier pour l'équilibre */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

/* Désactivation parallax sur mobile pour la fluidité */
@media (max-width: 768px) {
    .parallax-chateau { 
        background-attachment: scroll; 
        height: 100vh; 
    }
}


.caption { text-align: center; color: var(--white); }

.border {
    font-family: var(--font-titles);
    font-size: clamp(2rem, 8vw, 4rem);
    letter-spacing: 5px;
    font-style: italic;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.wedding-date { font-size: 1.2rem; letter-spacing: 4px; text-transform: uppercase; }

/* Formulaire */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    text-align: center;
}

.section-title { font-size: 2rem; margin-bottom: 20px; }

.rsvp-section {
    min-height: 100vh; /* Ajuste selon la taille habituelle de ton formulaire */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre le message verticalement dans cet espace */
    transition: all 0.5s ease;
    max-width: 550px;
    margin: 0 auto 100px;
    background: var(--white);
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
/* L'ombre légère : très diffuse et peu opaque */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 8px rgba(0, 0, 0, 0.02);
    
    /* Pour s'assurer que l'ombre ne déborde pas sur les côtés sur mobile */
    width: 90%;
}

/* Optionnel : un petit effet au survol pour plus d'interactivité */
.rsvp-section:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.field-group { margin-bottom: 25px; text-align: left; }
.field-group label { display: block; margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; color: var(--gold); }

input[type="text"], input[type="number"], textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #eee;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

input:focus { border-bottom-color: var(--gold); }

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: left;
}

.side-by-side { display: flex; gap: 15px; margin-top: 10px; }

.nights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 30px;
    text-align: left;
}

.label-heading { font-weight: 400; text-align: left; margin-bottom: 10px; }

.honeyboom-box {
    background: #fffaf2;
    padding: 25px;
    border: 1px solid #f2e6d5;
    margin-top: 30px;
}

.honey-title { font-family: var(--font-titles); font-size: 1.3rem; margin: 0; }
.subtext { font-size: 0.8rem; color: #888; margin-bottom: 15px; }

.btn-submit {
    background: var(--dark);
    color: white;
    width: 100%;
    padding: 20px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: var(--gold); }

@media (max-width: 480px) {
    .rsvp-section { padding: 30px 20px; }
    .nights-grid { grid-template-columns: 1fr; }
}

/* Espacement formulaire */
.spacer-top {
    margin-top: 35px; /* Espace entre le champ texte et les checkbox */
}

/* Style du long texte d'intro */
.intro-text {
    max-width: 700px;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 50px;
}

.intro-text p {
    margin-bottom: 25px;
    color: var(--text);
    font-size: 1.05rem;
}

.intro-text .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

.highlight {
    text-align: center;
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem !important;
    margin: 40px 0 !important;
}

/* Carte stylisée */
.map-container {
    padding: 60px 0 0 0;
    background-color: var(--white);
    text-align: center;
}

.map-label {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

/* On force la carte en mode "Flat/Epuré" via CSS filter */
iframe {
    filter: grayscale(100%) invert(5%) contrast(1.1);
}

/* --- STYLE HONEYBOOM (Inspi Festival) --- */
.honeyboom-box.boom-style {
    background: linear-gradient(135deg, #fffaf2 0%, #fef3e6 100%);
    padding: 30px;
    border: none;
    border-radius: 40px 10px 40px 10px; /* Forme organique */
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #e2bc8a;
}

.boom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.honey-title {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    color: #8d6e63; /* Brun chaud terreux */
    margin: 0;
}

.boom-location {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #e2bc8a;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
}

.boom-label {
    font-weight: 400;
    color: #5d4037;
}

/* --- SECTION CARTE & ITINERAIRE --- */
.map-container {
    padding: 60px 0 0 0;
    background-color: var(--white);
    text-align: center;
}

iframe {
    filter: grayscale(100%) contrast(1.1) opacity(0.8);
    transition: 0.5s ease;
}

iframe:hover {
    filter: grayscale(0%) opacity(1); /* La carte reprend des couleurs au survol */
}

.itinerary-wrapper {
    padding-top: 40px;
    padding-right: 30px;
    padding-bottom: 80px;
    padding-left: 30px;
    background: var(--white);
}

.btn-itinerary {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--dark);
    text-decoration: none;
    color: var(--dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-itinerary:hover {
    background-color: var(--dark);
    color: var(--white);
}

/* Espacement pour séparer le HoneyBOOM du bouton final */
.submit-separator {
    height: 50px; /* Crée un vide visuel clair */
}

/* --- STYLE HONEYBOOM PSYCHEDELIQUE --- */
.honeyboom-box.boom-anniversary-style {
    position: relative;
    background-image: url('boom-bg-small.webp');
    background-size: cover;
    background-position: center 20%; /* Ajusté pour mieux voir la Lady */
    border-radius: 12px;
    padding: 30px; /* Réduit pour l'effet rectangulaire */
    color: white;
    text-align: center;
    overflow: hidden;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Overlay sombre pour que le texte reste lisible sur l'image */
.boom-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.boom-content {
    position: relative;
    z-index: 2;
}

.honey-title {
    font-family: 'Amatic SC', cursive;
    font-size: 4rem !important; /* Plus grand */
    letter-spacing: 8px; /* Lettres plus espacées */
    margin: 0;
    line-height: 0.8;
    font-weight: 700;
    /* Ombre multi-niveaux pour une lisibilité maximale sur fond complexe */
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8), 0px 0px 20px rgba(0,0,0,0.4);
}

.boom-sub {
    font-family: 'Amatic SC', cursive;
    font-size: 1.4rem;
    letter-spacing: 10px; /* Très étiré */
    text-transform: uppercase;
    margin: 5px 0 0 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.boom-header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin-bottom: 10px;
}

.boom-titles {
    text-align: right; /* Aligne le texte vers le logo pour plus d'harmonie */
}

.boom-logo-main {
    height: 140px; /* Logo un peu plus présent */
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.6));
}


/* Adaptation Mobile : on repasse le logo au-dessus pour la lisibilité sur petit écran */
@media (max-width: 600px) {
    .boom-header-flex { 
        flex-direction: column-reverse; /* Logo en haut, texte en dessous */
        gap: 15px;
    }
    .boom-titles {
        text-align: center;
    }
    .honey-title {
        font-size: 3rem !important;
    }
}

.boom-date {
    font-family: 'Amatic SC', cursive;
    font-size: 2.2rem;
    margin: 10px 0 0 0; /* Rapproché du titre */
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.boom-location {
    font-size: 0.7rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.boom-check {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0; /* Plus compact */
    background: rgba(0, 0, 0, 0.3); /* Fond plus sombre pour la checkbox */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
}

.boom-check:hover {
    background: rgba(255, 255, 255, 0.25);
}

.boom-check label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Animation Sismique */
.quake-effect {
    animation: quake 1.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    /* Optionnel : ajout d'un halo lumineux pendant la basse */
    box-shadow: 0 0 30px rgba(226, 188, 138, 0.6) !important;
}

@keyframes quake {
    10%, 90% { transform: translate3d(-2px, 0, 0) scale(1.01); filter: blur(0.5px); }
    20%, 80% { transform: translate3d(4px, 0, 0) scale(1.02); filter: blur(1px); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0) scale(1.01); filter: blur(0.5px); }
    40%, 60% { transform: translate3d(6px, 0, 0) scale(1.02); filter: blur(1px); }
}

/* On s'assure que la box a une transition pour le retour au calme */
.boom-anniversary-style {
    transition: transform 0.2s, box-shadow 0.4s;
}

/* --- NOUVELLE SECTION PARALLAX FUN --- */
.parallax-fun {
    height: 70vh; /* Moins haut que le premier parallax pour la variété */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Pour que le texte soit lisible sur la photo */
    margin-top: 0px; /* Espace après la carte */
}

/* Définition des images spécifiques pour chaque section fun */
.bg-loaded#fun-photo-1 {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('photo-fun-2.webp'); /* Votre première photo fun */
    height: 100vh; 
}

/* Conteneur principal du compte à rebours */
/* Conteneur principal qui aligne les 3 blocs */
#countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligne le haut des nombres */
    gap: 40px;               /* Espace entre Jours, Heures et Minutes */
    font-family: var(--font-titles);
    color: white;
    padding-bottom: 15px;
}

/* Style de la bordure commune (soulignement) */
#countdown.border {
    border-bottom: 2px solid white;
    display: inline-flex;    /* La bordure s'adapte à la largeur du groupe */
    margin: 0 auto;          /* Centrage horizontal si besoin */
}

/* Chaque colonne (ex: le bloc "Jours") */
.countdown-item {
    display: flex;
    flex-direction: column;  /* Empile le nombre et l'unité */
    align-items: center;     /* CENTRE TOUT HORIZONTALEMENT */
    min-width: 80px;         /* Donne une largeur stable pour éviter les décalages */
}

/* Les chiffres (00) */
.countdown-item span {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Taille adaptative */
    font-weight: bold;
    line-height: 1.1;        /* Réduit l'espace vertical entre chiffre et texte */
    display: block;
}

/* Les labels (Jours, Heures, Minutes) */
.countdown-item small {
    font-family: var(--font-body);
    font-size: 0.75rem;      /* Taille assez petite pour être élégante */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    opacity: 0.85;
    text-align: center;      /* Force le centrage du texte court */
}

/* --- Ajustements Mobile --- */
@media (max-width: 600px) {
    #countdown {
        gap: 20px;
    }
    .countdown-item {
        min-width: 60px;
    }
    .countdown-item span {
        font-size: 2rem;
    }
    .countdown-item small {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
}

/* On ajoute une bordure droite à chaque item sauf le dernier (Minutes) */
.countdown-item:not(:last-child) {
    position: relative;
    
}

/* La ligne séparatrice */
.countdown-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px; /* Positionnée au milieu du gap de 40px */
    top: 20%;
    height: 60%; /* La ligne ne fait pas toute la hauteur pour rester discrète */
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3); /* Blanc très transparent */
}

/* Ajustement du gap du conteneur pour accommoder les séparateurs */
#countdown {
    gap: 20px; /* Réduit car le padding-right compense */
}

/* Texte de la section fun */
.parallax-fun .caption .border {
    font-size: clamp(1.8rem, 6vw, 3.5rem); /* Ajusté pour ces titres */
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.7);
}
.parallax-fun .caption p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Gestion du Parallax sur mobile pour toutes les sections */
@media (max-width: 768px) {
    .parallax, .parallax-chateau, .parallax-fun { 
        background-attachment: scroll; /* Le parallax est désactivé sur mobile */
        height: 100vh; /* Hauteur ajustée pour mobile */
    }
    .parallax-chateau { height: 100vh; }
    .parallax-fun { height: 100vh; margin-top: 0px; }
}

/* --- ÉCRAN DE VERROUILLAGE (TEXTE BLANC + SHADOW) --- */
#access-denied {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100vh;
    background-color: var(--light-bg); /* Fond pêche */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.locked-bg-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.locked-photo-bg {
    width: 100%;
    height: 100%;
     
    background-size: cover;
    background-position: center;
    
    
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black 15%, 
        black 85%, 
        transparent 100%);
    mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black 15%, 
        black 85%, 
        transparent 100%);
    
    opacity: 0.6; 
}

/* Texte en blanc avec ombre portée forte */
.white-shadow { 
    color: white !important; 
    text-shadow: 2px 2px 12px rgba(0,0,0,0.9), 0 0 25px rgba(0,0,0,0.5) !important; 
}

/* Centrage du texte par-dessus */
.locked-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

/* Message d'erreur/instruction en blanc */
.locked-message {
    color: white !important;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.8) !important;
    font-size: 0.9rem;
    margin-top: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Ajustement pour le titre sur l'écran verrouillé */
/* Ajustement de la ligne sous le titre */
.locked-content .border {
    border-color: white !important;
}

.success-message {
    text-align: center;
    padding: 60px 20px;
    background: #fdfdfd;
    border-radius: 10px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.success-message h3 {
    font-family: var(--font-titles);
    color: var(--gold);
    font-size: 2rem;
}

/* Conteneur des boutons */
.calendar-options {
    margin-top: 30px;
    animation: fadeIn 1s ease;
}

.btn-cal {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px; /* Bord arrondi élégant */
    font-size: 0.85rem;
    font-family: var(--font-body);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Bordure très fine */
    background-color: white;
    color: #555; /* Gris doux pour le texte */
}

.btn-cal.google {
    background-color: #fff;
}

.btn-cal.ics {
    color: #333;
}

.btn-cal:hover {
    background-color: #fdf2f0; /* Un rappel du ton pêche très léger */
    border-color: #eec9c2;    /* Ton pêche plus soutenu */
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.btn-cal::before {
    content: '📅';
    margin-right: 8px;
    font-size: 0.9rem;
}





