/* =======================================================================
   OSMIA LABS — Scrollytelling 3D — langage graphique officiel
   Nature + IA. Abeille / ruche / hexagone / nombre d'or.
   Palette : noir #282828 · blanc #fff · gris #e1e1e1 · jaune #e7c112 · cyan #009dd7
   Jaune = énergie/essentiel (chiffres, points clés, CTA).
   Cyan  = signal techno/IA (accents, lignes, hover, hexagones tech).
   ======================================================================= */

:root {
  --noir: #282828;
  --noir-deep: #1c1c1c;
  --blanc: #ffffff;
  --gris: #e1e1e1;
  --gris-soft: rgba(225, 225, 225, 0.78); /* lisibilité fonds chargés (audit 2026-06-11) */
  --jaune: #e7c112;
  --jaune-soft: rgba(231, 193, 18, 0.16);
  --cyan: #009dd7;
  --cyan-soft: rgba(0, 157, 215, 0.16);
  --line: rgba(255, 255, 255, 0.12);

  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --display-xl: clamp(36px, 6vw, 76px);
  --display-md: clamp(26px, 4.2vw, 46px);
  --ls-xl: -0.04em;
  --ls-md: -0.03em;

  --glass: rgba(40, 40, 40, 0.58);
  --blur: blur(16px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #08080a; }
body { font-family: var(--font-body); background: #08080a; color: var(--blanc);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
em { font-style: normal; color: var(--jaune); }

/* --------------------------------------------------------------- Topbar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(28,28,28,0.9), transparent);
  backdrop-filter: var(--blur); }
.topbar-inner { width: min(1240px, calc(100% - 64px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 2.6vw, 34px); }
.logo { text-decoration: none; color: var(--blanc); font-family: var(--font-display);
  letter-spacing: var(--ls-md); font-size: 20px; display: flex; gap: 6px; align-items: baseline; }
.logo strong { font-weight: 500; }
.logo span { color: var(--jaune); font-size: 11px; letter-spacing: 3px; }
.logo-img { height: 32px; width: auto; display: block; }
.footer-brand .logo-img { height: 46px; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { color: var(--gris-soft); text-decoration: none; font-size: 14px; transition: color .25s var(--ease); }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--cyan); }

.button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .045em;
  padding: 12px 22px; border-radius: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.button.small { padding: 9px 16px; }
.button.primary { background: var(--jaune); color: var(--noir);
  box-shadow: 0 6px 22px rgba(231,193,18,0.28); }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(231,193,18,0.4); }
.button.ghost {
  border: 1px solid rgba(0,157,215,0.78);
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(0,157,215,0.20), rgba(0,157,215,0.10)), rgba(5,8,18,0.28);
  box-shadow: 0 8px 26px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.14);
  backdrop-filter: blur(12px) saturate(1.14);
}
.button.ghost:hover { background: var(--cyan); color: var(--noir); }
.button:focus-visible { outline: 2px solid rgba(255,255,255,0.88); outline-offset: 3px; }
.ico-rocket { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.hero-mobile-bee { display: none; }

/* ----------------------------------------------------------- Story rail */
.story-rail { position: fixed; left: clamp(12px, 2.4vw, 34px); top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.rail-item { text-decoration: none; color: var(--gris-soft); display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); transition: color .3s var(--ease); }
.rail-item span { font-size: 13px; width: 26px; font-variant-numeric: tabular-nums; }
.rail-item small { font-size: 11px; opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease);
  letter-spacing: 0.06em; text-transform: uppercase; }
.rail-item::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .4; transition: width .3s var(--ease); }
.rail-item.is-active { color: var(--cyan); }
.rail-item.is-active span { color: var(--jaune); }
.rail-item.is-active::before { width: 34px; opacity: 1; background: var(--cyan); }
.rail-item.is-active small { opacity: 1; transform: translateX(0); }
.rail-item:hover { color: var(--blanc); }

/* --------------------------------------------------------- Scrub bar */
.scrub-bar { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 45; background: rgba(255,255,255,0.06); }
.scrub-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--jaune), var(--cyan));
  box-shadow: 0 0 12px var(--cyan); will-change: transform; }

/* =================================================== Scrollytelling core */
#scrolly { position: relative; }
.scroll-driver { height: var(--scroll-vh, 760vh); }

.stage { position: fixed; inset: 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 72% 24%, #33312a 0%, var(--noir) 45%, var(--noir-deep) 100%); }
.stage::before { content: ""; position: absolute; inset: -16%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--scene-x1, 22%) 32%, rgba(0,157,215,0.22), transparent 30%),
    radial-gradient(circle at var(--scene-x2, 78%) 68%, rgba(231,193,18,0.18), transparent 34%);
  filter: blur(18px); opacity: .75; transform: translate3d(0, var(--scene-drift, 0vh), 0); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 11; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"); }

.frames, .stage-video { position: fixed; inset: 0; z-index: 1; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  will-change: opacity, transform; transform: scale(1.06); filter: saturate(1.05) contrast(1.06); }
.frame:first-child { opacity: 1; }
.stage-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; display: none; }
body[data-mode="video"] .frames { display: none; }
body[data-mode="video"] .stage-video { display: block; }
/* bouton retour-en-haut : bas-GAUCHE (bas-droite reserve au futur chatbot WordPress) */
.to-top { position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, rgba(0,157,215,0.32), rgba(8,10,18,0.88));
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .25s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; display: block; }
.to-top:hover { border-color: rgba(0,157,215,0.6); }
.to-top:focus-visible { outline: 2px solid rgba(0,157,215,0.72); outline-offset: 4px; }
/* dip : assombrissement de passage au milieu de la bascule (pilote en JS) */
.bg-dip { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,0) 30%, rgba(4,6,12,0.9) 100%), rgba(4,6,12,0.55); }
/* light-sweep : eclat cyan/or qui traverse pendant la bascule de section (pilote en JS) */
.bg-sweep { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(0,157,215,0.20) 44%, rgba(120,200,255,0.16) 50%, rgba(231,193,18,0.22) 56%, transparent 70%);
  mix-blend-mode: screen; transform: translate3d(-60%, 0, 0); }

.webgl { position: fixed; inset: 0; z-index: 7; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }

.grain { position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hex-vignette { position: fixed; inset: 0; z-index: 8; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,8,18,0.64) 0%, rgba(5,8,18,0.22) 34%, rgba(5,8,18,0.12) 62%, rgba(5,8,18,0.56) 100%),
    radial-gradient(118% 92% at 50% 48%, transparent 52%, rgba(5,8,18,0.62) 100%),
    linear-gradient(180deg, rgba(5,8,18,0.48) 0%, transparent 18%, transparent 86%, rgba(5,8,18,0.38) 100%); }

/* ===================================================== Scene assets WP */
.hexnet { position: fixed; inset: 0; z-index: 2; opacity: .72; pointer-events: none;
  background-image: radial-gradient(rgba(0,157,215,0.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 95% at 62% 42%, #000 28%, transparent 76%);
          mask-image: radial-gradient(120% 95% at 62% 42%, #000 28%, transparent 76%); }
.decor { position: fixed; pointer-events: none; }
.decor.fibo { left: 66%; top: 50%; width: min(62vh, 540px); transform: translate(-50%,-50%);
  opacity: .10; z-index: 3; mix-blend-mode: screen; }
.decor.halo { display: none; }
/* overlay abeille + essaim desactives : on ne garde que l'abeille de la keyframe (fini le fantome) */
.swarm, .bee { display: none !important; }
.swarm { position: fixed; left: 50%; top: 50%; width: min(78vw, 760px);
  transform: translate(-50%,-50%); opacity: 0; z-index: 5; pointer-events: none;
  will-change: transform, opacity; filter: drop-shadow(0 0 44px rgba(231,193,18,0.18)); }
.bee { position: fixed; left: 74%; top: 42%; width: clamp(210px, 30vw, 480px);
  transform: translate(-50%, -50%); z-index: 6; opacity: 0; mix-blend-mode: screen; pointer-events: none;
  will-change: left, top, transform, opacity;
  filter: drop-shadow(0 18px 42px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(0,157,215,0.22)); }

/* Interface fantome incrustee dans le visuel : elle donne du volume sans remplacer la future video. */
.scene-fusion { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .72;
  transform: translate3d(var(--fusion-x, 0px), var(--fusion-y, 0px), 0); transition: opacity .25s var(--ease); }
.fusion-card, .fusion-line, .fusion-node { position: absolute; display: block; }
.fusion-card { width: clamp(160px, 17vw, 270px); height: clamp(84px, 9vw, 132px); border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.015)),
    linear-gradient(90deg, rgba(0,157,215,0.18), rgba(231,193,18,0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 70px rgba(0,0,0,0.24);
  backdrop-filter: blur(4px); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  opacity: .34; mix-blend-mode: screen; }
.fusion-card::before, .fusion-card::after { content: ""; position: absolute; left: 18px; right: 22px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent); opacity: .7; }
.fusion-card::before { top: 32px; }
.fusion-card::after { top: 58px; width: 62%; }
.fusion-card.f1 { right: 7vw; top: 18vh; transform: rotate(-5deg); }
.fusion-card.f2 { left: 44vw; bottom: 15vh; transform: rotate(4deg) scale(.92); }
.fusion-card.f3 { left: 12vw; top: 20vh; transform: rotate(7deg) scale(.78); opacity: .22; }
.fusion-line { height: 1px; width: min(34vw, 430px); opacity: .32; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--jaune), transparent); }
.fusion-line.l1 { left: 42%; top: 38%; transform: rotate(-18deg); }
.fusion-line.l2 { left: 17%; bottom: 25%; transform: rotate(13deg); }
.fusion-node { width: 14px; height: 14px; border-radius: 50%; opacity: .62;
  background: radial-gradient(circle, var(--jaune), rgba(231,193,18,0.16) 55%, transparent 70%);
  box-shadow: 0 0 34px rgba(231,193,18,0.6); }
.fusion-node.n1 { left: 62%; top: 37%; }
.fusion-node.n2 { left: 24%; bottom: 25%; background: radial-gradient(circle, var(--cyan), rgba(0,157,215,0.12) 55%, transparent 70%); }
body[data-beat="0"] .scene-fusion { opacity: .42; }
body[data-beat="1"] .fusion-card.f3,
body[data-beat="2"] .fusion-card.f1,
body[data-beat="4"] .fusion-card.f2,
body[data-beat="5"] .fusion-card.f1 { opacity: .5; }
body[data-beat="6"] .scene-fusion { opacity: .26; }
body[data-beat="3"] .hex-vignette,
body[data-beat="5"] .hex-vignette {
  background:
    linear-gradient(90deg, rgba(5,8,18,0.78) 0%, rgba(5,8,18,0.46) 34%, rgba(5,8,18,0.34) 62%, rgba(5,8,18,0.72) 100%),
    radial-gradient(118% 92% at 50% 48%, rgba(5,8,18,0.08) 38%, rgba(5,8,18,0.74) 100%),
    linear-gradient(180deg, rgba(5,8,18,0.60) 0%, transparent 18%, rgba(5,8,18,0.12) 72%, rgba(5,8,18,0.52) 100%);
}

/* ============================================================= Panels */
.panels { position: fixed; inset: 0; z-index: 10; }
.panel { position: absolute; padding: clamp(16px, 3vw, 40px);
  opacity: 0; transform: translateY(var(--py, 26px)); pointer-events: none;
  max-width: min(640px, 88vw); transition: opacity .05s linear;
  text-shadow: 0 1px 16px rgba(20,20,20,0.85); }
.panel.is-active { opacity: 1; pointer-events: auto; }

.zone-bl     { left: clamp(20px, 6vw, 110px); bottom: clamp(56px, 12vh, 130px); transform: translateY(var(--py, 26px)); }
/* hero (#accueil) : centrage vertical + respiration a gauche, equilibre sur 16:9 */
#accueil     { top: 53%; bottom: auto; left: clamp(72px, 14.5vw, 296px);
  transform: translateY(calc(-50% + var(--py, 26px))); }
.zone-left   { left: clamp(20px, 6vw, 110px); top: 50%; transform: translateY(calc(-50% + var(--py, 26px))); }
.zone-top    { left: 50%; top: clamp(92px, 15vh, 150px); transform: translateX(-50%) translateY(var(--py, 26px)); text-align: center; max-width: min(940px, 92vw); }
.zone-center { left: 50%; top: 50%; transform: translate(-50%, calc(-50% + var(--py, 26px))); text-align: center; max-width: min(720px, 90vw); }
.zone-wide { left: 50%; top: 50%; width: min(1160px, 88vw); max-width: 88vw;
  transform: translate(-50%, calc(-50% + var(--py, 26px))); text-align: left; }
.zone-projects, .zone-lab { left: 50%; top: clamp(86px, 11vh, 122px); width: min(1120px, 88vw); max-width: 88vw;
  transform: translateX(-50%) translateY(var(--py, 26px)); text-align: center; }
.zone-contact { inset: 0; width: 100%; max-width: none;
  transform: translateY(var(--py, 26px)); text-align: center;
  display: grid; grid-template-rows: auto auto auto; row-gap: clamp(8px, 1.4vh, 16px);
  align-content: start;
  padding: clamp(44px, 5vh, 60px) clamp(22px, 5vw, 76px) 0; }

/* numero de section editorial (chiffres bien visibles, jaune) */
.snum { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6vw, 84px);
  line-height: 1; color: var(--jaune); opacity: .92; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; display: block; margin-bottom: 4px; }
.snum::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px;
  background: var(--cyan); clip-path: var(--hex); vertical-align: middle; }

.eyebrow { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px; font-weight: 600; }
.eyebrow.gold { color: var(--jaune); }
.panel h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-xl);
  line-height: 1.04; letter-spacing: var(--ls-xl); margin-bottom: 20px; }
.panel h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-md);
  line-height: 1.08; letter-spacing: var(--ls-md); margin-bottom: 16px; }
.panel h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.lead { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: var(--gris); max-width: 58ch; margin-bottom: 24px; }
.zone-top .lead, .zone-center .lead, .zone-projects .lead, .zone-lab .lead, .zone-contact .lead { margin-inline: auto; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.zone-center .actions, .zone-top .actions, .zone-contact .actions { justify-content: center; }

.proof-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 0 0 22px; }
.proof-strip span { border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 12px 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.015)), rgba(28,28,28,0.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10); color: var(--gris-soft); font-size: 11.5px; line-height: 1.35; backdrop-filter: blur(12px); }
.proof-strip strong { display: block; color: var(--jaune); font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }

/* piliers (services / formations) avec hexagone tech */
.pillars { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillars.compact { grid-template-columns: 1fr; gap: 12px; }
.pillars li { position: relative; border: 1px solid rgba(255,255,255,0.13); border-radius: 16px;
  padding: 18px 20px; backdrop-filter: blur(14px);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), rgba(28,28,28,0.52);
  box-shadow: 0 22px 60px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.pillars li:first-child { border-color: rgba(0,157,215,0.55);
  box-shadow: 0 0 44px rgba(0,157,215,0.22), inset 0 1px 0 rgba(255,255,255,0.12); }
.pillars li:hover { transform: translateY(-3px); border-color: rgba(0,157,215,0.55);
  box-shadow: 0 0 44px rgba(0,157,215,0.22), inset 0 1px 0 rgba(255,255,255,0.12); }
.pillars li span { font-family: var(--font-display); color: var(--cyan); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; }
.pillars li strong { display: block; font-weight: 500; margin: 4px 0 6px; color: var(--blanc); }
.pillars li small { color: var(--gris-soft); font-size: 13px; line-height: 1.5; }

/* Notre ADN : 4 valeurs en alveoles hexagonales numerotees (l'identite) */
.adn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; text-align: left; }
.adn-cell { position: relative; border: 1px solid rgba(255,255,255,0.13); border-radius: 16px;
  padding: 22px 18px 18px; backdrop-filter: blur(14px);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), rgba(28,28,28,0.52);
  box-shadow: 0 22px 60px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.adn-cell:hover { transform: translateY(-3px); border-color: rgba(0,157,215,0.55);
  box-shadow: 0 0 44px rgba(0,157,215,0.22), inset 0 1px 0 rgba(255,255,255,0.12); }
.adn-cell .el { width: 54px; height: 54px; object-fit: contain; display: block; margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45)); }
.adn-cell h3 { color: var(--blanc); }
.adn-cell small { color: var(--gris-soft); font-size: 12.5px; line-height: 1.5; }

/* cartes (realisations / news) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; text-align: left; }
.cards.duo { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.cards article { border: 1px solid rgba(255,255,255,0.13); border-radius: 16px; padding: 20px;
  backdrop-filter: blur(14px);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)), rgba(28,28,28,0.52);
  box-shadow: 0 22px 60px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.cards article:hover { border-color: rgba(0,157,215,0.55); transform: translateY(-3px);
  box-shadow: 0 0 44px rgba(0,157,215,0.22), inset 0 1px 0 rgba(255,255,255,0.12); }
/* cartes avec vraie image WP (projets / articles) */
.cards article.hasimg { padding: 0; overflow: hidden; }
.cards article.hasimg > img { width: 100%; height: 148px; object-fit: cover; display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1); }
.cards.news article.hasimg > img { height: 116px; }
.cards article.hasimg .cbody { padding: 16px 18px 18px; }
.cards small { color: var(--gris-soft); font-size: 13px; line-height: 1.5; }
.cards .tag { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.cards.news h3 { font-size: 15px; line-height: 1.32; }
.proj-note { margin-top: 12px; color: var(--jaune); font-size: 12.5px; line-height: 1.4; }
.contact-meta { margin-top: 20px; color: var(--gris-soft); font-size: 13px; letter-spacing: 0.02em; }

/* ============================== Titre serif editorial ============================== */
.serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0; }
.panel h2.serif { font-size: clamp(44px, 6vw, 78px); line-height: 0.98; margin-bottom: 16px; }
.panel h2.serif em { color: var(--jaune); }

/* ===================== Notre ADN — 4 éléments / 4 opérations ===================== */
.zone-adn { left: 50%; top: 50%; transform: translate(-50%, calc(-50% + var(--py, 26px)));
  width: min(1200px, 94vw); max-width: 94vw; text-align: left;
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(22px, 4vw, 58px); align-items: center; }
.adn-intro .snum { margin-bottom: 4px; }
.adn-intro .lead { font-size: clamp(16px, 1.5vw, 20px); color: var(--blanc); max-width: 30ch; margin-bottom: 12px; }
.adn-sub { color: var(--gris-soft); font-size: 13.5px; line-height: 1.55; max-width: 40ch; margin-bottom: 20px; }

.adn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.adn-card { --acc: var(--jaune);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 16px 18px;
  backdrop-filter: blur(14px);
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)), rgba(28,28,28,0.55);
  box-shadow: 0 22px 60px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.adn-card:hover { transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--acc) 55%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--acc) 22%, transparent), inset 0 1px 0 rgba(255,255,255,0.12); }
.adn-card.air   { --acc: #e7c112; }
.adn-card.eau   { --acc: #4aa6dc; }
.adn-card.feu   { --acc: #f0962a; }
.adn-card.terre { --acc: #8cc152; }
.adn-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.adn-num { font-family: var(--font-display); font-size: 12px; letter-spacing: 1px; color: var(--acc);
  font-variant-numeric: tabular-nums; }
.adn-card .el { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); margin: 0; }
.adn-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--blanc); }
.adn-card small { color: var(--gris-soft); font-size: 12px; line-height: 1.45; display: block; }
.adn-stat { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.adn-stat strong { display: block; font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(26px, 2.8vw, 38px); line-height: 1; color: var(--acc); }
.adn-stat em { display: block; font-style: normal; color: var(--gris-soft); font-size: 11.5px; line-height: 1.4; margin-top: 4px; }
.adn-stat cite { display: block; font-style: normal; color: rgba(225,225,225,0.42); font-size: 10.5px; margin-top: 6px; }

/* ===================== Rich content cards ===================== */
.service-stack, .training-grid, .project-grid, .blog-grid, .contact-grid { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.service-stack { grid-template-columns: repeat(3, 1fr); }
.training-grid { grid-template-columns: repeat(3, 1fr); }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; max-width: 900px; margin-inline: auto; }

.service-card, .training-grid article, .project-card, .blog-grid article, .contact-card {
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.13); border-radius: 22px;
  background:
    radial-gradient(120% 140% at 18% 0%, rgba(0,157,215,0.20), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.025)),
    rgba(28,28,28,0.72);
  box-shadow: 0 24px 72px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.10);
  backdrop-filter: blur(18px); }
.service-card, .training-grid article, .contact-card { padding: 20px; }
.service-card::before, .training-grid article::before, .contact-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--jaune), transparent); opacity: .72; }
.featured { border-color: rgba(231,193,18,0.42) !important;
  box-shadow: 0 28px 90px rgba(231,193,18,0.14), 0 24px 72px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.12) !important; }
.service-index { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 38px; margin-bottom: 12px;
  color: var(--jaune); font-family: var(--font-display); font-size: 13px; font-variant-numeric: tabular-nums;
  background: rgba(231,193,18,0.10); border: 1px solid rgba(231,193,18,0.28); clip-path: var(--hex); }
.tag { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; font-weight: 700; }
.service-card h3, .training-grid h3, .project-card h3, .blog-grid h3, .contact-card h3 { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.12; }
.service-card strong { display: block; color: var(--jaune); font-weight: 600; font-size: 13px; margin: -2px 0 8px; }
.service-card small, .training-grid small, .project-card small, .blog-grid small, .contact-card small {
  display: block; color: var(--gris-soft); font-size: 12.5px; line-height: 1.55; }
.feature-list { list-style: none; display: grid; gap: 7px; margin-top: 12px; }
.feature-list li { position: relative; padding-left: 17px; color: rgba(225,225,225,0.78); font-size: 11.5px; line-height: 1.42; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .52em; width: 7px; height: 7px; transform: translateY(-50%);
  background: linear-gradient(135deg, var(--jaune), var(--cyan)); clip-path: var(--hex); box-shadow: 0 0 12px rgba(0,157,215,0.42); }

.substep-rail { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.substep-rail-center { justify-content: center; }
.substep-rail span { display: inline-flex; align-items: center; min-height: 28px; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.13); border-radius: 999px;
  background: rgba(255,255,255,0.055); color: rgba(225,225,225,0.72);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: opacity .25s var(--ease), color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.panel[data-step="0"] .substep-rail span:nth-child(1),
.panel[data-step="1"] .substep-rail span:nth-child(2),
.panel[data-step="2"] .substep-rail span:nth-child(3) {
  color: var(--noir); background: linear-gradient(135deg, var(--jaune), #ffe37a);
  border-color: rgba(231,193,18,0.72); opacity: 1; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(231,193,18,0.20); }
.step-copy { position: relative; min-height: 42px; max-width: 760px; margin: -2px 0 16px; }
.step-copy-center { margin-inline: auto; text-align: left; }
.step-copy span { position: absolute; inset: 0; opacity: 0; transform: translateY(8px);
  padding: 11px 14px; border: 1px solid rgba(0,157,215,0.18); border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,157,215,0.14), rgba(231,193,18,0.07)), rgba(28,28,28,0.62);
  color: rgba(225,225,225,0.80); font-size: 12px; line-height: 1.45; backdrop-filter: blur(12px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), border-color .28s var(--ease); }
.step-copy strong { color: var(--jaune); font-weight: 700; }
.panel[data-step="0"] .step-copy [data-step-copy="0"],
.panel[data-step="1"] .step-copy [data-step-copy="1"],
.panel[data-step="2"] .step-copy [data-step-copy="2"] {
  opacity: 1; transform: translateY(0); border-color: rgba(0,157,215,0.34); }

@media (min-width: 721px) {
  .panel.is-active [data-step-card] {
    opacity: .70; transform: scale(.985); filter: saturate(.88);
    transition: opacity .3s var(--ease), transform .3s var(--ease), filter .3s var(--ease), outline-color .3s var(--ease); }
  .panel.is-active[data-step="0"] [data-step-card="0"],
  .panel.is-active[data-step="1"] [data-step-card="1"],
  .panel.is-active[data-step="2"] [data-step-card="2"],
  .panel.is-active[data-step="3"] [data-step-card="3"] {
    opacity: 1; transform: translateY(-4px) scale(1.012); filter: saturate(1.08);
    outline: 1px solid rgba(231,193,18,0.44); outline-offset: 2px; }
  .zone-contact .final-cta,
  .zone-contact .footer-stack,
  .zone-contact .demo-footer,
  .zone-contact .footer-brand,
  .zone-contact .footer-brand p,
  .zone-contact .footer-cta,
  .zone-contact .footer-nav,
  .zone-contact .footer-services,
  .zone-contact .footer-contact,
  .zone-contact .footer-legal {
    transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .zone-contact {
    row-gap: clamp(8px, 1.1vh, 14px);
    transform: translateY(calc(var(--py, 26px) - var(--footer-lift, 0px)));
  }
  .zone-contact .final-cta {
    position: relative;
    min-height: max(670px, 88vh);
  }
  .zone-contact .final-copy {
    position: relative;
    z-index: 3;
    transform: none;
  }
  .zone-contact .final-copy .lead {
    position: absolute;
    left: 50%;
    top: clamp(440px, 60vh, 560px); /* remonte AVEC le footer (lift naturel du panneau) */
    width: min(820px, 78vw);
    margin: 0;
    transform: translateX(-50%);
    text-shadow: 0 2px 20px rgba(0,0,0,0.92);
  }
  .zone-contact .final-cta .actions {
    position: absolute;
    left: 50%;
    top: clamp(540px, 74vh, 690px); /* sous l’abeille à l’arrivée, remonte avec le panneau */
    z-index: 4;
    transform: translateX(-50%);
    margin-bottom: 0;
  }
  .zone-contact .footer-stack {
    width: min(900px, 66vw);
    margin-top: clamp(12px, 1.8vh, 24px);
    margin-bottom: 0;
  }
  .zone-contact .stack-capsule { height: clamp(56px, 5.8vh, 66px); }
  .zone-contact .stack-track { gap: clamp(92px, 7vw, 120px); padding-inline: 34px; }
  .zone-contact .stack-logo { height: clamp(24px, 2.1vw, 30px); opacity: .92; }
  .zone-contact .demo-footer {
    align-items: start;
    grid-template-columns: minmax(300px, 1.08fr) .58fr .72fr .62fr;
  }
  .zone-contact .footer-brand {
    display: grid;
    align-content: start;
    gap: clamp(9px, 1vh, 12px);
    padding-right: clamp(16px, 2vw, 28px);
    border-right: 1px solid rgba(255,255,255,0.075);
  }
  .zone-contact .demo-footer .logo {
    width: max-content;
    margin-bottom: 0;
  }
  .zone-contact .demo-footer .footer-brand .logo-img {
    height: clamp(48px, 3.8vw, 56px);
  }
  .zone-contact .footer-brand p {
    max-width: min(390px, 100%);
    margin: 0;
    line-height: 1.54;
    color: rgba(225,225,225,0.72);
  }
  .zone-contact .footer-cta {
    width: max-content;
    justify-self: start;
    margin-top: clamp(2px, .6vh, 7px);
  }
  .zone-contact .footer-nav,
  .zone-contact .footer-services,
  .zone-contact .footer-contact {
    position: relative;
    min-height: clamp(128px, 13vh, 150px);
    align-content: start;
    padding: clamp(4px, .7vh, 8px) 0 0 clamp(14px, 1.3vw, 18px);
    border-left: 1px solid rgba(255,255,255,0.075);
  }
  .zone-contact .footer-nav::before {
    content: "Explorer";
    margin-bottom: 2px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .zone-contact .footer-services .tag,
  .zone-contact .footer-contact .tag {
    margin-bottom: 2px;
  }
  .zone-contact .footer-nav a,
  .zone-contact .footer-services p:not(.tag),
  .zone-contact .footer-contact p:not(.tag),
  .zone-contact .footer-contact a {
    min-height: 20px;
    display: flex;
    align-items: center;
  }
  .zone-contact .footer-legal {
    margin-top: clamp(0px, .5vh, 6px);
    padding-top: 9px;
  }
  .zone-contact[data-step="0"] .footer-stack,
  .zone-contact[data-step="1"] .footer-stack {
    opacity: 1;
    transform: translateY(0);
  }
  .zone-contact[data-step="0"] .demo-footer,
  .zone-contact[data-step="1"] .demo-footer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: none;
  }
  .zone-contact[data-step="1"] .final-cta { transform: none; }
  .zone-contact[data-step="2"] {
    align-content: start;
  }
  .zone-contact[data-step="2"] .final-cta {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .zone-contact[data-step="2"] .final-copy {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  /* Footer révélé : le lead et les CTA s'effacent pour ne pas chevaucher le footer */
  .zone-contact[data-step="2"] .final-copy .lead,
  .zone-contact[data-step="2"] .final-cta .actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  .zone-contact[data-step="2"] .footer-stack { opacity: 1; transform: translateY(0); }
  .zone-contact[data-step="2"] .demo-footer { opacity: 1; transform: translateY(0); }
}

.project-card, .blog-grid article { padding: 0; }
.project-card > img, .blog-grid article > img { width: 100%; object-fit: cover; display: block; border-bottom: 1px solid rgba(255,255,255,0.11); filter: saturate(1.04) contrast(1.04); }
.project-card > img { height: clamp(118px, 14vh, 168px); }
.blog-grid article > img { height: clamp(88px, 11vh, 126px); }
.project-card .cbody, .blog-grid .cbody { padding: 16px 18px 18px; }
.project-card .feature-list { grid-template-columns: 1fr; gap: 6px; }
.format-note { margin-top: 14px; color: var(--gris-soft); font-size: 12.5px; text-align: center; letter-spacing: .02em; }

.primary-card { background:
    radial-gradient(120% 130% at 50% 0%, rgba(231,193,18,0.22), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.025)),
    rgba(28,28,28,0.62); }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.tech-cloud span { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 11px;
  border: 1px solid rgba(0,157,215,0.28); border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,157,215,0.15), rgba(231,193,18,0.08)); color: var(--gris);
  font-size: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }

/* ===================== Final CTA + footer ===================== */
.final-cta { align-self: stretch; justify-self: center; width: min(980px, 92vw);
  min-height: clamp(420px, 62vh, 690px); padding: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.final-copy { justify-self: center; align-self: start; }
.final-cta .snum { font-size: clamp(58px, 8vw, 118px); margin-bottom: 2px; }
.final-cta h2 { font-size: clamp(42px, 6vw, 86px); line-height: .98; margin-bottom: 22px; }
.final-cta .lead { max-width: 66ch; margin-inline: auto; font-size: clamp(16px, 1.45vw, 21px); }
.final-cta .actions { align-self: end; justify-content: center; margin-bottom: clamp(8px, 2.2vh, 28px); }

.demo-footer { position: relative; width: min(1280px, 100%); justify-self: center;
  min-height: clamp(230px, 24vh, 290px);
  display: grid; grid-template-columns: minmax(250px, 1.05fr) .56fr .68fr .58fr;
  gap: clamp(10px, 1.6vw, 22px) clamp(18px, 2.8vw, 38px); align-items: start; text-align: left;
  padding: clamp(16px, 2vw, 24px) clamp(20px, 3vw, 40px) calc(clamp(14px, 1.8vw, 22px) + env(safe-area-inset-bottom));
  border: 1px solid rgba(255,255,255,0.12); border-bottom: 0; border-radius: 28px 28px 0 0;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(0,157,215,0.11), transparent 42%),
    linear-gradient(180deg, rgba(5,8,18,0.86), rgba(10,10,12,0.92));
  box-shadow: 0 -26px 90px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
  overflow: hidden; }
.demo-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--jaune), transparent); opacity: .9; }
.demo-footer > * { min-width: 0; }
.demo-footer .logo { margin-bottom: 8px; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px;
  justify-content: space-between; align-items: center;
  margin-top: clamp(10px, 1.6vw, 18px); padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08); }
.footer-copy { margin: 0; font-size: 12px; color: rgba(255,255,255,0.42); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-legal-links a { font-size: 12px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s var(--ease); }
.footer-legal-links a:hover { color: var(--cyan); }
.footer-brand p, .footer-contact p, .footer-services p { color: var(--gris-soft); font-size: 12px; line-height: 1.45; }
.footer-nav, .footer-services { display: grid; gap: 7px; }
.footer-nav a, .footer-contact a { color: var(--gris); text-decoration: none; font-size: 13px; transition: color .2s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-contact { display: grid; gap: 6px; }
.footer-contact .tag, .footer-stack .tag { margin-bottom: 8px; }

/* Capsule flottante logos stack */
.footer-stack { position: relative; width: min(760px, 100%); justify-self: center; z-index: 2; margin-bottom: clamp(4px, 1vh, 12px); }
.footer-stack .tag { text-align: center; }
.stack-capsule {
  position: relative;
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.56), 0 2px 8px rgba(0,0,0,0.32);
  overflow: hidden;
  height: 46px; box-sizing: border-box; display: flex; align-items: center; /* = hauteur bouton CTA desktop/mobile */
  /* Flottement : capsule légèrement soulevée, ombre qui la détache */
  transform: translateY(-6px);
}
.stack-marquee { position: relative; overflow: hidden; width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.stack-track { display: flex; width: max-content; gap: 82px; padding: 0 24px; animation: stack-run 42s linear infinite; align-items: center; }
.stack-logo { flex: 0 0 auto; height: 20px; width: auto; display: block; opacity: 0.88; filter: brightness(0) invert(1); }
@keyframes stack-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================= Section CTAs cross-page */
.section-cta { display: flex; justify-content: center; margin-top: clamp(18px, 3vh, 28px); }

/* Bouton "En préparation" : muté, non-interactif, même gabarit que .ghost */
.button.soon {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--gris-soft);
  background: transparent;
  cursor: default;
  opacity: 0.62;
  /* Suppression totale des transitions héritées pour zéro hover side-effect */
  transition: none;
  pointer-events: none;
  user-select: none;
}
.button.soon:hover,
.button.soon:focus {
  transform: none;
  background: transparent;
  box-shadow: none;
  border-color: rgba(255,255,255,0.18);
  color: var(--gris-soft);
}
.button.soon .pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(225,225,225,0.50);
  background: rgba(255,255,255,0.055);
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
}

/* Short desktop : marge réduite pour que le bouton reste visible */
@media (min-width: 721px) and (max-height: 1000px) {
  .section-cta { margin-top: clamp(10px, 1.6vh, 18px); }
}

/* ===================================================== Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-driver { display: none; }
  .stage { position: relative; }
  .webgl { display: none; }
  .panels { position: relative; }
  .panel { position: relative; opacity: 1; transform: none; max-width: none;
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 16vh 8vw; }
  .frame { opacity: .3; }
  .step-copy { min-height: auto; display: grid; gap: 8px; }
  .step-copy span { position: relative; inset: auto; opacity: 1; transform: none; }
  [data-step-card] { opacity: 1 !important; transform: none !important; filter: none !important; outline: 0 !important; }
}

/* ================================================================ Tablet */
@media (max-width: 1024px) {
  .topbar nav { display: none; }
  .topbar-inner { width: 100%; gap: 14px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .zone-adn { grid-template-columns: 1fr; gap: 20px; width: min(720px, 92vw); }
  .adn-grid { grid-template-columns: repeat(2, 1fr); }
  .adn-intro h2.serif { font-size: clamp(40px, 8vw, 60px); }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards.news { grid-template-columns: 1fr; }
  .zone-wide, .zone-projects, .zone-lab { width: min(820px, 92vw); max-width: 92vw; }
  .service-stack, .training-grid, .project-grid, .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-footer { grid-template-columns: 1fr 1fr; }
}

/* ======================================================== Short desktop
   Evite que les sections riches passent sous le bas des laptops 13/14". */
@media (min-width: 721px) and (max-height: 1000px) {
  .topbar { padding-block: 12px; }
  .panel { padding: clamp(12px, 2vw, 28px); }
  .zone-bl { bottom: clamp(28px, 6vh, 64px); max-width: min(620px, 82vw); }
  .zone-adn, .zone-wide { top: calc(50% + 42px); }
  .zone-projects, .zone-lab { top: 84px; }
  .zone-wide { width: min(1080px, 86vw); max-width: 86vw; }
  .zone-contact { padding-top: 72px; }
  .final-cta { padding-bottom: 16px; }
  .final-cta .snum { font-size: clamp(46px, 6vw, 76px); }
  .final-cta h2 { font-size: clamp(34px, 4.8vw, 62px); margin-bottom: 12px; }
  .final-cta .lead { font-size: clamp(14px, 1.2vw, 17px); margin-bottom: 14px; }
  .demo-footer { padding-block: 14px 12px; gap: 12px 24px; grid-template-columns: 1.05fr .55fr .66fr .58fr; }
  .snum { font-size: clamp(36px, 5vw, 66px); margin-bottom: 0; }
  .panel h1 { font-size: clamp(34px, 5vw, 62px); margin-bottom: 14px; }
  .panel h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 10px; }
  .lead { font-size: clamp(14px, 1.15vw, 16px); line-height: 1.42; margin-bottom: 14px; }
  .proof-strip { margin-bottom: 14px; }
  .proof-strip span { padding: 10px 12px; }
  .service-stack, .training-grid, .project-grid, .blog-grid, .contact-grid { gap: 12px; margin-top: 14px; }
  .service-card, .training-grid article, .contact-card { padding: 15px 16px; }
  .service-index { width: 28px; height: 32px; margin-bottom: 8px; }
  .service-card small, .training-grid small, .project-card small, .blog-grid small, .contact-card small { font-size: 11.5px; line-height: 1.42; }
  .feature-list { gap: 5px; margin-top: 8px; }
  .feature-list li { font-size: 10.5px; line-height: 1.32; }
  .substep-rail { margin-bottom: 8px; }
  .step-copy { min-height: 36px; margin-bottom: 10px; }
  .step-copy span { padding: 9px 12px; font-size: 11px; line-height: 1.34; }
  .project-card > img { height: 104px; }
  .blog-grid article > img { height: 76px; }
  .project-card .cbody, .blog-grid .cbody { padding: 12px 14px 14px; }
  .format-note, .contact-meta { margin-top: 10px; }
  .adn-card { padding: 13px 15px; }
  .adn-card .el { width: 36px; height: 36px; }
  .adn-card small { font-size: 11px; line-height: 1.34; }
  .adn-stat { margin-top: 8px; padding-top: 8px; }
  .adn-stat strong { font-size: clamp(23px, 2.2vw, 30px); }
}

/* ================================================================ Mobile
   Récit vertical: tout le contenu est dans le flux, aucune carte n'est rognee. */
@media (max-width: 720px) {
  html, body { overflow-x: clip; }   /* clip (pas hidden) : ne casse pas position:sticky */
  .story-rail { display: none; }
  body[data-layout="mobile-story"] .story-rail {
    display: flex;
    position: fixed;
    left: max(4px, env(safe-area-inset-left));
    top: 50%;
    z-index: 43;
    width: 34px;
    height: min(48svh, 380px);
    min-height: 250px;
    padding: 12px 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
    touch-action: none;
  }
  body[data-layout="mobile-story"] .story-rail::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(231,193,18,0.20), rgba(0,157,215,0.62), rgba(231,193,18,0.20));
    opacity: .72;
  }
  body[data-layout="mobile-story"] .rail-item {
    position: relative;
    z-index: 1;
    width: 34px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    color: rgba(255,255,255,0.42);
    touch-action: none;
  }
  body[data-layout="mobile-story"] .rail-item::before,
  body[data-layout="mobile-story"] .rail-item small {
    display: none;
  }
  body[data-layout="mobile-story"] .rail-item span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    font-size: 0;
    background: rgba(255,255,255,0.44);
    box-shadow: 0 0 0 4px rgba(8,8,10,0.20);
    transition: transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
  }
  body[data-layout="mobile-story"] .rail-item.is-active span {
    background: var(--jaune);
    box-shadow: 0 0 0 5px rgba(231,193,18,0.12), 0 0 14px rgba(0,157,215,0.50);
    transform: scale(1.55);
  }
  /* perf2 : barre de scroll gauche FONDUE (collee au bord, discrete, ne couvre plus le visuel) */
  body[data-mobile-effects="off"][data-layout="mobile-story"] .story-rail {
    left: auto; right: max(2px, env(safe-area-inset-right)); width: 18px; height: min(38svh, 300px); padding: 8px 0;
  }
  body[data-mobile-effects="off"][data-layout="mobile-story"] .story-rail::before {
    left: 8px; width: 2px; opacity: .28;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.20), transparent);
  }
  body[data-mobile-effects="off"][data-layout="mobile-story"] .rail-item { width: 18px; min-width: 18px; }
  body[data-mobile-effects="off"][data-layout="mobile-story"] .rail-item span {
    width: 4px; height: 4px; background: rgba(255,255,255,0.26); box-shadow: none;
  }
  body[data-mobile-effects="off"][data-layout="mobile-story"] .rail-item.is-active span {
    width: 5px; height: 5px; background: var(--cyan);
    box-shadow: 0 0 8px rgba(0,157,215,0.55); transform: scale(1.35);
  }
  /* perf2 : nom de la section (tag a cote du point actif) — cache par defaut, en fondu */
  body[data-mobile-effects="off"][data-layout="mobile-story"] .rail-item.is-active small {
    display: block; position: absolute; right: 48px; left: auto; top: 50%; transform: translateY(-50%);
    white-space: nowrap; font-size: 11px; font-weight: 500; color: #fff;
    background: rgba(8,8,12,0.42); padding: 4px 10px; border-radius: 999px;
    border: 1px solid rgba(0,157,215,0.28); box-shadow: 0 4px 14px rgba(0,0,0,0.30);
    pointer-events: none; z-index: 5;
    opacity: 0; transition: opacity .45s ease;
  }
  /* drag de la barre : un peu plus visible (l'utilisateur s'en sert) */
  body[data-mobile-effects="off"][data-layout="mobile-story"] .story-rail.rail-scrubbing .rail-item.is-active small {
    opacity: 0.85;
  }
  /* hint au scroll normal : discret car secondaire */
  body[data-mobile-effects="off"][data-layout="mobile-story"] .story-rail.rail-hint .rail-item.is-active small {
    opacity: 0.7;
  }
  body[data-mobile-effects="off"][data-layout="mobile-story"] .rail-item[data-i="6"].is-active small {
    display: none;
  }
  .scrub-bar { height: 3px; }
  .topbar { padding: 16px 16px 12px; background: linear-gradient(180deg, rgba(28,28,28,0.94), rgba(28,28,28,0.72) 78%, transparent); }
  .topbar .button.small { padding: 11px 16px; }
  .logo { font-size: 18px; }
  #scrolly { min-height: 100vh; }
  .scroll-driver { display: none; }

  .stage { position: relative; inset: auto; min-height: 100vh; overflow: visible; background: var(--noir-deep); }
  .stage::before, .stage::after { position: fixed; }
  .frames, .stage-video, .hexnet, .hex-vignette, .scene-fusion, .webgl { position: fixed; inset: 0; }
  .frames { z-index: 0; }
  .hexnet { z-index: 1; }
  .hex-vignette { z-index: 2; }
  .scene-fusion { z-index: 3; opacity: .26; }
  .webgl { z-index: 4; }
  .panels { position: relative; inset: auto; z-index: 10; display: grid; gap: 18px;
    padding: 98px 16px 34px; }

  .panel, #accueil, .zone-top, .zone-center, .zone-left, .zone-bl, .zone-wide, .zone-projects, .zone-lab, .zone-contact {
    position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto;
    width: 100%; max-width: 100%; max-height: none; min-height: auto; overflow: visible;
    opacity: 1 !important; transform: none !important; pointer-events: auto;
    text-align: left; padding: 20px 18px; scroll-margin-top: 88px;
    border: 1px solid rgba(255,255,255,0.13); border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.018)),
      linear-gradient(180deg, rgba(28,28,28,0.82), rgba(28,28,28,0.94));
    box-shadow: 0 22px 80px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.09);
    backdrop-filter: blur(16px); }
  .panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--jaune), transparent); opacity: .55; }
  .panel.is-active { border-color: rgba(231,193,18,0.34); box-shadow: 0 22px 80px rgba(0,0,0,0.48), 0 0 40px rgba(231,193,18,0.12), inset 0 1px 0 rgba(255,255,255,0.11); }

  .panel h1 { font-size: clamp(28px, 9vw, 40px); margin-bottom: 14px; }

  /* ===== Mobile : moteur GSAP epingle (pin + crossfade + entree/sortie). Le CSS ne fait QUE la mise en page. ===== */
  .panels { display: block; padding: 0; }
  .frames { display: block !important; }
  .frame { object-position: center !important; }            /* image (portrait hero / sections) centree */
  /* Recadrage portrait par section : garde l'abeille visible (sujet decentre selon la frame) */
  .frame[data-i="1"] { object-position: 50% center !important; } /* ADN : abeille centre */
  .frame[data-i="2"] { object-position: 24% center !important; } /* Services : abeille gauche */
  .frame[data-i="3"] { object-position: 73% center !important; } /* Realisations : abeille droite */
  .frame[data-i="4"] { object-position: 66% center !important; } /* Formations : abeille guide droite */
  .frame[data-i="5"] { object-position: 13% center !important; } /* Blog : abeille gauche */
  .frame[data-i="6"] { object-position: 50% center !important; } /* Finale : abeille centre */
  #scrolly::after { content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none;
    background: linear-gradient(to top, rgba(20,20,20,0.54) 0%, rgba(20,20,20,0.16) 52%, rgba(20,20,20,0.34) 100%); }
  body[data-layout="mobile-story"] .hex-vignette { opacity: .58; }
  body[data-layout="mobile-story"] .scene-fusion { opacity: .14 !important; }
  /* chaque section = un conteneur dont la hauteur (posee par JS) donne le "temps" d'epinglage ;
     .sec-pin (sticky) FIGE le contenu a l'ecran -> apparition a hauteur fixe, pas de scroll classique.
     On ne scrolle que l'interieur (.sec-copy translatee) quand le contenu depasse l'ecran. */
  .panel { position: relative; min-height: 100svh; z-index: 10;
    background: none !important; border: none !important; box-shadow: none !important;
    backdrop-filter: none !important; border-radius: 0 !important; margin: 0 !important;
    padding: 0 !important;
    text-shadow: 0 2px 16px rgba(20,20,20,0.96), 0 1px 5px rgba(0,0,0,0.92); }
  .panel::before { display: none !important; }
  .hero-mobile-bee { display: none; }
  .sec-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .sec-pin::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; height: 13svh;
    pointer-events: none; background: linear-gradient(180deg, transparent, rgba(20,20,20,0.46));
    opacity: 1; transition: opacity .25s var(--ease); }
  .story-cue { appearance: none; width: 48px; height: 48px; margin: clamp(22px, 4.8svh, 44px) auto 0;
    display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent;
    color: var(--cyan); opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity .28s var(--ease), transform .28s var(--ease); }
  .story-cue span { width: 28px; height: 28px;
    border-right: 2px solid rgba(231,193,18,0.72); border-bottom: 2px solid rgba(0,157,215,0.72);
    transform: rotate(45deg);
    filter: drop-shadow(0 0 9px rgba(0,157,215,0.40));
    animation: osmia-cue 2.6s ease-in-out infinite; }
  .story-cue.is-visible { opacity: .78; pointer-events: auto; transform: translateY(0); }
  .story-cue:focus-visible { outline: 2px solid rgba(0,157,215,0.72); outline-offset: 5px; }
  @keyframes osmia-cue {
    0%, 100% { opacity: .32; transform: translateY(-5px) rotate(45deg); }
    48% { opacity: .86; transform: translateY(5px) rotate(45deg); }
  }
  body[data-mobile-anchor-panel="6"][data-mobile-anchor-type="content-end"] #contact .sec-pin::before { opacity: 0; }
  /* hero : EPINGLE comme les sections (pas de vrai scroll). Le bloc titre monte puis se fige ; le reste apparait en fade. */
  #accueil .sec-pin { display: flex; flex-direction: column; justify-content: flex-start; padding: 15svh 22px 18svh; }
  .hero-copy { display: contents; }
  .hero-copy .actions { pointer-events: auto; }
  .sec-copy { box-sizing: border-box; min-height: 100svh; display: flex; flex-direction: column; padding: 12svh 20px 7svh; will-change: transform; }
  .sec-pin > *, .hero-copy > * { position: relative; z-index: 10; }
  #accueil .story-cue { margin-top: auto; }
  .panel h2 { font-size: clamp(24px, 7.5vw, 34px); }
  .snum { font-size: 44px; }
  .lead { font-size: 14px; margin-bottom: 14px; }
  .lead, .zone-top .lead, .zone-center .lead, .zone-projects .lead, .zone-lab .lead, .zone-contact .lead { margin-inline: 0; }
  .actions, .zone-top .actions, .zone-center .actions, .zone-contact .actions { justify-content: flex-start; }
  .button { padding: 12px 18px; }
  .button.primary, .topbar .button.primary.small {
    text-shadow: none !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .045em;
  }

  .proof-strip, .pillars, .pillars.compact, .adn-grid, .cards, .cards.duo, .cards.news,
  .service-stack, .training-grid, .project-grid, .blog-grid, .contact-grid {
    grid-template-columns: 1fr; gap: 10px; }
  .zone-adn { grid-template-columns: 1fr; width: 100%; gap: 12px; align-items: start; }
  .adn-intro { margin-bottom: clamp(22px, 4svh, 34px); }
  .adn-intro h2.serif { font-size: clamp(34px, 10vw, 48px); margin-bottom: 8px; }
  .adn-intro .lead { font-size: 14px; margin-bottom: 8px; }
  .adn-sub { font-size: 12px; margin-bottom: 12px; }
  .zone-adn .adn-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .adn-card { padding: 12px; }
  .adn-card .el { width: 34px; height: 34px; margin-bottom: 8px; }
  .adn-card h3 { font-size: 13.5px; }
  .adn-card small { font-size: 10.5px; line-height: 1.4; }
  .adn-stat { margin-top: 8px; padding-top: 8px; }
  .adn-stat strong { font-size: 22px; }
  .adn-stat em { font-size: 10px; }
  .adn-stat cite { display: none; }
  .adn-hex { width: 40px; height: 46px; font-size: 16px; margin-bottom: 10px; }
  .service-card, .training-grid article, .contact-card { padding: 14px; }
  .service-index { width: 30px; height: 34px; margin-bottom: 8px; }
  .feature-list { gap: 5px; margin-top: 8px; }
  .feature-list li { font-size: 10.8px; }
  .substep-rail { gap: 6px; margin: 2px 0 10px; }
  .substep-rail-center { justify-content: flex-start; }
  .substep-rail span { min-height: 26px; padding: 5px 8px; font-size: 9.5px; }
  .step-copy, .step-copy-center { min-height: auto; display: grid; gap: 8px; margin: 0 0 12px; text-align: left; }
  .step-copy span { position: relative; inset: auto; opacity: 1; transform: none; padding: 10px 12px; font-size: 11.2px; }
  body[data-layout="mobile-story"] .lead,
  body[data-layout="mobile-story"] .adn-sub,
  body[data-layout="mobile-story"] .panel p:not(.tag):not(.eyebrow),
  body[data-layout="mobile-story"] .adn-card small,
  body[data-layout="mobile-story"] .service-card small,
  body[data-layout="mobile-story"] .training-grid small,
  body[data-layout="mobile-story"] .project-card small,
  body[data-layout="mobile-story"] .blog-grid small,
  body[data-layout="mobile-story"] .contact-card small,
  body[data-layout="mobile-story"] .adn-stat em,
  body[data-layout="mobile-story"] .feature-list li {
    color: rgba(248,248,248,0.90);
  }
  body[data-layout="mobile-story"] .step-copy span {
    color: rgba(250,250,250,0.88);
    background: linear-gradient(135deg, rgba(0,157,215,0.16), rgba(231,193,18,0.08)), rgba(18,22,22,0.24);
  }
  body[data-layout="mobile-story"] .service-card,
  body[data-layout="mobile-story"] .training-grid article,
  body[data-layout="mobile-story"] .project-card,
  body[data-layout="mobile-story"] .blog-grid article,
  body[data-layout="mobile-story"] .contact-card,
  body[data-layout="mobile-story"] .adn-card {
    background:
      radial-gradient(120% 140% at 18% 0%, rgba(0,157,215,0.18), transparent 38%),
      linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.035)),
      rgba(28,28,28,0.42);
    border-color: rgba(255,255,255,0.18);
  }
  [data-step-card] { opacity: 1 !important; transform: none !important; filter: none !important; outline: 0 !important; }
  .project-card > img { height: 98px; }
  .blog-grid article > img { height: 86px; }
  .project-card .cbody, .blog-grid .cbody { padding: 12px 14px 14px; }
  .format-note, .contact-meta { text-align: left; font-size: 11.5px; }
  .zone-contact { display: block; padding: 0; }
  .zone-contact, .final-cta, .demo-footer { min-width: 0; }
  .zone-contact, .final-cta { overflow: visible; }
  #contact .sec-copy { padding: 12svh 20px 0; }
  .final-cta { width: 100%; max-width: 100%; padding: 20px 18px 22px; }
  #contact .final-cta { text-align: center; padding: 18px 0 0; }
  .final-cta .snum { font-size: 48px; }
  .final-cta h2 { max-width: 100%; font-size: clamp(29px, 8.2vw, 36px); line-height: 1.05; margin-bottom: 14px;
    overflow-wrap: break-word; text-wrap: balance; }
  .final-cta .lead { max-width: 100%; font-size: 14px; margin-inline: 0; overflow-wrap: break-word; }
  .final-cta .actions { justify-content: flex-start; }
  #contact .final-cta .lead { margin-inline: auto; }
  #contact .final-cta .actions { justify-content: center; margin-top: clamp(22px, 4svh, 34px); }
  .demo-footer { width: calc(100% + 40px); grid-template-columns: 1fr; gap: 18px;
    margin: clamp(450px, 58svh, 560px) -20px 0;
    padding: 0 28px calc(76px + env(safe-area-inset-bottom));
    border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible;
    position: relative; z-index: 5; }
  .demo-footer::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 88px; bottom: 0; height: auto;
    border-radius: 26px 26px 0 0; border: 1px solid rgba(255,255,255,0.12); border-bottom: 0;
    background:
      radial-gradient(100% 90% at 72% 0%, rgba(0,157,215,0.13), transparent 42%),
      linear-gradient(180deg, rgba(5,8,18,0.76), rgba(8,8,10,0.88));
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
    backdrop-filter: blur(16px) saturate(1.18);
    box-shadow: 0 -22px 70px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.10); }
  .demo-footer::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 88px; height: 2px;
    border-radius: 999px; background: linear-gradient(90deg, transparent, var(--cyan), var(--jaune), transparent); opacity: .9; }
  .demo-footer > * { position: relative; z-index: 2; }
  /* Footer mobile : centre & equilibre (un seul axe vertical, plus de gauche/droite) */
  .demo-footer { text-align: center; }
  .footer-brand { padding-top: 10px; display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { max-width: 36ch; overflow-wrap: break-word; margin-inline: auto; }
  .footer-cta { align-self: center; margin: 14px auto 2px; }
  .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 18px; }
  .footer-services { display: none; }
  .footer-contact { display: flex; flex-direction: column; align-items: center; }
  .footer-legal { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; }
  .footer-stack { margin: 0 0 2px; width: 100%; } /* gap carrousel->footer = ~1/2 hauteur carrousel */
  .footer-stack .tag, .footer-contact .tag { margin: 0 0 12px; padding-left: 0; text-align: center; }
  .stack-capsule { box-shadow: 0 8px 28px rgba(0,0,0,0.40); transform: none; }
  .stack-marquee { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .stack-track { animation-duration: 38s; }
  .decor.fibo, .decor.halo, .swarm, .bee { display: none; }
  .frame { object-position: 65% center; }   /* garde l'abeille visible en portrait */

  /* Mode mobile natif: le fond reste fixe, le contenu revient dans le flux.
     Cela evite les grands blancs causes par le sticky + translateY des longues sections. */
  body[data-layout="mobile-story"] .webgl,
  body[data-layout="mobile-story"] .scene-fusion,
  body[data-mobile-effects="off"] .hexnet,
  body[data-mobile-effects="off"] .hex-vignette,
  body[data-mobile-effects="off"] .decor,
  body[data-mobile-effects="off"] .swarm,
  body[data-mobile-effects="off"] .bee {
    display: none !important;
  }
  body[data-layout="mobile-story"] .stage,
  body[data-layout="mobile-story"] .frames,
  body[data-layout="mobile-story"] .frame,
  body[data-layout="mobile-story"] .stage-video {
    pointer-events: none !important;
  }
  body[data-layout="mobile-story"] .stage::before,
  body[data-layout="mobile-story"] .stage::after {
    display: none !important;
  }
  body[data-layout="mobile-story"] .frame {
    transform: none !important;          /* fond fixe, cadrage object-position (scale 1) */
    will-change: auto !important;        /* filter (blur de transition) pilote en JS */
    transition: opacity .16s ease-out;
  }
  body[data-layout="mobile-story"] .hexnet { opacity: .42; }
  body[data-layout="mobile-story"] {
    touch-action: none;
    overscroll-behavior: contain;
  }
  body[data-layout="mobile-story"] #scrolly {
    touch-action: none;
    overscroll-behavior: contain;
  }
  body[data-layout="mobile-story"] .panels {
    display: block;
    padding: 0;
  }
  body[data-layout="mobile-story"] .panel,
  body[data-layout="mobile-story"] #accueil,
  body[data-layout="mobile-story"] .zone-top,
  body[data-layout="mobile-story"] .zone-center,
  body[data-layout="mobile-story"] .zone-left,
  body[data-layout="mobile-story"] .zone-bl,
  body[data-layout="mobile-story"] .zone-wide,
  body[data-layout="mobile-story"] .zone-projects,
  body[data-layout="mobile-story"] .zone-lab,
  body[data-layout="mobile-story"] .zone-contact {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    text-align: left;
    transform: none !important;
  }
  body[data-layout="mobile-story"] #accueil {
    min-height: 100svh;
    display: block;
    padding: 0 !important;
  }
  body[data-layout="mobile-story"] .hero-copy {
    display: contents;
  }
  body[data-layout="mobile-story"] .sec-pin {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
  }
  body[data-layout="mobile-story"] .sec-pin::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    height: 13svh;
    display: block !important;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(20,20,20,0.46));
  }
  body[data-layout="mobile-story"] .sec-copy {
    box-sizing: border-box;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 12svh 20px 7svh;
    will-change: transform;
  }
  body[data-layout="mobile-story"] .story-cue {
    appearance: none;
    position: relative;
    z-index: 12;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 68px;
    margin: clamp(28px, 5svh, 46px) auto 0;
    border: 0;
    border-radius: 999px;
    background: rgba(8,8,10,0.22);
    color: var(--cyan);
    opacity: .88 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    transform: none !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.24);
  }
  body[data-layout="mobile-story"] .story-cue span {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(231,193,18,0.82);
    border-bottom: 2px solid rgba(0,157,215,0.82);
    transform: rotate(45deg);
    filter: drop-shadow(0 0 8px rgba(0,157,215,0.42));
    animation: osmia-cue-native 2.4s ease-in-out infinite;
  }
  body[data-layout="mobile-story"] .story-cue span + span {
    margin-top: 2px;
    animation-delay: .15s;
  }
  body[data-layout="mobile-story"] .panel:last-child .story-cue {
    display: none !important;
  }
  @keyframes osmia-cue-native {
    0%, 100% { opacity: .38; transform: translateY(-2px) rotate(45deg); }
    48% { opacity: .96; transform: translateY(3px) rotate(45deg); }
  }
  /* perf2 : pas de chevron sur le hero (on le laisse net). Les autres sections gardent le double chevron d'origine. */
  body[data-mobile-effects="off"][data-layout="mobile-story"] #accueil .story-cue {
    display: none !important;
  }
  body[data-layout="mobile-story"] .service-card,
  body[data-layout="mobile-story"] .training-grid article,
  body[data-layout="mobile-story"] .project-card,
  body[data-layout="mobile-story"] .blog-grid article,
  body[data-layout="mobile-story"] .contact-card,
  body[data-layout="mobile-story"] .adn-card,
  body[data-layout="mobile-story"] .proof-strip span,
  body[data-layout="mobile-story"] .step-copy span {
    backdrop-filter: none !important;
    background:
      radial-gradient(120% 140% at 18% 0%, rgba(0,157,215,0.16), transparent 38%),
      linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
      rgba(22,22,22,0.74);
  }
  body[data-layout="mobile-story"] .final-cta {
    padding: 0 0 clamp(30px, 6svh, 52px);
  }
  body[data-layout="mobile-story"] .demo-footer {
    margin: clamp(56px, 10svh, 92px) -20px 0;
  }
  body[data-layout="mobile-story"] #contact .sec-copy {
    padding: 0 20px;
  }
  body[data-layout="mobile-story"] #contact .final-cta {
    min-height: clamp(500px, 72svh, 640px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: clamp(82px, 12svh, 112px) 0 clamp(18px, 4svh, 36px);
  }
  body[data-layout="mobile-story"] #contact .final-copy {
    text-align: center;
  }
  body[data-layout="mobile-story"] #contact .final-cta .actions {
    align-self: end;
    justify-content: center;
    margin: 0;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  body[data-layout="mobile-story"] #contact.is-footer-focus .final-cta .actions {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
  }
  body[data-layout="mobile-story"] #contact .footer-stack {
    order: 0;
    margin: clamp(12px, 2svh, 18px) 0 clamp(8px, 1.4svh, 12px);
  }
  body[data-layout="mobile-story"] #contact .demo-footer {
    min-height: calc(100svh - 154px);
    align-content: start;
    gap: 0;
    margin: 0 -20px;
    padding: clamp(18px, 2.8svh, 24px) 26px calc(42px + env(safe-area-inset-bottom));
  }
  body[data-layout="mobile-story"] #contact .demo-footer::before {
    top: 0;
    border-radius: 30px 30px 0 0;
  }
  body[data-layout="mobile-story"] #contact .demo-footer::after {
    top: 0;
  }
  body[data-layout="mobile-story"] #contact .footer-brand {
    display: grid;
    justify-items: center;
    gap: clamp(9px, 1.6svh, 13px);
    padding-top: clamp(2px, .6svh, 6px);
  }
  body[data-layout="mobile-story"] #contact .footer-brand .logo-img {
    height: clamp(50px, 13vw, 62px);
  }
  body[data-layout="mobile-story"] #contact .footer-brand p {
    max-width: 31ch;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
  }
  body[data-layout="mobile-story"] #contact .footer-cta {
    margin: clamp(2px, .8svh, 6px) auto 0;
  }
  body[data-layout="mobile-story"] #contact .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 8px 24px;
    margin-top: clamp(22px, 3.4svh, 30px);
    padding-top: clamp(16px, 2.6svh, 22px);
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  body[data-layout="mobile-story"] #contact .footer-nav a {
    font-size: 14px;
    line-height: 1.2;
  }
  body[data-layout="mobile-story"] #contact .footer-nav a:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }
  body[data-layout="mobile-story"] #contact .footer-contact {
    margin-top: clamp(20px, 3svh, 28px);
    padding-top: clamp(16px, 2.4svh, 20px);
    border-top: 1px solid rgba(255,255,255,0.10);
    gap: 8px;
  }
  body[data-layout="mobile-story"] #contact .footer-contact .tag {
    margin-bottom: 2px;
  }
  body[data-layout="mobile-story"] #contact .footer-contact p,
  body[data-layout="mobile-story"] #contact .footer-contact a {
    font-size: 14px;
    line-height: 1.35;
  }
  body[data-layout="mobile-story"] #contact .footer-legal {
    margin-top: clamp(22px, 3.2svh, 30px);
    padding-top: clamp(16px, 2.4svh, 20px);
    gap: 10px;
  }
  body[data-layout="mobile-story"] #contact .footer-copy {
    max-width: 29ch;
    line-height: 1.4;
  }
  body[data-layout="mobile-story"] #contact .footer-legal-links {
    justify-content: center;
    gap: 8px 18px;
  }
  body[data-layout="mobile-story"][data-beat="6"] .story-rail {
    opacity: 0;
    pointer-events: none;
  }
}


/* ===== Burger menu mobile (<=1024px) ===== */
.burger{ display:none; }
.mobile-menu{ display:none; }
@media (max-width: 1024px){
  .burger{ display:inline-flex; flex-direction:column; justify-content:center; gap:5px;
    width:42px; height:42px; padding:0; position:relative; z-index:70;
    border:1px solid rgba(255,255,255,.16); border-radius:11px;
    background:rgba(28,28,28,.5); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); cursor:pointer; }
  .burger span{ display:block; width:20px; height:2px; margin:0 auto; background:var(--blanc);
    border-radius:2px; transition:transform .3s var(--ease), opacity .2s; }
  body.menu-open .topbar{ z-index:80; }
  body.menu-open .burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2){ opacity:0; }
  body.menu-open .burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  .mobile-menu{ position:fixed; inset:0; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:24px;
    background:linear-gradient(160deg, rgba(20,26,46,.985), rgba(8,8,10,.99));
    -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
    opacity:0; pointer-events:none; transform:translateY(-8px);
    transition:opacity .3s var(--ease), transform .3s var(--ease); z-index:60; }
  .mobile-menu a{ font-family:var(--font-display); font-size:24px; letter-spacing:.01em; color:var(--blanc); text-decoration:none; }
  .mobile-menu a:hover, .mobile-menu a:focus-visible{ color:var(--cyan); }
  body.menu-open .mobile-menu{ opacity:1; pointer-events:auto; transform:none; }
  body.menu-open{ overflow:hidden; }
}

.frames .frame-pic{ display:contents; }

.frame[data-i="6"]{ object-fit: cover; }

/* section 07 : titre en haut, abeille degagee */
.final-cta{ align-self: start; }

/* WP: liens titres news dynamiques */
.blog-grid h3 a { color: inherit; text-decoration: none; }

/* ===== Lisibilité textes descriptifs sur fonds chargés (audit expert 2026-06-11) ===== */
.adn-intro .adn-sub, .adn-intro p:not(.lead) {
  color: rgba(232, 232, 232, 0.86);
  text-shadow: 0 1px 3px rgba(10, 10, 12, 0.9), 0 2px 22px rgba(10, 10, 12, 0.85);
}
.adn-card p { color: rgba(228, 228, 228, 0.88); }

/* Chatbot : bouton d'envoi aligné totem (flat jaune, pas de dégradé orangé) */
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-send,
html body .n8n-chatbot-widget[data-theme="osmia"] #n8n-chatbot-send,
.n8n-chatbot-send, .n8n-chatbot-send.osmia-send {
  background: var(--jaune) !important;
  background-image: none !important;
  color: #141414 !important;
}

/* ===== Chatbot : alignement totem (bulle mascotte + panneau + chips) — 2026-06-11 ===== */
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-icon {
    width: 62px !important; height: 62px !important; border-radius: 50% !important;
    background: linear-gradient(135deg, #F9E71E 0%, #f59e0b 100%) !important;
    box-shadow: 0 6px 22px rgba(231,193,18,0.38), 0 2px 8px rgba(0,0,0,0.35) !important;
    border: 2px solid rgba(255,255,255,0.18) !important;
    transition: transform .25s cubic-bezier(0.4,0,0.2,1), box-shadow .25s !important;
}
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(231,193,18,0.5) !important;
}
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-launcher-emoji { display: none !important; }
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-icon::before { display: none !important; }
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-box {
    border-radius: 22px !important; border: 1px solid rgba(255,255,255,0.12) !important;
    overflow: hidden !important;
}
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-box::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 5;
    background: linear-gradient(90deg, transparent, #009dd7, #e7c112, transparent); opacity: .9;
}
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-suggestion {
    border: 1px solid rgba(0,157,215,0.55) !important; color: #cfeaf6 !important;
    background: rgba(0,157,215,0.10) !important; border-radius: 11px !important;
}
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-suggestion:hover { background: rgba(0,157,215,0.22) !important; }
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-suggestion.suggestion-primary {
    background: #e7c112 !important; color: #141414 !important; border-color: #e7c112 !important; font-weight: 700 !important;
}
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-avatar img { border-radius: 50% !important; }

/* Flèche d'envoi : SVG inline du template (le hack background-image est retiré,
   le vrai bug était le padding générique 11px 25px → fixé dans osmia-theme.css) */
html body .n8n-chatbot-widget[data-theme="osmia"] .n8n-chatbot-send i { display: none !important; }
