/* Brin de Stef, maquette Didone chorégraphiée, page l'atelier (à propos).
   Complément de index-didone-v1.css, qui doit être chargé avant.

   Registre : le plus proche de l'accueil de toutes les pages intérieures.
   De la présence, mais aucun étage épinglé et aucun scrub : la chorégraphie
   du geste est déjà jouée sur l'accueil, la rejouer ici ne dirait rien de
   neuf. Ce qui porte la page à la place : une ouverture typographique à
   l'échelle affiche, une bande profonde (--surface-deep, la surface du
   geste sur l'accueil) et l'index des matières en brins garance.
   Aucun token redéfini, aucune couleur en dur hors variables. */

/* ------------------------------------------------------- LIEN D'ÉVITEMENT */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; z-index: 20;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------- FIL D'ARIANE */
.crumb {
  display: flex; gap: 10px; align-items: baseline;
  padding-block: 10px 0;
}
.crumb a { border-bottom: 1px solid transparent; }
.crumb a:hover { border-bottom-color: var(--accent); }
.crumb span[aria-current] { color: var(--ink-faint); }

/* -------------------------------------------- OUVERTURE : l'échelle affiche */
.at-head { padding-block: clamp(40px, 7vw, 104px) clamp(28px, 4vw, 52px); }
.at-script {
  font-family: var(--script); color: var(--accent);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  display: inline-block; transform: rotate(-1.5deg);
  margin: 0 0 .12em;
}
.at-title {
  font-size: clamp(2.5rem, 8.4vw, 6.6rem);
  line-height: .9; letter-spacing: -.05em; font-weight: 600;
  max-width: 15ch; margin: 0;
}
.at-title em { font-style: italic; color: var(--accent); }

.at-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  margin-top: clamp(30px, 5vw, 60px);
}
.at-facts > * { padding: 16px 0; }
.at-facts > * + * { border-left: 1px solid var(--hairline); padding-left: clamp(14px, 2.5vw, 32px); }
.at-facts .n {
  display: block; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1;
  letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums;
  text-transform: none; margin-bottom: 8px;
}

/* ------------------------------------------------- RÉCIT : colonne éditoriale */
/* composition asymétrique : notes filetées à gauche, récit décalé à droite */
.at-story {
  padding-block: clamp(36px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(170px, 22%) 1fr;
  gap: clamp(24px, 5vw, 84px);
  align-items: start;
}
.at-margin { position: sticky; top: clamp(18px, 4vh, 48px); }
.at-margin > * + * {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(16px, 2.4vw, 22px); padding-top: clamp(12px, 2vw, 16px);
}
.at-margin h2 { font-size: .98rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .3em; }
.at-margin p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-muted); }

.at-text { max-width: 62ch; }
.at-text p {
  font-size: 1.08rem; line-height: 1.75; color: var(--ink-muted);
  margin: 0 0 1.15em;
}
.at-text p:first-of-type {
  /* première phrase du récit, posée un cran au-dessus du reste */
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45;
  letter-spacing: -.015em; color: var(--ink); max-width: 28ch;
}
.at-text strong { font-weight: 600; color: var(--ink); font-style: italic; }

/* ------------------------------------- BANDE PROFONDE : ce qui n'existe pas */
.at-deep {
  background: var(--surface-deep); color: var(--ink-on-deep);
  padding-block: clamp(64px, 9vw, 128px);
}
.at-claim {
  font-size: clamp(1.7rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.035em;
  max-width: 20ch; margin: 0 0 clamp(30px, 5vw, 56px); font-weight: 500;
}
.at-claim em { font-style: italic; color: var(--clay-100); }
.at-deep .furniture { color: var(--ink-on-deep); }

/* index des matières : le brin garance, sur fond profond */
.at-mat {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--hairline-deep);
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 5vw, 80px);
}
.at-mat li {
  position: relative; padding: clamp(13px, 2vh, 19px) 0 clamp(13px, 2vh, 19px) 26px;
  border-bottom: 1px solid var(--hairline-deep);
  font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.4;
}
.at-mat li::before {
  content: ""; position: absolute; left: 0; top: 1.55em;
  width: 14px; height: 1px; background: var(--accent);
}
.at-mat .sub {
  display: block; margin-top: 4px;
  font-size: .92rem; line-height: 1.5; color: var(--ink-on-deep-muted); font-style: italic;
}
.at-deep .note {
  margin: clamp(28px, 4vw, 44px) 0 0; max-width: 52ch;
  color: var(--ink-on-deep-muted); font-size: 1rem; line-height: 1.7;
}

/* ------------------------------------------------------- SORTIE DE PAGE */
.at-out { background: var(--surface-raised); padding-block: clamp(56px, 8vw, 110px); }
.at-out-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(26px, 5vw, 72px); align-items: end;
}
.at-out h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem); line-height: 1.05; letter-spacing: -.03em;
  max-width: 16ch;
}
.at-out .script { color: var(--accent); font-size: clamp(1.3rem, 2.6vw, 1.9rem); display: inline-block; transform: rotate(-1.5deg); margin: 0 0 6px; }
.at-out p { color: var(--ink-muted); margin: 14px 0 0; max-width: 44ch; }
.at-out-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.at-out-actions .mail {
  font-size: .95rem; color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline); padding-bottom: 2px;
}
.at-out-actions .mail:hover { border-bottom-color: var(--accent); color: var(--ink); }

/* ---------------------------------------------------------- RESPONSIF */
@media (max-width: 900px) {
  .at-story { grid-template-columns: 1fr; }
  .at-margin { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(20px, 4vw, 40px); }
  .at-margin > * + * { margin-top: 0; }
  .at-mat { grid-template-columns: 1fr; }
  .at-out-grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 620px) {
  .at-facts { grid-template-columns: 1fr; }
  .at-facts > * + * { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; }
  .at-margin { grid-template-columns: 1fr; }
  .at-margin > * + * { border-top: 1px solid var(--hairline); margin-top: 16px; padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .at-margin { position: static; }
}
