/* =========================================================
   R2D2 — feuille de style unique
   Thème clair par défaut, thème sombre automatique.
   ========================================================= */

/* Palette reprise du site d'origine :
   navy #171d4b, corail #ff4653 et #ff7859, turquoise #00c3ad, bleu ciel #6ec1e4. */
:root {
  --ink: #171d4b;
  --ink-soft: #30325e;
  --body: #54595f;
  --muted: #7a7a7a;
  --line: #e8e8e8;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7fa;

  --navy: #171d4b;
  --navy-deep: #111b4f;
  --coral: #ff4653;
  --coral-soft: #ff7859;
  --teal: #00a79f;
  --teal-dark: #00827c;
  --sky: #6ec1e4;
  --indigo: #30325e;
  --amber: #fe7e08;

  --accent: var(--coral);
  --accent-contrast: #ffffff;
  --gradient: linear-gradient(118deg, var(--coral) 0%, var(--coral-soft) 100%);
  --gradient-cool: linear-gradient(135deg, var(--teal) 0%, var(--sky) 100%);

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 12px 32px -12px rgba(11, 18, 32, .14);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, .05), 0 32px 64px -24px rgba(11, 18, 32, .22);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --container: 1140px;
  --nav-h: 88px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.14; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.015em; }

h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.015em; }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); text-decoration-color: color-mix(in srgb, var(--teal) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--teal); }

img, svg { max-width: 100%; height: auto; }
ul { margin: 0 0 1em; padding-left: 1.1em; }
li { margin-bottom: .4em; }
strong { color: var(--ink-soft); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .container { padding-inline: 32px; } }
@media (min-width: 1100px) { .container { padding-inline: 40px; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(23, 29, 75, .35); }

.nav { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }

/* Logo d'origine, conservé tel quel : navy, rouge et turquoise sur fond clair. */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { display: block; width: auto; height: 50px; }
.site-footer .brand img { height: 56px; }

@media (max-width: 560px) {
  .brand img { height: 38px; }
}

.nav-links { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1 1 auto; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: block; padding: 8px 11px; border-radius: 9px;
  color: var(--body); text-decoration: none; font-size: .9rem; font-weight: 500;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a.is-active { color: var(--ink); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  cursor: pointer; transition: border-color .18s ease, transform .18s ease;
}
.nav-toggle:hover { border-color: var(--teal); transform: translateY(-1px); }
.nav-toggle svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* ---------- boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--indigo) 70%, transparent); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px -14px color-mix(in srgb, var(--indigo) 75%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--teal); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ---------- sections ---------- */

.section { padding: clamp(60px, 9vw, 104px) 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); padding-block: clamp(60px, 9vw, 104px); }
.section-alt + .section { padding-top: clamp(60px, 9vw, 104px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal-dark); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gradient); border-radius: 2px; }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head p { font-size: 1.1rem; color: var(--body); margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.lead { font-size: 1.17rem; color: var(--ink-soft); }

/* ---------- hero sombre ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-deep);
  padding: clamp(74px, 10vw, 136px) 0 clamp(68px, 9vw, 116px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(58% 70% at 88% 6%, rgba(255, 70, 83, .32) 0%, transparent 62%),
    radial-gradient(52% 64% at 6% 92%, rgba(0, 195, 173, .26) 0%, transparent 64%),
    radial-gradient(70% 90% at 50% 120%, rgba(110, 193, 228, .16) 0%, transparent 70%),
    linear-gradient(165deg, #1b2360 0%, #111b4f 52%, #0d1540 100%);
}
/* trame fine, rappel du quadrillage d'une grille de mesure */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(74% 74% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(74% 74% at 50% 40%, #000 0%, transparent 78%);
}

.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

.hero .eyebrow { color: #ff8a7a; }
.hero .eyebrow::before { background: var(--gradient); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5rem); }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .14em;
  background: var(--gradient); border-radius: 999px; opacity: .9;
}
.hero-sub { font-size: 1.3rem; line-height: 1.6; color: #b9c2e4; max-width: 54ch; margin-bottom: 1.5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .26); }
.hero .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .05); font-size: .86rem; font-weight: 500; color: #d6dcf4;
}
.hero-tags svg { width: 15px; height: 15px; color: #19c3b8; flex: none; }

/* ---------- carte profil IRO ---------- */

.radar-card {
  position: relative;
  padding: clamp(26px, 3.4vw, 36px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  box-shadow: 0 32px 70px -30px rgba(0, 0, 0, .7);
}
.radar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.radar-head p { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.radar-head strong { display: block; margin-top: 4px; color: #fff; font-size: 1.04rem; font-weight: 600; letter-spacing: -.01em; }
.radar-score { text-align: right; flex: none; }
.radar-score b { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: #fff; }
.radar-score span { font-size: .76rem; color: #ff9a8c; font-weight: 600; }

.radar-svg { display: block; width: 100%; height: auto; margin: 4px 0 2px; }
.radar-grid { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.radar-axis { stroke: rgba(255, 255, 255, .13); stroke-width: 1; }
.radar-label { fill: rgba(255, 255, 255, .82); font-size: 13px; font-weight: 700; font-family: var(--sans); letter-spacing: .02em; }
.radar-grid { stroke: rgba(255, 255, 255, .2); }
.radar-axis { stroke: rgba(255, 255, 255, .18); }
.radar-shape { fill: rgba(255, 70, 83, .3); stroke: #ff5c66; stroke-width: 2.2; stroke-linejoin: round; }
.radar-dot { fill: #fff; }

.radar-foot { margin: 10px 0 0; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.radar-foot a { color: #86cdea; }

html.js .radar-shape, html.js .radar-dot { transform-box: fill-box; transform-origin: center; animation: radar-in 1.05s cubic-bezier(.22,.78,.3,1) .25s both; }
html.js .radar-grid, html.js .radar-axis, html.js .radar-label { animation: fade-in .7s ease .1s both; }
@keyframes radar-in { from { transform: scale(.05); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- bande citation sous le hero ---------- */

.quote-band { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: clamp(32px, 4.6vw, 48px) 0; }
.quote-band .container { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); flex-wrap: wrap; }
.quote-band blockquote {
  margin: 0; flex: 1 1 520px; padding-left: 20px; border-left: 3px solid var(--coral);
  font-family: var(--serif); font-size: clamp(1.14rem, 2.2vw, 1.52rem); line-height: 1.34; color: #fff;
}
.quote-band cite { font-style: normal; font-size: .84rem; color: rgba(255, 255, 255, .55); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- grilles & cartes ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .97rem; margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 13px; background: color-mix(in srgb, var(--teal) 13%, transparent);
  color: var(--teal-dark);
}
.card-icon svg { width: 22px; height: 22px; }
.card-list { list-style: none; padding: 0; margin: 16px 0 0; }
.card-list li { position: relative; padding-left: 24px; margin-bottom: .5em; font-size: .95rem; }
.card-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gradient);
}
.card-num { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: color-mix(in srgb, var(--teal) 55%, var(--muted)); display: block; margin-bottom: 12px; }

/* ---------- tableau humain / IA ---------- */

.split { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 36px); align-items: start; }
.split-col { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.split-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 18px; }
.split-col h3 span { font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.split-col ul { list-style: none; padding: 0; margin: 0; }
.split-col li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-soft); margin: 0; }
.split-col li:first-child { border-top: 0; padding-top: 0; }
.split-mid { align-self: center; text-align: center; font-family: var(--serif); font-size: 1.1rem; color: var(--muted); padding: 10px; }
.split-mid svg { width: 34px; height: 34px; color: var(--teal); display: block; margin: 0 auto 6px; }

/* ---------- IRO ---------- */

.iro-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dim {
  display: flex; gap: 14px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.dim:hover { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); transform: translateY(-2px); }
.dim-key {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--gradient); color: #fff; font-weight: 700; font-size: .92rem; letter-spacing: -.02em;
}
.dim h4 { margin-bottom: .25em; font-size: .99rem; }
.dim p { font-size: .88rem; margin: 0; color: var(--muted); }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 28px; }
.scale-step { padding: 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); }
.scale-step b { display: block; color: var(--ink); font-size: .97rem; margin-bottom: 3px; }
.scale-step span { font-size: .82rem; color: var(--muted); }
.scale-step i { display: block; width: 100%; height: 4px; border-radius: 4px; margin-bottom: 12px; background: var(--line); }
.scale-step:nth-child(1) i { background: #e06c6c; }
.scale-step:nth-child(2) i { background: #e0a45c; }
.scale-step:nth-child(3) i { background: #d9c45c; }
.scale-step:nth-child(4) i { background: #68bd84; }
.scale-step:nth-child(5) i { background: var(--gradient); }

.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
@media (max-width: 1000px) { .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.format { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.format-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.format h3 { margin: 0; }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal-dark);
  font-size: .78rem; font-weight: 650; letter-spacing: .02em;
}
.format .target { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }

/* ---------- timeline méthode ---------- */

.timeline { position: relative; display: grid; gap: 4px; }
.phase {
  position: relative; display: grid; grid-template-columns: 94px 1fr; gap: clamp(16px, 3vw, 32px);
  padding: 24px 0; border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase-step { position: relative; }
.phase-step b { font-family: var(--serif); font-size: 2rem; line-height: 1; color: color-mix(in srgb, var(--teal) 60%, var(--muted)); display: block; }
.phase-step span { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--teal-dark); background: color-mix(in srgb, var(--teal) 13%, transparent); padding: 3px 10px; border-radius: 999px; }
.phase h3 { margin-bottom: .35em; }
.phase p { margin-bottom: 0; font-size: .98rem; }

/* ---------- cas types ---------- */

.case { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.case-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.case-head h3 { margin: 0; font-size: 1.08rem; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.case dd { margin: 0; font-size: .96rem; }
.case .outcome { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--teal) 10%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 24%, transparent); }
.case .outcome dt { color: var(--teal-dark); }
.case .outcome dd { color: var(--ink-soft); font-weight: 500; }

/* ---------- principes ---------- */

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.principle { padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.principle b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: .3em; }
.principle p { font-size: .92rem; margin: 0; }
.principle i { font-family: var(--serif); font-style: normal; font-size: .95rem; color: var(--teal-dark); display: block; margin-bottom: 10px; letter-spacing: .06em; }

/* ---------- bandeau CTA ---------- */

.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 68px); border-radius: var(--radius-lg);
  /* Fond navy figé : ne doit jamais suivre --ink, qui s'éclaircit en thème sombre
     et rendrait le texte blanc illisible. */
  background: linear-gradient(140deg, #1b2360 0%, #141c52 55%, #0f1740 100%);
  color: #e9eef7; box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; inset: auto -20% -70% 40%; height: 420px;
  background: radial-gradient(45% 50% at 50% 50%, rgba(255, 70, 83, .38) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #bcc8dc; max-width: 62ch; position: relative; }
.cta-band .hero-actions { margin: 26px 0 0; position: relative; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(26px, 4vw, 48px); align-items: start; }

.contact-list { list-style: none; padding: 0; margin: 0 0 26px; }
.contact-list li { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); margin: 0; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list svg { width: 19px; height: 19px; color: var(--teal); flex: none; margin-top: 4px; }
.contact-list b { display: block; color: var(--ink); font-size: .95rem; }
.contact-list span, .contact-list a { font-size: .95rem; }

.note { padding: 18px 20px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }
.note b { color: var(--ink); }

form { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field:last-of-type { margin-bottom: 22px; }
label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
label .req { color: var(--teal-dark); }
input, select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .97rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 11px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}
textarea { min-height: 128px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: clamp(44px, 6vw, 68px) 0 28px; margin-top: clamp(60px, 9vw, 100px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.footer-brand p { font-size: .94rem; max-width: 34ch; margin-top: 14px; }
.site-footer h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer a { color: var(--body); text-decoration: none; font-size: .94rem; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(30px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--muted);
}

/* ---------- page simple (mentions légales) ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2em; }
.prose h2:first-of-type { margin-top: 1em; }
.prose dl { margin: 0 0 1.4em; }
.prose dt { font-weight: 600; color: var(--ink); margin-top: .9em; }
.prose dd { margin: 0; }
.todo {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 20%, transparent);
  color: color-mix(in srgb, var(--amber) 85%, var(--ink));
  font-size: .8rem; font-weight: 600;
}

/* ---------- apparition au défilement ---------- */

/* Apparitions reprises du site d'origine : fadeInUp, fadeInLeft, fadeInRight.
   Masquage au repos uniquement si JavaScript est disponible : sans lui, tout reste visible.
   Le déplacement horizontal est ramené à 120 px et les sections sont rognées, pour qu'aucune
   barre de défilement horizontale n'apparaisse. */
html.js .reveal {
  opacity: 0; transform: translate3d(0, 100px, 0);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
html.js .reveal-l { transform: translate3d(-120px, 0, 0); }
html.js .reveal-r { transform: translate3d(120px, 0, 0); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

.section, .section-alt, .band-dark { overflow-x: clip; }

@media (max-width: 860px) {
  html.js .reveal-l, html.js .reveal-r { transform: translate3d(0, 60px, 0); }
}

/* Flottement continu des formes décoratives, repris tel quel du site d'origine */
@keyframes MoveUpDown { 0% { top: 0; } 50% { top: 10px; } 100% { top: 0; } }
.float { position: relative; animation: MoveUpDown 2s linear infinite; }
.float-slow { animation-duration: 3.2s; }

.deco-tri { position: absolute; pointer-events: none; z-index: 0; opacity: .85; }
.deco-tri img { display: block; width: 100%; height: auto; }

/* Numéros d'origine sur les cartes du constat */
.card-num-img { display: block; height: 30px; width: auto; margin-bottom: 14px; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scale { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 16px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-mid { padding: 0; }
  .split-mid svg { transform: rotate(90deg); }
  .format-grid { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 10px; }
  .phase-step { display: flex; align-items: baseline; gap: 12px; }
  .phase-step span { margin-top: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .scale { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

/* =========================================================
   Illustrations et sections à visuel
   ========================================================= */

/* pictogrammes d'origine dans les cartes */
.card-art { display: block; width: 66px; height: 66px; object-fit: contain; margin-bottom: 18px; }
.card-art-sm { width: 54px; height: 54px; margin-bottom: 14px; }
.card-art-svg { width: 54px; height: 54px; margin-bottom: 14px; color: var(--teal); }

/* liseré de couleur qui se révèle au survol */
.card { overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.card:hover::before { transform: scaleX(1); }
.card:hover .card-art { transform: scale(1.06) rotate(-2deg); }
.card-art { transition: transform .32s cubic-bezier(.22,.61,.36,1); }

/* section à deux colonnes, texte et visuel */
.feature { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 86px); }
.feature-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.015em; }
.feature-body .card-list { margin-top: 20px; }
.feature.reverse .feature-media { order: -1; }

.feature-media { position: relative; isolation: isolate; }
.feature-media::before {
  content: ""; position: absolute; inset: 6% -4% -8% -4%; z-index: -1; border-radius: 40px;
  background:
    radial-gradient(48% 54% at 22% 18%, rgba(0, 195, 173, .3) 0%, transparent 66%),
    radial-gradient(52% 58% at 82% 78%, rgba(255, 70, 83, .26) 0%, transparent 66%);
  filter: blur(26px);
}
.feature-media img {
  display: block; width: 100%; height: auto;
  border-radius: 20px; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -32px rgba(23, 29, 75, .5);
}
.feature-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }

/* ruban de repères chiffrés */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: clamp(20px, 3vw, 28px); text-align: center; }
.fact b { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1; color: var(--ink); margin-bottom: 8px; }
.fact b em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { font-size: .9rem; color: var(--body); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
}

/* =========================================================
   Rythme visuel : barre de contact, bandeau sombre, décors
   ========================================================= */

/* --- barre de contact, au-dessus de l'en-tête --- */
.topbar { background: var(--navy); color: #c3cae8; font-size: .84rem; }
.topbar .container { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; min-height: 48px; white-space: nowrap; }
.topbar a { color: #c3cae8; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--teal); flex: none; }
.topbar .topbar-cta { margin-left: auto; }
.topbar .topbar-cta a {
  background: var(--gradient); color: #fff; font-weight: 600;
  padding: 6px 18px; border-radius: 999px;
}
@media (max-width: 1000px) { .topbar { display: none; } }

/* --- boutons arrondis --- */
.btn { border-radius: 999px; }
.badge { border-radius: 999px; }

/* --- bandeau sombre pleine largeur --- */
.band-dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, #1b2360 0%, #141c52 56%, #10173f 100%);
  color: #b9c2e4;
  padding: clamp(60px, 9vw, 108px) 0;
}
.band-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(44% 56% at 86% 10%, rgba(255, 70, 83, .26) 0%, transparent 62%),
    radial-gradient(40% 52% at 8% 88%, rgba(0, 195, 173, .22) 0%, transparent 64%);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: #ff8a7a; }
.band-dark .section-head p, .band-dark .lead { color: #b9c2e4; }
.band-dark .split-col { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.band-dark .split-col li { color: #e3e8f8; border-color: rgba(255, 255, 255, .12); }
.band-dark .split-col h3 span { color: rgba(255, 255, 255, .55); }
.band-dark .split-mid { color: rgba(255, 255, 255, .6); }
.band-dark .split-mid svg { color: var(--teal); }

/* --- formes décoratives, dans l'esprit des sites du groupe --- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-dots {
  width: 136px; height: 136px; opacity: .5;
  background-image: radial-gradient(currentColor 2px, transparent 2px);
  background-size: 17px 17px; color: var(--sky);
}
.deco-ring { width: 180px; height: 180px; border: 2px dashed color-mix(in srgb, var(--teal) 55%, transparent); border-radius: 50%; }
.deco-blob {
  width: 420px; height: 420px; filter: blur(60px); opacity: .5;
  background: radial-gradient(circle at 35% 35%, rgba(0, 195, 173, .55), transparent 62%),
              radial-gradient(circle at 70% 70%, rgba(255, 70, 83, .45), transparent 62%);
}
.section, .section-alt, .band-dark { position: relative; }
.section > .container, .section-alt > .container, .band-dark > .container { position: relative; z-index: 1; }

/* --- vague de séparation, comme chez Nobelia --- */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 78px); }
.wave path { fill: var(--surface-2); }
.wave-up path { fill: var(--paper); }

/* --- étiquettes mots-clés --- */
.tags { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 26px 0 0; }
.tags li {
  margin: 0; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .88rem; font-weight: 500; color: var(--ink-soft);
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.tags li:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }

/* --- visuel sans cadre, pour les schémas --- */
.feature-media-plain img { border: 0; box-shadow: none; background: transparent; }
.feature-media-plain::before { opacity: .55; }

@media (max-width: 860px) {
  .deco-blob { width: 260px; height: 260px; }
  .deco-ring { width: 120px; height: 120px; }
}

/* --- scènes vectorielles --- */
.scene { margin: 0 0 clamp(34px, 5vw, 52px); text-align: center; }
.scene img { display: block; width: 100%; max-width: 820px; height: auto; margin-inline: auto; }
.scene figcaption { margin-top: 14px; font-size: .95rem; color: var(--muted); font-style: italic; }
.scene-wide img { max-width: 900px; }
.scene-dark { margin-bottom: clamp(30px, 4vw, 44px); }
.scene-dark img { max-width: 520px; }
.scene-contact { margin-bottom: 26px; }
.scene-contact img { max-width: 520px; }
