/* GeoTech XYZ, direction « Le repère XYZ » (20-direction.json v2). Page blanche, un objet en points ; les vrais travaux sur fond d'écran de dessin (05/11/2026). */

/* Fichiers officiels entiers : la licence ITF interdit de les découper ou de les convertir (_brouillon/polices.py). */
@font-face { font-family: "Clash Display"; src: url(polices/clash-display-variable.woff2) format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(polices/general-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(polices/general-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(polices/general-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
/* Faces de repli (mesurées contre Arial) : swap obligatoire, Roboto et Noto Sans pour Android */
@font-face { font-family: "Clash repli"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Roboto"), local("Noto Sans");
  font-display: swap; size-adjust: 106.5%; ascent-override: 83.6%; descent-override: 23.5%; }
@font-face { font-family: "General repli"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Roboto"), local("Noto Sans");
  font-display: swap; size-adjust: 100.4%; ascent-override: 100.6%; descent-override: 23.9%; }

:root {
  --encre: #1C2834; --axe: #0058B8; --presse: #00469A; --glacier: #EEF3F8; --ardoise: #4A5868;
  --titre: "Clash Display", "Clash repli", sans-serif;
  --texte: "General Sans", "General repli", sans-serif;
  --goutte: 24px; --marge: max(24px, calc((100vw - 1320px) / 2));
  --hs: clamp(560px, 50vw, 780px);
  --haut: 64px;
}
@media (max-height: 759px) and (min-width: 901px) { :root { --hs: 540px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--encre); font: 400 1.0625rem/1.55 var(--texte); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--axe); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--titre); }
h1 { font-weight: 500; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 5.25rem); line-height: 1.02; letter-spacing: -.015em; }
h2 { font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.08; } /* un seul format de titre de section, celui de Sous-traitance (client, 05/11/2026) */
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
h4 { font: 600 1.0625rem/1.3 var(--texte); }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--axe); outline-offset: 2px; }
[hidden] { display: none !important; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  background: var(--axe); color: #fff; border: 0; border-radius: 10px; cursor: pointer;
  font: 600 1rem/1.25 var(--texte); text-decoration: none; text-align: left; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: background-color .16s, transform .12s;
}
@media (hover: hover) and (pointer: fine) { .bouton:hover { background: var(--presse); } }
.bouton:active { background: var(--presse); transform: scale(.98); }

/* ---------- en-tête : onglets collés, le logo se réduit ---------- */
.entete {
  position: sticky; top: 0; z-index: 30; height: var(--haut); display: flex; align-items: center; gap: 16px;
  padding: 0 var(--marge); background: transparent; transition: background-color .2s, box-shadow .2s;
}
.entete.colle { background: #fff; box-shadow: 0 1px 0 rgba(28, 40, 52, .10); }
.marque { position: relative; display: block; width: 177px; height: 44px; align-self: flex-start; margin-top: 8px; }
.marque img { position: absolute; top: 0; left: 0; width: 177px; height: 112px; transform-origin: 0 0; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.entete.colle .marque img { transform: scale(.5) translateY(-4px); }
.nav-haut { position: relative; display: flex; gap: 8px; margin-left: auto; height: 100%; align-items: center; }
.nav-haut a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--encre); text-decoration: none; font: 500 1rem/1.2 var(--texte); }
.nav-haut a[aria-current] { color: var(--axe); }
@media (hover: hover) and (pointer: fine) { .nav-haut a:hover { color: var(--axe); } }
.repere { position: absolute; left: 0; width: 1px; height: 2px; background: var(--axe); transform-origin: 0 0; opacity: 0; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.nav-haut .repere { bottom: 6px; }
.langues { display: flex; }
.langues a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ardoise); text-decoration: none; font: 500 1rem/1 var(--texte); }
.langues a[aria-current] { color: var(--encre); font-weight: 600; }
.bouton-haut { min-height: 44px; white-space: nowrap; padding: 8px 16px; }

/* ---------- la tête ---------- */
.tete { position: relative; margin-top: calc(var(--haut) * -1); min-height: var(--hs); padding: 150px var(--marge) 24px; scroll-margin-top: 0; }
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene picture, .scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene img { object-fit: cover; object-position: center; max-width: none; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; opacity: 0; visibility: hidden; transition: opacity .2s; }
.scene canvas:active { cursor: grabbing; }
.gl .scene canvas { opacity: 1; visibility: visible; }
.axe { position: absolute; top: 0; left: 0; visibility: hidden; color: var(--axe); font: 600 1.125rem/1 var(--titre); paint-order: stroke; -webkit-text-stroke: 3px #fff; pointer-events: none; }
.gl .axe { visibility: visible; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #fff 41%, rgba(255, 255, 255, 0) 48%); }

.demo { position: absolute; top: 76px; right: var(--marge); z-index: 3; margin: 0; padding: 2px 8px; background: #fff; border-radius: 6px; color: var(--ardoise); font-size: .875rem; font-weight: 500; line-height: 1.4; pointer-events: none; }
.geste { position: absolute; z-index: 3; right: var(--marge); top: 104px; padding: 0 6px; background: #fff; border-radius: 6px; color: var(--ardoise); font-size: .9375rem; pointer-events: none; }

.vues-bande { position: absolute; z-index: 3; bottom: 16px; left: calc(var(--marge) + (100vw - 2 * var(--marge) + var(--goutte)) * 5 / 12); right: var(--marge); display: flex; gap: 6px; justify-content: flex-end; align-items: flex-end; }
.vues { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; min-width: 0; }
.vues button {
  position: relative; overflow: hidden; min-height: 44px; padding: 0 13px; border-radius: 999px; border: 1.5px solid rgba(28, 40, 52, .28); background: #fff; color: var(--encre);
  font: 500 1rem/1.1 var(--texte); cursor: pointer; white-space: nowrap; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: background-color .28s, color .28s, border-color .28s, transform .12s;
}
@media (hover: hover) and (pointer: fine) { .vues button:hover { border-color: var(--axe); color: var(--axe); } }
.vues button:active { transform: scale(.98); }
.vues button[aria-selected="true"] { background: var(--axe); border-color: var(--axe); color: #fff; }

.colonne { width: calc((100vw - 2 * var(--marge) + var(--goutte)) * 5 / 12 - var(--goutte)); max-width: 536px; }
.colonne > * { position: relative; z-index: 2; }
.colonne > .intro { margin-top: 12px; max-width: 62ch; }
.panneaux { display: grid; margin-top: 20px; }
.panneau { grid-area: 1 / 1; }
/* aucun script en ligne (politique de sécurité) : le CSS sait lui-même si le JavaScript tourne */
.panneau { visibility: hidden; }
.panneau.actif { visibility: visible; }
.panneau h2 { font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); line-height: 1.2; margin-bottom: 6px; }
.panneau p { max-width: 62ch; margin-bottom: 6px; font-size: 1rem; line-height: 1.5; }
.panneau .bouton { margin-top: 8px; }
.formats { margin-top: 12px; color: var(--ardoise); font-size: 1rem; line-height: 1.45; }
@media (scripting: none) {
  .panneaux { display: block; }
  .panneau { visibility: visible; margin-bottom: 24px; }
}

/* ---------- sections ---------- */
.section { padding-top: 112px; scroll-margin-top: 0; }
.conteneur { padding-left: var(--marge); padding-right: var(--marge); }
.chapeau { max-width: 62ch; margin-top: 16px; text-wrap: pretty; }

/* réalisations : l'écran de dessin, les vraies captures en rangées de même hauteur, rien n'est coupé */
.rea { margin-top: 56px; padding: 64px var(--marge) 96px; background: var(--encre); color: #fff; }
.rea-entree .chapeau { color: rgba(255, 255, 255, .84); }
.rea-groupe { margin-top: 72px; }
.rea-groupe-tete { margin-bottom: 24px; }
.rea-groupe-tete h3 { font-size: 1.5rem; }
.rea-groupe-tete p { max-width: 62ch; margin-top: 8px; color: rgba(255, 255, 255, .84); }
.rea-rang { display: flex; gap: var(--goutte); }
.rea-rang + .rea-rang { margin-top: 28px; }
.rea-f { flex: var(--r) 1 0; min-width: 0; }
.rea-lien { display: block; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); cursor: zoom-in; transition: box-shadow .16s; }
.rea-lien img { width: 100%; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.rea-lien:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .rea-lien:hover { box-shadow: 0 0 0 2px #fff; }
  .rea-lien:hover img { transform: scale(1.04); }
}
.rea-f figcaption { margin-top: 10px; font-size: .9375rem; font-weight: 500; line-height: 1.35; color: rgba(255, 255, 255, .92); }
.rea-action { margin-top: 56px; background: #fff; color: var(--axe); }
@media (hover: hover) and (pointer: fine) { .rea-action:hover { background: var(--glacier); } }
.rea-action:active { background: var(--glacier); }

/* sous-traitance : photo à bord perdu, texte qui la chevauche d'une colonne */
.st-haut { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--goutte); padding-right: var(--marge); align-items: start; }
.st-photo { grid-column: 1 / 8; grid-row: 1; position: relative; border-radius: 0 20px 20px 0; }
.st-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 20px 20px 0; }
.st-texte { grid-column: 7 / 13; grid-row: 1; position: relative; z-index: 1; margin-top: 72px; padding: 32px 0 32px 36px; background: #fff; border-radius: 20px 0 0 20px; }
.st-texte h2 { margin-bottom: 16px; }
.st-texte p { max-width: 62ch; margin-bottom: 20px; }
.secteurs-titre { margin-top: 56px; font-size: 1.5rem; }
/* cinq besoins de tailles inégales, tous du même fond (client, 05/11/2026) */
.secteurs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--goutte); margin-top: 20px; }
.secteurs li { padding: 22px 24px; background: var(--glacier); border-radius: 16px; }
.secteurs h4 { margin-bottom: 6px; font-family: var(--titre); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.secteurs p { font-size: 1rem; line-height: 1.45; }
.secteur-0 { grid-column: 1 / 6; }
.secteur-1 { grid-column: 6 / 13; }
.secteur-2 { grid-column: 1 / 4; }
.secteur-3 { grid-column: 4 / 8; }
.secteur-4 { grid-column: 8 / 13; }

/* méthode : un axe fléché du même dessin que ceux du logo, sans numéros */
.axe-etapes { position: relative; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.8fr) minmax(0, 1.5fr) minmax(0, 1.8fr) minmax(0, 1.6fr); gap: var(--goutte); margin-top: 36px; padding-top: 28px; }
.axe-etapes::before { content: ""; position: absolute; top: 7px; left: 0; right: 10px; height: 3px; background: var(--axe); }
.axe-etapes::after { content: ""; position: absolute; top: 0; right: 0; border-left: 18px solid var(--axe); border-top: 8.5px solid transparent; border-bottom: 8.5px solid transparent; }
.axe-etapes li { position: relative; }
.axe-etapes li::before { content: ""; position: absolute; top: -27px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--axe); }
.axe-etapes h3 { font-size: 1.25rem; line-height: 1.2; }
.axe-etapes p { margin-top: 6px; font-size: 1rem; line-height: 1.5; }
.livrables { margin-top: 48px; padding: 28px 32px; background: var(--glacier); border-radius: 16px; }
.livrables h3 { font-size: 1.5rem; }
.livrables p { max-width: 62ch; margin-top: 8px; }

/* qui sommes-nous : le miroir de la sous-traitance, photo à droite */
.ap-haut { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--goutte); padding-left: var(--marge); align-items: start; }
.ap-photo { grid-column: 7 / 13; grid-row: 1; border-radius: 20px 0 0 20px; }
.ap-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 20px 0 0 20px; }
.ap-texte { grid-column: 1 / 7; grid-row: 1; margin-top: 40px; padding-right: 24px; }
.ap-texte p { max-width: 62ch; margin-top: 16px; }
.ap-bas { margin-top: 40px; }
.ap-deux { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--goutte); }
.ap-deux > :first-child { grid-column: 1 / 7; }
.ap-deux > :last-child { grid-column: 7 / 13; }
.ap-deux h3 { margin-bottom: 8px; font-size: 1.5rem; }
.ap-deux p { max-width: 54ch; }
/* 11/11/2026 : comme les cartes « Pour qui » et « Livrables » (contre-visite 14, réserve 1) : plus aucun bloc rempli de bleu */
.ap-valeurs { margin-top: 44px; padding: 28px 32px 32px; background: var(--glacier); color: var(--encre); border-radius: 16px; }
.ap-valeurs h3 { font-size: 1.5rem; }
.ap-valeurs ul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: var(--goutte); margin-top: 16px; }
.ap-valeurs h4 { font-family: var(--titre); font-size: 1.125rem; }
.ap-valeurs p { margin-top: 4px; font-size: 1rem; line-height: 1.45; }

/* contactez-nous : titre centré, le formulaire à gauche, les informations à droite dès 900 px */
.contact-tete { text-align: center; }
.contact-tete .chapeau { margin: 16px auto 0; text-wrap: balance; }
.contact-corps { display: grid; gap: 56px; max-width: 1180px; margin: 48px auto 0; }
@media (min-width: 900px) {
  .contact-corps { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 72px; align-items: start; }
}
.consigne { margin-bottom: 24px; color: var(--ardoise); }
.champ { margin-bottom: 20px; }
.champ label, .contact-prestations legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 600; }
.champ input, .champ textarea {
  display: block; width: 100%; padding: 10px 14px; border: 1.5px solid rgba(28, 40, 52, .42); border-radius: 10px; background: #fff; color: var(--encre);
  font: 400 1rem/1.45 var(--texte); touch-action: manipulation; transition: border-color .16s;
}
.champ input { min-height: 48px; }
.champ textarea { min-height: 13.5em; resize: vertical; }
.champ input:focus, .champ textarea:focus { border-color: var(--axe); }
.champ [aria-invalid="true"] { border: 2px solid var(--encre); }
.requis { color: var(--axe); font-weight: 600; }
.champ-aide { margin: -2px 0 6px; color: var(--ardoise); font-size: 1rem; line-height: 1.4; }
.champ-erreur { display: flex; gap: 8px; align-items: baseline; margin-top: 6px; color: var(--encre); font-weight: 600; line-height: 1.35; }
.champ-erreur::before { content: "!"; flex: none; align-self: flex-start; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--encre); color: #fff; font-size: .875rem; line-height: 20px; text-align: center; }
.contact-prestations { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces label { position: relative; display: inline-flex; min-height: 44px; }
.puces input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.puces span { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(28, 40, 52, .28); font-weight: 500; line-height: 1.2; -webkit-user-select: none; user-select: none; transition: background-color .16s, color .16s, border-color .16s; }
@media (hover: hover) and (pointer: fine) { .puces input:hover:not(:checked) + span { border-color: var(--axe); color: var(--axe); } }
.puces input:checked + span { background: var(--axe); border-color: var(--axe); color: #fff; }
.puces input:focus-visible + span { outline: 2px solid var(--axe); outline-offset: 2px; }
/* le champ piège : hors écran, jamais vu ni atteint au clavier */
.contact-piege { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-piege input, .contact-accord input { font-size: 16px; } /* aucun champ sous 16 px : iOS agrandit la page sinon */
.contact-accord { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; line-height: 1.4; }
.contact-accord input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--axe); cursor: pointer; }
.contact-accord-bloc .champ-erreur { margin: 0 0 8px; }
.contact-note { margin-top: 6px; color: var(--ardoise); line-height: 1.45; }
.contact-sans-script { margin-top: 12px; font-weight: 500; }
.contact-sans-script a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.contact-envoyer { min-width: 180px; margin-top: 20px; text-align: center; }
.contact-envoyer:disabled { background: var(--ardoise); cursor: default; transform: none; }
.contact-etat { margin-top: 16px; scroll-margin: 80px; outline: 0; line-height: 1.45; }
.contact-etat[data-etat="envoi"] { color: var(--ardoise); font-weight: 500; }
.contact-etat[data-etat="mail"], .contact-etat[data-etat="aucun"], .contact-etat[data-etat="echec"], .contact-etat[data-etat="limite"] { padding: 16px 18px; border-radius: 10px; font-weight: 500; }
.contact-etat[data-etat="mail"], .contact-etat[data-etat="aucun"] { border: 2px solid var(--axe); }
.contact-etat[data-etat="echec"], .contact-etat[data-etat="limite"] { border: 2px solid var(--encre); }
.contact-secours { margin-top: 14px; }
.contact-wa { width: 100%; min-height: 56px; font-size: 1.0625rem; text-align: center; }
.contact-autres { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; }
.contact-autres a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

.infos h3 { font-size: 1.5rem; font-weight: 600; }
.infos-liste { margin-top: 20px; display: grid; gap: 22px; }
.infos-liste li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.infos-texte { grid-column: 2; display: flex; flex-direction: column; }
.info-icone { grid-column: 1; display: block; width: 44px; height: 44px; fill: var(--axe); }
.infos-titre { color: var(--ardoise); line-height: 1.3; }
.infos-valeur { font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.infos-valeur a { display: inline-flex; align-items: center; min-height: 44px; }

/* pied : le logo entier, le nom, le lien replié */
.pied { display: flex; gap: 48px; align-items: flex-start; padding-top: 96px; padding-bottom: 56px; }
.logo-complet { width: 240px; flex: none; }
.pied-texte { max-width: 72ch; }
.pied-petit { color: var(--ardoise); }
.credits { margin-top: 4px; color: var(--ardoise); line-height: 1.5; }
.credits summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.credits h3 { margin-top: 14px; color: var(--encre); font: 600 1rem/1.3 var(--texte); }
.credits p { margin-top: 4px; }
.credits .mentions-prudence { margin-top: 14px; }
.credits ul { margin-top: 4px; }
.credits li { margin-bottom: 8px; }

.onglets-bas { display: none; }

/* ---------- petits bureaux ---------- */
/* une seule rangée d'onglets, bouton pause compris : sur deux rangs, les lettres X et Y s'y posaient (contre-visite 13) */
@media (max-width: 1365px) and (min-width: 901px) {
  .vues button { font-size: .9375rem; padding: 0 10px; }
}
@media (max-width: 1299px) and (min-width: 901px) {
  .vues { position: relative; flex: 1 1 0; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 4px 0; margin: -4px 0; scroll-snap-type: x proximity; scrollbar-width: none; }
  .vues::-webkit-scrollbar { display: none; }
  .vues button { flex: none; scroll-snap-align: center; }
}
@media (max-width: 1240px) and (min-width: 901px) {
  .nav-haut a { padding: 0 6px; }
  .bouton-haut { padding: 8px 12px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-haut { gap: 2px; }
  .marque { width: 120px; }
  .marque img { width: 120px; height: 76px; }
  .ap-valeurs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 799px) and (min-width: 901px) {
  .marque { width: 152px; }
  .marque img { width: 152px; height: 96px; }
  .entete.colle .marque img { transform: scale(.583) translateY(-4px); }
  .tete { padding-top: 134px; }
  h1 { font-size: clamp(2.25rem, 1rem + 2.8vw, 3.5rem); }
  .panneau p { line-height: 1.42; margin-bottom: 4px; }
  .colonne > .intro { margin-top: 6px; font-size: 1rem; line-height: 1.4; }
  .panneaux { margin-top: 12px; }
}
/* portable à la fenêtre basse : le sélecteur reste au premier écran, ancré par le haut */
@media (max-height: 759px) and (min-width: 901px) {
  .vues-bande { top: 488px; bottom: auto; }
  .scene { bottom: auto; height: var(--hs); }
  .scene img { object-fit: contain; object-position: right center; }
}

/* ---------- le téléphone ---------- */
@media (max-width: 900px) {
  :root { --haut: 56px; --goutte: 16px; --marge: 16px; --hs: clamp(340px, 104vw, 460px); --hs: clamp(240px, min(104vw, 100svh - 124px), 460px); } /* téléphone en paysage : la scène tient au-dessus de la barre */
  body { font-size: 1rem; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .entete { padding: 0 16px; }
  .marque { width: 133px; margin-top: 6px; height: 44px; }
  .marque img { width: 133px; height: 84px; }
  .entete.colle .marque img { transform: scale(.619) translateY(-6px); }
  .nav-haut, .bouton-haut { display: none; }
  .langues { margin-left: auto; }

  .tete { min-height: 0; padding: 0; }
  .scene { position: relative; inset: auto; height: var(--hs); }
  .scene img { object-fit: contain; }
  .scene::after { content: none; }
  .demo { top: 56px; right: 12px; left: auto; white-space: nowrap; }
  .geste { top: 82px; right: 12px; white-space: nowrap; } /* sous « Vue d'exemple » : en bas de la scène, ce fond blanc cachait la lettre X */
  .vues-bande { position: static; margin-top: 4px; padding-left: 16px; gap: 8px; align-items: center; justify-content: flex-start; }
  .vues { position: relative; flex: 1 1 0; gap: 8px; padding: 4px 16px 4px 0; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .vues::-webkit-scrollbar { display: none; }
  .vues button { scroll-snap-align: center; flex: none; font-size: .9375rem; padding: 0 14px; }
  .colonne { width: auto; max-width: none; padding: 16px 16px 0; }
  h1 { font-size: clamp(2.25rem, 1.2rem + 5vw, 3.25rem); max-width: 14ch; }
  .colonne > .intro { margin-top: 10px; }
  .panneaux { margin-top: 14px; }
  .panneau .bouton { width: 100%; }

  .section { padding-top: 72px; scroll-margin-top: 0; }

  .rea { margin-top: 40px; padding: 56px 16px 64px; }
  .rea-groupe { margin-top: 48px; }
  .rea-groupe-tete { margin-bottom: 4px; }
  .rea-rang { display: block; }
  .rea-rang + .rea-rang { margin-top: 0; }
  .rea-f { margin-top: 20px; }
  .rea-action { width: 100%; margin-top: 40px; }

  .st-haut { display: block; padding-right: 0; }
  .st-photo, .ap-photo { border-radius: 0; }
  .st-photo img { border-radius: 0; aspect-ratio: 4 / 3; }
  .st-texte { margin: -28px 16px 0; padding: 20px 0 0; border-radius: 16px 16px 0 0; }
  .st-texte .bouton { width: 100%; }
  .secteurs-titre { margin-top: 40px; }
  .secteurs { display: block; margin-top: 14px; }
  .secteurs li { margin-bottom: 10px; padding: 16px 18px; }

  .axe-etapes { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0 0 26px 28px; margin-top: 24px; }
  .axe-etapes::before { top: 0; bottom: 14px; left: 5px; right: auto; width: 3px; height: auto; }
  .axe-etapes::after { top: auto; bottom: 0; left: -1.5px; right: auto; border-top: 18px solid var(--axe); border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 0; }
  .axe-etapes li::before { top: 3px; left: -28px; }
  .livrables { margin-top: 28px; padding: 20px 18px; }

  .ap-haut { display: block; padding-left: 0; }
  .ap-texte { margin: 0 16px; padding: 0; }
  .ap-photo { margin-top: 20px; }
  .ap-photo img { border-radius: 0; aspect-ratio: 4 / 3; }
  .ap-bas { margin-top: 28px; }
  .ap-deux { display: block; }
  .ap-deux > :last-child { margin-top: 24px; }
  .ap-valeurs { margin-top: 28px; padding: 20px 18px 22px; }
  .ap-valeurs ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .contact-corps { gap: 48px; margin-top: 32px; }
  .contact-envoyer { width: 100%; }

  .pied { display: block; padding-top: 64px; padding-bottom: 32px; }
  .logo-complet { width: 200px; margin-bottom: 24px; }

  .onglets-bas {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px;
    height: calc(60px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -1px 0 rgba(28, 40, 52, .12), 0 -6px 16px rgba(28, 40, 52, .06);
    transition: transform .2s;
  }
  .onglets-bas a:not(.bouton) { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0; white-space: nowrap; color: var(--encre); text-decoration: none; font: 500 .9375rem/1 var(--texte); }
  .onglets-bas a[aria-current] { color: var(--axe); }
  .onglets-bas .bouton { flex: none; min-height: 44px; padding: 0 16px; font-size: .9375rem; }
  .onglets-bas .repere { top: 0; }
  .saisie .onglets-bas { transform: translateY(110%); }
}
@media (max-width: 380px) {
  .geste { font-size: .875rem; }
}
/* 11/11/2026 (contre-visite 15, réserve 1) : sous 340 px, « Devis » sortait de l'écran (la barre FR demande 339 px en 15 px).
   En 14 px et 12 px de marge au bouton, elle tient à 320 px en gardant 8 px entre les cibles. */
@media (max-width: 340px) {
  .onglets-bas a:not(.bouton) { font-size: .875rem; }
  .onglets-bas .bouton { padding: 0 12px; font-size: .875rem; }
}
/* d'une ligne, la pastille blanche du geste couvrait le coin du logo (133 px) sous 338 px, et la lettre Z à 341 px (mesuré le 11/11,
   capture_etroit.py) : jusqu'à 359 px elle passe sur deux lignes, calée à droite. À 360 px et plus, elle reste sur une ligne. */
@media (max-width: 359px) {
  .geste { white-space: normal; max-width: 112px; text-align: right; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- le mouvement (05/11/2026, demande d'Andry : « vraiment moderne, mobile comme web », 20-direction.json)
   Un seul mouvement d'apparition, celui du métier : le BALAYAGE DE SCAN. Au défilement, rien n'apparaît en fondu et le texte courant ne bouge pas.
   Mécanique : BANQUE-COMPOSANTS, kit-mouvement (js/apparition.js, non modifié). Tout est accordé sous no-preference : mouvement réduit = page immobile ; sans script ou à l'impression, rien n'est caché. */
:root { --sortie: cubic-bezier(.22, 1, .36, 1); --courbe-scan: cubic-bezier(.3, .1, .25, 1); --balayage: .9s; --pas-cascade: 120ms; --tour: 9s; }

/* la visite des vues : sa barre sur l'onglet actif (l'horloge de js/app.js), son bouton pause */
.vues button::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 3px; border-radius: 2px; background: #fff; opacity: 0; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.tour-bouton { flex: none; position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(28, 40, 52, .28); background: #fff; color: var(--encre); cursor: pointer; touch-action: manipulation; transition: border-color .16s, color .16s, transform .12s; }
.tour-bouton[hidden] { display: none; }
/* 11/11/2026 (contre-visite 14, réserve 3) : sa place est gardée, mais il n'apparaît qu'avec la visite, quand la scène ou son repli est prêt */
html:not([data-scene]) .tour-bouton { visibility: hidden; }
@media (scripting: none) { .tour-bouton { display: none; } }
@media (prefers-reduced-motion: reduce) { .tour-bouton { display: none; } }
.tour-bouton::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 13px; transform: translate(-50%, -50%); border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.tour-bouton[data-etat="pause"]::before { width: 0; height: 0; margin-left: 1px; border-left: 12px solid currentColor; border-right: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tour-bouton:focus-visible { outline: 2px solid var(--axe); outline-offset: 2px; }
.tour-bouton:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .tour-bouton:hover { border-color: var(--axe); color: var(--axe); } }
.diag { position: fixed; z-index: 99; left: 8px; right: 8px; top: 64px; margin: 0; padding: 8px 10px; border-radius: 8px; background: rgba(28, 40, 52, .94); color: #fff; font: 500 .875rem/1.35 var(--texte); pointer-events: none; }
@media (max-width: 1365px) and (min-width: 901px) { .vues button::after { left: 10px; right: 10px; } }
.fixe-voile { transition: opacity .6s ease; pointer-events: none; }
.fixe-voile.part { opacity: 0; }

@keyframes tour-barre { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes panneau-entree { from { opacity: 0; translate: 0 8px; } }
@keyframes scan-fixe { 0% { transform: translateY(-100%); opacity: 0; } 6% { opacity: 1; } 46% { transform: translateY(0); opacity: 1; } 50%, 100% { transform: translateY(0); opacity: 0; } }
/* mv-apparait ne déplace rien : c'est l'horloge que js/apparition.js attend pour retirer l'attribut */
@keyframes mv-apparait { from { opacity: 1; } }
@keyframes balaye-image { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes balaye-ligne { from { transform: translateY(-100%); opacity: 1; } 90% { opacity: 1; } to { transform: translateY(0); opacity: 0; } }
@keyframes balaye-titre { from { clip-path: inset(-10% 100% -30% 0); } to { clip-path: inset(-10% -2% -30% 0); } }
@keyframes balaye-trait { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes trace-long { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes trace-haut { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pointe-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes point-allume { from { transform: scale(0); } 70% { transform: scale(1.4); } to { transform: scale(1); } }

@media screen and (prefers-reduced-motion: no-preference) {
  html.tour .vues button[aria-selected="true"]::after { opacity: 1; animation: tour-barre var(--tour) linear forwards; }
  /* même sélecteur que la barre : son raccourci « animation » remettait sinon la visite en marche (banc_mouvement.py) */
  html.tour-pause .vues button[aria-selected="true"]::after, html.tour-hors .vues button[aria-selected="true"]::after, html.tour-cache .vues button[aria-selected="true"]::after, html.tour-survol .vues button[aria-selected="true"]::after, html.visionneuse-ouverte .vues button[aria-selected="true"]::after { animation-play-state: paused; }
  html.vue-changee .panneau.actif { animation: panneau-entree 240ms var(--sortie) backwards; }

  /* sans 3D : la ligne de scan passe sur l'image */
  html.repli .scene::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--axe) 0 2px, rgba(0, 88, 184, .14) 2px, rgba(0, 88, 184, 0) 96px); animation: scan-fixe var(--tour) linear 10; }
  html.repli.tour-hors .scene::before, html.repli.tour-cache .scene::before { animation-play-state: paused; }
  html.repli.tour-pause .scene::before { animation: none; opacity: 0; }

  /* le balayage : la feuille reste blanche, la ligne descend, l'image apparaît sous elle */
  .balaye { position: relative; overflow: hidden; }
  html.apparition .balaye[data-apparition]:not([data-apparition="vu"]) img { clip-path: inset(0 0 100% 0); }
  /* on découpe le texte, jamais le h2 observé : découpé en entier, il ne « rentre » jamais dans l'écran pour IntersectionObserver et reste invisible (banc_mouvement.py) */
  h2[data-apparition] > span { display: block; position: relative; width: fit-content; }
  .contact-tete h2[data-apparition] > span { margin-inline: auto; }
  html.apparition h2[data-apparition]:not([data-apparition="vu"]) > span { clip-path: inset(-10% 100% -30% 0); }
  html.apparition [data-apparition="vu"] { animation: mv-apparait var(--balayage) linear backwards; animation-delay: calc(var(--rang, 0) * var(--pas-cascade)); }
  html.apparition .balaye[data-apparition="vu"] img { animation: balaye-image var(--balayage) var(--courbe-scan) backwards; animation-delay: calc(var(--rang, 0) * var(--pas-cascade)); }
  html.apparition .balaye[data-apparition="vu"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, var(--axe) 0 2px, rgba(0, 88, 184, .16) 2px, rgba(0, 88, 184, 0) 64px); animation: balaye-ligne var(--balayage) var(--courbe-scan) both; animation-delay: calc(var(--rang, 0) * var(--pas-cascade)); }
  /* le même balayage sur les grands titres, de gauche à droite */
  html.apparition h2[data-apparition="vu"] > span { animation: balaye-titre var(--balayage) var(--courbe-scan) backwards; animation-delay: calc(var(--rang, 0) * var(--pas-cascade)); }
  html.apparition h2[data-apparition="vu"] > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; pointer-events: none; background: currentColor; animation: balaye-trait var(--balayage) linear both; animation-delay: calc(var(--rang, 0) * var(--pas-cascade)); }

  /* ce qui remplace la souris au doigt */
  .rea-lien { transition: box-shadow .16s, transform .14s var(--sortie); }
  .rea-lien:active { transform: scale(.985); box-shadow: 0 0 0 2px #fff; }
  .onglets-bas a:not(.bouton), .nav-haut a, .langues a, .puces span { transition: color .16s, border-color .16s, background-color .16s, transform .12s; }
  .onglets-bas a:not(.bouton):active, .nav-haut a:active, .langues a:active { transform: scale(.94); }
  .puces input:active + span { transform: scale(.97); }
}

/* au défilement, sans une ligne de script : l'axe de la méthode se trace et allume ses points. Sans cette technique (Firefox, vieux iPhone), tout est simplement à sa place */
@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    .axe-etapes { view-timeline: --axe-etapes block; }
    .axe-etapes::before { transform-origin: 0 50%; animation: trace-long linear both; animation-timeline: --axe-etapes; animation-range: cover 15% cover 55%; }
    .axe-etapes::after { animation: pointe-arrive linear both; animation-timeline: --axe-etapes; animation-range: cover 53% cover 58%; }
    .axe-etapes li::before { animation: point-allume linear both; animation-timeline: --axe-etapes; }
    .axe-etapes li:nth-child(1)::before { animation-range: cover 14% cover 19%; }
    .axe-etapes li:nth-child(2)::before { animation-range: cover 23% cover 28%; }
    .axe-etapes li:nth-child(3)::before { animation-range: cover 31% cover 36%; }
    .axe-etapes li:nth-child(4)::before { animation-range: cover 39% cover 44%; }
    .axe-etapes li:nth-child(5)::before { animation-range: cover 47% cover 52%; }
  }
  @media screen and (prefers-reduced-motion: no-preference) and (max-width: 900px) {
    .axe-etapes::before { transform-origin: 50% 0; animation-name: trace-haut; }
  }
}

/* ---------- impression : l'image de la vue au lieu du canevas (noir sur papier), les cinq panneaux, ni barre ni onglets ---------- */
@media print {
  .scene canvas, .axe, .vues-bande, .geste, .onglets-bas, .nav-haut, .langues, .bouton-haut, .panneau .bouton, .rea-action, .contact-form { display: none !important; }
  .entete { position: static; }
  .panneaux { display: block; }
  .panneau { visibility: visible; margin-bottom: 16px; break-inside: avoid; }
  .rea-lien, .st-photo, .ap-photo, .secteurs li, .axe-etapes li { break-inside: avoid; }
  body { padding-bottom: 0; }
}

/* ---------- visionneuse : BANQUE-COMPOSANTS, visionneuse-dialog (licence maison), rhabillée pour des plans ---------- */
html.visionneuse-ouverte { overflow: hidden; }
.visionneuse {
  --vis-bouton: rgb(28 40 52 / .86); --vis-bouton-survol: var(--axe);
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: rgb(20 29 38); color: #fff;
}
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse::backdrop { background: transparent; }
.visionneuse [hidden] { display: none !important; }
.visionneuse-figure { margin: 0; display: grid; justify-items: center; gap: 8px; max-width: 96vw; overflow: hidden; }
/* un plan se lit en grand : l'image remplit la place, même une petite capture */
.visionneuse-image {
  display: block; width: 94vw; height: 82vh; height: 82dvh; max-width: none; object-fit: contain;
  touch-action: pan-y pinch-zoom; user-select: none; cursor: zoom-in;
}
.visionneuse-image.zoomee { transform: scale(2); cursor: zoom-out; }
.vue-zoomee .visionneuse-image { touch-action: auto; }   /* doigt, image pincée : on se déplace dedans, on ne change plus d'image */
.visionneuse-legende { position: relative; z-index: 1; padding: 0 16px; text-align: center; font-size: .9375rem; color: rgb(255 255 255 / .9); background: rgb(20 29 38); }
.visionneuse-fermer, .visionneuse-precedente, .visionneuse-suivante {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--vis-bouton);
}
.visionneuse-fermer { top: 12px; right: 12px; }
.visionneuse-precedente { left: 8px; top: 50%; transform: translateY(-50%); }
.visionneuse-suivante { right: 8px; top: 50%; transform: translateY(-50%); }
.visionneuse button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .visionneuse button:hover { background: var(--vis-bouton-survol); } }
.visionneuse-compteur {
  position: absolute; z-index: 2; top: 20px; left: 50%; transform: translateX(-50%); margin: 0;
  padding: 4px 12px; border-radius: 999px; font-size: .8125rem; background: var(--vis-bouton);
}
@media (prefers-reduced-motion: no-preference) {
  .visionneuse[open] { animation: vis-entree 200ms cubic-bezier(.22, 1, .36, 1) backwards; }
}
@keyframes vis-entree { from { opacity: 0; } }
@keyframes vis-image { from { opacity: 0; scale: .96; } }
@media (prefers-reduced-motion: no-preference) { .visionneuse[open] .visionneuse-image { animation: vis-image 260ms var(--sortie) backwards; } }
@media (max-width: 900px) {
  .visionneuse-image { height: 72vh; height: 72dvh; }
  .visionneuse-precedente, .visionneuse-suivante { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; }
  .visionneuse-precedente { left: 16px; }
  .visionneuse-suivante { right: 16px; }
}
