/* =========================================================
   2D Cloud · feuille de style
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* palette de marque (constante) */
  --navy-900: #071531;
  --navy-800: #0a1b3d;
  --blue-600: #1b5cc0;
  --blue-500: #2472d6;
  --cyan-500: #2da9e8;
  --cyan-400: #46bdf3;
  --cyan-300: #7ad2f7;

  /* thème clair (par défaut) */
  --ink: #0f1b2e;
  --slate-700: #33455f;
  --slate-500: #5a6b83;
  --slate-400: #8494a8;

  --bg: #ffffff;
  --bg-soft: #f2f7fd;
  --bg-soft-2: #eaf2fb;
  --surface: #ffffff;
  --border: #dbe6f3;
  --border-soft: #e7eef8;

  --header-bg: rgba(255, 255, 255, 0.86);
  --menu-bg: #ffffff;

  --shadow-sm: 0 2px 8px rgba(16, 40, 80, 0.06);
  --shadow-md: 0 14px 40px rgba(14, 37, 81, 0.10);
  --shadow-lg: 0 30px 70px rgba(9, 24, 58, 0.16);

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1200px;

  --grad-brand: linear-gradient(135deg, #46bdf3 0%, #1f6fd6 55%, #123168 100%);
  --grad-cyan: linear-gradient(120deg, #2da9e8, #46bdf3);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  color-scheme: light;
}

/* ---------- thème sombre ---------- */
[data-theme="dark"] {
  --ink: #eaf2ff;
  --slate-700: #c3d3ea;
  --slate-500: #93a6c4;
  --slate-400: #6f83a2;

  --bg: #081123;
  --bg-soft: #0b1730;
  --bg-soft-2: #10233f;
  --surface: #0f1f3a;
  --border: #21375c;
  --border-soft: #1b2c4a;

  --header-bg: rgba(9, 18, 36, 0.82);
  --menu-bg: #0e1c3a;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
sup { font-size: 0.62em; color: var(--cyan-500); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- helpers ---------- */
.accent { color: var(--cyan-400); }
.accent-blue { color: var(--blue-500); }
[data-theme="dark"] .accent-blue { color: var(--cyan-400); }

.overline {
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--slate-500);
}
.overline--light { color: var(--cyan-300); }

.badge {
  display: inline-block; font-family: var(--font-head);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px;
}
.badge--outline { color: var(--cyan-300); border: 1px solid rgba(122, 210, 247, 0.4); background: rgba(70, 189, 243, 0.06); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--grad-cyan); color: #06263f; box-shadow: 0 10px 26px rgba(45, 169, 232, 0.4); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(45, 169, 232, 0.5); }
.btn--ghost { color: #eaf4ff; border-color: rgba(150, 195, 240, 0.4); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(20, 50, 90, 0.08), var(--shadow-sm);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.header__actions { display: flex; align-items: center; gap: 8px; }
/* logo + boutons du header au-dessus du menu plein écran (mobile) */
.brand, .theme-toggle, .nav__toggle { position: relative; z-index: 100; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(70, 189, 243, 0.10); border: 1px solid rgba(70, 189, 243, 0.18);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: #eef6ff; letter-spacing: -0.02em; }
.brand__name span { color: var(--cyan-400); }
.brand__tag { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cyan-300); font-weight: 600; }

.is-scrolled .brand__mark { background: rgba(70, 140, 220, 0.12); border-color: rgba(70, 140, 220, 0.22); }
.is-scrolled .brand__name { color: var(--ink); }
.is-scrolled .brand__name span { color: var(--blue-500); }
[data-theme="dark"] .is-scrolled .brand__name span { color: var(--cyan-400); }
.is-scrolled .brand__tag { color: var(--slate-500); }
.is-scrolled .nav__menu a { color: var(--slate-700); }
.is-scrolled .nav__toggle span { background: var(--ink); }
.is-scrolled .theme-toggle { color: var(--slate-700); }

/* thème toggle */
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 11px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(150, 195, 240, 0.28); color: #d6e6fb; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--cyan-400); background: rgba(46, 189, 243, 0.12); }
.is-scrolled .theme-toggle { border-color: var(--border); background: transparent; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu a {
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
  color: #d6e6fb; padding: 9px 16px; border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.is-scrolled .nav__menu a:hover { color: var(--ink); background: rgba(70, 140, 220, 0.10); }
.nav__cta { background: var(--grad-cyan); color: #06263f !important; font-weight: 600; box-shadow: 0 6px 18px rgba(45, 169, 232, 0.35); }
.nav__cta:hover { background: var(--grad-cyan) !important; transform: translateY(-1px); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 10px;
}
.nav__toggle span { display: block; height: 2px; width: 100%; background: #eaf4ff; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 82% 6%, #16367a 0%, #0b1f47 42%, #071531 100%);
  color: #eaf3ff; padding: 98px 0 26px;
}
[data-theme="dark"] .hero { background: radial-gradient(120% 90% at 82% 6%, #123063 0%, #091a3c 45%, #050f24 100%); }
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 240, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 240, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 70% 0%, #000 30%, transparent 78%);
}
.hero__glow {
  position: absolute; top: -160px; right: -80px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(46, 189, 243, 0.28), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero > .container { max-width: 1360px; }
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 48px; align-items: center; padding-top: 10px;
}
.hero__content { max-width: 720px; }
.hero__title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero__lead { max-width: 600px; }
.hero__content .overline { display: block; margin: 14px 0 12px; }
.hero__title { font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.03em; color: #f4faff; }
.hero__lead { margin-top: 16px; max-width: 560px; font-size: 1.1rem; color: #c2d5ee; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(122, 190, 245, 0.28);
  color: #dceaf9; transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.pill:hover { border-color: var(--cyan-400); background: rgba(46, 189, 243, 0.10); transform: translateY(-2px); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(46, 189, 243, 0.18); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.hero__foot {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(133, 176, 224, 0.22);
}
.hero__foot strong { display: block; font-family: var(--font-head); color: #eef6ff; font-size: 1.02rem; }
.hero__foot span { font-size: 0.9rem; color: #98b0d0; }
.hero__foot-mail { color: var(--cyan-300); font-weight: 500; }
.hero__foot-mail:hover { color: #fff; }

/* ---------- Cluster animé ---------- */
.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.cluster { position: relative; width: 100%; aspect-ratio: 1 / 1; animation: floatY 7s ease-in-out infinite; }
.cluster__svg { width: 100%; height: 100%; overflow: visible; }
@keyframes floatY { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

.cluster__orbit { transform-box: view-box; transform-origin: 260px 260px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.spoke { stroke-dasharray: 5 11; animation: flowDash 1.1s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -32; } }

.node .led { animation: ledBlink 1.8s ease-in-out infinite; }
.node .led--b { animation-delay: 0.6s; }
.node:nth-of-type(2n) .led { animation-duration: 2.4s; }
.node:nth-of-type(3n) .led { animation-duration: 1.4s; }
@keyframes ledBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.core-glow { transform-box: view-box; transform-origin: 260px 260px; animation: corePulse 3.4s ease-in-out infinite; }
@keyframes corePulse { 0%, 100% { transform: scale(0.9); opacity: 0.75; } 50% { transform: scale(1.15); opacity: 1; } }

.cluster__badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.8rem; color: #eaf4ff;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(12, 30, 62, 0.72); border: 1px solid rgba(90, 170, 235, 0.35);
  backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(4, 14, 36, 0.4); white-space: nowrap;
  animation: floatBadge 6s ease-in-out infinite;
}
.cluster__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(46, 189, 243, 0.2); animation: ledBlink 1.6s ease-in-out infinite; }
.cluster__badge .dot--ok { background: #59f0c2; box-shadow: 0 0 0 4px rgba(89, 240, 194, 0.2); }
.cluster__badge--1 { top: 6%; left: -4%; animation-delay: 0s; }
.cluster__badge--2 { top: 46%; right: -6%; animation-delay: 1.4s; }
.cluster__badge--3 { bottom: 7%; left: 2%; animation-delay: 2.6s; }
@keyframes floatBadge { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

/* =========================================================
   SECTIONS (générique)
   ========================================================= */
.section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.section__num {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: #fff;
  background: var(--navy-800); border-radius: 9px;
}
[data-theme="dark"] .section__num { background: var(--blue-600); }
.section__title { font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); max-width: 720px; }
.section__intro { margin-top: 16px; max-width: 680px; font-size: 1.06rem; color: var(--slate-700); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.stat {
  position: relative; overflow: hidden; padding: 28px 26px; border-radius: var(--radius-lg);
  background: radial-gradient(130% 130% at 0% 0%, #143a83 0%, #0b204b 55%, #08152f 100%);
  color: #eaf3ff; box-shadow: var(--shadow-md);
}
.stat::after { content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(46, 189, 243, 0.35), transparent 65%); filter: blur(6px); }
.stat__value { position: relative; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.55rem, 3vw, 2.05rem); letter-spacing: -0.02em; background: linear-gradient(90deg, #7ad2f7, #cfe9fb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { position: relative; margin-top: 10px; font-size: 0.95rem; color: #bcd2ec; }
.stat__label sup { color: var(--cyan-300); }

/* ---------- Arguments ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.argument {
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.argument:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.argument__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--grad-brand); color: #fff; margin-bottom: 15px; box-shadow: 0 8px 20px rgba(27, 92, 192, 0.28); }
.argument h3 { font-size: 1.14rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.argument p { color: var(--slate-500); font-size: 0.97rem; }

/* ---------- Promise ---------- */
.promise {
  display: flex; gap: 20px; align-items: center; margin-top: 30px; padding: 28px 30px; border-radius: var(--radius-lg);
  background: radial-gradient(120% 160% at 100% 0%, #133a80 0%, #0b1f47 60%, #08162f 100%);
  color: #e9f3ff; box-shadow: var(--shadow-lg);
}
.promise__icon { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; background: rgba(46, 189, 243, 0.14); border: 1px solid rgba(70, 189, 243, 0.3); color: var(--cyan-300); }
.promise p { font-size: 1.04rem; color: #d3e3f7; }
.promise strong { color: #fff; }

.sources { margin-top: 26px; font-size: 0.78rem; color: var(--slate-400); line-height: 1.6; max-width: 900px; }
.sources strong { color: var(--slate-500); }

/* ---------- Services ---------- */
.service__intro { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 34px; }
.service__intro > div { flex: 1; }
.service__intro .section__intro { margin-top: 12px; }
.service__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--grad-brand); color: #fff; box-shadow: 0 14px 30px rgba(27, 92, 192, 0.3); }

.points { display: grid; gap: 14px; margin-bottom: 34px; }
.point {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.point:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--border); }
.point__key { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--blue-500); background: rgba(36, 114, 214, 0.10); border: 1px solid rgba(36, 114, 214, 0.18); }
[data-theme="dark"] .point__key { color: var(--cyan-300); background: rgba(70, 189, 243, 0.12); border-color: rgba(70, 189, 243, 0.25); }
.point h3 { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.point p { color: var(--slate-500); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.step { position: relative; padding: 24px 22px; border-right: 1px solid var(--border-soft); }
.step:last-child { border-right: 0; }
.step__num { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-500); }
.step h4 { margin: 8px 0; font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.step p { font-size: 0.9rem; color: var(--slate-500); }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--grad-cyan); }

/* ---------- Benefit ---------- */
.benefit { margin-top: 28px; padding: 22px 26px; border-radius: var(--radius); background: var(--bg-soft-2); border-left: 4px solid var(--cyan-500); }
.benefit__label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 10px; }
[data-theme="dark"] .benefit__label { color: var(--cyan-300); }
.benefit p { color: var(--slate-700); font-size: 1.03rem; }
.benefit strong { color: var(--ink); }

/* ---------- Récap ---------- */
.recap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.recap__card { display: flex; gap: 18px; align-items: flex-start; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.recap__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cyan-400); }
.recap__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px rgba(27, 92, 192, 0.25); }
.recap__card h3 { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.recap__card p { font-size: 0.95rem; color: var(--slate-500); }

/* =========================================================
   CARROUSEL (01 → 05)
   ========================================================= */
.brochure { background: var(--bg-soft); padding: 72px 0 84px; }
.carousel { position: relative; }
.carousel__progress { display: block; height: 3px; width: min(1152px, calc(100% - 48px)); margin: 0 auto 8px; background: var(--border); border-radius: 3px; overflow: hidden; }
.carousel__progress-bar { display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0); background: var(--grad-cyan); }

.carousel__viewport { overflow: hidden; transition: height 0.45s cubic-bezier(.4, 0, .2, 1); }
.carousel__track { display: flex; align-items: flex-start; transition: transform 0.6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.slide { flex: 0 0 100%; min-width: 100%; padding: 24px 0 8px; opacity: 0.25; transition: opacity 0.5s ease; }
.slide.is-active { opacity: 1; }
.slide__inner { }

/* entrée en scène du contenu du volet actif */
.slide.is-active .section__head,
.slide.is-active .section__title,
.slide.is-active .section__intro,
.slide.is-active .service__intro,
.slide.is-active .stats,
.slide.is-active .grid-2,
.slide.is-active .points,
.slide.is-active .steps,
.slide.is-active .promise,
.slide.is-active .benefit,
.slide.is-active .recap,
.slide.is-active .sources { animation: slideUp 0.6s both; }
.slide.is-active .section__title { animation-delay: 0.05s; }
.slide.is-active .section__intro, .slide.is-active .service__intro { animation-delay: 0.1s; }
.slide.is-active .stats, .slide.is-active .points, .slide.is-active .grid-2 { animation-delay: 0.16s; }
.slide.is-active .steps, .slide.is-active .promise, .slide.is-active .recap { animation-delay: 0.22s; }
.slide.is-active .benefit, .slide.is-active .sources { animation-delay: 0.28s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* contrôles */
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.carousel__play, .carousel__arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.carousel__play:hover, .carousel__arrow:hover { transform: translateY(-2px); border-color: var(--cyan-400); color: var(--blue-500); }
[data-theme="dark"] .carousel__play:hover, [data-theme="dark"] .carousel__arrow:hover { color: var(--cyan-300); }
.carousel__play .icon-play { display: none; }
.carousel__play[aria-pressed="false"] .icon-play { display: block; }
.carousel__play[aria-pressed="false"] .icon-pause { display: none; }
.carousel__arrows { display: flex; gap: 10px; }

.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.05em;
  min-width: 42px; height: 34px; padding: 0 6px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--slate-500); cursor: pointer;
  transition: all 0.18s ease;
}
.carousel__dot:hover { border-color: var(--cyan-400); color: var(--blue-500); }
.carousel__dot.is-active { background: var(--grad-cyan); border-color: transparent; color: #06263f; box-shadow: 0 6px 16px rgba(45, 169, 232, 0.35); }

/* ---------- Carrousel: version compacte du contenu ---------- */
.brochure { padding: 54px 0 62px; }
.slide { padding: 6px 0 4px; }
.slide .section__head { margin-bottom: 14px; }
.slide .section__title { font-size: clamp(1.45rem, 2.8vw, 2rem); }
.slide .section__intro { margin-top: 12px; font-size: 0.97rem; }
.slide .service__intro { margin-bottom: 16px; gap: 18px; }
.slide .service__icon { width: 54px; height: 54px; }
.slide .stats { gap: 16px; margin: 24px 0; }
.slide .stat { padding: 20px 20px; }
.slide .stat__value { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.slide .stat__label { font-size: 0.86rem; }
.slide .grid-2, .slide .recap { gap: 16px; }
.slide .argument { padding: 18px 18px; }
.slide .argument__icon { width: 44px; height: 44px; margin-bottom: 11px; }
.slide .argument h3 { font-size: 1.02rem; margin-bottom: 5px; }
.slide .argument p,
.slide .point p,
.slide .recap__card p { font-size: 0.89rem; }
.slide .points { gap: 11px; margin-bottom: 16px; }
.slide .point { padding: 13px 18px; gap: 14px; }
.slide .point h3 { font-size: 1rem; }
.slide .step { padding: 16px 16px; }
.slide .step h4 { font-size: 0.97rem; margin: 6px 0; }
.slide .step p { font-size: 0.84rem; }
.slide .promise { margin-top: 20px; padding: 20px 24px; gap: 16px; }
.slide .promise p { font-size: 0.95rem; }
.slide .promise__icon { width: 50px; height: 50px; }
.slide .benefit { margin-top: 14px; padding: 14px 22px; }
.slide .benefit p { font-size: 0.94rem; }
.slide .recap { margin-top: 26px; }
.slide .recap__card { padding: 20px 20px; }
.slide .recap__card h3 { font-size: 1rem; }
.slide .sources { margin-top: 18px; }

/* ---------- Flèches latérales du carrousel ---------- */
.carousel { scroll-margin-top: 76px; }
.carousel__side {
  position: absolute; z-index: 6; top: 44%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.carousel__side:hover { border-color: var(--cyan-400); color: var(--blue-500); transform: translateY(-50%) scale(1.07); }
[data-theme="dark"] .carousel__side:hover { color: var(--cyan-300); }
.carousel__side--prev { left: 18px; }
.carousel__side--next { right: 18px; }
@media (max-width: 1240px) { .carousel__side--prev { left: 8px; } .carousel__side--next { right: 8px; } }
@media (max-width: 760px) {
  .carousel__side {
    display: grid; width: 38px; height: 38px;
    background: rgba(11, 23, 45, 0.5); border-color: rgba(130, 190, 245, 0.42); color: #eef6ff;
    box-shadow: 0 6px 16px rgba(4, 12, 30, 0.42); backdrop-filter: blur(3px);
  }
  .carousel__side--prev { left: 2px; }
  .carousel__side--next { right: 2px; }
}

/* ---------- Volet 01 (contexte): le plus dense, compactage renforcé ---------- */
#contexte .section__title { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
#contexte .section__intro { margin-top: 10px; font-size: 0.92rem; }
#contexte .stats { margin: 16px 0; gap: 14px; }
#contexte .stat { padding: 15px 16px; }
#contexte .stat__value { font-size: clamp(1.25rem, 2.3vw, 1.55rem); }
#contexte .stat__label { font-size: 0.82rem; margin-top: 7px; }
#contexte .grid-2 { gap: 12px; }
#contexte .argument { padding: 13px 15px; }
#contexte .argument__icon { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 11px; }
#contexte .argument h3 { font-size: 0.97rem; margin-bottom: 4px; }
#contexte .argument p { font-size: 0.84rem; line-height: 1.5; }
#contexte .promise { margin-top: 14px; padding: 15px 18px; gap: 14px; }
#contexte .promise__icon { width: 44px; height: 44px; }
#contexte .promise p { font-size: 0.9rem; }
#contexte .sources { margin-top: 12px; font-size: 0.72rem; }
/* arguments sur une seule rangée en desktop pour gagner en hauteur */
@media (min-width: 1025px) {
  #contexte .grid-2 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Carrousel: contenu compact sur mobile ---------- */
@media (max-width: 600px) {
  .brochure { padding: 34px 0 44px; }
  .slide { padding: 2px 0; }
  .slide .section__head { margin-bottom: 10px; gap: 10px; }
  .slide .section__num { min-width: 27px; height: 27px; font-size: 0.72rem; }
  .slide .overline { font-size: 0.62rem; letter-spacing: 0.12em; }
  .slide .section__title { font-size: 1.25rem; }
  .slide .section__intro { font-size: 0.83rem; margin-top: 8px; line-height: 1.5; }
  .slide .service__intro { gap: 12px; margin-bottom: 12px; }
  .slide .service__icon { width: 44px; height: 44px; border-radius: 13px; }

  .slide .stats { gap: 8px; margin: 12px 0; }
  .slide .stat { padding: 11px 13px; border-radius: 14px; }
  .slide .stat__value { font-size: 1.2rem; }
  .slide .stat__label { font-size: 0.76rem; }

  #contexte .grid-2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .slide .argument { padding: 11px 12px; }
  .slide .argument__icon { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 9px; }
  .slide .argument h3 { font-size: 0.82rem; margin-bottom: 3px; }
  .slide .argument p { font-size: 0.72rem; line-height: 1.4; }

  .slide .points { gap: 8px; margin-bottom: 12px; }
  .slide .point { padding: 11px 12px; gap: 10px; }
  .slide .point__key { width: 27px; height: 27px; font-size: 0.82rem; }
  .slide .point h3 { font-size: 0.86rem; }
  .slide .point p { font-size: 0.76rem; }

  .slide .step { padding: 11px 13px; }
  .slide .step h4 { font-size: 0.9rem; }
  .slide .step p { font-size: 0.76rem; }

  .slide .benefit { padding: 11px 14px; margin-top: 12px; }
  .slide .benefit__label { font-size: 0.66rem; }
  .slide .benefit p { font-size: 0.83rem; }

  .slide .promise { padding: 13px 15px; gap: 12px; margin-top: 12px; }
  .slide .promise__icon { width: 40px; height: 40px; }
  .slide .promise p { font-size: 0.82rem; }

  .slide .recap { gap: 10px; margin-top: 14px; }
  .slide .recap__card { padding: 13px 13px; gap: 12px; }
  .slide .recap__icon { width: 40px; height: 40px; }
  .slide .recap__card h3 { font-size: 0.88rem; }
  .slide .recap__card p { font-size: 0.76rem; }

  .slide .sources { font-size: 0.65rem; margin-top: 10px; }

  .carousel__controls { margin-top: 12px; gap: 14px; }
  .carousel__dot { min-width: 33px; height: 30px; font-size: 0.66rem; }
}

/* =========================================================
   CTA / CONTACT
   ========================================================= */
.cta { position: relative; overflow: hidden; padding: 92px 0; background: var(--navy-900); }
[data-theme="dark"] .cta { background: #050f24; }
.cta__glow { position: absolute; inset: 0; background: radial-gradient(60% 90% at 85% 20%, rgba(46, 189, 243, 0.28), transparent 60%), radial-gradient(50% 80% at 10% 90%, rgba(27, 92, 192, 0.25), transparent 60%); }
.cta__inner { position: relative; z-index: 2; max-width: 760px; }
.cta__title { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3rem); color: #f4faff; }
.cta__lead { margin-top: 18px; font-size: 1.12rem; color: #c2d5ee; max-width: 620px; }
.cta__lead strong { color: #fff; }
.cta__contacts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 34px; }
.cta__contact { display: flex; flex-direction: column; gap: 4px; padding: 20px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(122, 190, 245, 0.28); min-width: 230px; transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease; }
.cta__contact:hover { border-color: var(--cyan-400); background: rgba(46, 189, 243, 0.10); transform: translateY(-3px); }
.cta__contact-label { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan-300); }
.cta__contact-value { font-family: var(--font-head); font-weight: 600; font-size: 1.24rem; color: #f0f8ff; }
.cta__btn { padding: 18px 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-800); color: #b7cae4; padding: 40px 0; }
[data-theme="dark"] .site-footer { background: #060e20; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.brand--footer { gap: 12px; }
.brand--footer .brand__mark { background: rgba(70, 189, 243, 0.10); border-color: rgba(70, 189, 243, 0.2); }
.brand--footer .brand__name { font-size: 1.08rem; color: #eef6ff; font-weight: 600; }
.brand--footer .brand__name span { color: var(--cyan-400); }
.brand--footer .brand__name em { font-style: normal; font-weight: 400; color: #9db6d6; font-size: 0.92rem; }
.footer__meta { font-size: 0.86rem; color: #8ea6c6; text-align: right; line-height: 1.7; }
.footer__meta a { color: var(--cyan-300); }
.footer__meta a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s cubic-bezier(.2, .65, .3, 1), transform 0.6s cubic-bezier(.2, .65, .3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Pages légales
   ========================================================= */
.legal { padding: 130px 0 80px; background: var(--bg); }
.legal__inner { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--ink); }
.legal .overline { display: block; margin-bottom: 12px; }
.legal h2 { font-size: 1.25rem; color: var(--ink); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--slate-700); font-size: 1rem; }
.legal p { margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 18px; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--blue-500); }
[data-theme="dark"] .legal a { color: var(--cyan-300); }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 46px; font-family: var(--font-head); font-weight: 600; color: var(--blue-500); }
[data-theme="dark"] .legal__back { color: var(--cyan-300); }
.legal__card { margin-top: 16px; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); }
.legal__card p { margin-top: 6px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { max-width: 420px; margin-top: 8px; order: 2; }
  .hero__content { order: 1; max-width: none; }
  .stats { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .recap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--menu-bg);
    border: 0; border-radius: 0; padding: 90px 20px 24px; box-shadow: none;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    overflow-y: auto;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a { display: block; color: var(--slate-700); padding: 15px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav__menu a:hover { background: rgba(70, 140, 220, 0.10); color: var(--ink); }
  .nav__cta { justify-content: center; margin-top: 4px; }

  .hero { padding-top: 108px; }
  .service__intro { flex-direction: column; gap: 16px; }
  .footer__meta { text-align: left; }
  .brand--footer .brand__name em { display: block; }
  .cluster__badge { font-size: 0.72rem; padding: 6px 11px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .brochure { padding: 52px 0 64px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--border-soft); }
  .step:last-child { border-bottom: 0; }
  .promise { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; }
  .cta__contact { min-width: 0; width: 100%; }
  .cta__btn { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .carousel__dot { min-width: 38px; }
  .carousel__controls { gap: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide { opacity: 1; }
  .carousel__track { transition: none; }
  *, .cluster, .spoke, .node .led, .core-glow, .cluster__orbit, .cluster__badge { animation: none !important; }
}
