/* Page d'accueil Moduplan.
   Encre noire sur papier blanc et calque gris, traits fins, comme les pièces du dossier. L'orange est réservé au
   projet du client (le dessin, la cote sous le mot du titre) et au bouton qui le commence.
   Le mouvement montre le service au travail : le plan se dessine, le projet se déplace, les étapes avancent avec le
   défilement, les tiroirs s'ouvrent quand on les touche. Tout mouvement est coupé si le visiteur l'a demandé
   (prefers-reduced-motion) ; sans JavaScript, la page reste complète et lisible. */
[hidden] { display: none !important; }
@font-face { font-family: "Instrument Sans"; src: url("/static/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --encre: #1a1d20;
  --papier: #ffffff;
  --calque: #f1f2ef;
  --doux: #5c636a;
  --trait: #8c9399;
  --filet: #dfe1dd;
  --ligne: #d3d6d1;
  --projet: #c8602b;
  --projet-pale: rgba(200, 96, 43, 0.16);
  --bouton: #b4541f;
  --bouton-fonce: #a24d21;
  --ok: #2f6f4e;
  --alerte: #b3261e;
  --large: 1180px;
  --douce: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; font-kerning: normal;
}
body.menu-ouvert { overflow: hidden; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; background: var(--encre); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 4px; }
.evitement:focus { top: 12px; }

/* ---- bouton d'action (le même partout) ------------------------------------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  background: var(--bouton); color: #fff; border-radius: 8px; font-weight: 600; font-size: 17px; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; transition: background-color 0.2s, transform 0.2s var(--douce);
}
.cta:hover { background: var(--bouton-fonce); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.cta-petit { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---- en-tête : calque en haut de page, papier translucide au défilement ----- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--calque); transition: background-color 0.3s, box-shadow 0.3s; }
.entete.defile {
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 0 var(--filet);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
}
.entete-ligne { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.marque { font-weight: 700; font-size: 21px; letter-spacing: -0.015em; text-decoration: none; color: var(--encre); }
.marque span { color: var(--projet); }
.nav { display: flex; gap: 30px; margin-left: 52px; }
.nav a { position: relative; padding: 8px 0; font-size: 15.5px; font-weight: 500; color: var(--doux); text-decoration: none; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--encre);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--douce);
}
.nav a:hover, .nav a[aria-current] { color: var(--encre); }
.nav a[aria-current]::after { transform: scaleX(1); }
.entete-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.lien-espace { font-size: 15.5px; font-weight: 500; }
.menu-bouton { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ligne); border-radius: 50%; background: transparent; color: var(--encre); cursor: pointer; }
.menu-icone { display: block; width: 18px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.progression { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.progression span { display: block; height: 100%; background: var(--projet); transform: scaleX(0); transform-origin: 0 50%; }
html:not(.js) .progression { display: none; }

/* ---- tiroir du menu ----------------------------------------------------------- */
.tiroir-menu { position: fixed; inset: 0; z-index: 80; }
.tiroir-menu-fond { position: absolute; inset: 0; background: rgba(26, 29, 32, 0.4); opacity: 0; transition: opacity 0.3s; }
.tiroir-menu-panneau {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(390px, 88vw); overflow-y: auto;
  display: flex; flex-direction: column; padding: 12px 24px calc(28px + env(safe-area-inset-bottom));
  background: var(--papier); transform: translateX(100%); transition: transform 0.36s var(--douce);
}
.tiroir-menu.ouvert .tiroir-menu-fond { opacity: 1; }
.tiroir-menu.ouvert .tiroir-menu-panneau { transform: none; }
.tiroir-menu-tete { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 18px; }
.tiroir-menu-fermer { position: relative; width: 44px; height: 44px; border: 1px solid var(--ligne); border-radius: 50%; background: none; cursor: pointer; }
.tiroir-menu-fermer span[aria-hidden]::before, .tiroir-menu-fermer span[aria-hidden]::after {
  content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--encre);
  transform: rotate(45deg);
}
.tiroir-menu-fermer span[aria-hidden]::after { transform: rotate(-45deg); }
.tiroir-menu-liens { display: flex; flex-direction: column; border-top: 1px solid var(--filet); margin-bottom: 28px; }
.tiroir-menu-liens a { padding: 16px 0; border-bottom: 1px solid var(--filet); font-size: 20px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.tiroir-menu-liens a:last-child { font-size: 16.5px; font-weight: 500; color: var(--doux); }
.tiroir-menu .cta { width: 100%; }

/* ---- haut de page : le titre et un plan de masse qu'on peut manipuler ------- */
.heros { position: relative; overflow: hidden; background: var(--calque); padding: clamp(28px, 5vw, 76px) 0 clamp(72px, 8vw, 120px); }
.heros::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(26, 29, 32, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 29, 32, 0.05) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}
.heros-grille { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 84px); align-items: center; }
.heros h1 { position: relative; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.03; letter-spacing: -0.036em; margin-bottom: 28px; }
.heros h1 .ligne { display: block; }
/* le mot qui change (garage, piscine...) et sa cote, comme sur un plan */
.mot { position: relative; display: inline-block; white-space: nowrap; transition: width 0.3s var(--douce); }
.mot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.1em; height: 0.2em;
  border-left: 2px solid var(--projet); border-right: 2px solid var(--projet);
  background: linear-gradient(var(--projet), var(--projet)) center / 100% 2px no-repeat;
}
.mot-texte { display: inline-block; transition: transform 0.2s ease, opacity 0.2s ease; }
.mot-texte.sort { transform: translateY(-0.28em); opacity: 0; }
.mot-texte.entre { transform: translateY(0.28em); opacity: 0; transition: none; }
.mot-mesure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; pointer-events: none; }
.chapo { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.6; color: var(--doux); max-width: 33em; }
.heros-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; }
.lien-video { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.lien-video-icone { position: relative; flex: none; width: 40px; height: 40px; border: 1.5px solid var(--encre); border-radius: 50%; transition: background-color 0.2s; }
.lien-video-icone::after {
  content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--encre); transition: border-color 0.2s;
}
.lien-video:hover .lien-video-icone { background: var(--encre); }
.lien-video:hover .lien-video-icone::after { border-left-color: #fff; }
.lien-video small { font-size: 14px; font-weight: 500; color: var(--doux); }
.heros-prix { margin-top: 20px; font-size: 15px; color: var(--doux); max-width: 34em; }
@media (prefers-reduced-motion: no-preference) {
  .heros h1 .ligne, .chapo, .heros-actions, .heros-prix { animation: monte 0.9s var(--douce) both; }
  .heros h1 .ligne:nth-child(2) { animation-delay: 0.08s; }
  .heros h1 .ligne:nth-child(3) { animation-delay: 0.16s; }
  .chapo { animation-delay: 0.26s; }
  .heros-actions { animation-delay: 0.34s; }
  .heros-prix { animation-delay: 0.4s; }
}
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }

/* la planche : type de projet, plan, verdict */
.planche { margin: 0; }
.types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.types button {
  font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1; padding: 9px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ligne); background: rgba(255, 255, 255, 0.75); color: var(--encre);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.types button:hover { border-color: var(--encre); }
.types button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.feuille {
  position: relative; background: var(--papier); border: 1px solid var(--ligne); padding: clamp(8px, 1.4vw, 16px);
  /* deux feuilles du dossier dessous, décalées */
  box-shadow: 7px 7px 0 -1px var(--papier), 7px 7px 0 0 var(--ligne), 14px 14px 0 -1px var(--papier), 14px 14px 0 0 var(--ligne);
}
.astuce {
  position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 9px; padding: 7px 13px 7px 11px;
  border-radius: 999px; background: var(--encre); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--douce);
}
.astuce.parti { opacity: 0; transform: translateY(-6px); animation: none; }
.astuce-main { width: 9px; height: 9px; border-radius: 50%; background: var(--projet); }
@media (prefers-reduced-motion: no-preference) {
  .astuce { opacity: 0; animation: apparait 0.5s ease 1.8s forwards; }
  .astuce-main { animation: pouls 1.8s ease-out 2.2s infinite; }
}
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(200, 96, 43, 0.65); } 100% { box-shadow: 0 0 0 10px rgba(200, 96, 43, 0); } }
.etat { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 18px; margin-top: 28px; font-size: 15px; }
.etat-procedure { font-weight: 500; }
.planche-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--doux); }
.etat-regles { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.etat-regles svg { width: 17px; height: 17px; flex: none; }
.etat-regles circle { fill: currentColor; }
.etat-regles path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.etat-regles[data-etat="ok"] { color: var(--ok); }
.etat-regles[data-etat="alerte"] { color: var(--alerte); }
.etat-regles[data-etat="ok"] .icone-alerte, .etat-regles[data-etat="alerte"] .icone-ok { display: none; }

/* le plan de masse */
.plan { display: block; width: 100%; height: auto; font-family: inherit; -webkit-user-select: none; user-select: none; }
.plan text { font-size: 10px; fill: var(--doux); }
.plan .voisins path { fill: none; stroke: #b9bec2; stroke-width: 1; }
.plan .voisins rect { stroke: #c2c6c9; stroke-width: 0.8; }
.plan .hachure { stroke: #b4b9bd; stroke-width: 0.8; }
.plan .eau-fond { fill: rgba(200, 96, 43, 0.1); }
.plan .vague { fill: none; stroke: var(--projet); stroke-width: 0.8; opacity: 0.7; }
.plan .voie path { fill: none; stroke: var(--trait); stroke-width: 1; }
.plan .voie text { text-anchor: middle; font-style: italic; }
.plan .terrain { fill: none; stroke: var(--encre); stroke-width: 1.8; }
.plan .maison rect { stroke: var(--encre); stroke-width: 1.1; }
.plan .maison text { text-anchor: middle; fill: var(--encre); font-size: 10.5px; }
.plan .projet { cursor: grab; touch-action: none; outline: none; }
.plan .projet.saisi { cursor: grabbing; }
.plan .projet-zone { fill: transparent; stroke: none; }
.plan .projet:focus-visible .projet-zone { stroke: var(--encre); stroke-width: 1; stroke-dasharray: 3 3; }
.plan .projet-forme { fill: var(--projet-pale); stroke: var(--projet); stroke-width: 2; transition: fill 0.2s; }
.plan .projet:hover .projet-forme, .plan .projet.saisi .projet-forme { fill: rgba(200, 96, 43, 0.26); }
.plan .projet[data-type="piscine"] .projet-forme { fill: url(#p-eau); }
.plan .projet[data-type="carport"] .projet-forme { fill: rgba(200, 96, 43, 0.08); stroke-dasharray: 5 3; }
.plan .projet-detail { fill: none; stroke: var(--projet); stroke-width: 1.2; }
.plan .projet[data-type="garage"] .projet-detail { stroke-width: 3; }
.plan .projet[data-type="hangar"] .projet-detail { stroke-dasharray: 6 4; }
.plan .projet[data-type="carport"] .projet-detail { fill: var(--projet); stroke: none; }
.plan .projet-nom { text-anchor: middle; fill: var(--bouton-fonce); font-weight: 600; font-size: 11px; pointer-events: none; }
.plan .cote path { fill: none; stroke: var(--encre); stroke-width: 0.9; }
.plan .cote text {
  text-anchor: middle; fill: var(--encre); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums;
  paint-order: stroke; stroke: var(--papier); stroke-width: 3px; stroke-linejoin: round;
}
.plan .cote text.a-gauche { text-anchor: start; }
.plan .cote.faux path { stroke: var(--alerte); }
.plan .cote.faux text { fill: var(--alerte); }
.plan .nord circle { fill: none; stroke: var(--encre); stroke-width: 0.9; }
.plan .nord path { fill: var(--encre); }
.plan .echelle .plein { fill: var(--encre); }
.plan .echelle .vide { fill: var(--papier); stroke: var(--encre); stroke-width: 0.8; }
.plan .echelle text { font-size: 9px; fill: var(--encre); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .plan .terrain, .plan .voisins path, .plan .voie path, .plan .maison rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 0.9s cubic-bezier(0.45, 0, 0.2, 1) 0.15s forwards; }
  .plan .voisins path, .plan .voie path { animation-duration: 0.7s; animation-delay: 0s; }
  .plan .maison rect { fill-opacity: 0; animation: trace 0.7s cubic-bezier(0.45, 0, 0.2, 1) 0.45s forwards, remplit 0.5s ease 1s forwards; }
  .plan .voisins rect { opacity: 0; animation: apparait 0.6s ease 0.5s forwards; }
  .plan .projet { opacity: 0; animation: apparait 0.5s ease 1.1s forwards; }
  .plan text, .plan .cotes, .plan .nord, .plan .echelle { opacity: 0; animation: apparait 0.5s ease-out 1.4s forwards; }
  .plan .voie text { animation-delay: 0.6s; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes remplit { to { fill-opacity: 1; } }
@keyframes apparait { to { opacity: 1; } }

/* ---- bandes de contenu ------------------------------------------------------ */
.bande { padding: clamp(76px, 10vw, 140px) 0; }
.bande-calque { background: var(--calque); }
.tete { max-width: 44em; margin-bottom: clamp(36px, 5vw, 64px); }
.bande h2, .bande-video h2 { font-size: clamp(31px, 3.7vw, 50px); line-height: 1.05; letter-spacing: -0.032em; }
.intro { font-size: clamp(17px, 1.4vw, 19px); color: var(--doux); margin-top: 18px; max-width: 38em; }
.relance { margin-top: clamp(40px, 5vw, 64px); }
.note { margin-top: 24px; font-size: 13.5px; color: var(--doux); }

/* apparitions au défilement : discrètes, une fois */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--douce), transform 0.8s var(--douce); }
  .js .rv.vu { opacity: 1; transform: none; }
  .js .rv-suite > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--douce), transform 0.6s var(--douce); transition-delay: calc(var(--i, 0) * 70ms + 60ms); }
  .js .rv-suite.vu > * { opacity: 1; transform: none; }
}

/* ---- la vidéo : rien n'est chargé depuis YouTube avant le clic --------------- */
.bande-video { padding: clamp(76px, 10vw, 136px) 0 clamp(8px, 2vw, 24px); }
.video-tete { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px 48px; margin-bottom: clamp(26px, 3.4vw, 40px); }
.video-tete p { color: var(--doux); font-size: clamp(17px, 1.4vw, 19px); max-width: 28em; }
.video-cadre {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; border-radius: 18px; background: var(--encre);
  transform: scale(calc(0.93 + 0.07 * var(--k, 1))); transform-origin: 50% 20%;
}
.video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lancer {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 16px; border: 0; cursor: pointer; color: #fff; font: inherit;
  display: grid; place-items: center; align-content: center; gap: 14px; background-color: var(--encre);
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px; background-position: center;
}
.video-lancer:focus-visible { outline: 3px solid #fff; outline-offset: -10px; }
.video-affiche { position: absolute; inset: 0; pointer-events: none; }
.video-affiche svg { width: 100%; height: 100%; }
.video-affiche .va-trait { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.3; }
.video-affiche .va-projet { fill: rgba(200, 96, 43, 0.22); stroke: var(--projet); stroke-width: 2; }
.video-play { position: relative; width: clamp(66px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--bouton); transition: transform 0.35s var(--douce), background-color 0.2s; }
.video-play::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.95em 0 0.95em 1.5em; border-color: transparent transparent transparent #fff;
  font-size: clamp(12px, 1.3vw, 16px);
}
.video-lancer:hover .video-play { transform: scale(1.07); background: var(--bouton-fonce); }
.video-libelle { position: relative; font-size: clamp(16px, 1.4vw, 18px); font-weight: 600; }
.video-note { position: relative; max-width: 30em; font-size: 13px; color: #c3c8cc; text-align: center; }
.video-bas { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: clamp(14px, 2.4vw, 28px); text-align: left; }
.video-qui { padding-left: 12px; border-left: 3px solid var(--projet); font-size: clamp(13px, 1.1vw, 15px); line-height: 1.35; color: #d9dcdf; }
.video-qui strong { display: block; font-size: clamp(15px, 1.35vw, 18px); color: #fff; }
.video-duree { padding: 3px 9px; border-radius: 6px; background: rgba(0, 0, 0, 0.5); font-size: 13px; font-variant-numeric: tabular-nums; }
.video-message {
  position: absolute; left: 50%; top: 18px; z-index: 2; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px;
  background: var(--papier); color: var(--encre); font-size: 14.5px; font-weight: 600; text-align: center;
  opacity: 0; transform: translate(-50%, -8px); transition: opacity 0.3s, transform 0.3s var(--douce); pointer-events: none;
}
.video-message.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---- les étapes : l'écran avance avec le défilement ---------------------------- */
.etapes-grille { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.etapes-scene { display: contents; }
.etapes-ecran { grid-column: 2; grid-row: 1; position: sticky; top: max(96px, calc(50vh - 255px)); }
.etapes-liste { grid-column: 1; grid-row: 1; position: relative; list-style: none; margin: 0; padding: 0; }
.etape { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-content: start; column-gap: 22px; padding: 0 0 36px; }
.etape-num {
  grid-row: 1 / span 2; position: relative; z-index: 1; width: 42px; height: 42px; border: 1.5px solid var(--encre); border-radius: 50%;
  display: grid; place-items: center; background: var(--papier); font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.35s, color 0.35s;
}
.etape h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.2; letter-spacing: -0.02em; padding-top: 6px; }
.etape p { margin-top: 10px; color: var(--doux); max-width: 30em; }
.js .etape { min-height: 44vh; padding: calc(22vh - 21px) 0 0; transition: opacity 0.4s; opacity: 0.32; }
.js .etape.actif { opacity: 1; }
.js .etape.actif .etape-num { background: var(--encre); color: #fff; }
/* la ligne qui relie les numéros, remplie jusqu'à l'étape en cours */
.js .etapes-liste::before, .js .etapes-liste::after { content: ""; position: absolute; left: 20.5px; top: 22vh; bottom: 22vh; width: 1px; background: var(--ligne); }
.js .etapes-liste::after { width: 2px; left: 20px; background: var(--encre); transform-origin: 50% 0; transform: scaleY(var(--avance, 0)); transition: transform 0.5s var(--douce); }

/* téléphone et tablette (classe posée par le script) : l'écran et sa légende restent en place, le défilement fait
   avancer les étapes une à une, comme sur ordinateur */
.etapes-grille.epingle { display: block; height: calc(100vh + 3 * 72vh); height: calc(100svh + 3 * 72svh); }
.etapes-grille.epingle .etapes-scene {
  position: sticky; top: 68px; display: flex; flex-direction: column; justify-content: center; gap: 24px;
  height: calc(100vh - 68px); height: calc(100svh - 68px); padding: 8px 0 18px;
}
.etapes-grille.epingle .etapes-ecran {
  position: relative; top: auto; z-index: auto; flex: none; margin: 0 auto; padding: 0; background: none;
  width: min(100%, 560px, calc((100vh - 340px) * 1.3)); width: min(100%, 560px, calc((100svh - 340px) * 1.3));
}
.etapes-grille.epingle .etapes-liste { display: grid; width: 100%; max-width: 560px; margin: 0 auto; }
.etapes-grille.epingle .etape {
  grid-area: 1 / 1; min-height: 0; padding: 0; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s var(--douce);
}
.etapes-grille.epingle .etape.actif { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .etapes-grille.epingle .etape { transform: none; transition: opacity 0.2s; } }

.ecran { background: var(--papier); border: 1px solid var(--ligne); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(26, 29, 32, 0.35); }
.ecran-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--filet); }
.ecran-barre .marque { font-size: 15px; }
.ecran-etapes { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: e; }
.ecran-etapes li { counter-increment: e; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--trait); white-space: nowrap; transition: background-color 0.35s, color 0.35s; }
.ecran-etapes li::before { content: counter(e) "\00a0"; font-variant-numeric: tabular-nums; }
.ecran-etapes li.actif { background: var(--encre); color: #fff; }
.ecran-vue { position: relative; aspect-ratio: 520 / 400; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.scene.active { opacity: 1; }
.scene svg { display: block; width: 100%; height: 100%; font-family: inherit; }
/* éléments des scènes */
.scene .s-fond { fill: var(--calque); }
.scene .s-blanc { fill: var(--papier); }
.scene .s-route-bord { fill: none; stroke: #d3d6d1; stroke-width: 26; }
.scene .s-route { fill: none; stroke: #fff; stroke-width: 22; }
.scene .s-parcelles { fill: none; stroke: #b9bec2; stroke-width: 1; }
.scene .s-bati { fill: #dcdfda; stroke: #aab0b4; stroke-width: 1; }
.scene .s-choisie { fill: rgba(26, 29, 32, 0.07); stroke: var(--encre); stroke-width: 2.6; stroke-linejoin: round; }
.scene .s-maison { fill: #c9cdc8; stroke: var(--encre); stroke-width: 1; }
.scene .s-repere { fill: var(--projet); }
.scene .s-repere-point { fill: #fff; }
.scene .s-carte, .scene .s-liste { fill: #fff; stroke: var(--ligne); }
.scene .s-champ { fill: #fff; stroke: #c4c8c3; stroke-width: 1.2; }
.scene .s-loupe { fill: none; stroke: var(--doux); stroke-width: 1.8; stroke-linecap: round; }
.scene .s-saisie { font-size: 16px; fill: var(--encre); }
.scene .s-cache { fill: #fff; }
.scene .s-curseur { fill: var(--encre); }
.scene .s-surligne { fill: var(--calque); }
.scene .s-t1 { font-size: 14.5px; font-weight: 600; fill: var(--encre); }
.scene .s-t2 { font-size: 12.5px; fill: var(--doux); }
.scene .s-centre { text-anchor: middle; }
.scene .s-titre { font-size: 19px; font-weight: 600; fill: var(--encre); }
.scene .s-titre-petit { font-size: 13px; font-weight: 600; fill: var(--doux); }
.scene .s-puces rect { fill: #fff; stroke: #c4c8c3; }
.scene .s-puces text, .scene .s-puce-choisie text { font-size: 13.5px; text-anchor: middle; fill: var(--encre); }
.scene .s-puce-choisie rect { fill: var(--encre); }
.scene .s-puce-choisie text { fill: #fff; font-weight: 600; }
.scene .s-champs rect { fill: #fff; stroke: #c4c8c3; }
.scene .s-etiq { font-size: 12.5px; fill: var(--doux); }
.scene .s-valeur { font-size: 16px; font-weight: 600; fill: var(--encre); font-variant-numeric: tabular-nums; }
.scene .s-grand { font-size: 40px; font-weight: 600; fill: var(--encre); letter-spacing: -0.02em; }
.scene .s-iso path { fill: rgba(200, 96, 43, 0.1); stroke: var(--projet); stroke-width: 1.6; stroke-linejoin: round; }
.scene .s-iso path:nth-child(1) { fill: rgba(200, 96, 43, 0.2); }
.scene .s-iso path:nth-child(2) { fill: rgba(200, 96, 43, 0.3); }
.scene .s-iso .s-porte { fill: rgba(255, 255, 255, 0.75); }
.scene .s-verdict { fill: #edf4ef; stroke: rgba(47, 111, 78, 0.35); }
.scene .s-ok { fill: var(--ok); }
.scene .s-ok-coche { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scene .s-voie { fill: none; stroke: var(--trait); }
.scene .s-terrain { fill: #fff; stroke: var(--encre); stroke-width: 2; }
.scene .s-hachure { stroke: #b4b9bd; stroke-width: 0.8; }
.scene .s-maison-h { stroke: var(--encre); stroke-width: 1; }
.scene .s-projet { fill: var(--projet-pale); stroke: var(--projet); stroke-width: 2; }
.scene .s-projet-nom { font-size: 12px; font-weight: 600; fill: var(--bouton-fonce); text-anchor: middle; }
.scene .s-cote path { fill: none; stroke: var(--encre); stroke-width: 1; }
.scene .s-cote text { font-size: 11.5px; font-weight: 600; fill: var(--encre); text-anchor: middle; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.scene .s-cote .s-gauche { text-anchor: start; }
.scene .s-cone { fill: rgba(200, 96, 43, 0.18); stroke: var(--projet); stroke-width: 1; }
.scene .s-camera { fill: var(--projet); }
.scene .s-camera-n { font-size: 10px; font-weight: 700; fill: #fff; text-anchor: middle; }
.scene .s-photo { fill: #e9ece8; stroke: #c4c8c3; }
.scene .s-photo-trait { fill: none; stroke: var(--doux); stroke-width: 1.2; }
.scene .s-feuille { fill: #fff; stroke: #c4c8c3; }
.scene .s-fin { fill: none; stroke: var(--trait); stroke-width: 1; }
.scene .s-orange { fill: rgba(200, 96, 43, 0.35); stroke: var(--projet); stroke-width: 1.2; }
.scene .s-trait-projet { fill: none; stroke: var(--projet); stroke-width: 1.6; stroke-linejoin: round; }
.scene .s-terrain-fin { fill: none; stroke: var(--encre); stroke-width: 1.4; }
.scene .s-gris { fill: #dcdfda; stroke: var(--trait); }
.scene .s-cartouche { fill: none; stroke: var(--encre); stroke-width: 0.8; }
.scene .s-code { font-size: 9.5px; font-weight: 600; text-anchor: middle; fill: var(--encre); }
.scene .s-fichier { fill: #fff; stroke: var(--encre); stroke-width: 1.2; stroke-linejoin: round; }
.scene .s-bouton { fill: var(--bouton); }
.scene .s-bouton-texte { font-size: 15px; font-weight: 600; fill: #fff; text-anchor: middle; }
.scene .s-page { transform-origin: 150px 390px; transform: rotate(var(--r)); }
/* sans animation : état final (texte saisi, liste de suggestions refermée) */
.scene .a-frappe, .scene .a-flash { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .scene .a-frappe { display: inline; }
  .js .scene .a-flash { display: inline; opacity: 0; }
  .js .scene .a-apparait { opacity: 0; transform: translateY(6px); }
  .js .scene .a-pop { opacity: 0; transform: scale(0.86); transform-box: fill-box; transform-origin: center; }
  .js .scene .a-trace { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .scene .a-glisse { opacity: 0; transform: translateX(120px); }
  .js .scene .a-eventail { transform: rotate(0deg); }
  .js .scene.joue .a-apparait { animation: s-vient 0.5s var(--douce) var(--d, 0s) forwards; }
  .js .scene.joue .a-pop { animation: s-vient 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) var(--d, 0s) forwards; }
  .js .scene.joue .a-trace { animation: trace 0.9s cubic-bezier(0.45, 0, 0.2, 1) var(--d, 0s) forwards; }
  .js .scene.joue .a-glisse { animation: s-vient 0.8s var(--douce) var(--d, 0s) forwards; }
  .js .scene.joue .a-eventail { animation: s-eventail 0.9s var(--douce) var(--d, 0s) forwards; }
  .js .scene.joue .a-frappe { animation: s-frappe 1s steps(26) var(--d, 0s) forwards; }
  .js .scene.joue .s-curseur { animation: clignote 0.9s steps(1) infinite; }
  .js .scene.joue .a-flash { animation: s-flash 1.1s ease var(--d, 0s) forwards; }
}
@keyframes s-vient { to { opacity: 1; transform: none; } }
@keyframes s-eventail { to { transform: rotate(var(--r)); } }
@keyframes s-frappe { to { transform: translateX(var(--l, 260px)); } }
@keyframes s-flash { 0% { opacity: 0; } 15% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes clignote { 50% { opacity: 0; } }

/* ---- deux colonnes : titre à gauche, tiroirs à droite --------------------------- */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.colonne-tete { position: sticky; top: 116px; margin-bottom: 0; }
.en-plus { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ligne); font-size: 15.5px; color: var(--doux); max-width: 30em; }

/* ---- tiroirs (pièces du dossier, questions) ------------------------------------ */
.tiroirs { border-top: 1.5px solid var(--encre); }
.tiroir { border-bottom: 1px solid var(--ligne); }
.tiroir > summary { display: flex; align-items: center; gap: 18px; padding: 21px 2px; cursor: pointer; list-style: none; }
.tiroir > summary::-webkit-details-marker { display: none; }
.tiroir .code { flex: none; width: 4.6em; font-size: 14px; font-weight: 600; color: var(--doux); font-variant-numeric: tabular-nums; }
.tiroir-titre { flex: 1; font-size: clamp(17px, 1.45vw, 20px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.signe { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid #c4c8c3; border-radius: 50%; transition: background-color 0.25s, border-color 0.25s; }
.signe::before, .signe::after {
  content: ""; position: absolute; left: 9.5px; right: 9.5px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--encre);
  transition: transform 0.35s var(--douce), background-color 0.25s;
}
.signe::after { transform: rotate(90deg); }
.tiroir > summary:hover .signe { border-color: var(--encre); }
.tiroir[open]:not(.ferme) .signe { background: var(--encre); border-color: var(--encre); }
.tiroir[open]:not(.ferme) .signe::before, .tiroir[open]:not(.ferme) .signe::after { background: #fff; }
.tiroir[open]:not(.ferme) .signe::after { transform: rotate(0deg); }
.tiroir-corps { overflow: hidden; }
.tiroir-contenu { padding: 0 2px 26px; }
.tiroir-contenu p { color: var(--doux); max-width: 40em; }
.tiroir-contenu a { color: var(--encre); }
#dossier .tiroir-contenu { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 28px; align-items: start; padding-left: 83px; }
.tiroir-texte p { color: var(--encre); }
.tiroir-texte .dp { margin-top: 10px; font-size: 14.5px; color: var(--doux); }
.vignette { display: block; width: 100%; height: auto; background: var(--papier); border: 1px solid var(--ligne); }
.vignette .v-trait { fill: none; stroke: var(--trait); stroke-width: 1; }
.vignette .v-route { fill: none; stroke: #d3d6d1; stroke-width: 5; }
.vignette .v-cible { fill: none; stroke: var(--encre); stroke-width: 1; }
.vignette .v-projet { fill: rgba(200, 96, 43, 0.25); stroke: var(--projet); stroke-width: 1.4; }
.vignette .v-projet-trait { fill: none; stroke: var(--projet); stroke-width: 1.6; stroke-linejoin: round; }
.vignette .v-terrain { fill: none; stroke: var(--encre); stroke-width: 1.5; }
.vignette .v-gris { fill: #e3e5e2; stroke: var(--trait); }
.vignette .v-cote { fill: none; stroke: var(--encre); stroke-width: 0.9; }
.vignette .v-page { fill: #fff; stroke: var(--trait); }
.vignette .v-titre { fill: none; stroke: var(--encre); stroke-width: 3; }
.vignette .v-viseur { fill: none; stroke: var(--encre); stroke-width: 1.6; }
.vignette .v-tirets { stroke-dasharray: 3 3; }
@media (prefers-reduced-motion: no-preference) {
  .js .tiroir[open] .vignette { animation: vignette 0.6s var(--douce) 0.08s both; }
}
@keyframes vignette { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ---- les prix, présentés comme les deux formulaires ----------------------------- */
.prix-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.prix { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--encre); background: var(--papier); }
.prix-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }
.prix-tete h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.015em; line-height: 1.25; }
.prix-cerfa { flex: none; padding: 4px 8px; border: 1px solid var(--encre); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.montant { margin: 30px 0 22px; font-size: clamp(50px, 5.6vw, 74px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.montant span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--doux); }
.prix-pour { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.prix-pour li { position: relative; padding-left: 26px; }
/* puce : un petit projet dessiné */
.prix-pour li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 13px; height: 9px; border: 1.5px solid var(--projet); background: var(--projet-pale); }
.prix-delai { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--filet); font-size: 14.5px; color: var(--doux); }
.prix-inclus { margin-top: 26px; color: var(--doux); max-width: 52em; }
.tarifs-pas-pour { margin-top: 10px; font-size: 15.5px; color: var(--doux); }

/* ---- les témoignages : une piste qu'on fait défiler ----------------------------- */
.avis-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.avis-tete h2 { max-width: 15em; }
.avis-nav { display: flex; gap: 10px; flex: none; }
.avis-fleche { position: relative; width: 50px; height: 50px; border: 1px solid var(--encre); border-radius: 50%; background: transparent; color: var(--encre); cursor: pointer; transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.avis-fleche span::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translate(-30%, -50%) rotate(45deg);
}
#avis-suiv span::before { transform: translate(-70%, -50%) rotate(-135deg); }
.avis-fleche:hover:not(:disabled) { background: var(--encre); color: #fff; }
.avis-fleche:disabled { opacity: 0.28; cursor: default; }
.avis-piste {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px; padding: 2px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.avis-piste::-webkit-scrollbar { display: none; }
.avis-piste:focus-visible { outline: 2px solid var(--encre); outline-offset: 4px; }
.avis-carte { display: flex; flex-direction: column; margin: 0; padding: clamp(24px, 2.6vw, 32px); border: 1px solid var(--ligne); background: var(--papier); scroll-snap-align: start; }
.avis-exemple { align-self: flex-start; margin-bottom: 18px; padding: 3px 10px; border: 1px dashed var(--trait); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--doux); }
.avis-carte blockquote { margin: 0 0 28px; }
.avis-carte blockquote p { font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.5; letter-spacing: -0.006em; }
.avis-carte blockquote p::before { content: "«\00a0"; }
.avis-carte blockquote p::after { content: "\00a0»"; }
.avis-carte figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--filet); font-size: 15px; }
.avis-carte figcaption strong { display: block; }
.avis-carte figcaption span { display: block; color: var(--doux); }

/* ---- fin de page : le plan se dessine en fond ------------------------------------ */
.bande-fin { position: relative; overflow: hidden; background: var(--encre); color: #fff; padding: clamp(80px, 10vw, 136px) 0; }
.fin-dessin { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; height: 100%; pointer-events: none; }
.fin-dessin path { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 1.4; }
.fin-dessin path:nth-child(2) { fill: rgba(200, 96, 43, 0.1); stroke: rgba(200, 96, 43, 0.75); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .js .fin-dessin path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .fin-dessin.vu path { animation: trace 1.8s cubic-bezier(0.45, 0, 0.2, 1) forwards; }
  .js .fin-dessin.vu path:nth-child(2) { animation-delay: 0.5s; }
  .js .fin-dessin.vu path:nth-child(3) { animation-delay: 0.9s; }
  .js .fin-dessin.vu path:nth-child(4) { animation-delay: 0.25s; }
}
.fin { position: relative; }
.fin .cta { margin-top: 34px; }
.bande-fin h2 { max-width: 15em; color: #fff; font-size: clamp(31px, 3.7vw, 50px); line-height: 1.05; letter-spacing: -0.032em; }
.bande-fin p { margin-top: 14px; max-width: 34em; color: #c3c8cc; font-size: 17.5px; }
.bande-fin .cta:focus-visible { outline-color: #fff; }

/* ---- pied de page ---------------------------------------------------------------- */
.pied { padding: 44px 0 52px; border-top: 1px solid var(--filet); font-size: 15px; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; }
.pied p { margin-top: 8px; max-width: 30em; color: var(--doux); }
.pied p:first-child { margin-top: 0; }
.liens-pied { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; padding: 0; list-style: none; }
.liens-pied a { color: var(--doux); }

/* bouton fixe en bas de l'écran du téléphone, une fois le premier bouton passé */
.cta-fixe {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); border-top: 1px solid var(--filet);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cta-fixe .cta { width: 100%; }

/* ---- tailles d'écran ----------------------------------------------------------- */
@media (min-width: 761px) { .cta-fixe { display: none !important; } }
@media (max-width: 1080px) {
  .nav { display: none; }
  .js .menu-bouton { display: inline-grid; }
  .heros-grille { grid-template-columns: minmax(0, 1fr); }
  .planche { width: 100%; max-width: 640px; }
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
  .colonne-tete { position: static; margin-bottom: 8px; }
  .etapes-grille { grid-template-columns: minmax(0, 1fr); }
  .etapes-ecran { grid-column: 1; grid-row: 1; z-index: 2; width: 100%; max-width: 560px; top: 76px; padding-bottom: 16px; background: var(--papier); }
  .etapes-liste { grid-column: 1; grid-row: 2; }
  .js .etape { min-height: 46vh; padding-top: 28px; }
  .js .etapes-liste::before, .js .etapes-liste::after { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .entete-ligne { min-height: 60px; }
  .entete-actions { gap: 14px; }
  .entete-actions .cta-petit { display: none; }
  .heros { padding-top: 22px; }
  /* le plan de démonstration juste sous le titre : on le voit se dessiner dès l'arrivée */
  .heros-grille { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .heros-texte { display: contents; }
  .heros h1 { order: 1; }
  .planche { order: 2; margin-bottom: 30px; }
  .chapo { order: 3; }
  .heros-actions { order: 4; }
  .heros-prix { order: 5; }
  .heros h1 { font-size: clamp(36px, 10.4vw, 52px); margin-bottom: 20px; }
  .heros-actions .cta { width: 100%; }
  .types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 12px; padding: 2px 20px; }
  .types::-webkit-scrollbar { display: none; }
  .types button { flex: none; }
  .etat { font-size: 14px; }
  .video-cadre { border-radius: 12px; }
  .video-bas { padding: 12px; }
  .video-note { font-size: 12px; }
  .video-lancer[data-attente] .video-libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .etapes-ecran { top: 66px; margin: 0 -8px; width: calc(100% + 16px); }
  /* la barre « Commencer mon dossier » occupe le bas de l'écran pendant les étapes : place réservée */
  .etapes-grille.epingle .etapes-scene { top: 60px; height: calc(100vh - 60px); height: calc(100svh - 60px); gap: 20px; padding-bottom: 92px; }
  .etapes-grille.epingle .etapes-ecran { width: min(100%, calc((100vh - 410px) * 1.3)); width: min(100%, calc((100svh - 410px) * 1.3)); }
  .ecran-barre { height: 40px; padding: 0 10px; }
  .ecran-barre .marque { display: none; }
  .ecran-etapes { width: 100%; justify-content: space-between; }
  .ecran-etapes li { padding: 3px 7px; font-size: 11px; }
  .etape { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .etape-num { width: 36px; height: 36px; }
  .etape h3 { padding-top: 4px; }
  .relance .cta { width: 100%; }
  .tiroir > summary { gap: 12px; padding: 18px 0; }
  .tiroir .code { width: 4.2em; font-size: 13px; }
  #dossier .tiroir-contenu { grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; padding-left: 0; }
  .avis-tete { align-items: center; }
  .avis-piste { grid-auto-columns: 86%; gap: 16px; }
  .avis-fleche { width: 44px; height: 44px; }
  .fin .cta { width: 100%; }
  .fin-dessin { position: relative; top: auto; right: auto; bottom: auto; display: block; width: 100%; height: 190px; margin: -28px 0 14px; }
  .pied-grille { grid-template-columns: minmax(0, 1fr); }
  .pied { padding-bottom: 108px; }
}
@media (max-width: 380px) {
  .lien-espace { font-size: 14.5px; }
  .ecran-etapes li { padding: 3px 5px; font-size: 10.5px; }
}
@media print {
  .rv, .rv-suite > * { opacity: 1 !important; transform: none !important; }
  .entete, .cta-fixe, .tiroir-menu, .types, .astuce { display: none !important; }
}
