/* Polices et variables */
:root {
    --gold: #E1D2AE;
    --light-gold: #E8D5A3;
    --dark-gold: #C0B495;
    --pink: #FFD1DC;
    --white: #FFF9F0;
    --black: #2C1810;
}



body {
      font-family: 'EB Garamond', "Times New Roman", serif;
    background-color: var(--white);
    color: var(--black);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.btn-gold {
    background: var(--gold);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
     font-family: 'EB Garamond', "Times New Roman", serif;    font-weight: bold;
    transition: all 0.3s;
}

.btn-gold:hover {
    background: var(--dark-gold);
}

/* Page principale */
.hero-image {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.full-width-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.names-title {
    font-family: 'Austina', cursive;
    font-size: 10rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.ampersand {
    font-size: 11rem;
    margin: 0 1rem;
}

@media (max-width: 767px) {
    .ampersand {
        font-size: inherit; /* ou 'initial', ou une taille plus petite comme 3rem */
    }
}

@font-face {
  font-family: 'Austina';
  src:
    url('assets/fonts/austina.woff2') format('woff2'), /* Moderne (Chrome, Firefox, Edge, Safari 12+) */
    url('assets/fonts/austina.woff') format('woff'),   /* Fallback (IE9+, Safari 5.1+) */
    url('assets/fonts/austina.ttf') format('truetype'); /* Fallback ancien (Safari < 5.1) */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Affiche le fallback le temps du chargement */
}

.section-title {
    font-family: 'Austina', cursive;
    font-size: 2.5rem;
    color: var(--gold);
    text-align: center;
    margin: 2rem 0 1rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background: var(--gold);
    margin: 0.5rem auto;
}

.location-section {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.location-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.location-text {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.date {
    font-weight: bold;
    color: var(--dark-gold);
    font-size: 1.2rem;
}

.address {
    font-style: italic;
    margin-top: 0.5rem;
}

.location-img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.rsvp-section {
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--light-gold);
    border-radius: 5px;
     font-family: 'EB Garamond', "Times New Roman", serif;}

.form-group-radio {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-options {
    display: flex;
    gap: 1rem;
}

.form-group-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-submit {
    align-self: center;
    margin-top: 1rem;
    padding: 12px 30px;
    font-size: 1.1rem;
}

.footer {
    background: #F9EBD7;
    color: var(--dark-gold);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.footer-text {
    margin: 0.5rem 0;
}

.footer-contact,
.footer-account {
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-thanks {
    font-family: 'Imperial Script', cursive;
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .names-title {
        font-size: 2.5rem;
    }

    .form-group {
        flex-direction: column;
    }

    .location-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding: 1rem;
    }

    .names-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* À ajouter dans style.css */
@media (max-width: 768px) {
    /* Espacement vertical entre les groupes de champs */
    #rsvpForm .form-group:nth-child(1) {
        margin-bottom: 15px; /* Marge après Nom/Prénom */
    }

    /* Champs Nom/Prénom et GSM/Email en pleine largeur */
    #rsvpForm .form-group input[type="text"],
    #rsvpForm .form-group input[type="tel"],
    #rsvpForm .form-group input[type="email"] {
        width: 100% !important;
        margin-right: 0 !important;
        float: none !important;
    }
}

/* À ajouter dans style.css (hors media query) */
#rsvpForm .form-group:nth-child(1) {
    margin-bottom: 25px; /* Espacement vertical */
    padding-bottom: 15px;
}

/* Champs côte à côte (Nom/Prénom et GSM/Email) */
#rsvpForm .form-group:nth-child(1) input,
#rsvpForm .form-group:nth-child(2) input {
    width: 48%;
    display: inline-block;
    margin-right: 4%;
}

#rsvpForm .form-group:nth-child(2) input:last-child {
    margin-right: 0;
}
/* Espacement général entre tous les groupes */
#rsvpForm .form-group {
    margin-bottom: 20px !important; /* Marge entre chaque ligne */
}

/* Espacement spécifique pour les champs longs (allergies, etc.) */
#rsvpForm textarea,
#rsvpForm input[type="number"] {
    margin-top: 10px;
}

/* Espacement après les boutons radio */
#rsvpForm .form-group:has(input[type="radio"]) {
    margin-bottom: 25px;
}
/* === NOUVEAU CODE POUR LES BOUTONS RADIO (mobile + desktop) === */
/* Alignement du label et des boutons sur une seule ligne */
.form-group span {
    display: inline;
    margin-right: 10px;
    vertical-align: middle;
}

.form-group input[type="radio"] {
    margin: 0 5px 0 0; /* Espacement à droite seulement */
    vertical-align: middle;
}

/* Force l'affichage en ligne pour les labels des boutons radio */
.form-group input[type="radio"] + label {
    display: inline;
    margin-right: 15px;
    vertical-align: middle;
}

/* Alignement à gauche pour desktop */
@media (min-width: 769px) {
    .form-group:has(input[type="radio"]) {
        text-align: left;
    }
}

/* Espacement spécifique pour les groupes de radio */
.form-group:has(input[type="radio"]) {
    margin-bottom: 20px;
}
/* Conteneur pour le hero + divider */
.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* ← CIBLE : coupe l'image et le divider */
}

/* Style existant de ton image (à conserver) */
.hero-image {
    width: 100%;
    position: relative;
}

.full-width-img {
    width: 100%;
    display: block;
}

/* Style pour les boutons radio "Présent" */
.radio-present {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: fit-content; /* Empêche l'élément de prendre toute la largeur */
}

.radio-label {
    margin-right: 15px;
    min-width: 60px;
    font-weight: normal;
}

.radio-options {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.radio-present input[type="radio"] {
    margin: 0 5px 0 0;
    width: auto; /* Annule les largeurs forcées */
}

.radio-present label {
    margin-right: 15px;
    cursor: pointer;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .radio-present {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .radio-label {
        min-width: 50px;
    }

    .radio-options {
        flex-wrap: nowrap;
    }
}
/* Style de base pour tous les écrans */
.responsive-count {
    width: 100%;
    margin-bottom: 15px;
}

.count-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Espace entre les lignes en mobile */
}

.count-item label {
    margin-right: 10px;
    font-size: 16px;
}

.count-item select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 60px;
    font-size: 16px;
}

/* Style pour desktop (écrans larges) */
@media (min-width: 769px) {
    .responsive-count {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .count-item {
        margin-bottom: 0; /* Pas d'espace entre les éléments en desktop */
    }
}

/* Style pour mobile (écrans étroits) */
@media (max-width: 768px) {
    .responsive-count {
        display: block; /* Chaque élément prend toute la largeur */
    }

    .count-item {
        width: 100%; /* Pleine largeur */
    }

    .count-item label {
        min-width: 130px; /* Évite que le label se réduise trop */
    }
}

