/* ===================================================================
   AF-IA OPTIMISATION — DESIGN SYSTEM
   =================================================================== */

/* ---------- Font (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Design tokens ---------- */
:root {
  /* Le site est sombre par défaut. Les tokens historiquement « clairs » portent
     les valeurs sombres de la palette : chaque règle existante bascule sans être
     réécrite, et aucune teinte nouvelle n'entre dans le système. */
  --color-bg: #0A0E1A;
  --color-bg-alt: #121B2E;
  --color-surface: #121B2E;
  --color-surface-alt: #1B2740;
  --color-dark: #0A0E1A;
  --color-dark-alt: #121B2E;
  --color-dark-alt-2: #1B2740;

  /* #707893 ne passe pas 4.5:1 sur les surfaces sombres (3.9:1 sur #121B2E) :
     le texte « discret » prend donc #A9B0C2 et la hiérarchie se fait par la
     taille. #707893 reste réservé aux usages non textuels et aux placeholders. */
  --text-primary: #F5F6F8;
  --text-secondary: #A9B0C2;
  --text-muted: #A9B0C2;
  --text-on-dark: #F5F6F8;
  --text-on-dark-secondary: #A9B0C2;
  --text-on-dark-muted: #A9B0C2;
  --ink-faint: #707893;

  --accent: #B8863B;
  --accent-hover: #9C6F2C;
  --accent-bright: #D9A75C;
  --accent-glow: #F0CE8E;
  --accent-light: rgba(184, 134, 59, 0.14);
  --accent-soft: rgba(184, 134, 59, 0.12);
  --accent-soft-strong: rgba(184, 134, 59, 0.22);

  --border: rgba(245, 246, 248, 0.10);
  --border-strong: rgba(245, 246, 248, 0.18);
  --border-dark: rgba(245, 246, 248, 0.10);
  --border-dark-strong: rgba(245, 246, 248, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 16px 36px -12px rgba(0,0,0,0.60);
  --shadow-lg: 0 40px 90px -28px rgba(0,0,0,0.75);
  --shadow-accent: 0 14px 32px -10px rgba(184,134,59,0.38);

  --container: 1180px;
  --container-narrow: 780px;
  --gutter: clamp(20px, 5vw, 48px);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s var(--ease);
  --t-base: 0.35s var(--ease);
  --t-slow: 0.6s var(--ease);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }
.section-pad { padding-block: clamp(64px, 10vw, 128px); }
.section-pad-sm { padding-block: clamp(48px, 6vw, 80px); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem, 2rem + 2.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 1.6rem + 1.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { color: var(--text-secondary); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* ---------- Repère géant en filigrane (motif éditorial) ---------- */
.section-mark-wrap { position: relative; }
.section-mark {
  position: absolute; top: -0.28em; right: clamp(-10px, 2vw, 40px);
  font-size: clamp(7rem, 19vw, 17rem); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--border);
  z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
}
@media (max-width: 640px) { .section-mark { display: none; } }

/* ---------- Section-head éditorial (asymétrique) ---------- */
.section-head--edito {
  position: relative; z-index: 1; max-width: none;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.section-head--edito .section-head-main { max-width: 560px; }
.section-head--edito p { margin-top: 0; padding-bottom: 3px; }
@media (max-width: 820px) {
  .section-head--edito { grid-template-columns: 1fr; }
  .section-head--edito p { margin-top: 14px; }
}

.on-dark .eyebrow { color: var(--accent-bright); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-on-dark); }
.on-dark p { color: var(--text-on-dark-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.mobile-nav-cta { display: none; }
.btn-primary { position: relative; overflow: hidden; background: var(--accent); color: var(--color-dark); box-shadow: var(--shadow-accent); isolation: isolate; }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(150px circle at var(--bx, 50%) var(--by, 50%), rgba(245,246,248,0.55), transparent 65%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.on-dark .btn-secondary { color: var(--text-on-dark); border-color: var(--border-dark-strong); }
.on-dark .btn-secondary:hover { border-color: var(--text-on-dark); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.btn:hover svg.arrow { transform: translateX(3px); }

/* ---------- Page transitions ---------- */
#page-transition-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; max-width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  z-index: 999; opacity: 0; pointer-events: none;
  transition: width 0.4s var(--ease), opacity 0.25s ease;
  box-shadow: 0 0 12px rgba(184,134,59,0.6);
}
#page-transition-bar.active { opacity: 1; }

body {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
body.page-loaded { opacity: 1; }
body.page-exiting {
  opacity: 0;
  transition: opacity 0.32s ease;
}
@media (prefers-reduced-motion: reduce) {
  body, body.page-exiting { opacity: 1 !important; transition: none !important; }
  #page-transition-bar { display: none; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: radial-gradient(ellipse 120% 90% at 50% -20%, #1B2740 0%, var(--color-dark) 58%);
  color: var(--text-on-dark);
  padding-top: clamp(118px, 14vw, 158px);
  padding-bottom: clamp(72px, 8vw, 96px);
  position: relative; overflow: hidden;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--accent-bright); }
.page-hero .eyebrow::before { background: var(--accent-bright); }
.page-hero h1 { color: var(--text-primary); max-width: 700px; }
.page-hero p.lead { margin-top: 18px; max-width: 620px; color: var(--text-on-dark-secondary); font-size: 1.05rem; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-on-dark-muted); margin-bottom: 18px; }
.page-hero .breadcrumb a { color: var(--text-on-dark-secondary); }
.page-hero .breadcrumb a:hover { color: var(--text-primary); }
.page-hero .breadcrumb svg { width: 13px; height: 13px; }

/* ---------- Aurora atmosphere (animated gradient mesh, hero + page-hero) ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; transform: translateY(var(--parallax, 0px)); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .aurora { transform: none; } }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(64px); mix-blend-mode: screen; will-change: transform; }
.aurora__blob--1 {
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; top: -14%; left: 2%;
  background: radial-gradient(circle, rgba(184,134,59,0.6), transparent 70%);
  animation: auroraDrift1 24s ease-in-out infinite;
}
.aurora__blob--2 {
  width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; top: 4%; right: -10%;
  background: radial-gradient(circle, rgba(27,39,64,0.9), transparent 70%);
  animation: auroraDrift2 28s ease-in-out infinite;
}
.aurora__blob--3 {
  width: 34vw; height: 34vw; max-width: 440px; max-height: 440px; bottom: -18%; left: 28%;
  background: radial-gradient(circle, rgba(184,134,59,0.18), transparent 70%);
  animation: auroraDrift3 32s ease-in-out infinite;
}
@keyframes auroraDrift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(5%, 6%) scale(1.12); } }
@keyframes auroraDrift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 4%) scale(1.08); } }
@keyframes auroraDrift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, -5%) scale(1.15); } }
.aurora__texture {
  position: absolute; inset: 0;
  background-image: url('../assets/textures/network-bg.jpg');
  background-size: cover; background-position: center;
  opacity: 0.14; mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
@media (prefers-reduced-motion: reduce) { .aurora__blob { animation: none; } }

.hero__spotlight {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(620px circle at var(--mx, 50%) var(--my, 25%), rgba(217,167,92,0.4) 0%, rgba(217,167,92,0.16) 32%, transparent 65%);
  transition: opacity 0.4s var(--ease);
}
.hero:hover .hero__spotlight, .page-hero:hover .hero__spotlight { opacity: 1; }
@media (hover: none) { .hero__spotlight { display: none; } }

/* ---------- Grain (site-wide subtle texture) ---------- */
.grain-overlay {
  position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background var(--t-base), box-shadow var(--t-base), padding var(--t-base), backdrop-filter var(--t-base);
}
.site-header.scrolled {
  background: rgba(10,14,26,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border); padding: 12px 0;
}
@media (max-width: 920px) {
  .site-header.menu-open { background: var(--color-dark) !important; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.menu-open .brand { color: var(--text-on-dark) !important; }
  .site-header.menu-open .nav-toggle { border-color: var(--border-dark-strong) !important; }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; color: var(--text-on-dark); transition: color var(--t-base); }
.brand img, .brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand-sub { display: none; }
.site-header.scrolled .brand { color: var(--text-primary); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 16px; border-radius: var(--radius-full); font-size: 0.97rem; font-weight: 500;
  color: var(--text-secondary); transition: color var(--t-fast), background var(--t-fast);
}
.main-nav a:hover { color: var(--text-primary); background: var(--color-surface-alt); }
.main-nav a.active { color: var(--text-primary); font-weight: 700; }
.main-nav a.active::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 3px auto 0; }
@media (max-width: 920px) { .main-nav a.active { color: var(--text-primary); } .main-nav a.active::after { background: var(--accent-bright); } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; border: 1px solid var(--border-dark-strong);
}
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text-on-dark);
  border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast), top var(--t-fast), background var(--t-fast);
}
.site-header.scrolled .nav-toggle { border-color: var(--border-strong); }
.site-header.scrolled .nav-toggle .bars span { background: var(--text-primary); }
.nav-toggle.active .bars span { background: var(--text-on-dark) !important; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle.active .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle.active .bars span:nth-child(2) { opacity: 0; }
.nav-toggle.active .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #1B2740 0%, var(--color-dark) 55%);
  color: var(--text-on-dark);
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(80px, 10vw, 130px);
  overflow: hidden;
  position: relative;
}
.hero-inner { position: relative; z-index: 2; max-width: 540px; }
.hero .eyebrow { color: var(--accent-bright); }
.hero .eyebrow::before { background: var(--accent-bright); }
.hero h1 { color: var(--text-primary); font-size: clamp(2.6rem, 1.8rem + 3.6vw, 5.1rem); letter-spacing: -0.035em; }
.hero h1 .accent-word { background: linear-gradient(90deg, var(--accent-bright), var(--accent-glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 24px; font-size: clamp(1.05rem, 0.9vw + 0.8rem, 1.25rem); color: var(--text-on-dark-secondary); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .btn-secondary { color: var(--text-on-dark); border-color: var(--border-dark-strong); }
.hero .btn-secondary:hover { border-color: var(--text-on-dark); background: rgba(245,246,248,0.06); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border-dark); }
.hero-meta-item { max-width: 220px; }
.hero-meta-item .num { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.hero-meta-item .label { font-size: 0.9rem; color: var(--text-on-dark-muted); margin-top: 4px; }

.hero-visual {
  position: absolute; right: -2%; top: 50%; transform: translateY(-42%);
  width: min(38vw, 500px); opacity: 0.92; z-index: 1;
}
@media (max-width: 1400px) { .hero-visual { display: none; } }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--accent-light);
  color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---------- Bento asymétrique (constat) ---------- */
.bento-problem { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(176px, auto); grid-auto-flow: dense; gap: 20px; }
.bento-problem > .card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-problem > .card:nth-child(6) { grid-column: span 2; }
@media (max-width: 980px) {
  .bento-problem { grid-template-columns: repeat(2, 1fr); }
  .bento-problem > .card:nth-child(1) { grid-row: span 1; }
}
@media (max-width: 640px) {
  .bento-problem { grid-template-columns: 1fr; }
  .bento-problem > .card:nth-child(1), .bento-problem > .card:nth-child(6) { grid-column: span 1; grid-row: span 1; }
}

.card--feature {
  background: linear-gradient(160deg, var(--color-surface-alt) 0%, var(--color-surface) 100%);
  border-color: var(--accent-soft-strong); display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.35);
}
.card--feature .card-icon { width: 56px; height: 56px; background: var(--accent); color: var(--color-dark); margin-bottom: 24px; }
.card--feature .card-icon svg { width: 26px; height: 26px; }
.card--feature h3 { color: var(--text-primary); font-size: 1.3rem; }
.card--feature p { color: var(--text-on-dark-secondary); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Problem section ---------- */
.problem-section { background: var(--color-bg-alt); }

/* ---------- Approach / Method ---------- */
.approach-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 40px; }
.approach-steps::before {
  content: ''; position: absolute; top: 27px; left: 6%; right: 6%; height: 1px; background: var(--border);
}
@media (max-width: 900px) { .approach-steps { grid-template-columns: 1fr; gap: 36px; } .approach-steps::before { display: none; } }
.step { position: relative; padding-right: 24px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border-radius: 50%; background: var(--color-surface-alt); border: 1px solid var(--border-strong);
  color: var(--accent-bright); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 22px; position: relative; z-index: 2;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.97rem; }

/* ---------- Projects ---------- */
.projects-section { background: var(--color-dark); color: var(--text-on-dark); }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chip {
  padding: 9px 18px; border-radius: var(--radius-full); border: 1px solid var(--border-dark-strong);
  font-size: 0.9rem; font-weight: 500; color: var(--text-on-dark-secondary); transition: all var(--t-fast);
}
.filter-chip:hover { border-color: var(--text-on-dark); color: var(--text-primary); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: var(--color-dark); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--color-dark-alt); border: 1px solid var(--border-dark); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; height: 100%;
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}
.project-card:hover { transform: translateY(-4px); border-color: var(--border-dark-strong); background: var(--color-dark-alt-2); }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.project-sector-tag { font-size: 0.83rem; font-weight: 600; color: var(--accent-bright); letter-spacing: 0.02em; }
.status-badge {
  font-size: 0.77rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full);
  white-space: nowrap; letter-spacing: 0.02em;
}
.status-badge.dev { background: rgba(184,134,59,0.18); color: var(--accent-bright); }
.status-badge.concept { background: rgba(245,246,248,0.08); color: var(--text-on-dark-secondary); }
.status-badge.pilot { background: var(--accent); color: var(--color-dark); }

.tier-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.83rem; font-weight: 600;
  padding: 5px 12px; border-radius: var(--radius-full); background: var(--accent-light); color: var(--accent-bright);
  text-decoration: none; transition: background var(--t-fast), color var(--t-fast);
}
.tier-tag:hover { background: var(--accent); color: var(--color-dark); }
.solution-tab:hover .tier-tag { background: rgba(245,246,248,0.18); color: var(--text-primary); }
.page-hero .tier-tag { margin-top: 14px; }

.project-card h3 { color: var(--text-primary); margin-bottom: 10px; }
.project-card .project-block { margin-bottom: 14px; }
.project-card .project-block .label { font-size: 0.77rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-on-dark-muted); margin-bottom: 4px; }
.project-card .project-block p { font-size: 0.93rem; color: var(--text-on-dark-secondary); }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }
.tech-tag { font-size: 0.77rem; padding: 4px 10px; border-radius: var(--radius-full); background: rgba(245,246,248,0.06); color: var(--text-on-dark-secondary); border: 1px solid var(--border-dark); }
.project-card .discover { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.project-card .discover svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.project-card:hover .discover svg { transform: translateX(3px); }

/* ---------- Solutions (link cards to dedicated pages) ---------- */
.solutions-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px;
  perspective: 1000px;
}
@media (max-width: 980px) { .solutions-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .solutions-tabs { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.solution-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 24px 12px 30px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--color-surface); cursor: pointer; transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.solution-tab:hover {
  transform: translateY(-6px) scale(1.03) rotateX(5deg);
  border-color: var(--accent);
  background: linear-gradient(150deg, var(--color-surface-alt) 0%, var(--color-surface) 100%);
  box-shadow: 0 18px 34px -14px rgba(184,134,59,0.45), 0 4px 10px -4px rgba(184,134,59,0.28);
}
.solution-tab:active { transform: translateY(-3px) scale(1.01); }

.solution-tab .tab-icon {
  width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-light); color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(245,246,248,0.10);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.solution-tab .tab-icon svg { width: 22px; height: 22px; }
.solution-tab .tab-name { font-weight: 700; font-size: 0.91rem; color: var(--text-primary); line-height: 1.25; transition: color 0.3s var(--ease); }
.solution-tab:hover .tab-icon { background: var(--accent); color: var(--color-dark); box-shadow: inset 0 1px 0 rgba(245,246,248,0.35), 0 6px 14px -4px rgba(0,0,0,0.45); transform: scale(1.08); }
.solution-tab:hover .tab-name { color: var(--text-primary); }

.solution-tab .tab-arrow {
  position: absolute; bottom: 10px; left: 50%; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-primary);
  background: rgba(245,246,248,0.16); opacity: 0; transform: translate(-50%, 6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.solution-tab .tab-arrow svg { width: 12px; height: 12px; }
.solution-tab:hover .tab-arrow { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pricing grid ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card__range { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.price-card--featured .price-card__range { color: var(--text-on-dark-secondary); }

.price-card {
  display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 26px; position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.price-card__badge {
  position: absolute; top: -13px; left: 26px; background: var(--accent); color: var(--color-dark); font-size: 0.75rem; font-weight: 700;
  padding: 5px 13px; border-radius: var(--radius-full); letter-spacing: 0.02em; box-shadow: var(--shadow-accent);
}
.price-card--featured {
  border-color: var(--accent-soft-strong); background: linear-gradient(160deg, var(--color-surface-alt) 0%, var(--color-surface) 100%);
  box-shadow: 0 20px 40px -18px rgba(184,134,59,0.45);
}
.price-card--featured:hover { border-color: var(--accent); }
.price-card--featured .price-card__name,
.price-card--featured .price-card__price { color: var(--text-primary); }
.price-card--featured .price-card__desc { color: var(--text-on-dark-secondary); }
.price-card--featured .price-card__price small { color: var(--text-on-dark-muted); }
.price-card--featured .price-card__list li { color: var(--text-on-dark-secondary); }
.price-card--featured .price-card__list svg { color: var(--accent-bright); }
.price-card--featured .btn-secondary { color: var(--text-primary); border-color: var(--border-dark-strong); }

.price-card__name { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.price-card__desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; }
.price-card__price { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 22px; font-variant-numeric: tabular-nums; }
.price-card__price small { display: block; font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 6px; }
.price-card__list { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card__list li { font-size: 0.9rem; display: flex; gap: 8px; align-items: flex-start; color: var(--text-secondary); line-height: 1.4; }
.price-card__list svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.price-card__note {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  font-size: 0.83rem; font-weight: 600; color: var(--accent);
}
.price-card__note svg { width: 13px; height: 13px; flex-shrink: 0; }
.price-card--featured .price-card__note { color: var(--accent-bright); }
.price-card .btn { width: 100%; justify-content: center; }
.pricing-note { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-top: 30px; max-width: 640px; margin-inline: auto; }

.solutions-panel-wrap { min-height: 1px; }
.solution-panel {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 40px); align-items: start;
  background: linear-gradient(150deg, var(--color-dark) 0%, #1B2740 100%);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); color: var(--text-primary);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,0.4), 0 1px 0 rgba(245,246,248,0.06) inset;
  transform-origin: top center;
  animation: panelIn 0.55s var(--ease);
}
@media (max-width: 680px) { .solution-panel { grid-template-columns: 1fr; } }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px) rotateX(-8deg) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.solution-panel .panel-icon {
  width: 78px; height: 78px; border-radius: 22px; flex-shrink: 0;
  background: linear-gradient(150deg, rgba(245,246,248,0.16), rgba(245,246,248,0.04));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(245,246,248,0.18), 0 14px 26px -10px rgba(0,0,0,0.45);
}
.solution-panel .panel-icon svg { width: 34px; height: 34px; color: var(--text-primary); }
.solution-panel h3 { color: var(--text-primary); font-size: clamp(1.4rem, 1.5vw + 1rem, 1.8rem); margin-bottom: 10px; }
.solution-panel .panel-desc { color: var(--text-on-dark-secondary); font-size: 1.03rem; max-width: 560px; }
.solution-panel ul { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 560px) { .solution-panel ul { grid-template-columns: 1fr; } }
.solution-panel li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.99rem; color: var(--text-on-dark-secondary); }
.solution-panel li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); margin-top: 8px; flex-shrink: 0; box-shadow: 0 0 8px rgba(217,167,92,0.8); }

/* ---------- For who (tabs) ---------- */
.audience-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.audience-tab {
  padding: 12px 22px; border-radius: var(--radius-full); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.97rem; color: var(--text-secondary); transition: all var(--t-fast);
}
.audience-tab:hover { border-color: var(--text-primary); color: var(--text-primary); }
.audience-tab.active { background: var(--accent); color: var(--color-dark); border-color: var(--accent); }
.audience-panel { display: none; }
.audience-panel.active { display: block; animation: fadeUp 0.5s var(--ease); }
.audience-panel-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px);
}
@media (max-width: 860px) { .audience-panel-inner { grid-template-columns: 1fr; gap: 24px; } }
.audience-panel h3 { font-size: 1.5rem; margin-bottom: 12px; }
.audience-panel .tagline { font-size: 1.1rem; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.audience-examples { display: flex; flex-direction: column; gap: 10px; }
.audience-examples li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.99rem; color: var(--text-secondary); }
.audience-examples svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- Sectors ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
.sector-chip {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 14px; text-align: center;
  transition: all var(--t-fast); cursor: pointer; background: var(--color-surface);
}
.sector-chip:hover, .sector-chip.active { border-color: var(--accent); background: var(--accent-light); transform: translateY(-2px); }
.sector-chip .emoji { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.sector-chip .name { font-size: 0.9rem; font-weight: 600; }

.sector-detail {
  margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); background: var(--color-bg-alt); display: none;
}
.sector-detail.active { display: block; animation: fadeUp 0.4s var(--ease); }
.sector-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 20px; }
@media (max-width: 860px) { .sector-detail-grid { grid-template-columns: 1fr; } }
.sector-detail-grid h4 { font-size: 0.87rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 10px; }
.sector-detail-grid ul { display: flex; flex-direction: column; gap: 7px; }
.sector-detail-grid li { font-size: 0.95rem; color: var(--text-secondary); padding-left: 14px; position: relative; }
.sector-detail-grid li::before { content: '—'; position: absolute; left: 0; color: var(--text-muted); }
.sector-note { display: inline-block; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* ---------- Before / After ---------- */
.ba-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .ba-wrap { grid-template-columns: 1fr; } .ba-divider { display: none; } }
.ba-col { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.ba-before { background: var(--color-bg-alt); border: 1px solid var(--border); }
.ba-after { background: var(--color-surface-alt); border: 1px solid var(--accent-soft-strong); color: var(--text-on-dark); }
.ba-label { font-size: 0.83rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; display: inline-block; }
.ba-before .ba-label { color: var(--text-muted); }
.ba-after .ba-label { color: var(--accent-bright); }
.ba-flow { display: flex; flex-direction: column; }
.ba-flow-item { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.97rem; font-weight: 500; }
.ba-before .ba-flow-item { background: var(--color-surface); border: 1px solid var(--border); }
.ba-after .ba-flow-item { background: rgba(245,246,248,0.05); border: 1px solid var(--border-dark); }
.ba-after .ba-flow-item.highlight { background: rgba(184,134,59,0.18); border-color: rgba(184,134,59,0.4); color: var(--text-primary); }
.ba-arrow { display: flex; justify-content: center; padding: 6px 0; color: var(--text-muted); }
.ba-after .ba-arrow { color: var(--text-on-dark-muted); }
.ba-divider { display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.ba-divider svg { width: 28px; height: 28px; }

/* ---------- Technologies (infinite marquee) ---------- */
.tech-marquee {
  overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tech-marquee__track { display: flex; gap: 14px; width: max-content; animation: techMarquee 36s linear infinite; }
.tech-marquee:hover .tech-marquee__track { animation-play-state: paused; }
@keyframes techMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tech-marquee__track { animation: none; } }

.tech-item {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 13px 22px 13px 13px; border: 1px solid var(--border); border-radius: var(--radius-full);
  font-size: 0.93rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap;
  background: var(--color-surface); transition: all var(--t-fast);
}
.tech-item:hover { border-color: var(--accent); color: var(--text-primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tech-item .tech-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.81rem; flex-shrink: 0; }
.tech-disclaimer { margin-top: 26px; font-size: 0.87rem; color: var(--text-muted); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Project quiz ---------- */
.quiz-section { background: var(--color-bg-alt); }
.quiz-box { background: var(--color-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); max-width: 820px; margin-inline: auto; box-shadow: var(--shadow-md); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeUp 0.4s var(--ease); }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 32px; }
.quiz-progress span { height: 4px; flex: 1; border-radius: var(--radius-full); background: var(--border); transition: background var(--t-base); }
.quiz-progress span.done { background: var(--accent); }
.quiz-question { font-size: 1.3rem; font-weight: 700; margin-bottom: 22px; letter-spacing: -0.01em; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .quiz-options { grid-template-columns: 1fr; } }
.quiz-option {
  text-align: left; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-weight: 500; font-size: 0.95rem; transition: all var(--t-fast);
}
.quiz-option:hover { border-color: var(--accent); background: var(--accent-light); }
.quiz-option.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }
.quiz-result { text-align: center; }
.quiz-result h3 { margin-bottom: 12px; }
.quiz-result p { max-width: 480px; margin-inline: auto; margin-bottom: 28px; }
.quiz-back { margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-section { background: var(--color-dark); color: var(--text-on-dark); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.contact-info-item .ico { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(245,246,248,0.06); border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .ico svg { width: 19px; height: 19px; color: var(--accent-bright); }
.contact-info-item a, .contact-info-item span.value { font-weight: 600; font-size: 1.02rem; color: var(--text-primary); }
.contact-info-item a:hover { color: var(--accent-bright); }
.contact-info-item .lbl { font-size: 0.83rem; color: var(--text-on-dark-muted); margin-bottom: 2px; }

.contact-form { background: var(--color-dark-alt); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text-on-dark-secondary); }
.field .required { color: var(--accent-bright); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-dark-strong);
  background: rgba(245,246,248,0.04); color: var(--text-primary); font-size: 0.99rem; transition: border-color var(--t-fast), background var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(184,134,59,0.08); }
.field textarea { resize: vertical; min-height: 110px; }
.field-error { display: none; font-size: 0.83rem; color: #FF8A8A; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #FF6B6B; }
.field.invalid .field-error { display: block; }
.form-note { font-size: 0.85rem; color: var(--text-on-dark-muted); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.active { display: block; animation: fadeUp 0.4s var(--ease); }
.form-success .ico-success { width: 56px; height: 56px; border-radius: 50%; background: rgba(184,134,59,0.18); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success .ico-success svg { width: 26px; height: 26px; color: var(--accent-bright); }
/* Repli affiché uniquement quand la demande passe par le client mail : sans client
   configuré, rien ne s'ouvre et le prospect doit pouvoir récupérer son message. */
.form-fallback { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, rgba(245,246,248,0.12)); }
.form-fallback p { font-size: 0.92rem; opacity: 0.8; margin-bottom: 12px; }
.form-fallback a { text-decoration: underline; }

select option { background: var(--color-dark-alt); color: var(--text-primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); border-top: 1px solid var(--border); color: var(--text-on-dark-secondary); padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--border-dark); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--text-primary); margin-bottom: 14px; }
.end-card ~ .footer-top .footer-brand .brand { display: none; }
.footer-brand p { font-size: 0.95rem; max-width: 280px; margin-bottom: 20px; }
.footer-contact-line { display: flex; align-items: center; gap: 8px; font-size: 0.93rem; margin-bottom: 8px; }
.footer-contact-line a:hover { color: var(--text-primary); }
.footer-col h4 { color: var(--text-primary); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.93rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 26px; font-size: 0.83rem; }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a:hover { color: var(--text-primary); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,14,26,0.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--color-dark-alt); border: 1px solid var(--border-dark-strong); border-radius: var(--radius-lg);
  max-width: 620px; width: 100%; max-height: 85vh; overflow-y: auto; padding: clamp(28px, 4vw, 44px);
  position: relative; color: var(--text-on-dark); transform: translateY(16px) scale(0.98); transition: transform var(--t-base);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(245,246,248,0.06); display: flex; align-items: center; justify-content: center; color: var(--text-on-dark);
  transition: background var(--t-fast);
}
.modal-close:hover { background: rgba(245,246,248,0.14); }
.modal-close svg { width: 16px; height: 16px; }
#modalContent h3 { color: var(--text-primary); font-size: 1.5rem; margin-bottom: 6px; padding-right: 40px; }
#modalContent .project-sector-tag { display: block; margin-bottom: 18px; }
#modalContent .project-block { margin-bottom: 18px; }
#modalContent .label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-on-dark-muted); margin-bottom: 6px; }
#modalContent p { font-size: 0.95rem; }
#modalContent ul { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
#modalContent li { font-size: 0.97rem; color: var(--text-on-dark-secondary); display: flex; gap: 8px; }
#modalContent li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

/* ---------- Legal pages ---------- */
.legal-page { padding-top: clamp(140px, 16vw, 180px); padding-bottom: 100px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 40px; margin-bottom: 14px; }
.legal-page p, .legal-page li { color: var(--text-secondary); font-size: 0.96rem; margin-bottom: 12px; }
.legal-page li { padding-left: 4px; }
.legal-page ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-page .placeholder { background: var(--accent-light); color: var(--accent-bright); padding: 2px 8px; border-radius: 6px; font-weight: 600; font-size: 0.88em; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; font-size: 0.93rem; font-weight: 600; color: var(--text-secondary); }
.legal-back:hover { color: var(--accent); }

/* ---------- Reveal on scroll ----------
   Uniquement opacity + transform : un flou animé coûte cher sur mobile et le film
   n'en utilise pas. Les éléments « émergent du noir » par une courte montée. */
/* « translate » plutôt que « transform » : l'apparition ne doit pas écraser la transformation
   propre à l'élément (inclinaison 3D d'une carte, survol). */
[data-reveal] {
  opacity: 0; translate: 0 22px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease), transform var(--t-base);
}
[data-reveal].in-view { opacity: 1; translate: none; }
[data-reveal-stagger] > * {
  opacity: 0; translate: 0 18px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease), transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
[data-reveal-stagger].in-view > * { opacity: 1; translate: none; }
[data-reveal-stagger].in-view > *:nth-child(1) { transition-delay: 0.02s; }
[data-reveal-stagger].in-view > *:nth-child(2) { transition-delay: 0.09s; }
[data-reveal-stagger].in-view > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].in-view > *:nth-child(4) { transition-delay: 0.23s; }
[data-reveal-stagger].in-view > *:nth-child(5) { transition-delay: 0.30s; }
[data-reveal-stagger].in-view > *:nth-child(6) { transition-delay: 0.37s; }
[data-reveal-stagger].in-view > *:nth-child(7) { transition-delay: 0.44s; }
[data-reveal-stagger].in-view > *:nth-child(8) { transition-delay: 0.51s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 12px; background: var(--accent); color: var(--color-dark); padding: 10px 18px;
  border-radius: var(--radius-sm); z-index: 999; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Mobile nav overlay ---------- */
@media (max-width: 920px) {
  .main-nav { position: fixed; inset: 0; top: 0; background: var(--color-dark); flex-direction: column;
    justify-content: center; align-items: center; gap: 6px; transform: translateY(-100%); opacity: 0;
    transition: transform var(--t-base), opacity var(--t-base); z-index: 90; }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { color: var(--text-on-dark); font-size: 1.4rem; padding: 14px 24px; }
  .main-nav a:hover { background: rgba(245,246,248,0.08); }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.desktop-only { display: none; }
  .mobile-nav-cta { display: inline-flex !important; margin-top: 24px; }
  /* Le panneau du menu (z-index 90) recouvrait le logo et le bouton de fermeture :
     toucher la croix ne faisait rien, on ne pouvait sortir du menu qu'en changeant de page. */
  .site-header .brand, .nav-toggle { position: relative; z-index: 95; }
  /* « .main-nav a » imposait un texte clair au bouton or (2,6:1) */
  .main-nav a.btn-primary { color: var(--color-dark); }
  .main-nav a.btn-primary:hover { background: var(--accent-bright); }
}

.desktop-only { }
@media (max-width: 640px) { .desktop-only { display: none; } }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

.cta-banner {
  background: linear-gradient(135deg, var(--color-dark), #1B2740); color: var(--text-primary); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px); text-align: center; margin-inline: var(--gutter);
}
.cta-banner h2 { color: var(--text-primary); margin-bottom: 14px; }
.cta-banner p { max-width: 520px; margin-inline: auto; margin-bottom: 30px; color: var(--text-on-dark-secondary); }
.cta-banner .hero-cta { justify-content: center; margin-top: 0; }
.cta-banner .btn-secondary { color: var(--text-primary); border-color: var(--border-dark-strong); }
.cta-banner .btn-secondary:hover { border-color: var(--text-primary); background: rgba(245,246,248,0.06); }
.cta-note {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  font-size: 0.9rem; font-weight: 600; color: var(--accent-bright);
}
.cta-note svg { width: 15px; height: 15px; flex-shrink: 0; }
.hero-note {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  font-size: 0.93rem; font-weight: 600; color: var(--accent-bright);
}
.hero-note svg { width: 16px; height: 16px; flex-shrink: 0; }


/* ===================================================================
   COUCHE CINÉMATIQUE
   Langage visuel d'un film de motion design, transposé en scroll :
   tout émerge du noir, une idée par écran, un arc or comme signature.
   Règle de l'or : traits lumineux, CTA, un mot par section. Rien d'autre.
   =================================================================== */

.film-section { padding-block: clamp(96px, 13vw, 176px); overflow: hidden; }
.film-head { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto clamp(48px, 7vw, 88px); }
.film-head p { margin: 20px auto 0; max-width: 560px; font-size: 1.08rem; }
.film-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.02em; color: var(--text-primary); text-wrap: balance;
}
.film-title .accent-word, .film-h1 .accent-word {
  background: linear-gradient(90deg, var(--accent-bright), var(--accent-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nw { white-space: nowrap; }

/* ---------- Arc lumineux (signature) ----------
   Une ellipse géante dont seul le bord haut est visible : un filet de 1 px or,
   estompé aux extrémités, avec un halo large et très faible. Il se déploie
   depuis le centre (clip-path) quand sa section entre à l'écran. */
.arc {
  --arc-w: min(230vw, 2600px);
  position: absolute; left: 50%; bottom: 0; z-index: 1; pointer-events: none;
  width: var(--arc-w); aspect-ratio: 3 / 1; border-radius: 50%;
  transform: translate(-50%, 64%);
  border-top: 1px solid rgba(217, 167, 92, 0.75);
  -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 38%, #000 62%, transparent 88%);
  mask-image: linear-gradient(90deg, transparent 12%, #000 38%, #000 62%, transparent 88%);
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1.6s var(--ease);
}
.arc::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border-top: 8px solid rgba(184, 134, 59, 0.22); filter: blur(12px);
}
.arc::after {
  content: ''; position: absolute; left: 30%; right: 30%; top: -160px; height: 320px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(184, 134, 59, 0.10), transparent 70%);
}
.arc.in-view { clip-path: inset(0 0 0 0); }
.arc-sentinel { position: absolute; left: 0; right: 0; bottom: 160px; height: 1px; pointer-events: none; }
.arc--wide { --arc-w: min(300vw, 3200px); transform: translate(-50%, 86%); }
.hero--film > .arc { transform: translate(-50%, 86%); }
.hero--film > .arc-sentinel { bottom: 60px; }
.arc--tight { --arc-w: min(160vw, 1800px); transform: translate(-50%, 82%); }

/* Sous-pages : même signature sous le bandeau d'en-tête, sans toucher au HTML */
.page-hero::after {
  content: ''; position: absolute; left: 50%; bottom: 0; z-index: 1; pointer-events: none;
  width: min(230vw, 2600px); aspect-ratio: 3 / 1; border-radius: 50%;
  transform: translate(-50%, 93%);
  border-top: 1px solid rgba(217, 167, 92, 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 38%, #000 62%, transparent 88%);
  mask-image: linear-gradient(90deg, transparent 12%, #000 38%, #000 62%, transparent 88%);
}

/* ---------- Grille d'arrière-plan atténuée ----------
   Suggère la masse (des dizaines de dossiers, de demandes) sans être lisible. */
.dim-grid {
  position: absolute; inset: -6% -8% auto; height: 112%; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 118px; gap: 18px;
  opacity: 0.3; filter: blur(1px);
  transform: perspective(1400px) rotateX(22deg) scale(1.08); transform-origin: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 18%, transparent 74%);
}
.dim-grid span {
  position: relative; border-radius: var(--radius-md); border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--color-surface-alt), var(--color-surface));
}
.dim-grid span::before, .dim-grid span::after {
  content: ''; position: absolute; left: 16px; height: 7px; border-radius: 4px; background: rgba(245, 246, 248, 0.22);
}
.dim-grid span::before { top: 22px; width: 46%; }
.dim-grid span::after { top: 40px; width: 70%; background: rgba(245, 246, 248, 0.12); }
.dim-grid span:nth-child(5n+2)::before { width: 34%; }
.dim-grid span:nth-child(3n)::after { width: 52%; }
@media (max-width: 720px) { .dim-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 96px; } }

/* ---------- Carte d'interface flottante ---------- */
.ui-card {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-surface) 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(245, 246, 248, 0.06);
}
.ui-card__head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.ui-card__dots { display: flex; gap: 6px; }
.ui-card__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(245, 246, 248, 0.14); }
.ui-card__pill {
  margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); color: var(--text-secondary);
}
/* Profondeur : la carte pivote en perspective, son contenu flotte 24 px au-dessus de son fond. */
.ui-card {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.ui-card.is-tilting { transition: transform 0.15s linear, opacity 0.7s var(--ease), translate 0.7s var(--ease); }
.ui-card > * { transform: translateZ(24px); }
.tilt-l { --ry: 5deg; --rx: 3deg; }
.tilt-r { --ry: -5deg; --rx: 3deg; }
@media (max-width: 860px) { .tilt-l, .tilt-r { --rx: 0deg; --ry: 0deg; } }

/* ---------- Hero (plan d'ouverture) ---------- */
.hero--film {
  background: var(--color-dark);
  padding-top: clamp(132px, 16vw, 196px);
  padding-bottom: clamp(120px, 14vw, 190px);
}
.hero-film { position: relative; z-index: 2; max-width: 1000px; margin-inline: auto; text-align: center; }
.hero-film .eyebrow { justify-content: center; }
.film-h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5.2rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em; color: var(--text-primary); text-wrap: balance;
}
/* Découpage mot à mot : chaque mot monte depuis un masque, décalé de 60 ms */
.film-h1.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.film-h1.is-split .w > span { display: inline-block; transform: translateY(108%); transition: transform 0.75s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.film-h1.is-split.in-view .w > span { transform: none; }

.hero--film .hero-sub { margin: 30px auto 0; max-width: 620px; }
.hero--film .hero-cta { justify-content: center; }
.hero--film .hero-note { color: var(--text-secondary); }
.hero--film .hero-note svg { color: var(--accent-bright); }

/* Barre de recherche qui se tape seule : l'intention réelle d'un prospect */
.search-card { max-width: 640px; margin: clamp(40px, 5vw, 56px) auto 0; text-align: left; }
.search-card__bar {
  display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px;
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.12rem); color: var(--text-primary);
}
.search-card__bar > svg { width: 20px; height: 20px; color: var(--text-secondary); flex-shrink: 0; }
.search-card__q { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-card__caret {
  display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -0.2em;
  background: var(--accent-bright); animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.search-card__go {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--color-dark);
}
.search-card__go svg { width: 16px; height: 16px; }
.search-card__list { border-top: 1px solid var(--border); padding: 8px; }
.search-card__list li {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text-secondary);
  opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.search-card__list li svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--ink-faint); }
.search-card__list li b { color: var(--text-primary); font-weight: 600; }
.search-card__list li:first-child { background: rgba(245, 246, 248, 0.05); }
.search-card.is-done .search-card__list li { opacity: 1; transform: none; }
.search-card.is-done .search-card__list li:nth-child(2) { transition-delay: 0.08s; }
.search-card.is-done .search-card__list li:nth-child(3) { transition-delay: 0.16s; }

.hero--film .hero-meta { justify-content: center; text-align: center; margin-top: clamp(56px, 7vw, 88px); }
.hero--film .hero-meta-item .num { color: var(--text-primary); }

/* ---------- Situations (constat) ---------- */
.situations {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px; max-width: 1000px; margin-inline: auto;
}
.situation {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start;
  padding: 20px 22px; border-left: 2px solid var(--accent-soft-strong);
  background: linear-gradient(90deg, rgba(18, 27, 46, 0.72), rgba(18, 27, 46, 0));
}
.situation svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 3px; color: var(--text-secondary); }
.situation h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.situation p { font-size: 0.95rem; }
@media (max-width: 760px) { .situations { grid-template-columns: 1fr; } }

/* ---------- Méthode : étapes reliées par un trait or qui se dessine ---------- */
.film-steps { position: relative; z-index: 2; max-width: 1060px; margin-inline: auto; }
.film-step {
  position: relative; display: grid; grid-template-columns: 64px 1fr 1.05fr; gap: 0 clamp(24px, 4vw, 56px);
  align-items: center; padding-block: clamp(28px, 4vw, 44px);
}
.film-step__rail { position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.film-step:first-child .film-step__rail { top: 50%; }
.film-step:last-child .film-step__rail { bottom: 50%; }
.film-step__rail::after {
  content: ''; position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 0 12px rgba(217, 167, 92, 0.5);
  transition: transform 0.9s var(--ease);
}
.film-step.in-view .film-step__rail::after { transform: scaleY(1); }
.film-step__num {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-dark); border: 1px solid var(--border-strong);
  font-weight: 700; font-size: 1rem; color: var(--text-secondary);
  transition: border-color 0.6s var(--ease) 0.3s, color 0.6s var(--ease) 0.3s, box-shadow 0.6s var(--ease) 0.3s;
}
.film-step.in-view .film-step__num { border-color: var(--accent); color: var(--accent-bright); box-shadow: 0 0 0 6px var(--accent-soft); }
.film-step__text h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 10px; }
.film-step__text p { max-width: 380px; }
.film-step__ui { padding: 18px; }
@media (max-width: 860px) {
  .film-step { grid-template-columns: 52px 1fr; gap: 16px 20px; }
  .film-step__num { width: 52px; height: 52px; }
  .film-step__rail { left: 25px; }
  .film-step > .ui-card { grid-column: 2; }
}

/* Mini-interfaces des étapes */
.mini-bars { display: flex; flex-direction: column; gap: 12px; }
.mini-bars li { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 14px; font-size: 0.88rem; color: var(--text-secondary); }
.mini-bars li i { display: block; height: 8px; border-radius: 4px; background: rgba(245, 246, 248, 0.16); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.9s var(--ease) 0.35s; }
.in-view .mini-bars li i { transform: scaleX(var(--v, 0.5)); }
.mini-tags { display: flex; flex-direction: column; gap: 8px; }
.mini-tags li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(245, 246, 248, 0.04); font-size: 0.88rem; color: var(--text-secondary); }
.mini-tags li span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); color: var(--text-secondary); white-space: nowrap; }
.mini-tags li.is-pick { background: rgba(245, 246, 248, 0.07); color: var(--text-primary); }
.mini-flow { display: flex; align-items: center; gap: 8px; }
.mini-flow li { flex: 1; min-width: 0; text-align: center; padding: 14px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(245, 246, 248, 0.04); font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.mini-flow li svg { width: 18px; height: 18px; margin: 0 auto 8px; color: var(--text-secondary); }
.mini-flow .sep { flex: 0 0 18px; height: 1px; padding: 0; border: 0; background: var(--border-strong); }
.mini-chart { width: 100%; height: auto; }
.mini-chart .grid-l { stroke: var(--border); stroke-width: 1; }
.mini-chart .line { fill: none; stroke: var(--text-primary); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s var(--ease) 0.3s; }
.in-view .mini-chart .line { stroke-dashoffset: 0; }
.mini-chart .axis { fill: var(--text-secondary); font-size: 11px; font-family: var(--font-sans); }

/* ---------- Preuve : la démo d'extraction ---------- */
.proof { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.proof .film-title { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.proof__lead { margin-top: 22px; font-size: 1.06rem; max-width: 460px; }
.proof__stat { margin-top: 40px; position: relative; }
.proof__num { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.proof__num b { font-size: clamp(4.5rem, 10vw, 7.5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; color: var(--accent-bright); }
.proof__num span { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; color: var(--text-primary); }
.proof__caption { margin-top: 10px; font-size: 0.95rem; }
.proof__num { position: relative; }
.proof__curve { position: absolute; left: 38%; top: 0; width: 62%; height: 100%; pointer-events: none; overflow: visible; }
.proof__curve path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
.proof__curve .fill { stroke: none; fill: url(#curveFill); stroke-dasharray: none; opacity: 0; transition: opacity 1s var(--ease) 1.2s; }
.in-view .proof__curve path { stroke-dashoffset: 0; }
.in-view .proof__curve .fill { opacity: 1; }
.proof__second { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: baseline; gap: 14px; }
.proof__second b { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); }
.proof__second span { font-size: 0.95rem; color: var(--text-secondary); }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }

.extract-card__fields { padding: 8px 18px 4px; }
.extract-card__fields > div {
  display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.93rem;
  opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(0.45s + var(--i, 0) * 0.16s);
}
.extract-card__fields > div:last-child { border-bottom: 0; }
.in-view .extract-card__fields > div { opacity: 1; transform: none; }
.extract-card__k { color: var(--text-secondary); }
.extract-card__v { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.extract-card__st { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.extract-card__st svg { width: 13px; height: 13px; }
.is-found .extract-card__st { background: rgba(245, 246, 248, 0.10); color: var(--text-primary); }
.is-missing .extract-card__v {
  justify-self: start; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--text-secondary);
  padding: 3px 10px; border-radius: var(--radius-full); border: 1px dashed rgba(245, 246, 248, 0.32);
}
.is-missing .extract-card__st { border: 1px dashed rgba(245, 246, 248, 0.32); color: var(--text-secondary); }
.extract-card__foot { padding: 14px 18px 18px; font-size: 0.85rem; border-top: 1px solid var(--border); }

/* ---------- Appel final ---------- */
.final-cta { text-align: center; padding-block: clamp(120px, 16vw, 220px); overflow: hidden; }
.final-cta .container { position: relative; z-index: 2; }
.final-cta .film-title { max-width: 860px; margin-inline: auto; }
.final-cta .btn { margin-top: 44px; padding: 17px 34px; font-size: 1.02rem; }
.final-cta__alt { display: block; margin-top: 20px; font-size: 0.95rem; color: var(--text-secondary); }
.final-cta__alt a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.final-cta__alt a:hover { text-decoration-color: var(--text-primary); }

/* ---------- Carte de fin + bandeau des métiers ---------- */
.end-card { text-align: center; padding-bottom: clamp(44px, 6vw, 64px); }
.end-card__mark { width: 56px; height: 56px; margin: 0 auto 18px; }
.end-card__name { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.end-card__line { margin-top: 8px; font-size: 1.05rem; color: var(--text-secondary); }
.end-card__meta { margin-top: 18px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-secondary); }
.zone-marquee {
  overflow: hidden; padding-block: 18px; margin-bottom: clamp(40px, 5vw, 56px);
  border-block: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.zone-marquee__track { display: flex; width: max-content; animation: techMarquee 60s linear infinite; }
.zone-marquee__track span {
  flex-shrink: 0; padding-inline: 18px; white-space: nowrap;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-secondary);
}
.zone-marquee__track span::after { content: '·'; margin-left: 36px; color: var(--ink-faint); }

/* ---------- Sur-titres : petites capitales espacées, grises ----------
   L'or est réservé au mot clé du titre ; le sur-titre ne garde que sa pastille. */
.eyebrow, .hero .eyebrow, .page-hero .eyebrow, .on-dark .eyebrow { color: var(--text-secondary); letter-spacing: 0.16em; font-size: 0.78rem; }

/* ---------- Mouvement réduit : tout à l'état final, immédiatement ---------- */
@media (prefers-reduced-motion: reduce) {
  .arc { clip-path: none; transition: none; }
  .film-h1.is-split .w > span, .search-card__list li, .extract-card__fields > div,
  .mini-bars li i, .film-step__rail::after { transition: none !important; transform: none !important; opacity: 1 !important; }
  .mini-bars li i { transform: scaleX(var(--v, 0.5)) !important; }
  .mini-chart .line, .proof__curve path { stroke-dashoffset: 0 !important; transition: none !important; }
  .proof__curve .fill { opacity: 1 !important; }
  .search-card__caret { animation: none; }
  .zone-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .zone-marquee__track span[aria-hidden="true"] { display: none; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; translate: none !important; }
}


/* ===================================================================
   SCÈNE 3D (js/scene3d.js)
   La classe html.has-3d n'est posée que si WebGL a démarré. Sans elle,
   rien ci-dessous ne s'applique et le décor CSS reste le décor.
   =================================================================== */
.scene3d {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.scene3d.is-on { opacity: 1; }

/* La scène remplace la grille atténuée, les arcs CSS et l'aurore des sous-pages */
html.has-3d .dim-grid,
html.has-3d .arc,
html.has-3d .aurora,
html.has-3d .page-hero::after { display: none; }

/* Fonds rendus translucides pour laisser voir la profondeur derrière le texte */
html.has-3d .hero--film,
html.has-3d .page-hero { background: transparent; }
html.has-3d .problem-section,
html.has-3d .quiz-section,
html.has-3d section[style*="color-bg-alt"] { background: rgba(18, 27, 46, 0.78) !important; }
html.has-3d .contact-section,
html.has-3d .projects-section { background: rgba(10, 14, 26, 0.7); }
html.has-3d .site-footer { background: rgba(10, 14, 26, 0.84); }
/* Section dense en texte : les situations deviennent des plaques de verre, la 3D passe derrière */
html.has-3d .situation { background: linear-gradient(90deg, rgba(18, 27, 46, 0.92), rgba(18, 27, 46, 0.66)); }
