/* jaCCepte.Ca — habit « pilule bleue, pilule rouge » (repris du dossier de juin 2026,
   pilule-bleue-site/), mis au service de la lecture : une colonne, une typographie de livre.
   Clair le jour, nuit si le système la demande. Aucun script, aucune ressource de tiers. */

@font-face { font-family: "Spectral"; src: url("../polices/spectral-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../polices/spectral-600.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../polices/spectral-italic-300.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../polices/inter.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --fond: #f6f4ef;
  --surface: #ffffff;
  --encre: #1b1f26;
  --doux: #59616d;
  --trait: rgba(20, 24, 32, .13);
  --bleu: #2459c4;
  --rouge: #c7303b;
  --vert: #23824f;
  --citation: #eef2fb;
  --lien: #2459c4;
  --lecture: 44rem;
  --large: 72rem;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #080b10;
    --surface: #101722;
    --encre: #e9eef5;
    --doux: #a9b4c2;
    --trait: rgba(255, 255, 255, .12);
    --bleu: #63a8ff;
    --rouge: #ff5e69;
    --vert: #71e49b;
    --citation: #121c2b;
    --lien: #8cbcff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 1.18rem/1.7 var(--serif);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
.cadre { width: min(var(--large), 100% - 2rem); margin-inline: auto; }

.evitement { position: absolute; left: -999px; top: .5rem; }
.evitement:focus { left: .5rem; z-index: 99; background: var(--encre); color: var(--fond); padding: .5rem .8rem; border-radius: .4rem; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trait);
  font-family: var(--sans);
}
.entete-dedans { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem 0; }
.marque { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--encre); }
.nom { font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.nom b { color: var(--rouge); font-weight: 800; }
.nom .point { color: var(--bleu); }
.pilules { display: inline-flex; transform: rotate(-30deg); filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.pilules span { width: 13px; height: 26px; display: block; }
.pilules .bleue { background: var(--bleu); border-radius: 13px 0 0 13px; }
.pilules .rouge { background: var(--rouge); border-radius: 0 13px 13px 0; }
.entete nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.entete nav a {
  display: block; padding: .4rem .8rem; border-radius: 999px;
  color: var(--doux); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.entete nav a:hover { color: var(--encre); background: var(--trait); }
.entete nav a[aria-current="page"] { color: var(--encre); background: var(--trait); }

/* La colonne de lecture */
main { padding: 3rem 0 4rem; }
.texte { max-width: var(--lecture); margin-inline: auto; overflow-wrap: break-word; }
.texte h1, .texte h2, .texte h3, .texte h4, .texte h5, .texte h6 {
  font-family: var(--sans); line-height: 1.25; letter-spacing: -.01em; margin: 2.2em 0 .6em;
}
.texte h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); font-weight: 800; margin-top: 0; letter-spacing: -.02em; }
.texte h1 + * { margin-top: 0; }
.texte h2 { font-size: 1.6rem; font-weight: 750; }
.texte h3 { font-size: 1.3rem; font-weight: 700; }
.texte h4, .texte h5, .texte h6 { font-size: 1.1rem; font-weight: 700; }
.texte h2::before {
  content: ""; display: block; width: 2.4rem; height: 4px; margin-bottom: .7rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--bleu) 0 50%, var(--rouge) 50% 100%);
}
.texte p, .texte ul, .texte ol, .texte blockquote, .texte figure, .texte table, .texte dl, .texte pre { margin: 0 0 1.1em; }
.texte ul, .texte ol { padding-left: 1.4em; }
.texte li { margin: .25em 0; }
.texte li::marker { color: var(--rouge); }
.texte a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.texte a:hover { text-decoration-thickness: 2px; }
.texte strong { font-weight: 600; }
.texte hr { border: 0; height: 1px; background: var(--trait); margin: 2.5em auto; width: 40%; }
.texte blockquote {
  padding: .9em 1.2em; border-left: 4px solid var(--bleu); background: var(--citation);
  border-radius: 0 .5rem .5rem 0; font-style: italic;
}
.texte blockquote p:last-child { margin-bottom: 0; }
/* Un portrait d'Odoo était une vignette : on plafonne la hauteur, la largeur suit. */
.texte img { max-width: 100%; max-height: 34rem; width: auto; height: auto; border-radius: .5rem; display: block; margin-inline: auto; }
.texte figure { margin-inline: 0; }
.texte figcaption { font: .9rem/1.5 var(--sans); color: var(--doux); text-align: center; margin-top: .5em; }
.texte table {
  display: block; overflow-x: auto; border-collapse: collapse;
  font: .95rem/1.5 var(--sans); max-width: 100%;
}
.texte th, .texte td { border: 1px solid var(--trait); padding: .45em .7em; vertical-align: top; text-align: left; }
.texte th { background: var(--citation); }
.texte pre, .texte code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .9em; }
.texte pre { overflow-x: auto; padding: 1em; background: var(--citation); border-radius: .5rem; }
.texte small { font-size: .85em; color: var(--doux); }

/* Vidéos : un lien, pas un lecteur de tiers */
.video a {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem; border-radius: .6rem; text-decoration: none;
  font: 600 1rem/1.3 var(--sans); color: #fff; background: var(--rouge);
}
.video a::before { content: "▶"; font-size: .85em; }
.video a:hover { filter: brightness(1.08); }
.liste-videos { list-style: none; padding: 0; }
.liste-videos li { margin: 0 0 .6rem; }
.liste-videos a {
  display: block; padding: .8rem 1rem; border: 1px solid var(--trait); border-radius: .6rem;
  background: var(--surface); text-decoration: none; font-family: var(--sans); font-weight: 600;
}
.note { font: .95rem/1.5 var(--sans); color: var(--doux); }

/* Pied */
.pied { border-top: 1px solid var(--trait); padding: 2rem 0 2.5rem; font: .95rem/1.6 var(--sans); color: var(--doux); text-align: center; }
.pied p { margin: .3rem 0; }
.pied a { color: inherit; }
.pied .devise { font-weight: 700; color: var(--encre); margin-bottom: .8rem; }
.pied .b { color: var(--bleu); }
.pied .v { color: var(--vert); }
.pied .r { color: var(--rouge); }
.pied .petit { font-size: .85rem; }

@media (max-width: 40rem) {
  body { font-size: 1.08rem; }
  main { padding-top: 2rem; }
  .entete-dedans { justify-content: center; }
}
@media print {
  .entete, .pied { display: none; }
  body { background: #fff; color: #000; }
}
