/* Maquette en volume (accueil et réalisations) : la grille du haut de page devient le sol d'une maquette qui se construit au défilement. */
.build{position:relative}
.stage{position:sticky;top:0;height:100vh;height:100svh;margin-bottom:-100vh;margin-bottom:-100svh;overflow:hidden;z-index:0;pointer-events:none}
.stage canvas{display:block;width:100%;height:100%}
.veil{position:absolute;inset:0;background:radial-gradient(ellipse 86% 80% at var(--vx,60%) var(--vy,40%),rgba(255,255,255,0) 50%,#FFFFFF 100%)}
.tags{position:absolute;inset:0}
.tags .tag{position:absolute;left:0;top:0;white-space:nowrap;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--cu);will-change:transform,opacity}
.chip{position:absolute;left:0;top:0;white-space:nowrap;background:var(--bg);border:1px solid var(--rule);border-top:2px solid var(--cu);padding:7px 11px 8px;display:grid;gap:1px;will-change:transform,opacity}
.chip b{font-weight:900;font-stretch:118%;text-transform:uppercase;font-size:12px;line-height:1.1}
.chip span{font-size:12px;color:var(--soft)}
.hint{position:absolute;left:50%;transform:translateX(-50%);font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--soft);display:grid;justify-items:center;gap:4px}
.hint i{width:1px;height:22px;background:var(--cu);display:block}
.rail{position:absolute;right:18px;top:50%;transform:translateY(-50%);display:grid;gap:8px;justify-items:center;pointer-events:auto}
.rail span{width:2px;height:18px;background:var(--rule);display:block}
.rail span.on{background:var(--cu)}
.nx{margin-top:8px;width:36px;height:36px;border-radius:50%;border:1px solid var(--rule);background:var(--bg);cursor:pointer;font:700 15px "Archivo",sans-serif;color:var(--fg);padding:0}
.nx:hover{border-color:var(--cu)}
.nx:focus-visible{outline:2px solid var(--fg);outline-offset:3px}

html:not(.nogl) .build header.g{background-image:none}
html:not(.nogl) .build header.g::after{display:none}
.build header.g,.story{position:relative;z-index:1}
.build .word{width:max-content;max-width:100%}
.build .ghost{background:var(--bg)}

.story{pointer-events:none}
#offres.story{padding-top:0;scroll-margin-top:0}
.story .card,.story a{pointer-events:auto}
.step{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;gap:14px;padding-block:72px 24px}
.step .card{width:min(400px,100%)}
.step .lead{min-height:0}
.step .more{margin-top:4px}
.step.fin{align-items:center;justify-content:flex-end;padding-bottom:48px}
.vaz{padding-block:0 88px;border-bottom:0;position:relative;z-index:1;background:var(--bg)}
.ct,footer.dk{position:relative;z-index:1}
.botbtn{transition:transform .25s,opacity .25s}

/* réalisations */
.rhero{padding-block:34px 24px}
.rhero .back{margin-bottom:22px}
.rtitle{font-weight:900;font-stretch:118%;text-transform:uppercase;line-height:.95;letter-spacing:-.005em;font-size:clamp(28px,4.4vw,52px);margin:14px 0 0;text-wrap:balance;width:max-content;max-width:min(13ch,100%)}
.rhero .rlead{max-width:44ch;margin-top:16px}
.rz .rtag{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--cu);font-weight:700}
.rz h3{font-size:22px;line-height:1}
.rz .ask{font-size:15px;font-weight:600;margin-top:4px}
.rz .d{font-size:15px}
.rz .tech{margin-top:4px}
.rz .go{font-size:14px;font-weight:700;border-bottom:1px solid var(--cu);color:var(--fg);text-decoration:none;justify-self:start}
.rmore{display:grid;gap:10px}
.rmore summary{cursor:pointer;list-style:none;font-weight:700;font-size:14px;color:var(--cu)}
.rmore summary::-webkit-details-marker{display:none}
.rmore summary:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
.rmore[open] summary{display:none}
.rmore .d{margin-top:2px}
.rflat{display:none}
.viewer{display:flex;align-items:center;gap:14px;border-top:1px solid var(--rule);padding-top:12px;margin-top:6px}
.viewer button{flex:none;width:38px;height:38px;border-radius:50%;border:1px solid var(--rule);background:var(--bg);cursor:pointer;font:700 15px "Archivo",sans-serif;color:var(--fg);padding:0}
.viewer button:hover{border-color:var(--cu)}
.viewer button:focus-visible{outline:2px solid var(--cu);outline-offset:2px}
.cap{flex:1;min-width:0;font-size:13px;line-height:1.4;color:var(--soft);min-height:2.8em;display:flex;flex-direction:column;justify-content:center}
.cap b{color:var(--fg)}
.rdots{display:flex;gap:6px;margin-top:2px}
.rdots i{width:8px;height:8px;border-radius:50%;background:#D6D1C8;display:block}
.rdots i.on{background:var(--cu);width:20px;border-radius:4px}
.step.fin .rnote{text-align:center;max-width:36ch;background:rgba(255,255,255,.9);padding:4px 8px;margin:0}

@media (max-width:760px){
  .step{justify-content:flex-end;padding-block:24px max(20px,4svh)}
  .step .card{width:100%;padding:18px 18px 16px;gap:6px}
  .step .card ul,.step .card .how,.step .card .ex,.step .card .punch{display:none}
  .step .price{font-size:28px;margin-top:4px}
  .rail{top:30%;right:12px}
  .tags .tag{font-size:9px;letter-spacing:.03em}
  .chip{padding:6px 9px 7px}
  .chip span{display:none}
  .vaz{padding-bottom:64px}
  .step .card.rz{gap:8px}
  .rz h3{font-size:19px}
  .rz .ask{font-size:14px}
  .viewer{padding-top:10px;margin-top:2px}
  .instory .botbtn{transform:translateY(160%);opacity:0;pointer-events:none;visibility:hidden;transition:transform .25s,opacity .25s,visibility 0s .25s}
  .instory .ck{bottom:auto;top:calc(96px + env(safe-area-inset-top,0px))}
  .step.fin{padding-bottom:96px}
  .hint{left:20px;transform:none;justify-items:start}
}

@media (min-width:761px){
  .instory .ck{left:auto;right:20px;bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
@media (min-width:761px) and (max-height:720px){
  .step{padding-block:76px 16px}
  .step .card{padding:18px 20px 16px;gap:7px}
  .step .card ul{gap:5px;font-size:14px;margin-top:6px;padding-top:10px}
  .step .punch,.step .ex{margin-top:6px;padding-top:10px}
}

/* prix : hors taxes ou toutes taxes */
.pttc{display:none}
.ttc .pttc{display:inline}
.ttc .pht{display:none}
.prow{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin-top:8px}
.step .prow .price,.nogl .step .prow .price{margin-top:0;white-space:nowrap}
.tva{display:inline-flex;flex:none;border:1px solid var(--rule);border-radius:999px;padding:2px;background:var(--bg)}
.tva[hidden]{display:none}
.tva button{border:0;background:none;border-radius:999px;padding:7px 10px;font:700 11px/1 "Archivo",sans-serif;letter-spacing:.06em;color:var(--soft);cursor:pointer}
.tva button[aria-pressed="true"]{background:var(--fg);color:#fff}
.tva button:focus-visible{outline:2px solid var(--cu);outline-offset:2px}
/* téléphone : le bouton se range en bas à droite de la carte, sur la ligne du lien, pour ne pas bouger quand le prix s'allonge */
@media (max-width:760px){
  .step .prow{margin-top:4px}
  html:not(.nogl) .step .prow{display:block}
  html:not(.nogl) .step .card{position:relative}
  html:not(.nogl) .step .card .tva{position:absolute;right:18px;bottom:16px}
  html:not(.nogl) .step .card .more{margin-block:9px 5px}
}

/* sans WebGL : la même page, à plat */
.nogl .stage{display:none}
.nogl .story{pointer-events:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-block:28px 64px}
.nogl .step{min-height:0;padding:0;display:block}
.nogl .step:first-child{display:contents}
.nogl .step .kicker{grid-column:1/-1}
.nogl .step .card{width:auto;height:100%;opacity:1!important}
.nogl .step.fin{grid-column:1/-1;display:flex;align-items:flex-start;gap:14px;padding:14px 0 0}
.nogl .step .card ul{display:grid}
.nogl .step .card .how,.nogl .step .card .ex,.nogl .step .card .punch{display:block}
.nogl .step .price{font-size:34px;margin-top:8px}
.nogl .step .prow{margin-top:8px}
@media (max-width:900px){.nogl .step .prow{flex-direction:column;align-items:flex-start}}
.nogl .rflat{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;margin-top:6px}
.nogl .rflat figure{flex:0 0 auto;margin:0;scroll-snap-align:start;width:min(86%,340px)}
.nogl .rflat figure[data-t="ph"]{width:150px}
.nogl .rflat img{display:block;width:100%;height:auto;border:1px solid var(--rule)}
.nogl .rflat figcaption{font-size:13px;line-height:1.4;color:var(--soft);margin-top:6px}
.nogl .rflat figcaption b{color:var(--fg)}
.nogl .viewer,.nogl .rdots{display:none}
.nogl .step.fin .rnote{text-align:left;padding:0;max-width:none}
.nogl .botbtn{transform:none;opacity:1;pointer-events:auto;visibility:visible}
.nogl .rmore summary{display:none}
@media (max-width:760px){.nogl .story{grid-template-columns:1fr}}
