/* =====================================================================
   v8 · « L'objet annoté » (direction C, retenue le 25/11/2026)
   Feuille commune des pages refaites en v8 : tout est sous body[data-v8],
   pour que les autres pages (v7) restent intactes. Chargée par la coque
   (outils/pages.json) à la place de compositions.css.
   Le langage : fond blanc et un fond studio clair, filets d'un pixel,
   trois tailles de texte, l'orange pour les chiffres et l'appel, l'encre
   pour le bloc d'appel et le pied. Un seul geste par page : l'objet annoté.
   Mode d'emploi : outils/v8-mode-emploi.md
   ===================================================================== */

body[data-v8] {
  /* les trois tailles (il n'y en a pas d'autre sur un écran) */
  --t-1: clamp(44px, calc(3.4vw + 8px), 72px);   /* titres H1, H2, numéro d'appel */
  --t-2: clamp(34px, calc(1.6vw + 18px), 48px);  /* chiffres, phrases fortes */
  --t-3: clamp(18px, calc(.2vw + 16px), 20px);   /* tout le reste */

  --studio: #F2F3F3;
  --v8-filet: #D5D8D8;
  --v8-gris: #45484A;              /* discret : 9,2:1 sur blanc, 8,3:1 sur le studio */
  --texte: #3A3C40;                /* le corps de texte : 11:1 sur blanc, 9,9:1 sur le studio (lecteurs âgés) */
  --v8-largeur: 1760px;
  --marge: clamp(16px, 4.2vw, 80px);
  --gouttiere: clamp(16px, 1.7vw, 32px);

  /* L'objet annoté. --objet-k : écart entre le centre de l'image et un axe d'étiquettes,
     en fraction de la largeur visible (réglé par la page, selon son rendu). */
  --objet-k: .225;
  --objet-ratio: 3.893;            /* largeur / hauteur visibles de la scène (2040 / 524) */
  --objet-dessus: 660px;           /* en-tête + titre + bandes d'étiquettes : ce qui doit tenir avec l'objet */
  --objet-w: min(1400px, calc(100vw - 2 * var(--marge) - 16px), max(560px, calc((100svh - var(--objet-dessus)) * var(--objet-ratio))));
  --axe: calc(var(--objet-w) * var(--objet-k));
  --bande-haut: 136px;
  --jeu: 40px;                     /* du bas de l'objet au haut des étiquettes du bas */
  --bande-bas: 176px;
  /* l'axe libre, pour une page dont l'objet n'est pas la paire de face : 18 % de la largeur utile (≈ 317 px à 1920) */
  --axe-libre: calc(min(var(--v8-largeur), 100vw - 2 * var(--marge)) * .18);
  /* le filet gradué (un trait, une graduation tous les 12 px) : vertical à 7 px, vertical à 9 px, horizontal à 9 px */
  --v8-gradue-v: linear-gradient(var(--v8-gris), var(--v8-gris)) 0 0 / 1px 100% no-repeat,
                 repeating-linear-gradient(to bottom, var(--v8-filet) 0 1px, transparent 1px 12px) 0 0 / 7px 100% no-repeat;
  --v8-gradue-v9: linear-gradient(var(--v8-gris), var(--v8-gris)) 0 0 / 1px 100% no-repeat,
                 repeating-linear-gradient(to bottom, var(--v8-filet) 0 1px, transparent 1px 12px) 0 0 / 9px 100% no-repeat;
  --v8-gradue-h: linear-gradient(var(--v8-gris), var(--v8-gris)) 0 0 / 100% 1px no-repeat,
                 repeating-linear-gradient(to right, var(--v8-filet) 0 1px, transparent 1px 12px) 0 0 / 100% 9px no-repeat;

  background: var(--blanc);
  color: var(--texte);
  font-size: var(--t-3);
  line-height: 1.6;
}
body[data-v8] :is(h1, h2) { font: 700 var(--t-1)/.95 var(--f-titre); letter-spacing: -.012em; color: var(--encre); text-wrap: balance; }
body[data-v8] .titre-suite { display: inline; color: inherit; font-weight: inherit; }
body[data-v8] p { max-width: 34em; }
body[data-v8] main :is(p, li) { font-size: var(--t-3); }
/* le corps de texte un peu plus nourri (500) que le 400 de Maven Pro, pour la lecture */
:where(body[data-v8] main) :where(p, li, dd, td) { font-weight: 500; }

/* ---------- En-tête : blanc, un filet ---------- */
body[data-v8] .tete { background: rgb(255 255 255 / .97); border-bottom-color: var(--v8-filet); }

/* ---------- Cadre et deux colonnes (la droite commence sur l'axe droit de l'objet) ---------- */
.v8-cadre { width: 100%; max-width: calc(var(--v8-largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.v8-deux {
  display: grid; column-gap: var(--gouttiere);
  grid-template-columns: minmax(0, calc(50% + var(--axe) - var(--gouttiere))) minmax(0, 1fr);
}
.v8-deux > * { min-width: 0; }

/* ---------- Fil d'Ariane : sur le studio, à la taille du texte ---------- */
body[data-v8] .fil { background: var(--studio); padding: 22px 0 0; font-size: var(--t-3); }
body[data-v8] .fil ol { width: 100%; max-width: calc(var(--v8-largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); gap: 0 10px; }
body[data-v8] .fil li + li::before { color: var(--v8-filet); margin-right: 10px; }
body[data-v8] .fil a { color: var(--v8-gris); text-decoration: none; }
body[data-v8] .fil a:hover { text-decoration: underline; }
body[data-v8] .fil [aria-current="page"] { font-weight: 500; }

/* ---------- Boutons : même forme partout, l'orange pour appeler ---------- */
body[data-v8] .bouton { min-height: 56px; padding: 0 24px; font-size: var(--t-3); font-weight: 700; border-radius: 4px; }
body[data-v8] .bouton--appel { color: var(--encre); }
body[data-v8] .bouton--clair { border: 1px solid var(--encre); }

/* ---------- L'ouverture : le titre, l'appel, puis l'objet annoté ---------- */
.v8-ouverture { background: var(--studio); padding-top: clamp(16px, 1.6vw, 28px); padding-bottom: clamp(40px, 4vw, 72px); overflow: clip; }
.v8-ouverture__ligne { align-items: center; margin-top: clamp(20px, 1.8vw, 32px); }
.v8-ouverture__ordonnance { margin: 0; color: var(--v8-gris); }
.v8-ouverture .boutons { gap: 12px; }

.v8-objet { position: relative; margin: clamp(16px, 2.4vw, 44px) auto 0; padding-top: var(--bande-haut); padding-bottom: var(--bande-bas); }
.v8-objet__scene {
  --vl: calc(var(--droite) - var(--gauche));
  --vh: calc(var(--bas) - var(--haut));
  position: relative; z-index: 1;
  width: var(--objet-w); margin-inline: auto;
  aspect-ratio: calc(var(--vl) / var(--vh));
}
.v8-objet__scene > img {
  position: absolute; max-width: none; height: auto; pointer-events: none;
  width: calc(var(--img-l) / var(--vl) * 100%);
  left: calc(var(--gauche) / var(--vl) * -100%);
  top: calc(var(--haut) / var(--vh) * -100%);
}
.v8-objet__ombre { z-index: 0; opacity: .9;
  -webkit-mask-image: linear-gradient(to right, transparent 2%, #000 12%, #000 88%, transparent 98%);
          mask-image: linear-gradient(to right, transparent 2%, #000 12%, #000 88%, transparent 98%); }
.v8-objet__image { z-index: 1; }
.v8-objet__reflet { z-index: 2; }
.v8-objet__point {
  position: absolute; z-index: 3; /* un point par bord de pièce : un trait ne traverse jamais un verre */
  left: calc((var(--ax) - var(--gauche)) / var(--vl) * 100%);
  top: calc((var(--ay) - var(--haut)) / var(--vh) * 100%);
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: var(--encre); box-shadow: 0 0 0 2px var(--blanc);
  font-size: 0; color: transparent;
}
/* les étiquettes : même boîte que la scène, sous elle (un trait passe derrière la monture, jamais dessus) */
.v8-objet__notes {
  --vl: calc(var(--droite) - var(--gauche));
  --vh: calc(var(--bas) - var(--haut));
  position: absolute; z-index: 0; top: var(--bande-haut); left: 50%; translate: -50% 0;
  width: var(--objet-w); aspect-ratio: calc(var(--vl) / var(--vh));
  margin: 0; padding: 0; list-style: none;
}
.v8-note {
  --x: calc((var(--ax) - var(--gauche)) / var(--vl) * 100%);
  --y: calc((var(--ay) - var(--haut)) / var(--vh) * 100%);
  position: absolute; left: var(--x);
  width: min(30rem, calc(2 * var(--axe) - 2 * var(--gouttiere)), calc(100vw - 50vw - var(--axe) - var(--marge)));
}
.v8-note--d { width: min(30rem, calc(50vw - var(--axe) - var(--marge))); } /* à droite, l'étiquette va jusqu'à la marge */
.v8-note--haut { top: calc(-1 * var(--bande-haut)); height: calc(var(--bande-haut) + var(--y)); display: flex; flex-direction: column; }
.v8-note--haut .v8-note__trait { flex: 1; margin-top: 8px; transform-origin: 50% 100%; }
.v8-note--bas { top: var(--y); height: calc(100% - var(--y) + var(--jeu)); }
.v8-note--bas .v8-note__trait { position: absolute; inset: 0 auto 0 0; transform-origin: 50% 0; }
.v8-note--bas .v8-note__texte { position: absolute; left: 0; top: calc(100% + 8px); width: 100%; }
.v8-note--apart { top: 100%; height: var(--jeu); }
.v8-note__trait { display: block; width: 1px; background: var(--encre); }
.v8-note__texte { display: block; text-decoration: none; color: var(--encre); line-height: 1.45; }
.v8-note__mesure { display: block; margin-bottom: 6px; font: 800 var(--t-2)/.9 var(--f-titre); color: var(--orange); font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.v8-note__nom, .v8-note__non { display: block; text-wrap: balance; }
.v8-note__non { color: var(--v8-gris); }
a.v8-note__texte:hover .v8-note__nom { text-decoration: underline; text-underline-offset: 4px; }

/* un objet annoté qui est une photo : la photo (premier calque, sous les traits), puis la monture seule
   détourée (.v8-objet__dessus, même cadrage) par-dessus les traits : un trait passe derrière la monture */
.v8-objet:has(> .v8-objet__dessus) > .v8-objet__scene:first-child { z-index: 0; overflow: hidden; }
.v8-objet:has(> .v8-objet__dessus) .v8-objet__notes { z-index: 1; }
.v8-objet__dessus.v8-objet__scene { position: absolute; z-index: 2; top: var(--bande-haut); left: 50%; translate: -50% 0; pointer-events: none; }

/* le geste : l'objet arrive (400 ms), les traits partent de ses pièces, puis les étiquettes se posent — une fois */
.js [data-objet] .v8-objet__scene > img { opacity: 0; translate: 0 12px; transition: opacity .4s ease-out, translate .4s ease-out; }
.js [data-objet] .v8-objet__point { opacity: 0; transition: opacity .2s ease-out .3s; }
.js [data-objet] .v8-note__trait { scale: 1 0; transition: scale .4s cubic-bezier(.3,.7,.2,1) .35s; }
.js [data-objet] .v8-note__texte { opacity: 0; translate: 0 6px; transition: opacity .3s ease-out .65s, translate .3s ease-out .65s; }
.js [data-objet] .v8-note--apart .v8-note__texte { transition-delay: .8s; }
.js [data-objet].est-la .v8-objet__scene > img,
.js [data-objet].est-la .v8-objet__point,
.js [data-objet].est-la .v8-note__texte { opacity: 1; translate: none; }
.js [data-objet].est-la .v8-objet__ombre { opacity: .9; }
.js [data-objet].est-la .v8-note__trait { scale: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-objet] :is(.v8-objet__scene > img, .v8-objet__point, .v8-note__trait, .v8-note__texte) { opacity: 1; translate: none; scale: none; transition: none; }
  .js [data-objet] .v8-objet__ombre { opacity: .9; }
}

/* ---------- Les sections : un filet d'encre, deux colonnes sur l'axe ---------- */
.v8-section { padding-block: clamp(64px, 6.4vw, 120px) 0; }
.v8-section > .v8-cadre:first-child { position: relative; padding-top: clamp(28px, 2.6vw, 48px); }
.v8-section > .v8-cadre:first-child::before { content: ""; position: absolute; top: 0; left: var(--marge); right: var(--marge); height: 1px; background: var(--encre); }
.v8-section--studio { background: var(--studio); margin-top: clamp(64px, 6.4vw, 120px); padding-block: clamp(48px, 4vw, 80px); }
.v8-section--studio > .v8-cadre:first-child::before { display: none; }
.v8-section--studio > .v8-cadre:first-child { padding-top: 0; }
.v8-colonne > h2 { margin-bottom: clamp(20px, 1.8vw, 32px); }
.v8-colonne > p:last-child { margin-bottom: 0; }

.v8-photo { margin: 0; overflow: hidden; background: var(--studio); }
.v8-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.v8-photo--couleur img { filter: none; }


/* ---------- Chaque partie : sa cover bord à bord, puis une feuille qui la chevauche ----------
   La cover (figure.v8-bande) va d'un bord à l'autre de l'écran, à 65 % de sa hauteur environ,
   recadrée en cover. Densité 1 : jamais au-delà de 1,3 fois la définition (--cover-l × --cover-h =
   taille réelle du plus grand fichier) ; sur Retina, srcset sert la plus grande version.
   --px, --py : le point de recadrage (object-position) ; un repère (--rx, --ry en fraction de l'image)
   suit le recadrage, quelle que soit la largeur. */
.v8-partie { position: relative; margin-top: clamp(88px, 7vw, 136px); }
.v8-bande {
  --h: var(--bande-h, clamp(360px, 65svh, calc(var(--cover-h) * 1.3px)));  /* --bande-h : une hauteur propre à la page */
  --dw: max(100%, calc(var(--h) * var(--cover-l) / var(--cover-h)));   /* largeur de l'image affichée */
  --dh: max(var(--h), calc(100vw * var(--cover-h) / var(--cover-l)));  /* hauteur de l'image affichée */
  position: relative; margin: 0; width: 100%; height: var(--h); background: var(--studio);
}
.v8-bande > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: calc(var(--px) * 100%) calc(var(--py) * 100%); }
.v8-bande:has(.v8-repere__legende) { margin-bottom: 0; }
.v8-partie__corps { position: relative; z-index: 1; }
.v8-partie__tete { align-items: end; margin-bottom: clamp(32px, 3vw, 56px); }
.v8-partie__tete > p { margin: 0; }

/* la feuille : blanche, posée sur la cover, son texte aligné sur l'axe, jusqu'au bord droit */
.v8-feuille {
  --pad: clamp(32px, 3vw, 56px);
  grid-column: 2; align-self: start; position: relative;
  margin: calc(-1 * clamp(120px, 11vw, 210px)) calc(-1 * var(--marge)) 0 calc(-1 * var(--pad));
  padding: var(--pad) var(--marge) 8px var(--pad);
  background: var(--blanc);
}
/* la feuille à gauche, quand le sujet de la cover est à droite : même largeur que la colonne de droite, texte sur la marge */
.v8-partie__corps--gauche .v8-feuille { grid-column: 1; justify-self: start; width: calc(100% - 2 * var(--axe) + var(--pad) + var(--marge));
  max-width: calc(100% + var(--marge)); margin-left: calc(-1 * var(--marge)); margin-right: 0; padding-left: var(--marge); padding-right: var(--pad); }
.v8-feuille > h2 { margin-bottom: clamp(20px, 1.8vw, 32px); }
.v8-feuille > p:last-child { margin-bottom: 0; }
.v8-infos__suite { grid-column: 1; grid-row: 1; padding-top: clamp(40px, 3.4vw, 64px); max-width: 34em; }

/* le repère : un point sur la photo, un trait fin qui en sort par le bas, les mots du texte dessous */
.v8-repere { position: absolute; z-index: 1; width: 1px; bottom: -14px; background: var(--encre);
  left: calc((100% - var(--dw)) * var(--px) + var(--dw) * var(--rx));
  top: calc((var(--h) - var(--dh)) * var(--py) + var(--dh) * var(--ry)); }
.v8-repere::before { content: ""; position: absolute; left: -5px; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--encre), 0 0 0 2px rgb(255 255 255 / .6); }
.v8-repere__legende { position: absolute; top: calc(100% + 18px); color: var(--encre); font-size: var(--t-3); line-height: 1.35;
  left: calc((100% - var(--dw)) * var(--px) + var(--dw) * var(--rx)); max-width: 24em; }
.js .v8-repere { scale: 1 0; transform-origin: 50% 0; transition: scale .4s cubic-bezier(.3,.7,.2,1); }
.js .v8-repere__legende { opacity: 0; transition: opacity .3s ease-out .3s; }
.js .est-la .v8-repere { scale: none; }
.js .est-la .v8-repere__legende { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .v8-repere, .js .v8-repere__legende { scale: none; opacity: 1; transition: none; } }
/* la légende sur l'axe (le trait tombe dans la colonne de droite), ou à gauche du trait (le point est à droite : le texte finit sur le trait) */
.v8-repere__legende--axe { left: calc(50% + var(--axe)); max-width: min(24em, calc(50% - var(--axe) - var(--marge))); }
.v8-repere__legende--gauche { translate: -100% 0; margin-left: -1px; text-align: right; white-space: nowrap; }

/* la liste en règle : un filet gradué, les numéros posés comme des repères de mesure */
.v8-liste.v8-liste--regle { position: relative; padding-left: 30px; }
.v8-liste--regle::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--v8-gradue-v); }
.v8-liste.v8-liste--regle li { position: relative; grid-template-columns: 2.6em minmax(0, 1fr); padding-block: 18px 20px; }
.v8-liste.v8-liste--regle li:first-child { border-top: 0; padding-top: 0; }
.v8-liste.v8-liste--regle li:last-child { padding-bottom: 0; }
.v8-liste--regle .v8-rang::before { content: ""; position: absolute; left: -30px; top: calc(var(--decal, 18px) + .72em); width: 18px; height: 2px; background: var(--orange); }

.v8-liste--regle li:first-child .v8-rang::before { --decal: 0px; }
/* une table dans la colonne droite : le chiffre à gauche, la règle et la phrase à droite */
.v8-table.v8-table--colonne { display: block; margin: clamp(24px, 2vw, 36px) 0 0; padding: 0; }
.v8-table--colonne li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); column-gap: 20px; padding: 16px 0 18px; border-top: 1px solid var(--v8-filet); }
.v8-table--colonne li:first-child { border-top-color: var(--encre); }
.v8-table--colonne .v8-table__mesure { grid-row: 1 / span 3; margin: 0; }
.v8-table--colonne .v8-regle--table { margin: 8px 0 2px; }
/* La règle : graduée (une graduation par dixième), une tranche en orange de --de à --a sur une échelle de 0 à --max,
   ses bornes dessous (--b). Fixe, sans curseur. Réglages : --r-y (haut des graduations), --r-b (haut des bornes).
   Emplois : la validité de l'ordonnance (garanties, --max 100), les jours de livraison (en entreprise), la durée de lecture (blog). */
.v8-regle { --max: 100; --r-y: 10px; --r-b: 26px; position: relative; display: block; height: 52px; }
.v8-regle--table { margin: 14px 0 6px; }
.v8-regle::before { content: ""; position: absolute; left: 0; right: 0; top: var(--r-y); height: 9px;
  border-bottom: 1px solid var(--v8-gris); border-right: 1px solid var(--v8-gris);
  background: linear-gradient(to right, var(--v8-gris) 1px, transparent 1px) 0 0 / 10% 100% repeat-x; }
.v8-regle::after { content: ""; position: absolute; top: calc(var(--r-y) + 7px); height: 3px; background: var(--orange);
  left: calc(var(--de) / var(--max) * 100%); width: calc((var(--a) - var(--de)) / var(--max) * 100%); }
.v8-regle__borne { position: absolute; top: var(--r-b); left: calc(var(--b) / var(--max) * 100%); translate: -50% 0; font-size: var(--t-3); line-height: 1; color: var(--v8-gris); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v8-regle__borne--debut { translate: 0 0; }
.v8-regle__borne--fin { translate: -100% 0; text-align: right; }

/* la conclusion : la phrase posée sur la zone calme du bord d'acétate, bord à bord */
.v8-conclusion { position: relative; overflow: hidden; background: var(--studio); margin-top: clamp(88px, 7vw, 136px);
  height: clamp(360px, 60svh, 1150px); display: flex; align-items: center; }
.v8-conclusion__matiere { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 80% 50%; }
.v8-conclusion::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, var(--studio) 0, rgb(242 243 243 / .9) 30%, rgb(242 243 243 / 0) 62%); }
.v8-conclusion .v8-cadre { position: relative; z-index: 2; }
body[data-v8] main .v8-conclusion .v8-phrase { max-width: 15em; }
.v8-bande.v8-photo { overflow: visible; }

/* Les autres pages : une ligne par page, sa vignette (l'image de tête de la page visée, visuels/communs/vignette-*-320.webp), filet, flèche */
.v8-pages__titre { margin: 0 0 8px; color: var(--v8-gris); }
.v8-pages__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gouttiere); }
.v8-pages__liste li { border-bottom: 1px solid var(--v8-filet); }
.v8-pages__liste a {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 16px 0;
  font: 700 var(--t-2)/1.05 var(--f-titre); color: var(--encre); text-decoration: none;
}
.v8-pages__liste img { width: 160px; height: 96px; object-fit: cover; }
.v8-pages__liste a::after { content: "→"; font-family: var(--f-texte); font-weight: 400; font-size: var(--t-3); transition: translate .2s; }
@media (hover: hover) {
  .v8-pages__liste a:hover::after { translate: 6px 0; }
  .v8-pages__liste a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
}

/* liste numérotée (chiffres en orange, alignés, filets) */
.v8-liste { list-style: none; margin: 0; padding: 0; }
.v8-liste li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: baseline; padding-block: 20px 22px; border-top: 1px solid var(--v8-filet); }
.v8-liste p { margin: 0; }
.v8-rang { font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.v8-liste--deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gouttiere); }

/* table de chiffres (emprunt à la direction A) : nom, chiffre en orange, phrase */
.v8-table { list-style: none; margin: clamp(32px, 3vw, 56px) auto 0; display: grid; column-gap: var(--gouttiere);
  grid-template-columns: repeat(2, minmax(0, calc((50% + var(--axe) - 2 * var(--gouttiere)) / 2))) minmax(0, 1fr); }
.v8-table li { border-top: 1px solid var(--encre); padding-top: 18px; display: grid; grid-template-rows: auto auto 1fr; }
.v8-table__nom { color: var(--v8-gris); }
.v8-table__mesure { font: 800 var(--t-2)/1 var(--f-titre); color: var(--orange); font-variant-numeric: tabular-nums; margin: 6px 0 14px; }
.v8-table p { margin: 0; }

/* une phrase forte (une conclusion), à la taille des chiffres */
body[data-v8] main .v8-phrase { position: relative; font: 700 var(--t-2)/1.1 var(--f-titre); color: var(--encre); max-width: 24em; margin: 0; letter-spacing: -.005em; }

/* ---------- Le bloc d'appel (encre, langage de la direction A) ---------- */
.v8-appel { background: var(--encre); color: var(--sur-encre); padding-bottom: clamp(48px, 4vw, 80px); }
.v8-feuille--encre { background: var(--encre); padding-bottom: 0; }
.v8-appel__gauche { grid-column: 1; grid-row: 1; padding-top: clamp(40px, 3.4vw, 64px); }
.v8-appel__gauche .code-scan { max-width: 34em; }
body[data-v8] .v8-appel h2 { color: var(--blanc); }
body[data-v8] .v8-appel h2 .titre-suite { display: block; margin-top: 14px; font: 400 var(--t-3)/1.5 var(--f-texte); letter-spacing: 0; color: var(--sur-encre); }
/* le numéro une seule fois par écran : le pied ne le répète pas sous un bloc d'appel */
body[data-v8]:has(.v8-appel) .pied__numero { display: none; }
.v8-appel__horaires { margin: 0; }
.v8-appel .v8-colonne { align-self: center; }
.v8-appel h2 { margin-bottom: clamp(24px, 2vw, 36px); }
.v8-appel__numero { display: block; font: 800 var(--t-1)/1 var(--f-titre); color: var(--orange); text-decoration: none; font-variant-numeric: tabular-nums; margin-bottom: 24px; width: fit-content; }
.v8-appel__numero:hover { text-decoration: underline; text-decoration-thickness: 2px; }
body[data-v8] .v8-appel .bouton--clair { background: transparent; color: var(--blanc); border-color: #6A6B70; }
body[data-v8] .v8-appel .bouton--clair:hover { background: var(--blanc); color: var(--encre); }
.v8-appel .copie-etat { color: var(--blanc); font-size: var(--t-3); margin: 8px 0 0; }
.v8-appel .code-scan { border-top-color: #34353a; margin-top: 24px; }
.v8-appel .code-scan p { font-size: var(--t-3); color: var(--sur-encre); }

/* ---------- Le pied (encre) : un filet, le numéro en orange, Appeler et SMS ---------- */
body[data-v8] .pied { padding: clamp(24px, 2vw, 40px) 0 32px; }
body[data-v8] .v8-appel + * , body[data-v8] main:has(.v8-appel:last-child) + .pied { margin-top: 0; }
body[data-v8] .pied > * { max-width: calc(var(--v8-largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
body[data-v8] .pied__haut { display: block; position: relative; padding-top: clamp(28px, 2.6vw, 44px); }
body[data-v8] .pied__haut::before { content: ""; position: absolute; top: 0; left: var(--marge); right: var(--marge); height: 1px; background: #3A3B40; }
body[data-v8] .pied__b1 { display: none; }
body[data-v8] .pied h2 { font: 700 var(--t-2)/1.05 var(--f-titre); max-width: none; color: var(--blanc); }
body[data-v8] .pied__grille { margin-top: clamp(32px, 3vw, 56px); }
body[data-v8] .pied__titre { font-size: var(--t-3); color: var(--sur-encre); font-weight: 500; }
body[data-v8] :is(.pied ul a, .pied address, .pied p) { font-size: var(--t-3); }
body[data-v8] .pied__numero { font: 800 var(--t-2)/1 var(--f-titre); color: var(--blanc); font-variant-numeric: tabular-nums; }
body[data-v8] .pied__bas { border-top-color: #3A3B40; }
body[data-v8] .pied__bas, body[data-v8] .pied__bas p { font-size: var(--t-3); }

/* ---------- Bureaux étroits et tablettes ---------- */
@media (min-width: 1601px) {
  body[data-v8] { --objet-dessus: 750px; } /* l'appel est sur sa propre ligne, à droite : l'en-tête de l'ouverture est plus haut */
}
@media (max-width: 1600px) {
  body[data-v8] .bouton { padding: 0 18px; }
  .v8-ouverture .boutons { gap: 10px; }
  /* l'appel passe sous le titre, sur la marge ; la condition le suit sur la même ligne */
  .v8-ouverture__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
  .v8-ouverture__ligne .boutons { order: -1; }
}
@media (max-width: 1240px) {
  body[data-v8] { --objet-dessus: 620px; }
}

/* ---------- Téléphone et tablette : l'objet en pleine largeur, des repères numérotés, la liste dessous ---------- */
@media (max-width: 1000px) {
  body[data-v8] { --objet-w: 100%; --axe: 0px; }
  .v8-deux { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .v8-ouverture__ligne { row-gap: 20px; }
  .v8-ouverture__ordonnance { order: 2; }
  .v8-objet { padding: 28px 0 0; }
  .v8-objet__scene { width: 100%; --gauche: 300; --droite: 2100; }
  .v8-objet__notes { padding-inline: var(--marge); }
  .v8-objet__point.v8-objet__point--second { display: none; }
  .v8-objet__point {
    width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center;
    font: 700 16px/1 var(--f-texte); color: var(--encre); background: var(--blanc);
    box-shadow: 0 0 0 1px var(--encre);
  }
  .v8-objet__notes { position: static; translate: none; width: auto; aspect-ratio: auto; margin-top: 28px; }
  .v8-note { position: static; width: auto; height: auto; display: block; border-top: 1px solid var(--v8-filet); padding-block: 16px 18px; }
  .v8-note__trait { display: none; }
  .v8-note--bas .v8-note__texte { position: relative; top: auto; width: auto; }
  .v8-note__texte { position: relative; padding-left: 46px; }
  .v8-note__texte[data-n]::before {
    content: attr(data-n); position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    font: 700 16px/1 var(--f-texte); color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); background: var(--blanc);
  }
  .v8-liste--deux { grid-template-columns: minmax(0, 1fr); }
  .v8-table { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .v8-photo { max-width: 100%; }
  .v8-bande { --h: var(--bande-h-tel, clamp(240px, 62vw, 520px)); }
  .v8-bande:has(.v8-repere__legende) { margin-bottom: 72px; }
  .v8-repere__legende { left: var(--marge); right: var(--marge); max-width: none; }
  .v8-repere__legende--gauche { translate: none; margin-left: 0; text-align: left; white-space: normal; }
  .v8-objet__dessus.v8-objet__scene { top: 28px; width: calc(100% - 2 * var(--marge)); }
  .v8-pages__liste { grid-template-columns: minmax(0, 1fr); }
  .v8-pages__liste a { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; }
  .v8-pages__liste img { width: 112px; height: 72px; }
  .v8-feuille, .v8-feuille--encre, .v8-partie__corps--gauche .v8-feuille { grid-column: 1; width: auto; max-width: none; margin: 0 calc(-1 * var(--marge)); padding: 28px var(--marge) 0; }
  .v8-bande:not(:has(.v8-repere__legende)) + .v8-partie__corps .v8-feuille { margin-top: -32px; }
  .v8-infos__suite, .v8-appel__gauche { grid-row: auto; order: 2; padding-top: 28px; }
  .v8-conclusion { display: block; height: auto; padding: 0 0 40px; }
  .v8-conclusion::before { display: none; }
  .v8-conclusion__matiere { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 28px; }
}
@media (max-width: 760px) {
  /* la réserve de la barre d'appel passe dans le pied (encre), plus de bande blanche dessous */
  body[data-v8] { padding-bottom: 0; }
  body[data-v8] .pied { padding-bottom: calc(32px + 66px + env(safe-area-inset-bottom)); }
  body[data-v8] .fil { padding-top: 16px; }
  body[data-v8] .bouton { flex: 1 1 100%; justify-content: center; }
  .v8-ouverture .boutons, .v8-appel .boutons { width: 100%; }
  .v8-appel__numero { font-size: clamp(44px, 12vw, 56px); }
}
