/* oterovalerie.fr — système visuel « terrain de points, jour & nuit »
   Clair = plein jour (points azur + soleil) · Sombre = vol de nuit (points bleus + étoiles) */

:root {
  --bg: #EAF3FC;
  --ink: #0D2440;
  --ink-2: #46617F;
  --ink-3: #7A90A8;
  --panel: rgba(255, 255, 255, .66);
  --panel-strong: rgba(255, 255, 255, .88);
  --stroke: rgba(13, 36, 64, .12);
  --specular: rgba(255, 255, 255, .95);
  --accent: #0A84FF;
  --grad: linear-gradient(95deg, #0A84FF 0%, #38C7FF 48%, #FFB340 100%);
  --chip: rgba(10, 132, 255, .10);
  --glow: 0 0 50px rgba(255, 179, 64, .35);
  --shadow: 0 24px 55px -22px rgba(13, 36, 64, .35);
  --badge-bg: #0D2440;
  --badge-ink: #FFFFFF;
  --sky: linear-gradient(180deg, #7FBEFF 0%, #B5DBFF 38%, #E2F0FC 72%, #F6FAFF 100%);
  --callout: rgba(255, 179, 64, .14);
  --callout-ink: #8A5A00;
  --bezel: #06080C;
  --edge: rgba(13, 36, 64, .42);
  --edge-in: rgba(255, 255, 255, .13);
  --screen-off: #0B0D12;
  --sh-a: rgba(13, 36, 64, .14);
  --sh-b: rgba(13, 36, 64, .26);
  --glare: rgba(255, 255, 255, .34);
  --aura: .42;
  --aura-f: blur(48px) saturate(1.9) brightness(1.75);
  --mur-bg: #D2E5F9;
  --etiquette: rgba(13, 36, 64, .075);
  --verre: rgba(255, 255, 255, .74);
  --ok: #1B8A4C;
  --err: #C8323E;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05060B;
    --ink: #F4F6FF;
    --ink-2: #9BA3C0;
    --ink-3: #5C6480;
    --panel: rgba(16, 20, 36, .62);
    --panel-strong: rgba(24, 30, 52, .85);
    --stroke: rgba(158, 176, 255, .16);
    --specular: rgba(190, 210, 255, .28);
    --accent: #3E8BFF;
    --grad: linear-gradient(95deg, #3E8BFF 5%, #9F6BFF 55%, #FF6FB4 100%);
    --chip: rgba(62, 139, 255, .14);
    --glow: 0 0 60px rgba(62, 139, 255, .25);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .85);
    --badge-bg: #F4F6FF;
    --badge-ink: #0A0D18;
    --sky: radial-gradient(90% 60% at 50% 0%, #101830 0%, transparent 60%), radial-gradient(70% 50% at 80% 100%, #1A1030 0%, transparent 55%), #05060B;
    --callout: rgba(255, 179, 64, .12);
    --callout-ink: #FFC96B;
    --bezel: #000000;
    --edge: rgba(190, 205, 255, .34);
    --edge-in: rgba(255, 255, 255, .10);
    --screen-off: #05060B;
    --sh-a: rgba(0, 0, 0, .5);
    --sh-b: rgba(0, 0, 0, .78);
    --glare: rgba(255, 255, 255, .20);
    --aura: .62;
    --aura-f: blur(48px) saturate(1.7);
    --mur-bg: #0A0D18;
    --etiquette: rgba(244, 246, 255, .11);
    --verre: rgba(12, 15, 28, .82);
    --ok: #46DF80;
    --err: #FF7B84;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05060B;
  --ink: #F4F6FF;
  --ink-2: #9BA3C0;
  --ink-3: #5C6480;
  --panel: rgba(16, 20, 36, .62);
  --panel-strong: rgba(24, 30, 52, .85);
  --stroke: rgba(158, 176, 255, .16);
  --specular: rgba(190, 210, 255, .28);
  --accent: #3E8BFF;
  --grad: linear-gradient(95deg, #3E8BFF 5%, #9F6BFF 55%, #FF6FB4 100%);
  --chip: rgba(62, 139, 255, .14);
  --glow: 0 0 60px rgba(62, 139, 255, .25);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .85);
  --badge-bg: #F4F6FF;
  --badge-ink: #0A0D18;
  --sky: radial-gradient(90% 60% at 50% 0%, #101830 0%, transparent 60%), radial-gradient(70% 50% at 80% 100%, #1A1030 0%, transparent 55%), #05060B;
  --callout: rgba(255, 179, 64, .12);
  --callout-ink: #FFC96B;
  --bezel: #000000;
  --edge: rgba(190, 205, 255, .34);
  --edge-in: rgba(255, 255, 255, .10);
  --screen-off: #05060B;
  --sh-a: rgba(0, 0, 0, .5);
  --sh-b: rgba(0, 0, 0, .78);
  --glare: rgba(255, 255, 255, .20);
  --aura: .62;
  --aura-f: blur(48px) saturate(1.7);
  --mur-bg: #0A0D18;
  --etiquette: rgba(244, 246, 255, .11);
  --verre: rgba(12, 15, 28, .82);
  --ok: #46DF80;
  --err: #FF7B84;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
img { max-width: 100%; }

/* ---------- Bascule FR/EN — toutes les conventions des contenus importés ---------- */
html:not(.en) .lang-en,
html:not(.en) [data-en],
html:not(.en) [data-i18n="en"],
html:not(.en) [data-lang="en"],
html:not(.en) .doc [lang="en"],
html:not(.en) .section-en { display: none !important; }
html.en .lang-fr,
html.en [data-fr],
html.en [data-i18n="fr"],
html.en [data-lang="fr"],
html.en .doc [lang="fr"],
html.en .section-fr { display: none !important; }
html.en .lang-en { display: inline; }

/* ---------- Ciel 3D ---------- */
#bg {
  position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%;
  background: var(--sky); transition: background .5s ease;
}
#page { position: relative; }
@keyframes barrel { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
#page.rolling { animation: barrel 1.5s cubic-bezier(.5, .05, .3, 1) 1; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav-shell { position: sticky; top: 14px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; }
nav.site-nav {
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 1080px; padding: 10px 12px 10px 22px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid var(--stroke); border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { font-weight: 700; letter-spacing: -0.01em; font-size: 1rem; white-space: nowrap; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 18px; flex: 1; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .18s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.controls { display: flex; gap: 8px; margin-left: auto; }
.seg { display: flex; background: var(--chip); border-radius: 999px; padding: 3px; border: 1px solid var(--stroke); }
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: .8rem; font-weight: 600; padding: 4px 11px;
  border-radius: 999px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.seg button[aria-pressed="true"] { background: var(--panel-strong); color: var(--ink); box-shadow: 0 1px 5px rgba(0, 0, 0, .2); }
.seg button:focus-visible, a:focus-visible, .tabs button:focus-visible, .roll-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- Héros (accueil) ---------- */
header.hero { padding: 68px 0 26px; text-align: center; position: relative; }
.eyebrow {
  font-size: .88rem; font-weight: 600; letter-spacing: .07em;
  color: var(--ink-2); margin: 0 0 20px;
}
h1.display {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 0 22px; text-wrap: balance;
}
.grad {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1.display .grad { animation: shine 7s ease-in-out infinite alternate; }
@keyframes shine { to { background-position: 100% 0; } }
.hero p.lede { max-width: 34em; margin: 0 auto 14px; color: var(--ink-2); font-size: 1.18rem; text-wrap: balance; }
.hero .hint { color: var(--ink-3); font-size: .82rem; letter-spacing: .06em; }
.roll-btn {
  appearance: none; cursor: pointer; font: inherit;
  margin-top: 6px; padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel-strong); color: var(--ink);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  box-shadow: var(--shadow), var(--glow);
  transition: transform .18s ease;
}
.roll-btn:hover { transform: scale(1.06) rotate(-2deg); }

/* ---------- Sélecteur d'apps (dock) ---------- */
.dock {
  position: relative; height: 172px; max-width: 720px; margin: 22px auto 0;
  touch-action: pan-y;
}
.dock-strip {
  position: absolute; inset: 0; overflow: hidden; cursor: grab;
}
.dock-strip:active { cursor: grabbing; }
/* Icônes (dock, cartes, héros) : AUCUN fond sous l'image. Un fond blanc sous
   une image arrondie transparaît dans les pixels anticrénelés du bord et dessine
   un liseré blanc en thème sombre sur les icônes foncées (2026-09-23). Les PNG
   sont des carrés pleins, tuile bord à bord : c'est le border-radius qui arrondit
   (des coins transparents de rayon ≤ 20 % restent sous ce rayon de 22,5–24 %). */
.dock-strip .dock-app {   /* chaque icône est un vrai lien */
  position: absolute; left: 50%; top: 30px; width: 78px; height: 78px;
  margin-left: -39px; display: block;
  border-radius: 24%; box-shadow: var(--shadow);
  -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  cursor: pointer; will-change: transform, opacity;
}
.dock-strip .dock-app:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.dock-strip img {
  display: block; width: 100%; height: 100%; max-width: none; border-radius: inherit;
  -webkit-user-drag: none; pointer-events: none;
}
.dock-arrow {
  position: absolute; top: 48px; z-index: 120;   /* au-dessus des icônes (z ≤ 100) : sur téléphone, l'icône voisine recouvrait la flèche */
  width: 40px; height: 40px; border-radius: 999px;
  appearance: none; border: 1px solid var(--stroke);
  background: var(--panel-strong); color: var(--ink-2);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, color .15s ease;
}
.dock-arrow:hover { color: var(--ink); transform: scale(1.1); }
.dock-arrow.prev { left: 0; }
.dock-arrow.next { right: 0; }
.car-caption {
  position: absolute; bottom: 8px; left: 0; right: 0; text-align: center;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  transition: color .18s ease;
}
.car-caption:hover { color: var(--accent); text-decoration: underline; }

/* Dock compact : pied de page de toutes les pages sauf l'accueil (inc/footer.php) */
.dock-mini { height: 100px; max-width: 460px; margin: 0 auto 4px; }
.dock-mini .dock-app { width: 44px; height: 44px; margin-left: -22px; top: 12px; box-shadow: 0 10px 24px -12px rgba(13, 36, 64, .45); }
.dock-mini .dock-arrow { width: 30px; height: 30px; top: 19px; font-size: 1.05rem; }
.dock-mini .car-caption { bottom: 4px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.dock-mini-label { margin: 0 0 2px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
h2.section-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.025em; font-weight: 700; margin: 0 0 8px; text-wrap: balance; }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 46em; }

/* ---------- Cartes d'apps ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; perspective: 1200px; }
.card {
  position: relative; padding: 26px; display: flex; flex-direction: column; gap: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--stroke); border-radius: 24px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card .new {   /* pastille « Nouveau / Bientôt » : dans le flux de .top, poussée à droite —
                  en position absolue avec un padding-right fixe, le nom de l'app la touchait,
                  voire passait dessous, sur les cartes à 3 colonnes (2026-09-23) */
  margin-left: auto; flex: none; white-space: nowrap;
  background: var(--chip); color: var(--accent); border: 1px solid var(--stroke);
  border-radius: 999px; padding: 3px 11px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.card .glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), var(--specular), transparent 65%);
  transition: opacity .25s ease;
}
.card.tilting { transition: none; }
.card.tilting .glare { opacity: 1; }
.card .top { display: flex; align-items: center; gap: 16px; transform: translateZ(30px); }
.card .top > div { min-width: 0; }   /* le nom passe à la ligne plutôt que de toucher la pastille */
.card img.icon { width: 64px; height: 64px; border-radius: 22.5%; display: block; box-shadow: var(--shadow); object-fit: cover; }
.card h3 { margin: 0; font-size: 1.18rem; letter-spacing: -0.01em; }
.card .platforms { color: var(--ink-3); font-size: .78rem; font-weight: 600; letter-spacing: .05em; }
.card p.desc { margin: 0; color: var(--ink-2); font-size: .95rem; flex: 1; transform: translateZ(18px); }
.card .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateZ(24px); flex-wrap: wrap; }
a.link-more {
  color: var(--accent); text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 6px;
  padding: 10px 0; margin: -10px 0;   /* zone de toucher de 43 px sans déplacer la ligne */
}
a.link-more:hover { text-decoration: underline; }
a.store-badge img { display: block; height: 40px; width: auto; }
html.en a.store-badge img.lang-en { display: block; }
a.store-badge { display: inline-block; border-radius: 8px; transition: transform .18s ease; }
a.store-badge:hover { transform: scale(1.05); }
.app-hero a.store-badge img { height: 48px; }

/* ---------- Fiche app ---------- */
/* Marges latérales de 24 px écrites ICI : le raccourci padding écraserait
   celles de .wrap-narrow et, sur téléphone, le texte toucherait les bords. */
header.app-hero { padding: 58px 24px 34px; text-align: center; }
.app-hero img.icon-lg {
  width: 104px; height: 104px; border-radius: 24%;
  box-shadow: var(--shadow), var(--glow); margin-bottom: 22px; object-fit: cover;
}
h1.app-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em;
  font-weight: 700; margin: 0 0 14px; text-wrap: balance;
}
.app-hero p.tagline { max-width: 34em; margin: 0 auto 18px; color: var(--ink-2); font-size: 1.12rem; text-wrap: balance; }
/* Mots-clés d'une fiche : des ÉTIQUETTES (2026-11-12), plus des bulles. Avant,
   c'étaient des pilules bleues à contour — la forme d'un bouton, juste au-dessus
   des onglets qui, eux, se cliquent — et la règle « .chips span » touchait aussi
   le <span class="lang-…"> intérieur : chaque bulle était dessinée deux fois.
   D'où « > span » (l'enfant direct seulement), un rectangle gris sans contour
   et le texte à l'encre plutôt qu'au bleu des liens. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 22px; }
.chips > span { background: var(--etiquette); color: var(--ink); border-radius: 7px; padding: 3px 10px; font-size: .8rem; font-weight: 600; }
.meta-line { margin-top: 14px; color: var(--ink-3); font-size: .8rem; letter-spacing: .04em; }

/* ---------- Onglets ---------- */
.tabs-shell { display: flex; justify-content: center; margin: 8px 0 34px; }
.tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--stroke); border-radius: 999px; box-shadow: var(--shadow);
}
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 20px;
  border-radius: 999px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.tabs button[aria-selected="true"] { background: var(--panel-strong); color: var(--ink); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.tabs a.tab-link {
  display: inline-block; color: var(--ink-2); text-decoration: none;
  font-size: .92rem; font-weight: 600; padding: 8px 20px; border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.tabs a.tab-link:hover, .tabs a.tab-link:focus-visible { background: var(--panel-strong); color: var(--ink); }
.panel { padding-bottom: 70px; }

/* ---------- Une teinte par app ----------
   Les icônes ne suffisent pas à différencier : cinq des onze (CapRoute, Voluma,
   METAR•TAF Flow, Ping Pong Ball, PlexiSafe) ont une dominante bleue entre 208°
   et 222°. Les teintes ci-dessous sont écartées délibérément, tout en restant
   fidèles à chaque app. --app est lue par .hero-stage .stage::before (le halo
   de secours sans JS), qui compose son color-mix() sur place. */
body[data-app="aeroradar"]      { --app: #0C8C3C; }
body[data-app="airmultichrono"] { --app: #0B8A80; }
body[data-app="caproute"]       { --app: #0A72D6; }
body[data-app="lectiotempo"]    { --app: #6C9B0B; }
body[data-app="metartafflow"]   { --app: #2C4FC7; }
body[data-app="pingpongball"]   { --app: #0E8F6E; }
body[data-app="plexisafe"]      { --app: #0E7C9B; }
body[data-app="quantumpass"]    { --app: #6E54FF; }
body[data-app="skynotes"]       { --app: #A8730A; }
body[data-app="thetaresonance"] { --app: #B5379E; }
body[data-app="todotasks"]      { --app: #C2410C; }
body[data-app="voluma"]         { --app: #0C86C4; }
body[data-app="basic1983"]      { --app: #B42318; }
body[data-app="qrdesign"]       { --app: #5B5FF0; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-app="aeroradar"]      { --app: #46DF80; }
  :root:not([data-theme="light"]) body[data-app="airmultichrono"] { --app: #2FD3C2; }
  :root:not([data-theme="light"]) body[data-app="caproute"]       { --app: #57ABFF; }
  :root:not([data-theme="light"]) body[data-app="lectiotempo"]    { --app: #B9E84A; }
  :root:not([data-theme="light"]) body[data-app="metartafflow"]   { --app: #7E9BFF; }
  :root:not([data-theme="light"]) body[data-app="pingpongball"]   { --app: #3FD9A8; }
  :root:not([data-theme="light"]) body[data-app="plexisafe"]      { --app: #3FC2EE; }
  :root:not([data-theme="light"]) body[data-app="quantumpass"]    { --app: #9B86FF; }
  :root:not([data-theme="light"]) body[data-app="skynotes"]       { --app: #FFCF4D; }
  :root:not([data-theme="light"]) body[data-app="thetaresonance"] { --app: #F06FD0; }
  :root:not([data-theme="light"]) body[data-app="todotasks"]      { --app: #FF8A4C; }
  :root:not([data-theme="light"]) body[data-app="voluma"]         { --app: #46BEE8; }
  :root:not([data-theme="light"]) body[data-app="basic1983"]      { --app: #FF7A6B; }
  :root:not([data-theme="light"]) body[data-app="qrdesign"]       { --app: #8E90FF; }
}
:root[data-theme="dark"] body[data-app="aeroradar"]      { --app: #46DF80; }
:root[data-theme="dark"] body[data-app="airmultichrono"] { --app: #2FD3C2; }
:root[data-theme="dark"] body[data-app="caproute"]       { --app: #57ABFF; }
:root[data-theme="dark"] body[data-app="lectiotempo"]    { --app: #B9E84A; }
:root[data-theme="dark"] body[data-app="metartafflow"]   { --app: #7E9BFF; }
:root[data-theme="dark"] body[data-app="pingpongball"]   { --app: #3FD9A8; }
:root[data-theme="dark"] body[data-app="plexisafe"]      { --app: #3FC2EE; }
:root[data-theme="dark"] body[data-app="quantumpass"]    { --app: #9B86FF; }
:root[data-theme="dark"] body[data-app="skynotes"]       { --app: #FFCF4D; }
:root[data-theme="dark"] body[data-app="thetaresonance"] { --app: #F06FD0; }
:root[data-theme="dark"] body[data-app="todotasks"]      { --app: #FF8A4C; }
:root[data-theme="dark"] body[data-app="voluma"]         { --app: #46BEE8; }
:root[data-theme="dark"] body[data-app="basic1983"]      { --app: #FF7A6B; }
:root[data-theme="dark"] body[data-app="qrdesign"]       { --app: #8E90FF; }

/* ---------- L'écran sans châssis (« verre nu », 2026-11-12) ----------
   Remplace le châssis métal du 2026-09-01 (coque grise en dégradé, tranche en
   douze ombres, liseré conique, boutons, ombre au sol, pastilles flottantes),
   jugé « cheap ». Il reste l'écran : un bord noir fin — celui de la dalle —,
   un liseré d'un pixel et une ombre en trois couches. Au repos il est À PLAT ;
   site.js le fait pivoter de quelques degrés à l'approche du pointeur (ou au
   défilement, au doigt) et fait passer un reflet sur le verre.

   Le BALISAGE des fiches n'a pas changé : .dev-rim, .dev-keys, .dev-shadow et
   .dev-pin y sont toujours, simplement masqués plus bas. Revenir en arrière
   ne demande donc que ce bloc.

   Cotes en % de la largeur du corps (unités cqw). Le rayon de l'écran est celui
   de l'appareil réel (relevé sur les cotes constructeur de l'ancien châssis) ;
   le rayon extérieur s'en déduit par concentricité : --r-out = rayon + bord.

   Aucune île dynamique n'est dessinée en CSS : elle est déjà dans le pixel des
   captures. Le ratio de l'écran vient de l'image elle-même, laissée dans le
   flux : aucun des huit ratios du site n'est rogné. */

@property --ryn { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --rxn { syntax: "<number>"; inherits: true; initial-value: 0; }

.stage {
  position: relative;
  display: grid; place-items: center;
  perspective: 1500px;
  perspective-origin: 50% 50%;
}

.dev {
  container-type: inline-size;      /* toutes les cotes filles en cqw = % du corps */
  position: relative;
  width: min(calc(var(--dev-scale, 1) * var(--dev-base, 300px)), var(--dev-max, 86vw));
  transform: rotateY(calc(var(--ryn) * 1deg)) rotateX(calc(var(--rxn) * 1deg));
  transform-origin: 50% 56%;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  --r-in: calc(var(--r-out) - var(--bez));
}
.dev.tilting { transition: none; }  /* le ressort JS pilote image par image */

/* iPhone 17 Pro, portrait puis paysage */
.dev--phone      { --bez: 1.70cqw; --r-out: 15.37cqw; --dev-base: 300px; }
.dev--phone-land { --bez: 0.78cqw; --r-out:  6.97cqw; --dev-base: 620px; }
/* iPad Pro 13", portrait puis paysage */
.dev--pad        { --bez: 2.00cqw; --r-out:  6.13cqw; --dev-base: 400px; }
.dev--pad-land   { --bez: 1.50cqw; --r-out:  4.62cqw; --dev-base: 560px; }
/* iPad mini, en paysage */
.dev--mini-land  { --bez: 1.50cqw; --r-out:  4.22cqw; --dev-base: 540px; }
/* Fenêtre macOS : la capture embarque déjà son chrome et ses trois pastilles */
.dev--mac        { --bez: 0cqw;    --r-out:  1.30cqw; --dev-base: 660px; }

.dev-body {
  position: relative;
  border-radius: var(--r-out);
  padding: var(--bez);
  background: var(--bezel);
  box-shadow:
    0 0 0 1px var(--edge), inset 0 0 0 1px var(--edge-in),
    0 2px 4px var(--sh-a), 0 16px 30px -12px var(--sh-b), 0 46px 84px -34px var(--sh-b);
}

.dev-screen {
  position: relative;
  border-radius: var(--r-in);
  overflow: hidden;
  background: var(--screen-off);
  isolation: isolate;
  line-height: 0;
}
.dev-screen img { display: block; width: 100%; height: auto; }
html.en .dev-screen img.lang-en { display: block; }

/* Reflet : une bande claire qui traverse le verre pendant que l'écran pivote.
   --gx (position, 20 → 80) et --go (opacité, 0 au repos) sont écrits par le
   ressort de site.js ; sans JS le reflet reste invisible. */
.dev-glint {
  position: absolute; inset: 0; border-radius: var(--r-in);
  pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 38%, var(--glare) 50%, transparent 62%);
  background-size: 300% 100%; background-position: calc(var(--gx, 50) * 1%) 0;
  mix-blend-mode: screen; opacity: var(--go, 0);
}

/* Pièces de l'ancien châssis, toujours dans le balisage des fiches. */
.dev-rim, .dev-keys, .dev-shadow, .dev-pin { display: none; }

/* Halo : la capture elle-même, floutée derrière l'écran. Chaque app reçoit
   ainsi sa couleur sans réglage. site.js clone l'image du héros dans
   .dev-aura (premier enfant de .dev) ; sans JS, le halo à la teinte --app
   ci-dessous reste en place. */
.dev-aura {
  position: absolute; inset: -2%; z-index: -1; pointer-events: none;
  filter: var(--aura-f); opacity: var(--aura);
  transform: translateY(5%) scale(1.04);
}
.dev-aura img { display: block; width: 100%; height: 100%; border-radius: var(--r-out); }
html.en .dev-aura img.lang-en { display: block; }

/* ---------- Héros produit : l'écran est le sujet de la page ---------- */
.hero-stage { padding: 20px 0 76px; }
.hero-stage .stage { --dev-scale: 1; }
.hero-stage .dev { will-change: transform; }

/* Halo à la teinte de l'app (secours sans JS). Le color-mix() est écrit ICI,
   dans la propriété qui l'utilise : composé sur :root il figerait la valeur de
   --app avant que body ne pose la sienne, et toutes les apps resteraient bleues. */
.hero-stage .stage::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  left: 50%; top: 2%; width: min(720px, 92vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
      color-mix(in oklab, var(--app, var(--accent)) 22%, transparent) 0%,
      color-mix(in oklab, var(--app, var(--accent)) 7%, transparent) 44%,
      transparent 72%);
}
.hero-stage .stage:has(.dev-aura)::before { display: none; }

/* ---------- Râtelier : les autres captures ----------
   Sans JavaScript : une rangée d'écrans réduits, chacun avec sa légende.
   Avec : site.js en fait un ÉVENTAIL (bloc suivant). */
.rack {
  display: flex; flex-wrap: wrap; gap: 40px 34px;
  justify-content: center; align-items: flex-end;
  margin-bottom: 44px;
}
.rack .stage { --dev-scale: .58; --dev-max: 74vw; }
/* BASIC 1983 : l'iPad mini en paysage porte l'écran principal ; sa taille est
   bornée aussi par la HAUTEUR de la fenêtre (une fenêtre large mais basse).
   Les règles .rack ne servent plus qu'au râtelier sans JS. */
body[data-app="basic1983"] .hero-stage .stage                { --dev-scale: .72; --dev-max: min(84vw, 96vh); }
body[data-app="basic1983"] .rack .stage:has(.dev--mini-land) { --dev-scale: .64; --dev-max: min(70vw, 90vh); }
body[data-app="basic1983"] .rack .stage:has(.dev--phone)     { --dev-scale: .56; --dev-max: min(40vw, 42vh); }
body[data-app="basic1983"] .rack .stage:has(.dev--pad)       { --dev-scale: .80; --dev-max: min(60vw, 64vh); }
body[data-app="basic1983"] .rack .stage:has(.dev--pad-land)  { --dev-scale: .66; --dev-max: min(70vw, 90vh); }
.rack figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rack figcaption {
  color: var(--ink-3); font-size: .82rem; text-align: center;
  max-width: 20em; text-wrap: balance;
}

/* ---------- Éventail (2026-11-12) ----------
   site.js range les figures du râtelier dans un ou deux éventails : les
   captures DEBOUT ensemble (même hauteur --fan-h : un iPad y est plus large
   qu'un iPhone), les captures COUCHÉES ensemble (.fan--land, même largeur
   --fan-w). Balisage produit :
     .rack.rack--fan > .fan[.fan--land] > .fan-cards > figure…  puis  .fan-bar
   Chaque figure reçoit --o (décalage visible, borné), --a (sa valeur absolue),
   --z (rang d'empilement) et aria-current. La carte choisie est au centre,
   droite ; les autres s'écartent, tournent un peu et s'assombrissent. La
   légende de la carte choisie est recopiée dans .fan-legende. L'éventail est
   refermé tant qu'il n'est pas arrivé à l'écran (.ouvert). */
.rack.rack--fan { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 26px; }
.fan { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.fan-cards {
  --fan-h: min(430px, 84vw, 88vh); --fan-pas: calc(var(--fan-h) * .30); --fan-rot: 6deg;   /* 88vh : un iPhone tenu couché */
  display: grid; justify-items: center; align-items: end;
  width: 100%; padding: 20px 0 30px; touch-action: pan-y;
}
.fan--land .fan-cards { --fan-w: min(500px, 74vw); --fan-pas: calc(var(--fan-w) * .30); --fan-rot: 3.5deg; }
.fan:not(.ouvert) .fan-cards { --fan-pas: 14px; --fan-rot: 1.5deg; }
@media (hover: hover) and (pointer: fine) {
  .fan.ouvert .fan-cards:hover { --fan-pas: calc(var(--fan-h) * .335); --fan-rot: 7deg; }
  .fan--land.ouvert .fan-cards:hover { --fan-pas: calc(var(--fan-w) * .33); --fan-rot: 4deg; }
}
.fan figure {
  grid-area: 1 / 1; --o: 0; --a: 0; --z: 0;
  cursor: pointer; transform-origin: 50% 100%;
  transform: translateX(calc(var(--o) * var(--fan-pas))) translateY(calc(var(--a) * var(--a) * 8px))
             rotate(calc(var(--o) * var(--fan-rot))) scale(calc(1 - var(--a) * .05));
  transition: transform .65s cubic-bezier(.2, .9, .25, 1.08), filter .4s ease;
  z-index: calc(10 - var(--z));
}
.fan figure:not([aria-current="true"]) { filter: brightness(.84) saturate(.9); }
.fan figure:not([aria-current="true"]):hover { filter: brightness(.96); }
.fan figure[aria-current="true"] { cursor: default; }
.fan figcaption { display: none; }
.fan .dev--phone { width: calc(var(--fan-h) * .4686); }   /* largeur = hauteur commune × ratio du corps */
.fan .dev--pad   { width: calc(var(--fan-h) * .7576); }
.fan--land .dev  { width: var(--fan-w); }
.fan .dev-body {   /* cartes empilées : l'ombre longue du héros noircirait la pile */
  box-shadow:
    0 0 0 1px var(--edge), inset 0 0 0 1px var(--edge-in),
    0 2px 4px var(--sh-a), 0 14px 26px -12px var(--sh-b);
}
.fan-bar { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; }
.fan-legende {
  margin: 0; min-width: min(20em, 54vw); max-width: 26em; text-align: center;
  color: var(--ink-2); font-size: .9rem; font-weight: 600; text-wrap: balance;
}
.fan-fleche {
  appearance: none; flex: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--stroke); background: var(--panel-strong); color: var(--ink-2);
  font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, color .15s ease;
}
.fan-fleche:hover { color: var(--ink); transform: scale(1.1); }
.fan-fleche:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fan-astuce { display: block; margin-top: 3px; font-size: .78rem; font-weight: 500; color: var(--ink-3); }
/* Au doigt, les cartes écartées dépasseraient de la fenêtre : un téléphone
   dézoome alors toute la page pour les faire tenir (le overflow-x: hidden de
   body n'y change rien). L'éventail va donc d'un bord à l'autre de la fenêtre
   (24 px = marge de .wrap-narrow) et coupe ce qui dépasse. Pas à la souris :
   la loupe doit pouvoir sortir de l'éventail. */
@media (hover: none), (pointer: coarse) {
  .fan-cards { width: calc(100% + 48px); margin-inline: -24px; overflow-x: clip; }
}
/* Fenêtre étroite : les cartes prennent plus de place (un iPhone y fait la
   moitié de la largeur, un iPad 84 %), les voisines se devinent au bord. */
@media (max-width: 760px) {
  .fan-cards { --fan-h: min(430px, 112vw, 88vh); }
  .fan--land .fan-cards { --fan-w: min(500px, 78vw); }
}

/* ---------- Écran éteint : app publiée sans capture ---------- */
.dev--vide .dev-screen { aspect-ratio: 402 / 874; display: grid; place-items: center; line-height: 1.5; }
.dev--vide .dev-screen p {
  color: var(--ink-3); font-size: .8rem; line-height: 1.5;
  text-align: center; padding: 0 2em; margin: 0;
}
.desc-block { max-width: 46em; margin: 0 auto; color: var(--ink-2); font-size: 1.02rem; text-align: center; }
.callout {
  background: var(--callout); color: var(--callout-ink);
  border: 1px solid var(--stroke); border-radius: 16px;
  padding: 14px 18px; font-size: .92rem; max-width: 46em; margin: 26px auto 0;
}

/* ---------- Documents importés (guide, confidentialité) ---------- */
.doc {
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--stroke); border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 48px);
  overflow-wrap: break-word;
}
.doc h1 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 12px; }
.doc h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin: 30px 0 8px; }
.doc h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin: 26px 0 8px; }
.doc h4 { font-size: 1rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); font-size: .96rem; }
.doc p { margin: 0 0 12px; max-width: 68ch; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc b, .doc strong { color: var(--ink); }
.doc a { color: var(--accent); }
.doc blockquote {
  margin: 0 0 14px; padding: 12px 18px;
  background: var(--callout); color: var(--callout-ink);
  border: 1px solid var(--stroke); border-radius: 14px;
}
.doc blockquote p { color: inherit; margin: 0; }
.doc hr { border: 0; border-top: 1px solid var(--stroke); margin: 24px 0; }
.doc code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .85em; background: var(--chip); border-radius: 6px; padding: 1px 6px; }
.doc img { border-radius: 12px; }
.doc .table-scroll, .doc-table-wrap { overflow-x: auto; }
.doc table { border-collapse: collapse; margin: 6px 0 14px; min-width: 340px; }
.doc th, .doc td { text-align: left; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--stroke); font-size: .92rem; }
.doc th { color: var(--ink-3); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.doc td { color: var(--ink-2); }
.doc .sig { color: var(--ink-3); font-size: .85rem; margin-top: 26px; }
.doc .callout { margin: 0 0 22px; max-width: none; }
.doc-note { color: var(--ink-3); font-size: .82rem; max-width: 68ch; margin: 14px auto 0; text-align: center; }

/* ---------- Formulaire de contact (contact.php) ----------
   Le seul formulaire du site, sans JavaScript. Les champs reprennent le verre
   des panneaux ; l'erreur est portée par .is-err (et aria-invalid), les
   messages par .notice. .hp est le pot de miel : HORS ÉCRAN, jamais en
   display:none — les robots sautent les champs masqués ainsi, pas ceux déplacés. */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field label b { color: var(--ink); }
.field input, .field select, .field textarea {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 1rem; color: var(--ink);
  width: 100%; padding: 12px 15px; margin: 0;
  background: var(--panel-strong); border: 1px solid var(--stroke); border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 190px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237A90A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 17px center; background-size: 12px 8px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--chip);
}
.field input.short { max-width: 11em; }
.field .hint { color: var(--ink-3); font-size: .8rem; }
.field.is-err label { color: var(--err); }
.field.is-err input, .field.is-err select, .field.is-err textarea { border-color: var(--err); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.notice {
  border: 1px solid var(--stroke); border-radius: 16px;
  padding: 14px 18px; margin: 0 0 22px; font-size: .95rem; color: var(--ink);
}
.notice.ok  { background: color-mix(in oklab, var(--ok) 16%, transparent);  border-color: color-mix(in oklab, var(--ok) 40%, transparent); }
.notice.err { background: color-mix(in oklab, var(--err) 12%, transparent); border-color: color-mix(in oklab, var(--err) 40%, transparent); }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice li { color: var(--ink-2); margin-bottom: 4px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form-foot p.privacy { color: var(--ink-3); font-size: .8rem; max-width: 36em; margin: 0; }
.btn-send {
  appearance: none; cursor: pointer; font: inherit; font-weight: 700; font-size: .98rem;
  padding: 12px 28px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; white-space: nowrap;
  box-shadow: var(--shadow), var(--glow);
  transition: transform .18s ease, filter .18s ease;
}
.btn-send:hover { transform: translateY(-1px) scale(1.04); filter: brightness(1.06); }
.btn-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .btn-send { width: 100%; }
}

/* ---------- Pied de page ---------- */
footer.site-footer { padding: 30px 0 64px; text-align: center; color: var(--ink-3); font-size: .85rem; }
footer.site-footer a { color: var(--ink-2); text-decoration: none; }
footer.site-footer a:hover { color: var(--ink); }
footer.site-footer .links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .card, .card .glare { transition: none !important; }
  /* On coupe ce qui bouge : transitions de l'écran, de l'éventail et des
     tuiles, défilement du mur. Le ressort et le salut d'arrivée sont
     désactivés côté JS ; l'éventail reste utilisable, sans glissement. */
  .dev { transition: none !important; }
  .fan figure, .tuile, .tir-scr, .tir > .card { transition: none !important; }
  .tir-scr { opacity: 1 !important; }   /* pas de fondu : la capture est là d'emblée */
  .mur-col-in { animation: none !important; }
  h1.display .grad { animation: none; }
  #page.rolling { animation: none; }
  .roll-btn { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  header.hero { padding: 48px 0 20px; }
  .tabs button { padding: 8px 13px; font-size: .84rem; }
}

/* ---------- Cartes « Nos autres sites » (accueil, 2026-10-06) ---------- */
#sites { margin-top: 72px; }
.card-site .thumb { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transform: translateZ(22px); }
.card-site .thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.card-site:hover .thumb img { transform: scale(1.03); }
.card-site h3 { font-size: 1.08rem; }

/* ---------- « Nouveau sur l'App Store » : BASIC 1983 à la une (accueil, 2026-10-28) ----------
   Panneau de verre pleine largeur entre le héros et la grille : texte et badge
   à gauche, l'iPad mini en châssis à droite — le même composant .dev que les
   fiches (ressort de site.js compris : il prend tous les .stage). La teinte
   est celle de la fiche BASIC 1983 (bloc « Une teinte par app ») ; l'accueil
   n'a pas de data-app, elle est donc posée sur la section, dans les trois
   blocs de thème. À retirer (ou à réaffecter) quand une autre app sortira. */
#nouveaute { padding: 30px 24px 0; --app: #B42318; }   /* 24 px écrits ici : le raccourci écraserait ceux de .wrap */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #nouveaute { --app: #FF7A6B; } }
:root[data-theme="dark"] #nouveaute { --app: #FF7A6B; }
.feature {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px 40px; align-items: center;
  padding: clamp(26px, 4vw, 44px);
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--stroke); border-radius: 28px;
  box-shadow: var(--shadow);
}
.feature::before {   /* halo à la teinte de l'app, derrière l'appareil */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: 2%; top: 4%; width: 54%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side,
      color-mix(in oklab, var(--app) 26%, transparent) 0%,
      color-mix(in oklab, var(--app) 8%, transparent) 45%,
      transparent 72%);
}
.feature > * { position: relative; z-index: 1; min-width: 0; }
.feature .eyebrow { margin: 0 0 14px; color: var(--app); }
.feature-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.feature-head img.icon { width: 72px; height: 72px; border-radius: 22.5%; box-shadow: var(--shadow); object-fit: cover; flex: none; }
.feature h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.12; letter-spacing: -0.025em;
  font-weight: 700; margin: 0; text-wrap: balance;
}
.feature p.lede { margin: 0 0 16px; color: var(--ink-2); font-size: 1.04rem; max-width: 36em; }
.feature .chips { justify-content: flex-start; margin-bottom: 20px; }
.feature .actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.feature a.store-badge img { height: 46px; }
.feature .meta-line { margin-top: 12px; }
.feature-stage .stage { --dev-scale: .82; --dev-max: 100%; padding: 10px 0 16px; }
.feature-stage .dev { will-change: transform; }
.feature:has(.dev-aura)::before { display: none; }   /* le halo vient de la capture (.dev-aura) */
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature::before { right: 50%; top: auto; bottom: 2%; width: 70%; transform: translateX(50%); }
  .feature-stage .stage { --dev-max: min(100%, 86vw); }
}

/* ---------- Loupe : l'image ENTIÈRE s'agrandit au survol (2026-10-28, v2) ----------
   Sur une figure dont le .stage porte .stage--loupe, le survol agrandit
   l'appareil entier — châssis et capture — jusqu'à 92 % de la fenêtre, par-dessus
   la page et sur un voile, puis le ramène au départ du pointeur. site.js mesure
   et pose sur .dev : --zk (facteur), --zox/--zoy (origine = le point survolé,
   pour que le pointeur reste toujours DANS l'appareil agrandi : sinon le
   pointerleave du .stage refermerait aussitôt), --ztx/--zty (décalage pour
   tenir dans la fenêtre), et la classe .loupe-on. Le ressort redresse
   l'appareil en même temps (cible 0/0). Souris seulement ; au toucher rien ne
   change. Un délai de 120 ms évite le déclenchement au simple passage. */
.stage--loupe .dev { transform-origin: var(--zox, 50%) var(--zoy, 56%); }
.fan figure[aria-current="true"] .stage--loupe .dev { cursor: zoom-in; }   /* seule la carte choisie s'agrandit */
.stage--loupe .dev.loupe-on {
  cursor: default;
  transform: translate(calc(var(--ztx, 0) * 1px), calc(var(--zty, 0) * 1px))
             rotateY(calc(var(--ryn) * 1deg)) rotateX(calc(var(--rxn) * 1deg))
             scale(var(--zk, 1));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1) .12s;
}
/* Dans l'éventail (2026-11-12) : chaque figure porte un transform, donc son
   propre contexte d'empilement — c'est ELLE qui passe au-dessus de la barre de
   navigation (50), et le voile ne peut plus être son pseudo-élément (un
   position: fixed se cale sur l'ancêtre transformé) : il est porté par
   .fan-cards, qui n'a ni transform ni z-index. */
.fan figure:has(.dev.loupe-on) { z-index: 60; }
.fan-cards:has(.stage--loupe)::before {             /* le voile, sous l'écran agrandi */
  content: ""; position: fixed; inset: 0; z-index: 59; pointer-events: none;
  background: var(--bg); opacity: 0; visibility: hidden;
  transition: opacity .4s ease .12s, visibility 0s linear .52s;
}
.fan-cards:has(.dev.loupe-on)::before { opacity: .82; visibility: visible; transition-delay: .12s, 0s; }
/* Au doigt, le voile capte les touchers : toucher à côté referme la loupe
   (site.js) sans activer ce qui se trouve dessous. */
@media (hover: none), (pointer: coarse) {
  .fan-cards:has(.dev.loupe-on)::before { pointer-events: auto; }
}
.loupe-hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .loupe-hint { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .stage--loupe .dev.loupe-on { transition: none !important; }
  .fan-cards:has(.stage--loupe)::before { transition: none !important; }
}

/* ---------- Tiroirs : les cartes d'apps de l'accueil (2026-11-12) ----------
   Remplace la bascule en fausse 3D des cartes de l'accueil. Chaque carte est
   enveloppée dans un .tir (par tiroirs_html(), inc/mur.php) qui porte AVANT
   elle la capture de l'app (.tir-scr, l'écran sans châssis) : au repos elle
   dépasse de 88 px au-dessus de la carte et sa couleur se devine à travers le
   verre ; au survol — ou quand un lien de la carte reçoit le focus — elle sort
   et s'incline, la carte s'enfonce un peu.
   - La carte doit rester plus haute que la partie cachée de l'écran
     (150 × 2,174 − 88 ≈ 243 px), d'où min-height.
   - .reveal reste sur la carte ; la capture attend qu'elle soit révélée
     (.tir:has(> .card.in)). Jamais d'opacité sur .tir : elle priverait la carte
     de son flou d'arrière-plan pendant le fondu.
   - Aucun script : site.js se contente de ne plus faire basculer ces cartes. */
.grid:has(> .tir) { perspective: none; row-gap: 40px; }
.tir { position: relative; display: flex; padding-top: 88px; min-width: 0; }
.tir > .card {
  position: relative; z-index: 1; flex: 1; min-width: 0; min-height: 262px;
  background: var(--verre);   /* plus dense que --panel : une capture claire derrière un verre sombre (ou l'inverse) mangerait le texte */
  -webkit-backdrop-filter: blur(30px) saturate(2); backdrop-filter: blur(30px) saturate(2);
  transition: transform .6s cubic-bezier(.2, .9, .25, 1.1), opacity .7s ease, box-shadow .3s ease;
}
.tir-scr {
  --w: 150px;
  position: absolute; top: 0; left: 50%; z-index: 0; display: block; width: var(--w);
  padding: calc(var(--w) * .017); border-radius: calc(var(--w) * .152);
  background: var(--bezel);
  box-shadow: 0 0 0 1px var(--edge), 0 14px 28px -10px var(--sh-b);
  transform: translateX(-50%); opacity: 0;
  transition: transform .6s cubic-bezier(.2, .9, .25, 1.1), box-shadow .5s ease, opacity .7s ease;
}
.tir:has(> .card.in) .tir-scr { opacity: 1; }
.tir-scr img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .136); }
.tir-scr--large { --w: 250px; top: 26px; padding: calc(var(--w) * .014); border-radius: calc(var(--w) * .045); }
.tir-scr--large img { border-radius: calc(var(--w) * .032); }
.tir:hover, .tir:focus-within { z-index: 3; }
.tir:hover .tir-scr, .tir:focus-within .tir-scr {
  transform: translate(-50%, -86px) rotate(-3deg);
  box-shadow: 0 0 0 1px var(--edge), 0 30px 46px -14px var(--sh-b);
}
.tir:hover .tir-scr--large, .tir:focus-within .tir-scr--large { transform: translate(-50%, -56px) rotate(-2deg); }
.tir:hover > .card, .tir:focus-within > .card { transform: translateY(5px); }
/* Les deux cartes « Nos autres sites » ne basculent plus non plus : elles se soulèvent. */
@media (hover: hover) and (pointer: fine) { .card-site:hover { transform: translateY(-3px); } }

/* ---------- Mur de l'accueil (2026-11-12) ----------
   Le héros de l'accueil : un panneau où les captures des apps défilent sur un
   plan incliné, le titre par-dessus, en bas à gauche. Balisage : inc/mur.php
   (huit colonnes de tuiles, chaque colonne doublée pour boucler à −50 %).
   Tout est en CSS ; site.js ne fait que poser .hors-vue pour suspendre
   l'animation quand le mur n'est plus à l'écran.
   La hauteur du plan (1376 px) est aussi dans inc/mur.php ($HAUTEUR) : chaque
   colonne doit la dépasser pour que la boucle ne montre jamais de vide. */
header.hero { padding: 34px 0 26px; }
.mur {
  position: relative; height: clamp(440px, 54vw, 580px);
  /* header.hero n'a pas de marges latérales (son padding écrase celles de
     .wrap, et le carrousel en profite pour aller d'un bord à l'autre) : le mur
     porte les siennes, 24 px, comme le reste de la page. */
  margin-inline: 24px;
  overflow: hidden; isolation: isolate; border-radius: 28px;
  background: var(--mur-bg); border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  perspective: 2000px; text-align: left;
}
.mur-plan {
  --w: 150px;
  position: absolute; top: 50%; left: 62%; height: 1376px;
  display: flex; gap: 20px;
  transform: translate(-50%, -50%) rotateX(50deg) rotateZ(-30deg);
  transform-style: preserve-3d;
}
.mur-col { flex: none; width: var(--w); transform-style: preserve-3d; }
.mur-col-in {
  display: flex; flex-direction: column; transform-style: preserve-3d;
  animation: mur-monte 52s linear infinite;
}
.mur-col:nth-child(even) .mur-col-in { animation-direction: reverse; animation-duration: 64s; }
.mur-col:nth-child(3n) .mur-col-in { animation-duration: 44s; }
@keyframes mur-monte { to { transform: translateY(-50%); } }
.mur.hors-vue .mur-col-in { animation-play-state: paused; }
.tuile {
  display: block; margin-bottom: 18px;
  padding: calc(var(--w) * .017); border-radius: calc(var(--w) * .152);
  background: var(--bezel);
  box-shadow: 0 0 0 1px var(--edge), 14px 20px 26px -10px var(--sh-b);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s ease;
}
.tuile img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .136); }
.tuile--large { border-radius: calc(var(--w) * .062); }
.tuile--large img { border-radius: calc(var(--w) * .046); }
@media (hover: hover) and (pointer: fine) {
  .mur:hover .mur-col-in { animation-play-state: paused; }
  .tuile:hover { transform: translateZ(54px); filter: brightness(1.08); }
}
.mur::after {   /* voile : le titre reste lisible, les bords se fondent */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, var(--mur-bg) 0%, color-mix(in oklab, var(--mur-bg) 86%, transparent) 26%, transparent 60%),
    linear-gradient(0deg, var(--mur-bg) 0%, transparent 26%),
    linear-gradient(180deg, var(--mur-bg) 0%, transparent 16%);
}
.mur-texte {
  position: absolute; z-index: 2;
  left: clamp(20px, 5vw, 56px); bottom: clamp(22px, 5vw, 52px);
  max-width: min(23em, calc(100% - 40px));
}
.mur-texte .eyebrow { margin: 0 0 14px; }
.mur-texte h1.display { font-size: clamp(2.5rem, 6.4vw, 4.3rem); margin: 0 0 16px; }
.mur-texte p.lede { margin: 0; max-width: 22em; font-size: 1.08rem; text-wrap: balance; }
@media (max-width: 760px) {
  /* Le titre occupe toute la largeur : il se lit sur un fond plein, les tuiles
     défilent au-dessus de lui plutôt que derrière. */
  header.hero { padding: 22px 0 20px; }
  .mur { height: 500px; }
  .mur-plan { top: 21%; left: 60%; transform: translate(-50%, -50%) rotateX(50deg) rotateZ(-30deg) scale(.72); }
  .mur::after {
    background:
      linear-gradient(0deg, var(--mur-bg) 0%, var(--mur-bg) 55%, transparent 76%),
      linear-gradient(180deg, var(--mur-bg) 0%, transparent 14%);
  }
  .mur-texte p.lede { font-size: 1rem; }
}
