/*
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 — direction "Immersive" (05/09) : vert forêt / or / accent système teal,
       remplace l'ancien duo encre verdâtre / bleu marine sur tout le site. */
    --color-paper: #F9F8F6;
    --color-ink: #14201C;
    /* --color-primary reste le bleu marine historique : il porte le fond du pied de page,
       les titres h1/h2 et les liens sur tout le site. L'avoir basculé sur le teal (06/09)
       a fait virer pied de page + titres en bleu ciel — le teal est un accent de données
       (--color-teal), pas une couleur de structure. */
    --color-primary: #385A70;
    --color-secondary: #C89445;
    --color-gold-light: #E3B563;
    --color-teal: #4FA8C9;
    --color-border: #E3DCC8;

    /* Typographie */
    --font-titres: 'Merriweather', serif;
    --font-textes: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* 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 top, rgba(20,32,28,.97) 0%, rgba(20,32,28,.8) 28%, rgba(20,32,28,.12) 60%, rgba(20,32,28,.34) 100%);
    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 ACCUEIL — Direction Immersive (06/09)

   Deux voix, deux niveaux : le titre sérif porte la voix éditoriale du magazine
   (premium, vouvoiement implicite), le bloc conversationnel juste en dessous
   porte la voix de l'assistant (bulle tapée lettre par lettre + suggestions +
   champ de saisie). Objectif : que le pattern de chat soit visible et vivant
   dès l'accueil pour donner envie de basculer sur /chat/, sans transformer la
   page d'accueil en fenêtre de chat.

   Le champ est un <form method="get" action="/chat/"> : il fonctionne sans JS,
   l'animation n'est qu'une amélioration progressive.
   ========================================================================== */

/* Le hero accueil porte un bloc entier (titre + bulle + puces + champ) sur une
   photo souvent claire (ciel, mer) : le voile universel laissait tout illisible. */
.home .cc-hero-global {
    min-height: 82vh;
    margin-bottom: 0;
}

.home .cc-hero-overlay {
    background:
        linear-gradient(to top, rgba(20,32,28,.92) 0%, rgba(20,32,28,.74) 45%, rgba(20,32,28,.48) 100%),
        linear-gradient(to right, rgba(20,32,28,.34), rgba(20,32,28,.04) 55%, rgba(20,32,28,.34));
}

.home .cc-hero-content {
    padding-top: 56px;
    padding-bottom: 40px;
}

.cc-hero-kicker {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: 1.15rem;
}

.cc-hero-title--home {
    font-size: clamp(1.85rem, 3.9vw, 3rem);
    line-height: 1.16;
    margin-bottom: 2.1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.45);
}

/* ── Bloc conversationnel ─────────────────────────────────────────────── */
.cc-hero-convo {
    max-width: 620px;
    margin: 0 auto;
}

.cc-hero-bubble {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    text-align: left;
    background: rgba(249,248,246,.10);
    border: 1px solid rgba(249,248,246,.17);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 16px 16px 16px 5px;
    padding: 15px 18px;
    /* Réserve la hauteur finale pour que rien ne saute pendant la frappe. */
    min-height: 76px;
}

.cc-hero-bubble-avatar {
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-gold-light));
    color: var(--color-ink);
}

.cc-hero-bubble-text {
    margin: 0;
    /* Le thème justifie les <p> : dans une bulle étroite ça crée des blancs
       inter-mots béants et ça ne ressemble plus à un message de chat. */
    text-align: left;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(249,248,246,.96);
}

.cc-hero-title-cursor {
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-left: 2px;
    vertical-align: -0.12em;
    background: var(--color-gold-light);
    animation: cc-hero-cursor-blink 1s step-end infinite;
}
.cc-hero-title-cursor.is-done {
    animation: none;
    opacity: 0;
}
@keyframes cc-hero-cursor-blink {
    50% { opacity: 0; }
}

.cc-hero-reveal {
    opacity: 0;
}
.cc-hero-reveal.is-visible {
    animation: cc-hero-fadeup 500ms ease both;
}
@keyframes cc-hero-fadeup {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Suggestions ──────────────────────────────────────────────────────── */
.cc-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 16px;
}

.cc-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-textes);
    font-size: 12.5px;
    line-height: 1;
    color: rgba(249,248,246,.9);
    background: rgba(249,248,246,.08);
    border: 1px solid rgba(249,248,246,.22);
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}
.cc-hero-chip:hover,
.cc-hero-chip:focus-visible {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-ink);
}

.cc-hero-chip--map {
    border-color: rgba(227,181,99,.55);
    color: var(--color-gold-light);
}

/* ── Champ de saisie (mène à /chat/) ──────────────────────────────────── */
.cc-hero-ask {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(249,248,246,.97);
    border-radius: 999px;
    padding: 5px 5px 5px 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,.34);
}

.cc-hero-ask-icon {
    display: flex;
    flex-shrink: 0;
    color: #9a9a9a;
}

.cc-hero-ask-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    padding: 11px 0;
    font-family: var(--font-textes);
    font-size: 14.5px;
    color: var(--color-ink);
}
.cc-hero-ask-input::placeholder { color: #9a9a9a; }

.cc-hero-ask-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    /* Le style global `button` impose padding:12px 24px : avec box-sizing:border-box
       il réduisait la zone de contenu à zéro et l'icône disparaissait. */
    padding: 0;
    line-height: 1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-gold-light));
    color: var(--color-ink);
    transition: transform .15s;
}
.cc-hero-ask-btn:hover { transform: scale(1.06); }
.cc-hero-ask-btn:active { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
    .cc-hero-title-cursor { animation: none; }
    .cc-hero-reveal { opacity: 1; }
}

@media (max-width: 600px) {
    .home .cc-hero-global { min-height: 88vh; }
    .home .cc-hero-content { padding-top: 32px; }
    .cc-hero-title--home { margin-bottom: 1.5rem; }
    .cc-hero-bubble { padding: 13px 15px; gap: 9px; }
    .cc-hero-bubble-text { font-size: 14px; }
    .cc-hero-chips { gap: 7px; }
    .cc-hero-chip { font-size: 12px; padding: 7px 12px; }
}

/* ==========================================================================
   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;
}
/* Logo en texte (cc_logo(), carnet-catalan-core/includes/regions.php) : le nom suit le pays de la page.
   Reprend le logo image d'origine : titre à empattements, trait doré décalé, slogan en capitales. */
.cc-logo {
    display: inline-grid;
    justify-items: end;
    color: #192421;
    text-decoration: none;
    line-height: 1;
}
.cc-logo-nom {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    font-size: 30px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    justify-self: start;
}
.cc-logo-trait {
    width: 70%;
    height: 2px;
    margin: 6px 0 5px;
    border-radius: 2px;
    background: var(--color-secondary);
}
.cc-logo-slogan {
    font-family: 'Montserrat', var(--font-textes);
    font-weight: 500;
    font-size: 8.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .cc-logo-nom { font-size: 23px; }
    .cc-logo-slogan { font-size: 7px; }
}
.site-title {
    font-family: var(--font-titres);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- ZONE DROITE (menu + compte + burger) --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--color-ink);
    background: rgba(56, 90, 112, 0.08);
    transition: background 0.2s, color 0.2s;
}
.header-account-link:hover {
    background: var(--color-primary);
    color: var(--color-paper);
}
.header-account-avatar {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* --- 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 (pages & articles) ──────────
   Volontairement limité à body:not(.home) : ce voile clair suffit derrière un
   simple titre, mais laissait le bloc conversationnel de l'accueil illisible.
   L'accueil a son propre voile, plus dense (.home .cc-hero-overlay). Le
   !important d'origine gagnait sur les deux — retiré, la spécificité suffit. */
body:not(.home) .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%
    );
}

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