/* ============================================================================
   HORAMA · site.css
   DA : monochrome strict, alternance pages sombres / ivoire (tissu), photographie
   terrain N&B, coins de viseur issus du logo. Seule couleur : le tricolore.
   ----------------------------------------------------------------------------
   00 Fonts & tokens · 01 Base · 02 Viseur & détections · 03 Typo & boutons
   04 En-tête, menu, tricolore · 05 Accueil · 06 Pages intérieures
   07 Approche · 08 Secteurs · 09 Principes · 10 Vision · 11 Contact / 404
   12 Pied de page · 13 Curseur, transitions, animations · 14 Responsive
   ========================================================================== */

/* ── 00 FONTS & TOKENS ─────────────────────────────────────────────────── */
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink-0: #0c0d0e;
  --ink-1: #121315;
  --ink-2: #1a1c1f;
  --paper-0: #f4f3f1;
  --paper-1: #eceae6;
  --white: #f5f4f1;

  --fr-bleu: #0055a4;
  --fr-blanc: #ffffff;
  --fr-rouge: #ef4135;

  --f-display: 'General Sans', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 88rem;
  --hdr-h: 4.75rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --vf-c: 1.1rem;  /* longueur d'un coin de viseur */
  --vf-w: 1.5px;   /* épaisseur */
}

[data-theme='dark'] {
  --bg: var(--ink-0);
  --bg-2: var(--ink-1);
  --fg: #f2f1ee;
  --fg-2: rgba(242, 241, 238, .68);
  --fg-3: rgba(242, 241, 238, .44);
  --line: rgba(242, 241, 238, .14);
  --line-2: rgba(242, 241, 238, .28);
  --fabric: url('../img/site/fabric-dark.webp?v=2');
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: var(--paper-0);
  --bg-2: var(--paper-1);
  --fg: #0e0f10;
  --fg-2: rgba(14, 15, 16, .7);
  --fg-3: rgba(14, 15, 16, .48);
  --line: rgba(14, 15, 16, .13);
  --line-2: rgba(14, 15, 16, .3);
  --fabric: url('../img/site/fabric-light.webp?v=2');
  color-scheme: light;
}

/* ── 01 BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }

[data-theme]:not(.hdr) { background-color: var(--bg); color: var(--fg); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 1rem; z-index: 999; background: var(--fg); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* Fond tissu pour les sections ivoire / encre */
.sec--paper, .phero, .letter, .sec--paper2 {
  background-image: var(--fabric);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.sec--paper2 { background-image: none; background-color: var(--bg-2); }

/* ── 02 VISEUR & DÉTECTIONS ────────────────────────────────────────────── */
/* Coins de viseur : 8 dégradés, couleur = currentColor */
.vf { position: relative; }
.vf::before {
  content: '';
  position: absolute;
  inset: var(--vf-inset, 0);
  pointer-events: none;
  --g: linear-gradient(currentColor, currentColor);
  background:
    var(--g) top left / var(--vf-c) var(--vf-w), var(--g) top left / var(--vf-w) var(--vf-c),
    var(--g) top right / var(--vf-c) var(--vf-w), var(--g) top right / var(--vf-w) var(--vf-c),
    var(--g) bottom left / var(--vf-c) var(--vf-w), var(--g) bottom left / var(--vf-w) var(--vf-c),
    var(--g) bottom right / var(--vf-c) var(--vf-w), var(--g) bottom right / var(--vf-w) var(--vf-c);
  background-repeat: no-repeat;
  transition: inset .6s var(--ease), opacity .4s;
}
.vf--lg { --vf-c: clamp(1.4rem, 2.6vw, 2.6rem); --vf-w: 2px; }
.vf-sm { --vf-c: .5rem; --vf-w: 1.5px; }

/* Média */
.media { position: relative; overflow: hidden; background: var(--ink-2); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: calc(var(--fx, .5) * 100%) 50%; }

/* Cadres de détection */
.dets { position: absolute; inset: 0; pointer-events: none; }
[data-fit] { will-change: left, top; }
.media picture { display: block; width: 100%; height: 100%; }
.det {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  color: #fff;
  --vf-c: .55rem; --vf-w: 1px;
  opacity: 0;
  transform: scale(1.35);
  transition: opacity .35s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i) * .14s + .1s);
}
.det::before {
  content: ''; position: absolute; inset: 0;
  --g: linear-gradient(currentColor, currentColor);
  background:
    var(--g) top left / var(--vf-c) var(--vf-w), var(--g) top left / var(--vf-w) var(--vf-c),
    var(--g) top right / var(--vf-c) var(--vf-w), var(--g) top right / var(--vf-w) var(--vf-c),
    var(--g) bottom left / var(--vf-c) var(--vf-w), var(--g) bottom left / var(--vf-w) var(--vf-c),
    var(--g) bottom right / var(--vf-c) var(--vf-w), var(--g) bottom right / var(--vf-w) var(--vf-c);
  background-repeat: no-repeat;
}
.det::after { /* fin filet intérieur */
  content: ''; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .14);
}
.det em {
  position: absolute; left: 0; bottom: calc(100% + .4rem);
  font: 500 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal;
  white-space: nowrap; padding: .32rem .45rem; background: rgba(12, 13, 14, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s var(--ease); transition-delay: calc(var(--i) * .14s + .45s);
}
.det--key { --vf-w: 1.5px; }
.det--flip em { left: auto; right: 0; } /* étiquette près du bord droit du cadrage */
.det--key em { background: #fff; color: var(--ink-0); }
.is-in .det, .det.is-in { opacity: 1; transform: none; }
.is-in .det em { clip-path: inset(0 0 0 0); }


/* ── 03 TYPO & BOUTONS ─────────────────────────────────────────────────── */
.h-display {
  font: 600 clamp(2.5rem, 8.2vw, 8.4rem)/.93 var(--f-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h-section {
  font: 600 clamp(2.2rem, 5.2vw, 5rem)/.98 var(--f-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h-statement {
  font: 500 clamp(1.7rem, 3.4vw, 3.3rem)/1.12 var(--f-display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h-sector { font: 600 clamp(2rem, 3.8vw, 3.8rem)/1 var(--f-display); letter-spacing: -.04em; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--fg-2); max-width: 34rem; text-wrap: pretty; }
.sec-intro { color: var(--fg-2); max-width: 36rem; font-size: 1.1rem; text-wrap: pretty; }

.label, .kicker {
  display: flex; align-items: center; gap: .8rem;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.label-n { color: var(--fg); }
.label-rule { width: 2.5rem; height: 1px; background: var(--line-2); }
.kicker-sep { width: 1.5rem; height: 1px; background: currentColor; opacity: .5; }

.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .9rem;
  height: 3.1rem; padding: 0 1.35rem;
  font: 500 .95rem/1 var(--f-display); letter-spacing: -.005em;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::after { /* remplissage au survol */
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn[href^='/contact']::before, .btn[href^='/en/contact']::before, .hdr-cta::before, .cf-next::before { /* drapeau français sous les boutons de contact, au survol */
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--fr-bleu) 0 33.34%, #fff 33.34% 66.67%, var(--fr-rouge) 66.67%);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.btn[href^='/contact']:hover::before, .btn[href^='/contact']:focus-visible::before, .btn[href^='/en/contact']:hover::before, .btn[href^='/en/contact']:focus-visible::before, .hdr-cta:hover::before, .hdr-cta:focus-visible::before, .cf-next:hover::before, .cf-next:focus-visible::before { transform: scaleX(1); }
.btn .arr { width: .95rem; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(.3rem); }
.btn:hover::after { transform: scaleY(1); }
.btn--light { background: var(--white); color: var(--ink-0); }
.btn--light::after { background: #fff; }
.btn--dark { background: var(--ink-0); color: var(--white); }
.btn--dark::after { background: #2a2c30; }
.btn--ghost { color: var(--fg); border: 1px solid var(--line-2); }
.btn--ghost::after { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); border-color: var(--fg); }

/* ── 04 EN-TÊTE, MENU, TRICOLORE ───────────────────────────────────────── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hdr-h);
  display: flex; align-items: center; gap: 2rem;
  padding-inline: var(--gutter);
  color: var(--fg);
  transition: color .4s var(--ease), background-color .4s var(--ease), transform .5s var(--ease), backdrop-filter .4s;
  view-transition-name: hdr;
}
.hdr::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: currentColor; opacity: 0; transition: opacity .4s; }
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.hdr.is-scrolled::after { opacity: .1; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-logo { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.symbol { width: 1.7rem; height: auto; aspect-ratio: 122 / 112; fill: currentColor; }
.wordmark {
  display: block; width: 7.2rem; aspect-ratio: 1400 / 222;
  background: currentColor;
  -webkit-mask: url('../brand/wordmark.png') center / contain no-repeat;
  mask: url('../brand/wordmark.png') center / contain no-repeat;
}
.wordmark--lg { width: min(22rem, 70vw); }
.hdr-nav ul { display: flex; gap: 2.2rem; }
.hdr-nav a, .hdr-cta { font: 500 .9rem/1 var(--f-display); position: relative; }
.hdr-nav a { padding: .5rem 0; opacity: .78; transition: opacity .3s; white-space: nowrap; }
.hdr-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hdr-nav a:hover, .hdr-nav a[aria-current] { opacity: 1; }
.hdr-nav a:hover::after, .hdr-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.hdr-cta { position: relative; padding: .8rem 1.05rem; border: 1px solid currentColor; transition: background-color .35s, color .35s, border-color .35s; }
.hdr-cta:hover, .hdr-cta[aria-current] { color: var(--bg); background: var(--fg); }
.hdr-burger { display: none; width: 2.75rem; height: 2.75rem; position: relative; }
.hdr-burger i { position: absolute; left: .6rem; right: .6rem; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.hdr-burger i:nth-of-type(1) { top: 1.05rem; }
.hdr-burger i:nth-of-type(2) { top: 1.6rem; }
.hdr-burger[aria-expanded='true'] i:nth-of-type(1) { top: 1.33rem; transform: rotate(45deg); }
.hdr-burger[aria-expanded='true'] i:nth-of-type(2) { top: 1.33rem; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem;
  padding: calc(var(--hdr-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--ink-0) var(--fabric) center / cover;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu ol { display: grid; gap: .2rem; }
.menu a { display: flex; align-items: baseline; gap: 1rem; font: 600 clamp(2.4rem, 10vw, 3.6rem)/1.08 var(--f-display); letter-spacing: -.04em; }
.menu a span { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; color: var(--fg-3); }
.menu-mail { font: 500 .85rem/1 var(--f-mono) !important; color: var(--fg-2); padding-block: .9rem; margin-block: -.9rem; } /* cible tactile sans décaler la mise en page */
/* Téléphone couché : le menu passe sur deux colonnes pour tenir sous l'en-tête */
@media (max-height: 560px) and (orientation: landscape) {
  .menu { gap: 1.1rem; padding-bottom: 1.4rem; overflow-y: auto; }
  .menu ol { grid-template-rows: repeat(4, auto); grid-auto-flow: column; justify-content: start; column-gap: clamp(2rem, 8vw, 5rem); }
  .menu ol a { font-size: clamp(1.5rem, 8.4vh, 2.2rem); }
}

/* ── 05 ACCUEIL ────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--hdr-h) + 4rem) 0 clamp(3rem, 7vh, 5.5rem);
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media { will-change: transform; }
.hero-video { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; filter: brightness(.96) contrast(1.03); background: var(--ink-0) url('../img/site/hero-poster.webp') center / cover; }
.hero-slide { position: absolute; inset: -6% 0; opacity: 0; transition: opacity 1.8s var(--ease-io); }
.hero-slide.is-active { opacity: 1; }
.hero-slide .media { position: absolute; inset: 0; background: var(--ink-0); }
.hero-media img { filter: brightness(.85) contrast(1.04); }
.hero-slide .media { transform: scale(1.1); transition: transform 9s linear; }
.hero-slide.is-active .media { transform: scale(1.0); }
.hero::before { /* voile pour la lisibilité */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,13,14,.55) 0%, rgba(12,13,14,0) 26%),
    linear-gradient(0deg, rgba(12,13,14,.86) 0%, rgba(12,13,14,.32) 40%, rgba(12,13,14,0) 68%),
    linear-gradient(90deg, rgba(12,13,14,.5) 0%, rgba(12,13,14,0) 55%);
}
.hero-in { position: relative; }
.hero .h-display { max-width: none; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-top: clamp(2rem, 4vw, 3rem); }

.sec { position: relative; padding: clamp(5.5rem, 12vw, 11rem) 0; overflow: hidden; }
.sec-head { margin-bottom: clamp(3rem, 6vw, 5.5rem); display: grid; gap: 1.5rem; }
.sec-foot { margin-top: clamp(2.5rem, 5vw, 4rem); }
.sec-bg { position: absolute !important; inset: 0; z-index: 0; }
.sec-bg img { filter: brightness(.68); }
.sec--principles > .wrap { position: relative; z-index: 1; }
.sec--principles::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,14,.75), rgba(12,13,14,.35) 40%, rgba(12,13,14,.85)); z-index: 0; pointer-events: none; }

.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: end; }
.split-aside { display: grid; gap: 1.75rem; justify-items: start; color: var(--fg-2); max-width: 26rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.5vw, 1.5rem); margin-top: clamp(4rem, 8vw, 7rem); counter-reset: step; }
.step h3 { font: 600 1.35rem/1.1 var(--f-display); letter-spacing: -.02em; margin: .6rem 0 .5rem; }
.step > p:last-child { color: var(--fg-2); font-size: .95rem; line-height: 1.5; }
.step-n { font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; color: var(--fg-3); margin-top: 1.1rem; }
.step-img { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.step-img .media { position: absolute; inset: 0; }
/* Quatre traitements de la même image = la chaîne */
.fx--raw img { filter: blur(1.2px) brightness(.95) contrast(.88); }
.fx--scan img { filter: contrast(1.25) brightness(.9); }
.fx--scan .media::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 28px);
}
.fx--scan .media::before {
  content: ''; position: absolute; left: 0; right: 0; height: 30%; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.28) 90%, #fff 100%);
  mix-blend-mode: overlay; animation: sweep 3.2s linear infinite;
}
@keyframes sweep { from { top: -30%; } to { top: 100%; } }
.fx--detect img { filter: brightness(.85); }
.fx--decide img { filter: brightness(.55); }
.fx--decide .det:not(.det--key) { opacity: .25 !important; }
.fx--decide .det--key { box-shadow: 0 0 0 100vmax rgba(12,13,14,.45); }
.step-img .det em { font-size: .56rem; }

/* Tuiles secteurs : accordéon */
.tiles { display: flex; gap: .5rem; height: clamp(26rem, 62vh, 40rem); }
.tile {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff;
  transition: flex-grow .9s var(--ease);
}
.tile .media { position: absolute; inset: 0; }
.tile img { filter: brightness(.78); transform: scale(1.12); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,13,14,.85), rgba(12,13,14,0) 60%); pointer-events: none; }
.tile-n { position: absolute; top: 1rem; left: 1rem; z-index: 2; font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; color: rgba(255,255,255,.6); }
.tile-body { position: absolute; left: 1rem; right: 1rem; bottom: 1.4rem; z-index: 2; display: block; }
.tile strong { display: block; font: 600 clamp(1rem, 1.3vw, 1.3rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.tile-desc { position: absolute; left: 0; right: 0; bottom: calc(100% + .55rem); font-size: .88rem; line-height: 1.4; color: rgba(255,255,255,.78); opacity: 0; transform: translateY(.6rem); transition: opacity .5s var(--ease), transform .6s var(--ease); max-width: 22rem; }
@media (hover: hover) and (min-width: 900px) {
  .tiles:hover .tile { flex-grow: .75; }
  .tiles .tile:hover { flex-grow: 3.2; }
  .tile:hover img { transform: scale(1.02); filter: brightness(.95); }
  .tile:hover .tile-desc { opacity: 1; transform: none; transition-delay: .25s; }
}

.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.pcard { padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem); display: grid; align-content: start; gap: 1rem; min-height: 15rem; }
.pcard h3 { font: 600 1.35rem/1.1 var(--f-display); letter-spacing: -.02em; }
.pcard p { color: var(--fg-2); font-size: .98rem; line-height: 1.5; }

.quote { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: center; }
.quote-portrait { overflow: hidden; }
.quote-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quote-text p { font: 500 clamp(1.8rem, 3.6vw, 3.4rem)/1.1 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.quote-by { display: grid; gap: .25rem; margin: 2rem 0 2.25rem; color: var(--fg-2); font-size: .95rem; }
.quote-by strong { color: var(--fg); font: 600 1.05rem/1.2 var(--f-display); }

/* ── 06 PAGES INTÉRIEURES ──────────────────────────────────────────────── */
.phero { padding: calc(var(--hdr-h) + clamp(5rem, 14vh, 9rem)) 0 clamp(4rem, 9vw, 7rem); position: relative; }
.phero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.phero--dark { border-bottom: 1px solid var(--line); }
/* Secteurs : sommaire éditorial avant le détail ; l'image du secteur survolé s'affiche à droite */
.sxi { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--line); }
.sxi-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.sxi-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sxi-list { border-bottom: 1px solid var(--line); }
.sxi-list a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: 'n name arr' '. short arr'; column-gap: 1rem; align-items: center; padding: clamp(1rem, 1.8vw, 1.5rem) 0; border-top: 1px solid var(--line); }
.sxi-n { grid-area: n; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; color: var(--fg-3); transition: color .4s; }
.sxi-name { grid-area: name; font: 600 clamp(1.7rem, 3.6vw, 3.4rem)/1.05 var(--f-display); letter-spacing: -.04em; color: var(--fg-3); transition: color .5s var(--ease), transform .6s var(--ease); }
.sxi-short { grid-area: short; margin-top: .4rem; color: var(--fg-3); font-size: .95rem; transition: color .4s, transform .6s var(--ease); }
.sxi-list a.is-on .sxi-short { color: var(--fg-2); transform: translateX(.4rem); }
.sxi-list .arr { grid-area: arr; width: 1.3rem; opacity: 0; transform: translateX(-.6rem); transition: opacity .4s, transform .5s var(--ease); }
.sxi-list a.is-on .sxi-name, .sxi-list a:focus-visible .sxi-name { color: var(--fg); transform: translateX(.4rem); }
.sxi-list a.is-on .sxi-n { color: var(--fg); }
.sxi-list a.is-on .arr { opacity: 1; transform: none; }
.sxi-preview { position: sticky; top: calc(var(--hdr-h) + 2rem); aspect-ratio: 4 / 5; overflow: hidden; }
.sxi-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.sxi-img.is-on { opacity: 1; transform: none; }
.sxi-img .media, .sxi-img figure { position: absolute; inset: 0; height: 100%; margin: 0; }
.sxi-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 999px) {
  .sxi-head, .sxi-body { grid-template-columns: 1fr; }
  .sxi-preview { display: none; }
  .sxi-name { color: var(--fg); }
  .sxi-list .arr { opacity: 1; transform: none; }
  .sxi-list a { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: .75rem; }
  .sxi-list a.is-on .sxi-name, .sxi-list a.is-on .sxi-short { transform: none; } /* sans aperçu, pas d'élément actif décalé */
  .sxi-list a.is-on .sxi-short { color: var(--fg-3); }
}

/* ── 07 APPROCHE ───────────────────────────────────────────────────────── */
.pipe { position: relative; height: 420vh; background: var(--ink-0); }
.pipe-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.pipe-stage { position: absolute; inset: 0; }
.pipe-img { position: absolute; inset: 0; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 561px) {
  .pipe-img { left: 42%; }
  .pipe-img::after { background: linear-gradient(90deg, rgba(12,13,14,1) 0%, rgba(12,13,14,0) 14%) !important; }
  .pipe-steps { width: min(34rem, 34vw) !important; }
  .pipe-decision { left: auto !important; top: auto !important; right: var(--gutter) !important; bottom: 5.5rem !important; width: min(21rem, 26vw) !important; }
  .pipe { background: var(--ink-0); }
  .pipe-ui { justify-content: flex-start !important; padding-top: calc(var(--hdr-h) + clamp(2rem, 7vh, 5rem)) !important; padding-bottom: 5.5rem; }
  .pipe-steps { flex: none; height: 19rem !important; }
  .pipe-flow { display: block; }
}
/* Motion design : le flux capté → traité → compris → décision (canvas) */
.pipe-flow { display: none; position: relative; flex: 1; min-height: 4rem; width: calc(42vw - max(var(--gutter), (100vw - var(--max)) / 2) - var(--gutter)); /* s'arrête avant l'image, même quand .wrap est plafonné */ margin-top: clamp(1rem, 4vh, 2.5rem); }
.pipe-flow canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 561px) { .pipe-flow { display: block; } }

.pipe-img > .media { position: absolute; inset: 0; }
.pipe-img img { transition: filter 1s var(--ease), transform 1.6s var(--ease); filter: blur(2px) brightness(.78) contrast(.92); transform: scale(1.06); }
.pipe-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,14,.9) 0%, rgba(12,13,14,.5) 38%, rgba(12,13,14,0) 70%); pointer-events: none; }
.pipe-grid {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.1) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px 48px);
}
.pipe-sweep { position: absolute; left: 0; right: 0; top: -30%; height: 30%; opacity: 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.18) 92%, rgba(255,255,255,.9) 100%); mix-blend-mode: overlay; }
.pipe .dets { z-index: 1; }
.pipe .det em { font-size: .7rem; }
.pipe-decision {
  position: absolute; z-index: 3; left: 66%; top: 58%; width: min(22rem, 30vw);
  padding: 1.4rem 1.4rem 1.2rem; color: #fff; background: rgba(12,13,14,.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(1rem); transition: opacity .6s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
.pipe-decision-k { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.pipe-decision-t { font: 600 1.3rem/1.15 var(--f-display); letter-spacing: -.02em; margin: .7rem 0 .5rem; }
.pipe-decision-s { font-size: .82rem; color: rgba(255,255,255,.66); line-height: 1.45; }
.pipe-trace { margin-top: .6rem; min-height: 2.75rem; font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .25rem; }
.pipe-ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.pipe-steps { position: relative; height: 18rem; width: min(40rem, 52vw); }
.pipe-steps li { position: absolute; inset: 0; opacity: 0; transform: translateY(1.5rem); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.pipe-n { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; color: rgba(255,255,255,.55); }
.pipe-steps h2 { font: 600 clamp(2.4rem, 6vw, 6rem)/.95 var(--f-display); letter-spacing: -.045em; margin: 1rem 0 1.25rem; }
.pipe-d { color: rgba(242,241,238,.74); font-size: 1.05rem; line-height: 1.55; max-width: 30rem; }
.pipe-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.pipe-bar span { font: 500 .66rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.2); position: relative; transition: color .4s; }
.pipe-bar span::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }

/* États de la chaîne */
.pipe-stage[data-step='0'] .pipe-steps li[data-i='0'],
.pipe-stage[data-step='1'] .pipe-steps li[data-i='1'],
.pipe-stage[data-step='2'] .pipe-steps li[data-i='2'],
.pipe-stage[data-step='3'] .pipe-steps li[data-i='3'] { opacity: 1; transform: none; transition-delay: .15s; }
.pipe-stage[data-step='0'] .pipe-bar span:nth-child(-n+1),
.pipe-stage[data-step='1'] .pipe-bar span:nth-child(-n+2),
.pipe-stage[data-step='2'] .pipe-bar span:nth-child(-n+3),
.pipe-stage[data-step='3'] .pipe-bar span:nth-child(-n+4) { color: #fff; }
.pipe-stage[data-step='0'] .pipe-bar span:nth-child(-n+1)::before,
.pipe-stage[data-step='1'] .pipe-bar span:nth-child(-n+2)::before,
.pipe-stage[data-step='2'] .pipe-bar span:nth-child(-n+3)::before,
.pipe-stage[data-step='3'] .pipe-bar span:nth-child(-n+4)::before { transform: scaleX(1); }
.pipe-stage:not([data-step='0']) .pipe-img img { filter: brightness(.88) contrast(1.08); transform: scale(1); }
.pipe-stage[data-step='1'] .pipe-grid { opacity: 1; }
.pipe-stage[data-step='1'] .pipe-sweep { opacity: 1; animation: sweep 2.6s linear infinite; }
.pipe-stage[data-step='2'] .det, .pipe-stage[data-step='3'] .det { opacity: 1; transform: none; }
.pipe-stage[data-step='2'] .det em, .pipe-stage[data-step='3'] .det em { clip-path: inset(0); }
.pipe-stage[data-step='3'] .det:not(.det--key) { opacity: .2; transition-delay: 0s; }
.pipe-stage[data-step='3'] .pipe-img img { filter: brightness(.58); }
.pipe-stage[data-step='3'] .pipe-decision { opacity: 1; transform: none; pointer-events: auto; transition-delay: .3s; }
.pipe-stage.is-trace .det--key { animation: blink .5s steps(2) 3; }
.pipe-stage.is-trace .pipe-img img { filter: brightness(1); transition-duration: .5s; }
@keyframes blink { 50% { opacity: .2; } }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: clamp(.75rem, 2vw, 1.5rem); }
.flow-col { padding: 2rem 0 0; border-top: 1px solid var(--line-2); display: grid; align-content: start; gap: 1.5rem; }
.flow-h { font: 600 1.5rem/1 var(--f-display); letter-spacing: -.02em; }
.flow-col ul { display: grid; gap: .1rem; }
.flow-col li { padding: .7rem 0; border-top: 1px solid var(--line); color: var(--fg-2); font-size: .98rem; }
.flow-arrow { display: grid; place-items: center; width: 3rem; }
.flow-arrow i { width: 100%; height: 1px; background: var(--fg); position: relative; }
.flow-arrow i::after { content: ''; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid var(--fg); border-right: 1px solid var(--fg); transform: rotate(45deg); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.timeline li { padding: 2rem clamp(1rem, 2vw, 2rem) 0 0; display: grid; gap: .8rem; align-content: start; position: relative; }
.timeline li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--fg); }
.timeline-n { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; color: var(--fg-3); }
.timeline h3 { font: 600 1.35rem/1.1 var(--f-display); letter-spacing: -.02em; }
.timeline p { color: var(--fg-2); font-size: .98rem; line-height: 1.55; }

/* ── 08 SECTEURS ───────────────────────────────────────────────────────── */
.sector {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  min-height: 100vh; min-height: 100svh;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 0;
}
.sector:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.sector:nth-child(even) .sector-media { order: 2; }
.sector-media { position: relative; overflow: hidden; }
.sector-media > .media { position: absolute; inset: -6% 0; }
.sector-media img { filter: brightness(.9) contrast(1.03); transform: scale(1.1); }
.sector-body { padding: calc(var(--hdr-h) + 3rem) clamp(1.5rem, 4vw, 4.5rem) 4rem; display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; }
.sector-k { display: flex; align-items: center; gap: .8rem; font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.sector-k span { color: var(--fg); }
.sector-text { color: var(--fg-2); font-size: 1.05rem; line-height: 1.6; max-width: 32rem; }
.sector-pts { display: grid; max-width: 32rem; }
.sector-pts li { display: flex; gap: .9rem; align-items: baseline; padding: .8rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.sector-pts li::before { content: ''; width: .45rem; height: .45rem; flex: none; border: 1px solid currentColor; transform: translateY(-.05rem); }
.open-in { display: grid; gap: 1.6rem; justify-items: start; }
.open-k { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }

/* ── 09 PRINCIPES ──────────────────────────────────────────────────────── */
/* Fondamentaux : la liste reste fixe à gauche, le fondamental lu s'allume */
.fnd { padding: clamp(3rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.fnd-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); }
.fnd-nav { position: sticky; top: calc(var(--hdr-h) + 2rem); align-self: start; height: calc(100svh - var(--hdr-h) - 4rem); }
.fnd-nav ol { height: 100%; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.fnd-nav li { position: relative; display: flex; align-items: center; border-top: 1px solid var(--line); }
.fnd-nav li::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.fnd-nav li:has(.is-on)::before { transform: scaleX(1); }
.fnd-nav a { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: baseline; width: 100%; opacity: .14; transition: opacity .6s var(--ease); }
.fnd-nav a:hover { opacity: .45; }
.fnd-nav a.is-on { opacity: 1; }
.fnd-i { font: 500 .75rem/1 var(--f-mono); letter-spacing: .12em; transform: translateY(-.15em); }
.fnd-w { font: 600 clamp(2.4rem, 5.2vw, 5.6rem)/1.04 var(--f-display); letter-spacing: -.045em; }
.fnd-s { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.fnd-s > span { overflow: hidden; font: 500 clamp(1rem, 1.35vw, 1.3rem)/1.3 var(--f-display); letter-spacing: -.01em; color: var(--fg-2); max-width: 26rem; text-wrap: balance; }
.fnd-nav a.is-on .fnd-s { grid-template-rows: 1fr; }
.fnd-nav a.is-on .fnd-s > span { padding-top: .9rem; }
.fnd-item { min-height: 92vh; display: grid; align-content: center; gap: 1.6rem; padding: 3rem 0; }
.fnd-item + .fnd-item { border-top: 1px solid var(--line); }
.fnd-k { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; }
.fnd-k span { color: var(--fg-3); }
.fnd-short { display: none; }
.fnd-title { display: none; font: 600 clamp(2.4rem, 9vw, 3.6rem)/1 var(--f-display); letter-spacing: -.045em; }
.fnd-short { font: 500 clamp(1.35rem, 2.1vw, 1.9rem)/1.22 var(--f-display); letter-spacing: -.02em; max-width: 34rem; text-wrap: balance; }
.fnd-vis { max-width: 34rem; }
.fnd-vis .anim-bare { aspect-ratio: 4 / 3; }
.fnd-long { color: var(--fg-2); max-width: 36rem; line-height: 1.65; }
.fnd-you { display: grid; gap: .5rem; padding-left: 1.1rem; border-left: 1px solid var(--fg); max-width: 36rem; font-weight: 500; }
.fnd-you span { font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
/* Écrans bas : les quatre mots se règlent aussi sur la hauteur, pour tenir dans leur rangée */
.fnd-w { font-size: clamp(2.4rem, min(5.2vw, 9.5vh), 5.6rem); }
/* Mobile, et écrans trop bas pour la colonne collante (téléphone couché, petite fenêtre) : pile simple */
@media (max-width: 899px), (max-height: 640px) {
  .fnd-in { grid-template-columns: 1fr; }
  .fnd-nav { display: none; }
  .fnd-title, .fnd-short { display: block; }
  .fnd-item { min-height: 0; padding: 3.5rem 0; gap: 1.3rem; }
}
/* Paysage bas : l'animation tient dans l'écran */
@media (max-height: 640px) and (orientation: landscape) { .fnd-vis { max-width: min(34rem, calc((100svh - var(--hdr-h) - 3rem) * 4 / 3)); } }

/* ── 10 VISION ─────────────────────────────────────────────────────────── */
.letter { padding: 0 0 clamp(6rem, 12vw, 10rem); }
.letter--first { padding-top: clamp(5rem, 10vw, 8rem); }
/* Le mot du fondateur : portrait, citation à grands guillemets, puis la lettre en deux colonnes */
.fl-head { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.4fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: end; }
.fl-portrait { overflow: hidden; max-width: 27rem; }
.fl-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.fl-quote { display: grid; gap: 1.6rem; padding-bottom: .4rem; }
.letter .label + .fl-head { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.fl-mark { display: block; font: 600 clamp(7rem, 15vw, 14rem)/.55 var(--f-display); letter-spacing: -.05em; color: var(--fg); height: .5em; overflow: visible; }
.fl-lede { font: 500 clamp(2rem, 4.1vw, 4rem)/1.07 var(--f-display); letter-spacing: -.038em; text-wrap: balance; max-width: 18ch; }
.fl-by { display: grid; gap: .25rem; color: var(--fg-2); font-size: .95rem; }
.fl-by strong { color: var(--fg); font: 600 1.05rem/1.2 var(--f-display); }
.fl-text { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; gap: 1.3rem clamp(2.5rem, 6vw, 6rem); margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-2); font-size: 1.08rem; line-height: 1.72; color: var(--fg-2); }
.fl-text > div { display: grid; gap: 1.3rem; }
.fl-text strong { color: var(--fg); font-weight: 600; }
.fl-end { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.fl-end .letter-sign { border-top: 0; padding-top: 0; }
.fl-mark--end { height: auto; line-height: .5; transform: translateY(.18em); }
/* Tablette portrait, téléphone couché : on garde portrait | citation côte à côte */
@media (max-width: 899px) {
  .fl-head { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 2.5rem); align-items: end; }
  .fl-mark { font-size: clamp(5rem, 12vw, 7rem); }
}
@media (max-width: 559px) {
  .fl-head { grid-template-columns: 1fr; align-items: start; }
  .fl-portrait { max-width: min(18rem, 72vw); }
}
.letter-sign { padding-top: 2rem; border-top: 1px solid var(--line-2); color: var(--fg-2); font-size: .95rem; }
.letter-sign-name { font: 500 2rem/1 var(--f-display); letter-spacing: -.03em; color: var(--fg); margin-bottom: .5rem; font-style: italic; }

/* ── 11 CONTACT / 404 ──────────────────────────────────────────────────── */
.contact { position: relative; min-height: 100svh; padding: calc(var(--hdr-h) + clamp(4rem, 12vh, 8rem)) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute !important; inset: 0 0 auto 0; height: 100svh; min-height: 34rem; z-index: -2; }
.contact-bg::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, rgba(12,13,14,0), var(--ink-0)); }
.contact-bg img { filter: brightness(.82); }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,13,14,.94) 0%, rgba(12,13,14,.7) 38%, rgba(12,13,14,.1) 70%, rgba(12,13,14,0) 100%); }
@media (max-width: 899px) { .contact::before { background: linear-gradient(180deg, rgba(12,13,14,.55) 0%, rgba(12,13,14,.88) 45%, rgba(12,13,14,.95) 100%); } }
.contact-mail {
  display: inline-flex; align-items: center; gap: 1.2rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  font: 500 clamp(1.6rem, 4.4vw, 4.2rem)/1 var(--f-display); letter-spacing: -.035em;
  padding-bottom: .6rem; border-bottom: 1px solid var(--line-2);
  transition: border-color .4s;
}
.contact-mail .arr { flex: none; width: clamp(1.4rem, 3vw, 2.6rem); transition: transform .5s var(--ease); }
.contact-mail:hover { border-color: var(--fg); }
.contact-mail:hover .arr { transform: translateX(.5rem); }
.contact-copy { display: block; margin-top: .6rem; padding: .7rem 0; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.contact-copy.is-done { color: var(--fg); }
.contact-in { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.contact-intro { max-width: min(46rem, 56vw); }
/* Formulaire à gauche ; l'adresse à droite, sous le logo incrusté dans le fond */
.contact-row { display: grid; grid-template-columns: minmax(0, 46rem) auto minmax(min-content, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: stretch; }
.contact-or { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; gap: 1rem; }
.contact-or::before, .contact-or::after { content: ''; width: 1px; background: var(--line-2); }
.contact-or span { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.contact-direct { display: grid; align-content: center; justify-items: center; text-align: center; }
/* Le logo gravé finit à ~78 % de l'image (16:9, cadrée en cover sur max(100svh, 34rem)) : l'adresse se cale juste dessous, quel que soit l'écran */
@media (min-width: 900px) { .contact-row .cf { align-self: start; } .contact-row[style*='--row-top'] .contact-direct { --bgh: max(100svh, 34rem); align-content: start; padding-top: max(0px, calc(max(.78 * var(--bgh), .5 * var(--bgh) + 15.75vw) - var(--row-top) + 1.25rem)); } }
.contact-direct .contact-mail { margin-top: 0; font-size: clamp(1.4rem, 3vw, 3.1rem); }
.contact-direct .contact-mail .arr { width: clamp(1.2rem, 2.2vw, 2rem); }
.contact-intro { display: grid; align-content: start; }
/* Formulaire en quatre temps, animé */
.cf { --ok: rgb(74,222,128); position: relative; display: grid; gap: 1.6rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); background: rgba(12,13,14,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cf-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cf-steps li { display: flex; align-items: center; gap: .55rem; font: 500 .62rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); transition: color .5s var(--ease); }
.cf-steps li.is-on, .cf-steps li.is-done { color: var(--fg); }
.cf-box { position: relative; flex: none; width: .85rem; height: .85rem; border: 1.2px solid currentColor; opacity: .7; transition: border-color .4s var(--ease), opacity .4s; }
.cf-box::after { content: ''; position: absolute; left: 28%; top: 6%; width: 32%; height: 62%; border-right: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: rotate(45deg) scale(0); transform-origin: 60% 80%; transition: transform .45s var(--ease) .15s; }
.is-done > .cf-box, .cf-done.is-on > .cf-box { border-color: var(--ok); opacity: 1; }
.is-done > .cf-box::after, .cf-done.is-on > .cf-box::after { transform: rotate(45deg) scale(1); }
.cf-bar { height: 1px; background: var(--line); }
.cf-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--fg); transition: width .8s var(--ease); }
.cf-stage { display: grid; min-height: 15rem; }
.cf-panel { grid-area: 1 / 1; display: grid; align-content: start; gap: 1.1rem; min-width: 0; margin: 0; padding: 0; border: 0; opacity: 0; visibility: hidden; transform: translateY(1.2rem); transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.cf-panel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.cf-panel.is-out { transform: translateY(-1.2rem); }
.cf-panel > * { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.cf-panel:not(.is-on) > * { opacity: 0; transform: translateY(.6rem); }
.cf-panel.is-on > :nth-child(2) { transition-delay: .2s; }
.cf-panel.is-on > :nth-child(3) { transition-delay: .28s; }
.cf-panel.is-on > :nth-child(4) { transition-delay: .36s; }
.cf-q { display: grid; gap: .7rem; padding: 0; font: 500 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
legend.cf-q { float: left; width: 100%; margin-bottom: 1rem; }
.cf-panel > legend + * { clear: both; }
.cf-q span { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; color: var(--fg-3); }
.cf-hint { color: var(--fg-2); font-size: .95rem; }
.cf-field { position: relative; display: block; padding-top: 1.1rem; }
.cf-field input, .cf-field textarea { width: 100%; padding: .55rem 0 .6rem; border: 0; border-radius: 0; background: linear-gradient(var(--fg), var(--fg)) 0 100% / 0 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat; color: var(--fg); font: 400 1.05rem/1.5 var(--f-body, inherit); resize: none; outline: none; transition: background-size .6s var(--ease); }
.cf-field input:focus, .cf-field textarea:focus { background-size: 100% 1px, 100% 1px; }
.cf-field > span { position: absolute; left: 0; top: 1.75rem; color: var(--fg-3); font-size: 1rem; pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease), color .45s; }
.cf-field :focus + span, .cf-field :not(:placeholder-shown) + span { transform: translateY(-1.45rem) scale(.72); color: var(--fg-2); }
.cf-field.is-bad input { background-image: linear-gradient(rgb(220,38,38), rgb(220,38,38)), linear-gradient(var(--line-2), var(--line-2)); background-size: 100% 1px, 100% 1px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; }
.cf-err { min-height: 1.2em; color: rgb(239,110,110); font-size: .85rem; }
.cf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cf-chips label { cursor: pointer; }
.cf-chips input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chips span { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem .9rem; border: 1px solid var(--line-2); font: 500 .78rem/1 var(--f-mono); letter-spacing: .05em; transition: background-color .35s, color .35s, border-color .35s; }
.cf-chips span::before { content: ''; width: .5rem; height: .5rem; border: 1px solid currentColor; transition: background-color .35s; }
.cf-chips label:hover span { border-color: var(--fg); }
.cf-chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cf-chips input:checked + span::before { background: currentColor; }
.cf-chips input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.cf-done { justify-items: start; }
.cf-box--lg { width: 2.4rem; height: 2.4rem; border-width: 1.5px; }
.cf-box--lg::after { border-width: 0 3px 3px 0; }
.cf-done-ok, .cf-done-mail { display: grid; gap: 1.1rem; justify-items: start; }
.cf-done-mail, .cf.is-mailto .cf-done-ok { display: none; }
.cf.is-mailto .cf-done-mail { display: grid; }
.cf-again { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); border-bottom: 1px solid var(--line-2); padding-bottom: .3rem; }
.cf-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cf-nav .cf-next { margin-left: auto; }
.cf-back { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); padding: .8rem 0; }
.cf-back:hover { color: var(--fg); }
.cf.is-sent .cf-nav, .cf.is-sent .cf-bar { display: none; }
html:not(.js) .cf-panel { opacity: 1; visibility: visible; transform: none; grid-area: auto; }
html:not(.js) .cf-panel > * { opacity: 1; transform: none; }
html:not(.js) .cf-done, html:not(.js) .cf-steps, html:not(.js) .cf-bar { display: none; }
@media (max-width: 899px) {
  .contact-intro { max-width: none; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-or { grid-template-rows: none; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .contact-or { justify-items: stretch; }
  .contact-or span { justify-self: center; }
  .contact-or::before, .contact-or::after { width: auto; height: 1px; }
}
/* Formulaire étroit (tablette, portable) : étapes à la largeur de leur libellé, sans retour à la ligne */
@media (max-width: 1199px) { .cf-steps { grid-template-columns: repeat(4, auto); justify-content: space-between; } .cf-steps li { white-space: nowrap; } }
@media (min-width: 900px) and (max-width: 1099px) { .cf-steps li:not(.is-on) span { display: none; } .cf-steps { justify-content: start; gap: 1.1rem; } }
/* Petit téléphone : le bouton passe en pleine largeur, « Retour » dessous */
@media (max-width: 400px) { .cf-nav { flex-wrap: wrap-reverse; row-gap: .25rem; } .cf-nav .cf-next { flex: 1 0 auto; justify-content: space-between; white-space: nowrap; } }
@media (max-width: 599px) {
  .cf-steps span { display: none; }
  .cf-steps { grid-template-columns: repeat(4, auto); justify-content: start; gap: 1rem; }
}
@media (max-width: 520px) {
  .cf-grid { grid-template-columns: 1fr; }
  /* téléphone : l'étape occupe sa propre hauteur, sans réserver celle de la plus longue */
  .cf-stage { position: relative; min-height: 11rem; }
  .cf-panel:not(.is-on) { position: absolute; inset: 0 0 auto; }
}
/* Écran tactile : cibles d'au moins 44px */
@media (pointer: coarse) {
  .cf-chips span { min-height: 2.75rem; }
  .cf-back:not([hidden]), .contact-copy, .cf-again { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .contact-copy { display: flex; justify-content: center; margin-inline: auto; }
}

/* 404 : l'IA analyse le « 404 » comme une image, cadre chaque caractère, puis décide */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--hdr-h) + 2rem) 0 4rem; overflow: hidden; }
.nf-in { display: grid; justify-items: center; gap: clamp(1.2rem, 3vh, 2rem); }
.nf-status { display: inline-flex; align-items: center; gap: .6rem; font: 500 .72rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.nf-status i { width: .45rem; height: .45rem; background: currentColor; animation: blink 1s steps(2) infinite; }
.nf.is-done .nf-status { color: var(--fg); }
.nf.is-done .nf-status i { animation: none; background: rgb(74,222,128); }
.nf-stage { position: relative; display: flex; gap: .16em; margin: clamp(2rem, 6vh, 3.5rem) 0; font: 600 clamp(7rem, 26vw, 20rem)/.78 var(--f-display); letter-spacing: -.04em; color: var(--fg); }
.nf-g { position: relative; display: block; padding: 0 .04em; opacity: .9; }
.nf-box { position: absolute; inset: -.07em -.03em -.05em; --c: 1.5px; --l: clamp(10px, 1.6vw, 20px);
  background: linear-gradient(#fff 0 0) 0 0 / var(--l) var(--c), linear-gradient(#fff 0 0) 0 0 / var(--c) var(--l),
    linear-gradient(#fff 0 0) 100% 0 / var(--l) var(--c), linear-gradient(#fff 0 0) 100% 0 / var(--c) var(--l),
    linear-gradient(#fff 0 0) 0 100% / var(--l) var(--c), linear-gradient(#fff 0 0) 0 100% / var(--c) var(--l),
    linear-gradient(#fff 0 0) 100% 100% / var(--l) var(--c), linear-gradient(#fff 0 0) 100% 100% / var(--c) var(--l);
  background-repeat: no-repeat; opacity: 0; transform: scale(1.35); transition: opacity .5s var(--ease), transform .8s var(--ease); transition-delay: calc(1s + var(--i) * .7s); }
.nf-box em { position: absolute; left: 0; bottom: calc(100% + .5rem); font: 500 clamp(.56rem, 1.1vw, .72rem)/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; white-space: nowrap; padding: .35rem .5rem; background: #fff; color: var(--ink-0); clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease); transition-delay: calc(1.45s + var(--i) * .7s); }
.nf-g--down .nf-box em { bottom: auto; top: calc(100% + .5rem); left: 50%; translate: -50% 0; }
.nf-g:last-child .nf-box em { left: auto; right: 0; }
.nf-scan { position: absolute; left: -4%; right: -4%; top: 0; height: 1px; background: #fff; box-shadow: 0 0 0 .5px rgba(255,255,255,.3); opacity: 0; }
.nf.is-run .nf-scan { animation: nf-scan 1.3s var(--ease-io) .2s both; }
@keyframes nf-scan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.nf.is-run .nf-box { opacity: 1; transform: none; }
.nf.is-run .nf-box em { clip-path: inset(0 0 0 0); }
.nf-title { font: 600 clamp(1.8rem, 4vw, 3.4rem)/1.05 var(--f-display); letter-spacing: -.035em; opacity: 0; transform: translateY(1rem); transition: opacity .7s var(--ease) 3.2s, transform .9s var(--ease) 3.2s; }
.nf-card { display: grid; justify-items: center; gap: .6rem; padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 4vw, 2.6rem); border: 1px solid var(--line-2); background: rgba(255,255,255,.04); opacity: 0; transform: translateY(1.2rem); transition: opacity .7s var(--ease) 3.6s, transform .9s var(--ease) 3.6s; }
.nf-card-k { font: 500 .66rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.nf-card-t { font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--f-display); letter-spacing: -.02em; }
.nf-card-s { color: var(--fg-2); font-size: .95rem; margin-bottom: .6rem; }
.nf.is-run .nf-title, .nf.is-run .nf-card { opacity: 1; transform: none; }
html.static .nf *, .nf.is-instant * { transition-delay: 0s !important; transition-duration: 0s !important; }
@media (max-width: 599px) { .nf-box em { letter-spacing: .06em; padding: .28rem .35rem; white-space: normal; width: max-content; max-width: 27vw; line-height: 1.25; text-align: left; } .nf-g--down .nf-box em { max-width: 44vw; text-align: center; } .nf-g--down .nf-box em { top: calc(100% + .35rem); } }

.legal-in { display: grid; gap: 3rem; max-width: 48rem; }
.legal-body { display: grid; gap: .9rem; color: var(--fg-2); }
.legal-body h2 { font: 600 1.15rem/1.2 var(--f-display); color: var(--fg); margin-top: 1.6rem; }
.legal-body a { border-bottom: 1px solid currentColor; display: inline-block; padding-top: .3rem; }

/* ── 12 PIED DE PAGE ───────────────────────────────────────────────────── */
.outro { position: relative; padding: clamp(7rem, 16vw, 13rem) 0; overflow: hidden; isolation: isolate; text-align: center; }
.outro-bg { position: absolute !important; inset: 0; z-index: -2; }
.outro-bg img { filter: brightness(.7); transform: scale(1.1); }
.outro::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(12,13,14,.35), rgba(12,13,14,.85)); }
.outro-in { display: grid; justify-items: center; gap: 2rem; }
.outro-kicker { font: 500 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.outro-title { font: 600 clamp(2.8rem, 7.5vw, 7.5rem)/.93 var(--f-display); letter-spacing: -.045em; }

.ftr { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4rem, 8vw, 6.5rem) 0 0; border-top: 1px solid var(--line); }
.ftr-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.ftr-id { display: grid; gap: 1.6rem; justify-items: start; align-content: start; max-width: 30rem; }
.ftr-pitch { font: 600 clamp(1.8rem, 3.2vw, 3rem)/1.02 var(--f-display); letter-spacing: -.04em; margin-top: -.16em; } /* haut des capitales aligné sur « Explorer » */
.ftr-h { font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1rem; }
.ftr-col ul { display: grid; }
.ftr-col a, .ftr-col span { display: inline-block; padding: .4rem 0; color: var(--fg-2); transition: color .3s; overflow-wrap: anywhere; }
.ftr-col a:hover { color: var(--fg); }
.ftr-base { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 1.2rem; font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.ftr-base::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.ftr-base a { padding: .4rem 0; transition: color .3s; }
.ftr-base > :nth-child(2) { justify-self: center; }
.ftr-base > :nth-child(3) { justify-self: end; }
@media (max-width: 560px) { .ftr-base { grid-template-columns: 1fr; justify-items: center; gap: .4rem; } .ftr-base > * { justify-self: center !important; } }
.ftr-base a:hover { color: var(--fg); }
.ftr-giant { position: absolute; z-index: -1; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-46%); line-height: 0; pointer-events: none; }
.ftr-giant .wordmark { width: 100%; background: linear-gradient(180deg, rgba(242,241,238,.075), rgba(242,241,238,.025)); }

/* ── 13 CURSEUR, TRANSITIONS, ANIMATIONS ───────────────────────────────── */

/* Transitions de page natives (navigation entre documents) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .4s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-io) both; }
::view-transition-group(hdr) { animation: none; }
html.js.vt-in [data-reveal], html.js.vt-in [data-rv], html.js.vt-in [data-rv] img, html.vt-in .split-line > span, html.vt-in .det, html.vt-in .det em { transition: none !important; }
html.js.vt-in [data-reveal] { opacity: 0 !important; transform: translateY(1.75rem) !important; }
html.vt-in .split-line > span { transform: translateY(calc(105% + .7em)) !important; }
html.js.vt-in [data-rv] { clip-path: inset(9% 9% 9% 9%) !important; }
html.js.vt-in [data-rv] img { transform: scale(1.18) !important; }
html.vt-in .det { opacity: 0 !important; transform: scale(1.35) !important; }
html.vt-in .det em { clip-path: inset(0 100% 0 0) !important; }
@keyframes vt-out { to { opacity: .2; transform: scale(.96); } }
@keyframes vt-in { from { clip-path: inset(22% 22% 22% 22%); } to { clip-path: inset(0 0 0 0); } }

/* Révélations (pilotées par JS ; sans JS tout est visible) */
html.js:not(.static) [data-reveal] { opacity: 0; transform: translateY(1.75rem); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
html.js:not(.static) [data-reveal].is-in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .32em; margin-bottom: -.32em; } /* place pour les jambages (g, ç, p) */
.split-line > span { display: block; transform: translateY(calc(105% + .7em)); transition: transform 1.1s var(--ease); transition-delay: calc(var(--l) * .09s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.w { opacity: .14; transition: opacity .4s; }
.w.on { opacity: 1; }
html.static .split-line > span { transform: none; }
html.static .w { opacity: 1; }
html.static .det { opacity: 1; transform: none; }
html.static .det em { clip-path: none; }

/* ── 14 RESPONSIVE ─────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .pcards { grid-template-columns: repeat(2, 1fr); }
}
/* Six entrées de navigation : on resserre l'en-tête avant de basculer sur le menu */
@media (max-width: 1320px) {
  .hdr { gap: 1.5rem; }
  .hdr-nav ul { gap: clamp(1.1rem, 1.9vw, 1.9rem); }
}
@media (max-width: 1200px) {
  .hdr-nav a, .hdr-cta { font-size: .86rem; }
  .hdr-cta { padding-inline: .9rem; }
  .lang-btn { padding: 0 .65rem; }
}
@media (max-width: 1079px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: block; }
}
@media (max-width: 899px) {
  :root { --hdr-h: 4.1rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tiles { flex-direction: column; height: auto; }
  .tile { flex: none; height: 13rem; }
  .tile-desc { opacity: 1; transform: none; }
  .quote { grid-template-columns: 1fr; }
  .quote-portrait { max-width: 20rem; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { width: auto; height: 2.5rem; }
  .flow-arrow i { width: 1px; height: 100%; }
  .flow-arrow i::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .sector, .sector:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .sector:nth-child(even) .sector-media { order: 0; }
  .sector-media { aspect-ratio: 4 / 3; }
  .sector-body { padding: 2.5rem var(--gutter) 3.5rem; }
  .pipe-steps { height: 20rem; width: 100%; }
  .pipe-decision { left: auto; right: var(--gutter); top: auto; bottom: 5.5rem; width: min(20rem, calc(100% - 2 * var(--gutter))); }
  .pipe-ui { justify-content: flex-start; padding-top: calc(var(--hdr-h) + 2rem); }
  .pipe-img::after { background: linear-gradient(180deg, rgba(12,13,14,.92) 0%, rgba(12,13,14,.55) 45%, rgba(12,13,14,.1) 80%); }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-id { grid-column: 1 / -1; }
  .sec--paper, .phero, .letter { background-attachment: scroll; }
}
@media (max-width: 560px) {
  .steps, .pcards, .timeline { grid-template-columns: 1fr; }
  .step-img { aspect-ratio: 16 / 10; }
  .btn { height: 2.9rem; }
}

/* Bandeau d'exemples de décisions */
.ticker { display: flex; align-items: stretch; border-block: 1px solid var(--line); overflow: hidden; }
.ticker-h { flex: none; display: flex; align-items: center; padding: 0 var(--gutter); font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); border-right: 1px solid var(--line); background: var(--bg); position: relative; z-index: 1; }
.ticker-track { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker ul { display: flex; flex: none; animation: ticker 90s linear infinite; }
.ticker-track:hover ul { animation-play-state: paused; }
.ticker li { display: flex; align-items: center; gap: .9rem; padding: 1.35rem 2.2rem; white-space: nowrap; font: 500 1rem/1 var(--f-display); letter-spacing: -.01em; border-right: 1px solid var(--line); }
.tick-k { font: 500 .62rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
@keyframes ticker { to { transform: translateX(-100%); } }
html.static .ticker ul { animation: none; }
@media (max-width: 899px) { .ticker-h { display: none; } .ticker li { padding: 1.1rem 1.5rem; font-size: .92rem; } }

/* Hero : secteur affiché */
.hero-now { position: absolute; right: var(--gutter); bottom: clamp(3rem, 7vh, 5.5rem); z-index: 1; display: grid; gap: .7rem; justify-items: end; }
.hero-now-name { font: 500 .68rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); transition: opacity .5s; }
.hero-now-name.is-out { opacity: 0; }
.hero-now-bars { display: flex; gap: .3rem; }
.hero-now-bars i { width: 1.6rem; height: 1px; background: rgba(255,255,255,.22); position: relative; overflow: hidden; }
.hero-now-bars i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-now-bars i.is-done::after { transform: scaleX(1); }
.hero-now-bars i.is-on::after { animation: bar var(--dur, 6s) linear both; }
@keyframes bar { to { transform: scaleX(1); } }
@media (max-width: 899px) { .hero-now { display: none; } }

/* Accueil : passage vers À propos, sur la Terre de nuit */
.globe { position: relative; min-height: clamp(34rem, 86vh, 60rem); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #070708; }
.globe-bg { position: absolute; inset: 0; z-index: -2; }
.globe-bg img { position: absolute; top: 50%; left: 50%; height: 130%; width: auto; max-width: none; transform: translate(-44.7%, -50%); filter: brightness(1); }
.globe::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,7,8,.92) 0%, rgba(7,7,8,.55) 40%, rgba(7,7,8,.15) 70%), linear-gradient(180deg, #070708 0%, rgba(7,7,8,0) 22%, rgba(7,7,8,0) 78%, #070708 100%); }
.globe-in { display: grid; gap: 1.6rem; justify-items: start; padding-block: clamp(5rem, 10vw, 8rem); }
.globe-in .label { margin-bottom: 0; }
@media (max-width: 899px) { .globe-bg img { height: 100%; transform: translate(-30%, -50%); } }

/* Accueil : À propos en deux moitiés (fondateur | carte) */
.hw { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(36rem, 92vh, 58rem); background: #070708; }
.hw-founder { position: relative; overflow: hidden; display: block; color: #fff; isolation: isolate; }
.hw-founder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.4s var(--ease); z-index: -2; }
.hw-founder:hover img { transform: scale(1.03); }
.hw-founder::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,7,8,.92) 0%, rgba(7,7,8,.55) 32%, rgba(7,7,8,0) 60%); }
.hw-founder-txt { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.75rem, 4vw, 3rem); display: grid; gap: .9rem; max-width: 30rem; }
.hw-k { font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hw-quote { font: 500 clamp(1.3rem, 2vw, 1.85rem)/1.18 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
.hw-by { font-size: .92rem; color: rgba(255,255,255,.75); }
.hw-by strong { color: #fff; font-weight: 600; }
.hw-more { display: inline-flex; align-items: center; gap: .6rem; font: 500 .9rem/1 var(--f-display); padding-top: .3rem; }
.hw-more { position: relative; justify-self: start; }
.hw-more::before { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.hw-more:hover::before, .hw-founder:focus-visible .hw-more::before { transform: scaleX(1); }
.hw-more .arr { width: .9rem; transition: transform .45s var(--ease); }
.hw-more:hover .arr { transform: translateX(.3rem); }
.hw .hw-world { position: relative; overflow: hidden; height: auto; min-height: 0; background: #070708; isolation: isolate; display: flex; flex-direction: column; }
.hw .hw-world .world-stage { position: relative; order: 2; flex: 1; inset: auto; height: auto; min-height: 20rem; z-index: -1; }
.hw .hw-world .world-canvas { top: -4%; height: 112%; left: 46%; }
.hw .hw-world::after { inset: 0; height: auto; background: linear-gradient(90deg, rgba(7,7,8,.6) 0%, rgba(7,7,8,0) 18%), linear-gradient(180deg, rgba(7,7,8,0) 70%, rgba(7,7,8,.6) 100%); }
.hw-head { position: relative; order: 1; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); display: grid; gap: 1.2rem; justify-items: start; max-width: 34rem; }
.hw-head .label { margin-bottom: 0; }
.hw-intro { color: var(--fg-2); max-width: 26rem; }
@media (max-width: 899px) {
  .hw { grid-template-columns: 1fr; }
  .hw-founder { aspect-ratio: 4 / 5; max-height: 80svh; width: 100%; }
  .hw .hw-world { min-height: 38rem; }
  .hw .hw-world .world-canvas { left: 50%; }
  .hw .hw-world .world-stage { min-height: 22rem; }
}

/* ── À PROPOS ───────────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.pillars li { display: grid; gap: 1rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.pillars-n { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; color: var(--fg-3); }
.pillars h2 { font: 600 clamp(1.5rem, 2.4vw, 2.2rem)/1.05 var(--f-display); letter-spacing: -.03em; }
.pillars p { color: var(--fg-2); line-height: 1.6; }
.timeline--3 { grid-template-columns: repeat(3, 1fr); }

.world { position: relative; min-height: max(100svh, 44rem); overflow: hidden; background: #070708; isolation: isolate; }
.world-stage { position: absolute; inset: 0; z-index: -1; }
.world-canvas {
  position: absolute; top: 9%; height: 82%; aspect-ratio: 3200 / 1549; left: 65%; transform: translateX(-44.68%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.world-canvas picture, .world-canvas img, .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-canvas img { filter: brightness(1) contrast(1.04); }
.world::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,7,8,.9) 0%, rgba(7,7,8,.55) 22%, rgba(7,7,8,0) 38%),
    linear-gradient(180deg, rgba(7,7,8,.7) 0%, rgba(7,7,8,0) 18%, rgba(7,7,8,0) 80%, rgba(7,7,8,.85) 100%);
}
.world-ui { position: relative; max-width: none; padding-top: calc(var(--hdr-h) + clamp(3rem, 8vh, 6rem)); padding-bottom: clamp(3rem, 8vh, 5rem); }
@media (min-width: 900px) and (max-width: 1320px) {
  .world-canvas { top: 16%; height: 64%; left: 70%; }
  .world-col { max-width: 22rem; }
}
.world-col { max-width: 24rem; display: grid; gap: 1.6rem; align-content: start; }
.world-col .label { margin-bottom: 0; }
.h-light { font: 400 clamp(2.3rem, 3.6vw, 4rem)/1.06 var(--f-display); letter-spacing: -.035em; width: max-content; max-width: 90vw; }
.world-intro { color: var(--fg-2); font-size: 1.02rem; line-height: 1.6; max-width: 25rem; }
.world-list { position: relative; margin-top: clamp(1rem, 4vh, 2.5rem); display: grid; }
.world-list::before { content: ''; position: absolute; left: .39rem; top: 1.1rem; bottom: 1.1rem; width: 1px; background: rgba(255,255,255,.18); }
.world-list li { position: relative; display: flex; align-items: center; gap: 1.1rem; padding: .42rem 0; font: 500 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); cursor: default; transition: color .3s; }
.world-list li i { position: relative; flex: none; width: .8rem; height: .8rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: #0a0a0b; transition: border-color .3s; }
.world-list li i::after { content: ''; position: absolute; inset: .2rem; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .3s; }
.world-list li.is-fr { color: #fff; }
.world-list li.is-fr i { border-color: #fff; }
.world-list li.is-fr i::after { background: #fff; }
.world-list li.is-fr::after { content: ''; width: 3.5rem; height: 1px; background: rgba(255,255,255,.35); }
.world-list li:hover, .world-list li.is-hl { color: #fff; }
.world-list li:hover i, .world-list li.is-hl i { border-color: #fff; }
.world-card {
  position: absolute; right: var(--gutter); bottom: 2.5rem; width: min(27rem, 40vw);
  display: flex; align-items: center; gap: 1.2rem; padding: .9rem 1.2rem .9rem .9rem;
  border: 1px solid rgba(255,255,255,.12); background: rgba(12,13,14,.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .4s;
}
.world-card:hover { border-color: rgba(255,255,255,.4); }
.world-card-body { display: grid; gap: .6rem; }
.world-card-k { font: 500 .62rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.world-card-t { font-size: .92rem; line-height: 1.45; }
.world-card .arr { flex: none; width: 1.1rem; margin-left: auto; transition: transform .45s var(--ease); }
.world-card:hover .arr { transform: translateX(.3rem); }

.map-arc { fill: none; stroke: rgba(242,241,238,.5); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .4s, stroke-width .4s; }
.map-arc.is-hl { stroke: #fff; stroke-width: 1.8; }
.map-runner { fill: #f2f1ee; opacity: 0; }
.map-pt text { fill: rgba(242,241,238,.86); font: 500 21px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; paint-order: stroke; stroke: rgba(7,7,8,.6); stroke-width: 4px; transition: fill .3s; }
.map-pt--fr text { fill: #fff; font-weight: 600; }
/* Balise : carré noir à pointe, symbole Horama blanc ; la pointe est posée sur le pays */
.map-pin-b { fill: #0c0d0e; stroke: rgba(242,241,238,.7); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.map-pin-s { fill: #f2f1ee; }
.map-pt--fr .map-pin-b { stroke: #fff; }
.map-pt.is-hl text { fill: #fff; }
.map-pt.is-hl .map-pin-b { stroke: #fff; }
@keyframes ring { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@media (max-width: 899px) {
  .pillars, .timeline--3 { grid-template-columns: 1fr; }
  .world { height: auto; display: flex; flex-direction: column; }
  /* le fondu suit la carte (et non le bas de section) : plus de cassure nette au milieu de l'Afrique */
  .world:not(.hw-world)::after { display: none; }
  .world:not(.hw-world) .world-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(12,13,14) 0%, rgba(12,13,14,0) 16%, rgba(12,13,14,0) 78%, rgb(12,13,14) 100%); }
  .world-ui { display: contents; }
  .world-col { order: 1; max-width: none; padding: calc(var(--hdr-h) + 3rem) var(--gutter) 1rem; }
  .world-stage { position: relative; order: 2; height: 70vh; min-height: 24rem; }
  .world-canvas { left: 50%; top: 0; height: 100%; }
  .world-list { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .world-list::before { display: none; }
  .world-list li.is-fr::after { display: none; }
  .world-card { position: relative; order: 3; right: auto; bottom: auto; width: auto; margin: 0 var(--gutter) 3rem; }
  .map-pt text { font-size: 40px; stroke-width: 6px; }
  .map-pin { transform: scale(1.25); }
}
@media (max-width: 560px) { .map-pt:not(.map-pt--fr) text { display: none; } }

/* Séquence Approche : mise en page empilée (mobile, tablette portrait, écrans bas) */
@media (max-width: 899px), (max-aspect-ratio: 1/1), (max-height: 560px) {
  .pipe-ui { justify-content: flex-start !important; padding-top: calc(var(--hdr-h) + 1.25rem) !important; }
  .pipe-steps { width: 100% !important; max-width: 40rem; flex: none; }
  .pipe-flow {
    display: block; flex: 1; width: 100%; max-width: 40rem; min-height: 4rem;
    margin: .75rem 0 10.5rem;
    background: rgba(7,7,8,.82); border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .pipe-flow canvas { inset: .4rem .6rem; width: calc(100% - 1.2rem); height: calc(100% - .8rem); }
  .pipe-decision { left: auto !important; top: auto !important; right: var(--gutter) !important; bottom: 3.6rem !important; width: min(24rem, calc(100% - 2 * var(--gutter))) !important; }
  .pipe-decision-s { display: none; }
  .pipe-decision { padding: .8rem 1rem .5rem !important; }
  .pipe-decision-t { font-size: 1.05rem; margin: .45rem 0 0; }
  .pipe-bar { bottom: 1.1rem; }
  .pipe-img::after { background: linear-gradient(180deg, rgba(12,13,14,.92) 0%, rgba(12,13,14,.7) 45%, rgba(12,13,14,.35) 85%) !important; }
  .pipe .dets, .pipe-grid, .pipe-sweep { display: none; }
}
/* Paysage bas (téléphone couché) : texte à gauche, flux à droite */
@media (max-height: 560px) and (orientation: landscape) {
  .pipe-ui { padding-top: calc(var(--hdr-h) + .6rem) !important; }
  .pipe-steps { max-width: 46% !important; }
  .pipe-flow { position: absolute; right: var(--gutter); top: calc(var(--hdr-h) + .6rem); width: 48%; max-width: none; height: calc(100% - var(--hdr-h) - 8rem); margin: 0; }
  .pipe-decision { width: 16rem !important; bottom: 1rem !important; }
  .pipe-bar { display: none; }
}

.ticker li { padding: 0; }
.ticker li a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 2.2rem; transition: background-color .3s; }
.ticker li a:hover { background: rgba(255,255,255,.04); }
.ticker li a:hover .press-t { text-decoration: underline; text-underline-offset: .2em; }
.press-logo { flex: none; display: flex; align-items: center; justify-content: center; height: 2.1rem; padding: 0 .6rem; background: #f4f3f1; border-radius: 3px; }
.press-logo img { display: block; height: 1.35rem; width: auto; max-width: 7rem; object-fit: contain; }
.press-k { font: 500 .62rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.press-t { font: 500 .98rem/1.2 var(--f-display); letter-spacing: -.01em; }

/* ── APPROCHE 02 : LE CÂBLAGE ANIMÉ ─────────────────────────────────────
   Accent unique : le blanc des particules de la séquence au-dessus. */
.wire { position: relative; height: 300vh; background: #0a0b0c; --acc: #f2f1ee; --acc-dim: rgba(242,241,238,.5); }
.wire-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: calc(var(--hdr-h) + clamp(1.5rem, 4vh, 3rem)) 0 clamp(1.5rem, 4vh, 3rem); overflow: hidden; }
.wire-sticky::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 50% 65%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 65%, #000 30%, transparent 75%); }
.wire-head { flex: none; display: grid; gap: 1rem; position: relative; }
.wire-head .label { margin-bottom: 0; }
.wire-head .h-section { font-size: clamp(2rem, 4.2vw, 4.2rem); }
.wire-stage { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .85fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2.5rem, 8vw, 8rem); margin-top: clamp(1rem, 3vh, 2.5rem); }
.wire-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire-path { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; transition: stroke .6s var(--ease); }
.wire-path.is-on { stroke: rgba(242,241,238,.28); }
.wire-run { fill: var(--acc); }
.wire-col { position: relative; z-index: 1; display: grid; gap: .9rem; align-content: center; }
.wire-col ul { display: grid; gap: clamp(.45rem, 1.2vh, .75rem); }
.wire-cap { display: flex; align-items: center; gap: .8rem; font: 500 .64rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.wire-cap::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.wire-out .wire-cap { flex-direction: row; }
.wi { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.09); background: rgba(14,15,16,.92); opacity: .28; transform: translateX(-.8rem); transition: opacity .6s var(--ease), transform .7s var(--ease), border-color .6s; transition-delay: calc(var(--k, 0) * .08s); }
.wi-txt { display: grid; gap: .3rem; }
.wi-txt strong { font: 500 .98rem/1.1 var(--f-display); letter-spacing: -.01em; }
.wi-txt span { font: 500 .6rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.wi-sig { display: flex; align-items: center; gap: 2px; height: 1.1rem; flex: none; }
.wi-sig i { width: 2px; height: 30%; background: var(--acc-dim); }
.wire-stage:not([data-phase='0']) .wi-sig i { animation: sig 1.1s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes sig { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.wire-core { position: relative; z-index: 1; justify-self: center; display: grid; justify-items: center; gap: .6rem; padding: clamp(1.6rem, 3.4vh, 2.4rem) 1.8rem; min-width: 13rem; text-align: center; background: #0e0f10; border: 1px solid rgba(255,255,255,.1); color: #f2f1ee; --vf-c: 1rem; --vf-w: 1.5px; opacity: .45; overflow: hidden; transition: opacity .8s var(--ease), border-color .8s, box-shadow .8s var(--ease); }
.wire-core-scan { position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.07) 85%, rgba(255,255,255,.35) 100%); opacity: 0; pointer-events: none; }
.wire-core-sym { width: 2.5rem; height: 2.3rem; }
.wire-core-sym svg { width: 100%; height: 100%; fill: currentColor; }
.wire-core strong { font: 600 1.3rem/1 var(--f-display); letter-spacing: -.02em; }
.wire-core-sub { font: 500 .6rem/1.75 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.wo { display: grid; gap: .55rem; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.09); background: rgba(14,15,16,.92); opacity: .22; transform: translateX(.8rem); transition: opacity .6s var(--ease), transform .7s var(--ease), border-color .6s; transition-delay: calc(var(--k, 0) * .1s); }
.wo-t { font: 500 .6rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.wo-alert { display: flex; align-items: center; gap: .6rem; font: 500 .92rem/1.2 var(--f-display); }
.wo-alert i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--acc); flex: none; box-shadow: 0 0 0 0 rgba(242,241,238,.5); }
.wo-alert em { margin-left: auto; font: 500 .58rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--fg-3); }
.wo-lines { display: grid; gap: .35rem; }
.wo-lines i { height: .28rem; background: rgba(255,255,255,.18); border-radius: 2px; transform-origin: left; }
.wo-lines i:nth-child(2) { width: 82%; } .wo-lines i:nth-child(3) { width: 56%; }
.wo-bars { display: flex; align-items: flex-end; gap: .28rem; height: 1.5rem; }
.wo-bars i { flex: 1; height: 100%; background: rgba(242,241,238,.6); transform-origin: bottom; transform: scaleY(.15); transition: transform .8s var(--ease); }
.wo-bars i:nth-child(1) { --h: .4; } .wo-bars i:nth-child(2) { --h: .65; } .wo-bars i:nth-child(3) { --h: .5; } .wo-bars i:nth-child(4) { --h: .85; } .wo-bars i:nth-child(5) { --h: .7; } .wo-bars i:nth-child(6) { --h: 1; } .wo-bars i:nth-child(7) { --h: .78; }
.wo-code { font: 500 .78rem/1.3 var(--f-mono); color: var(--acc); }
/* phases pilotées au scroll */
.wire-stage .wi:nth-child(2) { --k: 1; } .wire-stage .wi:nth-child(3) { --k: 2; } .wire-stage .wi:nth-child(4) { --k: 3; }
.wire-stage .wo:nth-child(2), .wire-stage .wo:nth-child(4) { --k: 1; }
.wire-stage:not([data-phase='0']) .wi { opacity: 1; transform: none; border-color: rgba(255,255,255,.18); }
.wire-stage[data-phase='2'] .wire-core, .wire-stage[data-phase='3'] .wire-core, .wire-stage[data-phase='4'] .wire-core { opacity: 1; border-color: rgba(255,255,255,.22); box-shadow: 0 0 80px rgba(255,255,255,.06); }
.wire-stage[data-phase='2'] .wire-core-scan, .wire-stage[data-phase='3'] .wire-core-scan, .wire-stage[data-phase='4'] .wire-core-scan { opacity: 1; animation: core-scan 2.6s linear infinite; }
@keyframes core-scan { to { top: 100%; } }
.wire-stage[data-phase='3'] .wo:nth-child(-n+2), .wire-stage[data-phase='4'] .wo { opacity: 1; transform: none; border-color: rgba(255,255,255,.18); }
.wire-stage[data-phase='3'] .wo:nth-child(-n+2) .wo-bars i, .wire-stage[data-phase='4'] .wo-bars i { transform: scaleY(var(--h)); }
.wire-stage[data-phase='3'] .wo-alert i, .wire-stage[data-phase='4'] .wo-alert i { animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242,241,238,.55); } 100% { box-shadow: 0 0 0 .6rem rgba(242,241,238,0); } }

/* ── APPROCHE 03 : CARTES QUI S'EMPILENT ───────────────────────────────── */
.stack { position: relative; padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem); background-image: var(--fabric); background-size: cover; background-attachment: fixed; }
.stack-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.stack-head .label { margin-bottom: 0; }
.stack-list { display: grid; gap: clamp(1.5rem, 4vh, 3rem); }
.stack-card { position: sticky; top: calc(var(--hdr-h) + 1.25rem + var(--i) * 1.1rem); min-height: min(68vh, 34rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 -24px 60px rgba(0,0,0,.14); transform-origin: 50% 0; will-change: transform; }
.stack-card[data-theme='light'] { background: #fbfaf8; }
.stack-txt { display: grid; gap: 1.1rem; align-content: start; }
.stack-n { font: 500 .72rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.stack-n span { color: var(--fg-3); }
.stack-txt h3 { font: 600 clamp(2rem, 3.6vw, 3.4rem)/1 var(--f-display); letter-spacing: -.04em; }
.stack-d { color: var(--fg-2); max-width: 26rem; font-size: 1.05rem; line-height: 1.6; }
.stack-prog { display: block; height: 2px; width: min(12rem, 60%); background: var(--line); margin-top: .6rem; }
.stack-prog i { display: block; height: 100%; background: var(--fg); }
.stack-vis { min-width: 0; }
/* aperçus d'interface */
.mk { border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, var(--fg)); border-radius: 4px; overflow: hidden; }
.mk-bar { display: flex; justify-content: space-between; padding: .7rem .9rem; border-bottom: 1px solid var(--line); font: 500 .6rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.mk-bar span:first-child { color: var(--fg); }
.mk-anim canvas, .anim-bare { display: block; width: 100%; aspect-ratio: 16 / 10; color: var(--fg); }
.stack-foot { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Empilé : mobile, tablette portrait, téléphone couché (trop bas pour épingler) */
@media (max-width: 899px), (max-aspect-ratio: 1/1), (max-height: 560px) {
  .wire { height: auto; }
  .wire-sticky { position: relative; height: auto; padding-top: clamp(4rem, 10vw, 6rem); }
  .wire-stage { grid-template-columns: 1fr; gap: 2.8rem; margin-top: 2.5rem; }
  .wire-col ul { grid-template-columns: 1fr 1fr; }
  .wire-core { min-width: 0; width: min(100%, 18rem); }
}
@media (max-width: 899px) {
  .stack-card { grid-template-columns: 1fr; min-height: 0; top: calc(var(--hdr-h) + .75rem + var(--i) * .7rem); gap: 1.5rem; padding: 1.5rem 1.25rem; }
  .stack { background-attachment: scroll; }
}
/* Téléphone couché : cartes côte à côte et non épinglées (une carte ne tiendrait pas dans la hauteur) */
@media (max-height: 560px) and (orientation: landscape) {
  .stack-card { position: relative; top: auto; min-height: 0; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; padding: 1.5rem; }
  .stack-txt h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .stack-d { font-size: .95rem; }
}
/* Petits téléphones : la carte doit tenir sous l'en-tête */
@media (max-width: 899px) and (max-height: 600px) and (orientation: portrait) {
  .stack-card { gap: 1rem; padding: 1.1rem 1rem; }
  .stack-txt { gap: .8rem; }
  .stack-prog { display: none; }
}
@media (max-width: 480px) { .wire-col ul { grid-template-columns: 1fr; } .wi-sig { display: none; } }
/* Portables étroits : on resserre les gouttières pour que les cartes respirent */
@media (min-width: 900px) and (max-width: 1180px) and (min-aspect-ratio: 1/1) and (min-height: 561px) {
  .wire-stage { gap: clamp(1.5rem, 3.5vw, 3rem); }
  .wo-alert em { display: none; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 561px) and (max-height: 780px) {
  .wire-head { gap: .6rem; }
  .wire-head .h-section { font-size: clamp(1.8rem, 3.4vw, 3rem); }
  .wire-head .sec-intro { font-size: .95rem; }
  .wire-stage { margin-top: .8rem; }
  .wire-col ul { gap: .4rem; }
  .wi, .wo { padding: .55rem .9rem; }
  .wi-txt { gap: .2rem; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 561px) and (max-height: 640px) {
  .wi-txt span { display: none; }
  .wire-head .h-section { font-size: 1.8rem; }
  .wire-core-sub { display: none; }
}

/* ── 15 SIGNATURE : INTRO, GRAIN, HUD, RÉVÉLATIONS, INDEX ──────────────── */
/* Intro (première visite de la session) : l'icône et le logo Horama, en grand, 2 secondes */
.loader { display: none; }
html.intro .loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ink-0) url('../img/site/fabric-dark.webp?v=2') center / cover; color: #f2f1ee;
  animation: loader-out .5s var(--ease-io) 1.55s both;
  pointer-events: none;
}
.loader-brand { --w: min(62vw, 40rem); display: flex; align-items: center; gap: calc(var(--w) * .097); }
.loader-sym { width: calc(var(--w) * .236); animation: loader-in .7s var(--ease) .1s both; }
.loader-wm { width: var(--w); animation: wipe .8s var(--ease-io) .3s both; }
@media (orientation: portrait) and (max-width: 899px) { .loader-brand { --w: 64vw; } }
@keyframes loader-in { from { opacity: 0; transform: scale(.9); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html.intro .hero .split-line > span { transition-delay: calc(1.8s + var(--l) * .1s); }
html.intro .hero [data-reveal] { transition-delay: 2.1s; }


/* Grain film sur tout le site */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  background: url('../img/site/grain.png'); opacity: .055; mix-blend-mode: overlay;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
html.static body::after { animation: none; }

/* HUD du cadre du hero */

/* Révélation d'image : le cadre s'ouvre depuis le viseur */
html.js:not(.static) [data-rv] { clip-path: inset(9% 9% 9% 9%); transition: clip-path 1.5s var(--ease); }
html.js:not(.static) [data-rv].is-in { clip-path: inset(0 0 0 0); }
html.js:not(.static) [data-rv] img { transform: scale(1.18); transition: transform 1.8s var(--ease), filter 1s var(--ease); }
html.js:not(.static) [data-rv].is-in img { transform: scale(1.02); }

/* Index flottant des secteurs */
.sx {
  position: fixed; left: var(--gutter); bottom: 1.5rem; z-index: 40;
  display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem;
  background: rgba(12,13,14,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #f2f1ee;
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(1rem); transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.sx.is-on { opacity: 1; transform: none; }
.sx-n { color: rgba(242,241,238,.55); }
.sx-bar { width: 4.5rem; height: 1px; background: rgba(255,255,255,.2); position: relative; }
.sx-bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }


/* ── 16 RESPONSIVE ÉTENDU ──────────────────────────────────────────────── */
/* Très grands écrans : l'échelle suit la largeur */
@media (min-width: 1800px) { html { font-size: calc(16px + (100vw - 1800px) * .0045); } }
@media (min-width: 3200px) { html { font-size: 22px; } }

/* Tablettes tactiles en paysage : les tuiles deviennent un carrousel */
@media (hover: none) and (min-width: 900px) {
  .tiles { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 clamp(16rem, 34vw, 24rem); scroll-snap-align: start; }
  .tile-desc { opacity: 1; transform: none; }
}
/* Mobile : carrousel horizontal plutôt qu'une pile */
@media (max-width: 899px) {
  .tiles { flex-direction: row; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 78vw; max-width: 22rem; height: 28rem; scroll-snap-align: center; }
  .pipe-steps h2 { font-size: clamp(2.4rem, 11vw, 3.4rem); margin: .7rem 0 .8rem; }
  .pipe-d { font-size: .95rem; }
  .pipe-decision { padding: 1rem 1.1rem; }
  .pipe-decision-s { display: none; }
  .pipe-decision-t { font-size: 1.1rem; margin: .5rem 0 .2rem; }
  .pipe-bar { bottom: 1.25rem; }
  .pipe-bar span { font-size: .62rem; letter-spacing: .05em; }
  .sx { display: none; }
  .contact-mail { font-size: clamp(1.3rem, 7.2vw, 2.4rem); gap: .7rem; }
  .outro-title { font-size: clamp(2.4rem, 11vw, 4rem); }
}
/* Écrans bas (téléphones en paysage, petits portables) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--hdr-h) + 1.5rem); padding-bottom: 1.5rem; }
  .hero .h-display { font-size: clamp(2.2rem, 7vh + 2vw, 4rem); }
  .hero-foot { margin-top: 1rem; }
  .pipe-ui { justify-content: center; padding-top: var(--hdr-h); }
  .pipe-steps { height: 11rem; max-width: 48%; }
  .pipe-steps h2 { font-size: 2.2rem; margin: .4rem 0 .5rem; }
  .pipe-d { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; } /* la colonne de gauche a la place pour cinq lignes */
  .pipe-decision { left: auto; right: var(--gutter); top: auto; bottom: 1.25rem; width: 16rem; }
  .pipe-bar { display: none; }
  .sector { min-height: 0; }
  .sector-body { padding-top: 2.5rem; }
  /* Téléphone couché : image et texte côte à côte, sinon l'image fait près de deux écrans */
  .sector, .sector:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sector:nth-child(even) .sector-media { order: 2; }
  .sector-media { aspect-ratio: auto; min-height: 100%; }
  .sector-body { padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 2.25rem; gap: 1.1rem; }
  .sector-text { font-size: .95rem; }
  .contact, .nf { min-height: 0; }
  /* Accueil : la chaîne en une rangée, cadres paysage ; le fondateur à côté de la carte */
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-img { aspect-ratio: 4 / 3; }
  .hw { grid-template-columns: 1fr 1fr; }
  .hw-founder { aspect-ratio: auto; max-height: none; }
  .hw .hw-world { min-height: 0; }
  .hw .hw-world .world-stage { min-height: 13rem; }
  .hw .h-light { width: auto; max-width: 100%; font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
}
@media (max-height: 560px) and (orientation: landscape) and (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) and (max-height: 720px) and (orientation: portrait) {
  .pipe-d { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .pipe-stage[data-step='3'] .pipe-d { display: none; }
}
@media (max-width: 899px) and (max-height: 600px) and (orientation: portrait) { .pipe-d { -webkit-line-clamp: 3; } } /* petits téléphones : plus de place pour le flux */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .btn { padding: 0 1rem; font-size: .9rem; }
  .btns .btn { width: 100%; justify-content: space-between; }
  .wordmark { width: 6rem; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  @view-transition { navigation: none; }
  body::after { animation: none; }
  html.intro .loader { display: none; }
}

/* Bouton « haut de page » */
.totop { position: fixed; right: var(--gutter); bottom: clamp(1rem, 3vh, 1.75rem); z-index: 40; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1px solid rgba(242,241,238,.35); background: rgba(12,13,14,.55); color: #f2f1ee; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transform: translateY(.8rem); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s, background-color .3s, border-color .3s; }
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.totop svg { width: 1rem; transition: transform .45s var(--ease); }
.totop:hover { background: #f2f1ee; color: #0c0d0e; border-color: #f2f1ee; }
.totop:hover svg { transform: translateY(-2px); }
.totop:focus-visible { outline: 1px solid #f2f1ee; outline-offset: 3px; }
@media (max-width: 899px) { .totop { right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); width: 2.6rem; height: 2.6rem; } }

/* Sélecteur de langue : bouton à la hauteur du « Nous contacter », liste translucide, drapeaux ronds */
.flag-o { flex: none; display: block; width: 1.2rem; height: .8rem; overflow: hidden; box-shadow: 0 0 0 .5px rgba(127,127,127,.4); }
.flag { display: block; width: 100%; height: 100%; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .55rem; height: 2.65rem; padding: 0 .8rem; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; transition: border-color .35s, background-color .35s; }
.lang-btn:hover, .lang-btn[aria-expanded='true'] { border-color: currentColor; }
.lang-chev { width: .5rem; opacity: .7; transition: transform .45s var(--ease); }
.lang-btn[aria-expanded='true'] .lang-chev { transform: rotate(180deg); }
.lang-list { position: absolute; top: calc(100% + .5rem); right: 0; width: 12.5rem; padding: .3rem; color: var(--fg); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.lang-list:not([hidden]) { animation: lang-in .45s var(--ease); }
@keyframes lang-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.lang-list li + li { border-top: 1px solid var(--line); }
.lang-list a { display: flex; align-items: center; gap: .75rem; padding: .85rem .7rem; font: 500 .92rem/1 var(--f-display); letter-spacing: -.01em; color: var(--fg-2); transition: color .3s, background-color .3s; }
.lang-list a:hover, .lang-list a:focus-visible { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.lang-list a[aria-current] { color: var(--fg); }
.lang-code { margin-left: auto; font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; color: var(--fg-3); }
.lang-list a[aria-current] .lang-code { color: var(--fg); }
.menu a.menu-lang { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1rem; font: 500 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); padding: .8rem 0; }
@media (max-width: 1079px) { .lang { margin-left: auto; } }

/* Page salon (QR code du stand) : formulaire minimal, pensé pour le téléphone */
.sl { min-height: 100svh; padding: calc(var(--hdr-h) + clamp(2rem, 6vh, 4rem)) 0 clamp(3rem, 8vh, 5rem); }
.sl-in { display: grid; gap: 1.4rem; max-width: 40rem; }
.sl-lead { color: var(--fg-2); font-size: 1.05rem; }
.sl-form { display: grid; gap: 1.4rem; margin-top: .6rem; }
.sl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1.5rem; }
.sl-field--wide { grid-column: 1 / -1; }
.sl-field input, .sl-field textarea { font-size: 1.05rem; }
.sl-field b, .sl-note b { color: var(--fg); font-weight: 500; }
.sl-form[hidden], .sl-done[hidden] { display: none; }
.sl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sl-err { min-height: 1.2em; color: rgb(239,110,110); font-size: .9rem; }
.sl-submit { justify-self: start; min-height: 3.2rem; }
.sl-submit[disabled] { opacity: .6; pointer-events: none; }
.sl-note { color: var(--fg-3); font-size: .8rem; line-height: 1.5; }
.sl-done { display: grid; justify-items: start; gap: 1rem; padding-top: .6rem; }
.sl-done:not([hidden]) { animation: lang-in .6s var(--ease); }
.sl-done .cf-box { --ok: rgb(74,222,128); border-color: var(--ok); }
.sl-done .cf-box::after { --ok: rgb(74,222,128); transform: rotate(45deg) scale(1); }
.sl-done-t { font: 600 clamp(1.6rem, 4vw, 2.4rem)/1.1 var(--f-display); letter-spacing: -.03em; }
.sl-alt { color: var(--fg-3); font-size: .85rem; }
.sl-alt a { color: var(--fg-2); border-bottom: 1px solid var(--line-2); }
@media (max-width: 599px) {
  .sl-fields { grid-template-columns: 1fr; }
  .sl-submit { justify-self: stretch; justify-content: center; }
}
