/* ==============================
   Variables globales
   ============================== */
:root {
    --main-color: #111111;
    /* Couleur principale (texte, boutons, titres) */
    --accent-color: #c9ab96;
    /* Dore de base (fallback) */
    --gold-gradient: linear-gradient(145deg, #c9ab96 0%, #c9ab96 50%, #c9ab96 100%);
    --gold-gradient-hover: linear-gradient(145deg, #c9ab96 0%, #c9ab96 50%, #c9ab96 100%);
    --text-color: #111111;
    /* Couleur générale du texte */
    --background-image: url("../img/couleurSable1.jpg");
    /* Fond principal du site */
    --nav-bg: #c9ab96;
    /* Navbar doree metallique */
    --nav-text-color: #ffffff;
    /* Couleur texte navbar */
    padding: 0;

}

/* Scroll fluide sur toute la page */
html {
    scroll-behavior: smooth;
}

html.overlay-open,
body.overlay-open {
    overflow: hidden;
    height: 100%;
}

body.overlay-open {
    position: fixed;
    width: 100%;
    touch-action: none;
}

/* ==============================
   Ombre légère mais plus visible pour tout le texte
   ============================== */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
nav a,
.name,
#parent-name,
#left-name,
#right-name {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}


/* ==============================
       Overlay full screen
   ============================== */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* On utilise dvh pour Safari mobile */
    height: 100dvh;
    /* Fallback pour les anciens navigateurs */
    min-height: -webkit-fill-available;

    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/couleurSable1.jpg");
    background-size: cover;
    background-position: center;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
    transition: opacity 0.8s ease;
}

/* Image en background */
#overlay .overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    /* garde proportions et couvre tout */
    z-index: -1;
    /* derrière le texte */
}

/* Contenu centré */
.overlay-content {
    text-align: center;
    color: #111111;
    z-index: 1;
}

.overlay-card {
    width: min(760px, 88vw);
    background: rgba(255, 255, 255, 0.86);
    border: 8px solid #c9ab96;
    border-radius: 0;
    box-shadow: 0 0 0 4px #c9ab96, 0 16px 42px rgba(255, 255, 255, 0.808), 0 0 50px rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(4px);
    padding: 4.2rem 2.2rem 3.2rem;
    position: relative;
    overflow: hidden;
}

.overlay-logo {
    width: min(560px, 78vw);
    height: auto;
    display: block;
    margin: 0 auto 1.8rem;
}

.overlay-card #see-invite {
    margin-top: 0.8rem;
    font-size: 2.4rem;
    padding: 1.2rem 1.6rem;
}

.overlay-content h1 {
    font-family: "Luxurious Script", cursive;
    font-size: 6rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
    .overlay-card {
        border-width: 10px;
        padding: 2.6rem 1.2rem 2.2rem;
    }

    .overlay-logo {
        width: min(460px, 84vw);
        margin-bottom: 1.4rem;
    }
}


/* ==============================
   Global
   ============================== */
body {
    margin: 0;
    background-color: transparent;
    font-family: "Cormorant", serif;
    color: var(--text-color);
    text-align: center;
    line-height: 1.6;
    padding: 0;
    font-weight: 500;
}


h1,
h2 {
    font-family: "Parisienne", cursive;
    font-weight: 400;
    margin: 0.5rem 0;
    color: var(--main-color);
}

h1 {
    font-size: 10rem;
}

h2 {
    font-size: 7rem;
    font-weight: bolder;
}

#home {
    font-family: "Luxurious Script", cursive;
    font-weight: 400;
}

p {
    margin: 0.8rem 0;
    font-size: 2.9rem;
}

/* ==============================
   Header
   ============================== */
header {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
    background-image: var(--background-image);
    background-size: cover;
}

.top-card {
    width: min(760px, 100%);
    background:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url("../img/couleurSable1.jpg");
    background-size: cover;
    background-position: center;
    border: 8px solid #c9ab96;
    box-shadow: 0 0 0 4px #c9ab96, 0 16px 42px rgba(0, 0, 0, 0.28), 0 0 44px rgba(255, 255, 255, 0.72);
    padding: 1.8rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* ==============================
   Navbar
   ============================== */
nav {
    background: var(--nav-bg);
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.4rem 2rem;
    /* Hauteur navbar */
    position: relative;
    transition: all 0.3s ease;
    /* transition douce sur tous les changements */
    border: 1px solid #c9ab96;
    box-shadow: inset 0 0 0 1px #c9ab96;
}

nav a {
    color: var(--nav-text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 2.9rem;
    /* Texte 3x plus gros */
}



nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: inset 0 0 0 1px #c9ab96, 0 4px 12px rgba(0, 0, 0, 0.2);
    /* petit effet visuel */
}

/* ==============================
   Sections
   ============================== */
section {
    padding: 4rem 2rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background-image: var(--background-image);
    background-size: cover;
    /* l’image sera entièrement visible */
    background-repeat: no-repeat;
    /* pas de répétition */
    background-position: center;
    /* centrée dans la section */
    scroll-margin-top: 100px;
    /* marge pour le scroll */
}

section+section {
    border-top: 6px solid #9a8473;
}

#mairie,
#houppa,
#reponse {
    display: flex;
    justify-content: center;
    padding: 7rem 3.5rem;
}

.houppa-card {
    width: min(1100px, 100%);
    background:
        linear-gradient(rgba(255, 255, 255, 0.836), rgba(255, 255, 255, 0.842)),
        url("../img/couleurSable1.jpg");
    background-size: cover;
    background-position: center;
    border: 8px solid #c9ab96;
    border-radius: 0;
    box-shadow: 0 0 0 4px #c9ab96, 0 16px 42px rgba(255, 255, 255, 0.808), 0 0 50px rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(4px);
    padding: 7rem 3rem;
    color: #111111;
    position: relative;
    overflow: hidden;
}

#houppa .houppa-card {
    border-radius: 500px;
    padding-top: 10.5rem;
    padding-bottom: 10.5rem;
}

#houppa .event-title {
    font-family: "Luxurious Script", cursive;
    font-size: 10rem;
    font-weight: 400;
    line-height: 1;
    color: #9a8473;
    text-shadow: none;
}

#mairie .event-title {
    font-family: "Luxurious Script", cursive;
    font-size: 10rem;
    font-weight: 400;
    line-height: 1;
    color: #9a8473;
    text-shadow: none;
}

#mairie .mairie-script {
    color: #9a8473;
    font-family: "Luxurious Script", cursive;
    font-size: 1.35em;
    line-height: 1;
}


#mairie .mairie-card {
    text-align: center;
}

#mairie .mairie-flower-wrap {
    display: flex;
    justify-content: center;
    margin: 0.8rem 0 1.8rem;
}

#mairie .mairie-flower {
    width: min(270px, 58vw);
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%);
}

#mairie .mairie-intro,
#mairie .mairie-details,
#mairie .mairie-after {
    margin: 2rem 0;
    line-height: 1.35;
}

#mairie .mairie-intro {
    margin-top: 2.8rem;
    margin-bottom: 2.4rem;
}

#mairie .mairie-se-diront {
    display: inline-block;
    margin-top: 1.6rem;
    margin-bottom: 3rem;
}

#mairie .mairie-details {
    margin-bottom: 2.6rem;
}

#mairie .mairie-address {
    display: inline-block;
    margin-top: 2.4rem;
    font-style: italic;
}

#houppa .event-address {
    font-style: italic;
    display: inline-block;
    margin-bottom: 1.8rem;
}

#mairie .event-date-line,
#houppa .event-date-line {
    display: inline-block;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.8rem;
}

#mairie .mairie-prenoms {
    font-size: 8.6rem;
}

#mairie .mairie-oui {
    font-size: 9.8rem;
}

#mairie .mairie-salle {
    display: inline-block;
    font-size: 9.6rem;
    margin: 0.18em 0;
}

#mairie .mairie-itinerary-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 3.2rem;
}

#mairie .mairie-itinerary-buttons .btn {
    margin-top: 0;
    font-size: 2.4rem;
    padding: 1.3rem 1.6rem;
}

#houppa .btn {
    font-size: 2.4rem;
    padding: 1.3rem 1.6rem;
    margin-top: 3.2rem;
}

@media (max-width: 900px) {
    #mairie .mairie-flower-wrap {
        margin: 0.6rem 0 1.4rem;
    }

    #mairie .mairie-flower {
        width: min(260px, 78vw);
    }

    #mairie .mairie-prenoms {
        font-size: 6.4rem;
    }

    #mairie .event-date-line,
    #houppa .event-date-line {
        font-size: 2.7rem;
    }

    #mairie .mairie-oui {
        font-size: 7.2rem;
    }

    #mairie .mairie-salle {
        font-size: 7.2rem;
    }

    #mairie .mairie-intro,
    #mairie .mairie-details,
    #mairie .mairie-after {
        margin: 1.6rem 0;
    }

    #mairie .mairie-itinerary-buttons {
        gap: 1rem;
    }
}

#reponse h1 {
    font-family: "Luxurious Script", cursive;
    font-size: 10rem;
    color: #9a8473;
    text-shadow: none;
}

.houppa-card h1,
.houppa-card h2,
.houppa-card h3,
.houppa-card h4,
.houppa-card h5,
.houppa-card h6,
.houppa-card p,
.houppa-card span,
.houppa-card div {
    color: #111111;
    text-shadow: none;
}

.houppa-card .btn {
    color: #ffffff;
}


/* Section image pleine largeur */
.middle-image {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.middle-image .full-image {
    width: 100%;
    height: auto;
    /* garde les proportions originales */
    display: block;
    /* supprime l’espace blanc sous l’image */
    object-fit: cover;
    /* remplissage complet si tu veux crop léger */
}

.alliance-in-card {
    display: flex;
    justify-content: center;
    margin: 0.8rem 0 1.2rem;
}

.alliance-image {
    width: min(320px, 62vw);
    height: auto;
    display: block;
}

.kolsimkha-in-card {
    display: flex;
    justify-content: center;
    margin: -0.1rem 0 0.9rem;
}

.kolsimkha-image {
    width: min(620px, 92vw);
    height: auto;
    display: block;
}

/* ==============================
       Countdown avec image
   ============================== */
.countdown {

    position: relative;
    width: 100%;
    overflow: hidden;
    /* évite que l’image déborde */
    scroll-margin-top: 120px;
    /* hauteur de la navbar */

}


section.countdown {
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background-image: none;
}

section.middle-image {
    background-image: none;
}

.countdown-bg {
    width: 100%;
    height: auto;
    /* garde les proportions originales */
    display: block;
    /* supprime les espaces blancs */
    margin-left: 0;
    clip-path: none;
    margin-bottom: 0;
}

.countdown-content {
    position: absolute;
    top: 80.5%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: space-around;
    gap: 1rem;
    width: 100%;
    max-width: 1100px;
    /* limite si tu veux */
    color: #000000;
    text-shadow: none;
}

.countdown-content div {
    font-size: 3.1rem;
    font-weight: 600;
    font-family: "Cormorant Garamond", serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-bottom: 5px solid #ffffff;
    border-right: 6px solid #ffffff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

.countdown-content span {
    font-size: 6.1rem;
    font-weight: bold;
    font-family: "Cormorant Garamond", serif;
    display: block;
    margin-bottom: 0.05rem;
    line-height: 1;
    color: #000000;
}

@media (max-width: 900px) {
    .countdown-content div {
        font-size: 2.3rem;
        width: 165px;
        height: 165px;
        border-width: 3px;
    }

    .countdown-content span {
        font-size: 4.4rem;
    }
}

/* ==============================
   Names
   ============================== */
.name {
    display: flex;
    justify-content: center;
    gap: 3.4rem;
    font-size: 8.6rem;
    margin: 1.5rem 0;
}

.name1,
.name2 {
    text-align: center;
    gap: 0;

}

#houppa .name1 span,
#houppa .name2 span {
    color: #9a8473;
}

#houppa .name1>span:first-child,
#houppa .name2>span:first-child {
    font-family: "Luxurious Script", cursive;
}

#houppa .name>span {
    color: #9a8473;
    font-family: "Luxurious Script", cursive;
}

#houppa .palacio-line {
    display: inline-block;
    color: #9a8473;
    font-family: "Luxurious Script", cursive;
    font-size: 8.8rem;
    line-height: 1;
    margin-top: 0.18em;
    margin-bottom: 0.2em;
}

@media (max-width: 900px) {
    .name {
        font-size: 6.4rem;
        gap: 2.2rem;
    }

    #houppa .palacio-line {
        font-size: 6.6rem;
    }
}

#parent-name {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 1.5rem 0;
    font-weight: 400;
    width: 100%;
}

#parent-name p {
    flex: 1;
    margin: 0;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.4;
}

.parent-spacer {
    visibility: hidden;
    display: inline-block;
}

#parent-name p:first-child {
    text-align: left;
}

#parent-name p:last-child {
    text-align: right;
}

#left-name,
#right-name {
    flex: 1;
    font-size: 2rem;

}

@media (max-width: 768px) {
    #parent-name {
        flex-direction: column;
        gap: 1rem;
    }

    #parent-name p:first-child,
    #parent-name p:last-child {
        text-align: center;
    }
}

/* ==============================
   Boutons
   ============================== */
.btn {
    background: var(--gold-gradient);
    color: #ffffff;
    text-shadow: none;
    border: 1px solid #c9ab96;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 2rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bolder;
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 3rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background: var(--gold-gradient-hover);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* ==============================
   animation texte
   ============================== */
/* Classe à ajouter à tes éléments animés */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    /* commence 50px plus bas */
    transition: all 0.8s ease-out;
}

/* Classe qui s'ajoute quand l'élément est visible */
.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.marge {
    margin-bottom: 10rem;
}

.litle-marge {
    margin-bottom: 7rem;
}

/* ==============================
   Musique
   ============================== */
#music-toggle {
    position: fixed;
    top: 50vh;
    /* 50% de la hauteur visible initiale */
    right: 0;
    transform: translateY(-50%);
    background: var(--gold-gradient);
    color: #111111;
    padding: 1rem;
    border-radius: 20px 0 0 20px;
    cursor: pointer;
    z-index: 300;
    transition: background 0.3s ease;
    font-size: 1rem;
    border: 1px solid #c9ab96;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#music-toggle i {
    font-size: 35px;
    color: #ffffff;
    text-shadow: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    opacity: 1;
    transform: scale(1);
}

#music-toggle i.icon-switching {
    opacity: 0.35;
    transform: scale(0.86);
}

/* ==============================
   Formulaire Réponse (amélioré)
   ============================== */
#rsvp {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 800px;
    margin: 4rem auto;
    font-weight: 600;
    text-align: left;
    gap: 0.2rem;
}

/* Groupes de champs */
.form-group {
    margin-bottom: 3.5rem;
}

.form-group:last-of-type {
    margin-bottom: 2.4rem;
}

.form-group label {
    display: block;
    font-size: 3rem;
    /* plus grand */
    font-weight: bolder;
    /* en gras */
    font-family: "Cormorant Garamond", serif;
    color: var(--main-color);
    margin-bottom: 1.2rem;
}

/* Champs texte, nombre, textarea */
#rsvp input[type="text"],
#rsvp input[type="email"],
#rsvp input[type="number"],
#rsvp select,
#rsvp textarea {
    width: 100%;
    padding: 1.6rem 2rem;
    /* plus spacieux */
    font-size: 2.7rem;
    /* plus gros texte */
    font-family: "Cormorant Garamond", serif;
    color: #2f261f;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.9));
    border: 2px solid #c9ab96;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

#rsvp input::placeholder,
#rsvp textarea::placeholder {
    color: #8e7a6b;
    opacity: 0.95;
}

#rsvp select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 4.6rem;
    background-image: linear-gradient(45deg, transparent 50%, #7a6658 50%), linear-gradient(135deg, #7a6658 50%, transparent 50%);
    background-position: calc(100% - 2.2rem) calc(50% + 0.2rem), calc(100% - 1.6rem) calc(50% + 0.2rem);
    background-size: 0.7rem 0.7rem, 0.7rem 0.7rem;
    background-repeat: no-repeat;
}

#rsvp select+select {
    margin-top: 1.2rem;
}

#rsvp input[type="text"]:focus,
#rsvp input[type="email"]:focus,
#rsvp input[type="number"]:focus,
#rsvp select:focus,
#rsvp textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(143, 122, 106, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.98);
}

#rsvp select:disabled,
#rsvp input:disabled,
#rsvp textarea:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 180px;
}

/* Radios en ligne (carrés harmonisés) */
.checkbox-group {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.checkbox-group label {
    font-size: 2.6rem;
    /* texte radio plus gros */
    font-weight: bolder;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

/* Style custom pour les radios */
.checkbox-group input[type="radio"] {
    appearance: none;
    width: 26px;
    /* plus grand */
    height: 26px;
    border: 2px solid var(--main-color);
    border-radius: 6px;
    /* carré arrondi */
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease, border 0.3s ease;
}

.checkbox-group input[type="radio"]:checked {
    background: var(--main-color);
    border-color: var(--main-color);
}

/* Bouton submit identique aux autres boutons */
.form-submit {
    text-align: center;
    margin-top: 3.5rem;
}

.btnSubmit {
    background: var(--gold-gradient);
    color: #ffffff;
    text-shadow: none;
    border: 1px solid #c9ab96;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 1.8rem 3.5rem;
    /* un peu plus gros */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bolder;
    font-size: 2.2rem;
    /* plus gros texte */
    cursor: pointer;
    border: 1px solid #e7d1c4;
    transition: background 0.3s ease;
    display: inline-block;
}

.btnSubmit:hover {
    background: var(--gold-gradient-hover);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.hebrew {
    font-family: "David Libre", serif;
}

#houppa .name .hebrew {
    display: block;
    font-size: 0.42em;
    line-height: 1;
    margin-top: -0.12em;
    margin-bottom: 0.1em;
}



/* Bouton langue */
#lang-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    z-index: 5000;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#lang-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}