/*
Theme Name: Carnet Catalan Pro
Description: Thème Classique Hybride, 100% sur-mesure et optimisé Core Web Vitals.
Author: Lead Developer
Version: 1.0.1
*/

/* ==========================================================================
   VARIABLES GLOBALES (Charte Graphique & Tailles)
   ========================================================================== */
:root {
    /* Couleurs */
    --color-paper: #F9F8F6;
    --color-ink: #192421;
    --color-primary: #385A70;
    --color-secondary: #C89445;
    
    /* Typographie */
    --font-titres: 'Merriweather', serif;
    --font-textes: 'Inter', sans-serif;
    
    /* Tailles de texte centralisées */
    --size-texte: 15px; 
    --size-petit: 0.85rem; 
    --size-petitS: 0.7rem; 
}

/* ==========================================================================
   RESET MINIMALISTE
   ========================================================================== */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    background: var(--color-paper); 
    color: var(--color-ink); 
    font-family: var(--font-textes); 
    font-size: var(--size-texte);
    line-height: 1.65; 
    overflow-x: hidden !important; /* Coupe formellement tout débordement horizontal */
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}
/* Comportement des liens généraux */
a { 
    text-decoration: none; 
    color: var(--color-ink); 
    transition: 0.3s; 
}

/* Les liens dans les paragraphes d'articles (Soulignement Ocre élégant) */
p a {
    color: var(--color-ink);
    text-decoration: underline;
    text-decoration-color: var(--color-secondary);
    text-underline-offset: 4px;
    font-weight: 600;
}
p a:hover {
    color: var(--color-secondary);
}


h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-titres); 
    color: var(--color-ink); 
    margin-bottom: 1rem; 
    line-height: 1.3;
}

/* ==========================================================================
   BOUTONS (Le Bleu est verrouillé EXCLUSIVEMENT ICI)
   ========================================================================== */
/* Boutons Gutenberg et Boutons Généraux */
.wp-block-button__link,
.button, 
button, 
input[type="submit"] {
    display: inline-block;
    background-color: var(--color-primary) ;
    color: var(--color-paper) ;
    border-radius: 4px ;
    padding: 12px 24px ;
    text-decoration: none ;
    font-weight: 600 ;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease ;
}

/* Au survol, le bouton s'assombrit légèrement et se soulève */
.wp-block-button__link:hover,
.button:hover, 
button:hover, 
input[type="submit"]:hover {
    /* background-color: var(--color-ink) ;  */
    transform: translateY(-2px) ;
}

/* ==========================================================================
   SUPPORT GUTENBERG NATIF (Alignements)
   ========================================================================== */
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.alignwide {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

p{
	text-align:justify;
}

/* Conteneur Global */
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ==========================================================================
   HERO UNIVERSEL (Pages & Articles)
   ========================================================================== */
.cc-hero-global {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 50vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem; 
}

.home .cc-hero-global {
    min-height: 70vh;
}

.cc-hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.cc-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(42, 44, 43, 0.2), rgba(42, 44, 43, 0.7));
    z-index: 2;
}

.cc-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-paper);
    padding: 0 20px;
}

.cc-hero-title {
    color: var(--color-paper);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.cc-hero-subtitle {
	text-align: center;
	font-family: var(--font-titres);
	font-style:italic;
    color: var(--color-paper);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA Buttons */
.cc-hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 2rem;
}

.cc-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-textes);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.cc-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    text-decoration: none !important;
}

.cc-hero-btn--primary {
    background-color: var(--color-secondary);
    color: var(--color-paper) !important;
    border: 2px solid var(--color-secondary);
}

.cc-hero-btn--primary:hover {
    background-color: #b5832f;
    border-color: #b5832f;
    color: var(--color-paper) !important;
}

.cc-hero-btn--secondary {
    background-color: transparent;
    color: var(--color-paper) !important;
    border: 2px solid rgba(255,255,255,0.8);
}

.cc-hero-btn--secondary:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
    color: var(--color-paper) !important;
}

@media (max-width: 480px) {
    .cc-hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .cc-hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

.cc-hero-desc, .cc-hero-meta {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
}

/* ==========================================================================
   TAGS (Dans le Hero)
   ========================================================================== */
.cc-hero-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.cc-hero-category a {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-paper);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.2s;
}
.cc-hero-category a:hover {
    background: var(--color-primary); 
}

.cc-hero-geo a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(5px); 
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-paper);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s;
}
.cc-hero-geo a:hover {
    background: var(--color-paper);
    color: var(--color-ink);
}

/* ==========================================================================
   HEADER & MENU PRINCIPAL
   ========================================================================== */
.site-header {
    background-color: var(--color-paper);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; 
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px clamp(20px, 5vw, 100px); 
    width: 100%;
    max-width: 100vw; 
}

.site-branding img {
    max-height: 60px; 
    width: auto;
}
.site-title {
    font-family: var(--font-titres);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- MENU ORDINATEUR --- */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px; 
    align-items: center;
}
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--color-ink);
    padding: 10px 0;
}
.main-navigation a:hover { color: var(--color-primary); }

/* Sous-menus (Déroulant) */
.sub-menu{display: block!important; right:0;}

.main-navigation ul ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-paper);
    min-width: 280px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 3px solid var(--color-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* On force le dernier élément à s'ouvrir vers la gauche pour ne pas déborder */
.main-navigation > ul > li:last-child ul.sub-menu {
    left: auto;
    right: 0;
}

.main-navigation li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul.sub-menu a {
    font-weight: 400;
    text-transform: none;
    padding: 17px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    white-space: nowrap; 
}
.main-navigation ul ul.sub-menu a:hover {
    background: rgba(56, 90, 112, 0.05);
    color: var(--color-primary);
    padding-left: 30px; 
}

/* --- MENU MOBILE (< 768px) --- */
.menu-toggle { display: none; background: none; border: none; color: var(--color-ink); cursor: pointer; }

@media (max-width: 768px) {
    .menu-toggle { display: block; padding:12px 0; }
    
    .main-navigation {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-paper);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .main-navigation.is-open { display: block; } 
    
    .main-navigation ul { flex-direction: column; gap: 0; }
    .main-navigation a { padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
    
    /* Sous-menus sur mobile */
    .main-navigation ul ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid var(--color-secondary); 
        margin-left: 15px;
        padding-left: 15px;
        display: block; /* Toujours déplié sur mobile */
    }
}

/* ==========================================================================
   FIL D'ARIANE (Sous le Hero)
   ========================================================================== */
.cc-breadcrumb {
	margin: 0 2%;
    font-size: var(--size-petitS);
    font-family: var(--font-textes);
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(42, 44, 43, 0.1); 
    color: var(--color-primary); 
}

.cc-breadcrumb a {
    color: var(--color-ink);
    opacity: 0.6; 
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.cc-breadcrumb a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.cc-breadcrumb .separator {
    /* margin: 0 12px; */
    color: var(--color-secondary); 
}

.cc-breadcrumb .current {
    font-weight: 700;
}
/* ==========================================================================
   FILTRES CROISÉS (Menu Déroulant Premium)
   ========================================================================== */
.cc-filter-dropdown {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    z-index: 50; /* Doit passer par-dessus les articles */
}

/* Le Bouton Principal */
.cc-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(42, 44, 43, 0.15);
    padding: 10px 20px;
    border-radius: 30px; /* Forme pilule douce */
    cursor: pointer;
    font-family: var(--font-textes);
    font-size: 0.9rem;
    color: var(--color-ink);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.cc-filter-toggle:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cc-filter-label {
    opacity: 0.6;
    font-weight: 600;
}

.cc-filter-current {
    font-weight: 700;
    color: var(--color-primary);
}

/* Rotation de la flèche quand ouvert */
.cc-filter-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.cc-filter-toggle svg {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

/* La Boîte Déroulante (Cachée par défaut) */
.cc-filter-menu {
    position: absolute;
    top: calc(100% + 10px); /* 10px sous le bouton */
    left: 0;
    background: var(--color-paper);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 240px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* L'état ouvert (Géré par JS) */
.cc-filter-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Les Liens dans la boîte */
.cc-filter-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.cc-filter-menu a:hover {
    background: rgba(56, 90, 112, 0.05);
    color: var(--color-primary);
}

/* Option actuellement sélectionnée */
.cc-filter-menu a.active {
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(56, 90, 112, 0.05);
    border-left: 3px solid var(--color-primary);
}

/* ==========================================================================
   DESIGN ÉDITORIAL DU CONTENU (Gutenberg dans les Articles)
   ========================================================================== */

/* 1. Le Conteneur Principal (Largeur de lecture optimale) */
.article-content {
    max-width: 760px; /* La taille scientifique parfaite pour ne pas fatiguer l'oeil (environ 75 caractères par ligne) */
    margin: 0 auto;
    font-size: var(--size-texte);
    line-height: 1.8; /* Interlignage très aéré pour un confort de lecture premium */
    color: var(--color-ink);
}

/* 2. Les Paragraphes (Respiration) */
.article-content p {
    margin-bottom: 2rem; /* Grand espace sous chaque paragraphe */
    font-weight: 400;
}

/* La Lettrine (Lettrine automatique sur le tout premier paragraphe de l'article) */
.article-content > p:first-of-type::first-letter {
    font-family: var(--font-titres);
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 4px;
    color: var(--color-primary); /* La grande lettre est en Bleu Méditerranée */
    font-weight: 700;
}

/* 3. Les Titres H2 (Grandes sections) */
.article-content h2 {
    font-family: var(--font-titres);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--color-ink);
    margin-top: 4rem; /* Énorme respiration AVANT le titre */
    margin-bottom: 1.5rem; /* Petit espace APRÈS le titre */
    padding-bottom: 1rem;
    position: relative;
    font-weight: 700;
    line-height: 1.3;
}
/* Le Liseré Ocre sous le H2 (Touche Luxe) */
.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px; /* Petite barre élégante */
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

/* 4. Les Titres H3 (Sous-sections) */
.article-content h3 {
    font-family: var(--font-textes); /* H3 en Sans-Serif pour trancher avec le H2 en Serif */
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase; /* Donne un côté très "Rubrique" */
    letter-spacing: 1px;
}

/* 5. Les Listes à puces (Stylisées) */
.article-content ul {
    list-style: none; /* Enlève la puce noire moche de base */
    margin: 0 0 2.5rem 0;
    padding-left: 0;
}

.article-content ul li {
    position: relative;
    padding-left: 28px; /* Laisse la place pour notre puce personnalisée */
    margin-bottom: 1rem; /* Espace entre chaque point */
    line-height: 1.6;
}

/* La Puce Personnalisée (Un tiret ou un carré de couleur) */
.article-content ul li::before {
    content: '■'; /* Petit carré élégant */
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--color-secondary); /* Puce en Ocre Doré */
    font-size: 0.8rem;
}

/* 6. Les Citations (Blockquotes Gutenberg) */
.article-content blockquote {
    margin: 3rem 0;
    padding: 2rem 3rem;
    background: #ffffff; /* Fond très légèrement détaché */
    border-left: 4px solid var(--color-primary); /* Grosse barre bleue à gauche */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    font-family: var(--font-titres);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-ink);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    margin-bottom: 0; /* Enlève la marge du paragraphe dans la citation */
}

/* 7. Les Images Gutenberg (Respiration) */
.article-content figure.wp-block-image {
    margin: 3rem 0; /* Grande respiration autour des photos */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.article-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-ink);
    opacity: 0.6;
    margin-top: 10px;
    font-style: italic;
}

/* ==========================================================================
   COMPOSITIONS SUR-MESURE (Patterns Gutenberg)
   ========================================================================== */

/* 1. La Fiche Adresse (Restaurant / Hôtel) */
.cc-pattern-adresse {
    background-color: var(--color-paper);
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-secondary); /* Liseré Ocre en haut */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-radius: 6px;
    padding: 2rem !important;
    margin: 3rem 0;
}
.cc-pattern-adresse h3 {
    margin-top: 0 !important;
    font-size: 1.4rem !important;
}
.cc-pattern-adresse ul {
    margin: 1.5rem 0 !important;
}
.cc-pattern-adresse ul li::before {
    display: none; /* Enlève la puce carré qu'on avait mise globalement */
}
.cc-pattern-adresse ul li {
    padding-left: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 8px;
    margin-bottom: 8px !important;
}
.cc-pattern-adresse ul li:last-child { border-bottom: none; }

/* 2. L'Astuce du Local */
.cc-pattern-astuce {
    background-color: rgba(56, 90, 112, 0.05); /* Fond Bleu ultra léger */
    border-left: 4px solid var(--color-primary); /* Liseré Bleu à gauche */
    padding: 1.5rem 2rem !important;
    border-radius: 0 6px 6px 0;
    margin: 3rem 0;
}
.cc-pattern-astuce h4 {
    margin-top: 0 !important;
    color: var(--color-primary);
    font-family: var(--font-textes);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}
.cc-pattern-astuce p { margin-bottom: 0 !important; }

/* 3. La Fiche Randonnée (3 colonnes centrées) */
.cc-pattern-rando {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 1.5rem !important;
    margin: 3rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.cc-pattern-rando .wp-block-column {
    border-right: 1px solid rgba(0,0,0,0.05);
}
.cc-pattern-rando .wp-block-column:last-child { border-right: none; }
.cc-pattern-rando p { margin-bottom: 0 !important; font-size: 0.95rem; }

/* Responsive des 3 colonnes Rando sur mobile */
@media (max-width: 600px) {
    .cc-pattern-rando .wp-block-column {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .cc-pattern-rando .wp-block-column:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
}

/* ==========================================================================
   FAQ — ACCORDÉON ÉLÉGANT
   Cible : wp-block-details (bloc Gutenberg natif) + details HTML custom
   ========================================================================== */

/* --- Wrapper de section (optionnel, à poser dans l'éditeur) --- */
.cc-faq-section {
    margin: 3rem 0;
}

/* Titre de section FAQ avec liseré Ocre */
.cc-faq-section > h2,
/* ==========================================================================
   FAQ SCHEMA — .ccc-faq / .ccc-faq-item (accordéon JS)
   ========================================================================== */

.ccc-faq {
    margin: 3rem 0;
}

.ccc-faq > h2 {
    font-family: var(--font-titres);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--color-ink);
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
}

/* Chaque item */
.ccc-faq-item {
    background: #ffffff;
    border: 1px solid rgba(25, 36, 33, 0.08);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ccc-faq-item:hover {
    box-shadow: 0 4px 18px rgba(56, 90, 112, 0.1);
    border-color: rgba(56, 90, 112, 0.2);
}

.ccc-faq-item.is-open {
    border-color: var(--color-primary);
    box-shadow: 0 6px 24px rgba(56, 90, 112, 0.13);
}

/* Question (h3) — trigger cliquable */
.ccc-faq-item h3 {
    cursor: pointer;
    margin: 0;
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-titres);
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--color-ink);
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4;
    transition: color 0.2s ease, background-color 0.2s ease;
    user-select: none;
}

/* Icône + (cercle Bleu) */
.ccc-faq-item h3::after {
    content: '+';
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-textes);
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease, background-color 0.25s ease;
}

/* Icône × (cercle Ocre) — état ouvert */
.ccc-faq-item.is-open h3::after {
    content: '×';
    font-size: 1.5rem;
    background: var(--color-secondary);
    transform: rotate(90deg);
}

/* Question colorée quand ouvert */
.ccc-faq-item.is-open h3 {
    color: var(--color-primary);
    background-color: rgba(56, 90, 112, 0.04);
    border-bottom: 1px solid rgba(56, 90, 112, 0.1);
}

/* Réponse — cachée par défaut, animée à l'ouverture */
.ccc-faq-item [itemprop="acceptedAnswer"] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.ccc-faq-item.is-open [itemprop="acceptedAnswer"] {
    max-height: 600px;
}

.ccc-faq-item [itemprop="acceptedAnswer"] p {
    padding: 1.2rem 1.5rem;
    font-family: var(--font-textes);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-ink);
    border-left: 3px solid var(--color-secondary);
    margin: 0;
    animation: faq-open 0.25s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .ccc-faq-item h3 { padding: 1rem 1.1rem; font-size: 0.92rem !important; }
    .ccc-faq-item [itemprop="acceptedAnswer"] p { padding: 1rem 1.1rem; font-size: 0.9rem; }
}

/* ==========================================================================
   DESIGN PREMIUM v2 — Micro-animations, Header scroll, Hero gradient
   ========================================================================== */

/* Sélection texte ocre */
::selection {
    background: rgba(200, 148, 69, 0.22);
    color: var(--color-ink);
}

/* Font smoothing global */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ── Fade-in-up (piloté par premium.js IntersectionObserver) ───── */
.cc-animate {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.cc-animate-d1 { transition-delay: 0.08s; }
.cc-animate-d2 { transition-delay: 0.16s; }
.cc-animate-d3 { transition-delay: 0.24s; }
.cc-animate-d4 { transition-delay: 0.32s; }
.cc-animate-d5 { transition-delay: 0.40s; }

/* ── Header scroll effect (classe ajoutée par premium.js) ────────── */
.site-header {
    transition: padding 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
.site-header--scrolled {
    box-shadow: 0 2px 24px rgba(25, 36, 33, 0.11);
    background-color: rgba(249, 248, 246, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ── Hero overlay gradient directionnel ─────────────────────────── */
.cc-hero-overlay {
    background: linear-gradient(
        140deg,
        rgba(25, 36, 33, 0.70) 0%,
        rgba(25, 36, 33, 0.42) 55%,
        rgba(56, 90, 112, 0.18) 100%
    ) !important;
}

/* ── Focus styles accessibles ───────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: 3px;
}