
/* Maquette une page, v4 (15/10/2026) : triptyque, cartes à équerres, filigrane en fond de panneau, un cartel ;
   la v3 : index-v3.html.
   v3 : en-tête, filigrane et cartels du site repris ;
   la v2 sans eux : index-v2-panneaux.html.
   v2 : panneaux plein écran au défilement.
   Jetons de ddh.css repris tels quels. Textes = textes actuels du site,
   à réécrire par John ; data-source dit d'où vient chaque bloc
   (bouton « sources » en bas à gauche). La v1 à emplacements vides :
   index-v1-emplacements.html. */
:root{
  --stone-50:  oklch(96.5% 0.004 255);
  --stone-100: oklch(93.5% 0.005 255);
  --stone-200: oklch(88%   0.006 255);
  --stone-300: oklch(79%   0.007 252);
  --ink:       oklch(27%   0.012 255);
  --ink-deep:  oklch(21%   0.012 255);
  --ink-soft:  oklch(44%   0.012 255);
  --moss:      oklch(56% 0.14 132);
  --moss-text: oklch(50% 0.14 132);
  --moss-deep: oklch(42% 0.11 135);
  --moss-pale: oklch(94% 0.045 132);
  --title:     color-mix(in oklab, var(--moss-deep) 78%, var(--ink));
  --serif: "Source Serif 4", Georgia, serif;
  --mono:  "IBM Plex Mono", Menlo, monospace;
  --w: 1120px;
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-snap-type: y proximity; }
body{
  margin: 0; background: var(--stone-50); color: var(--ink);
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
}
a{ color: var(--moss-text); text-underline-offset: 3px; }
.renvoi{ font-family: var(--mono); font-size: .72em; text-decoration: none; white-space: nowrap; }
.wrap{ max-width: var(--w); width: 100%; margin: 0 auto; padding: 0 32px; }

/* en-tête du site (ddh.css .site-head), fixé en haut */
.site-head{
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: color-mix(in srgb, #fff 82%, transparent); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-300);
}
.site-head .wrap{ display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 22px; padding-bottom: 16px; }
.site-id{ display: flex; flex-direction: column; gap: 6px; }
.site-name{ font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.site-name .joint{ font-size: 17px; letter-spacing: .04em; text-transform: none; color: var(--moss-text); }
.site-sub{ margin: 0; font-size: 15px; font-style: italic; color: var(--ink-soft); }
.site-head nav{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; font-family: var(--serif); font-size: 14.5px; text-transform: uppercase; letter-spacing: .07em; }
.site-head nav a{ color: var(--ink); text-decoration: none; text-underline-offset: 4px; }
.site-head nav a:hover{ color: var(--moss-deep); text-decoration: underline; }
.site-head .lang-switch, .site-head .lang-switch a{ color: var(--ink-soft); }


/* triptyque (ddh.css .tw) */
.tw{
  display: grid; margin-top: 40px;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.55fr) 20px minmax(0, 1fr);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, #fff 55%, transparent);
}
.tw-col{ padding: 30px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tw-a{ border-right: 1px dashed var(--stone-300); }
.tw-c{ border-left: 1px dashed var(--stone-300); }
.tw-b{ padding: 30px 34px 34px; gap: 18px; background: color-mix(in srgb, var(--moss-pale) 40%, transparent); }
.tw-arrow{ display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 18px; color: var(--moss-deep); }
.tw-tag{ padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--moss) 32%, #fff); font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--ink-soft); white-space: nowrap; }
.tw-tag .tg{ color: var(--moss-text); }
.tw h2{ max-width: none; }
.tw-role{ margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; }
.tw-role em{ font-style: italic; font-weight: 400; color: var(--moss-deep); }
.tw-h1{ margin: 0; font-size: 36px; font-weight: 400; line-height: 1.12; text-wrap: balance; }
.tw-h1 em{ font-style: italic; color: var(--moss-deep); }
.tw-desc{ margin: 0; font-size: 16px; line-height: 1.6; }
.tw-sub{ margin: 0; font-size: 17px; line-height: 1.6; }
.tw-foot{ margin: auto 0 0; padding-top: 12px; border-top: 1px dotted var(--stone-300); font-family: var(--mono); font-size: 10px; color: var(--ink-soft); }

/* ligne de section (balise XML, ddh.css .sec-line) */
.sec-line{ display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 34px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink-soft); }
.sec-line .tg{ color: var(--moss-text); }
.sec-line .sec-desig{ white-space: nowrap; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.sec-line .sec-rule{ flex: 1 1 40px; height: 1px; background: color-mix(in srgb, var(--moss) 32%, #fff); }

/* cartel encadré (ddh.css « CARTEL ENCADRÉ ») : filet, double filet décalé, deux coins */
.cartel-label{
  position: relative; margin: 0; padding: 18px 26px;
  background: color-mix(in srgb, #fff 55%, transparent);
  border: 1px solid var(--stone-300);
  outline: 1px solid var(--stone-200); outline-offset: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft); line-height: 1.5;
}
.cartel-label::before, .cartel-label::after{ content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--moss); opacity: .6; pointer-events: none; }
.cartel-label::before{ top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.cartel-label::after{ bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.cartel-label .head{ margin-bottom: 8px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.cartel-label dl{ margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); row-gap: 7px; }
.fin{ margin-top: 72px; }
.to-top{ margin: 0 0 12px; text-align: right; font-family: var(--mono); font-size: 22px; line-height: 1; }
.to-top a{ color: var(--ink-soft); text-decoration: none; }
.cartel-label dt{ margin: 0; color: var(--moss-text); }
.cartel-label dd{ margin: 0; color: var(--ink); }
.cartel-label dd.wedge{ font-style: italic; }

/* premier panneau calé en haut : ligne de section à 184 px, comme toutes les pages (22/10) */
/* 15 h 35 : tous les panneaux centrés verticalement, premier compris, comme demandé par John */
#ouverture, .panneau.premier{ align-items: center; }

/* panneaux */
.panneau{
  min-height: 100svh; display: flex; align-items: center;
  padding: 110px 0 72px; scroll-snap-align: start; position: relative;
}
/* filigrane du Forum (John, 2006), fixe derrière les panneaux clairs,
   multiplié par la couleur du panneau (comme .wm-bg de ddh.css) */
.p-pierre, .p-blanc, .p-mousse{
  background-image: url(/assets/forum.jpg);
  background-repeat: no-repeat; background-attachment: fixed;
  background-position: calc(50% + min(104px, 7.76vw)) calc(50% + min(33.5px, 2.5vw)); background-size: min(1340px, 100vw) auto;
  background-blend-mode: multiply;
}
.p-pierre{ background-color: var(--stone-50); }
.p-blanc { background-color: #fff; }
.p-mousse{ background-color: var(--moss-pale); }
.p-encre { background: var(--ink-deep); color: #fff; }
.p-encre a{ color: oklch(78% 0.12 132); }
.p-encre .etiquette{ color: oklch(78% 0.12 132); }
.p-encre :is(h1, h2, h3, p, li, strong, em, .liste a, .chapeau, .texte){ color: #fff; }
.p-encre :is(.liste .k, .liste .d, .carte .meta, .sec-line, .cartel-label .head){ color: var(--stone-300); }
.p-encre .liste li{ border-color: color-mix(in srgb, #fff 18%, transparent); }
.p-encre .suite{ color: oklch(78% 0.12 132); }
.p-encre .a-paraitre{ color: var(--ink-soft); font-style: normal; }
.liste a:hover{ color: oklch(78% 0.12 132); }
.p-encre .sec-line .sec-rule{ background: color-mix(in srgb, #fff 25%, transparent); }
.p-encre .cartel-label{ background: color-mix(in srgb, #fff 7%, transparent); }
.p-encre .cartel-label dd{ color: #fff; }
.p-encre .a-ecrire{ color: var(--stone-200); background: color-mix(in srgb, #fff 6%, transparent); }
.p-encre .a-ecrire b{ color: oklch(82% 0.12 132); }
.p-encre .carte{ background: color-mix(in srgb, #fff 6%, transparent); --sq: oklch(78% 0.12 132); }
.etiquette{ font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--moss-text); margin: 0 0 22px; }
h1, h2, h3{ font-weight: 400; color: var(--title); line-height: 1.12; margin: 0 0 24px; }
h1{ font-size: clamp(40px, 6.2vw, 80px); letter-spacing: -.01em; max-width: 90%; }
h1 strong{ font-weight: 600; }
h2{ font-size: clamp(32px, 4.4vw, 54px); max-width: 90%; }
h3{ font-size: 23px; font-weight: 500; }
.chapeau{ font-size: clamp(20px, 2vw, 25px); line-height: 1.5; max-width: 55em; }
.texte{ max-width: 65em; }
.texte p{ margin: 0 0 16px; }

.trois{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.deux { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
.quatre{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.carte{
  position: relative; padding: 26px 28px 24px;
  background: color-mix(in srgb, color-mix(in srgb, var(--stone-100) 60%, #fff) 86%, transparent);
  --sq: var(--moss-deep); --ease-cadre: cubic-bezier(.2, .7, .2, 1);
}
.carte::before, .carte::after{
  content: ""; position: absolute; width: 11px; height: 11px;
  border: 0 solid var(--sq); pointer-events: none;
  transition: width .28s var(--ease-cadre), height .28s var(--ease-cadre), border-width .28s var(--ease-cadre);
}
.carte::before{ left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.carte::after{ right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.carte:hover::before, .carte:hover::after{ width: 16px; height: 16px; }
.carte:hover::before{ border-left-width: 2.5px; border-top-width: 2.5px; }
.carte:hover::after{ border-right-width: 2.5px; border-bottom-width: 2.5px; }
.carte p{ margin: 0 0 12px; font-size: 17px; }
.carte .meta{ font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin: -12px 0 14px; }
.p-encre .carte .meta{ color: var(--stone-300); }
.part .num{ font-family: var(--mono); font-size: 13px; color: var(--moss-text); display: block; margin-bottom: 10px; }

.liste{ list-style: none; padding: 0; margin: 14px 0 0; font-size: 17px; }
.liste li{ border-top: 1px solid var(--stone-200); padding: 11px 0; display: flex; gap: 16px; align-items: baseline; }
.liste .k{ font-family: var(--mono); font-size: 12px; color: var(--ink-soft); flex: 0 0 auto; min-width: 7.5em; }
.liste a{ text-decoration: none; color: var(--ink); }
.liste a:hover{ color: var(--moss-text); }
.liste .d{ color: var(--ink-soft); font-size: 15px; }
.suite{ font-family: var(--mono); font-size: 13px; margin-top: 20px; display: inline-block; }
.contact{ font-size: clamp(28px, 4vw, 48px); margin: 8px 0 24px; }
.contact a{ text-decoration: none; }

.lien-carte{ display: block; text-decoration: none; color: var(--ink); }
.lien-carte h3{ font-size: 20px; margin: 0; }
.lien-carte:hover h3{ color: var(--moss-text); }
.carte p.meta{ margin: 0 0 10px; }

/* offre en deux gestes */
.geste .num{ font-family: var(--mono); font-size: 13px; color: var(--moss-text); display: block; margin-bottom: 10px; }
.geste h3{ font-size: 26px; font-weight: 400; }
.offres{ margin: 18px 0 0; }
.offres dt{ font-weight: 600; font-size: 17px; color: var(--title); border-top: 1px solid var(--stone-200); padding-top: 14px; margin-top: 14px; }
.offres dt:first-child{ margin-top: 0; }
.offres dd{ margin: 6px 0 0; font-size: 16px; line-height: 1.55; }
.offres .m{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; margin-left: 4px; }
.horizon{ margin: 36px 0 8px; font-style: italic; }

/* dernier billet, rempli par site_builder (marqueur ddh:home-carnet) */
.unes{ margin: 14px 0 0; }
.une{ display: flex; gap: 16px; align-items: baseline; border-top: 1px solid var(--stone-200); padding: 11px 0; text-decoration: none; color: var(--ink); font-size: 17px; }
.une .k{ font-family: var(--mono); font-size: 12px; color: var(--ink-soft); flex: 0 0 auto; }
.une:hover .t{ color: var(--moss-text); }

/* emplacement encore sans texte existant */
.a-ecrire{
  border: 1.5px dashed var(--moss); border-radius: 6px; padding: 14px 18px; margin: 0 0 18px;
  background: color-mix(in srgb, var(--moss-pale) 40%, transparent);
  font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--ink-soft); max-width: 46em;
}
.a-ecrire b{ display: block; color: var(--moss-deep); font-weight: 500; margin-bottom: 4px; }

/* sources des textes (aide à la réécriture) */
[data-source]{ position: relative; }
body.sources [data-source]{ outline: 1px dotted var(--moss); outline-offset: 4px; }
body.sources [data-source]::after{
  content: attr(data-source); display: block; margin-top: 6px;
  font: 11px/1.4 var(--mono); color: var(--moss-text); letter-spacing: 0; text-transform: none; font-style: normal; font-weight: 400;
}
.bouton-sources{
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  font: 12px var(--mono); padding: 8px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--stone-300); background: var(--stone-50); color: var(--ink-soft);
}

/* points de navigation */
.points{ position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 12px; }
.points a{ width: 9px; height: 9px; border-radius: 50%; background: var(--stone-300); display: block; }
.points a.ici{ background: var(--moss); transform: scale(1.35); }

/* apparition au défilement */
.revele{ opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.revele.vu{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .revele{ opacity: 1; transform: none; transition: none; }
}

.legal-footer{ margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--stone-300); font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--ink-soft); }
.legal-footer p{ margin: 0; }
.legal-footer .sep{ margin: 0 .5em; }
.legal-footer a{ color: var(--moss-text); }

@media (max-width: 860px){
  .points{ display: none; }
  .site-head .wrap{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-name{ font-size: 22px; letter-spacing: .1em; }
  .site-name .joint{ font-size: 14px; }
  .trois, .deux, .quatre, .tw{ grid-template-columns: 1fr; }
  .tw-arrow{ transform: rotate(90deg); padding: 6px 0; }
  .tw-a, .tw-c{ border: 0; }
  .panneau{ min-height: auto; padding: 96px 0 72px; }
}

/* pages intérieures (22/10) */
.site-head nav a.on{ color: var(--moss-deep); text-decoration: underline; }
h1.titre{ font-size: clamp(32px, 4.4vw, 54px); max-width: 20ch; letter-spacing: 0; }
.texte h3{ margin-top: 8px; }
.carte .fact{ font-size: 16px; }
.carte .fact-src{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); border-top: 1px dotted var(--stone-300); padding-top: 8px; }
.carte .go{ font-family: var(--mono); font-size: 13px; color: var(--moss-text); }
.carte .renvoi{ color: var(--moss-text); }
.lien-carte p{ color: var(--ink); }
.offres dd a{ color: var(--moss-text); }
.refus p{ margin: 0 0 12px; }

/* index Carnet / Atelier (cartes écrites par le code d'Aegis) : comme les cartes des panneaux */
.section-cards{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.section-card{
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 24px;
  background: color-mix(in srgb, color-mix(in srgb, var(--stone-100) 60%, #fff) 86%, transparent);
  color: var(--ink); text-decoration: none; --sq: var(--moss-deep);
}
.section-card::before, .section-card::after{ content: ""; position: absolute; width: 11px; height: 11px; border: 0 solid var(--sq); pointer-events: none; transition: width .28s, height .28s, border-width .28s; }
.section-card::before{ left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.section-card::after{ right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.section-card:hover::before, .section-card:hover::after{ width: 16px; height: 16px; }
.section-card .meta{ display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.section-card .meta .g{ color: var(--moss-text); }
.section-card h3{ margin: 0; font-size: 21px; font-weight: 500; line-height: 1.25; color: var(--title); }
.section-card:hover h3{ color: var(--moss-text); }
.section-card .sub{ margin: 0; font-size: 16px; font-style: italic; color: var(--ink-soft); }
.section-card p{ margin: 0; font-size: 16px; line-height: 1.55; }
.section-card .excerpt{ color: var(--ink-soft); }
.section-card .go, .section-card .card-footer{ margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--moss-text); }
.section-card .renvoi{ font-family: var(--mono); font-size: .72em; color: var(--moss-text); }
/* panneau d'ouverture des pages intérieures : à la hauteur de son contenu */
@media (max-width: 860px){ .section-cards{ grid-template-columns: 1fr; } }


/* panneaux d'articles (billets, essais, billets techniques, pièces) — 22/10, 15 h 30 */
.panneau h2 .titre-lien{ color: inherit; text-decoration: none; }
.panneau h2 .titre-lien:hover{ color: var(--moss-text); }
.p-encre h2 .titre-lien:hover{ color: oklch(78% 0.12 132); }
.texte .source{ font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.p-encre .texte .source{ color: var(--stone-300); }
.texte .renvoi{ font-family: var(--mono); font-size: .72em; color: var(--moss-text); }
/* au-delà de 16 panneaux, les points de navigation ne tiennent plus dans l'écran */
.points:has(a:nth-child(17)){ display: none; }
