/* CaleDoHub — Socle sobre v2 : responsive + a11y + THÈME SOBRE UNIFIÉ (2026-06-27) */
:where(*, *::before, *::after){ box-sizing:border-box; }
:where(*){ min-width:0; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
:where(img,video,svg,canvas,iframe,table){ max-width:100%; }
:where(img,video){ height:auto; }
/* Filet responsive tableaux : sur mobile, un tableau large défile en interne au lieu de faire scroller toute la page */
@media (max-width:768px){ table:not(.cdb-table){ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; } }
:where(a,button,input,select,textarea,[tabindex]):focus-visible{ outline:2px solid var(--cds-accent-500,#0e7490); outline-offset:2px; border-radius:4px; }
@media (prefers-reduced-motion: reduce){ *,*::before,*::after{ animation-duration:.01ms; animation-iteration-count:1; transition-duration:.01ms; scroll-behavior:auto; } }

/* ===== THÈME SOBRE UNIFIÉ ===== */
/* 1. Police unique sobre (système) — neutralise Righteous (cursive) / Outfit / Plus Jakarta.
   Ciblage TEXTE uniquement ; les polices d'icônes (Font Awesome, Material, ph-, bi-, fa-)
   et les emojis ne sont PAS touchés (règles ciblées, pas d'héritage forcé sur enfants). */
body, h1,h2,h3,h4,h5,h6, p, blockquote, figcaption, li,
button, input, select, textarea, label,
.btn, .cta, .logo, .brand, .hero h1, nav a, .card h3 {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,"Helvetica Neue",Arial,sans-serif;
}
/* on rétablit les polices d'icônes éventuellement héritées */
.fa,.fas,.far,.fab,.fal,[class^="fa-"],[class*=" fa-"],.material-icons,.material-symbols-outlined,
[class^="bi-"],[class^="ph-"],[class*=" ph-"],.icon-font { font-family: revert; }
/* 2. Sobriété typographique : titres nets sans effets criards */
h1,h2,h3{ letter-spacing:-.01em; text-shadow:none; }
/* 3. Accent unique par site (html[data-cds-site] = spécificité 0,1,1 → bat les :root tardifs) */
html:not([data-cds-site]){ --cds-accent-500:#0E7490; --cds-accent-600:#0C5E74; --cds-accent-700:#0A4A5C; }
html[data-cds-site="caledohub"],html[data-cds-site="caledoresto"],html[data-cds-site="caledoimmo"]{ --cds-accent-500:#0E7490;--cds-accent-600:#0C5E74;--cds-accent-700:#0A4A5C; }
html[data-cds-site="caledobeaute"]{ --cds-accent-500:#DB2777;--cds-accent-600:#BE185D;--cds-accent-700:#9D174D; }
html[data-cds-site="caledosante"],html[data-cds-site="caledolegales"]{ --cds-accent-500:#059669;--cds-accent-600:#047857;--cds-accent-700:#065F46; }
html[data-cds-site="caledotech"]{ --cds-accent-500:#4F46E5;--cds-accent-600:#4338CA;--cds-accent-700:#3730A3; }
html[data-cds-site="caledokids"]{ --cds-accent-500:#0a4a5c;--cds-accent-600:#0a4a5c;--cds-accent-700:#9A3412; }
html[data-cds-site="caledokdo"]{ --cds-accent-500:#7C3AED;--cds-accent-600:#6D28D9;--cds-accent-700:#5B21B6; }
html[data-cds-site="caledojob"]{ --cds-accent-500:#2563EB;--cds-accent-600:#1D4ED8;--cds-accent-700:#1E40AF; }
html[data-cds-site="caledovol"]{ --cds-accent-500:#3b99f6;--cds-accent-600:#1565c0;--cds-accent-700:#0d47a1; --cds-bg:#0a1424;--cds-bg-subtle:#0f2137;--cds-bg-elev:#132743;--cds-bg-muted:#16294b;--cds-bg-inverse:#eaf2ff;--cds-text:#eaf2ff;--cds-text-muted:#a8c1e6;--cds-text-subtle:#a8c1e6;--cds-text-faint:#6f88b0;--cds-text-inverse:#0a1424;--cds-border:rgba(255,255,255,.10);--cds-border-strong:rgba(255,255,255,.18);--cds-border-subtle:rgba(255,255,255,.07); }
html[data-cds-site="caledoprof"]{ --cds-accent-500:#0891B2;--cds-accent-600:#0E7490;--cds-accent-700:#155E75; }
html[data-cds-site="caledoevent"]{ --cds-accent-500:#0e7490;--cds-accent-600:#0a4a5c;--cds-accent-700:#92400E; }
html[data-cds-site="caledodrive"]{ --cds-accent-500:#0E928F;--cds-accent-600:#0B7572;--cds-accent-700:#0A5F5C; }
/* FIX#78 sober font neutralize inline Righteous + unified header brand */
[style*="Righteous"],[style*="righteous"],.cdh-uh-logo{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif}

/* ═══════════════════════════════════════════════════════════════════
   CaleDoAlerte — composants PARTAGÉS non-tokenisés en navy (2026-07-10)
   Le thème navy est à la source (main.css + tokens --cds-* ci-dessus).
   Ici uniquement ce qui n'a pas de token : bandeau cookies (JS) + barre
   stats (styles inline). Scopé caledovol. Réversible.
   ═══════════════════════════════════════════════════════════════════ */
/* Bandeau cookies (caledohub-cookies.js, couleurs codées en dur) */
html[data-cds-site="caledovol"] [class*="ch-cookie"]{ background:#132743; border-color:rgba(255,255,255,.10); }
html[data-cds-site="caledovol"] .ch-cookie-title{ color:#eaf2ff; }
html[data-cds-site="caledovol"] .ch-cookie-text,
html[data-cds-site="caledovol"] .ch-cookie-cat-desc{ color:#a8c1e6; }
html[data-cds-site="caledovol"] .ch-cookie-text a{ color:#3b99f6; }
html[data-cds-site="caledovol"] .ch-cookie-btn-accept{ background:linear-gradient(135deg,#3b99f6,#1565c0); color:#fff; border:none; }
html[data-cds-site="caledovol"] .ch-cookie-btn-reject,
html[data-cds-site="caledovol"] .ch-cookie-btn-customize{ background:#16294b; color:#eaf2ff; border:1px solid rgba(255,255,255,.14); }
/* Barre "stats live" (fond teal clair inline sur #main-content) */
html[data-cds-site="caledovol"] #main-content:has(#cdv-live-counter){ background:linear-gradient(90deg,#0f2137,#132743); border-bottom:1px solid rgba(59,153,246,.28); }
html[data-cds-site="caledovol"] #cdv-live-counter{ color:#a8c1e6; }
html[data-cds-site="caledovol"] #cdv-live-feed{ background:#132743; border-color:rgba(255,255,255,.10); }

/* Filet texte clair : défaut de couleur clair sur caledovol (bat les couches dark éparses des vieux .css) */
html[data-cds-site="caledovol"]{ color:#eaf2ff; }
html[data-cds-site="caledovol"] body{ color:#eaf2ff; }

/* Fix position header/footer app.js quand le redesign met body en flex-column
   (le header app.js avait order:2 → passait sous le contenu). 2026-07-10 */
html[data-cds-site="caledovol"] .cdv-header{ order:-9999; }
html[data-cds-site="caledovol"] .cdv-footer{ order:9999; }
