/* =====================================================================
   FinixPhone — Design System (v2, aligné sur les couleurs du logo)
   ---------------------------------------------------------------------
   Marque : Orange phénix #E94E1B (énergie / CTA) + Petrol #1E536B (structure)
   1. Tokens   2. Thèmes clair/sombre   3. Base & primitives   4. Sections
   ===================================================================== */

/* ------------------------------ 1. TOKENS ------------------------------ */
:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --r-sm: 8px; --r: 12px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px; --r-full: 999px;

  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ------------------------------ 2. THEMES ------------------------------ */
[data-theme="light"] {
  --bg: #F8F6F3;
  --bg-2: #F0EDE7;
  --surface: #FFFFFF;
  --surface-2: #F4F1EB;
  --text: #16242E;
  --text-muted: #55636D;
  --text-soft: #8A949C;
  --border: #E8E2D9;
  --border-strong: #D8D1C5;

  --accent: #E94E1B;          /* orange phénix */
  --accent-strong: #CE3E0E;
  --accent-soft: rgba(233, 78, 27, .10);
  --accent-line: rgba(233, 78, 27, .28);

  --petrol: #1E536B;          /* petrol structurel */
  --petrol-2: #2C6A85;
  --petrol-soft: rgba(30, 83, 107, .10);

  --live: #E94E1B;
  --ok: #1F9E6E;

  --shadow-sm: 0 1px 2px rgba(20, 34, 44, .05), 0 2px 6px rgba(20, 34, 44, .04);
  --shadow-md: 0 10px 28px rgba(20, 34, 44, .09), 0 2px 6px rgba(20, 34, 44, .05);
  --shadow-lg: 0 34px 74px rgba(14, 42, 56, .18), 0 10px 24px rgba(20, 34, 44, .08);
  --grain-opacity: .025;
}

[data-theme="dark"] {
  --bg: #0A1D26;              /* petrol-navy profond dérivé du logo */
  --bg-2: #0D2530;
  --surface: #112E3A;
  --surface-2: #163845;
  --text: #EAF1F3;
  --text-muted: #9DB2BC;
  --text-soft: #6C8792;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .17);

  --accent: #FF6A3D;
  --accent-strong: #FF8258;
  --accent-soft: rgba(255, 106, 61, .16);
  --accent-line: rgba(255, 106, 61, .34);

  --petrol: #52A0B8;
  --petrol-2: #6FB6CC;
  --petrol-soft: rgba(82, 160, 184, .16);

  --live: #FF6A3D;
  --ok: #35C08A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .4);
  --shadow-lg: 0 34px 74px rgba(0, 0, 0, .55), 0 10px 24px rgba(0, 0, 0, .4);
  --grain-opacity: .035;
}

/* ------------------------------ 3. BASE ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
  position: relative;
}
/* Grain subtil pour la profondeur */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
sup { font-size: .6em; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 19px; border-radius: var(--r-full); border: 1px solid transparent;
  cursor: pointer; transition: all .22s var(--ease); white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 12px 26px -8px var(--accent); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-line { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-line-light { border-color: rgba(255,255,255,.30); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgba(255,255,255,.10); }
.btn-wa { background: #25D366; color: #06301a; }
.btn-wa:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow, .kicker { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12.5px; color: var(--accent); }
.kicker { display: inline-block; margin-bottom: var(--s-4); }
.kicker-petrol { color: var(--petrol); }
.kicker-light { color: var(--accent); }

/* ------------------------------ HEADER ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; display: block; transition: filter .3s var(--ease); }
.footer-logo { height: 44px; }
[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
@media (max-width: 620px) { .brand-logo { height: 34px; } }

.main-nav { display: flex; gap: var(--s-5); margin-left: var(--s-5); }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); position: relative; padding: 4px 0; }
.main-nav a:hover { color: var(--text); }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); transition: width .25s var(--ease); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: all .2s var(--ease); }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }

/* ------------------------------ HERO ------------------------------ */
.hero { position: relative; overflow: hidden; padding: var(--s-7) 0 var(--s-8); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -1px;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 78% 62% at 72% 18%, #000 0%, transparent 74%);
  opacity: .55;
}
.hero-glow {
  position: absolute; top: -18%; right: -8%; width: 760px; height: 760px;
  background: radial-gradient(circle at 60% 40%, var(--accent-soft) 0%, transparent 62%),
              radial-gradient(circle at 30% 70%, var(--petrol-soft) 0%, transparent 60%);
  filter: blur(6px);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-8); align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full); text-transform: none; letter-spacing: 0; color: var(--text-muted); font-size: 13px; box-shadow: var(--shadow-sm); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-title { font-size: clamp(38px, 5.1vw, 62px); font-weight: 700; margin: var(--s-5) 0 var(--s-4); max-width: 15ch; }
.hero-title .hl { position: relative; color: var(--accent); white-space: nowrap; }
.hero-title .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .1em; background: var(--accent-line); border-radius: 2px; }
.hero-sub { font-size: 19px; color: var(--text-muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0; }
.hero-trust { list-style: none; display: flex; gap: var(--s-6); padding: var(--s-5) 0 0; margin: 0; border-top: 1px solid var(--border); }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.hero-trust strong { color: var(--petrol); }
.hero-trust span { font-size: 13px; color: var(--text-soft); }

/* Product mockup */
.hero-visual { position: relative; }
/* Visuel photo (pages internes : piliers, secteurs, Maroc, EN) */
.hero-visual-photo img { width: 100%; height: 100%; max-height: 440px; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); display: block; }
@media (max-width: 960px) { .hero-visual-photo { max-width: 560px; } .hero-visual-photo img { max-height: 340px; } }
.app-window { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.app-topbar { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.app-dots i:first-child { background: var(--accent); }
.app-url { font-size: 12px; color: var(--text-soft); }
.app-body { display: grid; grid-template-columns: 54px 1fr; min-height: 380px; }
.app-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: var(--surface-2); border-right: 1px solid var(--border); }
.rail-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.rail-item { width: 26px; height: 26px; border-radius: 8px; background: var(--border); }
.rail-item.active { background: var(--petrol-soft); box-shadow: inset 0 0 0 1.5px var(--petrol); }
.app-main { padding: var(--s-5); }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--s-5); }
.app-head h3 { font-size: 15px; }
.app-head p { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.app-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--live); background: var(--accent-soft); padding: 5px 10px; border-radius: var(--r-full); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--live); opacity: .5; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }

.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-bottom: var(--s-5); }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.kpi-label { font-size: 11px; color: var(--text-soft); }
.kpi-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.kpi-delta { font-size: 11px; font-weight: 600; }
.kpi-delta.up { color: var(--ok); }
.kpi-delta.down { color: var(--text-soft); }

.app-chart { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.chart-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-soft); margin-bottom: 12px; }
.chart-tag { color: var(--petrol); font-weight: 600; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 88px; }
.chart-bars span { flex: 1; height: var(--h); background: linear-gradient(var(--petrol), color-mix(in srgb, var(--petrol) 45%, transparent)); border-radius: 4px 4px 2px 2px; }
.chart-bars span:nth-child(5) { background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 55%, transparent)); box-shadow: 0 0 0 2px var(--accent-soft); }

.call-card { position: absolute; bottom: -26px; left: -30px; width: 262px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px; }
.call-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--live); margin-bottom: 12px; }
.call-contact { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.call-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--petrol-soft); color: var(--petrol); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.call-contact strong { display: block; font-size: 14px; }
.call-contact span { font-size: 12px; color: var(--text-soft); }
.call-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; }
.call-meta b { color: var(--accent); }

/* ------------------------------ STRIP ------------------------------ */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip-inner { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; padding: var(--s-5); }
.strip-label { font-size: 13px; color: var(--text-soft); max-width: 22ch; }
.strip-logos { display: flex; flex-wrap: wrap; gap: var(--s-6); margin-left: auto; }
.strip-logos span { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-muted); opacity: .7; letter-spacing: -.01em; }

/* ------------------------------ SECTIONS ------------------------------ */
.section { padding: var(--s-7) 0 var(--s-9); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: var(--s-8); }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-7); align-items: end; }
.section-title { font-size: clamp(28px, 3.5vw, 42px); }
.section-lead { color: var(--text-muted); font-size: 18px; margin-top: var(--s-4); }

/* Value list */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.value-list li { display: flex; gap: var(--s-5); padding: var(--s-6) var(--s-5) var(--s-6) 0; border-bottom: 1px solid var(--border); transition: background .2s var(--ease); }
.value-list li:hover { background: var(--surface); }
.value-list li:nth-child(odd) { border-right: 1px solid var(--border); padding-right: var(--s-6); }
.value-list li:nth-child(even) { padding-left: var(--s-6); }
.value-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; background: var(--accent); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.value-content h3 { font-size: 21px; margin-bottom: 8px; }
.value-content p { color: var(--text-muted); font-size: 15.5px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.bento-cell { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); overflow: hidden; }
.bento-cell:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-cell h3 { font-size: 20px; margin-bottom: 10px; }
.bento-cell p { color: var(--text-muted); font-size: 15px; }
.cell-tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--petrol); background: var(--petrol-soft); padding: 4px 9px; border-radius: var(--r-full); margin-bottom: var(--s-4); }
.cell-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
.cell-lg::before { content: ""; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.cell-lg h3 { font-size: 26px; }
.cell-lg p { font-size: 16px; }
.cell-lg .cell-tag { color: var(--accent); background: var(--accent-soft); }
.cell-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: center; }

.cti-demo { display: flex; flex-direction: column; gap: 10px; position: relative; }
.cti-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; font-size: 14px; }
.cti-ic { font-size: 15px; }
.cti-match { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cti-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-family: var(--font-display); }
.cti-match b { color: var(--accent); }
.cti-note { color: var(--text-muted); font-size: 13.5px; }

.pipe-demo { display: flex; gap: 14px; align-items: flex-end; height: 120px; }
.pipe-col { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 46px; }
.pipe-col span { font-size: 11px; color: var(--text-soft); order: 2; }
.pipe-col i { width: 100%; height: var(--f); background: linear-gradient(var(--petrol), color-mix(in srgb, var(--petrol) 45%, transparent)); border-radius: 6px; order: 1; }
.pipe-col:last-child i { background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 55%, transparent)); }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit h3 { font-size: 18px; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: 15px; }
.stat-card { background: linear-gradient(160deg, var(--surface), var(--surface-2)); border-color: var(--accent-line); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 42px; color: var(--accent); letter-spacing: -.03em; display: block; margin-bottom: 6px; }

/* Trust / dark section */
.section-dark { background: var(--petrol); color: #EAF3F5; position: relative; overflow: hidden; }
.section-dark { background: linear-gradient(150deg, #0E3446 0%, #0A2836 60%, #0E2A38 100%); }
[data-theme="dark"] .section-dark { background: linear-gradient(150deg, #0C2A38, #071A22); }
.section-dark::before { content: ""; position: absolute; top: -20%; left: 60%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(233,78,27,.14), transparent 65%); pointer-events: none; }
.section-dark .section-title { color: #fff; }
.trust-layout { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: center; }
.section-lead.light { color: #B6CBD2; }
.trust-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.trust-list li { position: relative; padding-left: 30px; color: #CCDCE0; font-size: 15.5px; }
.trust-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.trust-list b { color: #fff; font-weight: 600; }

.trust-panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-xl); padding: var(--s-6); backdrop-filter: blur(4px); }
.eu-map { position: relative; aspect-ratio: 4/3; background: radial-gradient(circle at 50% 50%, rgba(82,160,184,.12), transparent 70%); border-radius: var(--r-lg); margin-bottom: var(--s-5); }
.eu-node { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border-radius: 50%; background: var(--petrol-2); transform: translate(-50%,-50%); box-shadow: 0 0 0 4px rgba(82,160,184,.20); }
.eu-node.hub { width: 16px; height: 16px; background: var(--accent); box-shadow: 0 0 0 6px rgba(233,78,27,.28); }
.eu-node.hub::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
.eu-map::before { content: ""; position: absolute; left: 48%; top: 52%; width: 55%; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,78,27,.5), transparent); transform: rotate(-24deg); }
.trust-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-3); }
.trust-metrics div { text-align: center; }
.trust-metrics strong { font-family: var(--font-display); font-size: 24px; color: #fff; display: block; }
.trust-metrics span { font-size: 12px; color: #9DB6BD; }

/* ------------------------------ SHOWCASE (slogan + image) ------------------------------ */
.showcase { position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: center; }
.showcase-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-overlay { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(9,29,38,.94) 0%, rgba(9,29,38,.80) 42%, rgba(9,29,38,.42) 100%),
  linear-gradient(0deg, rgba(233,78,27,.18), transparent 55%); }
.showcase-content { position: relative; z-index: 1; padding: var(--s-8) var(--s-5); color: #EAF3F5; }
.showcase-kicker { font-family: var(--font-body); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; color: var(--accent); }
.showcase-title { font-size: clamp(28px, 4.2vw, 48px); color: #fff; margin: var(--s-3) 0 var(--s-4); max-width: 18ch; }
.showcase-sub { font-size: 18px; color: #C4D6DB; max-width: 56ch; }
.showcase-stats { display: flex; flex-wrap: wrap; gap: var(--s-7); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.16); }
.showcase-stats strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; }
.showcase-stats span { font-size: 13px; color: #9DB6BD; }

/* Use cases */
.usecases { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-6); }
.uc-tabs { display: flex; flex-direction: column; gap: var(--s-2); }
.uc-tab { text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--text-muted); background: transparent; border: 1px solid transparent; border-radius: var(--r); padding: 14px 16px; cursor: pointer; transition: all .2s var(--ease); }
.uc-tab:hover { color: var(--text); background: var(--surface); }
.uc-tab.active { color: var(--text); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.uc-tab.active::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.uc-panel { display: grid; grid-template-columns: 1fr .82fr; gap: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); align-items: center; overflow: hidden; }
.uc-panel[hidden] { display: none; }
.uc-panel-text { padding: var(--s-3); }
.uc-panel-media { align-self: stretch; min-height: 260px; border-radius: var(--r); overflow: hidden; }
.uc-panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-panel h3 { font-size: 24px; margin-bottom: var(--s-3); }
.uc-panel p { color: var(--text-muted); font-size: 16px; max-width: 60ch; }
.uc-panel ul { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.uc-panel li { font-size: 14px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full); padding: 7px 14px; }
.uc-panel li::before { content: "→ "; color: var(--accent); font-weight: 700; }

/* ------------------------------ CONTACT ------------------------------ */
.contact { position: relative; overflow: hidden; padding-top: var(--s-6); }
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: var(--s-8); align-items: start; }
.contact-intro .section-title { font-size: clamp(28px, 3.4vw, 40px); }
.contact-intro > p { color: var(--text-muted); font-size: 18px; margin-top: var(--s-4); max-width: 42ch; }
.contact-channels { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-3); }
.contact-channels a, .contact-channels .ch { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: all .2s var(--ease); }
.contact-channels a:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ch-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.ch-ic svg { width: 22px; height: 22px; }
.ch-wa { background: rgba(37,211,102,.14); color: #1ba851; }
.ch-mail { background: var(--accent-soft); color: var(--accent); }
.ch-zone { background: var(--petrol-soft); color: var(--petrol); }
.ch-txt strong { display: block; font-size: 15px; }
.ch-txt span { font-size: 13.5px; color: var(--text-soft); }

/* Panneau WhatsApp (remplace le formulaire) */
.wa-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: var(--s-6); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.wa-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #25D366, var(--accent)); }
.wa-panel-head { display: flex; align-items: center; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); }
.wa-ic { width: 48px; height: 48px; border-radius: 14px; background: #25D366; color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 8px 20px -8px rgba(37,211,102,.8); }
.wa-panel-head strong { display: block; font-size: 16px; font-family: var(--font-display); }
.wa-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.wa-status .live-dot { background: #25D366; }
.wa-status .live-dot::after { border-color: #25D366; }

.wa-chat { padding: var(--s-6) 0 var(--s-5); }
.wa-bubble {
  position: relative; background: var(--petrol-soft); color: var(--text);
  border-radius: 4px 16px 16px 16px; padding: 14px 16px; font-size: 15px; line-height: 1.55;
  max-width: 92%;
}
.wa-meta { display: block; font-size: 11.5px; color: var(--text-soft); margin-top: 8px; padding-left: 4px; }
.wa-panel-cta { width: 100%; justify-content: center; }
.wa-panel-note { text-align: center; font-size: 12.5px; color: var(--text-soft); margin-top: var(--s-4); }

/* CTA final — petit cadre compact (sans image) */
.cta-final { padding: var(--s-5) 0 var(--s-6); }
.cta-box { position: relative; overflow: hidden; max-width: 760px; margin: 0 auto; background: linear-gradient(150deg, #0E3446, #0A2230); border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,.08); }
.cta-glow { position: absolute; top: -40%; right: -10%; width: 380px; height: 340px; background: radial-gradient(circle, rgba(233,78,27,.26), transparent 62%); pointer-events: none; }
.cta-content { position: relative; padding: var(--s-6) var(--s-7); }
.cta-content > * { position: relative; z-index: 1; }
.cta-title { font-size: clamp(22px, 2.5vw, 30px); color: #fff; margin: var(--s-3) 0; max-width: 22ch; }
.cta-sub { color: #B8CBD1; font-size: 15.5px; max-width: 52ch; margin: 0 0 var(--s-5); }
.cta-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cta-fine { color: #86A0A7; font-size: 12.5px; margin-top: var(--s-4); }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: var(--s-8); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; margin-top: var(--s-4); max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact span { font-size: 13px; color: var(--text-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-soft); }
.footer-legal { display: flex; gap: var(--s-5); }
.footer-legal a:hover { color: var(--accent); }

/* ------------------------------ PAGES SEO (prose) ------------------------------ */
.seo-body { padding: var(--s-7) 0 var(--s-8); }
.seo-wrap { max-width: 840px; margin: 0 auto; }
.seo-wrap h2 { font-size: 24px; margin: var(--s-7) 0 var(--s-3); }
.seo-wrap h2:first-of-type { margin-top: 0; }
.seo-wrap h3 { font-size: 17px; margin: var(--s-5) 0 var(--s-2); }
.seo-wrap p { color: var(--text-muted); margin-bottom: var(--s-3); }
.seo-wrap ul { color: var(--text-muted); padding-left: 1.25em; margin: 0 0 var(--s-3); }
.seo-wrap li { margin-bottom: 7px; }
.seo-wrap strong { color: var(--text); font-weight: 600; }
.seo-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a.benefit { display: block; }
a.benefit h3 { color: var(--text); }
a.benefit:hover h3 { color: var(--accent); }

/* ------------------------------ FAQ ------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: var(--s-3); background: var(--surface); overflow: hidden; transition: border-color .2s var(--ease); }
.faq details[open] { border-color: var(--accent-line); }
.faq summary { cursor: pointer; padding: var(--s-4) var(--s-5); font-family: var(--font-display); font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .2s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 var(--s-5) var(--s-5); color: var(--text-muted); margin: 0; font-size: 15.5px; }

/* ------------------------------ PAGES LÉGALES ------------------------------ */
.legal-hero { padding: var(--s-8) 0 var(--s-6); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.legal-hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-8); align-items: center; }
.legal-hero-copy { min-width: 0; }
@media (max-width: 960px) { .legal-hero-inner { grid-template-columns: 1fr; gap: var(--s-7); } .legal-hero-inner .hero-visual { max-width: 560px; } }
.legal-crumb { font-size: 13px; color: var(--text-soft); margin-bottom: var(--s-4); }
.legal-crumb a { color: var(--text-muted); }
.legal-crumb a:hover { color: var(--accent); }
.legal-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.legal-hero p { color: var(--text-muted); margin-top: var(--s-3); max-width: 62ch; font-size: 17px; }
.legal-updated { display: inline-block; font-size: 12.5px; color: var(--text-soft); margin-top: var(--s-4); background: var(--surface); border: 1px solid var(--border); padding: 5px 12px; border-radius: var(--r-full); }

.legal-content { padding: var(--s-8) 0 var(--s-9); }
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal-nav { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); padding-bottom: var(--s-6); border-bottom: 1px solid var(--border); }
.legal-nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--r-full); transition: all .2s var(--ease); }
.legal-nav a:hover { color: var(--accent); border-color: var(--accent-line); }
.legal-nav a[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent); }

.legal-content h2 { font-size: 22px; margin: var(--s-7) 0 var(--s-3); scroll-margin-top: 90px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 16px; margin: var(--s-5) 0 var(--s-2); }
.legal-content p { color: var(--text-muted); margin-bottom: var(--s-3); }
.legal-content ul { color: var(--text-muted); padding-left: 1.25em; margin: 0 0 var(--s-3); }
.legal-content li { margin-bottom: 7px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: var(--s-3) 0 var(--s-4); font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal-table th { background: var(--surface-2); font-weight: 600; color: var(--text); width: 38%; }
.legal-table td { color: var(--text-muted); }
.legal-note { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r); padding: var(--s-4) var(--s-5); margin: var(--s-4) 0; font-size: 14.5px; color: var(--text-muted); }
.legal-todo { color: var(--accent-strong); font-weight: 600; }

/* ------------------------------ WHATSAPP FLOAT ------------------------------ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 0;
  background: #25D366; color: #fff; border-radius: var(--r-full);
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); overflow: hidden;
  transition: gap .3s var(--ease), padding .3s var(--ease), transform .2s var(--ease);
  padding: 15px;
}
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-float .wa-label { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 600; font-size: 15px; transition: max-width .3s var(--ease), opacity .3s var(--ease), margin .3s var(--ease); }
.wa-float:hover { transform: translateY(-2px); gap: 10px; padding: 15px 22px 15px 18px; }
.wa-float:hover .wa-label { max-width: 200px; opacity: 1; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70%,100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
@media (max-width: 620px) { .wa-float { right: 16px; bottom: 16px; padding: 14px; } }

/* ------------------------------ RETOUR EN HAUT ------------------------------ */
.to-top {
  position: fixed; right: 26px; bottom: 94px; z-index: 59;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--r-full); box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, color .2s, border-color .2s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 620px) { .to-top { right: 18px; bottom: 82px; width: 42px; height: 42px; } }

/* ------------------------------ RESPONSIVE ------------------------------ */
@media (max-width: 960px) {
  .main-nav, .nav-login { display: none; }
  .menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-9); }
  .hero-visual { max-width: 520px; }
  .section-head.split { grid-template-columns: 1fr; gap: var(--s-4); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-lg, .cell-wide { grid-column: span 2; }
  .cell-lg { grid-row: auto; }
  .cell-wide { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-layout { grid-template-columns: 1fr; gap: var(--s-7); }
  .usecases { grid-template-columns: 1fr; }
  .uc-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .uc-tab { white-space: nowrap; flex-shrink: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: var(--s-6) 0 var(--s-8); }
  .hero { padding: var(--s-7) 0 var(--s-8); }
  .hero-trust { gap: var(--s-5); flex-wrap: wrap; }
  .value-list { grid-template-columns: 1fr; }
  .value-list li, .value-list li:nth-child(odd), .value-list li:nth-child(even) { border-right: none; padding: var(--s-5) 0; }
  .bento, .benefits-grid { grid-template-columns: 1fr; }
  .cell-lg, .cell-wide { grid-column: auto; }
  .call-card { position: relative; bottom: auto; left: auto; width: 100%; margin-top: var(--s-4); }
  .app-body { grid-template-columns: 44px 1fr; }
  .app-kpis { grid-template-columns: 1fr 1fr; }
  .strip-logos { gap: var(--s-4); }
  .wa-panel { padding: var(--s-5); }
  .uc-panel { grid-template-columns: 1fr; gap: var(--s-5); }
  .uc-panel-media { min-height: 200px; order: -1; }
  .showcase { min-height: 400px; }
  .showcase-stats { gap: var(--s-5); }
  .cta-content { padding: var(--s-5); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); text-align: center; }
  .header-actions .btn-primary { padding: 9px 14px; font-size: 14px; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
