/* Flaynn Data · brouillon de page (direction « archive claire »).
   Papier froid et encre, à part des deux univers (nuit Intelligence,
   papier chaud de l'Atelier) mais tenu par les ancres de la marque :
   violet en aplat, orange en simple point, IBM Plex Sans et Mono,
   chiffres tabulaires, coins à 2 px. Contrastes relevés sur --dt-papier
   et --dt-feuille, tous au-dessus de 4,5:1. */

:root {
  --dt-papier: #eceef1;
  --dt-feuille: #f7f8fa;
  --dt-creux: #e2e5ea;
  --dt-encre: #0d0f14;
  --dt-encre-2: #3d4350;   /* texte courant secondaire */
  --dt-encre-3: #555b69;   /* étiquettes mono, métadonnées */
  --dt-filet: rgba(13, 15, 20, 0.16);
  --dt-filet-fort: #0d0f14;
  --dt-violet: var(--violet, #7b2d8e);
  --dt-violet-fonce: #6a2479;
  --dt-orange: var(--orange, #e8651a);
  --dt-nuit: #0d0f14;
  --dt-nuit-texte: #c3c7d2;
  --dt-sans: var(--font-sans, 'IBM Plex Sans', system-ui, sans-serif);
  --dt-mono: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
  --dt-r: 2px;
  --dt-gouttiere: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

body.dt {
  margin: 0;
  background: var(--dt-papier);
  color: var(--dt-encre);
  font-family: var(--dt-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.dt :focus-visible { outline: 2px solid var(--dt-violet); outline-offset: 2px; }

.dt-num { font-family: var(--dt-mono); font-variant-numeric: tabular-nums; }

.dt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--dt-gouttiere); }

.dt-skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--dt-encre); color: #fff; padding: 10px 14px; border-radius: var(--dt-r);
}
.dt-skip:focus { top: 8px; }

/* En-tête */
/* Decalage des ancres = hauteur de l'en-tete sans son filet (72 px) : le filet
   haut de la section vient sous celui de l'en-tete au lieu de faire un double
   trait 15 px plus bas. */
html { scroll-padding-top: 72px; }
.dt-top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--dt-filet-fort);
  background: rgba(236, 238, 241, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.dt-top__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.dt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; color: var(--dt-encre); }
.dt-brand img { display: block; height: 30px; width: auto; }
.dt-brand__nom { font: 500 20px/1 var(--dt-sans); letter-spacing: -0.02em; margin-right: 4px; }
.dt-brand__tag {
  font: 500 11px/1 var(--dt-mono); letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--dt-encre); padding: 5px 7px 4px; border-radius: var(--dt-r);
}
.dt-top__nav { display: flex; gap: 4px; margin-left: auto; }
.dt-top__lien {
  font-size: 14px; color: var(--dt-encre-2); text-decoration: none;
  padding: 12px 12px; min-height: 44px; display: inline-flex; align-items: center;
}
.dt-top__lien { position: relative; }
.dt-top__lien::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px;
  background: currentColor; scale: 0 1; transform-origin: left;
}
.dt-top__lien:hover, .dt-top__lien[aria-current] { color: var(--dt-encre); }
.dt-top__lien:hover::after, .dt-top__lien[aria-current]::after { scale: 1 1; }
.dt-top__lien[aria-current]::after { background: var(--dt-violet); height: 2px; }

/* Boutons */
.dt-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; background: var(--dt-violet); color: #fff; text-decoration: none;
  font: 500 15px/1.2 var(--dt-sans); border-radius: var(--dt-r); border: 1px solid var(--dt-violet);
  transition: background-color 150ms ease;
}
.dt-btn:hover { background: var(--dt-violet-fonce); }
.dt-btn:active { translate: 0 1px; }
.dt-btn:focus-visible { outline: 2px solid var(--dt-violet); outline-offset: 3px; }
.dt-acces .dt-btn:focus-visible { outline-color: #fff; }
.dt-btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.dt-top__nav + .dt-btn--sm { margin-left: 8px; }
.dt-btn--clair { background: #fff; color: var(--dt-encre); border-color: #fff; }
.dt-btn--clair:hover { background: var(--dt-creux); }
.dt-lien {
  display: inline-flex; align-items: center; min-height: 48px; font-size: 15px;
  color: var(--dt-violet); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}

/* Hero */
.dt-hero { padding: clamp(48px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); }
.dt-hero__grille { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.dt-marge {
  list-style: none; margin: 0; padding: 4px 0 0;
  font: 400 12px/2.4 var(--dt-mono); color: var(--dt-encre-3); font-variant-numeric: tabular-nums;
}
.dt-sceau { display: inline-flex; flex-wrap: wrap; margin: 0; font: 500 11px/1 var(--dt-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.dt-sceau__k { background: var(--dt-violet); color: #fff; padding: 7px 9px; border-radius: var(--dt-r) 0 0 var(--dt-r); }
.dt-sceau__v { border: 1px solid var(--dt-violet); color: var(--dt-violet); padding: 6px 9px; border-radius: 0 var(--dt-r) var(--dt-r) 0; }
.dt-h1 {
  font-weight: 300; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.01; letter-spacing: -0.045em;
  margin: 24px 0 20px; max-width: 15ch;
}
.dt-chapeau { margin: 0; max-width: 58ch; font-size: clamp(16px, 1.5vw, 18px); color: var(--dt-encre-2); }
.dt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }

.dt-index {
  display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 0.8fr; margin: 56px 0 0;
  border-top: 2px solid var(--dt-filet-fort); border-bottom: 1px solid var(--dt-filet);
}
.dt-index__col { padding: 14px 20px 18px 0; }
.dt-index__col + .dt-index__col { padding-left: 20px; border-left: 1px solid var(--dt-filet); }
.dt-index__col:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.dt-index__col--b { border-top: 1px solid var(--dt-filet); }
.dt-index .dt-num { white-space: nowrap; }
.dt-index dt { font: 500 11px/1 var(--dt-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dt-encre-3); margin-bottom: 12px; }
.dt-index dd { margin: 0; font: 400 15px/1.4 var(--dt-mono); font-variant-numeric: tabular-nums; }
.dt-carre { display: inline-block; width: 7px; height: 7px; background: var(--dt-orange); margin: 0 10px 2px 0; vertical-align: middle; }
.dt-carre--violet { background: var(--dt-violet); }
@media (min-width: 981px) {
  /* Deuxieme source : meme colonnes, etiquettes lues mais non repetees a l'ecran */
  .dt-index__col--b { padding-top: 14px; }
  .dt-index__col--b dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.dt-note { margin: 12px 0 0; font: 400 12px/1.5 var(--dt-mono); color: var(--dt-encre-3); }

/* Sections */
.dt-section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--dt-filet-fort); }
.dt-section--creuse { background: var(--dt-creux); }
.dt-eyebrow { margin: 0 0 16px; font: 500 11px/1 var(--dt-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dt-violet); }
.dt-eyebrow--clair { color: #d7a6e6; }
.dt-h2 { font-weight: 300; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -0.04em; margin: 0 0 20px; max-width: 20ch; }
.dt-h2--clair { color: #fff; }
.dt-texte { margin: 0; max-width: 60ch; color: var(--dt-encre-2); }
.dt-texte--clair { color: var(--dt-nuit-texte); margin-bottom: 28px; }
.dt-tete { margin-bottom: clamp(32px, 4vw, 48px); }

/* 01 · la preuve */
.dt-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.dt-points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--dt-filet); }
.dt-points li { padding: 16px 0; border-bottom: 1px solid var(--dt-filet); color: var(--dt-encre-2); }
.dt-points strong { color: var(--dt-encre); font-weight: 600; }

.dt-fiche { margin: 0; background: var(--dt-feuille); border: 1px solid var(--dt-filet-fort); border-radius: var(--dt-r); }
.dt-fiche__tete {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px;
  background: var(--dt-violet); color: #fff; font: 500 11px/1.3 var(--dt-mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.dt-fiche__tete span:last-child { text-transform: none; letter-spacing: 0.02em; }
.dt-fiche__lignes { margin: 0; }
.dt-fiche__lignes > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--dt-filet); }
.dt-fiche__lignes > div:first-child { border-top: 0; }
.dt-fiche__lignes dt { font: 400 13px/1.45 var(--dt-mono); color: var(--dt-encre-3); }
.dt-fiche__lignes dd { margin: 0; font: 400 14px/1.45 var(--dt-sans); overflow-wrap: anywhere; }
.dt-fiche__legende { padding: 10px 16px 12px; border-top: 1px dashed var(--dt-filet); font: 400 12px/1.4 var(--dt-mono); color: var(--dt-encre-3); }

/* 02 · les deux dates */
.dt-horloges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--dt-filet-fort); }
.dt-horloge { padding: 28px 32px 32px 0; }
.dt-horloge + .dt-horloge { padding-left: 32px; border-left: 1px solid var(--dt-filet); }
.dt-horloge__k { margin: 0 0 16px; font: 500 11px/1 var(--dt-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dt-encre-3); }
.dt-horloge__q { margin: 0 0 14px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; font-weight: 300; letter-spacing: -0.02em; }
.dt-horloge__r { margin: 0; color: var(--dt-encre-2); }

/* 03 · la couverture */
.dt-frise { margin: 0; }
.dt-frise__mois { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 0.63fr repeat(23, minmax(0, 1fr)) 0.4fr; gap: 3px; /* premier et dernier mois partiels : 19 et 12 jours */ }
.dt-frise__mois li {
  position: relative; height: 44px; background: var(--dt-violet);
  font-size: 0; color: transparent; /* libellé lu par les lecteurs d'écran, affiché par ::after aux jalons */
}
.dt-frise__mois li:nth-child(1)::after, .dt-frise__mois li:nth-child(3)::after,
.dt-frise__mois li:nth-child(15)::after, .dt-frise__mois li:nth-child(25)::after {
  content: attr(data-jalon); position: absolute; top: calc(100% + 10px); left: 0; white-space: nowrap;
  font: 400 11px/1 var(--dt-mono); color: var(--dt-encre-3);
}
.dt-frise__mois li:nth-child(25)::after { left: auto; right: 0; }
.dt-frise__axe { display: none; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--dt-encre-3); }
.dt-frise__legende { margin-top: 40px; font: 400 13px/1.5 var(--dt-mono); color: var(--dt-encre-2); }

.dt-phrase { margin-top: clamp(40px, 5vw, 56px); padding: 24px 28px; background: var(--dt-feuille); border: 1px solid var(--dt-filet-fort); border-left: 4px solid var(--dt-violet); border-radius: var(--dt-r); max-width: 760px; }
.dt-phrase__k { margin: 0 0 12px; font: 500 11px/1 var(--dt-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dt-encre-3); }
.dt-phrase__v { margin: 0 0 12px; font: 400 clamp(16px, 1.8vw, 19px)/1.5 var(--dt-mono); }
.dt-phrase__n { margin: 0; font: 400 12px/1.4 var(--dt-mono); color: var(--dt-encre-3); }

.dt-regles { list-style: none; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--dt-filet-fort); }
.dt-regles li { padding: 20px 24px 0 0; color: var(--dt-encre-2); font-size: 15px; }
.dt-regles li + li { padding-left: 24px; border-left: 1px solid var(--dt-filet); }

/* Accès : la seule bande de nuit, rappel de la marque */
.dt-acces { background: var(--dt-nuit); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.dt-acces__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.dt-etat { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.dt-etat > div { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.dt-etat dt { font: 500 11px/1 var(--dt-mono); letter-spacing: 0.16em; text-transform: uppercase; color: #9ba2b3; margin-bottom: 10px; }
.dt-etat dd { margin: 0; color: var(--dt-nuit-texte); }
.dt-etat > div:first-child dd { color: #fff; }

/* Pied */
.dt-pied { padding: 40px 0 48px; font-size: 13px; color: var(--dt-encre-2); }
.dt-pied__in > p { margin: 0 0 12px; max-width: 90ch; }
.dt-pied__bas { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 16px; border-top: 1px solid var(--dt-filet); font-family: var(--dt-mono); font-size: 12px; }
.dt-pied__bas a { color: var(--dt-encre-2); display: inline-flex; align-items: center; min-height: 44px; }
.dt-pied__bas span { display: inline-flex; align-items: center; min-height: 44px; }

/* Largeurs */
@media (max-width: 980px) {
  .dt-top__nav { display: none; }
  .dt-top__in > .dt-btn--sm { margin-left: auto; }
  .dt-split, .dt-acces__grille { grid-template-columns: minmax(0, 1fr); }
  .dt-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-index__col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .dt-index .dt-index__col--src:not(:first-child) { border-top: 1px solid var(--dt-filet-fort); }
  .dt-index__col:nth-child(n + 3) { border-top: 1px solid var(--dt-filet); }
  .dt-regles { grid-template-columns: minmax(0, 1fr); }
  .dt-regles li { padding: 16px 0; border-bottom: 1px solid var(--dt-filet); }
  .dt-regles li + li { padding-left: 0; border-left: 0; }
}

@media (max-width: 640px) {
  .dt-hero__grille { grid-template-columns: minmax(0, 1fr); }
  .dt-marge { display: none; }
  .dt-brand img { height: 26px; }
  .dt-brand__nom { font-size: 18px; }
  .dt-brand { gap: 8px; }
  .dt-index { grid-template-columns: minmax(0, 1fr); }
  .dt-index__col + .dt-index__col { padding-left: 0; border-left: 0; border-top: 1px solid var(--dt-filet); }
  .dt-fiche__lignes > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dt-horloges { grid-template-columns: minmax(0, 1fr); }
  .dt-horloge { padding: 24px 0; }
  .dt-horloge + .dt-horloge { padding-left: 0; border-left: 0; border-top: 1px solid var(--dt-filet); }
  .dt-frise__mois { gap: 2px; }
  .dt-frise__mois li { height: 36px; }
  .dt-frise__mois li::after { display: none; }
  .dt-frise__axe { display: flex; }
  .dt-frise__legende { margin-top: 16px; }
  .dt-phrase { padding: 20px; }
  .dt-actions .dt-btn { width: 100%; }
}

@media print {
  .dt-top__nav, .dt-actions, .dt-btn { display: none; }
  .dt-acces { background: none; color: var(--dt-encre); }
  .dt-top { position: static; }
  .dt-arme, .dt-arme * { opacity: 1 !important; filter: none !important; translate: none !important; scale: none !important; }
}

/* ─── Finition : survols et focus ─── */
.dt-lien:hover { color: var(--dt-violet-fonce); text-decoration-thickness: 2px; }
.dt-fiche__lignes > div:hover { background: rgba(123, 45, 142, 0.05); }
.dt-pied__bas a:hover { color: var(--dt-encre); }
.dt-index [data-dt-compte] { display: inline-block; min-width: 9ch; text-align: right; }
html.dt-dense .dt-top { background-color: rgba(236, 238, 241, 0.94); box-shadow: 0 10px 30px -22px rgba(13, 15, 20, 0.45); }

/* ─── Mouvement ───
   Sobre, une seule courbe, aucun rebond. Tout est a l'etat final sans script
   (dt-arme et dt-vu ne sont poses que par js/data-page.js) et sous
   prefers-reduced-motion: reduce. Seuls opacite, flou, translate et scale
   bougent : aucun decalage de mise en page. */
:root { --dt-ease: cubic-bezier(0.2, 0.8, 0.2, 1); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  html.lenis.lenis-smooth { scroll-behavior: auto; }

  .dt-top__lien::after { transition: scale 280ms var(--dt-ease); }
  .dt-top { transition: box-shadow 320ms var(--dt-ease), background-color 320ms var(--dt-ease); }
  .dt-btn { transition: background-color 180ms var(--dt-ease), translate 120ms var(--dt-ease); }
  .dt-lien { transition: color 180ms var(--dt-ease), text-decoration-thickness 180ms var(--dt-ease); }
  .dt-fiche__lignes > div { transition: background-color 180ms var(--dt-ease); }

  /* Ouverture : CSS pur, peinte des la premiere image, jamais sous 0,4. */
  .dt-hero__corps > * { animation: dt-suite 640ms var(--dt-ease) both; }
  .dt-hero__corps > .dt-h1 { animation: dt-titre 760ms var(--dt-ease) both; }
  .dt-hero__corps > :nth-child(3) { animation-delay: 90ms; }
  .dt-hero__corps > :nth-child(4) { animation-delay: 170ms; }
  .dt-hero__corps > :nth-child(n + 5) { animation-delay: 250ms; }
  .dt-marge li { animation: dt-suite 640ms var(--dt-ease) both; }
  .dt-marge li:nth-child(2) { animation-delay: 80ms; }
  .dt-marge li:nth-child(3) { animation-delay: 160ms; }

  /* Blocs et titres armes sous la ligne de flottaison */
  .dt-arme:not(h2):not(.dt-fiche):not(.dt-frise) { opacity: 0; translate: 0 28px; }
  .dt-vu:not(h2):not(.dt-fiche):not(.dt-frise) {
    animation: dt-monte 760ms var(--dt-ease) backwards;
    animation-delay: calc(var(--rang, 0) * 90ms);
  }
  h2 .dt-mot { display: inline-block; }
  h2.dt-arme .dt-mot { opacity: 0; filter: blur(8px); translate: 0 0.3em; }
  h2.dt-vu .dt-mot { animation: dt-mot 720ms var(--dt-ease) backwards; animation-delay: calc(min(var(--i, 0), 10) * 45ms); }

  /* La fiche se compose ligne a ligne */
  .dt-fiche.dt-arme { opacity: 0; translate: 0 24px; }
  .dt-fiche.dt-arme .dt-fiche__lignes > div,
  .dt-fiche.dt-arme .dt-fiche__legende { opacity: 0; }
  .dt-fiche.dt-vu { animation: dt-monte 640ms var(--dt-ease) backwards; }
  .dt-fiche.dt-vu .dt-fiche__lignes > div {
    animation: dt-ligne 520ms var(--dt-ease) backwards;
    animation-delay: calc(240ms + var(--i, 0) * 85ms);
  }
  .dt-fiche.dt-vu .dt-fiche__legende { animation: dt-fondu 500ms var(--dt-ease) 980ms backwards; }

  /* La frise se remplit de gauche a droite, mois par mois */
  .dt-frise__mois li { transform-origin: 50% 100%; }
  .dt-frise.dt-arme .dt-frise__mois li { scale: 1 0; }
  .dt-frise.dt-arme .dt-frise__mois li::after,
  .dt-frise.dt-arme .dt-frise__legende { opacity: 0; }
  .dt-frise.dt-vu .dt-frise__mois li {
    animation: dt-segment 520ms var(--dt-ease) backwards;
    animation-delay: calc(var(--i, 0) * 34ms);
  }
  .dt-frise.dt-vu .dt-frise__mois li::after { animation: dt-fondu 400ms var(--dt-ease) 600ms backwards; }
  .dt-frise.dt-vu .dt-frise__legende { animation: dt-fondu 500ms var(--dt-ease) 900ms backwards; }

  /* Fil de progression lie au defilement */
  @supports (animation-timeline: scroll()) {
    body.dt::before {
      content: ""; position: fixed; inset: 0 0 auto; height: 2px; z-index: 30;
      background: var(--dt-violet); transform-origin: left; scale: 0 1;
      animation: dt-fil linear both; animation-timeline: scroll(root);
    }
  }
}

@keyframes dt-titre { from { opacity: 0.4; filter: blur(6px); } }
@keyframes dt-suite { from { opacity: 0.4; translate: 0 8px; } }
@keyframes dt-monte { from { opacity: 0; translate: 0 28px; } }
@keyframes dt-mot { from { opacity: 0; filter: blur(8px); translate: 0 0.3em; } }
@keyframes dt-ligne { from { opacity: 0; translate: -10px 0; } }
@keyframes dt-fondu { from { opacity: 0; } }
@keyframes dt-segment { from { scale: 1 0; } }
@keyframes dt-fil { to { scale: 1 1; } }
