/* ===========================================================================
   Disque Bleu, feuille de style unique.

   Architecture visuelle : une scène WebGL fixe (ciel + disque) sur laquelle
   glissent des sections. Par-dessus, une grille de filets d'un pixel, des
   marques de repère aux intersections, un serif de titrage et des micro-
   étiquettes en chasse fixe. Aucun dégradé décoratif, aucune ombre portée :
   tout le relief vient de l'image et du vide.
   =========================================================================== */

/* ------------------------------------------------------------- JETONS -- */

:root {
  /* Couleurs. Le bleu vient de l'application (#1565C0), remonté en
     luminosité pour tenir un ciel plein cadre. */
  --sky: #0b60c4;
  --sky-flat: #1565c0;   /* le bleu à plat de l'application */
  --sky-deep: #04398a;
  --press: #0b0a09;
  --press-soft: #171614;
  --paper: #f2f1ed;
  --ink: #1d1c19;
  --ink-soft: #55534c;

  --amber: #ff8a1e;   /* l'orange du compte à rebours */
  --icon: #6aa9f0;    /* bleu clair des pictogrammes */
  --on-dark: #f7f5f0;
  --on-dark-dim: #b9b5ab;

  /* Filets et repères : toujours translucides, jamais opaques. */
  --rule-dark: #ffffff40;
  --rule-light: #1d1c1926;
  --cross-dark: #ffffff9e;
  --cross-light: #1d1c1966;

  /* Une seule famille de texte : Inter, celle de l'application, serrée au
     titrage. DM Mono ne sert qu'aux micro-étiquettes et aux chiffres. */
  --title: "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --code: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Gouttières verticales : la colonne de texte vit entre les deux rails. */
  --v1: 78px;
  --v2: 85.5%;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 1.1s;
}

@media (max-width: 860px) {
  :root {
    --v1: 26px;
    --v2: 92%;
  }
}

/* -------------------------------------------------------------- BASE -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Le bandeau est fixe : sans cette réserve, une ancre dépose son titre
     dessous. */
  scroll-padding-top: 96px;
}

@media (max-width: 860px) {
  html { scroll-padding-top: 78px; }
}

body {
  min-height: 100svh;
  font-family: var(--text);
  font-size: clamp(0.95rem, 0.9rem + 0.24vw, 1.06rem);
  line-height: 1.55;
  color: var(--on-dark);
  background: var(--press);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--on-dark); color: var(--press); }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Masqué à la souris, mais bien visible dès qu'on l'atteint au clavier :
   caché en permanence, il ne servait à personne. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--paper);
  font: 500 11px / 1 var(--code);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

/* `:focus` et non `:focus-visible` : un lien d'évitement doit apparaître dès
   qu'il reçoit le focus, y compris quand celui-ci vient d'un script. */
.skip-link:focus {
  transform: none;
  outline: 2px solid var(--sky-flat);
  outline-offset: 2px;
}

/* La cible du lien reçoit le focus sans dessiner de cadre autour du site. */
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------- SCÈNE WEBGL --- */

#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  /* Repli tant que le contexte n'est pas prêt : un ciel plat. */
  background: linear-gradient(#0a56b0, #1573d8 62%, #4ea3ee);
}

/* ------------------------------------------------------------ VOILE -- */

/* Sans lui, le texte se perd dès qu'un nuage passe dessous. Il est accroché
   au coin bas-gauche, là où vit le texte, et se dissipe avant le disque.
   Une seule couche fixe : un voile par scène laissait une couture nette là
   où deux blocs collants se croisent. */
.veil {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    115% 82% at 0% 108%,
    rgba(3, 24, 62, 0.88) 0%,
    rgba(3, 24, 62, 0.6) 34%,
    rgba(3, 24, 62, 0) 72%
  );
}

/* En écran étroit le texte occupe toute la largeur : le coin ne suffit plus,
   il faut une remontée depuis le bas. */
@media (max-width: 860px) {
  .veil {
    /* En portrait, la transition commence plus haut afin de séparer le texte
       du disque sans couvrir la partie supérieure de l'objet. */
    background: linear-gradient(
      to top,
      rgba(3, 24, 62, 0.94) 0%,
      rgba(3, 24, 62, 0.78) 42%,
      rgba(3, 24, 62, 0.32) 62%,
      rgba(3, 24, 62, 0) 76%
    );
  }
}

/* ------------------------------------------------- GRILLE DE FILETS -- */

/* Les rails verticaux traversent toute la fenêtre, en position fixe :
   ils cadrent la page comme des repères de montage. */
.frame {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.frame__v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule-dark);
  transition: background 0.6s linear;
}

.frame__v--l { left: var(--v1); }
.frame__v--r { left: var(--v2); }

@media (max-width: 860px) {
  .frame__v--r { display: none; }
}

/* Sur les sections claires, les filets s'inversent. */
body.is-light .frame__v { background: var(--rule-light); }

/* ------------------------------------------------------- BANDEAU --- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding-inline: 22px clamp(18px, 3vw, 34px);
  color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
  text-shadow: 0 1px 12px rgba(3, 24, 62, 0.5);
  transition: border-color 0.6s linear, color 0.6s linear, text-shadow 0.6s linear;
}

/* Sur une section claire, le bandeau repasse en encre. */
body.is-light .masthead {
  color: var(--ink);
  border-bottom-color: var(--rule-light);
  text-shadow: none;
}

.masthead__logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

.masthead__logo svg { width: 32px; height: auto; }

.masthead__actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 34px);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}

.masthead__link {
  font: 400 11px / 1 var(--code);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.3s linear;
}

.masthead__link:hover { opacity: 1; }

.language-picker {
  position: relative;
  display: block;
}

.language-picker::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.language-picker select {
  min-width: 58px;
  padding: 8px 27px 8px 10px;
  color: inherit;
  background: rgba(11, 10, 9, 0.14);
  border: 1px solid currentColor;
  border-radius: 0;
  outline: 0;
  appearance: none;
  font: 500 10px / 1 var(--code);
  letter-spacing: 0.13em;
  cursor: pointer;
}

.language-picker select:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.language-picker option {
  color: var(--ink);
  background: var(--paper);
}

body.is-light .language-picker select { background: #ffffff3d; }

@media (max-width: 860px) {
  .masthead { height: 62px; padding-inline: 14px 16px; }
  .masthead__nav { display: none; }
}

/* ---------------------------------------------------- BADGES STORES -- */

/* Les visuels officiels d'Apple et de Google. Leurs marges de protection
   sont déjà dans les fichiers, d'où deux hauteurs différentes pour un même
   poids optique. */
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.store {
  display: block;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.store:hover {
  opacity: 0.84;
  transform: translateY(-1px);
}

.store img {
  width: auto;
  display: block;
}

.store[data-store="ios"] img { height: 47px; }
.store[data-store="android"] img { height: 68px; }

@media (max-width: 520px) {
  .store[data-store="ios"] img { height: 42px; }
  .store[data-store="android"] img { height: 61px; }
}

/* --------------------------------------------------------- TITRAGE -- */

.display {
  font-family: var(--title);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Les grandes affirmations passent en capitales grasses : c'est la voix des
   visuels de l'application. Les titres de section, plus longs, restent en
   casse normale, des capitales sur trois lignes ne se lisent plus. */
.display--xl,
.display--l {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.display--xl { font-size: clamp(2.4rem, 5.8vw, 5.6rem); }
.display--l  { font-size: clamp(1.95rem, 4.2vw, 3.9rem); }
.display--m  { font-size: clamp(1.7rem, 3.2vw, 3rem); }

.say {
  max-width: 46ch;
  font-size: clamp(0.95rem, 0.88rem + 0.34vw, 1.14rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.say--dim { color: var(--on-dark-dim); }

/* --------------------------------------------------------- SCÈNES --- */

/* Une scène = une piste de défilement ; son contenu reste collé en bas
   de la fenêtre pendant toute la traversée, comme un sous-titre. */
.scene {
  position: relative;
  z-index: 10;
  height: calc(var(--len, 2) * 100svh);
}

.scene__pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-end;
  height: 100svh;
  padding: 0 clamp(20px, 4vw, 60px) clamp(64px, 12vh, 132px)
           calc(var(--v1) + clamp(20px, 3vw, 40px));
}

.scene__copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 22px;
  max-width: 720px;
}

/* `--vis` est calculé au défilement, dans app.js. */
.js .scene__copy {
  opacity: var(--vis, 0);
  transform: translateY(calc((1 - var(--vis, 0)) * 18px));
}

@media (prefers-reduced-motion: reduce) {
  .js .scene__copy { transform: none; }
}


.scene__copy .display { text-shadow: 0 2px 34px rgba(3, 20, 52, 0.55); }

/* Sur l'image, le gris chaud des sections éditoriales ne tient pas. */
.scene__copy .say--dim {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 16px rgba(3, 20, 52, 0.8);
}

/* Le filet horizontal qui ferme une scène, avec ses deux marques. */
.seam {
  position: relative;
  height: 1px;
  background: var(--rule-dark);
}

.seam::before,
.seam::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  translate: -50% -50%;
  background: var(--cross-dark);
  /* Étoile à quatre branches : le repère de calage de la grille. */
  clip-path: polygon(
    50% 0%, 57% 43%, 100% 50%, 57% 57%,
    50% 100%, 43% 57%, 0% 50%, 43% 43%
  );
}

.seam::before { left: var(--v1); }
.seam::after  { left: var(--v2); }

@media (max-width: 860px) {
  .seam::after { display: none; }
}

/* ------------------------------------------------------ ÉDITORIAL --- */

/* Sections opaques qui recouvrent la scène : c'est là que vit le texte. */
.leaf {
  position: relative;
  z-index: 20;
  background: var(--press);
  padding-block: clamp(70px, 14vh, 150px);
}

.leaf--paper {
  background: var(--paper);
  color: var(--ink);
}

.leaf--paper .say--dim { color: var(--ink-soft); }

.section-kicker {
  margin-bottom: 18px;
  font: 500 10px / 1 var(--code);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--icon);
}

.hold {
  padding-inline: calc(var(--v1) + clamp(20px, 3vw, 40px))
                  calc(100% - var(--v2) + clamp(20px, 3vw, 40px));
}

@media (max-width: 860px) {
  .hold { padding-inline: calc(var(--v1) + 18px) 22px; }
}

/* En-tête de section : étiquette à gauche, titre à droite. */
.leaf__head {
  display: grid;
  gap: 26px;
  margin-bottom: clamp(44px, 8vh, 88px);
}

/* La colonne de gauche reste vide : elle cale le titre sur la colonne des
   rangs qui suivent, et laisse la marge respirer. */
@media (min-width: 960px) {
  .leaf__head {
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
    gap: 0 40px;
  }
  .leaf__head > :first-child { grid-column: 2; }
}

/* --------------------------------------------------------- LISTES --- */

/* Rangs séparés par des filets : la structure de base des sections. */
.rank {
  border-top: 1px solid var(--rule-dark);
}

.leaf--paper .rank { border-top-color: var(--rule-light); }

.rank__row {
  display: grid;
  gap: 10px 40px;
  padding-block: clamp(22px, 3.4vh, 34px);
  border-bottom: 1px solid var(--rule-dark);
}

.leaf--paper .rank__row { border-bottom-color: var(--rule-light); }

@media (min-width: 960px) {
  .rank__row {
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
  }
}

/* Une icône tient la colonne de gauche, à la place de la numérotation. */
.rank__icon {
  display: block;
  color: var(--icon);
}

.rank__icon svg { width: 30px; height: 30px; }
.leaf--paper .rank__icon { color: var(--sky-flat); }

.rank__row > :last-child { min-width: 0; }

.rank__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 5px;
}

.rank__head .rank__title { flex: 1 1 260px; }

.rank__title {
  font-family: var(--title);
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.rank__note {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--on-dark-dim);
  text-wrap: pretty;
}

.rank__version {
  flex: none;
  padding: 5px 7px;
  border: 1px solid currentColor;
  font: 500 9px / 1 var(--code);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--icon);
  white-space: nowrap;
}

.leaf--paper .rank__note { color: var(--ink-soft); }

/* Le rang s'éclaire au survol : un simple voile, pas d'effet. */
@media (hover: hover) {
  .rank__row { transition: background 0.45s var(--ease); }
  .rank__row:hover { background: #ffffff08; }
  .leaf--paper .rank__row:hover { background: #1d1c1908; }
}

/* ------------------------------------------------ REGISTRE DES PAYS -- */

/* Pas de cartes autonomes : les pays suivent la même logique éditoriale que
   le reste de la page, avec une grille, des filets et des repères techniques. */
.countries {
  display: grid;
  border-block: 1px solid var(--rule-dark);
}

.country {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  min-height: clamp(104px, 13vw, 146px);
  padding-block: clamp(22px, 3.6vw, 36px);
  border-bottom: 1px solid var(--rule-dark);
}

.country:last-child { border-bottom: 0; }

.country__name {
  font-family: var(--title);
  font-size: clamp(1.42rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.country__flag {
  display: grid;
  place-items: center;
  width: clamp(46px, 5.2vw, 64px);
  height: clamp(34px, 4vw, 46px);
  line-height: 0;
  opacity: 0.82;
  transition: opacity 0.35s linear, transform 0.45s var(--ease);
}

/* Les proportions nationales restent intactes ; seul le gabarit optique est
   commun. Le filet est technique, sans ombre ni effet de carte. */
.country__flag svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  outline: 1px solid rgba(255, 255, 255, 0.24);
}

@media (hover: hover) {
  .country {
    transition: background 0.45s var(--ease);
  }

  .country:hover { background: #ffffff06; }
  .country:hover .country__flag {
    opacity: 1;
    transform: translateX(-4px);
  }
}

@media (min-width: 760px) {
  .countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .country:nth-child(odd) {
    padding-right: clamp(22px, 4vw, 52px);
  }

  .country:nth-child(even) {
    padding-left: clamp(22px, 4vw, 52px);
    border-left: 1px solid var(--rule-dark);
  }

  .country:nth-last-child(-n + 2) { border-bottom: 0; }
}

.inline-link {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--icon);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s linear, text-decoration-color 0.25s linear;
}

.inline-link:hover {
  color: var(--icon);
  text-decoration-color: currentColor;
}

/* -------------------------------------------------------- LE RELEVÉ -- */

/* Reprend la présentation du disque dans l'application : le libellé localisé,
   le repère triangulaire, puis l'heure. */
.readout {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 20px 26px 22px;
  border-left: 2px solid rgba(255, 255, 255, 0.55);
}

.readout__label {
  display: grid;
  font-size: clamp(0.84rem, 1.1vw, 0.98rem);
  font-weight: 500;
  line-height: 1.34;
  color: rgba(255, 255, 255, 0.82);
}

.readout__time {
  position: relative;
  padding-top: 22px;
  font-family: var(--title);
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

/* Le repère du disque, pointe en bas. */
.readout__time::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  width: 22px;
  height: 13px;
  background: currentColor;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.readout__foot {
  font-size: clamp(0.86rem, 1.1vw, 0.98rem);
  color: rgba(255, 255, 255, 0.8);
}

.readout__foot b {
  font-weight: 600;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .scene--calculation .scene__copy {
    width: min(100%, 360px);
    gap: 16px;
  }

  .scene--calculation .readout {
    width: 100%;
    gap: 8px;
    padding: 14px 0 16px 18px;
  }

  .scene--calculation .readout__time {
    padding-top: 17px;
  }

  .scene--calculation .readout__time::before {
    width: 18px;
    height: 10px;
  }

  .scene--calculation .readout__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15em 0.35em;
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* ---------------------------------------------------- AVERTISSEMENT -- */

/* La mention légale doit se lire, pas se décorer : fond papier, filets. */
.notice {
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  padding-block: clamp(34px, 6vh, 60px);
}

.notice__grid {
  display: grid;
  gap: 26px;
}

/* L'illustration porte le message autant que le texte : elle prend sa
   moitié, et le texte se cale à côté. */
@media (min-width: 900px) {
  .notice__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: center;
    gap: 0 clamp(32px, 5vw, 72px);
  }
}

.notice__art { margin: 0; }

.windshield {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.notice p + p { margin-top: 14px; }

/* ----------------------------------------- LISTE DES FONCTIONNALITÉS -- */

.feature-layout {
  background: var(--press-soft);
  border-block: 1px solid var(--rule-dark);
}

.feature-list {
  min-width: 0;
  border-top: 0;
}

.feature-list .rank__row {
  padding-inline: clamp(20px, 3.2vw, 34px);
}

@media (min-width: 960px) {
  .feature-list .rank__row {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

/* -------------------------------------------- HISTORIQUE DES VERSIONS -- */

.feature-history {
  margin-top: clamp(70px, 11vh, 118px);
  background: var(--press-soft);
  border-block: 1px solid var(--rule-dark);
}

.feature-history__summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px clamp(24px, 4vw, 54px);
  padding: clamp(26px, 4.5vw, 46px);
  list-style: none;
  cursor: pointer;
  transition: background 0.35s linear;
}

.feature-history__summary::-webkit-details-marker { display: none; }

.feature-history__summary-title {
  display: grid;
  gap: 10px;
}

.feature-history__summary-title strong {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.feature-history__toggle {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule-dark);
}

.feature-history__toggle::before,
.feature-history__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.feature-history__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.35s var(--ease);
}

.feature-history[open] .feature-history__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.feature-history__content {
  border-top: 1px solid var(--rule-dark);
}

.version-list {
  position: relative;
  min-width: 0;
}

.version-row {
  position: relative;
  display: grid;
  gap: 14px 28px;
  min-height: 148px;
  padding: clamp(24px, 3.8vw, 38px);
  border-bottom: 1px solid var(--rule-dark);
  transition: background 0.35s linear;
}

.version-row:last-child { border-bottom: 0; }

.version-row::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 2px;
  background: var(--icon);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.version-row.is-current {
  background: #ffffff07;
}

.version-row.is-current::before {
  transform: scaleY(1);
}

.version-row__meta {
  display: grid;
  align-content: start;
  gap: 8px;
  font-family: var(--code);
  font-variant-numeric: tabular-nums;
}

.version-row__meta strong {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.34rem);
  font-weight: 500;
  line-height: 1;
  color: var(--on-dark);
}

.version-row.is-current .version-row__meta strong {
  color: var(--icon);
}

.version-row__meta time {
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

.version-row__body {
  min-width: 0;
}

.version-row__body h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.version-row__body p {
  color: var(--on-dark-dim);
  font-size: 0.92rem;
  line-height: 1.62;
  text-wrap: pretty;
}

@media (min-width: 860px) {
  .version-row {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

@media (hover: hover) {
  .feature-history__summary:hover { background: #ffffff07; }
  .version-row:hover { background: #ffffff07; }
}

@media (max-width: 859px) {
  .feature-history__toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .version-row__meta {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
  }

  .version-row__meta time {
    justify-self: end;
    text-align: right;
  }
}

/* ----------------------------------------------------------- PRESSE -- */

/* Les parutions reprennent le registre éditorial du site : les signatures des
   médias, des filets et un lien direct vers chaque article. */
.press-leaf {
  padding-block: clamp(64px, 11vh, 112px);
  border-bottom: 1px solid var(--rule-dark);
}

.press-title {
  margin-bottom: clamp(28px, 5vh, 52px);
  font: 500 11px / 1 var(--code);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

.press-list {
  border-top: 1px solid var(--rule-dark);
}

.press-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 36px;
  min-height: clamp(92px, 12vh, 124px);
  padding-block: clamp(22px, 3.4vh, 34px);
  border-bottom: 1px solid var(--rule-dark);
  transition: background 0.4s var(--ease);
}

.press-source__logo {
  width: auto;
  height: auto;
  max-width: min(62vw, 360px);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.88;
  transition: opacity 0.35s linear, transform 0.4s var(--ease);
}

.press-source__logo--jdj { width: min(100%, 360px); }
.press-source__logo--arcinfo { width: min(100%, 190px); filter: invert(1); }
.press-source__logo--watson { width: min(100%, 180px); }
.press-source__logo--nouvelliste { width: min(100%, 250px); }
.press-source__logo--lacote { width: min(100%, 190px); }

.press-source__action {
  font: 500 10px / 1.4 var(--code);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--icon);
  transition: transform 0.35s var(--ease), color 0.25s linear;
}

@media (hover: hover) {
  .press-source:hover { background: #ffffff08; }
  .press-source:hover .press-source__logo {
    opacity: 1;
    transform: translateX(4px);
  }
  .press-source:hover .press-source__action {
    color: var(--on-dark);
    transform: translate(3px, -3px);
  }
}

@media (max-width: 520px) {
  .press-source {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .press-source__logo { max-width: min(78vw, 320px); }
}

/* ------------------------------------------------------- PIED DE PAGE -- */

.foot {
  position: relative;
  z-index: 20;
  background: var(--press);
  border-top: 1px solid var(--rule-dark);
  padding-block: clamp(50px, 8vh, 84px) 30px;
}

.foot__grid {
  display: grid;
  gap: 34px;
  margin-bottom: 54px;
}

@media (min-width: 760px) {
  .foot__grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}

.foot h4 {
  margin-bottom: 16px;
  font: 400 11px / 1 var(--code);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

.foot li + li { margin-top: 9px; }

.foot__link {
  font-size: 0.94rem;
  color: var(--on-dark);
  opacity: 0.78;
  transition: opacity 0.3s linear;
}

.foot__link:hover { opacity: 1; }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-dark);
  font: 400 11px / 1.6 var(--code);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* -------------------------------------------------------- APPARITION -- */

/* L'état masqué n'existe que si le script tourne : c'est lui qui rallume les
   blocs au défilement. Sans lui, la page s'affiche entière. */
.js [data-lift] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--slow) var(--ease) var(--wait, 0ms),
    transform var(--slow) var(--ease) var(--wait, 0ms);
}

.js [data-lift].is-lit { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-lift], .js .scene__copy { opacity: 1; transform: none; }
}
