@import url('https://fonts.googleapis.com/css?family=Roboto:400,700');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Lora:ital,wght@0,400..700;1,400..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'EB Garamond', sans-serif;
    background-color: #fffdf8;
    color: #4a4a4a;
    line-height: 1.6;
    overflow-x: hidden;
}


/* Section droite scrollable */
.section-2 {
    width: 100%;             /* prend toute la largeur */
    min-height: 100vh;       /* au moins la hauteur de l'écran */
    display: flex;
    flex-direction: column;  /* organise le contenu verticalement */
    justify-content: flex-start;
    align-items: center;     /* centre horizontalement le contenu */
    background-color: #fffdf8;
    padding-top: 2rem;           /* espace intérieur */
    padding-bottom: 2rem;           /* espace intérieur */
    box-sizing: border-box;  /* inclut padding dans la largeur */
    position: relative;
    margin: 0;
    background-image: url("images/bastide.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.separator-fade {
    border: 0;
    height: 1px;
    width: 100%;
    text-align: center;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 0.1em;
}

.success-box {
    margin-top: 1em;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in;
}

.error-box {
    margin-top: 1em;
    background-color: #edd4d4;
    color: #572215;
    border: 1px solid #e6c3c3;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in;
}

p { text-align: justify; }

.tabed-p {
    margin-left: 3%;
}

.double-tabed-p {
    margin-left: 6%;
}

.bandeau-image, 
.bandeau-image-both, 
.bandeau-image-low {
    width: 100vw !important;  /* 100% de la largeur de la fenêtre */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    display: block;
    object-fit: cover;
}

.content .bandeau-image {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
}

.content .bandeau-image-low {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
}

.content .bandeau-image-both {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  
  /* Masque avec transparence en haut (0%), opaque au centre, et transparence en bas (100%) */
  -webkit-mask-image: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 20%, 
    rgba(0,0,0,1) 80%, 
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,1) 20%, 
    rgba(0,0,0,1) 80%, 
    rgba(0,0,0,0) 100%
  );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-size: cover;
}


/* Login box */
.login-box {
    display: flex;
    color: #7a7a7a;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    max-width: 400px;
    margin: 15%; /* plus besoin du margin vertical */
    padding: 2rem;
    background: #fffdf8;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    text-align: center;
    box-sizing: border-box;
}

.login-box #email-error-message {
    color: red;
    font-style: italic;
    font-size: small;
    display: none;
}

.login-box input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    background: #d29982;
    color: #fffdf8;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.login-box button:active {
    background: #808080;
    color: #fffdf8;
}

/* Onglets (Tabs) */

.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;          
    margin: 0;
    border-bottom: none;
    position: fixed;   /* reste fixe en haut */
    top: 0;
    left: 0;           /* commence à gauche */
    width: 100%;       /* pleine largeur */
    box-sizing: border-box;
    background-color: #fffdf8;
    z-index: 10;
}

.tabs a {
    color: #7a7a7a;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
    padding: 0.3rem 0;
    border: none;
}

#homeLink {
    color: #d29982;
}

.tabs a:hover,
.tabs a.active {
    color: #949292;
}

/* Contenu scrollable */
.text-content {
    padding: 3rem 20%;
}

.text-content h2 {
    font-size: 1.7rem;
    margin-top: 2rem;
    border-bottom: 2px solid #d29982;
    display: inline-block;
    padding-top: 5rem;
    margin-top: -5rem;
    color: #d29982;
}

.text-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    border-bottom: 2px solid #d29982;
    display: inline-block;
    padding-top: 5rem;
    margin-top: -5rem;
    color: #d29982;
}


/* Faq */
.faq {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.faq-item {
    margin-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem 0;
    font-weight: bold;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #949292;
}

.faq-item b {
    color: #d29982;
}

.faq-item h4 {
    color: #d29982;
    text-decoration: underline;
}

.arrow {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0.5rem;
}

.faq-answer p {
    margin: 0.5rem 0;
}

a {
    color: inherit;      /* prend la couleur du texte parent */
    text-decoration: none; /* enlève le soulignement */
}

.intro-img-container {
    text-align: center;   /* centre horizontalement */
    margin: 2rem 0;       /* espace au-dessus et en dessous */
}

.intro-img-container img {
    max-width: 66%;     /* 2/3 de la largeur actuelle */
    max-height: 33vh;   /* moitié précédente × 2/3 = 33vh */
    width: auto;
    height: auto;
    border-radius: 8px; /* optionnel */
}

.btn-container {
    text-align: center; /* centre horizontalement le bouton */
    margin: 1.5rem 0;   /* espace au-dessus et en dessous */
}

.btn-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #d29982;
    color: #fffdf8;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
    border: 0px;
}

.btn-link:hover {
    background-color: #c47a6a;
}


/* Dual section text image */
.dual-section-text-img {
  display: flex;
  align-items: center; /* centre verticalement */
}

.dual-section-text-img .dual-text {
  flex: 2; /* 3/4 de la largeur */
  padding-right: 1em; /* espace avec l'image */
  margin-right: 2em;
}

.dual-section-text-img .dual-img {
  flex: 2; /* 1/4 de la largeur */
  margin-bottom: 2em;
}

.dual-section-text-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* légère ombre */
  margin-bottom: 1em;
}

/* Dual section image texte */
.dual-section-img-text {
  display: flex;
  align-items: center; /* centre verticalement */
}

.dual-section-img-text .dual-text {
  flex: 2; /* 3/4 de la largeur */
}

.dual-section-img-text .dual-img {
  flex: 2; /* 3/4 de la largeur */
  margin-bottom: 2em;
  margin-right: 2em;
}

.dual-section-img-text img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* légère ombre */
}

/* Form rsvp */


/* Système de grille flexible */
.form-group-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.field {
    flex: 1 1 calc(50% - 20px); /* Deux colonnes par défaut */
    display: flex;
    flex-direction: column;
    min-width: 300px;
}
/* Champs en pleine largeur */
.full-width {
    flex: 1 1 100%;
}
label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.radio-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.radio-row:hover {
    border-color: var(--primary-color);
}

.radio-label {
    font-weight: 600;
    color: #555;
}

.radio-options {
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important; /* Pour ne pas hériter du gras des labels */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1200px) {


    .section-2 {
        grid-column: 1;
        overflow-y: visible;
        height: auto;
        background-color: #fffdf8;
        padding-top: 0;
    }

    /* MENU HAMBURGER */
    .tabs {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 1rem;
        padding-right: 1rem; /* marge droite pour hamburger */
        background-color: #fffdf8;
        z-index: 2;
    }

    .tabs a {
        display: none;
        width: calc(100% - 4rem); /* prend 100% moins le padding des côtés */
        margin-left: 1rem;
        margin-right: 1rem;        /* même marge que à gauche */
        padding: 1rem 0;           /* padding vertical seulement */
        border-top: 1px solid rgba(0,0,0,0.1);
        box-sizing: border-box;
    }

    .tabs::before {
        content: "\2630";
        font-size: 2rem;
        padding: 1rem 0;
        display: block;
        cursor: pointer;
    }

    .tabs.active a {
        display: block;
    }

    .text-content {
        padding: 3rem 1.5rem;
    }

    .text-content h2 {
        padding-top: 90px;
        margin-top: -90px;
    }

    .login-box {
        margin: 25%;
        width: 95%;
        padding: 1.5rem;
    }

    .dual-section-text-img {
        flex-direction: column-reverse;
    }

    .dual-section-text-img .dual-text,
    .dual-section-text-img .dual-img {
        flex: 1;
        width: 100%;
        padding: 0;
        text-align: justify;  /* centre le texte */
        margin: 0 auto;
    }

    .dual-section-img-text {
        flex-direction: column;
    }

    .dual-section-img-text .dual-text,
    .dual-section-img-text .dual-img {
        flex: 1;
        width: 100%;
        padding: 0;
        text-align: justify;  /* centre le texte */
        margin: 0 auto;
    }

    .radio-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #home {
        content: url('images/bandeau-home-mobile.png');
    }

    #bandeau-image-domaine {
        content: url('images/bandeau-domaine-mobile.png');
    }
}