/* ==========================================================================
   EDA Fiscal — site vitrine, version 2
   ----------------------------------------------------------------------------
   Le parti pris : la page raconte UNE journée, le 15 du mois. Elle s'ouvre la
   nuit — la charge, le prix d'un oubli —, se lève avec le film, puis suit le
   15 heure par heure avec EDA Fiscal. Le contrôle fiscal a sa propre scène, et
   les questions d'un associé ont leurs réponses avant la fin.

   Les écrans sont montrés en GROS PLAN — un morceau de capture réelle, assez
   petit pour rester lisible —, et l'ANNEAU du film désigne ce que le texte
   nomme : vert pour ce qui concorde, ambre pour ce qui attend, rose pour ce qui
   est en retard ou en défaut.

   Polices hébergées avec le site (aucune requête vers un tiers), licence OFL :
   voir fonts/.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* La nuit */
  --nuit: #050f1f;
  --nuit-bleu: #0b2a4f;
  --nuit-texte: #eef4fb;
  --nuit-muet: #9fb4cc;
  --alerte-nuit: #fb7185;

  /* Le jour */
  --jour: #eef3f9;
  --jour-clair: #f8fafc;
  --blanc: #ffffff;
  --encre: #0b264a;
  --encre-muet: #475569;
  --encre-discret: #526071;   /* 5,8:1 sur le fond jour — #64748b ne donnait que 4,27 */
  --saphir: #006eb4;
  --saphir-clair: #7fd0ff;
  --azur: #0ea5e9;
  --succes: #059669;
  --attente: #d97706;
  --retard: #e11d48;
  --bordure: #dbe4ef;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --largeur: 1180px;
  --gouttiere: 24px;
  --entete: 68px;
  --ombre: 0 30px 70px rgba(11, 38, 74, 0.14);
}

/* ---------------------------------------------------------------- Socle -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre-muet);
  background: var(--nuit);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--saphir); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; color: var(--encre); letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--encre); font-weight: 650; }
figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--azur);
  outline-offset: 3px;
  border-radius: 4px;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.saut {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 300;
  background: var(--blanc);
  color: var(--encre);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.saut:focus { left: 8px; }

/* -------------------------------------------------------------- En-tête -- */
/* Toujours sombre : la page commence dans la nuit, et un en-tête qui
   changerait de couleur en route n'aurait jamais le bon contraste partout. */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--entete);
  background: rgba(5, 15, 31, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(238, 244, 251, 0.08);
}
.entete__interieur {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.marque { display: inline-flex; align-items: center; }
.marque img { height: 30px; width: auto; filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 2px; }
/* `:not(.bouton)` : sans lui, la règle des liens (0-1-1) repeindrait le texte
   du bouton (0-1-0). La version 1 en a fait l'expérience. */
.nav a:not(.bouton) {
  color: var(--nuit-muet);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav a:not(.bouton):hover { color: var(--nuit-texte); background: rgba(238, 244, 251, 0.07); }
.nav .bouton { margin-left: 10px; }

.menu {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(238, 244, 251, 0.18);
  background: transparent;
  color: var(--nuit-texte);
  cursor: pointer;
}
.menu svg { width: 22px; height: 22px; }
.menu .fermer { display: none; }
.menu[aria-expanded="true"] .ouvrir { display: none; }
.menu[aria-expanded="true"] .fermer { display: block; }

/* -------------------------------------------------------------- Boutons -- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 15px/1.2 var(--sans);
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.bouton:hover { transform: translateY(-1px); }
.bouton svg { width: 18px; height: 18px; flex: none; }

.bouton--plein {
  background: var(--saphir);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 110, 180, 0.35);
}
.bouton--plein:hover { background: #0a7fcc; }

.bouton--clair {
  background: transparent;
  color: var(--nuit-texte);
  border-color: rgba(238, 244, 251, 0.3);
}
.bouton--clair:hover { border-color: rgba(238, 244, 251, 0.6); background: rgba(238, 244, 251, 0.05); }

.bouton--ligne {
  background: var(--blanc);
  color: var(--encre);
  border-color: var(--bordure);
}
.bouton--ligne:hover { border-color: #b6c5d8; }

.bouton--grand { font-size: 16px; padding: 17px 30px; }
.bouton--petit { font-size: 14px; padding: 10px 18px; }

/* ---------------------------------------------------------- Typographie -- */

.repere {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saphir);
  margin: 0 0 18px;
}
.titre {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.titre em { font-style: italic; color: var(--saphir); }
.chapo {
  font-size: clamp(17.5px, 1.9vw, 20px);
  line-height: 1.6;
  max-width: 60ch;
}

.section { padding: clamp(80px, 11vw, 136px) 0; position: relative; }

/* ----------------------------------------------------------------- Nuit -- */

.nuit { background: var(--nuit); color: var(--nuit-muet); }
.nuit .titre, .nuit h2, .nuit h3 { color: var(--nuit-texte); }
.nuit .titre em { color: var(--saphir-clair); }
.nuit strong { color: var(--nuit-texte); }
.nuit .repere { color: var(--azur); }
/* `:not(.bouton)`, encore : sans lui, cette règle (0-1-1) repeint le texte des
   boutons de la nuit (0-1-0) en bleu clair sur fond bleu. */
.nuit a:not(.bouton) { color: var(--saphir-clair); }

/* ---------------------------------------------------------------- Héros -- */

.heros {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--entete));
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(60% 70% at 18% 40%, rgba(11, 42, 79, 0.95), transparent 70%),
    var(--nuit);
}
/* Le grain du film, en très léger : la nuit n'est pas un aplat. */
.heros::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(238, 244, 251, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.heros__grille {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.heros__quinze {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(150px, 27vw, 380px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--nuit-texte);
  margin: 0;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.heros__date {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nuit-muet);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.heros__date b { color: var(--nuit-texte); font-weight: 600; }
.heros__date .compte {
  color: var(--alerte-nuit);
  border: 1px solid rgba(251, 113, 133, 0.45);
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: 0.06em;
}

.heros h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--nuit-texte);
  margin: 0 0 26px;
  max-width: 22ch;
}
.heros__promesse {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--nuit-muet);
  max-width: 48ch;
  margin-bottom: 34px;
}
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.heros__assurance {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--nuit-muet);
}
.heros__assurance svg { width: 18px; height: 18px; color: #34d399; flex: none; }

/* ------------------------------------------------------------- Le calcul -- */

.calcul {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: clamp(12px, 2.4vw, 32px);
  margin-top: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(238, 244, 251, 0.12);
}
.calcul__terme { min-width: 0; }
.calcul__nombre {
  display: block;
  font-family: var(--serif);
  font-size: clamp(52px, 7.6vw, 104px);
  line-height: 0.95;
  color: var(--nuit-texte);
  letter-spacing: -0.02em;
}
.calcul__nombre small {
  font-size: 0.42em;
  font-style: italic;
  color: var(--nuit-muet);
  letter-spacing: 0;
  margin-right: 0.15em;
}
.calcul__legende {
  display: block;
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--nuit-muet);
}
.calcul__operateur {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  color: rgba(238, 244, 251, 0.35);
  /* Même hauteur que la ligne des nombres : l'opérateur se centre sur eux. */
  height: calc(clamp(52px, 7.6vw, 104px) * 0.95);
  display: flex;
  align-items: center;
}

.oubli {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: 56px;
}
.oubli__phrase {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.1;
  color: var(--nuit-texte);
  margin: 0;
}
.oubli__prix {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.oubli__taux {
  font-family: var(--serif);
  font-size: clamp(84px, 12vw, 152px);
  line-height: 0.85;
  color: var(--alerte-nuit);
  letter-spacing: -0.03em;
}
.oubli__texte { flex: 1 1 220px; font-size: 16.5px; color: var(--nuit-muet); margin: 0; }
.source {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--nuit-muet);
}

/* ------------------------------------------------- Le film : l'aube ---- */
/* La nuit s'éclaircit pendant le film, et la page passe au jour. */

.aube {
  background:
    radial-gradient(70% 40% at 50% 92%, rgba(217, 119, 6, 0.16), transparent 70%),
    linear-gradient(180deg, var(--nuit) 0%, var(--nuit-bleu) 42%, #26507f 66%, #b9cde3 86%, var(--jour) 100%);
  color: var(--nuit-muet);
  padding-bottom: clamp(96px, 12vw, 160px);
}
.aube .titre { color: var(--nuit-texte); max-width: 18ch; }
.aube .titre em { color: var(--saphir-clair); }
.aube .repere { color: var(--azur); }

.film {
  position: relative;
  margin-top: 48px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--nuit);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(238, 244, 251, 0.08);
}
.film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__lancer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--nuit-texte);
  font: 600 15px/1.2 var(--sans);
  letter-spacing: 0.02em;
  /* L'affiche porte son propre texte : on l'assombrit au centre, là où se pose
     le bouton, pour que les deux ne se lisent pas l'un sur l'autre. */
  background: radial-gradient(42% 46% at 50% 52%, rgba(5, 15, 31, 0.78), rgba(5, 15, 31, 0.2) 100%) center / cover,
    url("../img/video-poster.webp") center / cover;
}
.film__lancer > span:last-child {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(5, 15, 31, 0.82);
  border: 1px solid rgba(238, 244, 251, 0.14);
}
.film__rond {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.film__rond svg { width: 30px; height: 30px; margin-left: 4px; color: var(--encre); transition: color 0.2s; }
.film__lancer:hover .film__rond { transform: scale(1.07); background: var(--saphir); }
.film__lancer:hover .film__rond svg { color: #fff; }
.film.est-lance .film__lancer { display: none; }
.film__legende {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--encre-muet);
  text-align: center;
}

/* -------------------------------------------------------------- Le jour -- */

.jour { background: var(--jour); }
.blanc { background: var(--blanc); }
.clair { background: var(--jour-clair); }

.entete-section { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.entete-section .chapo { margin-top: 22px; }

/* La journée : une ligne d'heures, et un moment par fonction. */
.journee { position: relative; padding-left: 72px; }
.journee::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--bordure), #c9d6e6 50%, var(--bordure));
  border-radius: 2px;
}

.moment { position: relative; }
.moment + .moment { margin-top: clamp(72px, 9vw, 112px); }

.moment__point {
  position: absolute;
  left: -56px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--jour);
  border: 3px solid #b6c5d8;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.moment.est-visible .moment__point,
html:not(.js) .moment .moment__point {
  background: var(--saphir);
  border-color: var(--saphir);
  box-shadow: 0 0 0 6px rgba(0, 110, 180, 0.14);
}

.moment__heure {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saphir);
  margin: 0 0 12px;
}
.moment h3 {
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.moment__texte { max-width: 62ch; font-size: 17.5px; }
.moment__texte p + p { margin-top: 12px; }
.moment__appui {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--azur);
  color: var(--encre);
  font-size: 16px;
}

.moment--large .gros-plan { margin-top: 32px; }

.moment--duo .moment__corps {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.moment--duo .gros-plan { justify-self: start; }

.moment--fin h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.moment--fin h3 em { font-style: italic; color: var(--saphir); }

/* --------------------------------------------------------- Le gros plan -- */

.gros-plan__cadre {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre);
}
.gros-plan__cadre img { width: 100%; height: auto; }

.gros-plan figcaption {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--encre-discret);
}
.gros-plan figcaption .pastille {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.gros-plan figcaption .pastille::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 2px solid var(--c, var(--azur));
}

/* L'anneau : il tient en pourcentages du cadre, et suit l'image à toutes les
   largeurs. Purement décoratif — la légende dit ce qu'il désigne. */
.anneau {
  --c: var(--azur);
  --halo: rgba(14, 165, 233, 0.2);
  position: absolute;
  border: 3px solid var(--c);
  border-radius: 10px;
  box-shadow: 0 0 0 6px var(--halo);
  pointer-events: none;
}
.anneau--succes  { --c: var(--succes);  --halo: rgba(5, 150, 105, 0.18); }
.anneau--attente { --c: var(--attente); --halo: rgba(217, 119, 6, 0.2); }
.anneau--retard  { --c: var(--retard);  --halo: rgba(225, 29, 72, 0.18); }

.pastille--azur    { --c: var(--azur); }
.pastille--succes  { --c: var(--succes); }
.pastille--attente { --c: var(--attente); }
.pastille--retard  { --c: var(--retard); }

/* --------------------------------------------------------- Le contrôle -- */

.controle {
  background:
    radial-gradient(55% 60% at 85% 10%, rgba(0, 110, 180, 0.32), transparent 70%),
    var(--encre);
  color: #b9c9dd;
}
.controle .titre { color: var(--nuit-texte); max-width: 19ch; }
.controle .titre em { color: var(--saphir-clair); }
.controle .repere { color: var(--saphir-clair); }
.controle strong { color: var(--nuit-texte); }

.controle__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 56px;
}

.empreinte {
  border: 1px solid rgba(238, 244, 251, 0.14);
  border-radius: 16px;
  padding: 26px 26px 22px;
  background: rgba(5, 15, 31, 0.35);
}
.empreinte__fichier {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--nuit-texte);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.empreinte__fichier svg { width: 18px; height: 18px; color: var(--saphir-clair); flex: none; }
.empreinte__etiquette {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--saphir-clair);
  margin-bottom: 8px;
}
.empreinte__valeur {
  font-family: var(--mono);
  font-size: clamp(14px, 1.55vw, 17px);
  line-height: 1.8;
  color: #dbe7f5;
  word-spacing: 0.4em;
  overflow-wrap: anywhere;
  margin: 0;
}
.empreinte__note {
  margin-top: 16px;
  font-size: 13px;
  color: #8fa5bf;
}

.controle__texte p { font-size: 17.5px; }

.arbre {
  margin: 26px 0 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(5, 15, 31, 0.35);
  border: 1px solid rgba(238, 244, 251, 0.1);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.95;
  color: #b9c9dd;
  list-style: none;
}
.arbre li { padding-left: 22px; position: relative; }
.arbre li:first-child { padding-left: 0; color: var(--nuit-texte); }
.arbre li:not(:first-child)::before {
  content: "├─";
  position: absolute;
  left: 0;
  color: rgba(238, 244, 251, 0.3);
}
.arbre li:last-child::before { content: "└─"; }
.arbre .cle { color: #6ee7b7; }

.controle .gros-plan figcaption { color: #9fb4cc; }

/* -------------------------------------------------------------- Chez vous -- */

.atouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.atout {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 28px 28px 30px;
}
.atout__icone {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 110, 180, 0.08);
  color: var(--saphir);
  margin-bottom: 18px;
}
.atout__icone svg { width: 22px; height: 22px; }
.atout h3 { font-size: 19.5px; margin-bottom: 10px; letter-spacing: -0.015em; }
.atout p { font-size: 16px; }

/* Le code à six chiffres : un ornement, pas une capture — la page de
   double authentification réelle affiche une clé secrète. */
.code {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}
.code span {
  width: 34px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 2px solid var(--saphir);
  font: 700 19px/1 var(--mono);
  color: var(--encre);
  background: var(--jour-clair);
}

.chez-vous__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
/* Le journal accompagne la lecture des quatre cartes au lieu de laisser un
   vide sous lui : il reste en vue tant que la section défile. */
@media (min-width: 1021px) {
  .gros-plan--colle { position: sticky; top: calc(var(--entete) + 32px); }
}

/* ------------------------------------------------------------ Entreprises -- */

.entreprise__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.coches { list-style: none; margin: 26px 0 32px; padding: 0; }
.coches li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 16.5px;
}
.coches li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------------------------------------------------------------- Étapes -- */

.etapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: etape;
  margin-bottom: 40px;
}
.etape {
  counter-increment: etape;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 28px;
}
.etape::before {
  content: counter(etape, decimal-leading-zero);
  display: inline-block;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--saphir);
  background: rgba(0, 110, 180, 0.08);
  padding: 7px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.etape h3 { font-size: 20px; margin-bottom: 10px; }
.etape p { font-size: 16px; }
.etape--vous { border-color: rgba(0, 110, 180, 0.4); box-shadow: 0 0 0 4px rgba(0, 110, 180, 0.07); }

.garantie {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(5, 150, 105, 0.07);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--encre);
  font-size: 16.5px;
}
.garantie svg { width: 24px; height: 24px; flex: none; color: var(--succes); margin-top: 1px; }

/* ------------------------------------------------------------- Questions -- */

.questions { max-width: 860px; margin-inline: auto; }
.question { border-bottom: 1px solid var(--bordure); }
.question:first-of-type { border-top: 1px solid var(--bordure); }
.question summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  font-size: clamp(17px, 1.8vw, 19.5px);
  font-weight: 600;
  color: var(--encre);
  letter-spacing: -0.01em;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "";
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--bordure);
  background:
    linear-gradient(var(--saphir), var(--saphir)) center / 11px 2px no-repeat,
    linear-gradient(var(--saphir), var(--saphir)) center / 2px 11px no-repeat;
  transition: transform 0.2s, background-size 0.2s;
}
.question[open] summary::after {
  background-size: 11px 2px, 2px 0;
  transform: rotate(180deg);
}
.question summary:hover { color: var(--saphir); }
.question__reponse { padding: 0 52px 26px 4px; font-size: 16.5px; }
.question__reponse p + p { margin-top: 10px; }

/* ---------------------------------------------------------------- Final -- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(55% 55% at 50% 100%, rgba(0, 110, 180, 0.35), transparent 70%),
    var(--nuit);
}
.final__quinze {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--serif);
  font-size: clamp(320px, 52vw, 720px);
  line-height: 1;
  color: rgba(238, 244, 251, 0.035);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}
.final .conteneur { position: relative; }
.final h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--nuit-texte);
  max-width: 14ch;
  margin: 0 auto 24px;
}
.final h2 em { font-style: italic; color: var(--saphir-clair); }
.final p { max-width: 50ch; margin: 0 auto 36px; font-size: 18.5px; color: var(--nuit-muet); }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final__adresse { margin-top: 28px; font-family: var(--mono); font-size: 14.5px; color: var(--nuit-muet); }
.final a:not(.bouton) { color: var(--saphir-clair); }
.signature {
  margin-top: clamp(64px, 9vw, 104px);
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--nuit-texte);
}
.signature em { color: var(--azur); }

/* ----------------------------------------------------------- Pied de page -- */

.pied {
  background: var(--nuit);
  color: var(--nuit-muet);
  border-top: 1px solid rgba(238, 244, 251, 0.08);
  padding: 48px 0 36px;
  font-size: 14.5px;
}
.pied a { color: var(--nuit-muet); }
.pied a:hover { color: var(--nuit-texte); }
.pied__haut {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(238, 244, 251, 0.08);
}
.pied__marque img { height: 28px; filter: brightness(0) invert(1); opacity: 0.92; }
.pied__marque p { margin-top: 14px; max-width: 36ch; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: flex-start; }
.pied__liens a { text-decoration: none; }
.pied__bas {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}
.pied__bas a { color: var(--saphir-clair); }

/* ------------------------------------------------------ Page intérieure -- */

.page-texte { background: var(--blanc); padding: 72px 0 104px; }
.page-texte .conteneur { max-width: 780px; }
.page-texte h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 54px); margin-bottom: 18px; }
.page-texte h2 { font-size: 22px; margin: 44px 0 14px; }
.page-texte dl { margin: 0; }
.page-texte dt { font-weight: 650; color: var(--encre); margin-top: 18px; }
.page-texte dd { margin: 4px 0 0; }
.a-completer {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px dashed #d97706;
  padding: 2px 9px;
  border-radius: 6px;
  font: 600 13px/1.5 var(--mono);
}

/* ----------------------------------------------------------- Apparitions -- */
/* Le texte n'est masqué que si le script a répondu présent (classe `js`,
   posée en tête de page) : sans lui, tout reste lisible. */

.js .apparait {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .apparait.est-visible { opacity: 1; transform: none; }

.js .apparait .anneau {
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.5s ease 0.45s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s;
}
.js .apparait.est-visible .anneau { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .apparait, .js .apparait .anneau { opacity: 1; transform: none; transition: none; }
  .bouton, .film__rond { transition: none; }
}

/* ------------------------------------------------------------ Responsive -- */

@media (max-width: 1020px) {
  .heros__grille { grid-template-columns: 1fr; }
  .heros__quinze { font-size: clamp(150px, 40vw, 300px); }
  .oubli, .controle__grille, .entreprise__grille, .chez-vous__grille { grid-template-columns: 1fr; }
  .moment--duo .moment__corps { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gouttiere: 18px; --entete: 62px; }
  body { font-size: 16px; }

  .menu { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--entete);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gouttiere) 24px;
    background: rgba(5, 15, 31, 0.98);
    border-bottom: 1px solid rgba(238, 244, 251, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.est-ouverte { opacity: 1; visibility: visible; transform: none; }
  /* Pages intérieures : un seul bouton, jamais replié derrière un menu. */
  .nav.nav--simple {
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav.nav--simple .bouton { margin: 0; }
  .nav a:not(.bouton) { padding: 14px 12px; font-size: 16px; }
  .nav .bouton { margin: 10px 0 0; }

  .heros { min-height: auto; }
  .heros__actions .bouton, .final__actions .bouton { width: 100%; }

  .calcul {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: left;
  }
  .calcul__operateur { height: auto; font-size: 40px; }

  .journee { padding-left: 34px; }
  .journee::before { left: 7px; }
  .moment__point { left: -34px; width: 14px; height: 14px; }

  .atouts { grid-template-columns: 1fr; }
  .question__reponse { padding-right: 4px; }
  .gros-plan figcaption { font-size: 12px; }
}
