/* Déclaration de la police The Seasons */
@font-face {
    font-family: 'The Seasons';
    src: url('fonts/TheSeasons-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #FAFAFA;
    --text-color: #1A1A1A;
    --font-titre: 'The Seasons', serif;
    --font-texte: 'Josefin Sans', sans-serif;
}

/* --- GESTION DU SCROLL FLUIDE ET BLOCAGE DES COINS HORIZONTAUX --- */
html, body {
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-texte);
    line-height: 1.6;
    padding-top: 120px; 
}

section {
    scroll-margin-top: 130px;
}

.text-center { text-align: center; }

/* --- GESTION DES ESPACEMENTS TITRES / SOUS-TITRES --- */
.title-seasons {
    font-family: var(--font-titre);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem; 
    color: var(--text-color);
    padding: 0 1rem;
}

.subtitle-section, .contact-subtitle, .subtitle-modal {
    max-width: 600px;
    margin: 0 auto 4rem auto; 
    color: #666;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 1rem;
    text-align: center;
}

/* --- CLASSES D'ANIMATION AU DÉFILEMENT (SCROLL REVEAL) --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0); 
}

/* --- CLASSES DE VISIBILITÉ --- */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* --- NAVIGATION BUREAU --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-color);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: all 0.4s ease;
}

.navbar.navbar-scrolled {
    background-color: rgba(250, 250, 250, 0.4); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    padding: 0.8rem 5%; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.navbar.navbar-scrolled:hover {
    background-color: var(--bg-color);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.navbar ul.desktop-only {
    flex: 1;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.navbar ul.desktop-only:first-of-type {
    justify-content: flex-end;
}

.navbar ul.desktop-only:last-of-type {
    justify-content: flex-start;
}

.navbar ul.desktop-only a {
    position: relative; 
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    padding-bottom: 5px; 
}

.navbar ul.desktop-only a::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 1px; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: var(--text-color);
    transition: width 0.3s ease; 
}

.navbar ul.desktop-only a:hover::after {
    width: 100%;
}

.logo-container {
    flex: 0 0 auto;
    margin: 0 4rem;
    text-align: center;
    z-index: 2002; 
}

/* LE LOGO SUR PC */
.logo-img {
    max-height: 90px; 
    width: auto;
    display: block;
    transition: max-height 0.4s ease;
}

.navbar.navbar-scrolled .logo-img {
    max-height: 65px;
}

/* --- MENU HAMBURGER (Caché sur bureau) --- */
.menu-toggle {
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 2002;
}

.menu-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-mobile-container {
    display: none; 
}

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/comptoir-elegant.jpeg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -120px; 
}

.hero-title {
    color: #FFFFFF;
    font-size: 3.5rem;
    letter-spacing: 5px;
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

/* --- SECTION CONCEPT --- */
.concept-section {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background-color: var(--bg-color);
}

.carousel-bande {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: defilementInfini 30s linear infinite;
}

.carousel-track img {
    height: 60vh;
    width: auto;
    object-fit: cover;
    margin-right: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes defilementInfini {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.concept-text-box {
    position: relative;
    z-index: 2;
    background-color: rgba(250, 250, 250, 0.95);
    padding: 4rem 3rem;
    max-width: 480px;
    margin-right: 8%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #EAEAEA;
    text-align: left;
}

.concept-text-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.concept-text-box p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #444;
}

/* --- SECTION COMPTOIRS --- */
.comptoirs-section {
    padding: 8rem 5%;
    background-color: var(--bg-color);
}

.comptoirs-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start; 
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

.comptoir-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 350px; 
    width: 100%;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    z-index: 1;
}

.comptoir-item:hover {
    height: 550px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    z-index: 2;
}

.comptoir-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    transition: transform 0.8s ease;
    z-index: 1;
}

.comptoir-item:hover .comptoir-img {
    transform: scale(1.02); 
}

.comptoir-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 2;
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.comptoir-item:hover::after {
    height: 50%;
}

.comptoir-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    color: #FFFFFF;
}

.comptoir-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.comptoir-content p {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.4;
}

/* --- SECTION ÉVÉNEMENTS --- */
.evenements-section {
    padding: 8rem 5%;
    background: linear-gradient(135deg, #FBFBF9 0%, #F0EDE5 100%);
}

.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto 6rem auto;
    gap: 4rem;
}

.event-row.reverse {
    flex-direction: row-reverse;
}

.event-media-container {
    flex: 1;
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-radius: 2px;
}

.event-video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.event-text-container {
    flex: 1;
    padding: 2rem;
}

.event-text-container h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.event-text-container p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    background-color: transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: #FFFFFF !important;
}

/* --- SECTION FAQ --- */
.faq-section {
    padding: 4rem 2rem 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 1.5rem;
}

.faq-item h3 {
    font-family: var(--font-titre);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.faq-item p {
    font-size: 1rem;
    font-weight: 300;
    color: #444;
}

/* --- SECTION CONTACT --- */
.contact-section {
    padding: 4rem 5% 6rem;
    background-color: var(--bg-color);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* --- SECTION INSTAGRAM --- */
.instagram-section {
    padding: 6rem 0 4rem; 
    background-color: #FFFFFF;
    text-align: center;
}

.instagram-header {
    padding: 0 5%;
}

.instagram-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.instagram-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #FFFFFF;
    border-top: 1px solid #EAEAEA;
}

footer p {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- FENÊTRE MODALE --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 3000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(5px); 
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background-color: #FFFFFF;
    margin: auto;
    padding: 4rem;
    border: 1px solid #EAEAEA;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto; 
    position: relative;
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: apparitionModal 0.4s ease-out;
}

@keyframes apparitionModal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #AAA;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-color);
}

/* --- FORMULAIRE DYNAMIQUE --- */
.form-section {
    margin-bottom: 3rem;
}

.form-section h3 {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 0.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    display: none;
}

.card-content {
    display: block;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #EAEAEA;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    transition: all 0.3s ease;
    background-color: #FAFAFA;
}

.option-card:hover .card-content {
    border-color: #CCC;
    background-color: #FFFFFF;
}

.option-card input[type="radio"]:checked + .card-content,
.option-card input[type="checkbox"]:checked + .card-content {
    border-color: var(--text-color);
    background-color: var(--text-color);
    color: #FFFFFF;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.input-line {
    flex: 1;
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid #CCC;
    background-color: transparent;
    font-family: var(--font-texte);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-line:focus {
    outline: none;
    border-bottom: 1px solid var(--text-color);
}

.btn-submit-modal {
    width: 100%;
    margin-top: 2rem;
    background-color: #FFFFFF;
}


/* =========================================
   VERSION MOBILE (Smartphone & Tablette) 
   ========================================= */

@media (max-width: 768px) {
    
    body {
        padding-top: 110px; 
    }

    /* --- Navigation Mobile --- */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }

    .navbar {
        padding: 0 1.5rem;
        height: 100px; /* <--- LA SOLUTION : On force la barre à être grande */
        align-items: center;
    }

    .logo-container {
        position: absolute;
        left: 50%;
        top: 50%; /* Centre verticalement dans la barre de 100px */
        transform: translate(-50%, -50%);
        margin: 0;
    }

    /* LOGO MOBILE PARFAITEMENT DANS LA BARRE */
    .logo-img {
        max-height: 80px; 
    }

    .navbar.navbar-scrolled {
        height: 85px; /* Se réduit un peu au scroll */
        padding: 0 1.5rem;
    }

    .navbar.navbar-scrolled .logo-img {
        max-height: 65px;
    }

    .nav-mobile-container {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh; 
        background-color: rgba(250, 250, 250, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0; 
        pointer-events: none; 
        transition: opacity 0.4s ease;
        z-index: 1500;
    }

    .nav-mobile-container.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-mobile-container ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .nav-mobile-container a {
        font-family: var(--font-titre);
        font-size: 2rem;
        text-decoration: none;
        color: var(--text-color);
    }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- Sections Globales Mobile --- */
    .hero {
        margin-top: -110px; /* Remonte bien sous la barre de 100px */
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .subtitle-section, .contact-subtitle, .subtitle-modal {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    /* --- Concept Mobile --- */
    .concept-section {
        display: flex;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        height: 70vh; 
        min-height: 450px;
        padding: 0;
    }

    .carousel-bande {
        position: absolute; 
        height: 100%;
        width: 100%;
    }

    .carousel-track img {
        height: 70vh; 
    }

    .concept-text-box {
        position: relative; 
        margin: 0; 
        width: 90%;
        max-width: 400px;
        padding: 2.5rem 1.5rem;
        z-index: 2; 
        text-align: center; 
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    }

    /* --- Comptoirs Mobile --- */
    .comptoirs-section {
        padding: 6rem 5%;
    }

    .comptoirs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .span-4, .span-5, .span-7, .span-8 {
        grid-column: span 1;
    }

    .comptoir-item {
        height: 400px;
        border-radius: 12px; 
    }

    .comptoir-item:hover {
        height: 400px; 
        box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    }

    .comptoir-content {
        padding: 1.5rem;
    }

    /* --- Événements Mobile --- */
    .event-row, .event-row.reverse {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .event-media-container {
        padding: 8px; 
        border-radius: 12px;
    }

    .event-video {
        height: 300px;
        border-radius: 8px; 
    }

    .event-text-container {
        padding: 0;
    }

    /* --- Formulaire Modale Mobile --- */
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        border-radius: 16px; 
        max-height: 85vh;
    }

    .options-grid {
        grid-template-columns: 1fr; 
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}