/* ============ FRM — deux ambiances, une seule identité ============ */
:root {
  --teal: #0B7A8C;
  --teal-bright: #19B6C8;
  --teal-soft: #DCEEF0;
  --ink: #05090B;
  --ink-logo: #121A1D;
  --paper: #F5F7F7;
  --gut: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
}

/* Consulting : sombre, précis */
html[data-mode="consulting"] {
  --bg: var(--ink);
  --fg: #E8EFF0;
  --muted: #869A9E;
  --accent: var(--teal-bright);
  --on-accent: var(--ink);
  --line: rgba(232, 239, 240, .12);
  --card: rgba(255, 255, 255, .03);
  --radius: 20px;
  color-scheme: dark;
}
/* Formation : bento lumineux, couleurs du logo */
html[data-mode="formation"] {
  --bg: #FFFFFF;
  --fg: var(--ink-logo);
  --muted: #5A6A6E;
  --accent: var(--teal);
  --on-accent: #FFFFFF;
  --line: rgba(18, 26, 29, .09);
  --card: rgba(255, 255, 255, .8);
  --radius: 30px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
[hidden] { display: none !important; }

html[data-mode="consulting"] .only-f,
html[data-mode="formation"] .only-c { display: none !important; }

.wrap { padding-left: var(--gut); padding-right: var(--gut); }

/* Accent typographique : italique serif dans les deux univers */
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); }
h1 em, h2 em, h3 em { font-size: 1.06em; line-height: .9; }
/* Formation : accent en dégradé teal, sans italique */
html[data-mode="formation"] em {
  padding-bottom: .1em;
  font-family: var(--display); font-style: normal; font-weight: 600; font-size: 1em; letter-spacing: inherit;
  background: linear-gradient(100deg, #0B7A8C 10%, #19B6C8 60%, #0B7A8C 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s ease-in-out infinite;
}
/* Mots découpés : chaque mot porte son propre dégradé */
html[data-mode="formation"] em:has(.wi) { background: none; animation: none; }
html[data-mode="formation"] em .wi {
  /* le dégradé doit couvrir les jambages (g, p, q) sinon ils sont coupés */
  padding-bottom: .16em; margin-bottom: -.16em;
  background: linear-gradient(100deg, #0B7A8C 10%, #19B6C8 60%, #0B7A8C 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 50% { background-position: 100% 0; } }
html[data-mode="formation"] h1, html[data-mode="formation"] h2 { font-weight: 600; letter-spacing: -.05em; }

/* Halo doux derrière la version Formation */
.mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1s;
  background:
    radial-gradient(55% 45% at 85% 5%, rgba(25, 182, 200, .16), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(11, 122, 140, .10), transparent 70%); }
html[data-mode="formation"] .mesh { opacity: 1; }

/* ---------- Couches fixes ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
html[data-mode="formation"] .grain { opacity: .06; mix-blend-mode: multiply; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.mode-main { position: relative; z-index: 1; }

/* ---------- Curseur ---------- */
.cursor { display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
.c-dot, .c-ring { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; border-radius: 50%; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); transition: opacity .3s; }
.c-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; display: grid; place-items: center;
  border: 1px solid var(--fg); opacity: .3;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), opacity .3s, background .3s, border-color .3s;
}
.c-label { font: 600 11px/1 var(--display); letter-spacing: .04em; color: var(--on-accent); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease); white-space: nowrap; }
body.c-hover .c-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
body.c-label-on .c-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; opacity: 1; background: var(--accent); border-color: var(--accent); }
body.c-label-on .c-label { opacity: 1; transform: scale(1); }
body.c-label-on .c-dot { opacity: 0; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--teal-bright);
  display: grid; place-items: center; align-content: center; gap: 28px;
}
html[data-mode="formation"] #loader { background: #FFFFFF; color: var(--teal); }
.ld-logo { width: min(300px, 58vw); }
.ld-logo path, .foot-giant path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ld-tag { font: 500 11px/1 var(--display); letter-spacing: .4em; text-transform: uppercase; color: var(--fg); opacity: 0; transform: translateY(10px); display: flex; gap: 14px; align-items: center; }
.ld-tag i, .foot-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
.ld-num { position: absolute; right: var(--gut); bottom: var(--gut); font: 400 clamp(44px, 8vw, 110px)/1 var(--display); letter-spacing: -.05em; color: var(--fg); font-variant-numeric: tabular-nums; }
html.no-loader #loader { display: none; }

/* ---------- Rideau ---------- */
#wipe { position: fixed; inset: 0; z-index: 120; visibility: hidden; display: grid; place-items: center; overflow: hidden; }
#wipe[data-to="formation"] { background: #FFFFFF; }
#wipe[data-to="consulting"] { background: var(--ink); }
.wipe-label { display: block; font-size: clamp(56px, 13vw, 220px); line-height: 1.05; letter-spacing: -.05em; }
#wipe[data-to="formation"] .wipe-label { font-family: var(--display); font-weight: 600; background: linear-gradient(100deg, #0B7A8C, #19B6C8); -webkit-background-clip: text; background-clip: text; color: transparent; }
#wipe[data-to="consulting"] .wipe-label { font-family: var(--display); font-weight: 500; color: var(--teal-bright); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--gut);
  padding-top: max(16px, env(safe-area-inset-top));
  transition: transform .7s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.hide { transform: translateY(-110%); }
.nav.solid { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.brand-logo { width: 70px; height: 27px; }
.brand-sub { font: 500 10px/1 var(--display); letter-spacing: .34em; text-transform: uppercase; color: var(--fg); padding-left: 12px; border-left: 1px solid var(--line); }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { font: 500 14px/1 var(--display); padding: 6px 0; }

.switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.sw-opt { position: relative; z-index: 1; padding: 9px 16px; font: 500 13px/1 var(--display); transition: color .5s var(--ease); text-align: center; }
.sw-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent); transition: transform .8s var(--ease), background .5s; }
html[data-mode="formation"] .sw-thumb { transform: translateX(100%); }
html[data-mode="consulting"] .sw-opt[data-k="consulting"],
html[data-mode="formation"] .sw-opt[data-k="formation"] { color: var(--on-accent); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex: none; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .6s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 24px; }
html.menu-open .burger i:first-child { transform: translateY(3px) rotate(45deg); }
html.menu-open .burger i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Menu mobile */
#menu {
  position: fixed; inset: 0; z-index: 55; visibility: hidden;
  background: var(--bg); display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gut) max(32px, env(safe-area-inset-bottom));
}
.menu-links { display: flex; flex-direction: column; }
.menu-links a { display: flex; align-items: baseline; gap: 16px; font: 500 clamp(40px, 12vw, 64px)/1.1 var(--display); letter-spacing: -.045em; padding: 10px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.menu-links a small { font: italic 400 18px/1 var(--serif); letter-spacing: 0; color: var(--accent); }
.menu-foot { display: grid; gap: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Texte qui roule au survol ---------- */
.roll { display: inline-flex; overflow: hidden; line-height: 1.25; height: 1.25em; vertical-align: top; }
.roll .ch { display: inline-block; white-space: pre; text-shadow: 0 1.25em currentColor; transition: transform .6s var(--ease); }
a:hover .roll .ch, button:hover .roll .ch { transform: translateY(-1.25em); }

/* ---------- Typo commune ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
h2 { font-size: clamp(36px, 5.6vw, 88px); max-width: 15ch; }
h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.12; }
.label { font: 500 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.muted { color: var(--muted); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .05em .22em; margin: -.08em -.05em -.22em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px var(--gut) 32px; position: relative;
}
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1.4 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.pulse { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title { font-size: clamp(46px, 8.4vw, 144px); max-width: 12ch; letter-spacing: -.055em; line-height: .96; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 44px; }
.hero-sub { max-width: 44ch; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: auto; padding-top: 56px; font: 500 11px/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scroll-cue { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue b { width: 1px; height: 36px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue b::after { content: ''; position: absolute; inset: 0; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Passerelle vers Formation (accueil Consulting) ---------- */
.hero-cross {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 14px;
  margin-top: 26px; padding: 10px 18px 10px 10px; border-radius: 999px; text-align: left;
  border: 1px solid rgba(25, 182, 200, .28); background: rgba(25, 182, 200, .06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 400 14.5px/1.35 var(--display); color: var(--muted);
  overflow: hidden; isolation: isolate; transition: border-color .5s, background .5s;
}
/* reflet qui traverse la bande */
.hero-cross::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(25, 182, 200, .22) 50%, transparent 70%);
  transform: translateX(-100%); animation: crossSheen 5s var(--ease) 3.5s infinite;
}
@keyframes crossSheen { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
.hero-cross strong { color: var(--fg); font-weight: 500; }
.hero-cross:hover { border-color: var(--accent); background: rgba(25, 182, 200, .12); }
.hc-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 9px; }
.hc-icon i { border-radius: 3px; background: var(--teal); }
.hc-icon i:first-child { grid-row: span 2; background: linear-gradient(160deg, #19B6C8, #0B7A8C); }
.hc-icon i:last-child { background: var(--ink-logo); }
.hc-arrow { color: var(--accent); font-size: 17px; transition: transform .6s var(--ease); }
.hero-cross:hover .hc-arrow { transform: translateX(5px); }

/* La bascule du menu pulse une fois à la fin de l'intro */
.switch::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 rgba(25, 182, 200, .55); }
.switch.sw-pulse::after { animation: swPulse 1.4s ease-out 2; }
@keyframes swPulse { 0% { box-shadow: 0 0 0 0 rgba(25, 182, 200, .55); } 100% { box-shadow: 0 0 0 14px rgba(25, 182, 200, 0); } }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 24px 16px 26px; border-radius: 999px; font: 500 15px/1 var(--display); letter-spacing: -.01em;
  overflow: hidden; isolation: isolate; border: 1px solid var(--line);
  transition: color .5s var(--ease), border-color .5s;
}
.btn i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: transform .6s var(--ease), background .4s; }
.btn:hover i { transform: rotate(-45deg); }
.btn::before { content: ''; position: absolute; left: 50%; top: 100%; width: 140%; aspect-ratio: 1; z-index: -1; border-radius: 50%; transform: translate(-50%, 0) scale(.2); transition: transform .7s var(--ease); }
.btn:hover::before { transform: translate(-50%, -60%) scale(1); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary i { background: color-mix(in srgb, var(--on-accent) 14%, transparent); }
.btn-primary::before { background: var(--fg); }
.btn-primary:hover { color: var(--bg); border-color: var(--fg); }
.btn-ghost { background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost::before { background: var(--accent); }
.btn-ghost:hover { color: var(--on-accent); border-color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); padding: 24px 0; white-space: nowrap; }
.mq-track { display: inline-flex; align-items: center; gap: 40px; will-change: transform; padding-right: 40px; }
.mq-track span { font: 500 clamp(32px, 4.6vw, 68px)/1.1 var(--display); letter-spacing: -.045em; }
.mq-track em { color: var(--fg); opacity: .55; }
.mq-track b { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--accent); flex: none; }
.mq-track b:nth-of-type(even) { background: var(--accent); }

/* ---------- Manifeste ---------- */
.manifesto { padding-top: clamp(110px, 16vw, 220px); padding-bottom: clamp(110px, 16vw, 220px); }
.mf-text { font: 500 clamp(28px, 3.8vw, 58px)/1.12 var(--display); letter-spacing: -.04em; max-width: 23ch; }
.mf-text .w { overflow: visible; }
.mf-text strong { display: block; font-weight: 500; }
.mf-text .mf-mid { display: block; margin: .9em 0; font-size: .62em; line-height: 1.35; letter-spacing: -.025em; color: var(--muted); max-width: 34ch; }
.mf-text .mf-end { color: var(--accent); }

.sec-head { margin-bottom: clamp(48px, 7vw, 96px); }

/* ---------- Pôles ---------- */
.poles { padding-bottom: clamp(100px, 14vw, 200px); }
.pole-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px;
  background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden; min-height: 440px; display: flex; flex-direction: column;
  transform-style: preserve-3d; will-change: transform;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.card-num { font: italic 400 22px/1 var(--serif); color: var(--accent); }
.card h3 { margin: 72px 0 14px; }
.card p { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li { font: 500 12px/1 var(--display); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); }

.card-icon { position: relative; width: 52px; height: 52px; }
.card-icon i { position: absolute; display: block; }
.ic-1 i { left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 2px; transform-origin: left; animation: bars 2.4s var(--ease) infinite; }
.ic-1 i:nth-child(1) { top: 13px; } .ic-1 i:nth-child(2) { top: 25px; animation-delay: .2s; } .ic-1 i:nth-child(3) { top: 37px; animation-delay: .4s; }
@keyframes bars { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }
.ic-2 i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); animation: nodes 3s ease-in-out infinite; }
.ic-2 i:nth-child(1) { top: 2px; left: 20px; } .ic-2 i:nth-child(2) { top: 20px; left: 2px; animation-delay: .3s; }
.ic-2 i:nth-child(3) { top: 20px; left: 38px; animation-delay: .6s; } .ic-2 i:nth-child(4) { top: 38px; left: 20px; animation-delay: .9s; background: var(--accent); }
@keyframes nodes { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.ic-3 i { inset: 6px; border: 2px solid var(--accent); border-radius: 10px; animation: spin 8s linear infinite; }
.ic-3 i:nth-child(2) { inset: 16px; border-radius: 50%; border-style: dashed; animation-direction: reverse; animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll horizontal ---------- */
.hscroll { height: calc(var(--panels) * 85vh + 100vh); position: relative; }
.hs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hs-head { position: absolute; top: 108px; left: 0; right: 0; display: flex; align-items: center; gap: 24px; }
.hs-head .label { margin: 0; }
.hs-progress { flex: 1; height: 1px; background: var(--line); }
.hs-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hs-count { font: 500 12px/1 var(--display); letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-count b { color: var(--fg); font-weight: 500; }
.hs-track { display: flex; align-items: stretch; gap: 20px; padding: 0 var(--gut); will-change: transform; width: max-content; }
.hs-intro { width: min(540px, 78vw); display: flex; align-items: center; }
.hs-intro h2 { font-size: clamp(42px, 5.8vw, 96px); }
.panel {
  width: min(500px, 80vw); min-height: 56vh; padding: 34px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: flex-end; will-change: transform;
}
.panel-num { font: 500 clamp(90px, 11vw, 170px)/.8 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--accent); margin-bottom: auto; }
.panel h3 { margin: 40px 0 14px; font-size: clamp(26px, 2.6vw, 40px); }
.panel p { color: var(--muted); max-width: 40ch; }

/* ---------- Orbe de bascule ---------- */
.orb { position: relative; width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; }
.orb::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); transform: scale(.84); transition: transform .9s var(--ease); }
html[data-mode="formation"] .orb::before { background: linear-gradient(140deg, #19B6C8, #0B7A8C 60%); box-shadow: 0 30px 60px -20px rgba(11, 122, 140, .55); }
.orb:hover::before { transform: scale(1); }
.orb-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--accent); animation: spin 18s linear infinite; }
.orb-text { position: relative; font: 500 11px/1.6 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--on-accent); }
.orb-text strong { font: italic 400 28px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
html[data-mode="formation"] .orb-text strong { font: 600 24px/1.2 var(--display); letter-spacing: -.03em; }

/* ---------- Contact (Consulting) ---------- */
.contact { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); }
.big { font-size: clamp(52px, 10vw, 168px); max-width: 11ch; line-height: .95; letter-spacing: -.055em; }
.contact-row { display: flex; flex-wrap: wrap; gap: 18px 60px; margin-top: 56px; }
.contact-link { position: relative; font: 500 clamp(20px, 2.4vw, 34px)/1.3 var(--display); letter-spacing: -.03em; padding-bottom: 6px; align-self: flex-start; }
.contact-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .7s var(--ease); }
.contact-link:hover::after { transform: scaleX(0); }

/* ---------- Footer avec bascule ---------- */
.foot { border-top: 1px solid var(--line); overflow: hidden; }
.foot-switch { display: grid; justify-items: center; text-align: center; padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(90px, 12vw, 160px); }
.foot-switch h2 { max-width: 17ch; margin-bottom: 70px; }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-top: 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font: 500 11px/1 var(--display); letter-spacing: .26em; text-transform: uppercase; }
.foot-tag { display: flex; align-items: center; gap: 12px; }
.foot-bar .muted { margin-left: auto; letter-spacing: .12em; }
.legal { flex-basis: 100%; font: 400 12px/1.5 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ---------- Badge NDA / DREETS ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 500 12px/1.35 var(--display); letter-spacing: .02em; text-transform: none; color: var(--fg);
}
.badge-seal { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.badge-seal::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed var(--accent); animation: spin 14s linear infinite; }
.badge-seal svg { width: 16px; height: 16px; color: var(--on-accent); }
.badge small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.hero-foot .badge { margin-right: 8px; }
.pill { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); letter-spacing: .08em; }
html[data-mode="formation"] .hero-foot { gap: 10px; }
.hero-f .hero-row { flex-direction: column; align-items: flex-start; gap: 30px; margin-top: 36px; }
.hero-f .hero-title { max-width: 11ch; }
html[data-mode="formation"] .hero-foot .badge { box-shadow: 0 14px 30px -18px rgba(11, 122, 140, .45); }

/* ================= FORMATION : BENTO ================= */
.bento-sec { padding-bottom: clamp(90px, 11vw, 160px); }
.bento-sec .sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-sub { max-width: 56ch; color: var(--muted); margin-top: 26px; font-size: 18px; }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); perspective: 1400px; }
.b-prog { grid-template-columns: repeat(4, 1fr); }
.t-a { grid-column: span 2; grid-row: span 2; }
.t-d { grid-column: span 2; }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }

.tile {
  --spot: rgba(25, 182, 200, .14);
  position: relative; border-radius: var(--radius); padding: 26px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 0 rgba(18, 26, 29, .03), 0 24px 50px -36px rgba(11, 122, 140, .45);
  transition: box-shadow .7s var(--ease);
  will-change: transform;
}
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 65%);
}
.tile:hover { box-shadow: 0 1px 0 rgba(18, 26, 29, .03), 0 40px 70px -36px rgba(11, 122, 140, .6); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-weight: 600; letter-spacing: -.035em; }
.tile p { font-size: 15.5px; color: color-mix(in srgb, currentColor 72%, transparent); max-width: 48ch; }
.tile .tags { margin-top: 6px; }
.tile .tags li { border-color: color-mix(in srgb, currentColor 22%, transparent); }
.t-a h3 { font-size: clamp(30px, 3.2vw, 48px); }

.tile-teal { background: linear-gradient(150deg, #13A0B4 0%, #0B7A8C 55%, #08626F 100%); color: #fff; --spot: rgba(255, 255, 255, .2); }
.tile-soft { background: #E7F4F6; color: var(--ink-logo); }
.tile-white { background: #fff; color: var(--ink-logo); border: 1px solid var(--line); }
.tile-ink { background: var(--ink-logo); color: #EAF2F3; --spot: rgba(25, 182, 200, .22); }

.tile-top { display: flex; justify-content: space-between; align-items: center; }
.chip { align-self: flex-start; font: 600 12px/1 var(--display); letter-spacing: .02em; padding: 8px 12px; border-radius: 999px; background: rgba(11, 122, 140, .1); color: var(--teal); }
.tile-teal .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.tile-ink .chip { background: rgba(25, 182, 200, .14); color: var(--teal-bright); }
.tile-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, currentColor 10%, transparent); transition: transform .7s var(--ease), background .4s; }
.tile:hover .tile-arrow { transform: rotate(45deg); background: color-mix(in srgb, currentColor 20%, transparent); }

.viz { position: relative; flex: 1; min-height: 120px; display: flex; align-items: center; margin: 6px 0 4px; }

/* IA : conversation qui se rejoue */
.viz-chat { display: grid; align-content: center; gap: 10px; min-height: 220px; }
.bubble { padding: 13px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; max-width: 82%; opacity: 0; }
.bubble.q { justify-self: end; background: #fff; color: var(--ink-logo); border-bottom-right-radius: 6px; animation: chatQ 9s var(--ease) infinite; }
.bubble.typing, .bubble.a { grid-row: 2; grid-column: 1; justify-self: start; background: rgba(255, 255, 255, .16); border-bottom-left-radius: 6px; }
.bubble.typing { display: flex; gap: 5px; padding: 16px 18px; animation: chatT 9s var(--ease) infinite; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: dot 1s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
.bubble.a { animation: chatA 9s var(--ease) infinite; }
@keyframes chatQ { 0% { opacity: 0; transform: translateY(14px); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes chatT { 0%, 12% { opacity: 0; transform: translateY(14px); } 18%, 36% { opacity: 1; transform: none; } 40%, 100% { opacity: 0; } }
@keyframes chatA { 0%, 40% { opacity: 0; transform: translateY(14px); } 47%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Google : recherche tapée en direct */
.viz-search { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 12px 16px; box-shadow: 0 10px 24px -16px rgba(11, 122, 140, .6); font-size: 14px; }
.s-ico { position: relative; width: 14px; height: 14px; border: 2px solid var(--teal); border-radius: 50%; flex: none; }
.s-ico::after { content: ''; position: absolute; width: 2px; height: 6px; background: var(--teal); right: -4px; bottom: -5px; transform: rotate(-45deg); border-radius: 2px; }
.s-caret { width: 1.5px; height: 16px; background: var(--teal); margin-left: -8px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.result { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 13px; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.result.show { opacity: 1; transform: none; }
.result b { display: block; font: 600 14px/1.2 var(--display); }
.result small { color: #E2A100; letter-spacing: .04em; }
.r-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--teal); flex: none; }

/* Automatisation : flux de données */
.viz-flow { justify-content: space-between; padding: 0 4px; }
.viz-flow::before { content: ''; position: absolute; left: 30px; right: 30px; top: 50%; border-top: 2px dashed rgba(11, 122, 140, .3); }
.node { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #E7F4F6; color: var(--teal); font-size: 20px; animation: nodePulse 2.4s var(--ease) infinite; }
.node:nth-child(2) { animation-delay: .8s; } .node:nth-child(3) { animation-delay: 1.6s; background: var(--teal); color: #fff; }
.flow-dot { position: absolute; z-index: 2; top: 50%; left: 30px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 6px rgba(25, 182, 200, .18); animation: flow 2.4s ease-in-out infinite; }
@keyframes flow { 0% { left: 30px; } 100% { left: calc(100% - 40px); } }
@keyframes nodePulse { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } }

/* Outils : icônes qui flottent */
.viz-apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: center; }
.viz-apps span { aspect-ratio: 1; max-width: 64px; border-radius: 16px; display: grid; place-items: center; font: 600 18px/1 var(--display); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #EAF2F3; animation: float 4s ease-in-out infinite; }
.viz-apps span:nth-child(odd) { animation-delay: -2s; }
.viz-apps span:nth-child(3) { background: var(--teal); border-color: var(--teal); }
.viz-apps span:nth-child(5) { background: rgba(25, 182, 200, .2); color: var(--teal-bright); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Approche */
.stat { display: flex; align-items: baseline; margin-top: 10px; }
.count, .stat .unit { font: 700 clamp(84px, 10vw, 150px)/.9 var(--display); letter-spacing: -.07em; background: linear-gradient(100deg, #0B7A8C, #19B6C8); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat .unit { font-size: .5em; font-size: clamp(42px, 5vw, 75px); margin-left: 6px; }
.bar { height: 8px; border-radius: 99px; background: #E7F4F6; overflow: hidden; margin: 8px 0 10px; }
.bar i { display: block; height: 100%; width: 80%; border-radius: inherit; background: linear-gradient(90deg, #0B7A8C, #19B6C8); transform-origin: left; transform: scaleX(0); }

.viz-group { gap: 0; }
.viz-group span { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #E7F4F6; margin-left: -12px; background: var(--teal); animation: pop 3.2s var(--ease) infinite; }
.viz-group span:first-child { margin-left: 0; background: #19B6C8; }
.viz-group span:nth-child(2) { background: #0B7A8C; animation-delay: .15s; }
.viz-group span:nth-child(3) { background: #7FD3DD; animation-delay: .3s; }
.viz-group span:nth-child(4) { background: var(--ink-logo); animation-delay: .45s; }
.viz-group .plus { display: grid; place-items: center; background: #fff; color: var(--teal); font: 600 20px/1 var(--display); animation-delay: .6s; }
@keyframes pop { 0%, 100% { transform: translateY(0); } 12% { transform: translateY(-10px); } 24% { transform: translateY(0); } }

.viz-doc .doc { width: 96px; height: 116px; border-radius: 12px; background: #fff; padding: 18px 14px; display: grid; align-content: start; gap: 9px; transform: rotate(-4deg); box-shadow: 14px 14px 0 rgba(25, 182, 200, .25); }
.viz-doc .doc i { height: 6px; border-radius: 4px; background: #CFE7EB; transform-origin: left; animation: write 3.6s var(--ease) infinite; }
.viz-doc .doc i:nth-child(1) { background: var(--teal); width: 60%; }
.viz-doc .doc i:nth-child(2) { animation-delay: .3s; } .viz-doc .doc i:nth-child(3) { width: 80%; animation-delay: .6s; } .viz-doc .doc i:nth-child(4) { width: 50%; animation-delay: .9s; }
@keyframes write { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

.viz-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 360px; }
.viz-cal span { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.viz-cal .on { background: #fff; position: relative; animation: nodePulse 2.4s var(--ease) infinite; }
.viz-cal .on::after { content: ''; position: absolute; left: 34%; top: 22%; width: 26%; height: 44%; border: solid var(--teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Financement */
.fund-big { font: 700 clamp(72px, 9vw, 140px)/.9 var(--display); letter-spacing: -.07em; margin: 18px 0 6px; color: rgba(255, 255, 255, .95); }
.fund-big.sm { background: linear-gradient(100deg, #0B7A8C, #19B6C8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fund-steps { padding: clamp(26px, 3.4vw, 44px); gap: 30px; }
.fs-head { display: grid; gap: 14px; }
.fs-head h3 { font-size: clamp(26px, 2.8vw, 42px); max-width: 22ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.steps b { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-bright); color: var(--ink-logo); font: 700 17px/1 var(--display); }
.steps strong { display: block; font: 600 18px/1.3 var(--display); letter-spacing: -.02em; margin-bottom: 6px; color: #fff; }
.steps span { font-size: 14.5px; color: rgba(234, 242, 243, .7); }
.fine { font-size: 13px !important; opacity: .7; }
.seal-tile { flex-direction: row; align-items: center; gap: 30px; }
.seal { position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #19B6C8, #0B7A8C); }
.seal-ring { position: absolute; inset: -10px; border-radius: 50%; border: 1.5px dashed var(--teal); animation: spin 16s linear infinite; }
.seal svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.seal svg path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.seal-tile h3 { font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 6px; }

/* Contact Formation */
.b-contact { grid-auto-rows: minmax(300px, auto); }
.contact-tile { justify-content: space-between; padding: clamp(26px, 4vw, 52px); }
.contact-tile h2 { font-size: clamp(40px, 5.6vw, 88px); max-width: 13ch; }
.contact-tile .btn { align-self: flex-start; }
.contact-side { justify-content: flex-end; gap: 16px; }
.contact-side .contact-link { font-size: clamp(18px, 1.6vw, 24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pole-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { margin-top: 44px; }
  .bento, .b-prog { grid-template-columns: repeat(2, 1fr); }
  .t-a { grid-row: auto; }
  .b-contact .contact-side { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .brand-sub { display: none; }
  .switch { margin-left: auto; }
  .burger { display: block; }
  .sw-opt { padding: 9px 11px; font-size: 12px; }
  .hero { padding-top: 120px; justify-content: flex-end; }
  .hero-title { font-size: clamp(44px, 12.6vw, 84px); }
  .hero-row { margin-top: 28px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero-foot { padding-top: 40px; }
  .hero-foot > span:not(.scroll-cue) { display: none; }
  .hero-foot .badge { margin-right: 0; }
  .manifesto { padding-top: 100px; padding-bottom: 100px; }
  .hscroll { height: calc(var(--panels) * 70vh + 100vh); }
  .hs-head { top: 84px; }
  .panel { min-height: 52vh; padding: 26px; }
  .orb { width: 176px; height: 176px; }
  .contact-row { flex-direction: column; }
  .foot-bar .muted { margin-left: 0; }
}
@media (max-width: 640px) {
  .bento, .b-prog { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
  .tile { padding: 22px; border-radius: 24px; }
  .viz { min-height: 110px; }
  .viz-chat { min-height: 200px; }
  .viz-apps { grid-template-columns: repeat(3, 1fr); }
  .seal-tile { flex-direction: column; align-items: flex-start; }
  .seal { width: 84px; height: 84px; }
}
@media (max-width: 380px) {
  .brand-logo { width: 56px; }
  .sw-opt { padding: 9px 9px; font-size: 11px; }
}
@media (hover: none) {
  .card::before, .card::after, .tile::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ld-logo path, .seal svg path { stroke-dashoffset: 0; }
  .bar i { transform: none; }
  .bubble { opacity: 1; }
  .bubble.typing { display: none; }
  .result { opacity: 1; transform: none; }
}

