/*
Theme Name: TBM06 V3
Theme URI: https://www.tbm06.fr/
Author: Léo (refonte TBM06)
Author URI: https://www.tbm06.fr/
Description: Thème propre et léger pour TBM06.fr (Très Bon Média Côte d'Azur). Home V3 mobile-first : header logo bulle, player radio RadioKing, une éditoriale (sticky + kicker), infos curées, services, sorties (agenda), WhatsApp, La Socca. Aucune meta SEO codée en dur (Yoast gère). Design system : Inter, fond blanc, bleu #0E63B3, jaune CTA #FFD60A.
Version: 3.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tbm06-v3
Tags: news, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   TBM06 V3 — Design system
   Palette : bleu #0E63B3 (principal), bleu nuit #0A3D6E,
   jaune #FFD60A (CTA only), noir #14110F (structure),
   gris #6B655C, vert WhatsApp #1FAF54. Fond blanc dominant.
   Police : Inter. Mobile-first ; desktop >= 1024px.
   ========================================================= */

:root{
  --bleu:#0E63B3;
  --bleu-d:#0A3D6E;
  --jaune:#FFD60A;
  --noir:#14110F;
  --gris:#6B655C;
  --vert-wa:#1FAF54;
  --gap:64px;          /* espacement inter-sections mobile */
  --gut:20px;          /* gouttière */
}

*{box-sizing:border-box;margin:0;padding:0}

html{-webkit-text-size-adjust:100%}

body{
  background:#fff;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color:var(--noir);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

img{max-width:100%;height:auto}
a{text-decoration:none;color:inherit}
button{font-family:inherit;cursor:pointer;border:0;background:none}

.tbm-skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.tbm-skip-link:focus{position:fixed;left:8px;top:8px;width:auto;height:auto;background:#fff;color:var(--bleu);padding:10px 16px;border-radius:8px;z-index:1000;box-shadow:0 2px 12px rgba(0,0,0,.25)}

/* Conteneur central : limite la largeur sur desktop, garde l'esprit mobile-first */
.tbm-shell{max-width:600px;margin:0 auto;background:#fff;overflow:hidden} /* plage tablette exploitée (était figé 430px) */

.pad{padding:0 var(--gut)}
section{margin-bottom:var(--gap)}

/* ---------- Titre de section : sticker ---------- */
/* Sticker recadré au texte, ALIGNÉ À GAUCHE, bien espacé des cartes (retour Laurent 12/06). */
.tbm-h2{
  display:block;width:fit-content;
  margin-right:auto; /* force le calage à gauche */
  font-size:13px;font-weight:900;letter-spacing:.8px;
  text-transform:uppercase;text-align:center;white-space:nowrap;
  color:var(--noir);background:#fff;
  border:2px solid var(--noir);
  box-shadow:4px 4px 0 var(--jaune);
  padding:10px 18px;margin:0 auto 40px var(--gut);
  transform:rotate(-2deg);
}

/* ---------- HEADER ---------- */
.tbm-header{display:flex;align-items:center;justify-content:space-between;padding:6px var(--gut) 12px} /* padding-top réduit : colle le header au player sticky */
.tbm-header .tbm-logo img{height:92px;width:auto;display:block} /* logo bulle embarqué, GROS (jamais riquiqui) */
.tbm-burger{font-size:24px;color:var(--bleu);font-weight:700;line-height:1;padding:4px;display:inline-flex;align-items:center}
.tbm-desktop-nav{display:none}

/* Panneau de recherche (révélé par la loupe, desktop). Caché tant que [hidden].
   Sur mobile, la recherche passe par le drawer / la page de recherche, pas par ce panneau. */
.tbm-search-panel{display:none}
@media (min-width:1024px){
  .tbm-header{flex-wrap:wrap} /* le panneau passe sur sa propre ligne sous la nav */
  .tbm-search-panel{display:block;flex-basis:100%;padding:14px 0 0}
  .tbm-search-panel[hidden]{display:none}
}

/* Drawer mobile (nav burger) */
.tbm-drawer{
  position:fixed;inset:0;z-index:900;
  background:rgba(10,61,110,.97);
  display:flex;flex-direction:column;
  padding:24px var(--gut);
  transform:translateX(100%);
  transition:transform .25s ease;
  visibility:hidden;
}
.tbm-drawer.is-open{transform:translateX(0);visibility:visible}
.tbm-drawer-top{display:flex;justify-content:flex-end}
.tbm-drawer-close{font-size:30px;color:#fff;line-height:1;padding:4px 8px}
.tbm-drawer nav{display:flex;flex-direction:column;gap:4px;margin-top:24px}
.tbm-drawer nav a{
  color:#fff;font-size:20px;font-weight:800;letter-spacing:.5px;
  text-transform:uppercase;padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.15);
}
.tbm-drawer nav a:last-child{border-bottom:0}

/* ---------- MENU WORDPRESS ASSIGNÉ (wp_nav_menu) ----------
   Quand un menu « primary » est assigné en admin, wp_nav_menu génère des <ul>/<li>.
   Sans ces règles le layout casse (puces, retours à la ligne). On neutralise les
   puces/marges et on hérite du style des liens. Drawer = vertical, desktop = horizontal. */
.tbm-desktop-menu,
.tbm-drawer-menu{list-style:none;margin:0;padding:0}
.tbm-desktop-menu li,
.tbm-drawer-menu li{list-style:none}

/* Drawer : liste verticale, liens stylés comme les liens drawer par défaut. */
.tbm-drawer-menu{display:flex;flex-direction:column;gap:4px}
.tbm-drawer-menu li{width:100%}
.tbm-drawer-menu a{
  display:block;color:#fff;font-size:20px;font-weight:800;letter-spacing:.5px;
  text-transform:uppercase;padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.15);
}
.tbm-drawer-menu li:last-child a{border-bottom:0}

/* Desktop : liste horizontale (caché en mobile car .tbm-desktop-nav l'est déjà). */
.tbm-desktop-menu{display:flex;align-items:center;gap:26px}
.tbm-desktop-menu a{font-size:14px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--noir)}
.tbm-desktop-menu a:hover{color:var(--bleu)}

/* (Player radio du thème supprimé le 10/06/2026 : le player sticky = snippet #80, hors thème.) */

/* ---------- HARMONISATION DU PLAYER STICKY (snippet #80) ----------
   Le snippet garde son markup et son JS ; le thème le recolore seulement
   pour qu'il colle à la palette V3 (retour Laurent 11/06 : trop foncé,
   il paraissait seul au-dessus de la home blanche). */
.tbm-player-top{
  --tbm-player-navy:#0E63B3;
  --tbm-player-navy-deep:#0A3D6E;
  background:var(--bleu) !important;
}
.tbm-player-top .tbm-player-top-btn-main{
  background:var(--jaune) !important;
  color:var(--noir) !important;
}
.tbm-player-top .tbm-player-top-btn-main svg{fill:var(--noir) !important}
.tbm-player-top .tbm-live-dot{background:var(--jaune) !important}
.tbm-player-top .tbm-player-top-live-label,
.tbm-player-top .tbm-player-top-title,
.tbm-player-top .tbm-player-top-artist{color:#fff !important}

/* ---------- HERO / LA UNE ---------- */
/* .media = wrapper limité À LA PHOTO : c'est lui qui porte le gradient et le titre,
   pour qu'ils ne débordent JAMAIS sur la rangée du bouton « Lire » (.below en flux normal). */
.tbm-hero{margin:8px 0 var(--gap)} /* léger air sous le header depuis le retrait du player */
.tbm-hero .media{position:relative;display:block;text-decoration:none;color:inherit}
.tbm-hero .img{width:100%;aspect-ratio:4/5;background:#000;display:block;object-fit:cover}
.tbm-hero .grad{position:absolute;left:0;right:0;top:0;bottom:0;background:linear-gradient(to top,rgba(0,0,0,.85) 0%,rgba(0,0,0,.45) 18%,transparent 42%);pointer-events:none}
.tbm-hero .body{position:absolute;left:0;right:0;bottom:0;padding:0 var(--gut) 12px;pointer-events:none}
.tbm-hero .kick{display:inline-block;background:var(--bleu);color:#fff;font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;padding:5px 12px;border-radius:6px;margin-bottom:8px}
.tbm-hero h1{font-size:25px;font-weight:900;line-height:1.08;letter-spacing:-.5px;color:#fff}
.tbm-hero .below{padding:14px var(--gut) 0}
.cta{display:inline-block;background:var(--jaune);color:var(--noir);font-size:14px;font-weight:800;letter-spacing:.5px;padding:13px 26px;border-radius:30px}
.cta:focus-visible{outline:3px solid var(--bleu);outline-offset:2px}

/* ---------- CARTES INFOS ---------- */
.tbm-cards{display:flex;flex-direction:column;gap:26px;padding:0 var(--gut)}
.tbm-acard .img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;display:block;background:#ddd;margin-bottom:11px}
.tbm-acard h3{font-size:19px;font-weight:800;line-height:1.18;letter-spacing:-.3px}
.tbm-acard .pillc{display:inline-block;background:var(--bleu);color:#fff;font-size:12px;font-weight:800;letter-spacing:1px;text-transform:uppercase;padding:5px 11px;border-radius:6px;margin-bottom:8px}

.tbm-voir{display:block;text-align:center;margin:26px var(--gut) 0}
.tbm-voir a{display:inline-block;border:2px solid var(--bleu);color:var(--bleu);font-size:13px;font-weight:800;letter-spacing:.5px;padding:12px 24px;border-radius:30px}

/* ---------- CA PEUT VOUS SERVIR ---------- */
/* Services = "touches de téléphone" : keys blanches en relief, icône sur tuile colorée,
   enfoncement au clic (ludique, incitatif). */
.tbm-serv{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 var(--gut)}
.tbm-serv a{background:#fff;border:2px solid var(--noir);border-radius:16px;box-shadow:0 5px 0 var(--noir);display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 10px 16px;text-align:center;transition:transform .08s ease,box-shadow .08s ease}
.tbm-serv a:hover{transform:translateY(-1px);box-shadow:0 6px 0 var(--noir)}
.tbm-serv a:active{transform:translateY(4px);box-shadow:0 1px 0 var(--noir)}
.tbm-serv .ic{width:56px;height:56px;border-radius:14px;border:2px solid var(--noir);display:flex;align-items:center;justify-content:center;font-size:27px;line-height:1}
.tbm-serv a:nth-child(1) .ic{background:var(--bleu);color:#fff}
.tbm-serv a:nth-child(2) .ic{background:var(--jaune);color:var(--noir)}
.tbm-serv a:nth-child(3) .ic{background:var(--bleu-d);color:#fff}
.tbm-serv a:nth-child(4) .ic{background:var(--rose,#E83A6E);color:#fff}
.tbm-serv a:nth-child(5) .ic{background:var(--vert-wa,#1FAF54);color:#fff}
.tbm-serv span{font-size:13px;font-weight:800;color:var(--noir);line-height:1.15}

/* Duo WhatsApp + Socca : 2 colonnes, grosse police, ludique */
.tbm-duo{display:grid;grid-template-columns:1fr;gap:16px;margin:0 var(--gut)}

/* ---------- SORTIES (coin coin) ---------- */
.tbm-coin{position:relative;width:fit-content;margin:0 var(--gut) 30px}
.tbm-coin .canard{position:absolute;right:-34px;top:-30px;height:46px;z-index:2;transform:rotate(6deg);width:auto}
.tbm-coin .tbm-h2{margin:0}

.tbm-scards{display:flex;gap:14px;overflow-x:auto;padding:0 var(--gut) 8px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tbm-scards::-webkit-scrollbar{display:none}
.tbm-scard{flex:none;width:235px;scroll-snap-align:start;background:#181818;border-radius:16px;overflow:hidden;text-align:center}
.tbm-scard img,.tbm-scard-noimg{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:#222}
.tbm-scard .in{padding:12px 14px 16px}
.tbm-scard .pillj{display:inline-block;background:var(--jaune);color:var(--noir);font-size:12px;font-weight:900;letter-spacing:.5px;text-transform:uppercase;padding:5px 11px;border-radius:5px;margin-bottom:8px}
.tbm-scard h3{color:#fff;font-size:17px;font-weight:800;line-height:1.2}
.tbm-scard .lieu{color:#e4e4e4;font-size:13px;font-weight:700;margin-top:7px}

/* ---------- DUO : WHATSAPP + SOCCA (2 colonnes, GROSSE police) ---------- */
.tbm-wa,.tbm-socca{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-radius:20px;padding:28px 22px;color:#fff;text-decoration:none;min-height:230px}
/* WhatsApp */
.tbm-wa{background:var(--vert-wa)}
.tbm-wa svg{display:block;margin:0 auto 10px;fill:#fff}
.tbm-wa .wa-q{font-size:22px;font-weight:900;line-height:1.1}
.tbm-wa .num{display:block;font-size:30px;font-weight:900;font-style:italic;letter-spacing:1px;margin:10px 0;color:#fff}
.tbm-wa .wa-cta{font-size:18px;font-weight:900;line-height:1.1}
/* Socca */
.tbm-socca{background:var(--bleu)}
.tbm-socca .portrait{width:88px;height:88px;border-radius:50%;object-fit:cover;margin:0 auto 12px;display:block;border:3px solid var(--jaune)}
.tbm-socca .so-sub{font-size:13px;font-weight:800;letter-spacing:1px;text-transform:uppercase;opacity:.9}
.tbm-socca .so-title{font-size:24px;font-weight:900;line-height:1.08;margin:6px 0 16px}
.tbm-socca .cta{display:inline-block;background:var(--jaune);color:var(--noir);font-size:15px;font-weight:900;padding:12px 22px;border-radius:30px}

/* ---------- FOOTER ---------- */
.tbm-footer{background:var(--bleu-d);color:#fff;padding:30px var(--gut);text-align:center;margin-top:var(--gap)}
.tbm-footer img{height:56px;width:auto;margin-bottom:14px;display:inline-block}

/* =========================================================
   PAGES-LISTES (/infos/, /agenda/) — CSS rapatrié du theme-tbm06
   L'ancien thème fournissait le style de ces markups ; les snippets
   globaux (#39 filtre mois, #43 cartes agenda) injectent le HTML mais
   PAS leur CSS sur les PAGES (uniquement sur les archives /category/).
   On le restyle ici à la charte V3 pour que tout reste visible sous V3.
   ========================================================= */

/* Pills de filtre (par thème sur /infos/) — grosses, aérées, bien espacées des cartes */
.tbm-listpage-filters{display:flex;flex-wrap:wrap;gap:14px;margin:0 var(--gut) 40px;padding:0}
.tbm-listpage-pill{background:#fff;border:2px solid var(--noir);color:var(--noir);padding:13px 22px;border-radius:999px;font-weight:800;font-size:15px;cursor:pointer;text-transform:uppercase;letter-spacing:.04em;line-height:1;transition:background .15s ease,transform .08s ease;font-family:inherit;white-space:nowrap;box-shadow:3px 3px 0 var(--jaune)}
.tbm-listpage-pill:hover{background:var(--jaune);box-shadow:3px 3px 0 var(--noir)}
.tbm-listpage-pill.is-active{background:var(--noir);color:#fff;box-shadow:3px 3px 0 var(--jaune)}

/* Filtre MOIS de l'agenda (snippet #39) — bien aéré */
.tbm-agenda-filter-mois{display:block;background:#fff;border:2px solid var(--noir);border-radius:16px;padding:20px 22px;margin:0 var(--gut) 36px;box-shadow:4px 4px 0 var(--jaune)}
.tbm-agenda-filter-label{display:block;font-weight:900;font-size:15px;color:var(--noir);margin:0 0 14px;text-transform:uppercase;letter-spacing:.04em}
.tbm-agenda-filter-buttons{display:flex;flex-wrap:wrap;gap:12px}
.tbm-agenda-month-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;min-height:42px;border-radius:999px;background:#fff;color:var(--noir);text-decoration:none;font-size:13px;font-weight:800;border:2px solid var(--noir);line-height:1.2;white-space:nowrap;transition:background .15s ease}
.tbm-agenda-month-btn:hover{background:var(--jaune)}
.tbm-agenda-month-btn.is-active{background:var(--noir);color:#fff}
.tbm-agenda-filter-mobile-select{display:none}

/* Cartes de liste agenda (snippet #43) : MÊME look que les cartes infos —
   carte verticale, grande photo en haut, pill, titre, date. */
.tbm-listpage{display:flex;flex-direction:column;gap:28px;padding:0 var(--gut) 8px}
.tbm-listpage-card{display:block;text-decoration:none;color:var(--noir)}
.tbm-listpage-thumb{width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#eee;margin-bottom:11px}
.tbm-listpage-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.tbm-listpage-cat{display:inline-block;background:var(--bleu);color:#fff;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;padding:4px 10px;border-radius:6px;margin-bottom:8px}
.tbm-listpage-title{font-size:18px;font-weight:800;line-height:1.15;margin:0;letter-spacing:-.3px}
.tbm-listpage-date{display:block;margin-top:7px;font-size:13px;font-weight:800;color:var(--bleu);font-style:italic}
.tbm-listpage-empty p{text-align:center;padding:32px;color:var(--gris);font-weight:600}

/* ---------- PAGE /horoscope/ (shortcode tbm06_horoscope_du_jour) ---------- */
.tbm-horoscope-du-jour{max-width:760px;margin:0 auto}
.tbm-horoscope-jour-header{margin:0 0 18px}
.tbm-horoscope-jour-title{font-family:'Inter',system-ui,sans-serif;font-weight:900;font-size:clamp(22px,2.6vw,28px);line-height:1.12;letter-spacing:-.3px;color:var(--noir);margin:0}
/* Intro centrée des pages Catarinià (horoscope/franchise) */
.tbm-content .tbm-lead-kicker{text-align:center;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--bleu);margin:0 0 6px;font-size:14px}
.tbm-content .tbm-lead{text-align:center;font-size:19px;margin:0 0 1.6em}
.tbm-horoscope-jour-body{font-size:17px;line-height:1.7}
/* Chapô de l'horoscope = taille H2, gras, bien espacé de son lecteur MP3 (qui suit). */
.tbm-horoscope-jour-body > p:first-of-type{font-size:22px;font-weight:700;line-height:1.4;margin:0 0 30px}
.tbm-horoscope-jour-archive{text-align:center;margin:24px 0 0}
.tbm-horoscope-jour-archive a{display:inline-block;font-weight:800;color:var(--bleu);text-decoration:none;border:2px solid var(--bleu);border-radius:999px;padding:10px 20px}
.tbm-horoscope-jour-archive a:hover{background:var(--jaune);color:var(--noir);border-color:var(--noir)}
/* Photo manga Catarinià (shortcode/legacy) retirée : une seule apparence = la mamma ronde. */
.tbm-catarina-avatar{display:none}
/* Avatar Catarinià UNIQUE (mamma illustrée ronde) — pages horoscope & franchise V3. */
.tbm-cat-face{margin:0 auto 18px;width:fit-content}
.tbm-cat-face img{width:118px;height:118px;border-radius:50%;object-fit:cover;border:3px solid var(--jaune);display:block;box-shadow:0 6px 18px rgba(20,50,70,.15)}

@media (max-width:600px){
  .tbm-agenda-filter-buttons{display:none}
  .tbm-agenda-filter-mobile-select{display:block;width:100%}
  .tbm-agenda-filter-mobile-select select{display:block;width:100%;padding:12px 14px;font-size:16px;font-weight:700;color:var(--noir);background:#fff;border:2px solid var(--noir);border-radius:12px;font-family:inherit}
}
@media (min-width:1024px){
  .tbm-listpage-filters,.tbm-agenda-filter-mois{margin-left:40px;margin-right:40px}
  .tbm-listpage{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin:0 40px}
}
.tbm-infos-list .tbm-cards{margin-bottom:32px}
.tbm-footer .soc{display:flex;justify-content:center;gap:20px;font-size:22px;margin-bottom:16px}
.tbm-footer .soc a{color:#fff}
.tbm-footer .mini{font-size:11px;opacity:.7;font-weight:600;line-height:1.8}
.tbm-footer .mini a{color:#fff}
.tbm-footer .mini a:hover{text-decoration:underline}

/* =========================================================
   PAGES INTERNES (single / archive / page / 404)
   Gabarit minimal qui hérite du design system.
   ========================================================= */
.tbm-main{padding:0 var(--gut);max-width:720px;margin:0 auto}
.tbm-entry{margin-bottom:var(--gap)}
.tbm-entry .tbm-entry-figure{margin:6px 0 24px} /* air au-dessus (titre) et sous la photo */
.tbm-entry .tbm-entry-thumb{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;display:block;background:#ddd}
.tbm-entry .featured-caption{font-size:11px;color:var(--gris);margin:8px 2px 0;line-height:1.4}
.tbm-entry h1.entry-title{font-size:30px;font-weight:900;line-height:1.12;letter-spacing:-.5px;margin:14px 0 22px} /* + d'air titre <-> photo */
/* Pill de l'article (catégorie / mot-clé agenda / « LU DANS LA SOCCA ») :
   GRANDE, presque la taille du titre (retour Laurent 12/06). */
.tbm-entry .tbm-cat-pill{display:inline-block;background:var(--bleu);color:#fff;font-size:22px;font-weight:900;letter-spacing:.5px;text-transform:uppercase;padding:8px 20px;border-radius:10px;margin-bottom:14px;line-height:1.1;text-decoration:none}

/* Temps de lecture (div injecté en tête de contenu) : aéré du chapô. */
.tbm-content .tbm-reading-time{margin:8px 0 22px !important}
/* CHAPÔ (RÈGLE ABSOLUE) : le 1er paragraphe (classe .tbm-chapo posée en PHP) est
   TOUJOURS en gras + taille H2, et BIEN détaché du corps. Méthode fiable (plus de
   ciblage d'adjacence fragile qui attrapait le mauvais paragraphe). */
.tbm-content p.tbm-chapo{font-weight:700 !important;font-size:clamp(21px,2.4vw,25px) !important;line-height:1.4 !important;margin:.2em 0 1.9em !important}
/* Repli si jamais le marquage PHP n'a pas eu lieu (ex. contenu déjà en .entry-content) */
.tbm-content > p:first-of-type:not(.tbm-chapo):first-child{font-weight:700;font-size:clamp(21px,2.4vw,25px);line-height:1.4;margin-bottom:1.9em}

/* Rythme vertical aéré (retour Laurent 12/06 : plus d'espace entre paragraphes, photos, titres). */
.tbm-content{font-size:17px;line-height:1.8}
.tbm-content p{margin:0 0 1.6em}
.tbm-content h2{font-size:clamp(22px,2.6vw,28px);font-weight:900;margin:2em 0 .75em;letter-spacing:-.3px;line-height:1.15}
.tbm-content h3{font-size:19px;font-weight:800;margin:1.7em 0 .5em}
.tbm-content h4{font-size:17px;font-weight:800;margin:1.5em 0 .4em}
.tbm-content h4 em{font-weight:600;font-style:italic;color:var(--gris)}
.tbm-content a{color:var(--bleu);text-decoration:none}
/* Titre masqué visuellement mais gardé pour le SEO/lecteurs d'écran (pages-listes). */
.tbm-screen-reader-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tbm-content img{border-radius:12px;height:auto}
.tbm-content ul,.tbm-content ol{margin:0 0 1.6em 1.4em}
.tbm-content li{margin-bottom:.5em}
.tbm-content blockquote{border-left:4px solid var(--jaune);margin:2em 0;padding:.4em 0 .4em 18px;color:var(--gris);font-style:italic}
.tbm-content figure,.tbm-content .wp-block-image{margin:2.2em 0}
.tbm-content figcaption,.tbm-content .wp-element-caption{font-size:11px;color:var(--gris);margin-top:6px;text-align:center;line-height:1.4}

/* Encadré « infos pratiques » des articles agenda (date/lieu/tarif) :
   même taille de police que l'article + lignes bien espacées (retour Laurent 12/06). */
.tbm-content .agenda-info-block{font-size:17px !important;line-height:2.2;padding:22px 24px !important;margin:1.8em 0 !important;border-radius:12px !important}
.tbm-content .agenda-info-block a{font-weight:700}

/* Blocs « À retenir » (#58) + FAQ (#57) injectés dans le contenu : stylés V3
   (le boîtier venait de l'ancien thème). Le texte interne garde ses tailles inline. */
.tbm-content .tbm-a-retenir{background:#FFF8E0;border:2px solid var(--noir);border-radius:14px;padding:18px 20px;margin:1.9em 0;box-shadow:4px 4px 0 var(--jaune)}
.tbm-content .tbm-a-retenir h3{margin:0 0 12px;font-size:19px;font-weight:900;display:flex;align-items:center;gap:8px}
.tbm-content .tbm-a-retenir ul{margin:0;padding:0;list-style:none}
.tbm-content .tbm-a-retenir li{margin-bottom:10px;font-size:17px}
.tbm-content .tbm-faq-block{margin:2.4em 0}
.tbm-content .tbm-faq-block > h3{font-size:clamp(20px,2.4vw,24px);font-weight:900;margin:0 0 16px}
.tbm-content .tbm-faq-item{border:2px solid rgba(0,0,0,.12);border-radius:12px;margin-bottom:12px;padding:2px 18px;background:#fff}
.tbm-content .tbm-faq-item summary{cursor:pointer;list-style:none;font-size:18px;font-weight:800;padding:15px 0;display:flex;justify-content:space-between;align-items:center;gap:12px}
.tbm-content .tbm-faq-item summary::-webkit-details-marker{display:none}
.tbm-content .tbm-faq-item[open] summary{color:var(--bleu)}
.tbm-content .tbm-faq-chevron{transition:transform .2s ease;flex:none}
.tbm-content .tbm-faq-item[open] .tbm-faq-chevron{transform:rotate(180deg)}
.tbm-content .tbm-faq-form{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.tbm-content .tbm-faq-form input,.tbm-content .tbm-faq-form textarea{width:100%;border:2px solid rgba(0,0,0,.15);border-radius:12px;padding:12px;font-family:inherit;font-size:16px}
.tbm-content .tbm-faq-form button{align-self:flex-start;background:var(--bleu);color:#fff;border:0;border-radius:12px;padding:11px 18px;font-weight:800;font-size:15px;cursor:pointer}
.tbm-content .tbm-faq-form-status{font-size:13px;color:var(--gris);font-style:italic}

/* =========================================================
   ENCART DE VOTE T / B / M — design moderne, nettement détaché du corps.
   Carte navy pleine (rupture nette avec l'article blanc), badges ronds
   colorés, gros boutons, barres animées. Markup injecté hors thème.
   ========================================================= */
.tbm-vote-widget{display:block;background:var(--bleu-d);color:#fff;border-radius:22px;padding:28px 26px;margin:3.4em 0;box-shadow:0 14px 34px rgba(20,50,70,.20)}
.tbm-vote-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;flex-wrap:wrap}
.tbm-vote-label{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase;color:var(--jaune)}
.tbm-vote-icon{font-size:22px}
.tbm-vote-count{font-size:12px;font-weight:700;color:rgba(255,255,255,.6)}
.tbm-vote-question{display:block;font-size:24px;font-weight:900;line-height:1.1;margin:6px 0 20px;color:#fff}
.tbm-vote-pills{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tbm-vote-btn{display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(255,255,255,.07);border:2px solid rgba(255,255,255,.16);border-radius:18px;padding:18px 8px 14px;cursor:pointer;font-family:inherit;transition:transform .1s ease,background .15s ease,border-color .15s ease}
.tbm-vote-btn:hover{transform:translateY(-3px);background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.4)}
.tbm-vote-btn[aria-pressed="true"]{background:#fff;border-color:#fff}
.tbm-vote-letter{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:24px;color:#fff}
.tbm-vote-btn[data-vote="T"] .tbm-vote-letter{background:var(--bleu)}
.tbm-vote-btn[data-vote="B"] .tbm-vote-letter{background:var(--jaune);color:var(--noir)}
.tbm-vote-btn[data-vote="M"] .tbm-vote-letter{background:#8A93A0}
.tbm-vote-text{font-size:14px;font-weight:800;color:#fff;text-align:center;line-height:1.1}
.tbm-vote-btn[aria-pressed="true"] .tbm-vote-text{color:var(--noir)}
/* Résultats (barres affichées après le vote) */
.tbm-vote-thanks{font-size:16px;font-weight:900;color:var(--jaune);margin:18px 0 14px}
.tbm-vote-bars{display:flex;flex-direction:column;gap:11px}
.tbm-vote-bar{display:flex;align-items:center;gap:12px}
.tbm-vote-bar-label{flex:none;width:78px;font-size:14px;font-weight:800;color:#fff}
.tbm-vote-bar-track{flex:1;height:14px;background:rgba(255,255,255,.15);border-radius:999px;overflow:hidden}
.tbm-vote-bar-fill{height:100%;background:var(--jaune);border-radius:999px;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.tbm-vote-bar-pct{flex:none;width:46px;text-align:right;font-size:14px;font-weight:900;color:#fff}
/* Lien « Trouvé une erreur ? » */
.tbm-vote-erreur{margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.15)}
.tbm-vote-erreur-toggle{background:none;border:0;padding:0;cursor:pointer;font-family:inherit;font-size:16px;font-weight:800;color:var(--jaune)}
.tbm-vote-erreur-toggle:hover{text-decoration:underline}
.tbm-vote-erreur-form{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.tbm-vote-erreur-form textarea{width:100%;border:0;border-radius:12px;padding:12px;font-family:inherit;font-size:16px;color:var(--noir)}
.tbm-vote-erreur-form button{align-self:flex-start;background:var(--jaune);color:var(--noir);border:0;border-radius:12px;padding:11px 20px;font-family:inherit;font-weight:900;font-size:14px;cursor:pointer}
.tbm-vote-erreur-status{font-size:13px;color:rgba(255,255,255,.7);font-style:italic;margin:0}

/* Titre de rubrique (archive/recherche/index) = sticker, comme les sections de la home
   (cohérence d'identité + accroche TDAH hors home). */
.tbm-archive-title{margin:8px 0 36px}
.tbm-archive-title h1{display:block;width:fit-content;margin:0 auto 0 var(--gut);font-size:clamp(22px,2.8vw,28px);font-weight:900;letter-spacing:.5px;text-transform:uppercase;color:var(--noir);background:#fff;border:2px solid var(--noir);box-shadow:4px 4px 0 var(--jaune);padding:10px 18px;transform:rotate(-2deg);line-height:1.1}
.tbm-archive-title em{font-style:italic}
.tbm-archive-desc{margin:18px var(--gut) 0;font-size:16px;color:var(--gris);line-height:1.6}
.tbm-archive-grid{display:flex;flex-direction:column;gap:26px;padding:0 var(--gut)}

.tbm-pager{display:flex;justify-content:center;gap:14px;margin:40px var(--gut)}
.tbm-pager a,.tbm-pager span{display:inline-block;border:2px solid var(--bleu);color:var(--bleu);font-size:13px;font-weight:800;padding:10px 18px;border-radius:30px}
.tbm-pager .current{background:var(--bleu);color:#fff}

.tbm-404{text-align:center;padding:60px var(--gut)}
.tbm-404 h1{font-size:60px;font-weight:900;color:var(--bleu)}
.tbm-404 p{margin:14px 0 24px;font-size:17px}

/* =========================================================
   PAGES À CONTENU GUTENBERG « LEGACY V2 » (décès, horoscope)
   Ré-harmonisées au design V3, scopé par body-class (V3 uniquement,
   ne touche pas le site live). Bat le snippet global Roboto Condensed.
   ========================================================= */
/* Page DÉCÈS (query loop) : titres d'articles UNIFORMES en Inter (au lieu du
   Roboto Condensed italique MAJ forcé par un snippet V2). */
.tbm-content .wp-block-post-title,
.tbm-content .wp-block-post-title a{
  font-family:'Inter',system-ui,sans-serif !important;
  font-style:normal !important;text-transform:none !important;
  font-weight:800 !important;font-size:20px !important;
  letter-spacing:-.3px !important;line-height:1.25 !important;color:var(--noir) !important;
}
.tbm-content .wp-block-post-template{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:22px}
.tbm-content .wp-block-post-template > li{margin:0;padding-bottom:22px;border-bottom:1px solid rgba(0,0,0,.1)}
.tbm-content .wp-block-post-date{font-size:13px;color:var(--gris);font-weight:700;margin-top:4px}

/* =========================================================
   NORMALISATION V3 DES SHORTCODES RAPATRIÉS (horoscope, franchise,
   cafteurs, rappels, FAQ) : MÊME POLICE (Inter) + tailles lisibles TDAH
   PARTOUT. !important pour battre les styles inline V2 (Fraunces, petites
   tailles). Couleurs sombres V2 (#1F3D52) tolérées (dark navy lisible).
   ========================================================= */
.tbm-content .tbm-horoscope-du-jour, .tbm-content .tbm-horoscope-du-jour *,
.tbm-content .tbm-horoscope-signe-card, .tbm-content .tbm-horoscope-signe-card *,
.tbm-content .tbm-franchise-form, .tbm-content .tbm-franchise-form *,
.tbm-content .tbm-franchise-liste, .tbm-content .tbm-franchise-liste *,
.tbm-content .tbm-cafteurs-form, .tbm-content .tbm-cafteurs-form *,
.tbm-content .tbm-rappels-grid, .tbm-content .tbm-rappels-grid *,
.tbm-content .tbm-rappels-source,
.tbm-content .tbm-faq-block, .tbm-content .tbm-faq-block *{
  font-family:'Inter',system-ui,sans-serif !important;
}
/* Tailles TDAH dans ces blocs : corps lisible, champs 16px (anti-zoom iOS), rien sous 14px. */
.tbm-content .tbm-horoscope-jour-body p,
.tbm-content .tbm-franchise-form p, .tbm-content .tbm-cafteurs-form p,
.tbm-content .tbm-rappels-grid p{font-size:17px !important;line-height:1.7 !important}
.tbm-content .tbm-franchise-form input, .tbm-content .tbm-franchise-form textarea, .tbm-content .tbm-franchise-form select,
.tbm-content .tbm-cafteurs-form input, .tbm-content .tbm-cafteurs-form textarea, .tbm-content .tbm-cafteurs-form select,
.tbm-content .tbm-faq-form input, .tbm-content .tbm-faq-form textarea{font-size:16px !important}
.tbm-content .tbm-franchise-form label, .tbm-content .tbm-cafteurs-form label{font-size:15px !important;font-weight:700}
.tbm-content .tbm-rappels-source, .tbm-content .tbm-franchise-item small, .tbm-content .tbm-rappels-grid small{font-size:14px !important}

/* Formulaire FRANCHISE en encart vert clair (façon formulaire assurance — demande Laurent 13/06). */
.tbm-content .tbm-franchise-form{background:#EAF7EC !important;border:2px solid #BFE3C8 !important;border-radius:16px !important;padding:24px 26px !important;margin:1.8em 0 !important}
.tbm-content .tbm-franchise-form .tbm-ff-row{display:flex;gap:14px;flex-wrap:wrap}
.tbm-content .tbm-franchise-form .tbm-ff-col{flex:1;min-width:160px}
.tbm-content .tbm-franchise-form label{display:block;font-weight:700 !important;font-size:15px !important;margin-bottom:6px;color:var(--noir)}
.tbm-content .tbm-franchise-form .tbm-ff-section-label{font-weight:800 !important;font-size:14px !important;text-transform:uppercase;letter-spacing:.04em;color:#1F7A3D !important;margin:10px 0 6px}
.tbm-content .tbm-franchise-form input[type="text"],
.tbm-content .tbm-franchise-form input[type="email"],
.tbm-content .tbm-franchise-form textarea{width:100% !important;border:2px solid #C7E3CF !important;border-radius:10px !important;padding:12px 14px !important;background:#fff !important;font-size:16px !important;margin-bottom:14px}
.tbm-content .tbm-franchise-form input:focus,.tbm-content .tbm-franchise-form textarea:focus{outline:none;border-color:#1FAF54 !important}
.tbm-content .tbm-franchise-form .tbm-ff-or{text-align:center;color:var(--gris);font-weight:700;margin:8px 0}
.tbm-content .tbm-franchise-form button[type="submit"]{background:#1FAF54 !important;color:#fff !important;border:0 !important;border-radius:12px !important;padding:14px 26px !important;font-weight:800 !important;font-size:16px !important;cursor:pointer}
.tbm-content .tbm-franchise-form button[type="button"]{background:#fff !important;border:2px solid #1FAF54 !important;color:#1F7A3D !important;border-radius:10px !important;padding:10px 16px !important;font-weight:700 !important;cursor:pointer}
.tbm-content .tbm-franchise-form .tbm-ff-status{font-size:14px !important;color:var(--gris);font-style:italic}

/* Pages HOROSCOPE (13942) + FRANCHISE (17172) : on neutralise l'habillage V2
   (bande jaune « moutarde », police display Fraunces) pour coller au gabarit
   V3 des autres pages — fond clair, Inter. CSS V3 only (live inchangé). */
.page-id-13942 .has-moutarde-background-color,
.page-id-17172 .has-moutarde-background-color{background:#fff !important;color:var(--noir) !important}
.page-id-13942 .has-moutarde-color,
.page-id-17172 .has-moutarde-color{color:var(--bleu) !important}
.page-id-13942 .has-display-font-family,
.page-id-17172 .has-display-font-family{font-family:'Inter',system-ui,sans-serif !important}
/* Le Catarinià manga (legacy) reste masqué partout ; seule la mamma de la home
   représente Catarinià. (Avatar mamma .tbm-cat-face prêt si on rebuild le contenu.) */

/* Formulaire de recherche (classe au lieu d'inline). */
.tbm-search-after{margin-top:22px}
.tbm-searchform{display:flex;gap:8px}
.tbm-searchform input[type="search"]{flex:1;padding:12px 16px;border:2px solid var(--bleu);border-radius:30px;font-size:16px;font-family:inherit}

/* Commentaires (« réactions ») — rapatrié du inline, calé sur la largeur de lecture. */
.tbm-comments{max-width:720px;margin:48px auto 0;padding:0 var(--gut)}
.tbm-comments-title{font-size:clamp(20px,2.4vw,24px);font-weight:900;margin-bottom:18px}
.tbm-comments .comment-list{list-style:none;padding:0}
.tbm-comments .comment-list li{margin-bottom:18px}
.tbm-comments input[type="text"],.tbm-comments input[type="email"],.tbm-comments input[type="url"],.tbm-comments textarea{width:100%;border:2px solid rgba(0,0,0,.15);border-radius:12px;padding:12px;font-family:inherit;font-size:16px}
.tbm-comments .submit,.tbm-comments #submit{background:var(--bleu);color:#fff;border:0;border-radius:12px;padding:12px 22px;font-family:inherit;font-weight:800;font-size:15px;cursor:pointer}

/* Très petits écrans (<360px) : encart vote resserré sans casse. */
@media (max-width:360px){
  .tbm-vote-letter{width:42px;height:42px;font-size:20px}
  .tbm-vote-btn{padding:14px 4px 10px;gap:6px}
  .tbm-vote-pills{gap:8px}
  .tbm-vote-text{font-size:12px}
}

/* =========================================================
   DESKTOP >= 1024px
   Nav horizontale + hero 16:9.
   ========================================================= */
@media (min-width:1024px){
  :root{--gap:96px}
  .tbm-shell{max-width:1080px}
  .tbm-header{padding:10px 40px 16px}
  .tbm-header .tbm-logo img{height:128px}
  .tbm-burger{display:none}
  .tbm-desktop-nav{display:flex;align-items:center;gap:26px}
  .tbm-desktop-nav a{font-size:14px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--noir)}
  .tbm-desktop-nav a:hover{color:var(--bleu)}
  .tbm-desktop-nav .tbm-search{font-size:18px;color:var(--bleu)}

  .tbm-hero{margin:12px 40px var(--gap)}
  .tbm-hero .media{border-radius:18px;overflow:hidden}
  .tbm-hero .img{aspect-ratio:16/9}
  .tbm-hero .body{padding:0 36px 28px}
  .tbm-hero h1{font-size:40px}
  .tbm-hero .below{padding:18px 0 0}

  .tbm-h2{margin-left:40px;font-size:15px}

  .tbm-archive-title h1{margin-left:40px}
  .tbm-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:0 40px}
  .tbm-acard h3{font-size:22px}
  .tbm-scard h3{font-size:18px}
  .tbm-serv{margin:0 40px;grid-template-columns:repeat(5,1fr)}
  .tbm-scards{padding:0 40px 8px}
  .tbm-coin{margin:0 40px 30px}
  /* WhatsApp + Socca côte à côte */
  .tbm-duo{grid-template-columns:1fr 1fr;gap:24px;margin:0 40px}
  .tbm-wa .wa-q{font-size:26px}
  .tbm-wa .num{font-size:36px}
  .tbm-socca .so-title{font-size:28px}
  .tbm-footer{padding:40px}

  .tbm-archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:0 40px}
}

/* 21/06 unif encarts Socca+WA = style carte maison (bordure+ombre, rayon 16) */
.tbm-wa,.tbm-socca{border-radius:16px !important;border:2px solid var(--noir) !important;box-shadow:0 6px 0 var(--noir) !important}

/* 21/06 titres encarts WA + Socca = meme police/taille (Fraunces italic) */
html body.home .tbm-wa .wa-q,html body.home .tbm-socca .so-title{font-family:var(--tbm-frau,'Fraunces',Georgia,serif) !important;font-style:italic !important;font-weight:900 !important;font-size:clamp(24px,2.4vw,30px) !important;line-height:1.12 !important;letter-spacing:0 !important}

/* 21/06 sous-textes encarts plus grands (lisibilite TDAH) */
html body.home .tbm-socca .so-sub{font-size:17px !important;letter-spacing:.5px !important;opacity:1 !important}
html body.home .tbm-wa .wa-cta{font-size:22px !important;line-height:1.2 !important}
