/* Blindé v6 : la nuit et le rouge de Rouge, le ticket de caisse comme fil. Base reprise de Caisse. */
/* Polices de repli calées sur Archivo et Martian Mono (Google Fonts) : tant qu'elles n'ont pas fini de charger (ou si
   elles sont bloquées), le texte prend déjà leur largeur et leur hauteur de ligne, et la bascule ne fait plus sauter la
   page. Mesuré sur Arial Narrow Bold, Arial et Menlo (macOS) : largeur à 1 % près, ascendante et descendante d'Archivo
   (0,88 et 0,21 em), de Martian Mono (1,00 et 0,20 em). Les surcharges sont divisées par size-adjust, qui les multiplie. */
@font-face { font-family: "Archivo repli"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Roboto Condensed Bold"), local("RobotoCondensed-Bold"); font-weight: 100 900; size-adjust: 88%; ascent-override: 100%; descent-override: 23.9%; line-gap-override: 0%; }
@font-face { font-family: "Archivo repli 72"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Roboto Condensed Bold"), local("RobotoCondensed-Bold"); font-weight: 100 900; size-adjust: 99%; ascent-override: 88.9%; descent-override: 21.2%; line-gap-override: 0%; }
@font-face { font-family: "Archivo repli texte"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 100 599; size-adjust: 98.2%; ascent-override: 89.6%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo repli texte"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"); font-weight: 600 900; size-adjust: 98.2%; ascent-override: 89.6%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Martian repli"; src: local("Menlo"), local("Menlo-Regular"), local("Consolas"), local("Courier New"); size-adjust: 112%; ascent-override: 89.3%; descent-override: 17.9%; line-gap-override: 0%; }
:root {
  --nuit: #0a0909;
  --nuit-2: #151312;
  --trait: #2a2725;
  --papier: #fffdf7;
  --creme: #efebe2;
  --encre: #1c1b19;
  --pale: #5e5a52;
  --gris: #a39e95;
  --pointille: #cfc9bd;
  --alarme: #ff2d20;
  --rouge-p: #d81e14;
  --gut: clamp(16px, 4vw, 48px);
  --f-d: "Archivo", "Archivo repli", "Arial Narrow", sans-serif;
  --f-d72: "Archivo", "Archivo repli 72", "Arial Narrow", sans-serif;   /* titres en largeur 72 (slogan, constat, FAQ…) */
  --f-t: "Archivo", "Archivo repli texte", system-ui, -apple-system, sans-serif;
  --f-m: "Martian Mono", "Martian repli", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Texte courant : trois crans, en rem pour suivre la taille de texte choisie dans le navigateur */
  --t-s: 1rem;                                          /* 16 px : cartes, étapes, notes */
  --t-m: 1.125rem;                                      /* 18 px : intros */
  --t-l: clamp(1.125rem, .75rem + .9vw, 1.3125rem);     /* 18 à 21 px : accroches */
  /* Contrastes (mesurés) : crème sur rouge seulement à 24 px et plus (ou 18,66 px gras) ;
     jamais #ff2d20 en texte sur papier ou crème ; #d81e14 en texte sur papier seulement, jamais sur crème.
     Grands titres : dans chaque clamp(), le maximum reste à 2,5 fois le minimum au plus (texte ×2 au zoom avant 500 %). */
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* La barre fixe ne cache ni la cible d'une ancre, ni l'élément atteint au clavier */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--nuit); color: var(--papier); font-family: var(--f-t); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
main { overflow-x: clip; }
sup { font-size: .62em; line-height: 0; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.d { font-family: var(--f-d); font-weight: 900; font-variation-settings: "wdth" 62, "wght" 900; text-transform: uppercase; line-height: .84; letter-spacing: -.005em; }
/* Les titres en largeur 72 ont leur propre repli, calé sur cette largeur (99 % au lieu de 88 %) */
.hero-h1, .q summary .d { font-family: var(--f-d72); }
.mono { font-family: var(--f-m); font-variation-settings: "wdth" 100, "wght" 500; font-size: .71875rem; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--gris); margin: 0 0 18px; }
.rouge { color: var(--alarme); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Titres en capitales sur plusieurs lignes : .95, pour qu'un accent, une virgule, un Q ou un Ç ne touche jamais la ligne voisine
   (.8 à .85 restent pour les mots seuls : BLINDÉ., compteurs, prix, numéros d'étape, bandeau final) */
.sec-h { margin: 0; font-size: clamp(44px, 7vw, 110px); line-height: .95; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; font-family: var(--f-t); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; border-radius: 4px; border: 2px solid transparent; }
.btn-alarme { background: var(--alarme); color: var(--nuit); }
.btn-ligne { color: var(--papier); border-color: var(--papier); }
.btn-nuit { background: var(--nuit); color: var(--papier); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--alarme); outline-offset: 3px; }
.offre a:focus-visible, .final a:focus-visible { outline-color: var(--nuit); }
.ticket.noir a:focus-visible { outline-color: var(--papier); }

/* Le papier : pointillés, points de conduite, dents, code-barres */
.row { display: flex; align-items: baseline; gap: 10px; }
.row > :first-child { flex: none; }
.pts { flex: 1 1 auto; min-width: 14px; border-bottom: 2px dotted #b9b2a4; transform: translateY(-5px); }
.sep { border-top: 2px dashed var(--pointille); margin: 14px 0; }
.dents-bas { -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz, 20px) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz, 20px) 100%; }
.barcode { height: 40px; background: repeating-linear-gradient(90deg, var(--encre) 0 2px, transparent 2px 4px, var(--encre) 4px 7px, transparent 7px 8px, var(--encre) 8px 9px, transparent 9px 12px, var(--encre) 12px 15px, transparent 15px 17px, var(--encre) 17px 18px, transparent 18px 21px); }

/* Tampons */
.tampon { position: absolute; z-index: 6; color: var(--rouge-p); border: 4px solid currentColor; padding: 3px; transform: rotate(var(--rot, -8deg)); pointer-events: none; }
.tampon span { display: block; border: 1.5px solid currentColor; padding: .2em .32em .04em; font-family: var(--f-d); font-weight: 900; font-variation-settings: "wdth" 62, "wght" 900; text-transform: uppercase; line-height: 1; letter-spacing: .03em; white-space: nowrap; font-size: var(--fs, 44px); }
.sur-papier .tampon { mix-blend-mode: multiply; }

/* Barre de progression */
.prog { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 60; pointer-events: none; }
.prog i { display: block; height: 100%; background: var(--alarme); transform-origin: 0 50%; transform: scaleX(0); }

/* Navigation, avec le témoin de l'imprimante. Au-delà de 1360 px, ses bords suivent ceux du contenu (.wrap). */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) max(var(--gut), env(safe-area-inset-right, 0px), calc((100% - 1360px) / 2 + var(--gut))) 12px max(var(--gut), env(safe-area-inset-left, 0px), calc((100% - 1360px) / 2 + var(--gut))); background: rgba(10, 9, 9, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
/* Cibles de 44 px au moins (logo, liens, bouton) : la barre garde sa hauteur, le bouton en fait déjà 44 */
.nav-logo { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--papier); text-decoration: none; font-size: 36px; line-height: 1; text-transform: none; }
.nav-logo span { color: var(--alarme); }
.fente { justify-self: center; display: flex; align-items: center; gap: 10px; font-family: var(--f-m); font-variation-settings: "wdth" 100, "wght" 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); background: #000; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8); border: 1px solid var(--trait); white-space: nowrap; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #4c9a4c; box-shadow: 0 0 6px #4c9a4c; }
/* « Prête » prend la place d'« Imprime » (7 caractères à chasse fixe, espacement compris) : la pastille ne change plus
   de largeur à chaque impression, et rien ne bouge autour d'elle */
.imp-etat { display: inline-block; min-width: calc(7ch + .7em); }
.imp-on .led { background: var(--alarme); box-shadow: 0 0 8px var(--alarme); animation: blink .5s steps(1) infinite; }
.imp-on .imp-etat { color: var(--papier); }
@keyframes blink { 50% { opacity: .2; } }
.nav nav { justify-self: end; display: flex; align-items: center; gap: 8px 26px; }
.nav nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; margin-inline: -8px; color: var(--papier); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav .btn { min-height: 44px; padding: 10px 18px; }
@media (max-width: 1020px) { .nav nav a:not(.btn) { display: none; } }
@media (max-width: 560px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .nav-logo { font-size: 28px; }
  .fente { min-width: 0; padding: 6px 10px; gap: 6px; font-size: 10px; letter-spacing: .04em; }
  .imp-lignes { display: none; }
  .nav .btn { min-height: 44px; padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 359px) { .fente { display: none; } }

/* Ouverture : le mot qui se compresse, le ticket qui sort de la caisse */
/* --hw : taille de BLINDÉ hors ordinateur. 30 % de la largeur, et jamais plus de 30 % de la hauteur : un téléphone couché
   garde le slogan dans le premier écran (le portrait ne change pas) */
.hero { position: relative; --hw: clamp(92px, 30vw, 300px); padding-top: clamp(96px, 12vh, 140px); padding-bottom: clamp(16px, 3vw, 40px); overflow: hidden; }
@supports (height: 1svh) { .hero { --hw: clamp(92px, min(30vw, 30svh), 300px); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: end; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr); gap: clamp(32px, 4vw, 72px); } }
.hero-eyebrow { color: var(--gris); margin: 0 0 clamp(8px, 2vw, 18px); }
/* L'accent du É dépasse la boîte du mot de .15em : la marge de .2em (qui absorbe celle du surtitre) l'empêche de toucher le surtitre */
.hero-word { --w: 62; --g: 900; margin: .2em 0 0; font-size: var(--hw); line-height: .8; font-variation-settings: "wdth" var(--w), "wght" var(--g); white-space: nowrap; }
/* Sur ordinateur, le mot et le slogan suivent aussi la hauteur de l'écran : bouton et indice restent dans le premier écran,
   de 1280x800 à 1920x1080 et jusqu'à 1366x768 */
@media (min-width: 980px) {
  .hero { padding-top: clamp(80px, 10vh, 120px); }
  .hero-word { font-size: clamp(150px, min(16.5vw, 23vh), 270px); }
}
/* Le fût du B s'aligne sur le surtitre et le slogan (approche de la lettre compensée) */
.hero-word .hw { display: inline-flex; margin-left: -.034em; }
.hero-word .l { display: inline-block; }
.hero-word .dot { color: var(--alarme); }
.hero-sub { margin: 22px 0 0; font-size: var(--t-l); line-height: 1.5; max-width: 25em; color: #e2ddd3; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-prix { margin: 10px 0 0; font-size: var(--t-s); line-height: 1.45; color: var(--gris); text-wrap: balance; }
.hero-scroll { color: var(--gris); margin-top: clamp(14px, 2vh, 32px); margin-bottom: 0; }

.caisse { position: relative; width: min(100%, 400px); justify-self: end; }
@media (max-width: 979px) { .caisse { justify-self: start; } }
.caisse-fente { position: relative; z-index: 2; height: 16px; margin: 0 -10px; background: #000; border: 1px solid var(--trait); border-radius: 999px; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9); }
/* Le ticket sort de la fente : tout ce qui est au-dessus du haut de .rec-w (sous la fente) est caché ; l'ombre, sur les
   côtés et dessous, reste visible (l'ouverture fait descendre le papier, texte compris, v6.js) */
.rec-w { position: relative; margin: -8px 0 0; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .5)); clip-path: inset(0 -60px -90px -60px); }
.rec { position: relative; background: var(--papier); color: var(--encre); font-family: var(--f-m); font-variation-settings: "wdth" 87.5, "wght" 400; font-size: .8125rem; line-height: 1.65; padding: 24px 22px 36px; }
.rec-meta { justify-content: space-between; font-size: .71875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pale); }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.items li { display: flex; gap: 10px; }
/* « 1 x » est un dessin de ticket : « / "" » le retire de ce que lit un lecteur d'écran */
.items li::before { content: "1 x"; content: "1 x" / ""; color: var(--pale); flex: none; }
.tot { font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.tot .d { font-size: 40px; letter-spacing: .01em; }
.tot .d span { color: var(--rouge-p); }
.monnaie { font-size: .71875rem; text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 16px; }
/* Le tampon se pose sur le code-barres : il ne cache aucun article du ticket */
.t-vu { --rot: -9deg; --fs: clamp(24px, 6.4vw, 34px); right: 4px; bottom: 22px; }

/* Le détail des articles : des tickets posés sur le comptoir */
.canaux { background: var(--creme); color: var(--encre); padding-block: clamp(72px, 10vw, 140px); }
.canaux .label, .methode .label { color: var(--pale); }
.canaux-intro { margin: 18px 0 0; max-width: 44ch; font-size: var(--t-m); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 36px 28px; margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.card-w { filter: drop-shadow(0 18px 26px rgba(28, 27, 25, .14)); }
.card { --zz: 18px; position: relative; background: var(--papier); padding: 20px 20px 38px; display: flex; flex-direction: column; gap: 12px; }
.c-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; font-family: var(--f-m); font-variation-settings: "wdth" 100, "wght" 600; font-size: .71875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pale); }
.c-head > :first-child { min-width: 0; white-space: normal; text-wrap: balance; }
.c-head .pts { display: none; }
.ok { color: var(--rouge-p); font-variation-settings: "wdth" 100, "wght" 800; letter-spacing: .1em; display: inline-block; }
.card h3 { margin: 2px 0 0; font-size: clamp(36px, 3.4vw, 50px); line-height: .95; }
.card p { margin: 0; font-size: var(--t-s); line-height: 1.5; }
.laser { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--alarme); box-shadow: 0 0 10px 2px rgba(255, 45, 32, .55); opacity: 0; pointer-events: none; z-index: 4; }

.ui { position: relative; margin-top: 6px; background: var(--nuit); color: var(--papier); min-height: 260px; overflow: hidden; padding: 34px 18px 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-radius: 2px; }
/* Rien sous 11 px en capitales mono espacées */
.ui-sim { position: absolute; top: 10px; right: 12px; color: var(--gris); font-size: .6875rem; }
.g-bar { display: flex; align-items: center; gap: 8px; background: var(--papier); color: var(--nuit); padding: 11px 16px; border-radius: 999px; }
/* La frappe : la barre a la largeur de la requête (--n caractères, posé par build.py, une police à chasse fixe) ; un cache
   couleur papier glisse d'un caractère à chaque cran et le curseur le suit, en transform. Rien ne change de taille : plus
   de décalage de mise en page à chaque lettre (avant : la largeur était animée, et le curseur restait loin du mot). */
.g-q { position: relative; display: inline-block; overflow: hidden; white-space: nowrap; width: calc(var(--n, 20) * 1ch + 2px); font-family: var(--f-m); font-size: 12.5px; }
.g-q::after, .g-q::before { transform: translateX(calc(var(--n, 20) * 1ch)); }   /* au repos (mouvement réduit) : la requête entière, le curseur au bout */
.g-q::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: var(--papier); animation: gType 6s steps(var(--n, 20)) infinite; }
.g-q::before { content: ""; position: absolute; z-index: 1; left: 0; top: 50%; width: 2px; height: 1.1em; margin-top: -.55em; background: var(--alarme); animation: gType 6s steps(var(--n, 20)) infinite, blink 1s steps(1) infinite; }
@keyframes gType { 0% { transform: none; } 35%, 100% { transform: translateX(calc(var(--n, 20) * 1ch)); } }
.g-res { background: var(--nuit-2); padding: 11px 14px; display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--trait); }
.g-res i { display: block; height: 8px; background: #2f2b28; width: 72%; }
.g-res i + i { width: 46%; }
.g-toi { position: relative; border: 2px solid var(--alarme); }
.g-toi b { font-family: var(--f-d); font-variation-settings: "wdth" 62, "wght" 900; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--alarme); }
.g-toi span { font-size: 13px; color: var(--gris); }
/* Le halo : un anneau qui s'agrandit et s'efface (transform et opacity, sur le compositeur), au lieu d'une ombre animée
   qui repeignait la carte à chaque image. Environ 12 px de chaque côté, comme l'ancienne ombre. */
.g-toi::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 3px rgba(255, 45, 32, .55); opacity: 0; pointer-events: none; animation: halo 2s ease-out infinite; }
.g-toi::after { inset: -2px; }
.g-toi { --hx: 1.08; --hy: 1.32; }
@keyframes halo { 0% { transform: none; opacity: 1; } 70%, 100% { transform: scale(var(--hx, 1.3), var(--hy, 1.3)); opacity: 0; } }

.ig { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.ig i { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--f-d); font-variation-settings: "wdth" 62, "wght" 900; text-transform: uppercase; font-size: clamp(13px, 1.3vw, 18px); background: var(--nuit-2); color: var(--papier); border: 1px solid var(--trait); animation: tuile 7s infinite both; }
.ig i.r { background: var(--alarme); color: var(--nuit); border-color: var(--alarme); }
.ig i.p { background: var(--papier); color: var(--nuit); border-color: var(--papier); }
.ig i:nth-child(2) { animation-delay: .15s; } .ig i:nth-child(3) { animation-delay: .3s; } .ig i:nth-child(4) { animation-delay: .45s; }
.ig i:nth-child(5) { animation-delay: .6s; } .ig i:nth-child(6) { animation-delay: .75s; } .ig i:nth-child(7) { animation-delay: .9s; } .ig i:nth-child(8) { animation-delay: 1.05s; }
.ig i:nth-child(9) { animation-delay: 1.2s; } .ig i:nth-child(10) { animation-delay: 1.35s; } .ig i:nth-child(11) { animation-delay: 1.5s; } .ig i:nth-child(12) { animation-delay: 1.65s; }
@keyframes tuile { 0%, 4% { transform: scale(0); opacity: 0; } 12%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.ig-cap { color: var(--gris); }

.ui-site { align-items: center; }
.phone { width: min(190px, 62%); aspect-ratio: 9 / 16; background: var(--papier); color: var(--nuit); border: 5px solid var(--nuit-2); outline: 1px solid var(--trait); border-radius: 24px; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
/* 21 px : « COMMERCE. » (le mot le plus long) tient dans les 104 px utiles de l'écran du téléphone */
.ph-top { font-size: 21px; line-height: .95; }
.ph-lines i { display: block; height: 7px; background: #d9d3c9; margin-bottom: 7px; }
.ph-lines i:nth-child(2) { width: 80%; } .ph-lines i:nth-child(3) { width: 60%; }
.ph-btn { margin-top: auto; position: relative; background: var(--alarme); color: var(--nuit); font-weight: 700; font-size: 14px; text-align: center; white-space: nowrap; padding: 12px 6px; border-radius: 8px; overflow: hidden; }
.tap { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(10, 9, 9, .35); animation: tap 4s infinite; }
@keyframes tap { 0%, 30% { transform: scale(0); opacity: 0; } 34% { transform: scale(1); opacity: 1; } 46%, 100% { transform: scale(8); opacity: 0; } }
.ph-toast { position: absolute; left: 8px; right: 8px; top: 10px; background: var(--nuit); color: var(--papier); padding: 8px 10px; border-radius: 9px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.35; animation: toast 4s infinite both; }
.ph-toast b { color: var(--alarme); font-size: 13px; }
@keyframes toast { 0%, 40% { transform: translateY(-150%); } 50%, 90% { transform: none; } 100% { transform: translateY(-150%); } }

/* L'offre */
.offre { background: var(--alarme); color: var(--nuit); padding-block: clamp(80px, 10vw, 150px); }
.offre .label { color: var(--nuit); }
.offre h2 { margin: 0; font-size: clamp(48px, 8.5vw, 120px); line-height: .95; max-width: 12ch; }
.offre-sub { font-size: var(--t-m); margin: 24px 0 56px; max-width: 42ch; }
/* Un ticket par rangée sur téléphone, deux sur tablette (le 03 centré dessous, jamais calé à gauche), trois côte à côte
   dès 950 px : jamais un ticket sous 270 px, et l'offre phare n'est jamais seule dans un coin */
.tickets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
@media (min-width: 620px) { .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 620px) and (max-width: 949px) { .tk-wrap:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); } }
@media (min-width: 950px) { .tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tk-wrap { position: relative; filter: drop-shadow(0 26px 40px rgba(10, 9, 9, .3)); }
.ticket { --zz: 20px; position: relative; background: var(--papier); color: var(--nuit); padding: 26px 22px 44px; display: flex; flex-direction: column; gap: 14px; }
.ticket.noir { background: var(--nuit); color: var(--papier); }
.tk-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-m); font-variation-settings: "wdth" 100, "wght" 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); border-bottom: 2px dashed var(--pointille); padding-bottom: 12px; }
/* Titre sur une ligne de 1024 à 1920 px : pas de trou sous « On te trouve. » à côté d'un titre sur deux lignes */
.ticket h3 { margin: 4px 0 0; font-size: clamp(27px, 2.7vw, 41px); line-height: .95; }
.tk-lines { list-style: none; margin: 0; padding: 0; font-family: var(--f-m); font-variation-settings: "wdth" 87.5, "wght" 400; font-size: .78125rem; line-height: 1.55; display: flex; flex-direction: column; gap: 5px; }
.tk-lines li { display: flex; gap: 10px; }
.tk-lines li::before { content: "1 x"; content: "1 x" / ""; color: var(--pale); flex: none; }
.tk-total { border-top: 2px dashed var(--pointille); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tk-des { font-family: var(--f-m); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); }
/* Calé à droite : pendant que le prix compte, v6.js lui garde la largeur du prix final (rien ne bouge à côté) */
.tk-prix { font-size: clamp(54px, 5vw, 80px); line-height: .85; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tk-mois { font-family: var(--f-m); font-size: .75rem; text-align: right; color: var(--pale); text-wrap: balance; }
.tk-mois strong, .tk-mois span { display: block; }
.tk-mois strong { font-weight: 700; }
.tk-mois span { margin-top: 3px; }
.tk-suite { border-top: 1px dashed var(--pointille); padding-top: 12px; display: grid; gap: 5px; font-family: var(--f-m); font-size: .8125rem; line-height: 1.5; color: var(--pale); }
.tk-suite strong { font-family: var(--f-d); font-size: 34px; line-height: 1.1; color: var(--nuit); }
.tk-suite small { font-family: var(--f-m); font-size: .8125rem; font-weight: 400; }
.ticket.noir .tk-suite { border-color: #3b3733; color: var(--gris); }
.ticket.noir .tk-suite strong { color: var(--alarme); }
.tk-merci { font-family: var(--f-m); font-size: .75rem; text-align: center; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); text-wrap: balance; }
/* Le bouton de chaque ticket : sur toute la largeur du ticket, comme l'action d'un reçu */
.tk-go { width: 100%; padding-inline: 16px; line-height: 1.2; text-align: center; }
.ticket .barcode { height: 36px; }
.ticket.noir .tk-head, .ticket.noir .tk-lines li::before, .ticket.noir .tk-des, .ticket.noir .tk-mois, .ticket.noir .tk-merci { color: var(--gris); }
.ticket.noir .tk-head, .ticket.noir .tk-total { border-color: #3b3733; }
.ticket.noir .tk-prix { color: var(--alarme); }
.ticket.noir .barcode { background: repeating-linear-gradient(90deg, var(--papier) 0 2px, transparent 2px 4px, var(--papier) 4px 7px, transparent 7px 8px, var(--papier) 8px 9px, transparent 9px 12px, var(--papier) 12px 15px, transparent 15px 17px, var(--papier) 17px 18px, transparent 18px 21px); }
.t-tk3 { --rot: -10deg; --fs: 34px; color: var(--papier); right: -16px; top: -46px; }
.offre-opt { margin: 56px 0 0; font-size: var(--t-s); max-width: 64ch; }
.offre-go { margin: 32px 0 0; }

/* Méthode */
.methode { background: var(--creme); color: var(--encre); padding-block: clamp(80px, 10vw, 150px); }
.methode .sec-h { margin-bottom: 56px; }
/* Une étape par rangée sur téléphone, deux et deux sur tablette, les quatre sur une rangée dès 900 px : jamais l'étape 04
   seule (avant : 3 + 1 entre 840 et 899 px, en téléphone couché) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 28px; }
@media (min-width: 521px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { border-top: 2px dashed var(--pointille); padding-top: 18px; }
.step-n { font-size: clamp(88px, 9vw, 150px); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--encre); }
.step h3 { margin: 18px 0 10px; font-size: clamp(32px, 3vw, 46px); line-height: .95; }
.step p { margin: 0; font-size: var(--t-s); max-width: 32ch; }

/* Final */
.final { background: var(--alarme); color: var(--nuit); overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
/* Deux lignes au lieu de cinq mots empilés */
.final h2 { margin: 0; font-size: clamp(52px, 9vw, 130px); line-height: .95; max-width: 20ch; }

/* Pied */
/* 96 px en bas seulement dans l'aperçu, pour la barre des univers (data-racine) ; 48 px sur le site public */
.foot { padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--trait); }
body[data-racine] .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.foot-logo { font-size: 64px; line-height: .85; text-transform: none; }
.foot-logo span { color: var(--alarme); }
.foot-par { margin: 6px 0 0; font-size: .875rem; color: var(--gris); }
.foot-r { display: flex; flex-direction: column; gap: 10px; font-size: .875rem; color: var(--gris); }
/* Liens du pied : 44 px de haut au doigt, sans écart entre les rangées (même encombrement qu'avant, à 12 px près) */
.foot-r nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-r nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--papier); text-decoration: none; }

/* Mouvement réduit : plus rien ne se déplace, mais les fondus restent, ils ne gênent pas l'équilibre et disent ce qui change */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity, filter !important; transition-duration: .2s !important; transition-delay: 0s !important; }
}

/* ---- v6 : ce qui s'ajoute à la base Caisse ---- */
.hero-h1 { margin: clamp(16px, 2.4vw, 30px) 0 0; font-size: clamp(38px, 5.2vw, 84px); line-height: .95; font-variation-settings: "wdth" 72, "wght" 900; max-width: 16ch; }
/* Sur ordinateur : 20ch, le slogan tient en 4 lignes sur les 6 pages ; sa taille suit aussi la hauteur de l'écran */
@media (min-width: 980px) { .hero-h1 { font-size: clamp(38px, min(5.2vw, 7.4vh), 84px); max-width: 10.05em; } }
.h1-a, .h1-b { display: block; }
.hero-sub strong { color: var(--papier); }

/* Les métiers */
.metiers { background: var(--nuit-2); border-block: 1px solid var(--trait); padding-block: clamp(72px, 9vw, 130px); }
.metiers .sec-h { margin-bottom: clamp(32px, 4vw, 52px); }
.metiers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.metier { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; min-height: 230px; padding: 22px 20px; background: var(--nuit); border: 1px solid var(--trait); color: var(--papier); text-decoration: none; transition: border-color .2s, scale .25s cubic-bezier(.2, .8, .2, 1); }
.metier .mono { color: var(--gris); }
.metier-nom { font-size: clamp(32px, 2.6vw, 44px); line-height: .95; }
.metier-txt { font-size: var(--t-s); color: #d8d3ca; }
.metier-go { align-self: end; font-weight: 700; color: var(--alarme); }
@media (max-width: 599px) { .metier { min-height: 0; row-gap: 8px; padding: 18px 18px 20px; } }

/* L'offre : Annuel / Mensuel porte sur la création ; les services restent mensuels. */
.offre-paiement { margin: 0 0 12px; font-size: .9375rem; font-weight: 700; }
.bascule { display: inline-flex; gap: 4px; padding: 4px; background: var(--nuit); border-radius: 999px; margin: 0 0 18px; }
/* Deux boutons radio (un vrai choix exclusif) : l'étiquette est la pastille, le bouton radio est lu mais pas montré */
.bascule-b { all: unset; box-sizing: border-box; display: grid; gap: 3px; cursor: pointer; padding: 12px 22px; border-radius: 999px; font-family: var(--f-t); font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--papier); }
.bascule-b small { font-size: .8125rem; font-weight: 400; }
.bascule-b:has(:checked) { color: var(--nuit); }
.bascule:not(.has-pill) .bascule-b:has(:checked) { background: var(--papier); }
.bascule { position: relative; }
.bascule-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--papier); }
.bascule-b { position: relative; z-index: 1; transition: color .25s; }
.bascule-b:has(:focus-visible) { outline: 3px solid var(--papier); outline-offset: 2px; }
.offre-regle { max-width: 60ch; margin: 0 0 48px; font-size: var(--t-s); }
/* L'affichage suit le bouton coché, en CSS : la bascule marche sans JS (v6.js anime les prix et annonce le changement) */
.offre:has(.bascule [value="mensuel"]:checked) .tk-annuel, .offre:has(.bascule [value="annuel"]:checked) .tk-mensuel { display: none; }
.tk-mois { line-height: 1.5; }
.tk-eco { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 9px; font-family: var(--f-m); font-variation-settings: "wdth" 100, "wght" 700; font-size: .75rem; text-align: right; color: var(--rouge-p); text-wrap: balance; }
.tk-eco strong { font-size: 1.25rem; line-height: 1.2; }
/* Sur ordinateur, l'en-tête de l'offre occupe la largeur : le titre à gauche, sous-titre, bascule et règle à droite,
   alignés sur le bas du titre ; les tickets et la suite reprennent toute la largeur */
@media (min-width: 1100px) {
  .offre .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto auto auto; column-gap: 64px; }
  .offre .label { grid-column: 1 / -1; }
  .offre h2 { grid-column: 1; grid-row: 1 / span 3; align-self: end; }
  .offre-sub { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 28px; }
  .offre-choix { grid-column: 2; grid-row: 2; justify-self: start; }
  .offre-regle { grid-column: 2; grid-row: 3; margin: 0; }
  .tickets { grid-row: 4; margin-top: 72px; }
  .tickets, .offre-cadre, .offre-opt, .offre-go { grid-column: 1 / -1; }
}
.ticket.noir .tk-eco { color: var(--alarme); }

/* Les projets, avec leur vrai aperçu */
.projets { padding-block: clamp(80px, 10vw, 150px); }
.projets .sec-h { margin-bottom: 40px; }
/* Page Chauffeurs : la ligne honnête au-dessus de la grille (pas encore de projet chauffeur) */
.proj-note { margin: -12px 0 40px; max-width: 52ch; font-size: var(--t-m); color: #d8d3ca; }
/* Une capture par rangée sur téléphone, deux dès 640 px (tablette, téléphone couché : avant, une seule capture de
   700 px de large à 768), trois dès 1136 px. Les 6 premières font toujours des rangées pleines. */
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 28px; }
@media (min-width: 640px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1136px) { .proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proj { display: flex; flex-direction: column; gap: 16px; color: var(--papier); text-decoration: none; }
.proj-cadre { display: block; overflow: hidden; border: 6px solid var(--papier); background: var(--papier); box-shadow: 0 16px 30px rgba(0, 0, 0, .45); }
.proj-cadre picture { display: block; }
.proj-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.proj-txt { display: flex; flex-direction: column; gap: 8px; }
.proj-name { font-size: clamp(36px, 3.6vw, 56px); line-height: .95; transition: color .2s; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--gris); }
.st-on { color: var(--alarme); }
.st-ap { color: var(--papier); }
.proj-voir { font-weight: 700; font-size: var(--t-s); }
/* Les projets suivants, repliés : un vrai bouton dans la grille, puis une rangée sans orphelin
   (3 colonnes dès que la grille principale en a 2 ou 3) */
.proj-plus > summary { display: flex; align-items: center; gap: 14px; width: fit-content; min-height: 48px; padding: 12px 22px; border: 2px solid var(--papier); border-radius: 4px; color: var(--papier); font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s; }
.proj-plus > summary::-webkit-details-marker { display: none; }
/* Le « + » est un dessin : « / "" » le retire du nom lu par les lecteurs d'écran */
.proj-plus > summary::after { content: "+"; content: "+" / ""; font-family: var(--f-m); font-size: 1.25rem; line-height: 1; color: var(--alarme); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.proj-plus[open] > summary::after { transform: rotate(45deg); }
.proj-plus > summary:active { transform: scale(.97); transition-duration: 0s; }
.proj-grid-plus { margin-top: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .proj-grid-plus { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Le test ChatGPT */
.test-ia { background: var(--creme); color: var(--encre); padding-block: clamp(72px, 10vw, 140px); }
.test-ia .label { color: var(--pale); }

/* FAQ */
.faq { padding-block: clamp(72px, 10vw, 140px); }
.faq .sec-h { margin-bottom: clamp(28px, 4vw, 44px); }
.faq-l { border-top: 1px dashed #3b3733; max-width: 980px; }
.q { border-bottom: 1px dashed #3b3733; }
.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; content: "+" / ""; flex: none; font-family: var(--f-m); font-size: 1.375rem; color: var(--alarme); transition: transform .2s; }
/* Pas d'overflow: hidden au repos : il rognait le contour du focus clavier. v6.js ne coupe le débordement que pendant
   que la réponse se déplie ou se replie. */
.q[open]:not(.ferme) summary::after { transform: rotate(45deg); }
/* Questions en rem + vw : elles grossissent avec le texte du navigateur et avec le zoom */
.q summary .d { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.05; text-transform: none; font-variation-settings: "wdth" 72, "wght" 800; transition: color .2s; }
.q summary:focus-visible { outline: 3px solid var(--alarme); outline-offset: 2px; }
.q p { margin: 0 0 22px; max-width: 64ch; color: #d8d3ca; font-size: var(--t-m); }


/* Ouverture. Le texte du héros ne dépend plus de GSAP : il entre en CSS dès le premier rendu (fondu et 24 px, un cran
   après l'autre). js-intro (posé par le script en tête de page) ne cache que BLINDÉ., le ticket et son tampon, le temps
   que v6.js les anime ; sans v6.js à 2,5 s, ils s'affichent tels quels (build.py, intro-ratee). */
/* Le tampon reste peint à .01 d'opacité (invisible) : c'est cette première peinture, à sa taille normale, qui compte pour
   le LCP, et plus sa frappe à 2,6 fois sa taille, 1,4 s plus tard */
.js-intro .hero-word, .js-intro .rec-hero { visibility: hidden; }
.js-intro .t-vu { opacity: .01; }
@media (prefers-reduced-motion: no-preference) {
  [data-hi] { animation: hi .6s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-h1 { animation-delay: .06s; }
  .hero-sub { animation: none; }
  .hero-cta { animation-delay: .18s; }
  .hero-prix { animation-delay: .24s; }
  .hero-scroll { animation-delay: .3s; }
}
@keyframes hi { from { opacity: 0; transform: translateY(24px); } }

/* ---- Passe apple-design : alignements ---- */
/* Les cartes d'une même rangée partagent leurs lignes : titres, textes et écrans tombent au même niveau. */
.metiers-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
/* Les cinq métiers sur une rangée dès 1180 px : jamais « Chauffeurs » seul */
@media (min-width: 1180px) { .metiers-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cards { align-items: stretch; }
.card-w { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; }
.card { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 12px; }
.card .ui { height: 320px; min-height: 0; margin-top: 0; }
.phone { width: auto; height: 252px; }
.tickets { align-items: stretch; }
.tk-wrap { display: grid; grid-row: span 10; grid-template-rows: subgrid; row-gap: 12px; }
.ticket { grid-row: span 10; display: grid; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
.ticket .tk-total { align-self: end; }
/* Titres équilibrés : jamais un mot ou un point d'interrogation seul sur sa ligne. */
.sec-h, .hero-h1, .offre h2, .final h2, .q summary .d, .card h3, .ticket h3, .step h3, .metier-nom, .metier .mono, .metier-txt { text-wrap: balance; }
/* Paragraphes : pas de mot seul sur la dernière ligne */
.hero-sub, .canaux-intro, .card > p, .step p, .offre-sub, .offre-regle, .offre-opt, .q p, .final p, .proj-note { text-wrap: pretty; }
.test-ia .sec-h { font-size: clamp(40px, 5.2vw, 84px); }
@media (max-width: 560px) { .hero-cta { flex-direction: column; } .hero-cta .btn { width: 100%; } }

/* ---- Passe apple-design : réponse et matière ---- */
/* Le retour se voit à l'appui, tout de suite (0,97) ; le relâchement, lui, revient en douceur */
.btn { transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.btn:active, .bascule-b:active { transform: scale(.97); transition-duration: 0s; }
/* Cartes : enfoncées tout de suite au toucher, relâchées en douceur (la transition de « scale » est sur la carte) */
.metier:active, .proj:active .proj-cadre { scale: .985 !important; transition-duration: 0s; }
.proj-cadre { transition: scale .25s cubic-bezier(.2, .8, .2, 1); }
.metier-go { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
/* Survols : seulement avec une souris (rien ne reste collé sous le doigt), et chaque élément cliquable répond.
   Le bouton rouge passe en creux (nuit et filet rouge), les boutons clairs ou nuit passent au papier. */
@media (hover: hover) {
  .btn-alarme:hover { background: var(--nuit); color: var(--alarme); border-color: var(--alarme); }
  .btn-ligne:hover, .btn-nuit:hover, .proj-plus > summary:hover { background: var(--papier); color: var(--nuit); border-color: var(--papier); }
  .bascule-b:not(:has(:checked)):hover { color: var(--alarme); }
  .nav nav a:not(.btn):hover, .foot-r nav a:hover, .q summary:hover .d, .proj:hover .proj-name { color: var(--alarme); }
  .metier:hover { border-color: var(--alarme); }
  .metier:hover .metier-go { transform: translateX(4px); }
  .proj:hover .proj-img { transform: scale(1.04); }
}
/* Les mots des titres glissent depuis derrière un cache ; de la marge pour ne jamais rogner les accents. Le cache ne sert
   que pendant l'animation : ensuite, v6.js rend le titre en texte simple, plus rien n'est coupé (virgules, queue du Q, cédille du Ç).
   Pas de will-change permanent : GSAP ne passe le mot sur sa propre couche que le temps qu'il bouge. */
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .02em .04em; margin: -.14em -.02em -.04em; }
.mw-i { display: inline-block; }
/* La barre du haut : pas de filet tant que rien ne passe dessous */
.nav { border-bottom-color: transparent; transition: border-color .3s, background-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--trait); }
/* Captures : un léger zoom dans le cadre au survol (règle :hover dans le bloc des survols) */
.proj-img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  /* L'appui garde un retour, tout de suite, sans déplacement : un voile au lieu d'un enfoncement */
  .btn:active, .metier:active, .proj:active .proj-cadre, .bascule-b:active, .nav-menu:active, .proj-plus > summary:active { transform: none; scale: 1 !important; filter: brightness(.86); transition-duration: 0s !important; }
  .proj:hover .proj-img, .metier:hover .metier-go { transform: none; }
  /* La réponse qui s'ouvre et le total qui change arrivent en fondu */
  .q[open] p, .offre .tk-total, .offre .tk-mois, .offre .tk-eco { animation: fondu .2s linear !important; }
}
@keyframes fondu { from { opacity: 0; } }
/* Projets : capture, nom, infos et lien sur les mêmes lignes d'une carte à l'autre */
.proj { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
.proj-txt { display: contents; }
.proj-cadre { margin-bottom: 6px; }
.proj-meta { align-self: start; }
.proj-voir { align-self: start; }
/* En Mensuel, pas de ligne d'économie : les tickets suivent leurs neuf lignes utiles. */
.offre:has(.bascule [value="mensuel"]:checked) .tk-wrap, .offre:has(.bascule [value="mensuel"]:checked) .ticket { grid-row: span 9; }
/* Les projets repliés suivent la liste des projets (lot E : le bouton n'est plus une case de la grille, il vient juste
   dessous, à l'écart d'une rangée de la grille) */
.proj-plus { margin-top: 36px; }
/* Une ou deux colonnes de tickets (sous 950 px) : le tampon se pose à cheval sur le bas du ticket 03, sous son code-barres.
   Il ne cache plus l'étiquette « Blindé » de l'en-tête (téléphone) et ne chevauche plus deux tickets (tablette). */
@media (max-width: 949px) { .t-tk3 { --fs: 28px; top: auto; bottom: -18px; right: 14px; } }

/* ---- Lot B : titre de page, pied, pages légales ---- */
/* Le h1 réunit le surtitre (le sujet de la page) et le slogan : le visuel ne change pas */
.hero-titre { margin: 0; font: inherit; }
.hero-titre .hero-eyebrow, .hero-titre .hero-word, .hero-titre .hero-h1 { display: block; }
/* Page générale : chaque métier a son titre */
.metier-nom { margin: 0; }
/* Pied : qui est derrière Blindé, le contact et les pages légales */
.foot-qui, .foot-note { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--papier); text-decoration: none; }
.foot-note { font-size: .8125rem; }
@media (hover: hover) { .foot-legal a:hover { color: var(--alarme); } }
/* Mentions légales et confidentialité */
.legal { padding-top: clamp(112px, 14vh, 168px); padding-bottom: clamp(72px, 10vw, 140px); }
.legal .sec-h { font-size: clamp(44px, 6vw, 96px); }
.legal-chapo { margin: 18px 0 0; max-width: 46ch; font-size: var(--t-l); color: #d8d3ca; }
.legal-s { max-width: 68ch; margin-top: clamp(40px, 5vw, 64px); }
.legal-s h2 { margin: 0 0 14px; font-size: clamp(28px, 2.8vw, 40px); line-height: .95; }
.legal-s p { margin: 0 0 12px; color: #d8d3ca; }
.legal-s a { color: var(--papier); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (hover: hover) { .legal-s a:hover { color: var(--alarme); } }
.legal-maj { margin: clamp(40px, 5vw, 64px) 0 0; color: var(--gris); }
.legal-mesure { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 12px; }
:where(.legal-mesure) .btn { cursor: pointer; background: transparent; }
.legal-mesure [data-mesure-etat] { color: #d8d3ca; }

/* ---- Lot C1 : sections qui se suivent, pied ---- */
/* Deux sections de même fond qui se suivent : une perforation de ticket au lieu de 280 px de vide */
.test-ia { padding-bottom: clamp(56px, 7vw, 96px); }
.test-ia + .methode { padding-top: 0; }
.test-ia + .methode > .wrap::before { content: ""; display: block; border-top: 2px dashed var(--trait); margin-bottom: clamp(56px, 7vw, 96px); }
.test-ia + .methode > .wrap::before { border-top-color: var(--pointille); }
/* Les deux crèmes se recouvrent d'un pixel : plus de filet sombre quand la jonction tombe entre deux pixels */
.test-ia + .methode { margin-top: -1px; }
/* Pied : la colonne de droite est calée à droite, comme sa navigation */
@media (min-width: 980px) {
  .foot-r { align-items: flex-end; text-align: right; }
  .foot-r nav, .foot-legal { justify-content: flex-end; }
}

/* ---- Lot C2 : téléphone et tablette ---- */
/* Un mot composé ne se coupe pas à son trait d'union : « rendez- / vous » (balise posée par typo() dans build.py) */
.nw { white-space: nowrap; }
/* Titres en capitales sur téléphone et tablette : interligne 1, un accent ne touche jamais la lettre du dessus */
@media (max-width: 979px) { .sec-h, .offre h2, .final h2 { line-height: 1; } }
/* Petits téléphones (moins de 390 px) : titres de section à 11,3vw (40,7 px à 360 au lieu de 44), sinon la virgule de
   « NOM, » tombe sur le È de « RAMÈNE » ; titres des cartes à 1,12 (la virgule de « ET LÀ, » sur le É de « RÉSERVENT ») */
@media (max-width: 389px) { .sec-h { font-size: clamp(2.25rem, 11.3vw, 2.75rem); } .card h3 { line-height: 1.12; } }

/* Héros sur tablette portrait et téléphone couché (700 à 979 px) : BLINDÉ. sur toute la largeur ; le slogan, le texte et
   les boutons à gauche ; le ticket à droite dès la hauteur du slogan, au lieu d'une moitié droite vide et d'un ticket
   repoussé sous les boutons. Le premier div s'efface (display: contents), le h1 reste entier. */
@media (min-width: 700px) and (max-width: 979px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto auto auto 1fr; column-gap: 32px; row-gap: 0; align-items: start; }
  .hero-grid > div:first-child { display: contents; }
  .hero-titre { grid-column: 1 / -1; grid-row: 1; }
  .hero-titre .hero-h1 { max-width: min(16ch, calc(100% - 332px)); }
  .hero-sub { grid-column: 1; grid-row: 2; }
  .hero-cta { grid-column: 1; grid-row: 3; }
  .hero-prix { grid-column: 1; grid-row: 4; }
  /* Haut du ticket = haut du slogan : surtitre (1 ligne) + BLINDÉ. (marge .2em et interligne .8, soit 1em) + marge du slogan */
  .caisse { grid-column: 2; grid-row: 1 / -1; justify-self: end; margin-top: calc(1.5 * .71875rem + var(--hw) + clamp(16px, 2.4vw, 30px)); }
}
/* Surtitre sur deux lignes ou plus (page générale sous 740 px) : lignes équilibrées, jamais « FRANCE » seul */
.hero-eyebrow { text-wrap: balance; }
/* « Scrolle. Ça imprime. » seulement quand il tient dans le premier écran (pas sur téléphone, ni téléphone couché) */
@media (max-width: 699px), (max-height: 500px) { .hero-scroll { display: none; } }

/* Les cinq métiers sur tablette : deux par rangée et le dernier sur toute la largeur (600 à 899 px), puis trois et deux
   cartes plus larges (900 à 1179 px). Jamais une carte seule dans un coin. */
/* (Lot E : chaque carte est dans un li de la liste des métiers ; le rang se lit sur le li, la carte reste la case) */
@media (min-width: 600px) and (max-width: 1179px) {
  .metiers-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .metier { grid-column: span 3; }
  .metiers-grid > li:last-child:nth-child(odd) > .metier { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-width: 1179px) {
  .metier, .metiers-grid > li:last-child:nth-child(odd) > .metier { grid-column: span 2; }
  .metiers-grid > li:nth-child(3n + 1):nth-last-child(-n + 2) > .metier, .metiers-grid > li:nth-child(3n + 1):nth-last-child(-n + 2) ~ li > .metier { grid-column: span 3; }
  .metiers-grid > li:nth-child(3n + 1):last-child > .metier { grid-column: 1 / -1; }
}

/* L'offre sur téléphone et tablette : la bascule reste collée sous la barre pendant qu'on lit les tickets ; un filet clair
   la détache du ticket 03, noir comme elle */
@media (max-width: 979px) {
  .bascule { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 7; box-shadow: 0 0 0 1px rgba(255, 253, 247, .18), 0 6px 18px rgba(10, 9, 9, .35); }
}
/* Texte qu'on lit sur téléphone et tablette : 13 px au moins (lignes des tickets, prix après la 1re année, journal) ;
   sur téléphone, un peu moins de marge dans les tickets et le journal pour leur laisser la place */
@media (max-width: 979px) {
  .tk-lines { font-size: .84375rem; }
  .tk-mois, .tk-eco { font-size: .8125rem; }
}
@media (max-width: 560px) {
  .ticket { padding-inline: 18px; }
}

/* Au toucher : pas de surlignage gris d'iOS, mais un retour à l'appui partout, instantané, relâché en douceur */
a, summary, button, .bascule-b { -webkit-tap-highlight-color: transparent; }
.nav-logo, .nav nav a:not(.btn), .foot-r nav a, .foot-legal a, .legal-s a, .q summary { transition: opacity .2s; }
.nav-logo:active, .nav nav a:not(.btn):active, .foot-r nav a:active, .foot-legal a:active, .legal-s a:active { opacity: .6; transition-duration: 0s; }
.q summary:active { opacity: .7; transition-duration: 0s; }

/* ---- Lot E : navigation, menu, rendez-vous, formulaire, structure ---- */
/* Aller au contenu : le premier arrêt de tabulation, visible seulement au clavier */
.evitement { position: fixed; z-index: 100; top: calc(12px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); padding: 12px 18px; border-radius: 4px; background: var(--alarme); color: var(--nuit); font-weight: 700; text-decoration: none; transform: translateY(calc(-100% - 40px)); }
.evitement:focus { transform: none; }
.evitement:focus-visible { outline: 3px solid var(--papier); outline-offset: 2px; }
main:focus { outline: none; }

/* La barre ne passe jamais sur deux lignes. Le témoin de l'imprimante (190 px, 208 avec la police de repli) reste centré
   sur la page, ou s'efface quand il n'a plus la place : sous 1 180 px avec « Métiers » (ancres de 423 px), sous 1 300 px
   avec « Tous les métiers » (485 px). Avec le bouton Menu (247 px) : complet dès 800 px, sans le compteur de lignes
   (92 px) dès 680 px, effacé en dessous. */
.nav nav a, .nav .btn, .nav-menu { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1179px) { .nav { grid-template-columns: auto minmax(0, 1fr); } .nav .fente { display: none; } }
@media (min-width: 1180px) and (max-width: 1299px) { .nav-long { grid-template-columns: auto minmax(0, 1fr); } .nav-long .fente { display: none; } }
@media (max-width: 799px) { .imp-lignes { display: none; } }
@media (max-width: 679px) { .nav { grid-template-columns: auto minmax(0, 1fr); } .nav .fente { display: none; } }

/* Le bouton Menu, sous 1 021 px (il n'existe qu'avec JS : sans JS, la navigation est dans le pied) */
.nav-menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 2px solid var(--papier); border-radius: 4px; background: transparent; color: var(--papier); font: 700 15px/1 var(--f-t); cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s; }
@media (max-width: 1020px) { .nav-menu { display: inline-flex; } .nav nav { gap: 10px; } }
@media (max-width: 560px) { .nav-menu { padding: 10px 12px; font-size: 14px; } }
.nav-menu:active { transform: scale(.97); transition-duration: 0s; }
@media (hover: hover) { .nav-menu:hover { background: var(--papier); color: var(--nuit); } }
/* Deux traits qui se croisent quand le menu est ouvert ; le nom reste « Menu », l'état est dans aria-expanded */
.nav-menu-ic { position: relative; flex: none; width: 16px; height: 12px; }
.nav-menu-ic::before, .nav-menu-ic::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.nav-menu-ic::before { top: 1px; }
.nav-menu-ic::after { bottom: 1px; }
.nav-menu[aria-expanded="true"] .nav-menu-ic::before { transform: translateY(4px) rotate(45deg); }
.nav-menu[aria-expanded="true"] .nav-menu-ic::after { transform: translateY(-4px) rotate(-45deg); }
/* Menu ouvert : le rendez-vous de la barre laisse la place à celui du menu, la page ne défile plus dessous */
html.menu-ouvert { overflow: hidden; scrollbar-gutter: stable; }
.menu-ouvert .nav nav > .btn { visibility: hidden; opacity: 0; }

/* Le menu : un ticket couleur nuit qui sort de la barre comme d'une fente de caisse. Il glisse depuis sous la barre
   (transform), la page s'assombrit (opacity) et ses lignes s'impriment l'une après l'autre. Une transition CSS repart
   de la position affichée : on peut le refermer en plein vol. */
.menu { position: fixed; z-index: 49; top: var(--barre, 69px); left: 0; right: 0; bottom: 0; overflow: hidden; visibility: hidden; pointer-events: none; transition: visibility 0s linear .4s; }
.menu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(10, 9, 9, .62); opacity: 0; transition: opacity .3s ease-out; }
/* La fente : un creux noir sous la barre, d'où sort le ticket */
.menu::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 8px; background: #000; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9); opacity: 0; transition: opacity .2s; }
.menu.is-open::before, .menu.is-open::after { opacity: 1; }
.menu-ticket { --zz: 22px; position: relative; height: calc(100% + var(--zz)); background: var(--nuit); transform: translateY(-100%); transition: transform .38s cubic-bezier(.5, 0, .75, 0); }
.menu.is-open .menu-ticket { transform: none; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.menu-in { display: flex; flex-direction: column; height: calc(100% - var(--zz)); overflow-y: auto; overscroll-behavior: contain; padding-top: 22px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.menu-tete { color: var(--gris); padding-bottom: 12px; border-bottom: 2px dashed var(--trait); }
.menu-tete .pts { border-bottom-color: #3b3733; }
.menu-liste { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; }
.menu-liste li { border-bottom: 1px dashed #3b3733; }
/* Cibles de 56 px ; le numéro de ligne, comme sur un ticket */
.menu-liste a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 0; color: var(--papier); text-decoration: none; transition: opacity .2s; }
.menu-liste .d { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: .95; }
.menu-liste .mono { flex: none; color: var(--gris); }
.menu-liste a:active { opacity: .6; transition-duration: 0s; }
@media (hover: hover) { .menu-liste a:hover .d { color: var(--alarme); } }
.menu-go { width: 100%; min-height: 56px; margin-top: 24px; font-size: 1.125rem; }
.menu-prix { margin: 12px 0 32px; color: var(--gris); font-size: var(--t-s); }
/* Le code-barres en bas du ticket, comme sur le ticket Blindé (barres claires sur la nuit) */
.menu-in .barcode { flex: none; height: 36px; margin-top: auto; background: repeating-linear-gradient(90deg, var(--papier) 0 2px, transparent 2px 4px, var(--papier) 4px 7px, transparent 7px 8px, var(--papier) 8px 9px, transparent 9px 12px, var(--papier) 12px 15px, transparent 15px 17px, var(--papier) 17px 18px, transparent 18px 21px); }
.menu-in a:focus-visible { outline-offset: 2px; }
/* Les lignes s'impriment l'une après l'autre à l'ouverture ; à la fermeture, elles partent avec le ticket */
.menu-liste li, .menu-go, .menu-prix { opacity: 0; transform: translateY(-10px); transition: opacity .15s, transform .15s; }
.menu.is-open .menu-liste li, .menu.is-open .menu-go, .menu.is-open .menu-prix { opacity: 1; transform: none; transition: opacity .3s ease-out, transform .45s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(140ms + var(--i, 0) * 45ms); }
/* Écran bas (téléphone couché, zoom fort) : les ancres sur deux colonnes, le rendez-vous à côté ; tout tient sans défiler
   (844x390 : 250 px de contenu pour 321 px de menu) */
@media (max-height: 500px) {
  .menu-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 30%); grid-template-rows: auto auto 1fr; column-gap: 32px; align-content: start; padding-top: 12px; }
  .menu-tete { grid-column: 1 / -1; }
  .menu-liste { grid-column: 1; grid-row: 2 / span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .menu-liste .d { font-size: 1.75rem; }
  .menu-go { grid-column: 2; grid-row: 2; align-self: start; margin-top: 12px; }
  .menu-prix { grid-column: 2; grid-row: 3; align-self: start; margin: 10px 0 0; }
  .menu-in .barcode { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .menu { transition: visibility 0s linear .15s !important; }
  .menu.is-open { transition-delay: 0s !important; }
  .menu::before, .menu::after { transition: opacity .15s linear !important; }
  .menu-ticket { transform: none; opacity: 0; transition: opacity .15s linear !important; }
  .menu.is-open .menu-ticket { opacity: 1; }
  .menu-liste li, .menu-go, .menu-prix { opacity: 1; transform: none; }
}

/* Écran bas (téléphone couché, zoom fort) : la barre se cache quand on descend et revient dès qu'on remonte (v6.js) */
@media (max-height: 500px) {
  .nav { transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, background-color .3s; }
  .nav.is-cachee { transform: translateY(calc(-100% - 2px)); }
  .nav.is-cachee ~ main .bascule { top: calc(8px + env(safe-area-inset-top, 0px)); }
}

/* Listes (lues « liste, N éléments ») : sans puces ni retrait. Les li des métiers et des projets s'effacent dans la
   grille (display: contents) : la carte reste la case, comme avant */
:where(.cards, .tickets, .metiers-grid, .proj-grid, .menu-liste) { margin: 0; padding: 0; list-style: none; }
.metiers-grid > li, .proj-grid > li { display: contents; }

/* L'offre : la façon de payer est dite aux lecteurs d'écran dans chaque prix ; sans :has() (vieux navigateur), pas de
   bascule, les deux façons de payer s'affichent l'une sous l'autre avec leur nom */
.tk-mode { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@supports not selector(:has(*)) {
  .bascule { display: none; }
  .tk-mode { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .tk-wrap, .ticket { grid-row: span 12; }
}
/* Contraste élevé (couleurs forcées) : la pastille disparaît, le choix se voit en couleur système */
@media (forced-colors: active) {
  .bascule { border: 1px solid CanvasText; }
  .bascule-pill { display: none; }
  .bascule-b:has(:checked) { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .nav-menu-ic::before, .nav-menu-ic::after { forced-color-adjust: none; background: CanvasText; }
}

/* Fenêtre Cal.com en thème clair : sans ça, elle hérite du color-scheme sombre de la page */
cal-modal-box { color-scheme: light; }

/* Pied : la page en cours est marquée (souligné rouge, pas seulement une couleur) */
.foot-r nav a[aria-current="page"], .foot-legal a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--alarme); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Publication du 2 novembre : preuves près de l'entrée, parcours court et agenda dans son ticket. */
.hero { --hw: clamp(92px, 24vw, 230px); }
.hero-grid { align-items: center; }
.hero-scroll { display: none; }
.projets, .metiers, .canaux, .offre, .methode, .faq { padding-block: clamp(56px, 6vw, 88px); }
.projets .sec-h { font-size: clamp(42px, 6.6vw, 88px); }
.proj-plus { margin-top: 32px; }
.proj-cadre { border-width: 4px; box-shadow: none; }
.proj-name { font-size: clamp(32px, 3vw, 44px); }
.proj-grid { gap: 28px; }
.offre-regle { max-width: 65ch; }
.ticket.noir .tk-eco { color: var(--alarme); }
.offre-cadre { margin: 40px 0 0; max-width: 70ch; font-size: var(--t-m); }
.offre-opt { margin-top: 16px; }
.methode .sec-h { margin-bottom: 36px; }
.steps { gap: 28px; }
.step-n { font-size: 40px; }
.faq-l { max-width: none; }
.booking { position: relative; padding-block: clamp(60px, 7vw, 100px); }
.anchor-alias { position: absolute; top: 0; }
.booking-intro { display: grid; gap: 24px 56px; margin-bottom: 40px; }
.booking h2 { max-width: 15ch; font-size: clamp(46px, 6.8vw, 88px); outline: none; }
.booking h2:focus-visible { outline: 2px solid var(--nuit); outline-offset: 8px; }
.booking-intro p { margin: 0; font-size: var(--t-l); max-width: 46ch; }
.booking-intro .booking-format { margin-top: 16px; font-size: var(--t-s); font-weight: 700; }
.booking-paper { --zz: 14px; position: relative; color-scheme: light; background: #fff; color: var(--encre); padding: 28px 28px 40px; }
.booking-entete { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; border-bottom: 1px dashed #bbb6ac; font-size: .75rem; color: var(--encre); }
.booking-activation { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 36px; }
.booking-activation h3 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 52px); line-height: .95; }
.booking-activation p { margin: 0; max-width: 50ch; }
.booking-activation .btn { flex: 0 0 auto; }
.booking-status { margin: 18px 0 0; font-size: 1rem; }
.booking-status:empty { display: none; }
.booking-choix { margin: 24px 0 0; font-weight: 700; }
.booking-change { margin-top: 24px; padding: 20px; border: 2px solid var(--encre); border-radius: 4px; }
.booking-change p { margin: 0 0 18px; max-width: 60ch; font-size: 1rem; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.booking-actions .btn { font-size: 1rem; white-space: normal; text-align: center; }
.booking-actions .btn:focus-visible { outline-color: var(--encre); }
.btn-encre { border: 2px solid currentColor; color: var(--encre); background: transparent; }
.cal-canvas { width: 100%; overflow: visible; }
.cal-canvas:empty { display: none; }
.is-loading .cal-canvas { display: block; min-height: 550px; }
.cal-canvas iframe { display: block; width: 100%; border: 0; }
.booking-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed #bbb6ac; font-size: .875rem; color: #514d47; }
.booking-pied p { margin: 0; }
.booking-pied a { color: var(--encre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.booking-pied > a { display: inline-flex; align-items: center; min-height: 44px; }
.booking .booking-pied a:focus-visible { outline-color: var(--rouge-p); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-intro { grid-template-columns: 1.1fr 1fr; align-items: end; }
}
@media (min-width: 640px) and (max-width: 1135px) {
  .proj-grid > li:last-child:nth-child(odd) .proj { grid-column: 1 / -1; max-width: 600px; justify-self: center; width: 100%; }
}
@media (max-width: 700px) {
  .booking-paper { padding: 20px 14px 32px; margin-inline: -6px; }
  .booking-activation { flex-direction: column; align-items: stretch; padding-block: 28px; }
  .booking-activation .btn { width: 100%; }
  .booking-entete { font-size: .6875rem; }
  .booking-pied { flex-direction: column; gap: 4px; }
  .booking-intro { margin-bottom: 28px; }
}
@media (max-width: 639px) {
  .hero .caisse { display: none; }
  .hero { padding-bottom: 40px; }
  .metiers-grid { gap: 0; }
  .metier { padding: 20px 0; background: none; border: 0; border-bottom: 1px solid var(--trait); }
  .metier .mono { display: none; }
  .metier-nom { font-size: 34px; }
  .metier-go { font-size: .875rem; }
}

/* ---- Lot D2 : mouvement, finitions ---- */
/* Le soulèvement au survol : translate se compose avec le transform de GSAP (entrées, inclinaison), sans conflit */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .ticket, .rec-w { transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
  .metier { transition: translate .35s cubic-bezier(.2, .8, .2, 1), scale .25s cubic-bezier(.2, .8, .2, 1), border-color .2s; }
  .proj-cadre { transition: translate .35s cubic-bezier(.2, .8, .2, 1), scale .25s cubic-bezier(.2, .8, .2, 1); }
  /* !important : GSAP pose translate: none en style en ligne sur ce qu'il transforme */
  .ticket:hover, .rec-w:hover, .metier:hover, .proj-cadre:hover { translate: 0 -6px !important; }
}
/* Les écrans « Simulation » attendent d'être dans la vue (v6.js) ; coupés, chacun reste sur son état complet */
.sims-gerees .card .ui *, .sims-gerees .card .ui *::before, .sims-gerees .card .ui *::after { animation-play-state: paused; }
.sims-gerees .card .ui.is-live *, .sims-gerees .card .ui.is-live *::before, .sims-gerees .card .ui.is-live *::after { animation-play-state: running; }
.anim-off .card .ui *, .anim-off .card .ui *::before, .anim-off .card .ui *::after { animation: none !important; }
.anim-off .tap { display: none; }
@media (prefers-reduced-motion: reduce) { .tap { display: none; } }
.anim-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; padding: 8px 14px; background: transparent; border: 2px solid currentColor; border-radius: 4px; color: var(--encre); font-family: var(--f-t); font-weight: 700; font-size: .875rem; line-height: 1.2; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s; }
.anim-toggle:active { transform: scale(.97); transition-duration: 0s; }
.anim-ic { flex: none; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.anim-off .anim-ic { width: 0; height: 0; border-block: 6px solid transparent; border-inline: 10px solid currentColor; border-inline-end: 0; }
@media (hover: hover) { .anim-toggle:hover { background: var(--encre); color: var(--creme); } }
@media (prefers-reduced-motion: reduce) { .anim-toggle:active { transform: none; filter: brightness(.86); transition-duration: 0s !important; } }
/* D'une page à l'autre : la barre ne bouge pas, l'ancienne page s'efface, la nouvelle s'imprime. Rien n'empêche de cliquer pendant. */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
::view-transition { pointer-events: none; }
::view-transition-old(root) { animation: 160ms cubic-bezier(.4, 0, 1, 1) both papier-sort; }
::view-transition-new(root) { animation: 340ms steps(12) both papier-imprime; }
@keyframes papier-sort { to { transform: translateY(-3%); opacity: 0; } }
@keyframes papier-imprime { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* En arrivant d'une autre page du site, le texte du héros entre plus vite (mouvement.py) */
@media (prefers-reduced-motion: no-preference) {
  .arrivee-interne [data-hi]:not(.hero-sub) { animation-duration: .3s; animation-delay: 0s; }
}

/* ---- Correction de la reprise (4 novembre) ---- */
/* Trois canaux : 1 colonne, puis 2 avec la carte 03 sur toute la largeur (texte à gauche, écran à droite), puis 3 */
.ig, .ig-cap { width: min(100%, 300px); margin-inline: auto; }
@media (min-width: 748px) and (max-width: 1136.98px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-w:last-child { grid-column: 1 / -1; grid-row: auto; display: block; }
  .card-w:last-child .card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 28px; }
  .card-w:last-child .c-head, .card-w:last-child h3, .card-w:last-child .card > p { grid-column: 1; }
  .card-w:last-child .ui { grid-column: 2; grid-row: 1 / span 3; }
}
@media (min-width: 1137px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Écran d'ordinateur peu haut : le texte se resserre, le bouton et le prix restent dans le premier écran */
@media (min-width: 980px) and (max-height: 800px) {
  .hero-h1 { margin-top: 16px; }
  .hero-sub, .hero-cta { margin-top: 16px; }
}
/* Pied : le bord droit de la colonne rejoint celui de la grille, sur la rangée du logo ou en dessous */
.foot-r { flex-grow: 1; }
/* Bouton de pause : un réglage, pas une action. À côté de l'intro dès qu'il y a la place, sinon flottant dans la section */
.anim-toggle { border-color: transparent; color: var(--pale); font-weight: 500; padding-inline: 10px; }
.canaux .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.canaux .sec-h, .canaux .cards { grid-column: 1 / -1; }
.canaux-intro { grid-column: 1; }
.anim-toggle { grid-column: 2; align-self: end; margin: 0 -10px -6px 0; }
/* Téléphone et petite tablette : icône seule (le nom reste lu), collée sous la barre tant qu'on est dans les canaux */
@media (max-width: 747px) {
  .anim-toggle { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 8; grid-column: 1 / -1; justify-self: end; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 8px 0 -36px; border-radius: 999px; background: var(--creme); color: var(--encre); box-shadow: 0 2px 8px rgba(28, 27, 25, .22); }
  .anim-toggle [data-anim-lib] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Le bouton collé passe sur le coin haut des cartes : le « Bip », décoratif, lui laisse la place, et le texte s'arrête avant lui. */
  .c-head .ok { display: none; }
  .c-head { padding-right: 28px; }
}
@media (hover: hover) { .anim-toggle:hover { border-color: var(--encre); } }
/* Bloc de réservation : les deux textes du pied sur la même ligne (en colonne sur téléphone) */
@media (min-width: 701px) { .booking-pied { align-items: center; } }
/* Échelle courte : un titre de section (l'offre reste plus grande), deux tailles de titres de cartes, trois tailles de mono */
@media (min-width: 390px) { .sec-h, .projets .sec-h, .booking h2 { font-size: clamp(44px, 6.6vw, 88px); } }
@media (min-width: 980px) {
  .ticket h3, .metier-nom { font-size: clamp(27px, 2.7vw, 41px); }
  .card h3, .proj-name, .step h3, .booking-activation h3 { font-size: clamp(32px, 3vw, 44px); }
  .tk-head, .tk-des, .tk-mois, .tk-merci, .tk-eco, .rec, .tk-suite, .tk-suite small { font-size: .78125rem; }
}
.fente, .ui-sim, .booking-entete { font-size: .71875rem; }
/* Le repli des projets : le libellé suit l'état, et on peut le refermer depuis le bas */
.pp-ouvert, .proj-plus[open] .pp-ferme { display: none; }
.proj-plus[open] .pp-ouvert { display: inline; }
.proj-refermer { display: flex; width: fit-content; margin: 36px auto 0; }
/* La bascule reste collée tant qu'on lit les tickets : elle a besoin d'un parent aussi long qu'eux */
@media (max-width: 979px) {
  .offre-choix { display: contents; }
  .offre a { scroll-margin-top: 160px; }
}
@media (max-width: 560px) { .bascule-b { padding: 8px 18px; } }
/* Rouvrir la page dans les tickets : pas de point d'ancrage sur un élément que GSAP a décalé de 180 px, la position revient au pixel */
.tickets { overflow-anchor: none; }
/* Téléphone : tout texte qu'on lit fait 13 px au moins */
@media (max-width: 599px) {
  .hero-eyebrow, .proj-meta, .tk-head, .tk-des, .tk-merci, .booking-entete, .c-head { font-size: .8125rem; letter-spacing: .04em; }
}
/* 320 px : l'agenda prend toute la largeur du ticket */
@media (max-width: 359px) {
  .cal-canvas { width: calc(100% + 28px); margin-inline: -14px; }
  .nav .btn { padding-inline: 6px; }
}
