/* ==========================================================================
   Affaire Classée — design system v0.1
   Jetons, base et composants. La règle d'usage de chaque composant est dans
   design/design-system.md ; la planche qui les montre, design/design-system.html.

   La charte est celle de Manu (document de passage de relais, partie 5).
   Aucune teinte n'a été ajoutée : cinq valeurs de sa charte, cinq autres
   déjà présentes dans sa maquette et promues ici en jetons.
   ========================================================================== */

/* Polices hébergées avec la page : aucune requête ne part vers un tiers.
   Deux fichiers à graisse variable, réduits au latin (tout le français y est,
   le signe € et les guillemets compris). Licence et provenance : polices/LISEZ-MOI.txt */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("polices/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("polices/inter-latin.woff2") format("woff2");
}

:root {
  /* — Couleurs : la charte de Manu — */
  --encre: #14171A;          /* fonds sombres, titres, texte */
  --rouge: #C4221B;          /* boutons, accents, sur fond clair */
  --rouge-vif: #FF5A4D;      /* le rouge sur fond sombre */
  --clair: #EEF0F2;          /* fond clair des sections */
  --texte-2: #3D4349;        /* texte secondaire sur fond clair */
  --blanc: #FFFFFF;

  /* — Couleurs : déjà dans la maquette, promues en jetons — */
  --rouge-tranche: #7E130E;  /* la tranche d'un bouton rouge */
  --rouge-survol: #8F1712;   /* lien rouge survolé, message d'échec */
  --sur-sombre: #E6E9EC;     /* texte courant sur fond encre */
  --sur-sombre-2: #C9CED3;   /* texte secondaire sur fond encre */
  --filet-champ: #7A8087;    /* contour d'un champ de formulaire */

  /* — Typographie — */
  --police-titres: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-titre-1: clamp(1.75rem, 9.4vw, 5.25rem);           /* 28 → 84 px */
  --t-titre-2: clamp(1.875rem, 4vw, 2.875rem);           /* 30 → 46 px */
  --t-titre-appel: clamp(2.125rem, 5vw, 3.75rem);        /* 34 → 60 px */
  --t-titre-3: 1.5rem;                                   /* 24 px */
  --t-chapo-ouverture: clamp(1.1875rem, 0.95rem + 1.1vw, 1.375rem); /* 19 → 22 px */
  --t-chapo: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);     /* 18 → 20 px */
  --t-phrase: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem); /* 17 → 19 px */
  --t-corps: 1.0625rem;                                  /* 17 px */
  --t-petit: 0.9375rem;                                  /* 15 px */
  --t-mini: 0.875rem;                                    /* 14 px */
  --t-etiquette: 0.8125rem;                              /* 13 px */

  /* — Espacements : une seule échelle — */
  --e-1: 4px;
  --e-2: 8px;
  --e-3: 12px;
  --e-4: 16px;
  --e-5: 24px;
  --e-6: 32px;
  --e-7: 48px;
  --e-8: 64px;
  --e-9: 88px;

  --largeur: 1120px;         /* largeur utile */
  --gouttiere: 20px;         /* marge latérale, 24 px à partir de 720 px */
  --section: 56px;           /* marge haute et basse d'une section, 88 px à partir de 720 px */

  /* — Formes — */
  --rayon-touche: 4px;       /* touches et champs */
  --rayon-carte: 8px;        /* cartes et cadres */
  --filet: 2px;
  --cadre: 3px;
  --barre: 4px;
  --cible: 48px;             /* zone de toucher minimale */

  /* — Mouvement : l'appui, et rien d'autre — */
  --appui: 90ms ease-in;
  --retour: 160ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

@media (min-width: 720px) {
  :root {
    --gouttiere: 24px;
    --section: 88px;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font: 400 var(--t-corps) / 1.55 var(--police-texte);
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

p,
li,
dd {
  text-wrap: pretty;
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: var(--rouge);
}

a:hover {
  color: var(--rouge-survol);
}

[hidden] {
  display: none !important;
}

/* Le focus clavier : toujours visible, jamais retiré. Sa couleur suit le fond. */
:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
}

.fond-encre :focus-visible {
  outline-color: var(--rouge-vif);
}

.fond-rouge :focus-visible {
  outline-color: var(--blanc);
}

.fond-clair :focus-visible,
.fond-blanc :focus-visible,
.formulaire :focus-visible {
  outline-color: var(--encre);
}

/* Un titre qui reçoit le focus par script (après le gros bouton) ne s'entoure pas. */
[tabindex="-1"]:focus {
  outline: none;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Fonds et mise en page
   ========================================================================== */

.fond-encre {
  background: var(--encre);
  color: var(--blanc);
}

.fond-clair {
  background: var(--clair);
  color: var(--encre);
}

.fond-blanc {
  background: var(--blanc);
  color: var(--encre);
}

.fond-rouge {
  background: var(--rouge);
  color: var(--blanc);
}

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

.section {
  padding-block: var(--section);
}

/* ==========================================================================
   Typographie
   ========================================================================== */

.titre-1 {
  font: 900 var(--t-titre-1) / 0.98 var(--police-titres);
  letter-spacing: -0.02em;
}

.titre-1,
.titre-2,
.titre-3,
.titre-appel {
  text-wrap: balance;
}

/* Un titre fait de plusieurs phrases : une phrase par ligne. */
.phrases > span {
  display: block;
}

.titre-2 {
  font: 900 var(--t-titre-2) / 1.05 var(--police-titres);
  letter-spacing: -0.01em;
}

.titre-appel {
  font: 900 var(--t-titre-appel) / 1 var(--police-titres);
  letter-spacing: -0.01em;
}

.titre-3 {
  font: 700 var(--t-titre-3) / 1.15 var(--police-titres);
}

.surtitre {
  font-size: var(--t-petit);
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapo {
  font-size: var(--t-chapo);
  line-height: 1.45;
  color: var(--texte-2);
}

.fond-encre .chapo,
.fond-encre .surtitre {
  color: var(--sur-sombre);
}

.fond-encre .surtitre,
.fond-encre .discret {
  color: var(--sur-sombre-2);
}

.fond-rouge .chapo {
  color: var(--blanc);
}

.etiquette {
  font: 600 var(--t-etiquette) / 1.3 var(--police-texte);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.fort {
  font-weight: 600;
}

.accent {
  color: var(--rouge);
}

.fond-encre .accent {
  color: var(--rouge-vif);
}

/* En-tête de section : un titre et sa phrase d'ouverture, 780 px au plus. */
.entete-section {
  display: grid;
  gap: var(--e-3);
  max-width: 780px;
}

/* Un emplacement entre crochets. Aucun style : on le retrouve d'une recherche,
   on ne l'habille pas. Le mode relecture (?relecture) le souligne de pointillés. */
.a-fixer {
  font: inherit;
}

/* ==========================================================================
   Lien d'évitement
   ========================================================================== */

.evitement {
  position: absolute;
  left: var(--e-2);
  top: -120px;
  z-index: 30;
  padding: var(--e-3) var(--e-4);
  border-radius: var(--rayon-touche);
  background: var(--blanc);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}

.evitement:focus {
  top: var(--e-2);
  outline: 3px solid var(--rouge-vif);
  outline-offset: 2px;
}

/* ==========================================================================
   Touche — le bouton d'action rectangulaire
   Une ombre verticale veut dire « ça s'enfonce ». Elle ne sert à rien d'autre.
   ========================================================================== */

.touche {
  --tranche: var(--rouge-tranche);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cible);
  padding: 10px 20px;
  border: 0;
  border-radius: var(--rayon-touche);
  box-shadow: 0 4px 0 var(--tranche);
  font: 600 1rem / 1.2 var(--police-texte);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--retour), box-shadow var(--retour);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .touche:hover {
    transform: translateY(1px);
    box-shadow: 0 3px 0 var(--tranche);
  }
}

.touche:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--tranche);
  transition: transform var(--appui), box-shadow var(--appui);
}

.touche--rouge,
.touche--rouge:hover {
  background: var(--rouge);
  color: var(--blanc);
}

.touche--encre,
.touche--encre:hover {
  --tranche: var(--rouge);
  background: var(--encre);
  color: var(--blanc);
}

.touche:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: 0 4px 0 var(--tranche);
}

.touche--grande {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.125rem;
}

.touche--large {
  width: 100%;
}

/* ==========================================================================
   En-tête
   Sous 900 px : le nom, puis les trois liens ; « Être rappelé » est porté par
   la barre fixe du bas d'écran. À partir de 900 px : tout sur une ligne.
   ========================================================================== */

.entete__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--e-5);
  padding-block: var(--e-2) var(--e-1);
}

.marque {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 900 1.25rem / 1 var(--police-titres);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  flex: 1 0 100%;
}

.nav__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(10px, 5vw - 6px, 24px); /* les trois liens tiennent sur une ligne dès 320 px */
  font-size: var(--t-petit);
}

.nav__liens a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  border-bottom: 2px solid transparent;
  color: var(--blanc);
  text-decoration: none;
}

.nav__liens a:hover,
.nav__liens a:focus-visible {
  border-bottom-color: var(--rouge-vif);
}

.entete__rappel {
  display: none;
}

@media (min-width: 900px) {
  .entete__barre {
    gap: var(--e-4) var(--e-5);
    padding-block: var(--e-4);
  }

  .marque {
    font-size: 1.375rem;
  }

  .nav {
    flex: 0 1 auto;
    margin-left: auto;
  }

  .entete__rappel {
    display: inline-flex;
  }
}

/* ==========================================================================
   Ouverture — le geste
   ========================================================================== */

.ouverture__grille {
  display: grid;
  gap: 28px;
  padding-block: var(--e-5) var(--e-8);
}

.ouverture__tete {
  container-type: inline-size;
  display: grid;
  gap: var(--e-4);
}

/* « Tout votre bureau. » tient toujours sur une ligne : le titre fait quatre lignes. */
@supports (font-size: 1cqi) {
  .ouverture__tete .titre-1 {
    font-size: clamp(1.75rem, 10.2cqi, 5.25rem);
  }
}

.ouverture__bouton {
  display: grid;
  justify-items: center;
  gap: var(--e-4);
  text-align: center;
}

.ouverture__suite {
  display: grid;
  gap: var(--e-4);
}

.ouverture__chapo {
  max-width: 640px;
  font-size: var(--t-chapo-ouverture);
  line-height: 1.45;
  color: var(--sur-sombre);
}

.ouverture__note {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  color: var(--sur-sombre-2);
}

.ouverture__legende {
  max-width: 280px;
  font-size: var(--t-petit);
  color: var(--sur-sombre-2);
}

@media (min-width: 900px) {
  .ouverture__grille {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "tete bouton"
      "suite bouton";
    column-gap: 56px;
    row-gap: 26px;
    padding-block: 72px 96px;
  }

  .ouverture__tete {
    grid-area: tete;
    align-self: end;
    gap: 26px;
  }

  .ouverture__bouton {
    grid-area: bouton;
    align-self: center;
  }

  .ouverture__suite {
    grid-area: suite;
    align-self: start;
    gap: 26px;
  }
}

/* ==========================================================================
   Le gros bouton rouge — un seul par page
   ========================================================================== */

.gros-bouton {
  --d: min(clamp(216px, 62vw, 260px), 100vw - 2 * var(--gouttiere));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--d) * 0.023);
  width: var(--d);
  height: var(--d);
  margin-bottom: 14px; /* la place de sa tranche */
  padding: calc(var(--d) * 0.09);
  border: 10px solid var(--blanc);
  border-radius: 50%;
  background: var(--rouge);
  box-shadow: 0 14px 0 var(--rouge-tranche);
  color: var(--blanc);
  text-align: center;
  text-decoration: none;
  transition: transform var(--retour), box-shadow var(--retour);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.gros-bouton:hover {
  color: var(--blanc);
}

.gros-bouton__appel {
  font-size: calc(var(--d) * 0.058);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gros-bouton__nom {
  font: 900 calc(var(--d) * 0.115) / 1.02 var(--police-titres);
  text-transform: uppercase;
}

@media (hover: hover) {
  .gros-bouton:hover {
    transform: translateY(2px);
    box-shadow: 0 12px 0 var(--rouge-tranche);
  }
}

.gros-bouton:active,
.gros-bouton.est-enfonce {
  transform: translateY(12px);
  box-shadow: 0 2px 0 var(--rouge-tranche);
  transition: transform var(--appui), box-shadow var(--appui);
}

.gros-bouton:focus-visible {
  outline: 4px solid var(--rouge-vif);
  outline-offset: 6px;
}

/* ==========================================================================
   Les quinze demandes et la fiche « qui fait quoi »
   Sans script : quinze fiches dépliées, l'une sous l'autre.
   Avec script : une seule fiche ouverte, sous la demande choisie.
   ========================================================================== */

.demandes {
  display: grid;
  gap: var(--e-3);
  margin-top: var(--e-6);
}

.demande {
  border-radius: var(--rayon-carte);
  background: var(--blanc);
  overflow: hidden;
}

.demande__titre {
  padding: var(--e-4) var(--e-4) 0;
  font: 700 1.25rem / 1.2 var(--police-titres);
}

.fiche {
  padding: var(--e-4) var(--e-4) var(--e-5);
  background: var(--blanc);
}

.fiche__titre {
  display: none;
}

/* — Avec script — */

.js .demandes {
  gap: var(--filet);
  border: var(--filet) solid var(--encre);
  border-radius: var(--rayon-carte);
  background: var(--encre); /* l'encre paraît entre les lignes : ce sont les filets */
  overflow: hidden;
}

.js .demande {
  display: contents;
}

.js .demande__titre {
  padding: 0;
  font: inherit;
}

.demande__bouton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-3);
  width: 100%;
  min-height: 56px;
  padding: var(--e-3) var(--e-4);
  border: 0;
  background: var(--blanc);
  color: var(--encre);
  font: 600 1rem / 1.3 var(--police-texte);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Le signe plus, puis moins, d'une ligne qui se déplie (téléphone seulement). */
.demande__bouton::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

.demande__bouton[aria-expanded="true"] {
  background: var(--rouge);
  color: var(--blanc);
}

.demande__bouton[aria-expanded="true"]::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

@media (hover: hover) {
  .demande__bouton[aria-expanded="false"]:hover {
    box-shadow: inset 0 -4px 0 var(--rouge);
  }
}

.demande__bouton:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: -5px;
}

.demande__bouton[aria-expanded="true"]:focus-visible {
  outline-color: var(--blanc);
}

.js .fiche {
  padding: var(--e-5) var(--e-4) 28px;
}

@media (min-width: 720px) {
  .js .demandes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .js .demande__titre {
    order: 1;
    display: flex;
  }

  .demande__bouton {
    min-height: 64px;
  }

  .demande__bouton::after {
    display: none;
  }

  .js .fiche {
    order: 2;
    grid-column: 1 / -1;
    padding: var(--e-6);
  }

  .js .fiche__titre {
    display: block;
    margin-bottom: var(--e-5);
    font: 900 1.875rem / 1.1 var(--police-titres);
  }
}

@media (min-width: 1000px) {
  .js .demandes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* — Les trois postes : l'assistante d'abord, ce qui la renforce, et vous — */

.postes {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .postes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  @supports (grid-template-rows: subgrid) {
    .poste {
      grid-row: span 2;
      grid-template-rows: subgrid;
    }
  }
}

.poste {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 14px;
  border-top: var(--barre) solid var(--encre);
}

.poste--assistante {
  border-top-color: var(--rouge);
}

.poste__qui {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 600 var(--t-etiquette) / 1.3 var(--police-texte);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.poste__quoi {
  font-size: var(--t-phrase);
  line-height: 1.45;
}

/* « Ici, pas de machine. » : la barre et le carré passent en pointillé. */
.poste--sans-machine {
  border-top-style: dashed;
}

/* ==========================================================================
   Marqueurs « qui fait quoi » — toujours à côté du mot, jamais seuls
   Disque rouge : l'assistante. Carré d'encre : ses renforts. Anneau : vous.
   ========================================================================== */

.marqueur {
  flex: none;
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-top: 0.2em;
}

.marqueur--assistante {
  border-radius: 50%;
  background: var(--rouge);
}

.marqueur--renforts {
  background: var(--encre);
}

.marqueur--vous {
  border: 3px solid var(--encre);
  border-radius: 50%;
}

.poste--sans-machine .marqueur--renforts {
  border: 2px dashed var(--encre);
  background: none;
}

/* ==========================================================================
   Sous le capot — la personne en grand, ses deux renforts rattachés
   ========================================================================== */

.capot {
  margin-top: 40px;
}

.carte {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: var(--e-5) 20px;
  border-radius: var(--rayon-carte);
}

.carte__numero {
  font: 900 2.75rem / 1 var(--police-titres);
}

.carte--personne {
  background: var(--encre);
  color: var(--blanc);
}

.carte--personne .carte__numero {
  color: var(--rouge-vif);
}

.carte--personne .carte__texte {
  color: var(--sur-sombre);
}

.carte--renfort {
  background: var(--clair);
}

.carte--renfort .carte__numero {
  color: var(--rouge);
}

.carte--renfort .carte__texte {
  color: var(--texte-2);
}

/* Le trait de rattachement. Téléphone : un rail à gauche, un coude par renfort. */
.capot__renforts {
  display: grid;
  gap: var(--e-4);
  padding: var(--e-4) 0 0 var(--e-5);
}

.carte--renfort::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--e-4));
  top: calc(-1 * var(--e-4));
  width: var(--e-4);
  height: calc(50% + var(--e-4));
  border-left: var(--filet) solid var(--encre);
  border-bottom: var(--filet) solid var(--encre);
}

.carte--renfort:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--e-4));
  top: 50%;
  bottom: calc(-1 * var(--e-4));
  border-left: var(--filet) solid var(--encre);
}

@media (min-width: 720px) {
  .carte {
    padding: 28px;
  }

  /* Ordinateur : une tige, une traverse, une descente par renfort. */
  .capot__renforts {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 40px 0 0;
  }

  .capot__renforts::before {
    content: "";
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
    width: var(--filet);
    height: 21px;
    background: var(--encre);
  }

  .capot__renforts::after {
    content: "";
    position: absolute;
    left: calc(25% - 6px);
    right: calc(25% - 6px);
    top: 20px;
    height: var(--filet);
    background: var(--encre);
  }

  .carte--renfort::before {
    left: calc(50% - 1px);
    top: -20px;
    width: var(--filet);
    height: 20px;
    border: 0;
    background: var(--encre);
  }

  .carte--renfort:not(:last-child)::after {
    content: none;
  }
}

@media (min-width: 900px) {
  .carte--personne {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--e-6);
    padding: 40px;
  }

  .carte--personne .carte__numero {
    grid-row: 1 / span 2;
    font-size: 6rem;
    line-height: 0.85;
  }

  .carte--personne .titre-3 {
    font-size: 2rem;
  }

  .carte--personne .carte__texte {
    max-width: 720px;
    font-size: var(--t-phrase);
  }
}

/* ==========================================================================
   Ce qu'on ne fait pas — le cadre d'encre, une phrase par ligne
   ========================================================================== */

.limites {
  display: grid;
  gap: 14px;
  margin-top: 40px;
  padding: var(--e-5) 20px;
  border: var(--cadre) solid var(--encre);
  border-radius: var(--rayon-carte);
}

.limites .titre-3 {
  font-size: 1.375rem;
}

.limites__liste {
  display: grid;
  gap: 10px;
  color: var(--texte-2);
}

.limites__liste li {
  position: relative;
  padding-left: 28px;
}

.limites__liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 16px;
  height: var(--filet);
  background: var(--encre);
}

@media (min-width: 720px) {
  .limites {
    padding: 28px var(--e-6);
  }
}

/* ==========================================================================
   La sortie — trois piliers, et la pile de travers devenue d'aplomb
   ========================================================================== */

.sortie__tete {
  display: grid;
  gap: var(--e-6);
}

.piles {
  width: min(100%, 280px);
}

.piles__dessous {
  fill: var(--sur-sombre-2);
}

.piles__milieu {
  fill: var(--sur-sombre);
}

.piles__dessus {
  fill: var(--blanc);
}

.piles__lignes {
  fill: none;
  stroke: var(--sur-sombre-2);
  stroke-width: 2;
  stroke-linecap: round;
}

.piles__fleche {
  fill: none;
  stroke: var(--rouge-vif);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* L'animation des piles : la pile de travers se pose, la flèche se trace, puis
   les trois feuilles quittent le tas et viennent se remettre d'aplomb.
   Jouée à l'arrivée à l'écran, rejouée au survol. Sans script, le dessin est fixe. */
.piles__feuille,
.piles__rangee {
  transform-box: fill-box;
  transform-origin: center;
}

.piles__fleche {
  stroke-dasharray: 1;
}

.js .piles:not(.est-jouee) .piles__feuille {
  opacity: 0;
  transform: translateY(-14px);
}

.js .piles:not(.est-jouee) .piles__fleche {
  stroke-dashoffset: 1;
}

.js .piles:not(.est-jouee) .piles__rangee {
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) rotate(var(--r));
}

.piles.est-jouee .piles__feuille {
  animation: piles-poser 360ms cubic-bezier(0.34, 1.4, 0.64, 1) calc(var(--i) * 80ms) backwards;
}

.piles.est-jouee .piles__fleche {
  animation: piles-tracer 400ms ease-out 480ms backwards;
}

.piles.est-jouee .piles__rangee {
  animation: piles-ranger 620ms cubic-bezier(0.34, 1.3, 0.64, 1) calc(800ms + var(--i) * 180ms) backwards;
}

@keyframes piles-poser {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes piles-tracer {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes piles-ranger {
  0% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--r));
  }

  18% {
    opacity: 1;
  }
}

.piliers {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.pilier {
  display: grid;
  align-content: start;
  gap: var(--e-2);
  padding-top: 20px;
  border-top: var(--barre) solid var(--rouge-vif);
}

.pilier p {
  color: var(--sur-sombre);
}

@media (min-width: 720px) {
  .piliers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .sortie__tete {
    grid-template-columns: minmax(0, 780px) auto;
    align-items: end;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Le prix — un seul prix, une seule carte
   ========================================================================== */

.prix {
  display: grid;
  gap: var(--e-6);
}

.prix__texte {
  display: grid;
  gap: var(--e-4);
}

.prix__texte .fort {
  font-size: var(--t-chapo);
  line-height: 1.45;
}

.carte-prix {
  container-type: inline-size;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px var(--e-5) var(--e-6);
  border: var(--cadre) solid var(--rouge);
  border-radius: var(--rayon-carte);
  background: var(--blanc);
}

.carte-prix__montant {
  font: 900 4.75rem / 1 var(--police-titres); /* 76 px : la valeur de Manu, en repli */
  white-space: nowrap;
}

@supports (font-size: 1cqi) {
  .carte-prix__montant {
    font-size: clamp(3.25rem, 25cqi, 6rem); /* calé sur la largeur de la carte */
  }
}

.carte-prix__unite {
  color: var(--texte-2);
}

.carte-prix__conditions {
  font-size: var(--t-petit);
  color: var(--texte-2);
}

.carte-prix .touche {
  margin-top: var(--e-2);
}

@media (max-width: 719px) {
  .carte-prix .touche {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .carte-prix {
    padding: 36px 36px 40px;
  }
}

@media (min-width: 900px) {
  .prix {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: var(--e-7);
  }
}

/* ==========================================================================
   Être rappelé — le formulaire
   ========================================================================== */

.rappel {
  display: grid;
  gap: 40px;
}

.rappel__texte {
  display: grid;
  gap: var(--e-4);
}

.rappel__texte .fort {
  font-size: var(--t-chapo);
}

/* Le numéro, en lien d'appel : il garde la couleur du texte sur le fond rouge. */
.rappel__texte .fort a {
  color: inherit;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.formulaire {
  display: grid;
  gap: var(--e-4);
  padding: var(--e-5) 20px 28px;
  border-radius: var(--rayon-carte);
  background: var(--blanc);
  color: var(--encre);
}

.champ {
  display: grid;
  gap: 6px;
}

/* Le piège à robots : hors de l'écran, hors du parcours au clavier. */
.champ--piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.champ__nom {
  font-size: var(--t-petit);
  font-weight: 600;
}

.champ__saisie {
  width: 100%;
  min-height: 56px;
  padding: var(--e-3) 14px;
  border: var(--filet) solid var(--filet-champ);
  border-radius: var(--rayon-touche);
  background: var(--blanc);
  font-size: var(--t-corps); /* 17 px : pas de zoom à la saisie sur iPhone */
}

.champ__saisie:focus-visible {
  border-color: var(--encre);
  outline: 3px solid var(--encre);
  outline-offset: 2px;
}

.formulaire__etat {
  font-weight: 600;
}

/* Vide, il reste dans la page (un lecteur d'écran l'annonce quand il se remplit)
   mais sort du flux : il n'ajoute pas d'écart dans la grille du formulaire. */
.formulaire__etat:empty {
  position: absolute;
}

.formulaire__etat[data-etat="echec"] {
  color: var(--rouge-survol);
}

.formulaire__mention {
  font-size: var(--t-mini);
  color: var(--texte-2);
}

@media (min-width: 720px) {
  .formulaire {
    padding: var(--e-6) var(--e-6) 36px;
  }
}

@media (min-width: 900px) {
  .rappel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--e-7);
  }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.pied {
  font-size: var(--t-mini);
  color: var(--sur-sombre-2);
}

.pied__barre {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--e-3) var(--e-4);
  padding-block: 36px;
}

.pied a {
  color: inherit;
  text-underline-offset: 3px;
}

.pied a:hover {
  color: var(--blanc);
}

/* ==========================================================================
   Barre fixe du téléphone — « Être rappelé » sous le pouce
   Sous 900 px seulement (là où l'en-tête ne porte plus « Être rappelé »), une
   fois l'ouverture passée ; elle s'efface devant le formulaire et le pied de
   page. Sans script, elle n'apparaît jamais.
   ========================================================================== */

.barre-rappel {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  padding: 10px var(--gouttiere) calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--texte-2); /* la détache d'une section encre */
  background: var(--encre);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 200ms ease-out, visibility 0s linear 200ms;
}

.barre-rappel.est-visible {
  transform: none;
  visibility: visible;
  transition: transform 200ms ease-out, visibility 0s;
}

@media (min-width: 900px) {
  .barre-rappel {
    display: none;
  }
}

/* ==========================================================================
   Photos — pour donner vie à la page
   Ce sont des photos d'illustration : à remplacer par de vraies photos avant
   toute mise en ligne (assets/photos/LISEZ-MOI.txt). Aucune teinte ajoutée.
   ========================================================================== */

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--rayon-carte);
  background: var(--encre);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo__mention {
  position: absolute;
  right: var(--e-2);
  bottom: var(--e-2);
  padding: 3px var(--e-2);
  border-radius: var(--rayon-touche);
  background: rgba(20, 23, 26, 0.72);
  color: var(--blanc);
  font-size: var(--t-etiquette);
  line-height: 1.4;
}

/* Dans la carte « une vraie personne ». */
.carte__photo {
  aspect-ratio: 3 / 2;
  margin-top: var(--e-2);
}

@media (min-width: 900px) {
  .carte--personne {
    grid-template-columns: auto minmax(0, 1fr) minmax(260px, 34%);
  }

  .carte__photo {
    grid-column: 3;
    grid-row: 1 / span 2;
    aspect-ratio: auto;
    min-height: 240px;
    margin: -16px -16px -16px 0;
  }
}

/* Au-dessus de l'appel « Dix minutes au téléphone ». */
.rappel__photo {
  aspect-ratio: 16 / 9;
  max-width: 520px;
}

/* ==========================================================================
   Page légale — la politique de confidentialité (confidentialite.html)
   Une colonne de lecture, les titres de la charte, rien d'autre.
   ========================================================================== */

.entete a.marque {
  color: inherit;
  text-decoration: none;
}

.legal {
  max-width: calc(760px + 2 * var(--gouttiere));
}

.legal > * + * {
  margin-top: var(--e-4);
}

.legal__retour {
  font-size: var(--t-petit);
}

.legal__date {
  margin-top: var(--e-2);
  font-size: var(--t-petit);
  color: var(--texte-2);
}

.legal .chapo {
  margin-top: var(--e-5);
}

.legal h2 {
  margin-top: var(--e-7);
}

.legal h3 {
  margin-top: var(--e-5);
  font: 600 var(--t-phrase) / 1.3 var(--police-texte);
}

.legal ul {
  display: grid;
  gap: var(--e-2);
  padding-left: 1.2em;
  list-style: disc;
}

.legal p,
.legal li {
  color: var(--texte-2);
}

.legal strong {
  color: var(--encre);
}

.legal .a-fixer {
  color: var(--encre);
  font-weight: 600;
}

/* ==========================================================================
   Mode relecture — ajouter ?relecture à l'adresse
   Pointillés : un emplacement à remplir. Tirets : un texte qui n'est pas de Manu.
   ========================================================================== */

.relecture .a-fixer {
  border-bottom: 2px dotted currentColor;
}

.relecture [data-nouveau] {
  outline: 2px dashed currentColor;
  outline-offset: 4px;
}

.relecture-legende {
  padding: var(--e-3) var(--gouttiere);
  border-bottom: var(--barre) solid var(--encre);
  background: var(--clair);
  color: var(--encre);
  font-size: var(--t-mini);
  text-align: center;
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */

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