/* H2A S.A — système de design.
   Signature : l'arche de tuiles du logo, lue comme une jauge. La page est faite de « tuiles »
   (grands blocs arrondis), dans les trois couleurs de la marque : bleu acier, bleu ciel, orange. */
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-600-n.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Wide"; src: url("assets/fonts/archivo-800-n.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Wide"; src: url("assets/fonts/archivo-800-n-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --steel: #4F7FB3;
  --steel-deep: #35618F;
  --sky: #44A6D8;
  --accent: #D4582E;
  --accent-hi: #E36A3E;
  --accent-btn: #BF4A20; /* orange assombri : contraste suffisant pour du texte blanc */
  --navy: #12263D;
  --navy-2: #1B3552;
  --ink: #14212F;
  --muted: #55657A;
  --sand: #F5F1EA;
  --sand-2: #ECE6DC;
  --line: #E2DBD0;
  --white: #FFFFFF;

  --font-display: "Archivo Wide", "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 28px;
  --r-sm: 16px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 120px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
::selection { background: var(--accent); color: var(--white); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-xl { width: 56px; height: 56px; stroke-width: 1.5; }

/* ---------- Typographie ---------- */
.h1, .h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.h1 { font-size: clamp(29px, 3.1vw, 47px); }
.h2 { font-size: clamp(27px, 3.5vw, 50px); }
.h2-big { font-size: clamp(29px, 4.2vw, 62px); }
.h1 em, .h2 em { font-style: italic; color: var(--accent); }
.h1 > span, .h1 > em, .h2 > span, .h2 > em { display: block; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-deep); }
/* trois petites tuiles : le logo en miniature */
.eyebrow::before { content: ""; width: 34px; height: 10px; flex: none; background:
  linear-gradient(var(--steel), var(--steel)) 0 0 / 9px 10px no-repeat,
  linear-gradient(var(--sky), var(--sky)) 12px 0 / 9px 10px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 24px 0 / 9px 10px no-repeat; border-radius: 3px; transform: skewX(-12deg); }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--muted); max-width: 58ch; }
.head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.head .lead { margin-top: 20px; }
.head-split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.head-split .lead { margin-top: 0; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 16px; border: 2px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 13px; box-shadow: none; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16px; border-radius: 18px; }
.btn .i { width: 18px; height: 18px; }
.btn-accent { background: var(--accent-btn); color: var(--white); box-shadow: 0 14px 28px -14px rgba(212, 88, 46, .9); }
.btn-accent:hover { background: var(--accent); }
.btn-line { border-color: color-mix(in srgb, currentColor 28%, transparent); background: transparent; }
.btn-line:hover { border-color: currentColor; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--steel-deep); text-decoration: none; background: none; border: 0; padding: 0 0 2px; border-bottom: 2px solid transparent; cursor: pointer; transition: gap .25s var(--ease), border-color .25s; }
.link::after { content: "→"; }
.link:hover { gap: 14px; border-color: currentColor; }

/* ---------- En-tête : une tuile flottante ---------- */
.header { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.header > * { pointer-events: auto; }
.header-bar { position: relative; max-width: var(--wrap); margin: 0 auto; height: 72px; display: flex; align-items: center; gap: 20px; padding: 0 12px 6px 20px; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(14px); border-radius: 22px; box-shadow: 0 1px 0 rgba(20, 33, 47, .06), 0 18px 40px -24px rgba(18, 38, 61, .45); }
.brand img { width: 84px; height: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color .2s, color .2s; }
.nav a:hover, .nav a.is-current { background: var(--sand); color: var(--steel-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.lang span { padding: 5px 9px; border-radius: 9px; color: var(--muted); }
.lang span.on { background: var(--navy); color: var(--white); }
.burger { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { max-width: var(--wrap); margin: 8px auto 0; background: var(--navy); color: var(--white); border-radius: 22px; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100svh - 110px); overflow-y: auto; }
.mobile-menu a:not(.btn) { text-decoration: none; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mobile-menu .btn { margin-top: 12px; }

/* La jauge de défilement : les tuiles du logo, déroulées */
.scroll-gauge { position: absolute; left: 116px; right: 22px; bottom: 7px; display: grid; grid-template-columns: repeat(18, 1fr); gap: 4px; height: 4px; }
.scroll-gauge i { border-radius: 2px; background: rgba(18, 38, 61, .09); transform: skewX(-14deg); transition: background-color .35s; }
.scroll-gauge i.on { background: var(--steel); }
.scroll-gauge i.on:nth-child(n+7) { background: var(--sky); }
.scroll-gauge i.on:nth-child(n+13) { background: var(--accent); }

/* ---------- L'arche de tuiles (SVG généré) ---------- */
.jauge { overflow: visible; pointer-events: none; }
.jauge path { stroke-width: 7; stroke-linejoin: round; }
.jauge .r0 { fill: var(--steel); stroke: var(--steel); }
.jauge .r1 { fill: var(--sky); stroke: var(--sky); }
.jauge .r2 { fill: var(--accent); stroke: var(--accent); }
.js .jauge path { opacity: 0; transform: scale(.82); transform-box: fill-box; transform-origin: center; animation: tile-in .7s var(--ease) forwards, tile-glow 5.6s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms + .25s), calc(var(--i) * 140ms + 2s); }
@keyframes tile-in { to { opacity: 1; transform: none; } }
@keyframes tile-glow { 0%, 12%, 100% { filter: none; } 6% { filter: brightness(1.1); } }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 90px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero .lead { margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { position: relative; padding-top: 30%; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--wrap)) / 2) * .6); }
.jauge-hero { position: absolute; left: 4%; top: 0; width: 84%; height: auto; }
/* la citerne détourée, posée devant l'arche, avec son ombre au sol */
.hero-truck { position: relative; z-index: 1; width: 112%; max-width: none; margin-left: -8%; filter: drop-shadow(0 26px 22px rgba(18, 38, 61, .22)); }
.hero-visual::after { content: ""; position: absolute; left: -4%; right: 2%; bottom: -3%; height: 12%; background: radial-gradient(50% 50% at 50% 50%, rgba(18, 38, 61, .28), transparent 70%); }
.hero-visual.rise { animation: truck-in 1.3s var(--ease) .1s both; }
@keyframes truck-in { from { transform: translateX(8vw); opacity: .001; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #17B26A; box-shadow: 0 0 0 4px rgba(23, 178, 106, .2); }
.rise { animation: rise .9s var(--ease) both; }
.h1.rise { animation-delay: .05s; }
.lead.rise { animation-delay: .1s; }
.hero-ctas.rise { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(22px); } }

/* ---------- En bref ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { padding: 24px; border-radius: var(--r); background: var(--white); display: flex; flex-direction: column; gap: 8px; }
.fact strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; color: var(--steel-deep); }
.fact:nth-child(2) strong { color: var(--sky); }
.fact:nth-child(3) strong { color: var(--accent); }
.fact:nth-child(4) strong { color: var(--navy); }
.fact span { font-size: 14px; color: var(--muted); }

/* ---------- Sections et panneaux ---------- */
.section { padding: var(--section) 0 0; }
.panel { border-radius: calc(var(--r) + 8px); padding: clamp(28px, 5vw, 72px); }
.panel-navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.panel-navy .lead { color: rgba(255, 255, 255, .78); }
.panel-navy .eyebrow { color: #A9CBE8; }
.panel-white { background: var(--white); }
.panel > *:not(.jauge-corner), .tile > *:not(.jauge-corner) { position: relative; }
/* L'arche d'angle : un éventail de tuiles dont le centre est le coin haut-droit de la carte */
.jauge-corner { position: absolute; right: 0; top: 0; width: clamp(180px, 30%, 340px); height: auto; opacity: .13; }
.tile .jauge-corner { width: 62%; opacity: .16; }
.jauge-corner path { fill: #fff !important; stroke: #fff !important; stroke-width: 5; }
.tile-sky .jauge-corner path { fill: var(--navy) !important; stroke: var(--navy) !important; }
.tile-sky .jauge-corner { opacity: .1; }
.js .jauge-corner path { animation: tile-in .7s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + .15s); }

/* ---------- Tuiles ---------- */
.tiles { display: grid; gap: 16px; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; padding: 28px; border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; min-height: 250px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(18, 38, 61, .55); }
.tile h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.1; margin-top: auto; }
.tile p { font-size: 15px; }
.tile-n { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .08em; opacity: .7; }
.tile-ico { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-steel { background: var(--steel-deep); color: var(--white); }
.tile-sky { background: var(--sky); color: var(--navy); }
.tile-accent { background: var(--accent); color: var(--white); }
.tile-steel p, .tile-accent p { color: rgba(255, 255, 255, .86); }
.tiles-3 .tile p { min-height: 3.2em; }
.tile-plain { background: var(--white); min-height: 250px; }
.tile-plain h3 { min-height: 2.2em; display: flex; align-items: flex-end; }
.tile-plain p { min-height: 3.1em; }
.tile-plain .tile-ico { color: var(--steel-deep); }
.tile-plain p { color: var(--muted); }
.tag { align-self: flex-start; padding: 5px 11px; border-radius: 9px; background: var(--sand); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--steel-deep); }


/* ---------- Métiers : scène à trois panneaux ---------- */
.trades { display: flex; gap: 10px; height: clamp(420px, 38vw, 520px); padding: 10px; border-radius: calc(var(--r) + 10px); background: var(--navy); }
.trade { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r); overflow: hidden; background: var(--navy-2); color: var(--white); transition: flex-grow .7s var(--ease), background-color .5s; --c: var(--steel-deep); --on: var(--white); }
.trade-sky { --c: var(--sky); --on: var(--navy); }
.trade-accent { --c: var(--accent); }
.trade.is-active { flex-grow: 4.2; background: var(--c); color: var(--on); }
.trade::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
/* panneau replié : numéro en haut, nom à la verticale */
.trade-head { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0; background: none; border: 0; color: inherit; cursor: pointer; transition: opacity .3s; }
.trade-n { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .08em; color: #A9CBE8; }
.trade-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 28px); letter-spacing: .02em; writing-mode: vertical-rl; transform: rotate(180deg); margin-top: auto; white-space: nowrap; }
.trade.is-active .trade-head { opacity: 0; pointer-events: none; }
/* panneau ouvert */
.trade-body { position: absolute; inset: 0; width: max(100%, 520px); padding: clamp(26px, 3.2vw, 46px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s, transform .5s var(--ease); }
.trade.is-active .trade-body { opacity: 1; transform: none; pointer-events: auto; transition-delay: .22s; }
.trade.is-active .trade-body { width: 100%; }
.trade-big { position: absolute; right: clamp(14px, 2.4vw, 36px); top: -.04em; font-family: var(--font-display); font-weight: 800; font-size: clamp(150px, 17vw, 260px); line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--on) 26%, transparent); pointer-events: none; }
.trade-ico { width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.trade-body h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 54px); line-height: 1; margin-top: auto; position: relative; }
.trade-body p { max-width: 40ch; font-size: clamp(15px, 1.25vw, 18px); position: relative; }
.trade-list { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.trade-list li { padding: 8px 14px; border-radius: 11px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--on) 14%, transparent); }
.trade-cta { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 13px 20px; border-radius: 14px; background: var(--on); color: var(--c); font-weight: 600; font-size: 15px; text-decoration: none; transition: gap .25s var(--ease); }
.trade-sky .trade-cta { color: var(--white); }
.trade-accent .trade-cta { color: #B8431C; }
.trade-cta::after { content: "→"; }
.trade-cta:hover { gap: 14px; }

/* ---------- Équipements : explorateur ---------- */
.gear { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.gear-list { display: flex; flex-direction: column; justify-content: center; }
.gear-tab { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; background: none; border: 0; border-top: 1.5px solid var(--line); text-align: left; cursor: pointer; color: var(--ink); }
.gear-tab:last-child { border-bottom: 1.5px solid var(--line); }
.gear-i { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--muted); transition: color .3s; }
.gear-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3.5vw, 54px); line-height: 1.05; color: transparent; -webkit-text-stroke: 1.5px rgba(20, 33, 47, .38); transition: color .35s, -webkit-text-stroke-color .35s, transform .5s var(--ease); }
.gear-tab.is-active .gear-name { color: var(--ink); -webkit-text-stroke-color: var(--ink); transform: translateX(10px); }
.gear-tab.is-active .gear-i { color: var(--accent); }
.gear-stage { position: relative; display: grid; min-height: clamp(380px, 34vw, 480px); border-radius: calc(var(--r) + 6px); overflow: hidden; background: var(--navy); }
.gear-panel { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: clamp(24px, 3vw, 44px); color: var(--white); background: var(--steel-deep); clip-path: inset(0 0 100% 0); transition: clip-path .75s var(--ease); z-index: 0; }
.gear-panel.is-active { clip-path: inset(0); z-index: 1; }
.gear-sky { background: var(--sky); color: var(--navy); }
.gear-accent { background: var(--accent); }
.gear-photo { background: var(--navy); }
.gear-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.gear-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 38, 61, 0) 30%, rgba(18, 38, 61, .92) 100%); }
.gear-photo > p, .gear-photo > .specs { z-index: 2; }
.gear-art { position: absolute; right: 6%; top: 8%; width: min(46%, 250px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.gear-art * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.gear-panel.is-active .gear-art * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease) .3s; }
.gear-panel p { position: relative; max-width: 30ch; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; line-height: 1.4; }
.specs { position: relative; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.specs div { padding: 10px 14px; border-radius: 13px; background: color-mix(in srgb, currentColor 13%, transparent); }
.specs dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.specs dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

/* ---------- Partenaires : liste index ---------- */
.plist { border-bottom: 1.5px solid var(--ink); }
.prow { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 24px; align-items: center; padding: clamp(18px, 2.2vw, 30px) clamp(8px, 1.6vw, 24px); border-top: 1.5px solid var(--ink); isolation: isolate; overflow: hidden; }
.prow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.prow:hover::before { transform: none; }
.prow > * { transition: color .35s, transform .5s var(--ease); }
.prow-n { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.prow strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.6vw, 56px); line-height: 1; }
.prow-d { color: var(--muted); font-size: 15px; }
.prow-tag { justify-self: end; padding: 8px 14px; border-radius: 11px; background: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--steel-deep); }
.prow:hover { color: var(--white); }
.prow:hover strong { transform: translateX(14px); }
.prow:hover .prow-n { color: var(--sky); }
.prow:hover .prow-d { color: rgba(255, 255, 255, .78); }
.prow:hover .prow-tag { background: var(--accent); color: var(--white); }

/* ---------- Notre chaîne ---------- */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.chain-step { display: flex; flex-direction: column; gap: 8px; }
.chain-tile { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .14); transform: skewX(-14deg); margin-bottom: 18px; position: relative; overflow: hidden; }
.chain-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + .2s); }
.chain-step:nth-child(2) .chain-tile::after { background: var(--sky); }
.chain-step:nth-child(3) .chain-tile::after { background: #7CC4E8; }
.chain-step:nth-child(4) .chain-tile::after { background: var(--accent); }
.chain-step.is-in .chain-tile::after, html:not(.js) .chain-tile::after { transform: none; }
.chain-n { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .1em; color: #A9CBE8; }
.chain-step h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(17px, 1.6vw, 22px); }
.chain-step p { font-size: 15px; color: rgba(255, 255, 255, .76); }

/* ---------- Station ---------- */
.split { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.photo { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 70px -40px rgba(18, 38, 61, .55); }
.photo img { width: 100%; aspect-ratio: 2 / 1.12; object-fit: cover; object-position: 0% 50%; }
.photo figcaption { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 13px; background: rgba(255, 255, 255, .94); font-size: 13px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stack .eyebrow { margin-bottom: 0; }
.checks { display: grid; gap: 10px; width: 100%; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--white); font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; transform: skewX(-8deg); }
.checks li:nth-child(2)::before { background-color: var(--sky); }
.checks li:nth-child(3)::before { background-color: #7CC4E8; }
.checks li:nth-child(4)::before { background-color: var(--accent); }

/* ---------- Entreprise ---------- */
.mission { max-width: 900px; }
.mission .lead { margin-top: 22px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
.value { padding: 26px; border-radius: var(--r); background: var(--sand); display: flex; flex-direction: column; gap: 10px; }
.value-tile { width: 44px; height: 30px; border-radius: 8px; background: var(--steel); transform: skewX(-12deg); margin-bottom: 8px; }
.value:nth-child(2) .value-tile { background: var(--sky); }
.value:nth-child(3) .value-tile { background: var(--accent); }
.value h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 19px; line-height: 1.2; min-height: 2.4em; }
.value p { color: var(--muted); font-size: 15px; }
.team { margin-top: 16px; padding: 26px; border-radius: var(--r); border: 1.5px solid var(--line); display: grid; grid-template-columns: .8fr 1.6fr; gap: 24px; align-items: start; }
.team h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 19px; }
.team p { color: var(--muted); }

/* ---------- Partenaires : un mur de tuiles ---------- */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.partner { padding: 22px; border-radius: var(--r); background: var(--white); display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: transform .3s var(--ease), background-color .3s, color .3s; }
.partner:hover { transform: translateY(-5px); background: var(--navy); color: var(--white); }
.partner strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.partner::before { content: ""; width: 30px; height: 20px; border-radius: 6px; transform: skewX(-12deg); background: var(--steel); margin-bottom: 6px; }
.partner:nth-child(3n+2)::before { background: var(--sky); }
.partner:nth-child(3n)::before { background: var(--accent); }
.partner span { font-size: 13px; color: var(--muted); transition: color .3s; }
.partner:hover span { color: rgba(255, 255, 255, .78); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact .lead { margin-top: 20px; }
.coords { display: grid; gap: 4px; margin-top: 32px; }
.coords li { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.coords-k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A9CBE8; padding-top: 3px; }
.coords a, .coords-v { text-decoration: none; font-weight: 500; }
.coords > li > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-light { color: #A9CBE8; margin-top: 8px; font-size: 14px; }
.form { background: var(--white); color: var(--ink); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); }
.needs { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.needs legend { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 18px; margin-bottom: 14px; padding: 0; }
.needs label { position: relative; cursor: pointer; }
.needs input { position: absolute; opacity: 0; inset: 0; }
.needs span { display: block; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.needs input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.needs input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sand); font-weight: 500; font-size: 16px; transition: border-color .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8B95A1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--steel); background: var(--white); }
.field .is-invalid { border-color: var(--accent); background: #FDF1EC; }
.form-error { margin: 0 0 14px; color: #B8431C; font-size: 14px; font-weight: 600; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.form-done { text-align: center; padding: 28px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.form-done .i-xl { color: #17B26A; }
.form-done h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 24px; }
.form-done p { color: var(--muted); max-width: 40ch; }
.form-send { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 8px; }

/* ---------- Pied de page ---------- */
.footer { margin-top: var(--section); padding: 56px 0 32px; background: var(--white); border-radius: calc(var(--r) + 8px) calc(var(--r) + 8px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: 14px; color: var(--muted); }
.footer h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; color: var(--steel-deep); }
.footer nav a, .footer-grid > div > a { display: block; text-decoration: none; padding: 5px 0; font-size: 14px; color: var(--ink); }
.footer a:hover { color: var(--accent); }
.footer-grid p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom .sep { margin: 0 8px; color: var(--line); }

.fab { display: none; }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .tiles-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .hero-visual { margin-right: 0; padding-top: 34%; }
  .hero-truck { width: 108%; margin-left: -4%; }
  .gear { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gear-list { flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .gear-list::-webkit-scrollbar { display: none; }
  .gear-tab, .gear-tab:last-child { flex: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; gap: 10px; background: var(--white); }
  .gear-name { font-size: 15px; color: var(--ink); -webkit-text-stroke: 0; white-space: nowrap; }
  .gear-tab.is-active { background: var(--navy); border-color: var(--navy); }
  .gear-tab.is-active .gear-name { color: var(--white); transform: none; }
  .gear-stage { min-height: 400px; }
  .prow { grid-template-columns: 34px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
  .prow strong { font-size: 28px; }
  .prow-d, .prow-tag { grid-column: 2; }
  .prow-tag { justify-self: start; margin-top: 6px; }
  .trades { flex-direction: column; height: auto; }
  .trade { flex: none; display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .6s var(--ease), background-color .5s; }
  .trade.is-active { grid-template-rows: auto 1fr; }
  .trade-head { position: relative; inset: auto; flex-direction: row; align-items: center; gap: 16px; padding: 22px 22px 20px; text-align: left; }
  .trade.is-active .trade-head { opacity: 1; pointer-events: auto; }
  .trade.is-active .trade-n { color: inherit; opacity: .75; }
  .trade-title { writing-mode: horizontal-tb; transform: none; margin: 0; font-size: 20px; }
  .trade-head::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 400; line-height: 1; transition: transform .4s var(--ease); }
  .trade.is-active .trade-head::after { transform: rotate(45deg); }
  .trade-body { position: relative; inset: auto; width: 100% !important; min-height: 0; overflow: hidden; padding: 0 22px; transform: none; }
  .trade.is-active .trade-body { padding-bottom: 26px; }
  .trade-body h3 { display: none; }
  .trade-ico { width: 48px; height: 48px; }
  .trade-big { font-size: 110px; right: 14px; top: -.1em; }
  .hero-grid, .split, .contact, .head-split, .team { grid-template-columns: minmax(0, 1fr); }
  .h1 { font-size: clamp(29px, 7.4vw, 52px); }
  .head-split { gap: 20px; }
  .hero-visual { margin-top: 12px; }
  .facts-grid, .chain, .values { grid-template-columns: 1fr 1fr; }
  .chain { row-gap: 36px; }
  .tiles-3 { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .tile-plain h3, .tile-plain p, .tiles-3 .tile p, .value h3 { min-height: 0; }
  .tile-plain { min-height: 0; }
  .tile h3 { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 76px; }
  .panel .jauge-corner { width: 150px; opacity: .08; }
  body { font-size: 15px; }
  .hide-sm { display: none; }
  .header { inset: 8px 0 auto; }
  .header-bar { height: 64px; }
  .brand img { width: 72px; }
  .scroll-gauge { left: 100px; right: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .tiles-4, .values, .partners, .fields, .chain { grid-template-columns: 1fr; }
  .facts-grid { gap: 10px; }
  .fact { padding: 18px; }
  .coords li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--white); box-shadow: 0 14px 30px -10px rgba(212, 88, 46, .9); opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .past-hero .fab { opacity: 1; transform: none; pointer-events: auto; }
  .fab .i { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .jauge path { opacity: 1; transform: none; }
  .trade-body { transition: none; }
  .gear-art * { stroke-dashoffset: 0; }
  .chain-tile::after { transform: none; }
}
