/* BETA ENGINEERING — feuille de styles
   Identité dérivée de la plaquette corporate 2026 : indigo profond, crème,
   dégradé vert → jaune → orange → rouge. Typo : Archivo (titres), Manrope (texte). */

:root {
  --navy: #1b1749;
  --navy-2: #241f5c;
  --navy-3: #2e2870;
  --ink: #1d1a3d;
  --ink-2: #4f4a72;       /* texte secondaire sur clair (contraste ≥ 7:1 sur crème) */
  --lav: #b9b4d8;
  --lav-2: #d4d0ea;
  --cream: #f5f3ee;
  --cream-2: #edebe3;
  --line: #d9d6cb;
  --white: #fff;
  --green: #0fa34a;
  --lime: #9cc93b;
  --yellow: #d8d226;
  --orange: #f08a24;
  --red: #e5483a;
  --grad: linear-gradient(90deg, var(--green), var(--lime) 30%, var(--yellow) 55%, var(--orange) 78%, var(--red));
  --font-h: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-b: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --r: 4px;
  --wrap: 1200px;
  --edge: clamp(1.1rem, 3vw, 4rem);
  --t: 200ms cubic-bezier(.2, .7, .3, 1);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font: 400 1rem/1.65 var(--font-b); color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy-3); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
main:focus { outline: none; }
address { font-style: normal; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.ico { width: 1em; height: 1em; flex: none; transition: transform var(--t); }

.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--white); color: var(--navy); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- boutons & liens ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border: 2px solid transparent; border-radius: var(--r); font: 700 .98rem/1.2 var(--font-h); text-decoration: none; cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t); }
.btn:hover .ico, .link-arrow:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-accent { background: var(--lime); color: var(--navy); }
.btn-accent:hover { background: #b2db55; color: var(--navy); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-3); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.btn-ghost-dark { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-ghost-dark:hover { border-color: var(--navy); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font: 700 .95rem/1.3 var(--font-h); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.is-dark .link-arrow, .hero .link-arrow { color: var(--white); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-3); text-decoration: underline; cursor: pointer; }

.kicker { font: 700 .78rem/1.3 var(--font-b); letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.kicker-dark { color: var(--ink-2); }
.kicker-sm { font-size: .7rem; margin-bottom: .6rem; color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; max-width: 46rem; }
.note { font-size: .88rem; color: var(--ink-2); margin-top: 1.25rem; }
.h-small { font-size: 1.25rem; margin-top: 2.5rem; }
.h-card { font-size: 1.15rem; }

.avalider { display: inline-block; vertical-align: middle; font: 700 .68rem/1 var(--font-b); letter-spacing: .06em; text-transform: uppercase; color: #7a3d00; background: #ffe7c7; border: 1px dashed #c26a12; padding: .3em .55em; border-radius: 3px; }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.site-header::before { content: ""; display: block; height: 4px; background: var(--grad); }
.header-row { max-width: none; padding-inline: var(--edge); display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 4vw, 4rem); min-height: 72px; }
.brand { flex-shrink: 0; }
.brand img { width: 128px; height: auto; }
.nav { flex: 1; display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.nav ul { flex: 1; justify-content: space-evenly; list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav > .btn { flex-shrink: 0; }
.nav ul a { display: block; padding: .55rem .7rem; color: var(--lav-2); text-decoration: none; font: 600 .93rem/1.2 var(--font-b); border-radius: var(--r); transition: color var(--t), background var(--t); position: relative; }
.nav ul a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav ul a[aria-current="page"] { color: var(--white); }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px; background: var(--lime); }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--white); padding: .55rem .8rem; border-radius: var(--r); font: 600 .9rem var(--font-b); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform var(--t), background var(--t); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-row { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1.25rem; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: .8rem .2rem; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .nav ul a[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: -1px; }
  .js .nav:not(.is-open) { display: none; }
  .nav .btn { justify-content: center; }
}

/* ---------- accueil : écran d'ouverture 3D ---------- */
.hero3d { position: relative; isolation: isolate; overflow: hidden; color: var(--white); display: flex; flex-direction: column;
  min-height: min(calc(100svh - 76px), 900px);
  background: radial-gradient(70% 90% at 70% 45%, rgba(38,62,150,.55), transparent 70%), linear-gradient(180deg, #0b0f2e, #070a22); }
.hero3d::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(140,180,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(140,180,255,.06) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(80% 80% at 65% 45%, #000, transparent); mask-image: radial-gradient(80% 80% at 65% 45%, #000, transparent); }
.hero3d-stage { display: none; position: absolute; z-index: 0; top: 0; right: 0; bottom: 10rem; width: 68%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
.js .hero3d-stage { display: block; }
.scene3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.scene3d:active { cursor: grabbing; }
.hero3d-hint { position: absolute; right: clamp(1.1rem, 4vw, 2rem); bottom: 2.5rem; margin: 0; font: 600 .65rem/1 var(--font-b); letter-spacing: .12em; text-transform: uppercase; color: rgba(169,196,245,.7); pointer-events: none; }
.scene-tools { position: absolute; z-index: 3; top: 1rem; right: clamp(1.1rem, 4vw, 2rem); display: flex; flex-wrap: wrap; gap: .4rem; }
.scene-tool { min-height: 36px; padding: .5rem .75rem; border: 1px solid rgba(185,180,216,.3); border-radius: 5px; color: var(--lav-2); background: rgba(11,15,46,.88); font: 600 .75rem var(--font-b); cursor: pointer; transition: border-color 180ms, color 180ms; }
.scene-tool:hover { border-color: var(--lime); color: var(--white); }
.scene-tool[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
.scene-caption { position: absolute; bottom: .8rem; right: clamp(1.1rem, 4vw, 2rem); margin: 0; font-size: .65rem; color: var(--lav); pointer-events: none; }
.scene-caption span { color: var(--lav-2); }
.hero3d-inner { max-width: none; padding-inline: var(--edge); position: relative; z-index: 1; flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 2.5rem; padding-top: clamp(3rem, 9vh, 6.5rem); pointer-events: none; }
.hero3d-inner > * { pointer-events: auto; }
.hero3d-text { align-self: center; max-width: 33rem; }
.hero3d h1 { font-size: clamp(2.15rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; max-width: 20ch; margin-bottom: .5em; text-wrap: balance; }
.hero3d .lead { color: var(--lav-2); max-width: 26rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.hero3d .link-arrow { color: var(--white); }

/* les 3 pôles = commandes de la maquette (A02) */
.disciplines { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr); gap: 0 clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.disc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.disc-tab { --c: var(--lime); position: relative; display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; align-items: baseline; padding: 1.1rem 0 .2rem; min-height: 44px; background: none; border: 0; border-top: 1px solid rgba(185,180,216,.25); color: var(--lav); text-align: left; cursor: pointer; transition: color var(--t); }
.disc-tab.tab-yellow { --c: var(--yellow); }
.disc-tab.tab-orange { --c: var(--orange); }
.disc-tab::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 300ms ease; }
.disc-tab[aria-selected="true"]::after { transform: scaleX(1); }
.disc-num { grid-row: span 2; font: 700 .8rem/1.6 var(--font-b); color: var(--c); }
.disc-name { font: 700 1.12rem/1.25 var(--font-h); color: inherit; }
.disc-pole { font: 600 .8rem/1.4 var(--font-b); color: rgba(185,180,216,.7); }
.disc-tab:hover, .disc-tab[aria-selected="true"] { color: var(--white); }
.disc-tab:focus-visible { box-shadow: 0 0 0 3px #0b0f2e, 0 0 0 5px var(--white); }
.disc-panel { padding-top: 1.1rem; color: var(--lav-2); font-size: .95rem; }
.disc-panel p { margin-bottom: .55rem; }
.disc-panel[hidden] { display: none; }
.js .disc-panel { grid-column: 2; grid-row: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* défilement automatique : la barre se remplit avant le passage au pôle suivant */
  .is-cycling .disc-tab[aria-selected="true"]::after { transition: none; animation: disc-fill var(--cycle, 7s) linear forwards; }
  @keyframes disc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .js .disc-panel:not([hidden]) { animation: disc-in 300ms ease; }
  @keyframes disc-in { from { opacity: 0; transform: translateY(4px); } }
}

@media (max-width: 900px) {
  .hero3d { min-height: 0; }
  .hero3d-inner { display: contents; }
  .hero3d-text { order: 1; padding: 2.75rem clamp(1.1rem, 4vw, 2rem) 0; }
  .hero3d-stage { order: 2; position: relative; inset: auto; width: 100%; aspect-ratio: 1; min-height: 340px; max-height: 65vh; -webkit-mask-image: none; mask-image: none; }
  .disciplines { order: 3; grid-template-columns: 1fr; padding: 0 clamp(1.1rem, 4vw, 2rem) 2rem; }
  .js .disc-panel { grid-column: 1; grid-row: 2; }
  .disc-tabs { gap: .75rem; }
  .disc-tab { grid-template-columns: 1fr; }
  .disc-num { grid-row: auto; }
  .disc-name { font-size: .98rem; }
  .disc-pole { display: none; }
  .hero3d-hint { bottom: 2.3rem; }
  .scene-tools { top: .75rem; right: 1.1rem; }
  .scene-tool { min-height: 44px; }
}

/* références : index éditorial */
.home-refs .section-head { margin-bottom: 1.5rem; }
.ref-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ref-index li { border-bottom: 1px solid var(--line); }
.ri-row { position: relative; display: grid; grid-template-columns: 2rem 160px minmax(0, 1fr) auto 1.5rem; align-items: center; gap: 1.5rem; padding: 1.25rem .75rem; color: var(--ink); text-decoration: none; transition: background var(--t); }
.ri-main { grid-column: 3; grid-row: 1; min-width: 0; }
.ri-poles { grid-column: 4; grid-row: 1; }
.ri-go { grid-column: 5; grid-row: 1; }
.ri-num { font: 700 .85rem var(--font-b); color: var(--ink-2); }
.ri-main { display: grid; gap: .3rem; }
.ri-title { font: 600 clamp(1.1rem, .95rem + .7vw, 1.5rem)/1.25 var(--font-h); color: var(--navy); letter-spacing: -.01em; }
.ri-meta { font-size: .88rem; color: var(--ink-2); }
.ri-deliverable { font-size: .8rem; color: var(--ink-2); margin-top: .25rem; }
.ri-poles { display: flex; gap: .35rem; }
.ri-poles i { width: 9px; height: 9px; border-radius: 50%; }
.dot-green, .dot-lime { background: var(--lime); } .dot-yellow { background: var(--yellow); } .dot-orange { background: var(--orange); }
.ri-go { color: var(--navy); display: flex; }
.ri-img { position: relative; grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; pointer-events: none; background: var(--navy); }
.ri-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.ri-img > span { position: absolute; left: 0; right: 0; bottom: 0; padding: .25rem .5rem; color: var(--white); background: rgba(19,15,55,.85); font-size: .65rem; }
.ri-row:hover, .ri-row:focus-visible { background: var(--white); }
.ri-row:hover .ri-img img, .ri-row:focus-visible .ri-img img { transform: scale(1.04); }
.ri-row:hover .ico { transform: translateX(4px); }
@media (max-width: 760px) {
  .ri-row { grid-template-columns: 80px minmax(0, 1fr) 1rem; gap: .85rem; padding: 1.2rem 0; }
  .ri-num, .ri-poles { display: none; }
  .ri-img { grid-column: 1; align-self: start; }
  .ri-main { grid-column: 2; }
  .ri-go { grid-column: 3; }
  .ri-title { font-size: 1.05rem; }
  .ri-meta, .ri-deliverable { font-size: .78rem; }
}

/* clôture */
.home-close { position: relative; background: var(--navy); color: var(--white); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.home-close::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.home-close h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); letter-spacing: -.02em; margin-bottom: .35em; }
.home-close p { color: var(--lav-2); font-size: 1.1rem; max-width: 34rem; }
.home-close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.home-close-link { color: var(--white); font: 700 1.05rem var(--font-h); text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.home-close-link:hover { color: var(--white); border-color: var(--lime); }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-tint { background: var(--cream-2); }
.section-head { max-width: 48rem; margin-bottom: 2.25rem; }
.section-head p:not(.kicker) { color: var(--ink-2); font-size: 1.05rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.section-head-row > div { max-width: 48rem; }
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stack { display: grid; gap: 1rem; }
.prose { max-width: 42rem; }
.prose-wide { max-width: 52rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.split h2, .split .prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); }
.split > div > .h-small:first-child, .split > div > h2:first-child, .split > div > .kicker:first-child { margin-top: 0; }
.split > div > .kicker:first-child + h2 { margin-top: 0; }
.media-frame { border-radius: 6px; overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* hero de page */
.page-hero { position: relative; background: var(--navy); color: var(--white); padding: clamp(1.75rem, 3vw, 2.75rem) 0; overflow: hidden; isolation: isolate; }
.page-hero:not(.is-dark) { background: var(--cream-2); color: var(--ink); }
.page-hero.is-dark:not(.has-image)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(185,180,216,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(185,180,216,.07) 1px, transparent 1px), linear-gradient(rgba(185,180,216,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(185,180,216,.035) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 75%); mask-image: linear-gradient(90deg, transparent 25%, #000 75%); }
.page-hero.is-dark:not(.has-image)::after { content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(156,201,59,.14), transparent 62%); pointer-events: none; }
.page-hero.is-dark { box-shadow: inset 0 -1px 0 rgba(185,180,216,.12); }
.page-hero h1 { max-width: 30ch; font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem); text-wrap: balance; }
.page-hero .lead { color: var(--lav-2); margin-bottom: 0; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.page-hero.has-image { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.page-hero .crumbs ol { margin-bottom: 1rem; }
.page-hero .kicker { margin-bottom: .65rem; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,23,73,.96) 0%, rgba(27,23,73,.85) 45%, rgba(27,23,73,.45) 100%); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.5rem; font-size: .85rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: inherit; opacity: .85; }
.is-dark .crumbs { color: var(--lav-2); }
.pole-accent { height: 6px; background: var(--c, var(--lime)); }
.pole-green { --c: var(--green); } .pole-yellow { --c: var(--yellow); } .pole-orange { --c: var(--orange); }

/* cartes de pôle */
.pole-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: 6px; overflow: hidden; border-top: 4px solid var(--c); transition: transform var(--t), box-shadow var(--t); }
.pole-card:hover, .ref-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(27,23,73,.45); }
.pole-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.pole-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.pole-card:hover img, .ref-card:hover img { transform: scale(1.03); }
.pole-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.pole-card-body p { color: var(--ink-2); font-size: .97rem; }
.pole-num { font: 700 .75rem/1 var(--font-b) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .75rem; }
.pole-card h2 a, .pole-card h3 a, .ref-card-title a { color: var(--navy); text-decoration: none; }
.more { margin-top: auto; display: inline-flex; gap: .4em; align-items: center; font: 700 .9rem var(--font-h); color: var(--navy); }
.pole-card:hover .more .ico { transform: translateX(3px); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched:focus-visible { box-shadow: none; }
.stretched:focus-visible::after { box-shadow: inset 0 0 0 3px var(--navy); border-radius: 6px; }

/* cartes de référence */
.ref-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: 6px; overflow: hidden; transition: transform var(--t), box-shadow var(--t), opacity var(--t); }
.ref-card-media { background: var(--navy); aspect-ratio: 16 / 8; overflow: hidden; }
.ref-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.ref-card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.ref-card-body .chips { margin-top: auto; padding-top: .4rem; }
.ref-card-title { font-size: 1.3rem; }
.ref-card-body > p:not(.kicker):not(.chips) { font-size: .95rem; color: var(--ink-2); }
.ref-card-title { font-size: 1.15rem; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.chip { --c: var(--line); display: inline-flex; align-items: center; gap: .4em; font: 600 .76rem/1 var(--font-b); padding: .45em .65em; border-radius: 3px; background: var(--cream); color: var(--ink); }
.chip-green, .chip-yellow, .chip-orange { box-shadow: inset 3px 0 0 var(--c); }
.chip-green { --c: var(--green); } .chip-yellow { --c: #b9b31b; } .chip-orange { --c: var(--orange); }

/* statistiques */
.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 2rem; background: var(--navy); border-radius: 6px; overflow: hidden; }
.stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.stats p { margin: 0; padding: 1.6rem 1.75rem; display: flex; align-items: baseline; gap: .8rem; color: var(--lav-2); font-size: .93rem; line-height: 1.4; }
.stats p + p { border-left: 1px solid rgba(185,180,216,.18); }
.stats strong { font: 800 2.8rem/1 var(--font-h); color: var(--white); flex: none; }
.stats .avalider { position: absolute; right: .75rem; bottom: .6rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stats p + p { border-left: 0; border-top: 1px solid rgba(185,180,216,.18); } .stats .avalider { position: static; margin: 0 1.75rem 1.2rem; justify-self: start; } }

/* frise A03 */
.frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: s; position: relative; }
.frise-step { --c: var(--green); position: relative; }
.frise-step:nth-child(2) { --c: var(--lime); } .frise-step:nth-child(3) { --c: #c2cf2e; } .frise-step:nth-child(4) { --c: var(--yellow); } .frise-step:nth-child(5) { --c: var(--orange); } .frise-step:nth-child(6) { --c: var(--red); }
.frise-step:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 56px; right: -4px; height: 2px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, transparent)); }
.frise-num { border: 2px solid var(--c); }
.frise-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 .9rem var(--font-h); position: relative; margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--cream); }
.section-tint .frise-num { box-shadow: 0 0 0 6px var(--cream-2); }
.frise-title { font-size: 1.02rem; margin-bottom: .4rem; }
.frise-title a { color: var(--navy); text-decoration: none; }
.frise-title a:hover { text-decoration: underline; }
.frise-step p { font-size: .9rem; line-height: 1.55; color: var(--ink-2); padding-right: .5rem; }
.frise-compact .frise-step p { font-size: .86rem; }
.frise-step:target .frise-num { background: var(--lime); color: var(--navy); }
.frise-step:target { scroll-margin-top: 110px; }
@media (max-width: 900px) {
  .frise { grid-template-columns: 1fr; gap: 0; }
  .frise-step:not(:last-child)::after { top: 52px; bottom: 6px; left: 21px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 40%, transparent)); }
  .frise-step { display: grid; grid-template-columns: 44px 1fr; column-gap: 1.1rem; padding-bottom: 1.4rem; }
  .frise-num { grid-row: span 2; margin: 0; }
  .frise-title { align-self: center; margin: .6rem 0 .3rem; }
  .frise-step p { grid-column: 2; }
}
.phase-nav ul { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.phase-nav a { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--navy); transition: border-color var(--t); }
.phase-nav a:hover { border-color: var(--navy); }

/* besoins */
.needs { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.need { --c: var(--navy); display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color var(--t), transform var(--t); }
.need:hover { transform: translateX(3px); border-color: var(--c); color: var(--ink); }
.need-green { --c: var(--green); } .need-yellow { --c: #b9b31b; } .need-orange { --c: var(--orange); }
.need-title { font: 700 1.05rem/1.3 var(--font-h); color: var(--navy); }
.need-desc { font-size: .9rem; color: var(--ink-2); }
.need-pole { display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; font-weight: 700; color: var(--navy); margin-top: auto; padding-top: .5rem; }

/* familles, prestations, principes */
.famille, .presta, .principle, .refgroup, .valeur { background: var(--white); border-radius: 6px; padding: 1.5rem; height: 100%; }
.famille-num { font: 800 1.8rem/1 var(--font-h); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .8rem; }
.famille ul { padding-left: 1.1rem; margin: 0; font-size: .93rem; color: var(--ink-2); }
.famille li + li { margin-top: .45rem; }
.famille p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.presta { border-top: 3px solid var(--c); }
.presta p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.principle { border-left: 4px solid var(--lime); }
.principle p { color: var(--ink-2); margin: 0; }
.valeur h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.valeur p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.refgroup h3 { padding-bottom: .7rem; border-bottom: 2px solid var(--navy); }
.refgroup dl { margin: 0; }
.refgroup dl div { padding: .55rem 0; border-bottom: 1px solid var(--cream-2); }
.refgroup dt { font: 700 .95rem var(--font-h); color: var(--navy); }
.refgroup dd { margin: 0; font-size: .87rem; color: var(--ink-2); }
.ouvrages { list-style: none; padding: 0; margin: 0; }
.ouvrages li { display: grid; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ouvrages li:first-child { border-top: 1px solid var(--line); }
.ouvrages strong { font-family: var(--font-h); color: var(--navy); }
.ouvrages span { color: var(--ink-2); font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding: .45rem 0 .45rem 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .82rem; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.table-ref { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 6px; overflow: hidden; font-size: .94rem; }
.table-ref th, .table-ref td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--cream-2); vertical-align: top; }
.table-ref thead th { background: var(--navy); color: var(--white); font: 700 .8rem var(--font-b); letter-spacing: .08em; text-transform: uppercase; }
.table-ref tbody th { font-family: var(--font-h); color: var(--navy); white-space: nowrap; }

/* CTA */
.cta-band { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 5vw, 4rem) 0; position: relative; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { color: var(--lav-2); max-width: 40rem; margin: 0; }

/* filtres références */
.filters { display: grid; gap: 1.25rem; padding: 1.5rem; background: var(--white); border-radius: 6px; margin-bottom: 1rem; }
.filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.filters legend { font: 700 .78rem var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; padding: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-radio { position: relative; }
.chip-radio.chip-green, .chip-radio.chip-yellow, .chip-radio.chip-orange { box-shadow: none; background: none; padding: 0; }
.chip-radio.chip-green span::before, .chip-radio.chip-yellow span::before, .chip-radio.chip-orange span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: .5rem; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 99px; background: var(--cream); font-weight: 600; font-size: .9rem; transition: background var(--t), border-color var(--t), color var(--t); }
.chip-radio:hover span { border-color: var(--navy); }
.chip-radio input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip-radio input:focus-visible + span { box-shadow: var(--focus); }
.chip-radio.chip-green input:checked + span { box-shadow: inset 0 -3px 0 var(--green); }
.chip-radio.chip-yellow input:checked + span { box-shadow: inset 0 -3px 0 var(--yellow); }
.chip-radio.chip-orange input:checked + span { box-shadow: inset 0 -3px 0 var(--orange); }
.filters-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--cream-2); padding-top: 1rem; }
.filters-count { margin: 0 auto 0 0; font-weight: 600; color: var(--ink-2); }
.empty { padding: 1.5rem; background: var(--white); border: 1px dashed var(--line); border-radius: 6px; }
.empty[hidden], [hidden] { display: none !important; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 6px; }
.table-missions { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.table-missions th, .table-missions td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--cream-2); vertical-align: top; }
.table-missions thead th { font: 700 .76rem var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: var(--cream); }
.table-missions td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.status { display: inline-block; padding: .25em .6em; border-radius: 3px; font-size: .8rem; font-weight: 700; background: var(--cream-2); white-space: nowrap; }
.status.is-on { background: #e3f3d2; color: #29530b; }

/* fiche */
.fiche-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.facts { background: var(--white); border-radius: 6px; padding: 1.5rem; position: sticky; top: 100px; }
.facts .h-small { margin-top: 0; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .5rem; padding: .65rem 0; border-top: 1px solid var(--cream-2); font-size: .93rem; }
.facts dt { color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.next-ref { margin-top: 2rem; }
@media (max-width: 860px) { .fiche-grid { grid-template-columns: 1fr; } .facts { position: static; } .facts dl div { grid-template-columns: 8rem 1fr; } }

/* preuves de mission et présentation des métiers */
.project-visual, .team-visual { margin: 0; }
.project-visual img, .team-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.project-visual figcaption, .team-visual figcaption { padding-top: .65rem; font-size: .78rem; line-height: 1.5; color: var(--ink-2); }
.project-scope { margin: 1.75rem 0 2rem; padding: 1.5rem; border-left: 4px solid var(--lime); background: var(--white); border-radius: 0 6px 6px 0; }
.scope-value { display: block; font: 700 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--font-h); color: var(--navy); margin-bottom: .65rem; }
.project-story .project-scope h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.project-scope p:last-child { margin-bottom: 0; }
.deliverable-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .65rem; }
.deliverable-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-weight: 600; }
.deliverable-number { flex: none; font: 700 .85rem var(--font-h); color: var(--ink-2); border-right: 1px solid var(--line); padding-right: 1rem; }
.validation-details { border: 1px solid var(--line); border-radius: 4px; padding: 1rem; color: var(--ink-2); font-size: .9rem; }
.validation-details summary { cursor: pointer; font-weight: 600; }
.validation-details p { margin: 1rem 0 0; }
.team-intro { align-items: center; margin-bottom: 2rem; }
.team-intro h2 { max-width: 22ch; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.team-card { position: relative; display: flex; flex-direction: column; padding: 1.65rem; background: var(--white); border-top: 3px solid var(--c, var(--lime)); border-radius: 4px; }
.team-number { color: var(--ink-2); font: 700 .85rem var(--font-h); margin-bottom: 1.5rem; }
.team-card .kicker { font-size: .7rem; letter-spacing: .1em; margin-bottom: .65rem; }
.team-card h3 { font-size: 1.35rem; }
.team-card > p:not(.kicker) { color: var(--ink-2); font-size: .95rem; }
.team-card .team-profile { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .8rem !important; }
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 1.25rem; }
  .project-scope { padding: 1.2rem; }
}

/* formulaire */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-grid > .form-success { grid-column: 1; grid-row: 1; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > .form-success { grid-row: auto; } }
.form { background: var(--white); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); align-items: end; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--navy); }
.field .opt { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1px solid #b9b5a6; border-radius: var(--r); padding: .7rem .85rem; transition: border-color var(--t), background var(--t); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--navy-3); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 3px rgba(46,40,112,.25); }
.field input, .field select { min-height: 3.1rem; }
.field textarea { resize: vertical; min-height: 9rem; }
.field-hint { font-size: .84rem; color: var(--ink-2); margin: .35rem 0 0; }
.field-error { margin: .35rem 0 0; font-size: .87rem; font-weight: 700; color: #b3261e; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.form-alert { padding: 1rem 1.25rem; border-radius: var(--r); margin-bottom: 1.25rem; border-left: 4px solid #b3261e; background: #fff1ef; color: #6d1510; }
.form-alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.form-alert a { color: inherit; }
.form-legal { font-size: .85rem; color: var(--ink-2); }
.form-success { background: var(--white); border-radius: 6px; padding: 2rem; border-left: 4px solid var(--green); }
.context-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .85rem 1rem; margin-bottom: 1.25rem; background: var(--cream); border-left: 4px solid var(--lime); border-radius: var(--r); font-size: .93rem; }
.context-note p { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside address p { margin-bottom: 1.25rem; }
.contact-aside a { word-break: break-word; }

/* pied de page */
.site-footer { background: #130f37; color: var(--lav); padding-top: 3.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { width: 120px; margin-bottom: 1rem; }
.footer-h { font: 700 .78rem var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li + li { margin-top: .45rem; }
.site-footer a { color: var(--lav-2); }
.site-footer a:hover { color: var(--white); }
.footer-legal { border-top: 1px solid rgba(185,180,216,.18); padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .82rem; }
.footer-legal p { margin: 0; }

/* A04 — apparition au défilement (facultative, jamais bloquante) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.is-pending { opacity: 0; transform: translateY(14px); }
  .js .reveal { transition: opacity 300ms ease, transform 300ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .pole-card:hover, .ref-card:hover, .need:hover { transform: none; }
}
