/* Fichier css/styles.css · chargé par : toutes les pages */
/* IAI v8 — accueil (structure et mouvements inspirés de la réf. fournie par Sofiane, palette IAI) */
:root {
  --bg: rgb(var(--bg-rgb));
  --surface: rgb(var(--surface-rgb));
  --raised: color-mix(in srgb, rgb(var(--text-rgb)) 5%, rgb(var(--surface-rgb)));
  --line: color-mix(in srgb, rgb(var(--text-rgb)) 13%, rgb(var(--bg-rgb)));
  --text: rgb(var(--text-rgb));
  --muted: rgb(var(--muted-rgb));
  --muted-space: rgb(var(--mutesp-rgb));
  --action: rgb(var(--acc-rgb));           /* couleur d'action de la DA */
  --action-hover: rgb(var(--acc-hi-rgb));
  --on-action: rgb(var(--on-acc-rgb));
  --space: rgb(var(--space-rgb));          /* « espace » : teinte profonde des panneaux */
  --copper: rgb(var(--acc2-rgb));          /* accent secondaire */
  --mint: rgb(var(--mint-rgb));
  --glow-action: 0 0 22px rgb(var(--acc-rgb) / .22);
  --glow-action-hover: 0 0 30px rgb(var(--acc-rgb) / .4);
  --gradient-space: radial-gradient(95% 75% at 88% 0%, rgb(var(--space-glow) / .42) 0%, rgb(var(--space-glow) / 0) 62%), radial-gradient(60% 50% at 10% 30%, rgb(var(--bg-rgb) / .2) 0%, rgb(var(--bg-rgb) / 0) 70%), var(--space);
  --gradient-panel: radial-gradient(35% 55% at 100% 0%, rgb(var(--space-glow) / .16) 0%, transparent 70%), radial-gradient(65% 100% at 100% 0%, rgb(var(--space-rgb) / .9) 0%, transparent 72%), linear-gradient(165deg, rgb(var(--text-rgb) / .04) 0%, transparent 40%), var(--surface);
  --font: "Manrope", system-ui, sans-serif;
  --fs-body: clamp(1rem, .96rem + .18vw, 1.125rem);
  --fs-body-l: clamp(1.1875rem, 1.05rem + .55vw, 1.625rem);
  --fs-display-l: clamp(2.125rem, .6rem + 5.4vw, 6.5rem);
  --fs-display-xl: clamp(2.375rem, .4rem + 7.4vw, 8.75rem);
  --fs-h2: clamp(1.875rem, .9rem + 3.4vw, 4.5rem);
  --fs-h3: clamp(1.375rem, 1.05rem + 1vw, 2rem);
  --r-card: 22px; --r-panel: 30px; --r-stage: 44px;
  --gutter: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.mono, .eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow { margin-bottom: 18px; }
.panel--space .eyebrow, .panel--space .mono { color: var(--muted-space); }
.h2 { font-size: var(--fs-h2); font-weight: 650; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; }
.display { font-size: clamp(1.9rem, .9rem + 3vw, 4rem); font-weight: 650; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; }
.lead { font-size: var(--fs-body-l); line-height: 1.3; color: var(--muted); }
.panel--space .lead { color: var(--muted-space); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 22px; border-radius: 999px; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; transition: background .3s, box-shadow .3s, border-color .3s, transform .3s var(--ease); white-space: nowrap; }
.btn--action { background: var(--action); color: var(--on-action); box-shadow: var(--glow-action); }
.btn--action:hover { background: var(--action-hover); box-shadow: var(--glow-action-hover); }
.btn--ghost { background: rgb(var(--text-rgb) / .06); border-color: rgb(var(--text-rgb) / .34); color: var(--text); }
.btn--ghost:hover { background: rgb(var(--text-rgb) / .1); border-color: var(--action); box-shadow: 0 0 20px rgb(var(--acc-rgb) / .22); }
.btn--lg { height: 54px; padding: 0 28px; font-size: .75rem; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Header ---------- */
/* ---------- Header : grand (haut de page) ↔ pilule (au défilement) ---------- */
.hd { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; height: 56px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; pointer-events: none; view-transition-name: hd; }
.hd > * { pointer-events: auto; }
.hd__logo { position: relative; display: grid; place-items: center start; width: 58px; height: 44px; view-transition-name: hd-logo; }
.hd__word { width: 52px; height: auto; overflow: visible; }
.hd__mark { display: none; position: relative; width: 22px; height: 32px; background: var(--text); -webkit-mask: url(../ui/symbole.svg) center / contain no-repeat; mask: url(../ui/symbole.svg) center / contain no-repeat; transition: background .35s; }
.hd__dot { display: none; position: absolute; right: -3px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 8px rgb(var(--acc2-rgb) / .7); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background .35s; }
.hd__nav { display: flex; gap: clamp(22px, 2.6vw, 40px); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hd__nav a { position: relative; padding: 6px 0; }
.hd__nav i { font-style: normal; font-size: .8em; margin-left: 2px; }
.hd__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 4px; border-radius: 999px; background: rgb(var(--text-rgb) / .05); border: 1px solid var(--line); }
.lang a { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: .6875rem; font-weight: 700; color: var(--muted); transition: color .3s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: rgb(var(--text-rgb) / .1); color: var(--text); }
.lang a[aria-current]::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--action); box-shadow: 0 0 8px var(--action); }
.btn--hd { height: 44px; view-transition-name: hd-cta; }
.hd__burger { display: none; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); place-content: center; gap: 5px; background: rgb(var(--bg-rgb) / .6); view-transition-name: hd-burger; transition: border-color .3s, background .3s; }
.hd__burger:hover { border-color: rgb(var(--acc-rgb) / .6); }
.hd__burger i { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease); }
.hd__burger:hover i:first-child { transform: translateX(-2px); } .hd__burger:hover i:last-child { transform: translateX(2px); }
.sound { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgb(var(--text-rgb) / .05); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s; white-space: nowrap; }
.sound:hover { color: var(--text); border-color: rgb(var(--text-rgb) / .3); }
.sound[aria-pressed="true"] { color: var(--action); border-color: rgb(var(--acc-rgb) / .5); }

/* pilule : logo-symbole · bouton · menu, centrée, marges égales tout autour */
@media (min-width: 901px) {
  .hd.is-pill { left: 50%; right: auto; transform: translateX(-50%); display: flex; gap: 8px; height: auto; padding: 6px 6px 6px 20px; border-radius: 999px; pointer-events: auto;
    background: rgb(var(--surface-rgb) / .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .7); }
  .hd.is-pill .hd__nav, .hd.is-pill .lang, .hd.is-pill .sound, .hd.is-pill .hd__word { display: none; }
  .hd.is-pill .hd__logo { width: 34px; height: 44px; margin-right: 10px; place-items: center; }
  .hd.is-pill .hd__mark, .hd.is-pill .hd__dot { display: block; }
  .hd.is-pill .hd__right { gap: 8px; }
  .hd.is-pill .hd__burger { display: grid; }
  /* survol du logo dans la pilule : petit saut, passage au vert, le point cuivré fait le tour */
  .hd.is-pill .hd__logo:hover .hd__mark { background: var(--action); animation: mark-hop .6s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 0 10px rgb(var(--acc-rgb) / .7)); }
  .hd.is-pill .hd__logo:hover .hd__dot { background: var(--text); animation: dot-orbit .9s var(--ease); }
}
@keyframes mark-hop { 0% { transform: none; } 35% { transform: translateY(-4px) rotate(-10deg) scale(1.08); } 70% { transform: translateY(1px) rotate(4deg); } 100% { transform: none; } }
@keyframes dot-orbit { 0% { transform: rotate(0deg) translateX(0); } 50% { transform: translate(-22px, 22px) scale(1.4); } 100% { transform: none; } }

/* transition fluide entre les deux états (navigateurs compatibles) */
::view-transition-group(hd), ::view-transition-group(hd-logo), ::view-transition-group(hd-cta), ::view-transition-group(hd-burger) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
::view-transition-old(hd), ::view-transition-new(hd) { animation-duration: .35s; }
::view-transition-old(hd-logo), ::view-transition-new(hd-logo) { height: 100%; object-fit: contain; }

/* menu plein écran (mobile et tablette) */
.mnav { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gutter) 36px;
  background: radial-gradient(80% 60% at 100% 0%, rgb(var(--space-rgb) / .95), transparent 70%), rgb(var(--bg-rgb) / .97); backdrop-filter: blur(16px);
  clip-path: circle(0% at calc(100% - var(--gutter) - 22px) 44px); visibility: hidden; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s .7s; }
.mnav.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 44px); visibility: visible; transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.mnav__links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(2rem, 1.2rem + 4vw, 3rem); font-weight: 650; letter-spacing: -.04em; text-transform: uppercase; line-height: 1;
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
.mnav__links a span { font-size: .5em; color: var(--action); }
.mnav__links a:hover { color: var(--action); }
.mnav.is-open .mnav__links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }
.mnav__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; opacity: 0; transition: opacity .5s; }
.mnav.is-open .mnav__foot { opacity: 1; transition-delay: .5s; }
.hd.is-menu .hd__burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
.hd.is-menu .hd__burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
html.menu-open { overflow: hidden; }

/* Rail + boutons flottants */
.rail { position: fixed; z-index: 40; left: calc(var(--gutter) * .45); top: 22vh; height: 56vh; width: 1px; background: rgb(var(--text-rgb) / .12); }
.rail__ticks { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgb(var(--text-rgb) / .35) 0 1px, transparent 1px 10%); width: 7px; left: -3px; -webkit-mask: linear-gradient(90deg, #000 0 100%); }
.rail__dot { position: absolute; left: -3.5px; top: calc(var(--p, 0) * 100%); width: 8px; height: 8px; border-radius: 50%; background: var(--action); box-shadow: 0 0 12px var(--action); transform: translateY(-50%); }

/* Bulle du futur chat IA */
.chat-fab { position: fixed; z-index: 45; right: var(--gutter); bottom: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--action); color: var(--on-action); box-shadow: 0 10px 30px -8px rgb(var(--acc-rgb) / .55), 0 0 0 1px rgb(var(--acc-rgb) / .3); transition: transform .4s var(--ease), box-shadow .4s; }
.chat-fab svg { position: relative; z-index: 1; transition: transform .4s var(--ease); }
.chat-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 40px -8px rgb(var(--acc-rgb) / .7), 0 0 0 1px rgb(var(--acc-rgb) / .5); }
.chat-fab:hover svg { transform: rotate(-8deg) scale(1.08); }
.chat-fab:active { transform: scale(.94); }
.chat-fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--action); animation: chat-ring 2.6s ease-out infinite; }
.chat-fab__tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: rgb(var(--surface-rgb) / .9); border: 1px solid var(--line);
  color: var(--text); font-size: .75rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); backdrop-filter: blur(10px); }
.chat-fab:hover .chat-fab__tip, .chat-fab:focus-visible .chat-fab__tip { opacity: 1; transform: translate(0, -50%); }
@keyframes chat-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- 1. Hero ---------- */
.hero { position: relative; height: 170vh; }
.hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.hero__gl:active { cursor: grabbing; }
.hero__glow { display: none; }
.sep { width: 1px; height: 12px; background: rgb(var(--text-rgb) / .2); }
.d { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.d--grey { background: color-mix(in srgb, var(--text) 42%, var(--bg)); } .d--action { background: var(--action); box-shadow: 0 0 8px var(--action); }
.hero__copy { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 110px; padding-bottom: clamp(90px, 13vh, 150px); pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero__copy .eyebrow { margin-bottom: 22px; }
.hero__title { font-size: var(--fs-display-xl); font-weight: 650; line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.hero__q { display: block; transition: opacity .6s var(--ease), color .6s; }
.hero__q--b { position: relative; }
.ln { display: block; white-space: nowrap; }
.hero__q--a .ln { overflow: hidden; }
.hero__q--a .ln > span { display: inline-block; }
.hero.dim-a .hero__q--a, .hero.dim-b .hero__q--b { color: rgb(var(--text-rgb) / .28); }
.caret { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--action); box-shadow: 0 0 20px var(--action); margin-left: .06em; vertical-align: .02em; animation: blink 1s steps(1) infinite; }
.hero__q--b.is-done .caret { display: none; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: auto; padding-top: 32px; }
.hero__lead { font-size: var(--fs-body-l); line-height: 1.3; max-width: 32ch; }
.hero__ctas { display: flex; gap: 10px; margin-right: 6vw; }

/* ---------- Panneaux « espace » ---------- */
.panel { position: relative; z-index: 3; border-radius: var(--r-panel) var(--r-panel) 0 0; }
.panel--space { background: var(--gradient-space); }

/* ---------- 3. Parcours collant ---------- */

/* ---------- 4. Solutions : cartes qui pivotent ---------- */
.solutions { margin-top: -40px; }
.solutions__stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 70px; }
.solutions .h2 { margin-bottom: 5vh; }

/* ---------- 5. Réalisations ---------- */

/* ---------- 6. Défilement continu ---------- */

/* ---------- 7. Position ---------- */
.stance { position: relative; background: var(--bg); }
.stance__stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.stance__glow { position: absolute; inset: 0; background: radial-gradient(48% 60% at 50% 50%, rgb(var(--space-rgb) / .95), transparent 72%); }
.stance__lines { position: relative; width: min(1100px, 100% - 2 * var(--gutter)); display: grid; place-items: center; text-align: center; }
.stance__l, .stance__end { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s; }
.stance__l { font-size: clamp(1.8rem, 1rem + 2.8vw, 4rem); font-weight: 650; line-height: 1.05; letter-spacing: -.04em; }
.stance__l span:first-child { color: rgb(var(--text-rgb) / .4); }
.stance__l span:last-child { color: rgb(var(--text-rgb) / .4); transition: color .8s .25s; }
.stance__l.is-on span:first-child { color: var(--text); transition: color .6s; }
.stance__l.is-on span:last-child { color: var(--text); }
.stance__l.is-on, .stance__end.is-on { opacity: 1; transform: none; filter: none; }
.stance__end .h2 { margin-bottom: 28px; }
.stance__dots { position: absolute; bottom: 14vh; display: flex; gap: 8px; }
.stance__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--text-rgb) / .3); transition: background .4s, width .4s; }
.stance__dots i.is-on { background: var(--action); width: 18px; border-radius: 4px; }

/* ---------- 8. Méthode ---------- */

/* ---------- 9. Agence ---------- */
.agency { position: relative; z-index: 4; padding: 140px 0; background: var(--space); background: var(--gradient-space); }
.agency__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.agency__frame { position: relative; aspect-ratio: 4 / 5; max-height: 76vh; border-radius: var(--r-stage); background: color-mix(in srgb, var(--bg) 70%, #000); overflow: hidden; display: grid; place-items: center;
  background-image: radial-gradient(60% 50% at 50% 45%, rgb(var(--acc-rgb) / .16), transparent 70%), linear-gradient(rgb(var(--text-rgb) / .035) 1px, transparent 1px); background-size: 100% 100%, 100% 6px; }
.agency__sym { width: 42%; aspect-ratio: 765 / 1169; background: linear-gradient(180deg, var(--text), rgb(var(--text-rgb) / .2)); -webkit-mask: url(../ui/symbole.svg) center / contain no-repeat; mask: url(../ui/symbole.svg) center / contain no-repeat; opacity: .9; }
.agency__scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgb(var(--acc-rgb) / .12), transparent); animation: scan 4.5s linear infinite; }
.agency__cap { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: var(--text) !important; }
.agency__txt img { width: min(240px, 50%); height: auto; margin-bottom: 28px; }
.agency__txt .lead { color: var(--text); max-width: 28ch; margin-bottom: 36px; }
.badges { display: flex; gap: 28px; margin-bottom: 36px; flex-wrap: wrap; }
.badges li { display: flex; gap: 10px; align-items: center; }
.badges b { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.badges .mono { line-height: 1.3; }

/* ---------- 10. Premier pas ---------- */

/* ---------- 11. Footer ---------- */
.ft { position: relative; overflow: hidden; padding: 120px 0 0; background: radial-gradient(60% 60% at 100% 0%, rgb(var(--space-rgb) / .9), transparent 70%), var(--bg); }
.ft__top { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.ft__links a { display: grid; grid-template-columns: 1fr auto; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ft__links .mono { grid-column: 1 / -1; margin-bottom: 4px; }
.ft__links b { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; }
.ft__links i { font-style: normal; align-self: center; transition: transform .3s var(--ease); }
.ft__links a:hover i { transform: translateX(4px); color: var(--action); }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 56px 0; }
.ft__grid div { display: grid; gap: 10px; align-content: start; }
.ft__grid a { font-weight: 600; } .ft__grid a:hover { color: var(--action); }
.ft__badges { line-height: 1.8; }
.ft__bottom { display: flex; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--line); }
.ft__word { font-size: clamp(10rem, 36vw, 38rem); font-weight: 800; line-height: .72; letter-spacing: -.07em; text-align: center; color: transparent;
  background: linear-gradient(180deg, rgb(var(--text-rgb) / .14), rgb(var(--text-rgb) / 0) 80%); -webkit-background-clip: text; background-clip: text; margin-bottom: -.1em; transform: translateY(calc((1 - var(--fw, 0)) * 30%)); }

/* ---------- Apparitions ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.split.is-in .w > span { transform: none; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 120px rgb(var(--acc-rgb) / .6); } }
@keyframes wave { 50% { height: 100%; } }
@keyframes scan { from { top: -30%; } to { top: 100%; } }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hd { grid-template-columns: 1fr auto; top: 0; height: 68px; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
  .hd.is-scrolled { background: rgb(var(--bg-rgb) / .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); pointer-events: auto; }
  .hd__nav, .lang, .rail { display: none; }
  .hd__burger { display: grid; }
  .sound { display: none; }
  .agency__grid, .ft__top, .ft__grid { grid-template-columns: 1fr; }
  .ft__word { font-size: 52vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .split .w > span, .reveal { transform: none; opacity: 1; }
}

/* =====================================================================
   Micro-interactions (ui-fx.js)
   ===================================================================== */

/* ---- Pointeur ---- */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor .hero__gl { cursor: none; }
}
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor[data-visible="true"] { opacity: 1; }
.cursor__dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--action); box-shadow: 0 0 14px rgb(var(--acc-rgb) / .8);
  transform: translate(-50%, -50%); animation: cursor-breathe 2.4s ease-in-out infinite;
  transition: width .35s var(--ease), height .35s var(--ease), background .35s, box-shadow .35s, border-color .35s; border: 1px solid transparent; }
.cursor[data-state="link"] .cursor__dot { animation: none; width: 44px; height: 44px; background: rgb(var(--acc-rgb) / .14); border-color: rgb(var(--acc-rgb) / .6); box-shadow: 0 0 28px rgb(var(--acc-rgb) / .35); }
.cursor[data-state="grab"] .cursor__dot { width: 18px; height: 18px; background: rgb(var(--acc-rgb) / .25); border-color: var(--action); animation: none; }
.cursor.is-down .cursor__dot { width: 7px; height: 7px; }
.cursor.is-down[data-state="link"] .cursor__dot { width: 36px; height: 36px; }
.cursor.is-down[data-state="grab"] .cursor__dot { width: 28px; height: 28px; background: rgb(var(--acc-rgb) / .1); }
.cursor-trail { position: fixed; inset: 0; z-index: 9998; width: 100vw; height: 100vh; pointer-events: none; }
@keyframes cursor-breathe { 50% { transform: translate(-50%, -50%) scale(1.18); } }

/* ---- Liens du menu : lettres qui roulent ---- */
.hd__nav a::after { display: none; }
.roll { display: inline-flex; }
.roll__c { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2em; vertical-align: top; }
.roll__c > span { display: block; position: relative; transition: transform .55s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i) * 22ms); }
.roll__c > span::after { content: attr(data-ch); position: absolute; left: 0; top: 100%; color: var(--action); }
.hd__nav a:hover .roll__c > span, .hd__nav a:focus-visible .roll__c > span { transform: translateY(-100%); }
.hd__nav a { display: inline-flex; align-items: center; gap: 4px; }
.hd__nav a::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--action); box-shadow: 0 0 8px var(--action); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease); }
.hd__nav a:hover::before { transform: translateX(-50%) scale(1); }
.hd__nav a.is-click .roll__c > span { animation: roll-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 25ms); }
.hd__nav a.is-click::before { animation: dot-burst .6s var(--ease); }
@keyframes roll-pop { 0% { transform: translateY(-100%) scale(1); } 40% { transform: translateY(-115%) scale(1.25); } 100% { transform: translateY(-100%) scale(1); } }
@keyframes dot-burst { 0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgb(var(--acc-rgb) / .7); } 100% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 14px rgb(var(--acc-rgb) / 0); } }

/* ---- Logo : tracé au survol ---- */
.hd__word path { fill: var(--text); stroke: var(--action); stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-opacity: 0; transition: fill .3s; }
.hd__logo.is-trace .hd__word path { animation: logo-trace 1.5s cubic-bezier(.6, 0, .2, 1) both; }
.hd__logo.is-trace .hd__word path:nth-child(2) { animation-delay: .12s; }
.hd__logo.is-trace .hd__word path:nth-child(3) { animation-delay: .24s; }
.hd__logo:hover .hd__mark::after { animation: dot-bounce .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes logo-trace {
  0% { fill: rgb(var(--text-rgb) / 1); stroke-opacity: 0; stroke-dashoffset: 1; }
  15% { fill: rgb(var(--text-rgb) / 0); stroke-opacity: 1; stroke-dashoffset: 1; }
  65% { fill: rgb(var(--text-rgb) / 0); stroke-opacity: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 30px rgb(var(--acc-rgb) / .9)); }
  100% { fill: rgb(var(--text-rgb) / 1); stroke-opacity: 0; stroke-dashoffset: 0; }
}
@keyframes dot-bounce { 40% { transform: translateY(-8px) scale(1.3); } }

/* ---- Boutons ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .35s, box-shadow .35s, border-color .35s, transform .25s var(--ease); }
.btn:active { transform: scale(.96); }
.btn__label { position: relative; display: inline-block; overflow: hidden; line-height: 1.2em; height: 1.2em; }
.btn__label > span { display: block; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.btn__label::after { content: attr(data-label); position: absolute; left: 0; top: 100%; width: 100%; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.btn:hover .btn__label > span, .btn:hover .btn__label::after { transform: translateY(-100%); }
.btn__icon { display: inline-block; transition: transform .5s cubic-bezier(.7, 0, .2, 1) !important; }
.btn:hover .btn__icon { transform: translateX(4px) rotate(-45deg) !important; }
.btn--action::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%); transform: translateX(-120%); }
.btn--action:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn--ghost::before { content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--orbit, 0deg), rgb(var(--acc-rgb) / 0) 0deg, rgb(var(--acc-rgb) / 0) 250deg, rgb(var(--acc-rgb) / .9) 330deg, rgb(var(--acc-rgb) / 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
/* le trait lumineux qui tourne : aussi sur les boutons pleins (en clair, pour se voir sur l'orange) */
.btn--action::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--orbit, 0deg), rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / 0) 250deg, rgb(255 255 255 / .95) 330deg, rgb(255 255 255 / 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
/* --orbit est piloté image par image par ui-fx.js (une animation CSS restait figée sur certains Chrome PC) */
@property --orbit { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.btn__wave { position: absolute; z-index: -1; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%) scale(0); pointer-events: none; animation: btn-wave .7s var(--ease) forwards; }
.btn--action .btn__wave { background: rgb(255 255 255 / .6); }
.btn--ghost .btn__wave { background: rgb(var(--acc-rgb) / .35); }
@keyframes btn-wave { to { transform: translate(-50%, -50%) scale(28); opacity: 0; } }

/* ---- Hero : glisser ---- */
.hero[data-dragging] .hero__gl { cursor: grabbing; }

@media (prefers-reduced-motion: reduce) {
  .cursor, .cursor-trail { display: none; }
}

/* =====================================================================
   Intro : écran de chargement + entrée du hero
   ===================================================================== */
.loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: var(--bg);
  transition: clip-path 1s cubic-bezier(.7, 0, .2, 1), opacity .6s .5s; clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
.loader__in { display: grid; justify-items: center; gap: 26px; }
.loader__logo { width: clamp(120px, 14vw, 200px); height: auto; overflow: visible; }
.loader__logo path { fill: rgb(var(--text-rgb) / 0); stroke: var(--text); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: load-trace 1.3s cubic-bezier(.6, 0, .2, 1) forwards; }
.loader__logo path:nth-child(2) { animation-delay: .15s; } .loader__logo path:nth-child(3) { animation-delay: .3s; }
.loader.is-full .loader__logo path { fill: var(--text); stroke-opacity: 0; transition: fill .4s, stroke-opacity .4s; }
@keyframes load-trace { to { stroke-dashoffset: 0; } }
.loader__line { position: relative; width: clamp(180px, 22vw, 300px); height: 1px; background: rgb(var(--text-rgb) / .12); }
.loader__line i { position: absolute; inset: 0; background: var(--action); box-shadow: 0 0 10px var(--action); transform: scaleX(0); transform-origin: left; }
.loader__line::after { content: ""; position: absolute; right: -14px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--action); box-shadow: 0 0 12px var(--action); opacity: 0; transition: opacity .3s; }
.loader.is-full .loader__line::after { opacity: 1; }
.loader__pct { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* le hero n'apparaît qu'après le chargement */
.hero__title .ln { min-height: .9em; }
.hero__copy .eyebrow, .hero__bottom, .hero__legend, .rail { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.is-ready .hero__copy .eyebrow, html.is-ready .hero__bottom, html.is-ready .hero__legend, html.is-ready .rail { opacity: 1; transform: none; }
.hd { opacity: 0; } html.is-ready .hd { opacity: 1; transition: opacity .9s .2s, background .4s, border-color .4s; }
.chat-fab { opacity: 0; } html.is-ready .chat-fab { opacity: 1; transition: opacity .9s .8s, transform .4s var(--ease), box-shadow .4s; }
html.is-ready .hero__bottom { transition-delay: .5s; }
/* Performance (LCP) : avant l'ouverture, le texte d'accueil est peint à 0,1 % d'opacité, sous l'écran d'intro qui le
   couvre entièrement. Rien ne change à l'œil, mais le navigateur le compte comme affiché dès le chargement. */
html:not(.is-ready) .hero__bottom { opacity: .001; }@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
html:not(.is-ready) .hero__title .caret { opacity: 0; }
@media (max-width: 1180px) and (min-width: 901px) { .hd__nav { gap: 18px; font-size: .6875rem; } .sound { display: none; } }
@media (max-width: 1040px) and (min-width: 901px) { .hd { grid-template-columns: auto 1fr auto; } .hd__nav { justify-self: center; } .lang a { padding: 0 9px; } }
@media (max-width: 520px) { .btn--hd .btn__icon { display: none; } .hd__right { gap: 6px; } }   /* taille : responsive.css */

/* Bouton retour en haut (bas gauche) */
.to-top { position: fixed; z-index: 40; left: calc(var(--gutter) * .45 - 19px); bottom: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem;
  border: 1px solid rgb(var(--text-rgb) / .2); background: rgb(var(--bg-rgb) / .55); backdrop-filter: blur(10px); opacity: 0; transition: opacity .9s .8s, border-color .3s, color .3s, transform .4s var(--ease); }
html.is-ready .to-top { opacity: 1; }
.to-top:hover { border-color: var(--action); color: var(--action); transform: translateY(-3px); }
@media (max-width: 900px) { .mnav .lang { display: flex; } }

/* =====================================================================
   Espace fixe (planète + tunnel) et section tunnel
   ===================================================================== */
.space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
body { background: var(--bg); }
.hero__stick { cursor: grab; }
.hero[data-dragging] .hero__stick { cursor: grabbing; }

.tunnel { position: relative; z-index: 2; }   /* longueur : responsive.css */
.tunnel__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }

/* une « station » de texte : arrive du fond, se pose, puis passe derrière la caméra */
.station { --o: 0; --s: .32; --bl: 10px; --a: 0; --y: 0vh; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 90px var(--gutter) 110px; opacity: var(--o); transform: translateY(var(--y)) scale(var(--s)); filter: blur(var(--bl)); pointer-events: none; will-change: transform, opacity, filter; }
.station.is-live a { pointer-events: auto; }
.station__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(16px, 2.4vh, 26px); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--action); }
.station__eyebrow::before, .station__eyebrow::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--action)); transform: scaleX(var(--a)); transform-origin: right; }
.station__eyebrow::after { background: linear-gradient(270deg, transparent, var(--action)); transform-origin: left; }
.station__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgb(var(--acc-rgb) / .5); font-size: .625rem; letter-spacing: 0; color: var(--text); }
.station__title { max-width: 16ch; font-size: clamp(2.2rem, .6rem + 5.6vw, 6.4rem); font-weight: 650; line-height: .92; letter-spacing: -.05em; text-transform: uppercase; text-wrap: balance; }
h3.station__title { max-width: 15ch; font-size: clamp(2rem, .6rem + 4.8vw, 5.6rem); }
.station__text { max-width: 34ch; margin-top: clamp(16px, 2.6vh, 28px); font-size: var(--fs-body-l); line-height: 1.3; color: var(--muted-space); }
/* mots qui apparaissent un à un, pilotés par le défilement */
.words .w { display: inline-block; --v: clamp(0, calc(var(--a) * 11 - var(--k) * .55), 1); opacity: var(--v); transform: translateY(calc((1 - var(--v)) * .5em)) rotate(calc((1 - var(--v)) * 4deg)); filter: blur(calc((1 - var(--v)) * 6px)); }
.station__text .w { --v: clamp(0, calc(var(--a) * 11 - 3 - var(--k) * .35), 1); }
/* étiquettes qui arrivent depuis les parois du tunnel */
.station__cta { margin-top: clamp(22px, 3.4vh, 36px); opacity: clamp(0, calc(var(--tl, 0) * 3 - 2), 1); }

/* le parcours en 7 étapes, rempli par le défilement */
.path { --tl: 0; width: min(980px, 100%); margin-top: clamp(26px, 4vh, 44px); }
.station--path .path { --tl: inherit; }
.path__labels { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-space); }
.path__bar { position: relative; height: 1px; background: rgb(var(--text-rgb) / .2); }
.path__fill { position: absolute; inset: 0; background: var(--action); box-shadow: 0 0 12px var(--action); transform-origin: left; transform: scaleX(var(--tl)); }
.path__ia { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 3px 9px; border-radius: 6px; border: 1px solid rgb(var(--text-rgb) / .4); background: #040a07; font-size: .625rem; font-weight: 800; letter-spacing: .08em; }
.path__steps { display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); margin-top: -5px; }
.path__steps li { position: relative; padding-top: 26px; font-size: .85rem; color: rgb(var(--text-rgb) / .4); transition: color .4s; }
.path__steps li::before { content: ""; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translateX(-50%); background: color-mix(in srgb, var(--text) 20%, var(--bg)); transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.path__steps li.is-on { color: var(--text); font-weight: 600; }
.path__steps li.is-on::before { background: var(--action); box-shadow: 0 0 14px var(--action); transform: translateX(-50%) scale(1.25); }

/* indicateur de progression dans le tunnel */
.tunnel__hud { position: absolute; left: 50%; bottom: clamp(22px, 4vh, 40px); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-space);
  opacity: 0; transition: opacity .5s; white-space: nowrap; }
.tunnel.is-in .tunnel__hud { opacity: 1; }
.tunnel__hud-k { color: var(--action); font-variant-numeric: tabular-nums; }
.tunnel__hud-line { position: relative; width: clamp(80px, 14vw, 180px); height: 1px; background: rgb(var(--text-rgb) / .2); }
.tunnel__hud-line i { position: absolute; inset: 0; background: var(--action); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 8px var(--action); }

/* la section suivante recouvre le tunnel */
.solutions { position: relative; z-index: 3; margin-top: 0; }

/* tunnel sur petit écran : voir responsive.css (formats empilé / peu de hauteur) */
@media (prefers-reduced-motion: reduce) { .station { filter: none; } }

/* L'orbe IA (orb.js) remplace ces repères : ils restent en place comme points d'ancrage invisibles */
.orb-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; display: block; }
.agency__sym { opacity: .06; }
@media (prefers-reduced-motion: reduce) { .orb-layer { display: none; } .agency__sym { opacity: .9; } }
.tunnel-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; opacity: 0; visibility: hidden; }

/* Blocs construits par l'orbe : ils se matérialisent quand les particules ont tracé leur contour */
[data-build] { opacity: 0; filter: blur(6px); transition: opacity .7s var(--ease), filter .8s var(--ease), clip-path 1s cubic-bezier(.7, 0, .2, 1); }
[data-build="clip"] { clip-path: inset(0 0 100% 0); }
[data-build].is-built { opacity: 1; filter: none; }
[data-build="clip"].is-built { clip-path: inset(-60px -60px -60px -60px); }
@media (prefers-reduced-motion: reduce) { [data-build] { opacity: 1; filter: none; clip-path: none; } }
/* lisibilité des textes du tunnel au-dessus du vortex */
.station::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); height: min(620px, 90vh); transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--bg-rgb) / .78), rgb(var(--bg-rgb) / .45) 55%, transparent); }
.station { isolation: isolate; text-shadow: 0 2px 24px rgb(0 0 0 / .6); }

/* =====================================================================
   Intro « ignition » (intro.js) : particules → logo → onde de choc → ouverture sur la planète
   ===================================================================== */
html.has-intro .loader { display: block; background: var(--bg); clip-path: none; transition: none; }
html.has-intro .loader.is-done { clip-path: none; opacity: 1; background: transparent; pointer-events: none; }
.loader__fx, .loader__sig, .loader__c, .loader__k { display: none; }
html.has-intro .loader__fx { display: block; position: absolute; inset: 0; }
html.has-intro .loader__logo { display: none; }
html.has-intro .loader__in { position: absolute; z-index: 1; left: 50%; bottom: max(7svh, 40px); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
html.has-intro .loader__line { width: clamp(120px, 16vw, 220px); }
html.has-intro .loader__line::after { display: none; }
html.has-intro .loader__pct { min-width: 3ch; font-size: .75rem; letter-spacing: .14em; color: rgb(var(--text-rgb) / .7); }
html.has-intro .loader__sig { display: block; position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--logo-b, 60vh) + clamp(22px, 4svh, 40px)); margin: 0; text-align: center;
  font-size: clamp(.68rem, 1vw, .8rem); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: rgb(var(--text-rgb) / .78); }
html.has-intro .loader__sig span { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(6px); animation: intro-sig .9s var(--ease) forwards; animation-delay: .95s; }
html.has-intro .loader__sig span + span { color: rgb(var(--acc-rgb)); animation-delay: 1.2s; }
@keyframes intro-sig { to { opacity: 1; filter: none; transform: none; } }
html.has-intro .loader__c { display: block; position: absolute; z-index: 1; width: 26px; height: 26px; border: 1.5px solid rgb(var(--text-rgb) / .35); opacity: 0; animation: intro-c .8s .15s var(--ease) forwards; }
.loader__c--tl { top: 24px; left: 24px; border-right: 0 !important; border-bottom: 0 !important; transform: translate(-10px, -10px); }
.loader__c--tr { top: 24px; right: 24px; border-left: 0 !important; border-bottom: 0 !important; transform: translate(10px, -10px); }
.loader__c--bl { bottom: 24px; left: 24px; border-right: 0 !important; border-top: 0 !important; transform: translate(-10px, 10px); }
.loader__c--br { bottom: 24px; right: 24px; border-left: 0 !important; border-top: 0 !important; transform: translate(10px, 10px); }
@keyframes intro-c { to { opacity: 1; transform: none; } }
html.has-intro .loader__k { display: block; position: absolute; z-index: 1; bottom: max(7svh, 40px); margin: 0; transform: translateY(50%); font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgb(var(--text-rgb) / .45);
  opacity: 0; animation: intro-c .8s .4s var(--ease) forwards; }
html.has-intro .loader__k b { color: rgb(var(--acc-rgb)); font-weight: 700; }
.loader__k--l { left: 56px; } .loader__k--r { right: 56px; }
.loader__k--r::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: rgb(var(--acc-rgb)); box-shadow: 0 0 10px rgb(var(--acc-rgb)); vertical-align: 1px; animation: ic-blink-l 1s steps(2) infinite; }
@keyframes ic-blink-l { 50% { opacity: .2; } }
/* l'éclat : l'habillage s'efface d'un coup */
html.has-intro .loader.is-burst .loader__in, html.has-intro .loader.is-burst .loader__sig, html.has-intro .loader.is-burst .loader__c, html.has-intro .loader.is-burst .loader__k { opacity: 0 !important; transition: opacity .25s; animation: none; }
@media (max-width: 700px) { html.has-intro .loader__k { display: none; } .loader__c--tl, .loader__c--tr { top: calc(16px + env(safe-area-inset-top)); } .loader__c { width: 20px !important; height: 20px !important; } .loader__c--tl, .loader__c--bl { left: 16px; } .loader__c--tr, .loader__c--br { right: 16px; } }
@media (max-height: 520px) { html.has-intro .loader__in { bottom: 22px; } html.has-intro .loader__k { bottom: 22px; } }

/* =====================================================================
   Menu « Services » (ui-fx.js) : panneau des 7 métiers sous l'en-tête + liste dans le menu mobile
   ===================================================================== */
.svm { position: fixed; z-index: 49; top: 84px; left: 50%; width: min(1040px, calc(100vw - 2 * var(--gutter))); transform: translate(-50%, -10px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease), visibility 0s .45s; }
.svm::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }   /* pont pour la souris entre le lien et le panneau */
.svm.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity .3s, transform .45s var(--ease), visibility 0s; }
.svm__in { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 10px; padding: 14px; border-radius: 24px; background: rgb(var(--surface-rgb) / .92); border: 1px solid rgb(var(--text-rgb) / .12);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .8); }
.svm__h { padding: 8px 12px 6px; color: rgb(var(--acc-rgb)); }
.svm__a { display: grid; grid-template-columns: 28px 1fr; gap: 2px 8px; padding: 11px 12px; border-radius: 14px; transition: background .25s; opacity: 0; transform: translateY(6px); }
.svm.is-open .svm__a { opacity: 1; transform: none; transition: background .25s, opacity .4s calc(var(--i) * 35ms), transform .5s calc(var(--i) * 35ms) var(--ease); }
.svm__a .mono { grid-row: span 2; padding-top: 3px; color: rgb(var(--text-rgb) / .4); }
.svm__a b { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.svm__a em { font-style: normal; font-size: .78rem; line-height: 1.35; color: rgb(var(--text-rgb) / .58); }
.svm__a:hover, .svm__a:focus-visible, .svm__a.is-here { background: rgb(var(--text-rgb) / .07); }
.svm__a:hover b, .svm__a.is-here b { color: rgb(var(--acc-rgb)); }
.svm__pv { display: grid; grid-template-rows: 1fr auto; gap: 10px; }
.svm__img { position: relative; border-radius: 16px; overflow: hidden; background: rgb(var(--bg-rgb)); min-height: 180px; border: 1px solid rgb(var(--text-rgb) / .08); }
.svm__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.svm__all { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; font-size: .8rem; font-weight: 700; background: rgb(var(--text-rgb) / .05); }
.svm__all:hover { background: rgb(var(--acc-rgb)); color: rgb(var(--on-acc-rgb)); }
.hd__nav i { display: inline-block; transition: transform .35s var(--ease); }
.hd__nav a[aria-expanded="true"] i { transform: rotate(180deg); }
@media (max-width: 900px) { .svm { display: none; } }
.mnav__svc { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; margin: 2px 0 12px; }
.mnav__svc a { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; font-size: .95rem; font-weight: 600; color: rgb(var(--text-rgb) / .75); }
.mnav__svc a .mono { font-size: .65rem; color: rgb(var(--acc-rgb)); }
.mnav__svc a[aria-current] { color: rgb(var(--acc-rgb)); }
html.f-short .mnav__svc { grid-template-columns: repeat(4, auto); justify-content: start; }
.mnav__links .mnav__svc a, html.f-short .mnav__links .mnav__svc a { justify-content: flex-start; padding: 7px 0; border: 0; font-size: .95rem; font-weight: 600; letter-spacing: -.005em; text-transform: none; line-height: 1.2; color: rgb(var(--text-rgb) / .78); opacity: 1; transform: none; }
.mnav__links .mnav__svc a span { font-size: .65rem; color: rgb(var(--acc-rgb)); }
.mnav__links .mnav__svc a:hover, .mnav__links .mnav__svc a[aria-current] { color: rgb(var(--acc-rgb)); }
.mnav__svc { opacity: 0; transition: opacity .5s .4s; } .mnav.is-open .mnav__svc { opacity: 1; }
