/*
Theme Name: Mon Thème Ski
Theme URI: https://skiwithtim.pro
Author: Hagnerelle Timothée
Author URI: https://skiwithtim.pro
Description: Thème personnalisé pour Ski With Tim
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skiwithtim
*/

/* ==========================================
   VARIABLES GLOBALES DU THÈME
   ========================================== */
:root {
    /* === GRILLES DE FORMULES (BLEU) === */
    --grid-primary-color: #0077b6;
    --grid-dark-color: #1a3a5c;
    --grid-light-color: #f4f7f6;
    --grid-text-color: #333;
    
    /* === ACCORDÉON EXPÉRIENCES (DORÉ) === */
    --accordion-primary-color: #e8c061;
    --accordion-bg-dark: #2d2e2d;
    --accordion-bg-secondary: #3c3d3c;
    --accordion-border-color: #4f504f;
    --accordion-text-light: #ffffff;
    --accordion-text-secondary: #d1d5db;
    
    /* === COULEURS GLOBALES DU SITE === */
    --site-bg-color: #F5F5F5;
    --site-text-color: #444444;
}

/* ==========================================
   STYLES DE BASE
   ========================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 350;
    background-color: var(--site-bg-color);
    color: var(--site-text-color);
    overflow-x: hidden;
    min-height: 150vh;
    letter-spacing: 0.015em;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 100vh = 100% de la hauteur de l'écran */
}

main {
    flex-grow: 1;
}

body.noscroll { 
    overflow: hidden; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', Helvetica, Arial, sans-serif;
}

/* Style unifié pour les titres de section */
.section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================================
   HEADER - MENU ET NAVIGATION
   ========================================== */

/* Transitions pour la réduction du header au scroll */
#top-header-band, 
#top-header-band img {
    transition: all 0.3s ease-in-out;
}

/* Taille par défaut (grande) du header */
header:not(.scrolled) #top-header-band {
    height: 110px;
}

header:not(.scrolled) #top-header-band img {
    max-height: 90px;
}

/* Taille réduite du header au scroll */
header.scrolled #top-header-band {
    height: 56px;
}

header.scrolled #top-header-band img {
    max-height: 40px;
}

/* Styles du header */
header {
    background-color: transparent;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#bottom-header-band {
    background-color: transparent;
    border-color: white;
    height: 48px;
    transition: background-color 0.3s ease, border-color 0.3s ease, height 0.3s ease;
}

.hamburger-menu span { 
    background-color: white; 
    transition: all 0.3s ease-in-out; 
}

/* Header au survol (desktop) */
@media (min-width: 1024px) {
    header:hover {
        background-color: var(--site-bg-color);
        color: var(--site-text-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    header:hover #bottom-header-band { 
        background-color: var(--site-bg-color); 
        border-color: rgba(0, 0, 0, 0.1); 
    }
    header:hover .hamburger-menu span { 
        background-color: var(--site-text-color); 
    }
}

/* Header scrolled */
header.scrolled {
    background-color: var(--site-bg-color);
    color: var(--site-text-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header.scrolled #bottom-header-band {
    background-color: var(--site-bg-color);
    border-color: rgba(0, 0, 0, 0.1);
    height: 36px;
}

header.scrolled .hamburger-menu span { 
    background-color: var(--site-text-color); 
}

/* Menu hamburger */
.hamburger-menu {
    position: relative; 
    cursor: pointer; 
    z-index: 20; 
    padding: 0.5rem; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}

.hamburger-menu span { 
    display: block; 
    width: 25px; 
    height: 1.5px; 
    margin: 5px 0; 
}

.hamburger-menu.open span:nth-child(1) { 
    transform: translateY(6.5px) rotate(45deg); 
}

.hamburger-menu.open span:nth-child(2) { 
    opacity: 0; 
}

.hamburger-menu.open span:nth-child(3) { 
    transform: translateY(-6.5px) rotate(-45deg); 
}

/* ==========================================
   STYLES COMPLETS ET FINALS POUR LE MENU DESKTOP
   ========================================== */

/* 1. Applique les coins arrondis à la barre de menu principale */
#bottom-header-band {
    border-radius: 0 0 8px 8px;
}

/* 2. Style de base pour les liens du menu principal */
#bottom-header-band .menu-item > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
    transition: all 0.2s ease;
}

/* 3. Effet de survol sur le lien <a> */
#bottom-header-band .menu-item:hover > a {
    background-color: #444444;
    color: white;
}

/* 4. Style pour les ÉLÉMENTS PARENTS qui contiennent un sous-menu */
#bottom-header-band .menu-item-has-children {
    position: relative; /* ✅ C'EST LA LIGNE LA PLUS IMPORTANTE ! */
}

/* 5. Style du SOUS-MENU (caché par défaut) */
#bottom-header-band .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* La ligne "left: 0;" est retirée, car il se positionne maintenant par rapport à son parent */
    background-color: var(--site-bg-color);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 100;
    border-radius: 0 0 8px 8px;
    border-top: 2px solid var(--accordion-primary-color);
}

/* Affiche le sous-menu au survol */
#bottom-header-band .menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* 6. Style des liens dans le sous-menu */
#bottom-header-band .sub-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}
#bottom-header-band .sub-menu li:last-child {
    border-bottom: none;
}
#bottom-header-band .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--site-text-color);
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}
#bottom-header-band .sub-menu li a:hover {
    background-color: var(--site-text-color);
    color: white;
}

/* Cible le dernier élément <li> du sous-menu */
#bottom-header-band .sub-menu li:last-child {
    border-radius: 0 0 8px 8px;
    overflow: hidden; /* Assure que le fond du lien <a> est bien coupé par les coins arrondis */
}

/* Menu mobile */
.mobile-menu {
    position: fixed; 
    top: 0; 
    right: 0;
    width: 66.666667%; 
    height: 100vh; 
    background-color: var(--site-bg-color);
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    justify-content: flex-start;
    padding-top: 5rem; 
    padding-left: 2rem; 
    padding-right: 2rem; 
    z-index: 60;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    color: var(--site-text-color); 
    overflow-y: auto; 
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.mobile-menu.active { 
    transform: translateX(0); 
}

@media (min-width: 1024px) { 
    .mobile-menu { 
        display: none !important; 
    } 
}

.mobile-menu-close {
    position: absolute; 
    top: 1.5rem; 
    right: 1.5rem;
    width: 28px; 
    height: 28px;
    cursor: pointer; 
    z-index: 25; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.mobile-menu-close span {
    position: absolute; 
    display: block; 
    width: 100%; 
    height: 2px;
    background-color: var(--site-text-color); 
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-close .line-1 { 
    transform: rotate(45deg); 
}

.mobile-menu-close .line-2 { 
    transform: rotate(-45deg); 
}

/* Dropdowns */
.lang-dropdown, .dropdown-content {
    display: none; 
    opacity: 0; 
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-color: var(--site-bg-color); 
    border-radius: 0 0 0.375rem 0.375rem; 
    overflow: hidden;
    position: absolute; 
    left: 0; 
    top: 100%; 
    min-width: 100%; 
    z-index: 20;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.lang-dropdown.active, .group:hover .dropdown-content { 
    display: block; 
    opacity: 1; 
    transform: translateY(0); 
}

.lang-icon { 
    transition: transform 0.3s ease; 
}

.lang-icon.open { 
    transform: rotate(180deg); 
}

.lang-dropdown a, .dropdown-content a {
    display: block; 
    width: 100%; 
    text-align: center; 
    padding: 0.5rem 1rem;
    font-size: 0.875rem; 
    background-color: var(--site-bg-color); 
    color: var(--site-text-color);
    font-weight: 300; 
    text-transform: uppercase; 
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a { 
    text-transform: none; 
    text-align: left; 
    padding: 0.75rem 1rem;
}

.lang-dropdown a:hover, .dropdown-content a:hover { 
    background-color: var(--site-text-color); 
    color: white; 
}

.lang-dropdown a:last-child, .dropdown-content a:last-child { 
    border-radius: 0 0 0.375rem 0.375rem; 
}

#bottom-header-band ul li:hover { 
    background-color: var(--site-text-color); 
}

#bottom-header-band ul li:hover > a { 
    color: white; 
}

/* Accordéon mobile */
.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-out; 
    background-color: #f0f0f0; 
}

.accordion-content.active { 
    max-height: 500px; 
    transition: max-height 0.3s ease-in; 
}

.accordion-content a { 
    display: block; 
    padding: 0.75rem 1.5rem; 
    color: var(--site-text-color); 
    transition: background-color 0.2s ease, color 0.2s ease; 
}

.accordion-content a:hover { 
    background-color: var(--site-text-color); 
    color: white; 
}

/* Bouton réserver desktop */
.desktop-reserve-button { 
    background-color: var(--accordion-primary-color); 
    color: white; 
    transition: background-color 0.3s; 
}

.desktop-reserve-button:hover { 
    background-color: #daa520; 
}



/* Header avec texte foncé sur Bio et Contact */
header.dark-text {
    color: #444444;
}

header.dark-text #bottom-header-band {
    border-color: rgba(0, 0, 0, 0.1);
}

header.dark-text .hamburger-menu span {
    background-color: #444444;
}

header.dark-text a {
    color: #444444;
}


/* ==========================================
   SECTION LOGOS DES STATIONS
   ========================================== */
.section-stations {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 30px 50px;
    background-color: var(--site-bg-color);
}

.logo-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.station-logo {
    max-width: 170px;
    height: auto;
    object-fit: contain;
}

/* ==========================================
   TABLEAU RESPONSIVE (TARIFS)
   ========================================== */
@media screen and (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }
    .responsive-table tbody, .responsive-table tr, .responsive-table td {
        display: block;
    }
    .responsive-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 0.5rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    .responsive-table td {
        position: relative;
        padding-left: 50%;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        text-align: right;
        border-bottom: 1px solid #eee;
    }
    .responsive-table tr td:last-child {
         border-bottom: none;
    }
    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
        color: #333;
    }
}

/* ==========================================
   GRILLES DE FORMULES (BLEU)
   ========================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-item {
    position: relative;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

.grid-item-content {
    position: relative;
    z-index: 2;
    color: white;
}

.grid-item-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

.grid-item-content p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    text-align: left;
}

/* Étiquette de prix */
.price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #F0F0F2;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 500;
    display: inline-block;
}

/* Déplace le prix sur mobile */
@media (max-width: 1023px) {
    .price-tag {
        bottom: auto;
        top: 15px;
    }
}

/* Aligne l'image de fond à gauche pour les 3 premières cartes */
.formules-carousel .swiper-slide:nth-child(1) .grid-item,
.formules-carousel .swiper-slide:nth-child(2) .grid-item,
.formules-carousel .swiper-slide:nth-child(3) .grid-item {
    background-position: left center;
}

/* ==========================================
   CARROUSEL SWIPER DES FORMULES
   ========================================== */
.formules-carousel {
    padding-bottom: 40px;
}

.formules-carousel .swiper-pagination-bullet {
    background-color: #cccccc;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.formules-carousel .swiper-pagination-bullet-active {
    background-color: var(--accordion-primary-color);
}

@media (min-width: 768px) {
    .formules-carousel {
        padding-bottom: 0;
    }
    .formules-carousel .swiper-pagination {
        display: none;
    }
}

/* ==========================================
   POPUPS FOCUS - DÉTAILS DES FORMULES (BLEU)
   ========================================== */
.focus-overlay {
    position: fixed; 
    inset: 0; 
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000; 
    display: none; 
    align-items: center; 
    justify-content: center;
    padding: 20px; 
    backdrop-filter: blur(5px); 
    animation: fadeIn 0.3s ease;
}

.focus-overlay.active { 
    display: flex; 
}

.focus-content {
    background: white; 
    border-radius: 12px; 
    padding: 40px; 
    max-width: 800px;
    width: 100%; 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3); 
    display: none;
    animation: slideIn 0.4s ease forwards;
}

.focus-content.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

@keyframes slideIn { 
    from { transform: translateY(30px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

.close-btn {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    background: transparent; 
    border: none;
    font-size: 2.5rem; 
    color: #aaa; 
    cursor: pointer; 
    line-height: 1; 
    transition: color 0.2s;
}

.close-btn:hover { 
    color: var(--grid-dark-color); 
}

.focus-content img.hero-image {
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    border-radius: 8px; 
    margin-bottom: 30px; 
}

.focus-content h2 { 
    font-size: 2.2rem; 
    color: var(--grid-dark-color); 
    margin-bottom: 15px; 
    font-weight: bold; 
}

.focus-content .emotional-hook {
    font-size: 1.1rem; 
    font-style: italic; 
    color: #555; 
    margin-bottom: 30px;
    border-left: 3px solid var(--grid-primary-color); 
    padding-left: 15px; 
    text-align: left;
}

.focus-content .value-prop, 
.focus-content .what-to-bring { 
    margin-bottom: 30px; 
    text-align: left;  
}

.focus-content h4 { 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
    color: var(--grid-dark-color); 
    font-weight: bold; 
}

.focus-content ul { 
    list-style: none; 
    padding: 0;  
}

.focus-content li { 
    margin-bottom: 10px; 
    display: flex; 
    align-items: flex-start; 
    text-align: left; 
}

.focus-content .value-prop li::before {
    content: '✓'; 
    color: var(--grid-primary-color); 
    font-weight: bold;
    margin-right: 10px; 
    font-size: 1.2rem; 
    text-align: left; 
}

.focus-content .what-to-bring li::before {
    content: '▹'; 
    color: var(--grid-text-color); 
    font-weight: bold;
    margin-right: 10px; 
    font-size: 1.2rem;
}

.focus-content .personal-touch {
    background: var(--grid-light-color); 
    padding: 20px; 
    border-radius: 8px;
    margin-bottom: 40px; 
    font-size: 0.95rem; 
    text-align: left;
}

.focus-content .cta-button {
    display: block; 
    width: 100%; 
    background-color: var(--grid-primary-color); 
    color: white;
    text-align: center; 
    padding: 18px 20px; 
    border-radius: 8px; 
    text-decoration: none;
    font-size: 1.2rem; 
    font-weight: 600; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.focus-content .cta-button:hover { 
    background-color: #005f8a; 
    transform: translateY(-3px); 
}

/* Styles pour la popup Semaine Signature */
.focus-content .custom-list li {
    margin-bottom: 1.2em;
    display: flex;
    align-items: flex-start;
}

.focus-content .custom-list li::before {
    content: "✓";
    color: var(--grid-primary-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 0.2em;
}

.focus-content .list-item-block {
    padding-left: 6px;
}

.focus-content .item-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #111;
    margin-bottom: 0.1em;
    line-height: 1.4;
}

.focus-content .item-desc {
    font-size: 0.96rem;
    font-weight: 300;
    color: #444;
    line-height: 1.5;
}

.legal-note {
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.85;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 10px 15px;
    border-left: 3px solid #ccc;
    background-color: #f9f9f9;
}

/* ==========================================
   ACCORDÉON EXPÉRIENCES DE GLISSE (DORÉ)
   ========================================== */
.custom-accordion-section {
    overflow-x: visible;
}

.custom-accordion-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid var(--accordion-border-color);
}

.custom-accordion-item {
    border-bottom: 1px solid var(--accordion-border-color);
    background-color: var(--accordion-bg-dark);
    border-left: 4px solid transparent;
    transition: border-left-color 0.4s ease;
}

.custom-accordion-item.active {
    border-left-color: var(--accordion-primary-color);
}

.custom-accordion-item:hover {
    border-left-color: var(--accordion-primary-color);
}

.custom-accordion-item:last-child {
    border-bottom: none;
}

/* En-tête de l'accordéon */
.custom-accordion-header {
    background-color: var(--accordion-bg-secondary);
    padding: 25px 30px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-accordion-header:hover {
    background-color: #4a4b4a;
}

.custom-accordion-header-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accordion-text-light);
    margin: 0;
}

.custom-accordion-header-content p {
    font-size: 1rem;
    color: var(--accordion-text-secondary);
    font-weight: 300;
    margin: 0;
    margin-top: 5px;
}

.custom-accordion-arrow {
    font-size: 1.8rem;
    color: var(--accordion-primary-color);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 300;
}

.custom-accordion-item.active .custom-accordion-arrow {
    transform: rotate(45deg);
}

/* Panneau de contenu */
.custom-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--accordion-text-secondary);
}

.custom-accordion-item.active .custom-accordion-panel {
    max-height: 2000px;
}

.custom-accordion-content {
    padding: 0 40px 40px 40px;
}

.custom-accordion-content img.hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px; 
    margin: 30px 0;
}

.custom-accordion-content h2 { 
    font-size: 2rem; 
    color: var(--accordion-text-light); 
    margin-bottom: 15px; 
    font-weight: 700;
}

.custom-accordion-content .emotional-hook {
    font-size: 1.1rem; 
    font-style: italic; 
    color: var(--accordion-text-secondary); 
    margin-bottom: 30px; 
    border-left: 3px solid var(--accordion-primary-color); 
    padding-left: 15px;
}

.custom-accordion-content h4 { 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
    color: var(--accordion-text-light); 
    font-weight: 600;
}

.custom-accordion-content ul { 
    list-style: none; 
    padding: 0; 
}

.custom-accordion-content li { 
    margin-bottom: 12px; 
    display: flex; 
    align-items: flex-start; 
}

.custom-accordion-content .value-prop li::before {
    content: '✓'; 
    color: var(--accordion-primary-color); 
    font-weight: bold; 
    margin-right: 12px; 
    font-size: 1.2rem; 
    margin-top: -2px;
}

.custom-accordion-content .what-to-bring li::before {
    content: '▹'; 
    color: var(--accordion-text-secondary); 
    font-weight: bold; 
    margin-right: 12px; 
    font-size: 1.2rem; 
    margin-top: -2px;
}

.custom-accordion-content .personal-touch {
    background: #222322;
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 40px; 
    font-size: 0.95rem; 
    border: 1px solid var(--accordion-border-color);
}

.custom-accordion-content .cta-button {
    display: inline-block; 
    background-color: var(--accordion-primary-color); 
    color: #1c1c1c;
    text-align: center; 
    padding: 15px 35px; 
    border-radius: 8px; 
    text-decoration: none;
    font-size: 1.1rem; 
    font-weight: 600; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-accordion-content .cta-button:hover { 
    background-color: #d4ac58;
    transform: translateY(-3px); 
}

.custom-accordion-content .cta-container {
    text-align: center;
    margin-top: 40px;
}

/* Responsive pour l'accordéon */
@media (max-width: 768px) {
    .custom-accordion-section { 
        padding: 20px 0; 
    }
    .custom-accordion-header { 
        padding: 20px; 
    }
    .custom-accordion-content { 
        padding: 0 20px 30px 20px; 
    }
    .custom-accordion-content img.hero-image { 
        height: 220px; 
        margin-top: 20px;
    }
    .custom-accordion-content h2 { 
        font-size: 1.8rem; 
    }
}

.photo-filtre-blanc {
    filter: grayscale(0%) opacity(70%);
}

/* ==========================================
   ANIMATION AU SCROLL
   ========================================== */
.reveal-from-right {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-from-right.is-visible {
    opacity: 1;
    transform: scale(1);
}




/* ==========================================
   PAGE BIO - STYLES SPÉCIFIQUES
   ========================================== */

/* Titre avec bordure dorée */
h2.titre {
    font-size: 1.2em;
    color: #6b7280; /* gray-600 */
    margin-bottom: 20px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--accordion-primary-color);
    display: inline-block;
}

.infinite-carousel {
    --swiper-navigation-color: var(--accordion-primary-color);
    margin: 40px 0;
    overflow: hidden;
}

.infinite-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

.infinite-carousel .swiper-slide {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infinite-carousel .swiper-slide img {
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive pour le carrousel */
@media (max-width: 768px) {
    .infinite-carousel .swiper-slide img {
        max-height: 250px;
    }
}


/* ==========================================
   PAGE RÉSERVER - STYLES SPÉCIFIQUES
   ========================================== */

/* Style pour le formulaire de réservation */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.form-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-container .form-intro {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #374151;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4682B4;
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    background-color: #4682B4;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #5a9bdc;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
}



/* ==========================================
   PAGE FAQ - STYLES SPÉCIFIQUES
   ========================================== */

/* Conteneur FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* En-tête de la FAQ - SUPPRIMER TOUT LE PADDING */
.faq-header {
    text-align: center;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 40px;
}

.faq-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #ffffff;
}

.faq-header p {
    margin: 0;
    font-size: 1.1em;
    color: #f0f0f2;
}

/* Sections thématiques */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8c061;
    display: inline-block;
}

.faq-section .section-intro {
    font-style: italic;
    color: #f0f0f2;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #bdc3c7;
}

/* Items FAQ (cartes accordéon) */
.faq-item {
    background-color: #ffffff;
    border-radius: 7px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    margin-bottom: 15px;
    transition: margin-bottom 0.3s ease;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 550;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
}

.faq-question:hover {
    color: #bb9948;
}

.faq-arrow {
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #34495e;
}

.faq-answer-content {
    padding: 0 25px 20px 25px;
    border-top: 1px solid #f0f0f0;
}

.faq-answer-content p {
    margin: 0;
    padding-top: 20px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* Layout 2 colonnes - ALIGNER EN HAUT */
.faq-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: 0px auto;
    padding: 20px;
    align-items: flex-start;
}

/* Navigation latérale */
.faq-nav {
    flex: 0 0 220px;
    position: sticky;
    top: 160px;
    align-self: flex-start;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.faq-nav h3 {
    font-size: 1.4em;
    color: #34495e;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e67e22;
}

.faq-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-nav li a {
    display: block;
    padding: 10px 10px;
    text-decoration: none;
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 0px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-nav li a:hover {
    background-color: #3c3d3c;
    color: #e8c061;
}

/* Contenu FAQ - SUPPRIMER LES MARGES DU HAUT */
.faq-content {
    flex: 1;
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Première section - AUCUN ESPACE EN HAUT */
.faq-content > .faq-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.faq-content > .faq-section:first-child .faq-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 992px) {
    .faq-layout {
        flex-direction: column;
    }

    .faq-nav {
        position: static;
        height: auto;
        margin-bottom: 0px;
        width: 100%;
    }
}

/* Scroll padding */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 56px;
}

@media (min-width: 1024px) {
    html {
        scroll-padding-top: 104px;
    }
}


/* ==========================================
   PAGE LIVRE - GALERIE D'IMAGES
   ========================================== */

.photo-conteneur {
    margin-bottom: 60px;
    text-align: center;
}

.photo-conteneur img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-conteneur img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.titre-de-photo {
    font-size: 1.3rem;
    font-weight: 600;
    color: #444444;
    margin-bottom: 25px;
    margin-top: 20px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .photo-conteneur {
        margin-bottom: 40px;
    }
    
    .titre-de-photo {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .photo-conteneur img {
        margin: 15px auto;
    }
}

/* Section extraits */
#extrait {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Section points de vente avec fond parallaxe */
#vente {
    min-height: 400px;
}

/* Amélioration des listes dans la section description */
#description ul {
    list-style: none;
    padding-left: 0;
}

#description ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}


/* Supprimer tout espace en haut du body et main */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* UNIQUEMENT sur les pages d'accueil (FR et EN), le main commence en haut */
body.home main,
body.page-template-template-accueil main,
body.page-template-template-home-en main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home main > section:first-child,
body.page-template-template-accueil main > section:first-child,
body.page-template-template-home-en main > section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Sur les autres pages, permettre le padding */
body:not(.home):not(.page-template-template-accueil):not(.page-template-template-home-en) main {
    padding-top: 150px !important;
}

@media (min-width: 1024px) {
    body:not(.home):not(.page-template-template-accueil):not(.page-template-template-home-en) main {
        padding-top: 200px !important;
    }
}