/* ============================================================
   NTS Energies — Design system (éditorial premium)
   Palette: bleu ciel profond, papier doux, ambre signaleur
   Typo: Fraunces (display) + Inter (texte/UI)
   ============================================================ */

/* Polices Google chargees via <link> dans _partials/head.*.html (preconnect + rendu non bloquant) */

:root {
  --ink: #0a1f36;
  --ink-2: #254762;
  --muted: #5b7490;
  --paper: #f4f8fc;
  --paper-2: #e8f0f9;
  --white: #ffffff;
  --green: #0e5f9d;
  --green-700: #1c84c6;
  --green-500: #43a7e6;
  --green-100: #d9ecfb;
  --amber: #eeb457;
  --amber-500: #d9992b;
  --line: #dfe9f4;
  --shadow-sm: 0 1px 2px rgba(10, 31, 54, 0.05);
  --shadow-md: 0 14px 34px -18px rgba(10, 31, 54, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(7, 26, 46, 0.45);
  --r: 14px;
  --r-lg: 22px;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--amber); color: var(--ink); }
[id] { scroll-margin-top: 96px; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--amber); }
.center .eyebrow::after { content: ""; width: 30px; height: 1px; background: var(--amber); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* ---------- Topbar ---------- */
.topbar {
  background: #0a2a4a;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  position: relative;
  z-index: 101;
}
.topbar-in {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 38px;
}
.topbar-contacts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-contacts a, .topbar-contacts span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-contacts a svg { width: 13px; height: 13px; color: var(--amber); }
.topbar-contacts a:hover { color: var(--amber); }
.topbar-contacts span { color: rgba(255,255,255,0.5); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-actions a { font-weight: 700; color: #fff; transition: color 0.2s; }
.topbar-actions a:hover { color: var(--amber); }
.topbar-actions .dot-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.2); }
.topbar-actions .lang-link { font-weight: 600; color: rgba(255,255,255,0.7); }

.btn.btn-sm { padding: 9px 16px; font-size: 0.84rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 248, 252, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(244, 248, 252, 0.94); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 28px; }
.brand img { height: 58px; width: auto; }

.nav-links-wrap { display: flex; align-items: stretch; }

.nav { display: flex; align-items: stretch; gap: 6px; }
.nav > li { position: relative; display: flex; align-items: center; }
.nav > li > a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2);
  border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--green); }
.nav > li.active > a::after { content: ""; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 2px; background: var(--amber); border-radius: 2px; }
.nav .caret { width: 10px; height: 10px; transition: transform 0.2s; }
.nav > li:hover .caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 520px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 14px; opacity: 0; visibility: hidden; transition: all 0.22s ease;
}
.mega.m-right { left: auto; right: 0; transform: translateY(8px); }
.nav > li:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav > li:hover .mega.m-right { transform: translateY(0); }
.mega a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.mega a small { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.mega a:hover { background: var(--paper-2); color: var(--green-700); }
.mega .mega-title { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 14px 4px; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.22s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--green); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--amber); color: var(--ink); }
.btn-accent:hover { background: var(--amber-500); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-lg { padding: 16px 30px; font-size: 0.98rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--green);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(85% 85% at 60% 30%, #000, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -200px;
  background: radial-gradient(circle, rgba(238,180,87,0.30), transparent 65%);
  filter: blur(30px);
}
.hero-inner { position: relative; z-index: 2; padding: 108px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
.hero .eyebrow { color: var(--amber); }
.hero .eyebrow::before { background: var(--amber); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.5rem); font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero p.lead { color: rgba(255, 255, 255, 0.82); margin-top: 26px; max-width: 34rem; }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.hero-card .bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-bottom: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.live { display: inline-flex; gap: 8px; align-items: center; color: var(--green-500); font-weight: 700; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(67,167,230,0); } 100% { box-shadow: 0 0 0 0 rgba(67,167,230,0); } }

.sim {
  border-radius: 14px; overflow: hidden; background: rgba(0,0,0,0.22);
  padding: 18px; border: 1px solid rgba(255,255,255,0.08);
}
.sim-head { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.sim-head i { width: 9px; height: 9px; border-radius: 50%; background: #40607f; display: inline-block; }
.sim-head i:nth-child(1) { background: #e05d52; }
.sim-head i:nth-child(2) { background: #e0b34e; }
.sim-head i:nth-child(3) { background: #4aa3cf; }
.sim-head span { margin-left: auto; font-size: 0.72rem; color: rgba(255,255,255,0.55); font-family: ui-monospace, monospace; }
.wave { height: 130px; }
.wave path { stroke: var(--amber); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wave path.fill { fill: rgba(238,180,87,0.12); stroke: none; }
.wave path.alt { stroke: var(--green-500); stroke-dasharray: 4 5; opacity: 0.7; }
.hero-card-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.hero-card-stats > div { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px 14px; }
.hero-card-stats b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--amber); }
.hero-card-stats span { font-size: 0.72rem; color: rgba(255,255,255,0.7); }

.legend { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 12px; }
.legend span {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px; border-radius: 999px;
}

/* ---------- Marquee (bandeaux outils/normes) ---------- */
.tape { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 18px 0; }
.tape-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-track span {
  font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--muted);
  padding: 0 34px; white-space: nowrap; display: flex; align-items: center; gap: 12px;
}
.tape-track span::after { content: "✦"; font-size: 0.8rem; color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 108px 0; }
.section.alt { background: var(--white); }
.section.paper-2 { background: var(--paper-2); }
.section-tight { padding: 72px 0; }
.section-head { max-width: 820px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.section-head.top-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; max-width: none; }
.section-head.top-row .btn { flex: none; }

/* ---------- Featured statement ---------- */
.statement { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.3; font-weight: 500; color: var(--ink); }
.statement em { font-style: italic; color: var(--green-700); }

/* ---------- Stats editorial ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--white); padding: 36px 30px; }
.stat .num { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat .num sup { font-size: 1.4rem; color: var(--amber); }
.stat .lbl { margin-top: 10px; font-size: 0.86rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* ---------- Services list ---------- */
.pole-title { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.pole-title .p { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--font-display); font-style: italic; font-size: 0.95rem; }
.pole-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section.alt .pole-title::after { background: var(--line); }
.pole { margin-top: 56px; }
.pole:first-of-type { margin-top: 0; }
.pole .service-row:first-of-type { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s ease, background 0.25s ease;
}
.service-row:hover { padding-left: 22px; }
.service-row .idx { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 1rem; min-width: 44px; }
.service-row h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
.service-row p { color: var(--muted); font-size: 0.94rem; margin-top: 4px; max-width: 44rem; }
.service-row .go { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: all 0.25s; }
.service-row .go svg { width: 18px; height: 18px; }
.service-row:hover .go { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }

/* ---------- Feature / step cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 34px 30px; transition: all 0.25s ease;
}
.section.alt .card { background: var(--paper); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--green); display: grid; place-items: center; color: #fff; margin-bottom: 22px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .n { position: absolute; top: 30px; right: 30px; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--green-100); }
.card.amber .ico { background: var(--amber); color: var(--ink); }

/* ---------- Sector cards (visuel) ---------- */
.sector-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.sector-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--g, linear-gradient(140deg, #0e5f9d, #0a3a6b)); }
.sector-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,42,74,0.86) 100%); z-index: 0; }
.sector-card .body { position: relative; z-index: 1; padding: 30px; }
.sector-card .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.sector-card h3 { color: #fff; font-size: 1.5rem; margin-top: 8px; }
.sector-card p { color: rgba(255,255,255,0.8); font-size: 0.92rem; margin-top: 6px; }
.sector-card .arr { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; display: grid; place-items: center; transition: 0.25s; }
.sector-card .arr svg { width: 18px; height: 18px; }
.sector-card:hover .arr { background: #fff; color: var(--ink); transform: rotate(-45deg); }

/* ---------- Projects ---------- */
.project-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.project-feature.rested { grid-template-columns: 1fr 1.15fr; }
.pf-media { position: relative; min-height: 330px; }
.pf-media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.pf-media .ph svg { width: 120px; height: 120px; opacity: 0.9; }
.pf-body { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.pf-body .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-500); }
.pf-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 12px 0 14px; }
.pf-body p { color: var(--muted); }
.pf-meta { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.pf-meta b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.pf-meta span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- News ---------- */
.news-card { border-bottom: 1px solid var(--line); padding: 30px 6px; display: grid; grid-template-columns: 130px 1fr auto; gap: 26px; align-items: center; }
.news-card:last-child { border-bottom: 0; }
.news-card .date { font-size: 0.78rem; color: var(--muted); }
.news-card .cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-700); }
.news-card h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.news-card p { color: var(--muted); font-size: 0.93rem; }
.news-card .go { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: 0.25s; }
.news-card:hover .go { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Team ---------- */
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.team-av { height: 200px; display: grid; place-items: center; position: relative; background: linear-gradient(140deg, #0e5f9d, #1c84c6); }
.team-av .init { font-family: var(--font-display); font-size: 4rem; color: rgba(255,255,255,0.92); }
.team-av::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 110px; height: 110px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; }
.team-body { padding: 26px; }
.team-body h3 { font-size: 1.3rem; }
.team-body .role { color: var(--green-700); font-size: 0.83rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 4px 0 10px; }
.team-body p { color: var(--muted); font-size: 0.92rem; }
.team-body .social { margin-top: 14px; display: inline-flex; gap: 10px; }
.team-body .social a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: 0.2s; }
.team-body .social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.team-body .social svg { width: 15px; height: 15px; }

/* ---------- Director block ---------- */
.director-block { max-width: 52rem; }
.director-block p.lead { text-align: justify; text-justify: inter-word; }
.director-sign { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.director-sign .ds-av { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(140deg, #0e5f9d, #1c84c6); display: grid; place-items: center; }
.director-sign .ds-av .init { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.director-sign b { display: block; font-size: 1.05rem; }
.director-sign span { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 2px; }

/* ---------- Process ---------- */
.step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--font-display); font-size: 2.4rem; color: var(--green-100); line-height: 1; font-style: italic; }
.step h4 { font-family: var(--font-display); font-size: 1.2rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 4px; cursor: pointer; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .pm { flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; transition: 0.3s; }
.faq-item[open] .faq-q .pm { transform: rotate(45deg); background: var(--amber); border-color: var(--amber); }
.faq-a { overflow: hidden; }
.faq-a-inner { padding: 0 4px 26px; color: var(--muted); font-size: 0.98rem; max-width: 46rem; }
.faq-item[open] .faq-a-inner { animation: faqFade 0.3s ease; }
@keyframes faqFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- CTA banner ---------- */
.cta-panel {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(120deg, #0b3d6e, #0e5f9d);
  color: #fff; padding: 80px 8%;
  display: grid; grid-template-columns: 1.25fr auto; gap: 40px; align-items: center; isolation: isolate;
}
.cta-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 44px 44px; }
.cta-panel::after { content: ""; position: absolute; z-index: -1; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(238,180,87,0.4), transparent 68%); }
.cta-panel h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta-panel p { color: rgba(255,255,255,0.78); margin-top: 14px; max-width: 42rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Services quick nav ---------- */
.service-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.service-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-2); background: var(--white);
  transition: all 0.2s;
}
.service-nav a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Stat band (inner pages) ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-band .stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.section.alt .stat-band .stat-card { background: var(--paper); }
.stat-band .stat-card b { font-family: var(--font-display); font-size: 2rem; color: var(--green); }
.stat-band .stat-card span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Steps (méthodologie) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; }
.section.alt .step-card { background: var(--paper); }
.step-card .sn { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--green-100); line-height: 1; }
.step-card h4 { font-size: 1.15rem; margin: 14px 0 8px; }
.step-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Projets & réalisations ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.btn-filter { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.btn-filter:hover { border-color: var(--ink); }
.btn-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.projects-grid.two { grid-template-columns: repeat(2, 1fr); }
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.section.alt .project-card { background: var(--paper); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-media { position: relative; aspect-ratio: 16/9; background: var(--green); overflow: hidden; }
.project-cover { position: absolute; inset: 0; display: grid; place-items: center; }
.project-cover svg { width: 46px; height: 46px; opacity: 0.95; }
.project-cover .pc-grid { position: absolute; inset: 0; opacity: 0.16; background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px); background-size: 22px 22px; }
.project-cover .pc-num { position: absolute; right: 18px; bottom: 4px; font-family: var(--font-display); font-style: italic; font-size: 4rem; color: rgba(255,255,255,0.16); line-height: 1; }
.project-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.project-cover .cover-img + .pc-grid { opacity: 0.28; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--green); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; background: linear-gradient(transparent, rgba(10,42,74,0.85)); font-family: var(--font-body); }
.gallery .gallery-note { display: none; }
.pf-media .ph img, .pf-media .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.chip-status { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.chip-status.done { background: #dfeefb; color: #1c84c6; }
.chip-status.wip { background: #fde9cc; color: #b06a12; }
.project-tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(10,42,74,0.72); color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.project-tag.amber { background: rgba(238,180,87,0.92); color: var(--ink); }
.project-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-700); margin-bottom: 10px; }
.project-body h3 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.3; margin-bottom: 12px; }
.project-body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--green); }

.link-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; color: var(--green); }
.link-more span { transition: transform 0.2s; }
.link-more:hover { color: var(--green-700); }
.link-more:hover span { transform: translateX(4px); }

/* ---------- Section partagée (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 20px; }
.split-list li { display: flex; gap: 16px; }
.split-list .ico { flex: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); display: grid; place-items: center; color: var(--green); }
.section.alt .split-list .ico { background: var(--paper); }
.split-list .ico svg { width: 22px; height: 22px; }
.split-list h4 { font-size: 1.05rem; margin-bottom: 4px; }
.split-list p { color: var(--muted); font-size: 0.9rem; }
.split-media { position: relative; }
.split-media .ring { position: absolute; inset: -24px; border: 1px dashed var(--line); border-radius: var(--r); z-index: 0; }
.split-media .frame { position: relative; z-index: 1; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--green); box-shadow: var(--shadow-lg); }
.frame svg { width: 40px; height: 40px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.95; }
.split-media .tag-chart { position: absolute; z-index: 2; bottom: 18px; left: -18px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 0.8rem; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-md); }

/* ---------- Carrières ---------- */
.jobs-group { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; color: var(--ink); text-transform: uppercase; border-bottom: 2px solid var(--amber); padding-bottom: 0.6rem; margin: 0 0 1.4rem; grid-column: 1 / -1; }

.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; }
.section.alt .job { background: var(--paper); }
.job:hover { border-color: var(--ink); }
.job-loc { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-700); margin-bottom: 12px; }
.job h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 10px; }
.job h3 a { color: var(--ink); }
.job h3 a:hover { color: var(--green); }
.job p { color: var(--muted); font-size: 0.94rem; margin-bottom: 20px; }
.job-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.job-foot span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.job h4 { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); margin: 20px 0 10px; }
.job .ticks { margin-bottom: 6px; }
.job .ticks li { font-size: 0.88rem; }
.job-cond { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.job-cond li { display: flex; justify-content: space-between; gap: 14px; font-size: 0.86rem; padding: 9px 0; border-top: 1px solid var(--line); }
.job-cond li span { color: var(--muted); }
.job-cond li b { color: var(--ink); font-weight: 700; text-align: right; }

/* ---------- Fiches services (portes cliquables) ---------- */
.service-doors { display: grid; gap: 14px; }
.service-door {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 28px; cursor: pointer; text-align: left; width: 100%;
  font-family: var(--font-body); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.section.alt .service-door { background: var(--paper); }
.service-door:hover { transform: translateX(6px); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.service-door .sd-idx { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--green-100); line-height: 1; }
.service-door .sd-body h3, .service-door .sd-body [role="heading"] { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 6px; display: block; }
.service-door .sd-body p, .service-door .sd-body .sd-desc { color: var(--muted); font-size: 0.93rem; margin: 0; display: block; }
.service-door .sd-arrow { width: 42px; height: 42px; flex: none; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--green); transition: 0.2s; font-size: 1.1rem; }
.service-door:hover .sd-arrow { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateX(2px); }
.service-door .sd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.service-door .sd-tags span { font-size: 0.72rem; font-weight: 600; color: var(--green-700); background: var(--green-100); padding: 4px 10px; border-radius: 999px; }

/* ---------- Modal fiche service ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(10, 31, 54, 0.62); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: min(880px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform: translateY(14px); transition: transform 0.25s;
}
.modal.open .modal-panel { transform: none; }
.modal-head { position: sticky; top: 0; background: var(--ink); color: #fff; padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; z-index: 2; }
.modal-head .mh-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.modal-head h3 { font-family: var(--font-display); font-size: 1.45rem; margin-top: 4px; }
.modal-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: none; color: #fff; font-size: 1.05rem; cursor: pointer; font-family: var(--font-body); }
.modal-close:hover { background: rgba(255,255,255,0.12); }
.modal-body { padding: 30px; }
.modal-body > .md-lead { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; margin-bottom: 26px; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.modal-cols h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.modal-cols h4 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.md-steps { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.md-steps li { position: relative; padding-left: 34px; counter-increment: st; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; }
.md-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--green-700); font-weight: 700; }
.md-deliv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.md-deliv li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.md-deliv li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.modal-foot { border-top: 1px solid var(--line); padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--white); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal-foot p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.modal-foot p b { display: block; color: var(--ink); font-size: 0.95rem; font-family: var(--font-display); }

/* ---------- Timeline (à propos) ---------- */
.timeline { position: relative; margin: 10px 0 0; padding: 0; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 32px 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 5px solid var(--green); }
.tl-item.point-amber::before { border-color: var(--amber); }
.tl-year { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--green-700); }
.tl-item h4 { font-family: var(--font-display); font-size: 1.12rem; margin: 2px 0 6px; }
.tl-item p { color: var(--muted); font-size: 0.93rem; margin: 0; max-width: 44rem; }

/* ---------- Feature cards ---------- */
.feature-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px; transition: all 0.25s ease; }
.section.alt .feature-card { background: var(--paper); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card .n { position: absolute; top: 30px; right: 30px; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--green-100); }
.feature-card .ico { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); display: grid; place-items: center; color: var(--green); margin-bottom: 20px; }
.section.alt .feature-card .ico { background: var(--white); }
.feature-card .ico svg { width: 24px; height: 24px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }
.feature-card .link-more { margin-top: 18px; position: relative; }
.feature-card .team-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 22px 0 18px; }
.feature-card .team-specs { display: grid; gap: 10px; margin: 16px 0 18px; }
.feature-card .team-specs > div { border-top: 1px dashed var(--line); padding: 11px 0 4px; }
.feature-card .team-specs b { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--ink); }
.feature-card .team-specs span { font-size: 0.83rem; color: var(--muted); display: block; margin-top: 3px; line-height: 1.55; }
.feature-card .chips { margin: 0; }
.feature-card .chips span { font-size: 0.74rem; padding: 5px 11px; }
.feature-card .team-stats > div { padding: 12px 0 0; border-top: 1px solid var(--line); }
.feature-card .team-stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--green); }
.feature-card .team-stats span { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 2px; }

/* ---------- Chips (innovation) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.section.alt .chips span { background: var(--paper); }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--green); color: #fff; padding: 96px 0 110px; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: 0.25; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 44px 44px; }
.page-hero::after { content: ""; position: absolute; width: 480px; height: 480px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(238,180,87,0.28), transparent 66%); filter: blur(20px); }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 22px; letter-spacing: 0.04em; }
.crumbs a:hover { color: var(--amber); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 22ch; }
.page-hero p { margin-top: 20px; color: rgba(255,255,255,0.82); max-width: 44rem; font-size: 1.1rem; }
.page-hero .hero-meta { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.page-hero .hero-meta b { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--amber); }
.page-hero .hero-meta span { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ico { width: 48px; height: 48px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--green); }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item b { font-family: var(--font-display); font-size: 1.1rem; }
.contact-item span { color: var(--muted); font-size: 0.94rem; display: block; }
.contact-cards { display: grid; gap: 18px; }
.contact-card-extra { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-top: 18px; }
.contact-card-extra b { font-family: var(--font-display); font-size: 1rem; display: block; margin-bottom: 4px; }
.contact-card-extra span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Tableau comparatif (logo) ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 20px; font-size: 0.92rem; }
.compare-table th { background: var(--ink); color: #fff; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-table td { border-top: 1px solid var(--line); color: var(--ink-2); }
.compare-table td b { color: var(--ink); }
.compare-table tbody tr:nth-child(even) { background: var(--paper); }
.compare-table tbody tr:first-child td:not(:first-child) { color: var(--green); font-weight: 700; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; box-shadow: var(--shadow-md); }
.form-panel h3 { font-size: 1.5rem; }
.form-panel > p { color: var(--muted); margin: 8px 0 26px; font-size: 0.96rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.83rem; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); font-size: 0.95rem; color: var(--ink); transition: all 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(67,167,230,0.14); background: #fff; }
.form-note { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
.form-ok { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-weight: 600; font-size: 0.92rem; }
.form-ok.form-err { background: #fdecea; color: #b3261e; }
.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: #d64541 !important; box-shadow: 0 0 0 4px rgba(214,69,65,0.12) !important; }
.field-invalid label { color: #b3261e; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding: 28px 0; }
.newsletter-text h5 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.newsletter-text p { font-size: 0.92rem; color: rgba(255,255,255,0.6); max-width: 38ch; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.newsletter-form input[type="email"] { min-width: 260px; padding: 13px 16px; border: 1.5px solid rgba(255,255,255,0.18); border-radius: 12px; background: rgba(255,255,255,0.06); color: #fff; font-size: 0.95rem; transition: all 0.2s; }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(238,180,87,0.18); background: rgba(255,255,255,0.1); }
.newsletter-form .form-ok { width: 100%; background: rgba(67,167,230,0.18); color: var(--green-100); font-weight: 600; font-size: 0.85rem; }

/* ---------- Back to top ---------- */
.back-top { position: fixed; right: 22px; bottom: 24px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.25s; box-shadow: 0 8px 24px rgba(0,0,0,0.22); }
.back-top svg { width: 20px; height: 20px; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--green-700); }

/* ---------- Logo proposal ---------- */
.logo-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.logo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 34px; text-align: center; transition: 0.25s; }
.logo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.logo-stage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 52px 26px; display: grid; place-items: center; min-height: 250px; margin-bottom: 24px; }
.logo-stage img { max-height: 140px; width: auto; }
.logo-card .pick { font-size: 0.7rem; font-weight: 700; color: var(--amber-500); letter-spacing: 0.2em; text-transform: uppercase; }
.logo-card h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.logo-card p { color: var(--muted); font-size: 0.93rem; }
.compare { width: 100%; border-collapse: collapse; margin-top: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); }
.compare th, .compare td { padding: 15px 18px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: #fff; font-weight: 600; letter-spacing: 0.03em; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:nth-child(even) { background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: #0a2a4a; color: rgba(255,255,255,0.7); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 48px; padding: 72px 0 48px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { margin: 20px 0 24px; max-width: 30rem; font-size: 0.94rem; }
.footer-col h5 { color: #fff; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.93rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-hours li { font-size: 0.9rem; margin-bottom: 9px; display: flex; justify-content: space-between; gap: 12px; max-width: 240px; }
.footer-hours li b { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; align-items: center; color: rgba(255,255,255,0.5); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; display: grid; place-items: center; transition: 0.2s; }
.socials a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Panneaux régionaux Afrique · Canada ---------- */
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.region {
  position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 46px 42px;
  color: #fff; display: flex; flex-direction: column; isolation: isolate; min-height: 460px;
  box-shadow: var(--shadow-md);
}
.region::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--g, linear-gradient(150deg, #0e5f9d, #0a3a6b)); }
.region::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 80% at 82% 8%, #000, transparent 76%);
}
.region .r-eye { display: inline-flex; gap: 10px; align-items: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.region .r-eye em { font-style: normal; color: var(--amber); }
.region h3 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 20px 0 14px; }
.region .r-sub { color: rgba(255,255,255,0.78); font-size: 0.98rem; margin-bottom: 24px; max-width: 40ch; }
.region ul.issues { display: grid; gap: 15px; }
.region .issues li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: rgba(255,255,255,0.88); line-height: 1.5; }
.region .issues li b { display: block; color: #fff; font-weight: 700; }
.region .issues li small { color: rgba(255,255,255,0.68); font-size: 0.83rem; }
.region .issues li::before {
  content: "+"; flex: none; width: 24px; height: 24px; margin-top: 1px;
  border: 1px solid rgba(255,255,255,0.32); border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem; color: var(--amber); font-weight: 700;
}
.region .r-foot { margin-top: auto; padding-top: 30px; display: flex; gap: 18px; flex-wrap: wrap; }
.region .r-chips { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.region .r-chip { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.28); padding: 7px 13px; border-radius: 999px; letter-spacing: 0.05em; }
.region .r-cta { font-weight: 700; font-size: 0.92rem; color: #fff; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.region .r-cta svg { width: 16px; height: 16px; transition: transform 0.2s; }
.region .r-cta:hover { color: var(--amber); }
.region .r-cta:hover svg { transform: translateX(4px); }
.region.afrique { --g: linear-gradient(150deg, #0e5f9d, #0a3a6b); }
.region.afrique .r-eye em { color: var(--amber); }
.region.afrique .r-cta { color: var(--amber); }
.region.canada { --g: linear-gradient(150deg, #0e5f9d, #0a3a6b); }

/* ---------- Bande de contexte (cartes problématique) ---------- */
.context-band {
  display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); margin-top: 54px; padding-top: 46px;
}
.context-card { display: flex; gap: 18px; align-items: flex-start; }
.context-card .ico {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--green);
}
.section.alt .context-card .ico { background: var(--paper); }
.context-card .ico svg { width: 22px; height: 22px; }
.context-card h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 6px; }
.context-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Matrice solutions & indicateurs (Afrique) ---------- */
.sol-band { background: var(--ink); border-radius: var(--r-lg); padding: clamp(38px, 6vw, 62px); box-shadow: var(--shadow-md); scroll-margin-top: 120px; }
.sol-band .sb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 6px; }
.sol-band .sb-head .eyebrow { color: var(--amber); }
.sol-band .sb-head h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 46rem; margin-top: 14px; }
.sol-row { display: grid; grid-template-columns: 56px 1.15fr 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.13); }
.sol-row:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.13); }
.sol-num { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; color: var(--amber); line-height: 1; }
.sol-body h4 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.sol-body p { color: rgba(255,255,255,0.7); font-size: 0.94rem; margin-bottom: 14px; }
.sol-body ul { list-style: none; display: grid; gap: 8px; }
.sol-body ul li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.84rem; color: rgba(255,255,255,0.62); line-height: 1.45; }
.sol-body ul li::before { content: "+"; color: var(--amber); font-weight: 700; margin-top: -1px; }
.sol-kpis { display: grid; gap: 12px; align-content: start; }
.sol-kpi { padding: 14px 16px; border: 1px solid rgba(255,255,255,0.16); border-radius: 14px; background: rgba(255,255,255,0.04); }
.sol-kpi b { display: block; color: var(--amber); font-size: 1.02rem; letter-spacing: 0.01em; }
.sol-kpi span { display: block; color: rgba(255,255,255,0.58); font-size: 0.82rem; line-height: 1.45; margin-top: 4px; }
.sol-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.13); color: rgba(255,255,255,0.6); font-size: 0.82rem; line-height: 1.6; max-width: 68rem; }
.sol-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--amber); }
.sol-band .btn { flex: none; }

/* ---------- Reveal ---------- */
/* Progressive enhancement : le contenu est visible par défaut (aucun JS requis).
   Seul le sélecteur html.js active l'effet d'apparition (classe posée par main.js). */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Animations avancées ---------- */
/* Barre de progression de lecture (remplie par JS) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--green-500)); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* Hero : respiration lente du fond quadrillé + halo */
html.js .hero-bg { animation: heroDrift 16s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: translateY(-1.5%); } to { transform: translateY(1.5%); } }
html.js .hero::after { animation: haloPulse 7s ease-in-out infinite; }
@keyframes haloPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
html.js .hero .wave circle { animation: dotPulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dotPulse { 0%, 100% { r: 2.6; opacity: 0.75; } 50% { r: 3.4; opacity: 1; } }

/* Eyebrow : le trait se dessine quand la section révèle */
html.js .reveal .eyebrow::before, html.js .reveal .eyebrow::after { transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1) 0.15s; }
html.js .reveal .center .eyebrow::before { transform-origin: right; }
html.js .reveal .center .eyebrow::after { transform-origin: left; }
html.js .reveal.in .eyebrow::before, html.js .reveal.in .eyebrow::after { transform: scaleX(1); }

/* Nav : trait ambre qui s'anime au survol (en plus du li.active) */
.nav > li > a { position: relative; }
.nav > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--amber); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.28s cubic-bezier(0.2, 0.6, 0.2, 1); }
.nav > li.active > a::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav > li > a:hover::after { transform: scaleX(1); }
}

/* Boutons : micro-interaction au clic + flèche qui glisse */
.btn { position: relative; transition: all 0.25s cubic-bezier(0.2, 0.6, 0.2, 1); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.2, 1); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost-light:hover svg { transform: translateX(3px); }

/* Cartes : le numéro/icône respire au survol */
html.js .card .ico, html.js .feature-card .ico, html.js .service-door .sd-ico { transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
@media (hover: hover) {
  html.js .card:hover .ico, html.js .feature-card:hover .ico { transform: translateY(-4px) scale(1.06); }
  html.js .service-door:hover .sd-ico { transform: translateY(-3px) scale(1.05); }
  .service-row .go svg { transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .service-row:hover .go svg { transform: rotate(0deg) translateX(2px); }
}

/* Surbrillance de section visée par ancre */
@keyframes sectFlash { 0% { box-shadow: inset 0 0 0 999px rgba(238,180,87,0.16); } 100% { box-shadow: inset 0 0 0 999px rgba(238,180,87,0); } }
.sect-flash { animation: sectFlash 1.6s ease-out 0.2s; border-radius: var(--r-lg); }

/* Ancres : marge pour ne pas masquer sous le header sticky */
[id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }

/* Accessibilité : réduire tout mouvement si demandé */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal .eyebrow::before, html.js .reveal .eyebrow::after { opacity: 1; transform: none; transition: none; }
  html.js .hero-bg, html.js .hero::after, html.js .hero .wave circle, .tape-track, .live::before,
  .scroll-progress i, .nav > li > a::after, .back-top { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav > li > a { padding: 10px 10px; font-size: 0.88rem; }
  .brand img { height: 50px; }
  .nav-wrap { gap: 16px; }
  .nav-cta .btn { padding: 11px 18px; font-size: 0.86rem; }
}
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { text-align: left; }
  .hero-card { max-width: 560px; }
  .legend { margin-top: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-feature, .project-feature.rested { grid-template-columns: 1fr; }
  .pf-body { padding: 40px 34px; }
  .regions { grid-template-columns: 1fr; }
  .context-band { grid-template-columns: 1fr; }
  .sol-row { grid-template-columns: 44px 1fr; }
  .sol-kpis { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .mega { left: auto; right: -60px; transform: translateY(8px); }
  .nav > li:hover .mega { transform: translateY(0); }
  .logo-board { grid-template-columns: 1fr; }
  .modal-cols { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar-contacts span { display: none; }
  .topbar-in { justify-content: space-between; }
  .nav-links-wrap { position: fixed; inset: 78px 0 auto 0; background: var(--paper); flex-direction: column; padding: 12px 6% 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform 0.32s ease; z-index: 90; overflow: auto; max-height: calc(100vh - 78px); }
  .nav-links-wrap.open { transform: none; }
  .nav, .nav > li { display: block; }
  .nav > li > a { display: flex; justify-content: space-between; width: 100%; padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > li.active > a::after { display: none; }
  .mega, .mega.m-right { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-left: 2px solid var(--amber); border-radius: 0; min-width: 0; padding: 4px 0 12px 8px; display: none; background: transparent; }
  .nav > li.open .mega { display: block; }
  .nav .caret { width: 14px; height: 14px; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .news-card { grid-template-columns: 1fr; gap: 8px; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 82px 0; }
  .page-hero { padding: 74px 0 84px; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-row p { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 0 76px; }
  .service-door { grid-template-columns: 46px 1fr; }
  .service-door .sd-arrow { display: none; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-card-stats { grid-template-columns: 1fr 1fr; }
  .sector-card { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-panel { padding: 56px 7%; }
  .form-panel { padding: 30px 24px; }
  .region { padding: 34px 26px; min-height: 0; }
  .sol-band { padding: 30px 22px; }
  .sol-kpis { grid-template-columns: 1fr; }
  .newsletter-form { width: 100%; }
  .newsletter-form input[type="email"] { min-width: 0; flex: 1; }
  .newsletter-form .btn { width: 100%; }
  .back-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }
}