/* ===== Thème « archive » : papier, encre, gris chauds, accent rouge. Style scientifique ancien, mise en page moderne. ===== */
:root {
  --bg: #f9f8f6; --fg: #161514; --fg-2: #3d3b38; --fg-3: #6c6965; --fg-4: #a3a09b;
  --card: #f1f0ec; --card-2: #e9e7e2; --line: #e7e5e0; --line-2: #d7d4ce;
  --btn2: #efeeea; --btn2-h: #e6e4df;
  --ink: #171614; --ink-2: #211f1c; --ink-line: #302d29; --ink-fg: #efe9dd; --ink-fg-3: #9a9284;
  --accent: #c4574f; --accent-soft: #f6e4e1;
  --header-bg: rgba(249, 248, 246, 0.86);
  --r: 10px; --r-s: 8px;
  --paper-grid: rgba(110, 100, 80, 0.09);
}
:root[data-theme="dark"] {
  --bg: #12110f; --fg: #efe9dd; --fg-2: #cfc8ba; --fg-3: #958d7f; --fg-4: #635d53;
  --card: #1b1a17; --card-2: #23211d; --line: #2a2824; --line-2: #3a3731;
  --btn2: #23211d; --btn2-h: #2d2a25;
  --ink: #1b1a17; --ink-2: #23211d; --ink-line: #34312b;
  --accent: #e0857e; --accent-soft: rgba(224, 133, 126, 0.14);
  --header-bg: rgba(18, 17, 15, 0.82);
  --paper-grid: rgba(239, 233, 221, 0.05);
}
body { background: var(--bg); }

/* Typographie : titres en Geist, chapôs en serif, étiquettes en mono (fiche de catalogue) */
.lead, .post-dek { font-family: var(--serif); font-size: clamp(18px, 1.55vw, 21.5px); line-height: 1.5; letter-spacing: -0.005em; }
.h1 { font-weight: 500; }
.h1 em, .h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.badge { background: transparent; border-color: var(--line-2); }
.badge .new { background: transparent; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }


/* Sections : filets plus marqués, comme des pages de registre */
.section--line { border-top-color: var(--line-2); }

/* Cartes : coins moins arrondis, filet fin, numéros de planche */
.offers .offer, .flow-card, .exp-c, .atl-c, .pf-card, .tl, .chain-b { border-radius: var(--r); }
.offer { background: transparent; border: 1px solid var(--line-2); }
.offer .tagline { font-size: 17px; color: var(--fg); font-weight: 500; }
.offer hr { border-top-style: dashed; }
.checks li::before { color: var(--fg-4); }
.tl { background: transparent; border: 1px solid var(--line); }
.btn--soft { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--soft:hover { background: var(--btn2); }

/* Schéma de l'accueil : planche sur papier millimétré, avec légende */
.pf-sec .pfw { background-color: var(--bg); border-color: var(--line-2); border-radius: 6px;
  background-image: linear-gradient(var(--paper-grid) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 22px 22px; }
.pf-sec .pf-chip { border-radius: 6px; background: var(--bg); }
.pf-sec .pf-plat { border-radius: 10px; }
.pf-sec .pf-lay { border-radius: 6px; }
.pf-sec .pf-wires .flow { stroke: var(--accent); opacity: 0.8; }
.pf-sec .pf-bars i:last-child { background: var(--accent); }
.pf-sec .container::after, .fig-cap { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); }
.pf-sec .container::after { content: "Fig. 1 — La chaîne de la donnée, de la source à l’usage. Exemple, chiffres fictifs."; }

/* Visuels « art » : planche papier millimétré au lieu du dégradé */
.art { background: var(--card); border: 1px solid var(--line-2); }
.art::before { animation: none; inset: 0;
  background: linear-gradient(var(--paper-grid) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px) 0 0 / 22px 22px !important; }
.art::after { display: none; }
.px { background: var(--accent); width: 10px; height: 10px; }
.px.s { width: 6px; height: 6px; background: var(--fg); }

/* Planche gravée à la place de la vidéo */
.film--plate { background: var(--card) !important; border: 1px solid var(--line-2); border-radius: 6px; }
.film--plate img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.film--plate .film-cap { position: static; max-width: none; padding: 18px 22px 20px; color: var(--fg); display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; border-top: 1px solid var(--line-2); }
.film--plate .film-cap .kicker { color: var(--accent); }
.film--plate .film-cap .h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.8vw, 24px); }
.film--plate .film-cap small { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; color: var(--fg-4); }
@media (max-width: 700px) { .film--plate .film-cap { grid-template-columns: 1fr; } }

/* Comparaison avant/après et points clés : chiffres en rouge, tirets de registre */
.ba-row { border-bottom-style: dashed; }
.ba-row i { color: var(--fg-4); }
.point b { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

.site-footer { border-top: 1px solid var(--line-2); }

/* ===== Langage Atlas sur tout le site ===== */
.h1 { font-weight: 600; letter-spacing: -0.035em; }
.h1 .h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; }
.h2 { font-weight: 600; letter-spacing: -0.03em; }
.h3 { font-weight: 600; letter-spacing: -0.02em; }
.point b { font-weight: 400; }
/* Étiquettes de section : la pastille « ··· » d'Atlas */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.kicker::before { content: "···"; display: inline-grid; place-items: center; height: 18px; padding: 0 10px; border-radius: 999px; background: var(--card); color: var(--fg-3); font-size: 11px; letter-spacing: 0.08em; line-height: 1; }
.film-cap .kicker::before, .stk-h .kicker::before { content: none; }
/* Cartes de solution : fiche éditoriale, filet en tête */
.offers .offer { background: transparent; border: 0; border-top: 1px solid var(--fg); border-radius: 0; padding: 22px 2px 0; }
.offer .h3 { font-size: clamp(21px, 1.8vw, 25px); }
.offer hr { border-top: 1px solid var(--line-2); }
/* Planches */
.plate { margin: 0; }
.plate-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #ece8e1; max-width: 520px; margin-left: auto; }
.plate-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate figcaption { max-width: 520px; margin: 12px 0 0 auto; font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.plate figcaption span { margin-right: 8px; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.plate figcaption a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.split--rev .plate-img, .split--rev .plate figcaption { margin-left: 0; margin-right: auto; }
/* Schémas : sur papier, filet fin */
.wv, .pf-sec .pfw { border-radius: 8px; border-color: var(--line-2); background: var(--bg); }
.wv-row, .wv-card, .pf-sec .pf-chip, .pf-card { border-radius: 8px; }
.wv-plat, .pf-sec .pf-plat { border-radius: 12px; }
/* Bandeaux : filets doubles comme l'en-tête d'Atlas */
.section--line { border-top: 1px solid var(--line-2); }
.tools--strip .tl { border-radius: 8px; }

/* Plus de numérotation décorative (01, 02, N°…) */
.num, .flow-card .num, .disc-h .num, .exp-c .num, .chain-b span, .chain-base span, .post-s h2 span, .ac-no { display: none !important; }
.post-toc a { grid-template-columns: 1fr !important; } .post-toc a span { display: none; }
/* Le rouge, en douceur : le mot qui change dans le titre, la frise de la planche animée */
.rotator::after { background: var(--accent); opacity: 0.55; }
