/* Scènes 3D (Three.js) : même langage que le site, trait + 3 nuances, ombres douces. */
[data-3d] { position: relative; }
[data-3d] canvas { display: block; width: 100%; height: 100%; }
.h3d { height: clamp(340px, 52vw, 600px); max-width: 1180px; margin: 28px auto 0; }
.card-illu[data-3d] { height: 190px; margin: 0 -6px 16px; }
.ind-illu[data-3d] { width: auto; height: 128px; margin: -6px -8px 12px; overflow: hidden; }
.method-illu[data-3d] { min-height: 420px; }
.method-illu[data-3d] canvas { position: relative; max-width: 620px; height: 420px; margin: 0 auto; }
.cta-illu[data-3d] { height: 320px; }
@media (max-width: 900px) { .cta-illu[data-3d] { height: 260px; } .method-illu[data-3d], .method-illu[data-3d] canvas { min-height: 300px; height: 300px; } }

/* Étiquettes de la scène d'accueil, dans le style des cartes du site */
.h3d-tags { position: absolute; inset: 0; pointer-events: none; }
.h3d-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 9px 13px 9px 10px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 28px -12px rgba(0,0,0,.18);
  font: 500 13px/1.25 var(--font-b, Inter, sans-serif); color: var(--ink); white-space: nowrap; text-align: left;
  opacity: 0; transform: translate(-50%, -100%) translateY(8px) scale(.96);
  transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.34,1.4,.64,1); will-change: transform; }
.h3d-tag.on { opacity: 1; transform: translate(-50%, -100%) translateY(0) scale(1); }
.h3d-tag small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.h3d-tag .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface-2); }
.h3d-tag .ic svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h3d-tag.ok .ic { background: #1D9E75; border-color: #1D9E75; }
.h3d-tag.ok .ic svg { stroke: #fff; }
.h3d-tag .num { font-family: var(--font-n, Geist, sans-serif); font-variant-numeric: tabular-nums; }
.h3d-tag.hot .ic { background: #1a1a1a; border-color: #1a1a1a; }
.h3d-tag.hot .ic svg { stroke: #fff; }
:root[data-theme="dark"] .h3d-tag.hot .ic { background: #f2f2f2; border-color: #f2f2f2; }
:root[data-theme="dark"] .h3d-tag.hot .ic svg { stroke: #0d0d0d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .h3d-tag.hot .ic { background: #f2f2f2; border-color: #f2f2f2; }
  :root:not([data-theme="light"]) .h3d-tag.hot .ic svg { stroke: #0d0d0d; }
}
@media (max-width: 700px) { .h3d-tag { font-size: 11.5px; padding: 7px 10px 7px 8px; gap: 8px; } .h3d-tag small { font-size: 10.5px; } .h3d-tag .ic { width: 22px; height: 22px; } .h3d-tag.opt { display: none; } }
.no3d [data-3d] canvas { display: none; }
.hero h1 .dim { color: var(--dim, #9b9b9b); }
@media (max-width: 700px) { .h3d { height: 300px; margin-top: 12px; } }
