/* evenement.css */

/* --- Hero & Conversion Section --- */
.hero-evenement {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 3rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-content-left {
    text-align: center;
}

.hero-evenement .hero-main-title {
    color: var(--terracotta);
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
}

/* --- Styles de base pour le bouton (caché sur desktop) --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #d4a373; /* Couleur assortie à votre thème */
    cursor: pointer;
    z-index: 1001;
}

/* --- Adaptations Mobile (max 768px) --- */
@media (max-width: 768px) {
    .site-header .wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-toggle {
        display: block; /* On affiche le bouton burger */
    }

    .nav-links {
        display: none; /* On cache la liste par défaut */
        flex-direction: column;
        position: absolute;
        top: 100%; /* S'affiche juste en dessous du header */
        left: 0;
        width: 100%;
        background-color: #fffaf5; /* Couleur de fond douce */
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        z-index: 1000;
    }

    /* Classe qui sera ajoutée via JS pour ouvrir le menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }
}


.location-info {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.location-info .ph {
    font-size: 2.2rem;
}

.booking-card {
    background-color: var(--white);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(181, 131, 141, 0.2);
    padding: 2.5rem;
    text-align: center;
    max-width: 400px; /* Limit width */
    width: 100%;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
}

.price-label {
    font-size: 1.2rem;
    color: var(--sage);
}

.deposit-info {
    font-size: 1rem;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.date-selector-container {
    margin-bottom: 2rem;
}

.date-selector-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.5rem; /* Larger for handwritten style */
    color: var(--sage);
}

.date-selector {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--peach);
    border-radius: 10px;
    background-color: var(--cream);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    -webkit-appearance: none; /* Remove default arrow on select */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B5838D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.5em;
    cursor: pointer;
}

.date-selector:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(229, 152, 155, 0.3);
}

.group-size {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* --- Storytelling Section --- */
.storytelling-section {
    padding: 6rem 0;
}

.storytelling-section .intro-text {
    max-width: 900px; /* Wider for storytelling */
    padding: 3rem;
}

.lead-text {
    font-size: 1.5rem;
    font-family: 'Caveat', cursive; /* As requested */
    color: var(--sage);
    margin-bottom: 2rem;
    line-height: 1.6;
    display: block; /* Ensure it takes full width */
}

/* --- Inclusions Grid Section --- */
.inclusions-section {
    padding: 6rem 0;
}

.inclusions-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column on mobile */
    gap: 2rem;
    margin-top: 3rem;
}

.inclusion-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(181, 131, 141, 0.1);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inclusion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.inclusion-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inclusion-title .ph {
    font-size: 2rem;
    color: var(--terracotta);
}

.inclusion-description {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.5;
}

.petits-plus {
    margin-top: 4rem;
    text-align: center;
}

.petits-plus-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.petits-plus ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 2rem;
    padding: 0;
}

.petits-plus li {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--sage);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.petits-plus li .ph {
    font-size: 2rem;
    color: var(--terracotta);
}

.not-included {
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.7;
    text-align: center;
    margin-top: 2rem;
}

/* --- Formulaire de Pré-inscription --- */
.form-section {
    padding: 6rem 0;
    background-color: var(--peach); /* Using peach as requested */
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--cream); /* Slightly contrasting background */
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(181, 131, 141, 0.2);
}

.form-section .section-title {
    color: var(--dark);
    margin-bottom: 2rem;
}

.pre-inscription-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pre-inscription-form .form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--sage);
    border-radius: 10px;
    background-color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--dark);
}

.pre-inscription-form .form-input::placeholder {
    color: var(--sage);
    opacity: 0.7;
}

.pre-inscription-form .form-input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(229, 152, 155, 0.3);
}

.pre-inscription-form .btn-blob {
    width: 100%;
    padding: 1.2rem 2rem; /* Adjust padding for better look */
    font-size: 1.3rem; /* Larger text for button */
    margin-top: 1rem; /* Space from inputs */
}

/* --- Galerie Photos --- */
.gallery-section {
    padding: 6rem 0;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on mobile */
    gap: 1rem;
    margin-top: 3rem;
}

.photo-gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(181, 131, 141, 0.1);
}

/* Media Queries for Desktop */
@media (min-width: 768px) {
    .hero-evenement {
        flex-direction: row; /* Side-by-side on desktop */
        justify-content: space-between;
        text-align: left;
    }

    .hero-content-left {
        flex: 1;
        text-align: left;
    }

    .location-info {
        justify-content: flex-start;
    }

    .booking-card {
        flex-shrink: 0;
        position: sticky; /* Floats as user scrolls */
        top: 100px; /* Adjust as needed for header height */
        align-self: flex-start; /* Align to the top of its container */
    }

    .inclusions-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    }

    .photo-gallery-grid {
        grid-template-columns: 2fr 1fr; /* Main img on left, thumbnails on right */
        grid-template-rows: repeat(2, auto); /* Two rows for thumbnails */
    }

    .gallery-main-img {
        grid-column: 1 / 2; /* Spans the first column */
        grid-row: 1 / span 2; /* Spans both rows */
        height: 600px; /* Fixed height for main image on desktop */
    }

    .gallery-thumb-img:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        height: 290px; /* Adjusted height for thumbnails */
    }

    .gallery-thumb-img:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        height: 290px; /* Adjusted height for thumbnails */
    }

    .gallery-thumb-img:nth-child(4) {
        /* This one would typically go below the main image if it were 3-column.
           With 2-column, it might sit awkwardly or stack.
           Let's adjust it to sit below the second thumbnail for a 2x2 feel if there are only 4 images.
           Or remove it if the user wants only 3 thumbnails on the right.
           For this request, 1 big + 3 small in a 2x2 fashion on the right seems to be the intent from "assemblage de 3 images plus petites".
           So I'll adjust the grid for 1 big + 3 small in a 2x2 pattern on the right.
           Revisiting the request: "une grande image dominante à gauche et un assemblage de 3 images plus petites à droite"
           This implies a 1x2 layout for the main, and a 3x1 for the small ones.
           Let's re-do the grid for photo gallery.
        */
        display: none; /* Hide the 4th image for the 1 big + 3 small layout */
    }

    .photo-gallery-grid.three-thumbs { /* A new class to manage this specific layout */
        grid-template-columns: 2fr 1fr;
        grid-template-rows: repeat(3, 1fr); /* 3 rows for the thumbnails */
        gap: 1rem;
    }

    .photo-gallery-grid.three-thumbs .gallery-main-img {
        grid-column: 1 / 2;
        grid-row: 1 / span 3; /* Main image spans all 3 rows */
        height: auto; /* Let height adjust to content, or set a min-height */
        max-height: 800px;
    }

    .photo-gallery-grid.three-thumbs .gallery-thumb-img:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        height: 260px; /* Adjust height for 3 thumbs */
    }
    .photo-gallery-grid.three-thumbs .gallery-thumb-img:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        height: 260px; /* Adjust height for 3 thumbs */
    }
    .photo-gallery-grid.three-thumbs .gallery-thumb-img:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        height: 260px; /* Adjust height for 3 thumbs */
        display: block; /* Ensure it's shown */
    }
}

/* Adjustments for general section header and wrapper from style.css */
.section-header {
    text-align: center;
    margin-bottom: 4rem; /* Standard margin for section headers */
}

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

.section-title {
    font-size: 3.5rem;
    color: var(--terracotta);
    margin-top: 1rem;
}
