/* Oripen — blog, articles, pages, auteurs, catégories, recherche et 404 aux couleurs de la page
   d'accueil, en mode clair comme en mode sombre. Chargé après site.css, seulement avec l'habillage Oripen. */

/* Les couleurs du contenu suivent le thème de l'accueil (variables --ink, --bg, --line… d'oripen.css). */
body.sa-site.ori-shell {
  --sa-text: var(--ink-2);
  --sa-heading: var(--ink);
  --sa-muted: var(--ink-3);
  --sa-link: var(--g-ink);
  --sa-link-line: color-mix(in srgb, var(--g) 35%, transparent);
  --sa-link-hover: var(--g);
  --sa-accent: var(--g);
  --sa-btn: var(--ink);
  --sa-btn-text: var(--bg);
  --sa-bg: var(--bg);
  --sa-surface: var(--card-solid, var(--bg-2));
  --sa-soft: var(--bg-2);
  --sa-line: var(--line-2);
  --sa-chip: color-mix(in srgb, var(--ink) 6%, transparent);
  --sa-chip-2: color-mix(in srgb, var(--ink) 10%, transparent);
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sa-font, var(--sans));
}
/* Le menu de l'accueil est fixé en haut : le contenu commence dessous. */
body.ori-shell main#contenu { padding-top: 96px; position: relative; z-index: 1; }
@media (max-width: 767px) { body.ori-shell main#contenu { padding-top: 84px; } }
/* Le pied de page de l'accueil se détache du contenu. */
body.ori-shell .ori-foot { margin-top: 96px; }
/* Les grands titres prennent la police des titres de l'accueil. */
body.ori-shell .sa-a-title h1, body.ori-shell .sa-list-head h1, body.ori-shell .sa-page-head h1, body.ori-shell .sa-404 h1, body.ori-shell .sa-404 .big { font-family: var(--sa-hfont); font-weight: 400; letter-spacing: -.02em; }

/* Surfaces blanches → surfaces du thème ; survols beiges → puce discrète. */
body.ori-shell .sa-pill, body.ori-shell .sa-md, body.ori-shell .sa-m-x { background: var(--sa-surface); border-color: var(--sa-line); color: var(--sa-heading); }
body.ori-shell .sa-pill:hover, body.ori-shell .sa-m-x:hover, body.ori-shell .sa-m-s:hover .sa-m-sc { background: var(--sa-chip); }
body.ori-shell .sa-m-lg, body.ori-shell .sa-m-u { background: var(--sa-chip); }
body.ori-shell .sa-m-row:hover { background: color-mix(in srgb, var(--g) 10%, transparent); border-color: color-mix(in srgb, var(--g) 35%, transparent); }
body.ori-shell .sa-pill.is-ai, body.ori-shell .sa-by .sa-avatar { background: color-mix(in srgb, var(--g) 14%, transparent); border-color: color-mix(in srgb, var(--g) 30%, transparent); color: var(--g-ink); }
body.ori-shell .sa-pill.is-ai:hover { background: color-mix(in srgb, var(--g) 22%, transparent); }
body.ori-shell .sa-prose .sa-ai, body.ori-shell .sa-ai { background: color-mix(in srgb, var(--g) 9%, var(--sa-surface)); }
body.ori-shell .sa-ai-ck { background: color-mix(in srgb, var(--g) 22%, transparent); color: var(--g-ink); }
body.ori-shell .sa-m-l, body.ori-shell .sa-by-n a:hover { color: var(--g-ink); }
body.ori-shell .sa-m-cpb { background: var(--ink); color: var(--bg); }
body.ori-shell .sa-m-cpb:hover { opacity: .9; }
body.ori-shell .sa-m-cpb.is-ok { background: var(--g); color: var(--on-g, #06120D); }
body.ori-shell .sa-dl i { background: var(--sa-line); }
body.ori-shell .sa-card .k.is-badge { background: color-mix(in srgb, var(--sa-accent) 14%, transparent); }
body.ori-shell .sa-card:hover, body.ori-shell .sa-prose details[open], body.ori-shell .sa-share a:hover, body.ori-shell .sa-share button:hover { border-color: var(--ink-3); }
body.ori-shell .sa-crumbs svg, body.ori-shell .sa-crumbs .separator, body.ori-shell .sa-card .thumb.empty, body.ori-shell .sa-m-row > svg { color: var(--ink-3); }
body.ori-shell .sa-ad-label, body.ori-shell .sa-ai-note { color: var(--ink-3); }
body.ori-shell .sa-ad-ph { border-color: var(--sa-line); }
body.ori-shell .sa-comments input, body.ori-shell .sa-comments textarea, body.ori-shell .sa-search-form input { background: var(--sa-surface); color: var(--sa-heading); border-color: var(--sa-line); }
body.ori-shell .sa-comments input:focus, body.ori-shell .sa-comments textarea:focus, body.ori-shell .sa-search-form input:focus { background: var(--sa-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g) 18%, transparent); }
/* Boutons et pastilles foncés : inversés en mode sombre (fond clair, texte foncé). */
body.ori-shell .sa-chips a.on, body.ori-shell .sa-pager .page-numbers.current, body.ori-shell .sa-share .copied, body.ori-shell .sa-socials a:hover { color: var(--on-g, #06120D); }
body.ori-shell .sa-prose pre { background: var(--bg-3, #0E1013); color: #EDEDED; border: 1px solid var(--sa-line); }
/* Encarts sombres (appel à l'action, encadré noir) : toujours foncés, lisibles dans les deux thèmes. */
body.ori-shell .sa-side-cta, body.ori-shell .sa-in-cta, body.ori-shell .sa-prose .is-style-sa-dark { background: #0E1013; border: 1px solid var(--line-2); }
/* Avertissement : ton ambré lisible dans les deux thèmes. */
body.ori-shell .sa-prose .is-style-sa-warn { background: color-mix(in srgb, #E2C25E 12%, transparent); }
/* Fenêtres (Résumé IA, Partager) */
body.ori-shell .sa-ov { background: rgba(0, 0, 0, .55); }
html[data-theme=dark] body.ori-shell .sa-md { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
/* Barre de lecture et bouton « Revenir en haut » au-dessus du menu fixe. */
body.ori-shell .sa-progress { z-index: 120; }
/* Images : arrondis et cadre discret sur fond sombre. */
html[data-theme=dark] body.ori-shell .sa-prose img { border-radius: var(--sa-radius-sm); }
/* 1.4.2 — Hors de l'accueil : fond uni (blanc en clair, noir en sombre), sans halo ni grain ; menu sur fond uni. */
html:not([data-theme=dark]) body.ori-shell { --bg: #FFFFFF; }
body.ori-shell { background: var(--bg) !important; }
body.ori-shell .ori-halo, body.ori-shell::after { display: none !important; }
body.ori-shell .ori-head, body.ori-shell .ori-head.is-scrolled { background: var(--bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
/* 1.4.3 — Barre d'administration WordPress : le menu fixe passe dessous. */
body.admin-bar .ori-head { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ori-head { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .ori-head { top: 0; } }
/* Le contenu commence juste sous le menu (68 px), comme avec l'ancienne barre. */
body.ori-shell main#contenu { padding-top: 68px; }
@media (max-width: 767px) { body.ori-shell main#contenu { padding-top: 64px; } }
/* Pied de page bien distinct de la page. */
body.ori-shell .ori-foot { margin-top: 96px; background: var(--bg-2, #F6F7F6); border-top: 1px solid var(--line-2); }
html:not([data-theme=dark]) body.ori-shell .ori-foot { background: #F6F7F6; }
html[data-theme=dark] body.ori-shell .ori-foot { background: #0B0C0E; }

/* 1.5.0 — Articles et pages : titres et intertitres dans la police des titres choisie. */
body.ori-shell .sa-prose h2, body.ori-shell .sa-prose h3, body.ori-shell .sa-prose h4, body.ori-shell .sa-card h2, body.ori-shell .sa-card h3 { font-family: var(--sa-hfont); }
/* Mobile : les trois boutons sous le titre de l'article sur une seule ligne. */
@media (max-width: 640px) {
  body .sa-acts { flex-wrap: nowrap; gap: 6px; }
  body .sa-acts .sa-pill { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 8px; gap: 5px; font-size: 13px; white-space: nowrap; }
  body .sa-acts .sa-pill span { overflow: hidden; text-overflow: ellipsis; }
  body .sa-acts .sa-pill svg, body .sa-acts .sa-pill .sa-logo { flex: none; width: 15px; height: 15px; }
}

/* 1.5.2 — titres de colonnes du méga menu en police mono, comme sur l'accueil */
.ori-head .ori-dd h3{font:500 12px/1 var(--mono,"Geist Mono",ui-monospace,monospace)!important;letter-spacing:0;color:var(--ink-3)}
*{-webkit-tap-highlight-color:transparent}a,button,[role=button],[tabindex],input,select,summary,label{-webkit-tap-highlight-color:transparent}:focus:not(:focus-visible){outline:none!important}
