@font-face{font-family:Overpass;src:url(fonts/overpass-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Overpass;src:url(fonts/overpass-600.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}

/* ===========================================================================
   SOUSA AUTO-ÉCOLE

   LA POLICE VIENT DU MÉTIER. Overpass est dessinée d'après la Highway
   Gothic, l'alphabet des panneaux routiers : on l'a lue toute sa vie sans
   la nommer. Ce n'est pas une police « qui fait routier », c'est celle dont
   l'histoire EST la route.

   LA PAGE EST CLAIRE, et la route y entre comme un coin sombre. Le ciel du
   canevas est EXACTEMENT --papier : le dessin n'a pas de bord, il n'a qu'un
   horizon. Les deux pages précédentes du dossier étaient sombres.

   UN SEUL ACCENT, le bleu de mesure. Le bleu vif du panneau « L » n'a pas
   été repris : il est imposé à toutes les auto-écoles du pays, donc il ne
   peut identifier personne. Le rouge ne sert qu'aux feux stop et au chiffre
   qui fait mal — sa rareté est toute sa force.
   =========================================================================== */

:root{
  --papier:#EDEFF0; --encre:#15181B; --gris:#58616A;
  --asphalte:#2B3034; --bleu:#1565A8; --rouge:#B22E1C;
  --trait:#D2D8DA; --sable:#D2D7D6;
  --mock:66px;
  --sortie:cubic-bezier(.22,.61,.36,1);
  --dedans:cubic-bezier(.4,0,.2,1);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--papier);color:var(--encre);
  font:400 17px/1.62 Overpass,"Helvetica Neue",Arial,sans-serif;
  font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.015em;line-height:1.12}
p{margin:0}
a{color:var(--bleu)}
img{max-width:100%;height:auto;display:block}
em{font-style:normal;color:var(--bleu);font-weight:600}
strong{font-weight:600}
:focus-visible{outline:3px solid var(--bleu);outline-offset:3px;border-radius:2px}

/* ------------------------------------------------- la banderole, EN BAS -- */
.mock{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  margin:0;padding:11px 16px;
  background:var(--encre);color:#D8DDE0;
  font-size:12.5px;line-height:1.45;text-align:center;
}
.mock a{color:#9FC6E6;text-decoration-thickness:1px;text-underline-offset:2px;
  display:inline-block;padding:4px 2px;min-height:24px}
.ac{color:#E59A8C}
.mock strong{color:#fff}

/* =================================================== L'OUVERTURE ========= */
.piste{position:relative;height:320svh}
.colle{position:sticky;top:0;height:100svh;overflow:hidden}
#scene{
  position:absolute;inset:0;width:100%;height:100%;display:block;
  opacity:0;transition:opacity .5s var(--sortie);
}
#scene.vu{opacity:1}

.sur{
  position:absolute;inset:0;z-index:2;
  display:flex;flex-direction:column;justify-content:space-between;
  padding:22px 18px 0;
  pointer-events:none;
}
.haut{display:grid;gap:0;justify-items:start}
.bas{display:grid;gap:11px;justify-items:start}
.sur a,.sur button{pointer-events:auto}

h1{display:grid;gap:10px;justify-items:start}
.enseigne{display:block;width:min(62vw,250px);color:var(--encre)}
.enseigne svg{width:100%;height:auto;display:block}
.metier{font-size:13px;font-weight:400;letter-spacing:.035em;color:var(--gris)}

/* LE TITRE DESCEND SUR LA CHAUSSÉE, AU TÉLÉPHONE.
   Posé en haut et en encre, il tombait en travers du coin sombre de la
   route : la moitié des mots devenaient illisibles. Vu à l'écran, pas
   déduit. Il rejoint donc le relevé, en clair sur le voile, et c'est
   l'enseigne seule qui reste sur le ciel clair. Au-dessus de 720 px la
   route est un panneau à droite, le titre retrouve le papier et l'encre. */
.dit{
  margin-top:auto;margin-bottom:12px;max-width:18ch;color:#F2F4F5;
  font-size:clamp(25px,7.2vw,38px);font-weight:600;line-height:1.24;
  letter-spacing:-.022em;
}
.dit em{color:#8CC3EA}

/* AU TÉLÉPHONE : LA ROUTE EN HAUT, UN PUPITRE PLEIN EN BAS.
   Trois états essayés et regardés. (1) Relevé clair posé à même la scène :
   illisible dès qu'un mot croise l'accotement clair. (2) Voile dégradé sur
   toute la hauteur : il rend le texte lisible et il éteint les voitures,
   qui sont les éléments CLAIRS de la scène — on efface le sujet pour
   lire la légende. (3) Celui-ci : un bloc opaque qui ne recouvre pas la
   scène, il la raccourcit. La scène est prévenue de sa hauteur réelle
   (`reserve`) et se recadre dedans, donc rien d'important ne passe
   derrière. Au-dessus de 720 px, la route devient un panneau à droite et
   le pupitre disparaît : le texte retrouve le papier et l'encre.
   C'est aussi la disposition d'une voiture — la route par le pare-brise,
   les cadrans en dessous. */
/* Ce qui sort du pupitre au téléphone : l'horloge (les deux compteurs
   disent déjà où on en est) et la note de conditions (elle est reprise
   sous le tableau plus bas). 85 px rendus à la route, mesurés. */
@media (max-width:719.98px){
  .horloge,.note{display:none}
  .bas{gap:9px}
  /* L'enseigne tient à GAUCHE de la pointe de la route, qui monte au
     milieu du cadre : à 242 px de large elle la croisait et deux lettres
     passaient en encre sombre sur du bitume sombre. */
  .enseigne{width:min(44vw,172px)}
}
.dit,.bas{background:#141A1F}
.dit{margin-left:-18px;margin-right:-18px;padding:16px 18px 9px;max-width:none;
  background:linear-gradient(to bottom,rgba(20,26,31,0) 0,#141A1F 16px)}
.bas{margin:0 -18px;padding:0 18px calc(var(--mock) + 12px)}
.horloge{font-size:13px;color:#9AA4AC;letter-spacing:.05em}
.horloge span{color:#EFF1F2;font-weight:600}

.compteurs{display:flex;gap:26px;flex-wrap:wrap;margin-top:-2px}
.compteur{display:grid;grid-template-columns:auto auto;gap:0 6px;align-items:baseline}
.etiq{grid-column:1/-1;font-size:11.5px;letter-spacing:.07em;color:#8E99A1}
/* La vitesse passe de deux chiffres à un seul en cours de route : sans
   largeur réservée, « km/h » se décale de 4 px à chaque image et compte
   comme un décalage de mise en page. */
.kmh{font-size:clamp(32px,9vw,44px);font-weight:600;line-height:1;color:#F2F4F5;
  letter-spacing:-.03em;font-variant-numeric:tabular-nums;
  min-width:2.1ch;display:inline-block;text-align:right}
.unite{font-size:13px;color:#A7B1B8}
.metres{grid-column:1/-1;font-size:13px;color:#A7B1B8;margin-top:1px}

/* LE VERDICT CHANGE DE TEXTE EN COURS DE ROUTE, donc de nombre de lignes :
   « Personne n'a encore freiné. » tient sur une ligne, « Les deux freinent,
   aussi fort l'un que l'autre. » en prend deux au téléphone, et le pupitre
   grandissait de 25 px au moment précis où les feux stop s'allument. À lui
   seul, ce saut faisait 0,024 de décalage cumulé. Sa place est réservée
   pour deux lignes. */
.verdict{font-size:16.5px;font-weight:600;color:#EFF1F2;max-width:30ch;
  line-height:1.34;min-height:2.68em;
  transition:color .3s var(--sortie)}
.verdict.fini{color:#FFD9A8}
/* La ligne du chiffre-clé est là DÈS LE DÉPART, simplement invisible :
   apparue à la volée, elle faisait grandir le pupitre de 27 px au moment
   précis où le 70 franchit la ligne. Sa place est donc réservée. */
.marque{font-size:14px;color:#CFE0EE;max-width:34ch;visibility:hidden}
.marque.vu{visibility:visible}
.marque strong{color:#fff;background:var(--bleu);padding:1px 6px;border-radius:2px}
.note{font-size:12.5px;line-height:1.5;color:#8E99A1;max-width:46ch}

.geste{display:flex;align-items:center;gap:9px;
  font-size:12.5px;letter-spacing:.05em;color:#9AA4AC;
  transition:opacity .4s var(--sortie)}
.geste.partie{opacity:0}
.pointe{width:11px;height:11px;border-right:2px solid #9AA4AC;border-bottom:2px solid #9AA4AC;
  transform:rotate(45deg);animation:descend 1.9s var(--dedans) infinite}
@keyframes descend{0%,100%{transform:rotate(45deg) translate(0,0)}
  50%{transform:rotate(45deg) translate(3px,3px)}}

.bouton{
  display:inline-block;background:var(--bleu);color:#fff;text-decoration:none;
  font-weight:600;font-size:18px;letter-spacing:.01em;
  padding:13px 22px;border-radius:3px;min-height:48px;
  transition:transform .15s var(--sortie),background-color .15s var(--sortie);
}
.bouton:active{transform:scale(.97)}
@media (hover:hover) and (pointer:fine){.bouton:hover{background:#114F82}}

/* ========================================================= LES BLOCS ===== */
.bloc{max-width:860px;margin:0 auto;padding:76px 18px 0}
.bloc h2{font-size:clamp(25px,5.4vw,34px);letter-spacing:-.02em;max-width:20ch}
.chapo{margin-top:16px;max-width:62ch;color:#39424A;font-size:17px}
.apres{margin-top:22px;max-width:62ch;color:#39424A}
.cond{margin-top:18px;max-width:62ch;font-size:14.5px;color:var(--gris)}

/* --------------------------------------------------------- les barres --- */
.barres{margin-top:34px}
.barre+.barre{margin-top:26px}
.tete{font-size:13px;color:var(--gris);letter-spacing:.04em}
.tete strong{font-size:23px;color:var(--encre);margin-right:3px}
.rail{display:flex;width:var(--part);margin-top:7px;height:46px;
  border-radius:2px;overflow:hidden}
.reac,.frein{display:flex;align-items:center;justify-content:center;min-width:0}
.reac{width:var(--l);background:var(--sable)}
.frein{width:var(--l);background:var(--asphalte)}
.reac span{font-size:12.5px;color:#343C43;white-space:nowrap;padding:7px 12px}
.frein span{font-size:12.5px;color:#D6DBDE;white-space:nowrap;padding:7px 12px}
.total{margin-top:6px;font-size:15px;font-weight:600}
/* LA RÈGLE EST GRADUÉE, PAS RÉPARTIE. Posée en `space-between`, elle
   mettait le 10 m au cinquième de la largeur au lieu de 21,98 % : une
   règle fausse sous deux barres justes, c'est la démonstration qui tombe. */
.regle{position:relative;height:30px;margin-top:20px;
  border-top:1px solid var(--trait);font-size:11.5px;color:var(--gris)}
.regle span{position:absolute;top:7px;left:var(--x);padding-left:5px}
.regle span::before{content:"";position:absolute;left:0;top:-7px;
  width:1px;height:5px;background:var(--trait)}
.ecart{margin-top:26px;max-width:58ch;font-size:19px;line-height:1.5}
.ecart strong{color:var(--rouge)}

/* -------------------------------------------------------- le tableau ---- */
.tableau{width:100%;border-collapse:collapse;margin-top:30px;font-size:15.5px}
.tableau caption{text-align:left;font-size:12.5px;color:var(--gris);
  padding-bottom:10px;letter-spacing:.03em}
.tableau th,.tableau td{text-align:right;padding:11px 8px;
  border-bottom:1px solid var(--trait)}
.tableau thead th{font-size:12px;font-weight:600;color:var(--gris);
  letter-spacing:.03em;line-height:1.3;vertical-align:bottom}
.tableau thead th span{font-weight:400;font-size:11px;color:#5E6770}
.tableau tbody th{text-align:left;font-weight:600}
.tableau tr.phare td,.tableau tr.phare th{background:#E3E8EA}
.tableau tr.phare td strong{color:var(--bleu)}

/* ---------------------------------------------------------- la photo ---- */
.photo-bloc{margin:76px 0 0;max-width:860px;margin-left:auto;margin-right:auto;
  padding:0 18px}
.photo-bloc img{border-radius:3px}
figcaption{margin-top:9px;font-size:13px;color:var(--gris);max-width:56ch}
.prov{color:#8A5F4E}

/* --------------------------------------------------------- les étapes --- */
.etapes{list-style:none;margin:34px 0 0;padding:0;max-width:760px;
  border-top:1px solid var(--trait)}
.etapes li{padding:20px 0;border-bottom:1px solid var(--trait)}
.etapes h3{font-size:18px;margin-top:3px}
.etapes p{max-width:58ch;color:#39424A;font-size:15.5px;margin-top:5px}
.quand-et{font-size:12.5px;letter-spacing:.03em;color:var(--gris);
  font-weight:600;margin:0}
.etapes li.phare .quand-et{color:var(--bleu)}
.etapes li.phare{background:#E4E9EB;margin:0 -14px;padding-left:14px;padding-right:14px}
.sources{margin-top:22px;font-size:13px;color:var(--gris);max-width:62ch}

/* --------------------------------------------------------- la maison ---- */
.maison{display:grid;gap:30px}
.fiche{margin:24px 0 0;display:grid;gap:0;border-top:1px solid var(--trait)}
.fiche div{display:grid;grid-template-columns:1fr;gap:1px;padding:11px 0;
  border-bottom:1px solid var(--trait)}
.fiche dt{font-size:12px;letter-spacing:.06em;color:var(--gris)}
.fiche dd{margin:0;font-size:15.5px}
.maison p{max-width:58ch;color:#39424A;margin-top:14px}
.photo-cote img{border-radius:3px}

/* -------------------------------------------------------- le contact ---- */
.contact{padding-bottom:0}
.appel.gros{margin-top:26px}
.appel.gros .bouton{font-size:21px;padding:15px 26px}
.courriel{margin-top:20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
/* 44 px pour les liens qui sont des ACTIONS À PART. Les liens au fil d'une
   phrase restent à la hauteur de leur ligne : les grossir écarterait les
   lignes du paragraphe, et la règle de taille de cible les en dispense
   justement parce que leur taille est tenue par le texte autour. */
.courriel a{font-size:16px;word-break:break-all;display:inline-block;
  min-height:44px;line-height:44px}
.copier{
  font:inherit;font-size:13.5px;background:none;color:var(--encre);
  border:1px solid var(--encre);border-radius:3px;
  padding:9px 14px;min-height:44px;cursor:pointer;
  transition:transform .15s var(--sortie),background-color .15s var(--sortie),color .15s var(--sortie);
}
.copier:active{transform:scale(.97)}
.copier.fait{background:var(--bleu);border-color:var(--bleu);color:#fff}
@media (hover:hover) and (pointer:fine){.copier:hover{background:var(--encre);color:var(--papier)}}
address{margin-top:20px;font-style:normal;color:#39424A}
.dispo{margin-top:8px;font-size:15px}
.contact .ac{color:#A2503E}
.bloc .ac{color:#A2503E}

/* ------------------------------------------------ les pages annexes ----- */
.legal{padding-top:34px;padding-bottom:40px;max-width:720px}
.legal h2{margin-bottom:6px}
.legal h3{font-size:16.5px;margin-top:30px}
.legal p{margin-top:11px;max-width:66ch;color:#39424A;font-size:16px}
.legal .ac{font-size:15px}
.retour{margin-bottom:22px;font-size:14px}
.retour a{display:inline-block;min-height:44px;line-height:44px}

/* ---------------------------------------------------------- le pied ----- */
footer{margin-top:76px;padding:30px 18px calc(var(--mock) + 30px);
  background:var(--asphalte);color:#B4BCC2;font-size:13.5px;line-height:1.7}
footer p{max-width:860px;margin:0 auto}
footer a{color:#9FC6E6;display:inline-block;padding:3px 1px;min-height:24px}
.nom{color:#F0F2F3;font-weight:600}
.liens{margin-top:5px}
.liens a{min-height:44px;line-height:44px;padding:0 1px}

/* ====================================================== LES LARGEURS ===== */
@media (min-width:720px){
  :root{--mock:48px}
  /* LE CANEVAS DEVIENT UN PANNEAU HAUT, CALÉ À DROITE, et le texte vient
     se ranger CONTRE lui. Pleine largeur, il ne montrait qu'un ruban de
     route au milieu d'un champ d'accotement ; calé à droite sans que le
     texte le suive, il laissait quatre cents pixels de papier mort entre
     les deux. Les deux sont tenus par la même gouttière. */
  :root{--panneau:min(clamp(290px,48vh,460px),42vw);--marge:max(34px,calc((100vw - 1060px)/2))}
  #scene{left:auto;right:var(--marge);width:var(--panneau)}
  .dit,.bas{background:none;margin:0;padding:0}
  .sur{padding:34px var(--marge) calc(var(--mock) + 26px)}
  .haut,.bas,.dit{max-width:min(560px,calc(100vw - var(--panneau) - 2*var(--marge) - 48px))}
  .dit{margin-top:14px;margin-bottom:0;color:var(--encre)}
  .dit em{color:var(--bleu)}
  .bas{margin-top:auto}
  .horloge{color:var(--gris)} .horloge span{color:var(--encre)}
  .etiq,.unite,.metres{color:var(--gris)}
  .kmh{color:var(--encre)}
  .verdict{color:var(--encre)}
  .verdict.fini{color:var(--rouge)}
  .marque{color:#39424A} .marque strong{color:#fff}
  .note{color:var(--gris)}
  .geste{color:var(--gris)}
  .pointe{border-color:var(--gris)}
  .dit{font-size:clamp(32px,4.4vw,46px);max-width:14ch}
  .enseigne{width:min(30vw,280px)}
  .bloc{padding-top:96px}
  .maison{grid-template-columns:1fr 380px;gap:48px;align-items:start}
  .fiche div{grid-template-columns:180px 1fr;gap:16px;align-items:baseline}
  .photo-bloc{padding:0 18px}
}

/* La gouttière du héros est tenue par --marge, et c'est la SEULE qui la
   tienne. Une seconde règle fixait ici un padding-left calculé sur une
   autre largeur de colonne (980 au lieu de 1060) : à 1920 px le texte
   partait 58 px trop à droite et mordait de 10 px sur le canevas. Mesuré
   au rectangle, pas vu à l'œil — à 10 px, on ne le voit pas. */
@media (min-width:1100px){
  .bloc,.photo-bloc,footer p{max-width:1024px}
}

/* Sous 700 px, le tableau s'empile et chaque cellule reprend son en-tête */
@media (max-width:700px){
  .tableau thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tableau tbody th{display:block;border:0;padding:14px 0 4px;font-size:17px}
  .tableau td{display:flex;justify-content:space-between;padding:5px 0;
    border-bottom:0;font-size:15px}
  .tableau td::before{content:attr(data-col);color:var(--gris);font-size:13px}
  .tableau tbody tr{display:block;border-bottom:1px solid var(--trait);padding-bottom:10px}
  .tableau tr.phare{background:#E3E8EA;margin:0 -12px;padding:0 12px 10px}
  .regle span:nth-child(2),.regle span:nth-child(4){display:none}
  .rail{height:38px}
}

/* ÉCRANS COURTS : le relevé se resserre pour que le BOUTON D'APPEL reste
   au-dessus de la banderole. Mesuré à 360 × 640 : il passait dessous de
   64 px — exactement la faute payée sur CH-Stores, et elle revient parce
   qu'une réserve en bas ne suffit pas si le contenu, lui, ne cède pas. */
@media (max-height:720px){
  .note{display:none}
  .bas{gap:7px}
  .enseigne{width:min(46vw,186px)}
  .dit{font-size:clamp(21px,5.6vw,29px);margin-bottom:9px}
  .kmh{font-size:clamp(25px,6.6vw,33px)}
  .compteurs{gap:20px}
  .verdict{font-size:15px}
  .marque{font-size:13px}
  .sur{padding-top:16px}
}
@media (max-height:560px){
  .horloge,.geste,.metier{display:none}
}

/* TÉLÉPHONE COUCHÉ : il n'a plus de hauteur, mais il a de la largeur.
   Empilé, le relevé mesurait 438 px dans 332 px disponibles et le bouton
   d'appel passait sous la banderole. On range donc le titre et le relevé
   CÔTE À CÔTE au lieu de rogner le propos. */
@media (max-height:560px) and (min-width:620px){
  :root{--panneau:min(clamp(190px,52vh,460px),34vw)}
  /* DEUX COLONNES EXPLICITES, pas trois éléments en ligne. En `flex:1` à
     trois, l'enseigne se faisait écraser sous sa propre largeur et passait
     SOUS le titre. Et les colonnes doivent s'arrêter avant le panneau de
     la route, sinon le relevé se lit en encre sombre sur du bitume. */
  .sur{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
       grid-template-rows:1fr auto;align-items:end;
       column-gap:24px;row-gap:8px;
       padding-top:12px;padding-bottom:calc(var(--mock) + 12px);
       padding-right:calc(var(--marge) + var(--panneau) + 24px)}
  .haut{grid-column:1;grid-row:1;align-self:end;max-width:none}
  .dit{grid-column:1;grid-row:2;max-width:none}
  .bas{grid-column:2;grid-row:1 / 3;align-self:end;max-width:none;justify-items:start}
  .enseigne{width:min(32vw,146px)}
  .dit{font-size:19px;line-height:1.26;max-width:23ch;margin-top:8px;margin-bottom:0}
  .kmh{font-size:26px}
  .compteurs{gap:18px}
  .verdict{font-size:14px}
  .bas{gap:6px}
}

/* ==================================================== MOUVEMENT RÉDUIT === */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important}
  .piste{height:100svh}
  .pointe{animation:none}
  #scene{opacity:1}
}
