/* =========================================================================
   OptiDette — Landing page
   Système de design piloté par variables + 3 directions (data-direction)
   ========================================================================= */

:root {
  /* Police par défaut (Direction A — Institution) */
  --font-head: "Libre Franklin", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Couleurs */
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #f1f8fb;
  --c-border: #dfe9ee;
  --c-text: #15161f;
  --c-muted: #5a5b6a;
  --c-accent: #0a7f9e;        /* Cyan foncé — texte/liens/bordures (4,6:1 sur blanc) */
  --c-accent-fill: #22c3e6;   /* Cyan du logo — aplats (boutons, badge, CTA) */
  --c-accent-soft: #e2f6fb;
  --c-accent-ink: #062a33;    /* Encre sur aplat cyan */

  /* Hero */
  --c-hero-bg: #eef7fa;
  --c-hero-text: #15161f;
  --c-hero-muted: #4f5160;
  --c-hero-panel: #ffffff;

  /* Forme */
  --radius: 7px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 40, .05), 0 1px 1px rgba(20, 22, 40, .04);
  --shadow-md: 0 12px 30px -12px rgba(20, 22, 60, .14);
  --shadow-lg: 0 40px 80px -30px rgba(20, 22, 70, .25);
  --ring: rgba(34, 195, 230, .28);

  --maxw: 1180px;
  --gutter: 28px;
}

/* ============================ DIRECTION B — SaaS moderne ================== */
:root[data-direction="saas"] {
  --font-head: "Archivo", system-ui, sans-serif;
  --c-surface-2: #f2f6ff;
  --c-border: #e4ecfb;
  --c-text: #101626;
  --c-muted: #586079;
  --c-accent: #2f5fe0;
  --c-accent-fill: #2f5fe0;
  --c-accent-ink: #ffffff;
  --c-accent-soft: #e7eefe;
  --c-hero-bg: linear-gradient(170deg, #eef3ff 0%, #f7f9ff 55%, #ffffff 100%);
  --c-hero-text: #0e1426;
  --c-hero-muted: #4a5270;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(30, 50, 110, .06);
  --shadow-md: 0 18px 40px -16px rgba(30, 50, 130, .20);
  --shadow-lg: 0 50px 100px -34px rgba(30, 50, 140, .34);
  --ring: rgba(47, 95, 224, .16);
}

/* ============================ DIRECTION C — Premium data ================= */
:root[data-direction="premium"] {
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --c-bg: #070c20;
  --c-surface: #0e1430;
  --c-surface-2: #121a3c;
  --c-border: rgba(255, 255, 255, .09);
  --c-text: #eef1ff;
  --c-muted: #98a0c4;
  --c-accent: #38d6c6;
  --c-accent-fill: #38d6c6;
  --c-accent-soft: rgba(56, 214, 198, .12);
  --c-accent-ink: #04201d;
  --c-hero-bg: radial-gradient(120% 120% at 78% 0%, #15224f 0%, #0a1130 45%, #070c20 100%);
  --c-hero-text: #f3f5ff;
  --c-hero-muted: #a7afd2;
  --c-hero-panel: #0e1430;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 24px 50px -20px rgba(0, 0, 0, .6);
  --shadow-lg: 0 50px 110px -34px rgba(0, 0, 0, .75);
  --ring: rgba(56, 214, 198, .25);
}

/* =============================== Base ==================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  transition: background .4s ease, color .4s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--c-text);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 600;
  margin: 0 0 18px;
}
:root[data-direction="premium"] .eyebrow { color: var(--c-accent); }

.section { padding: clamp(64px, 9vw, 132px) 0; }

.section-head { max-width: 680px; }
.section-head h1,
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--c-muted);
  text-wrap: pretty;
}

/* =============================== Buttons ================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background-color: var(--c-accent-fill);
  color: var(--c-accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }

.btn svg { width: 16px; height: 16px; }

/* =============================== Header ================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--c-text);
}
.brand .mark {
  width: 38px; height: 31px;
  display: grid;
  place-items: center;
  flex: none;
}
.brand .mark img { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 19px; }
.brand-tag {
  font-family: var(--font-body, inherit);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--c-muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 8px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: var(--c-muted); transition: color .15s; }
.nav-links a:hover { color: var(--c-text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta .login { font-size: 14.5px; font-weight: 600; color: var(--c-text); }

/* Menu mobile : bouton + panneau, visibles seulement ≤ 980px (voir bloc Responsive) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  flex: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.mobile-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 6px var(--gutter) 20px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav a.btn {
  display: inline-flex;
  justify-content: center;
  margin-top: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid transparent;
  color: var(--c-accent-ink);
}

/* =============================== Hero =================================== */
.hero {
  background: var(--c-hero-bg);
  color: var(--c-hero-text);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 110px);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px 7px 9px;
  border-radius: 100px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border: 1px solid color-mix(in srgb, var(--c-accent) 18%, transparent);
  margin-bottom: 26px;
}
:root[data-direction="premium"] .hero-tag { color: var(--c-accent); }
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-accent);
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  letter-spacing: -.03em;
}
.hero h1 .accent { color: var(--c-accent); }
.hero-sub {
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--c-hero-muted);
  max-width: 520px;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 30px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--c-hero-muted);
}
.hero-meta .item { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--c-accent); flex: none; }
.app-window.hero-window { box-shadow: var(--shadow-lg); }
.dash-main.hero-dash { padding: 22px 22px 24px; }
.dash-h.hero-dash-h { margin-bottom: 16px; }
.kpis.hero-kpis { grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }

/* =============================== Stats band ============================== */
.stats {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}
.stat {
  background: var(--c-bg);
  padding: 38px 28px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -.02em;
  color: var(--c-text);
}
.stat .num span { color: var(--c-accent); }
.stat .lab {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--c-muted);
}

/* =============================== Features =============================== */
.features { background: var(--c-bg); }
.features-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c-accent) 35%, var(--c-border));
}
.feature .ico {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  margin-bottom: 22px;
}
.feature .ico svg { width: 25px; height: 25px; }
.feature h3 { font-size: 21px; }
.feature p {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 15.5px;
  text-wrap: pretty;
}
.feature ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.feature li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--c-text);
}
.feature li svg { width: 17px; height: 17px; color: var(--c-accent); flex: none; margin-top: 2px; }

.app-window {
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.aw-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-surface-2) 60%, var(--c-surface));
}
.aw-dots { display: flex; gap: 7px; }
.aw-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--c-border); display: block; }
.aw-url {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c-muted);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 7px;
  padding: 6px 14px;
  flex: 1;
  max-width: 360px;
}

/* =============================== À propos =============================== */
.about { background: var(--c-bg); }
.about-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.about-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow-sm);
}
.about-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  margin-bottom: 18px;
}
.about-card .ico svg { width: 24px; height: 24px; }
.about-card h3 { font-size: 19px; }
.about-card p { margin-top: 10px; color: var(--c-muted); font-size: 15px; text-wrap: pretty; }
.about-manifesto {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
}
.about-manifesto blockquote { margin: 0; border-left: 3px solid var(--c-accent); padding-left: 20px; }
.about-manifesto blockquote p {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}
.about-principles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.about-principles li { display: flex; align-items: flex-start; gap: 10px; }
.about-principles svg { width: 18px; height: 18px; flex: none; color: var(--c-accent); margin-top: 2px; }
.about-manifesto .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 860px) {
  .about-grid, .about-manifesto { grid-template-columns: 1fr; }
}

/* ---- Dashboard mockup ---- */
.dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 540px;
}
.dash-side {
  border-right: 1px solid var(--c-border);
  padding: 22px 16px;
  background: color-mix(in srgb, var(--c-surface-2) 45%, var(--c-surface));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-side .grp {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 16px 10px 8px;
  font-weight: 600;
}
.dash-side .grp:first-child { margin-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-muted);
}
.nav-item svg { width: 17px; height: 17px; flex: none; }
.nav-item.active { background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; }

.dash-main { padding: 26px 28px; min-width: 0; }
.dash-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.dash-h h4 { font-size: 19px; }
.dash-h .sub { font-size: 13px; color: var(--c-muted); margin-top: 3px; }
.dash-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  padding: 6px 13px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.kpi {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 15px 16px;
  background: var(--c-bg);
}
.kpi .lab { font-size: 11.5px; color: var(--c-muted); }
.kpi .val {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  margin-top: 7px;
}
.kpi .val small { font-size: 14px; font-weight: 600; color: var(--c-muted); }
.kpi .chg { font-size: 11.5px; font-weight: 600; margin-top: 6px; font-family: var(--font-mono); }
.kpi .chg.down { color: #1f9d57; }
.kpi .chg.up { color: #d4791f; }
:root[data-direction="premium"] .kpi .chg.down { color: #3fe0a0; }

.dash-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}
.panel {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-bg);
  padding: 17px 18px;
}
.panel .ph {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.panel .ph .t { font-size: 13.5px; font-weight: 600; }
.panel .ph .legend { display: flex; gap: 14px; font-size: 11px; color: var(--c-muted); }
.panel .ph .legend span { display: flex; align-items: center; gap: 5px; }
.panel .ph .legend i { width: 9px; height: 9px; border-radius: 2px; display: block; }

.chart { width: 100%; height: 168px; display: block; }

/* Donut + table */
.mix { display: flex; align-items: center; gap: 18px; }
.donut { width: 116px; height: 116px; flex: none; }
.mix-legend { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.mix-legend .row { display: flex; align-items: center; gap: 9px; }
.mix-legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }
.mix-legend b { font-family: var(--font-head); font-weight: 700; }
.mix-legend .row span { color: var(--c-muted); }

.dtable { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 12.5px; }
.dtable th {
  text-align: left;
  font-weight: 600;
  color: var(--c-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--c-border);
}
.dtable td { padding: 11px 10px; border-bottom: 1px solid var(--c-border); }
.dtable tr:last-child td { border-bottom: none; }
.dtable td.num, .dtable th.num { text-align: right; font-family: var(--font-mono); }
.tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 100px;
  display: inline-block;
}
.tag.fixe { background: var(--c-accent-soft); color: var(--c-accent); }
.tag.var {
  background: color-mix(in srgb, var(--c-muted) 14%, transparent);
  color: var(--c-muted);
}

/* =============================== Pricing =============================== */
.pricing {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.pricing .section-head { margin: 0 auto 54px; text-align: center; }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plans-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plans-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.plans-1 { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
.plan {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.ptranche {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid color-mix(in srgb, var(--c-accent) 20%, transparent);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.plan-free .price { color: var(--c-accent); }
.plan.featured {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--c-accent);
  position: relative;
}
.plan .badge {
  position: absolute; top: -12px; right: 22px; left: auto;
  background: var(--c-accent-fill); color: var(--c-accent-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 100px;
  /* letter-spacing ajoute un blanc après le dernier caractère :
     on le compense pour centrer optiquement les glyphes dans la pastille */
  text-align: center; text-indent: .04em;
}
.plan .pname { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.plan .pdesc { color: var(--c-muted); font-size: 13.5px; margin-top: 6px; min-height: 38px; }
.plan .price {
  margin: 4px 0 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 33px;
  letter-spacing: -.02em;
}
.plan .price small { font-size: 15px; font-weight: 600; color: var(--c-muted); }
.plan .pper { font-size: 12.5px; color: var(--c-muted); }
/* Offre unique : nom, prix et mention centrés dans la carte.
   La liste des inclus reste alignée à gauche (lisibilité des puces). */
.plan-single .pname,
.plan-single .price,
.plan-single .pper { text-align: center; }
.plan .btn { width: 100%; margin: 22px 0; }
.plan .pinclude {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin: 22px 0 12px;
}
.pricing-foot {
  text-align: center;
  margin-top: 30px;
  font-size: 14.5px;
  color: var(--c-muted);
}
.pricing-foot a { color: var(--c-accent); font-weight: 600; }
.feature-callout {
  display: block;
  margin-top: 44px;
  line-height: 1.45;
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}
.feature-callout svg { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; margin-right: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.plan li svg { width: 16px; height: 16px; color: var(--c-accent); flex: none; margin-top: 3px; }
.plan li.muted { color: var(--c-muted); }
.plan li.muted svg { color: var(--c-muted); opacity: .55; }
.plan li .sublist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.plan li .sublist li {
  display: block;
  font-size: 12.5px;
  color: var(--c-muted);
  padding-left: 16px;
  position: relative;
}
.plan li .sublist li::before { content: "–"; position: absolute; left: 0; }

/* =============================== CTA / Contact ========================= */
.cta {
  background: var(--c-accent-fill);
  color: var(--c-accent-ink);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
:root[data-direction="premium"] .cta {
  background: linear-gradient(135deg, #122a52, #0c1738);
  border: 1px solid var(--c-border);
}
.cta h2 { color: var(--c-accent-ink); font-size: clamp(28px, 3.6vw, 42px); }
.cta p {
  margin-top: 16px;
  color: color-mix(in srgb, var(--c-accent-ink) 82%, transparent);
  font-size: 17px;
  max-width: 440px;
  text-wrap: pretty;
}
.cta-meta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.cta-meta .row { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: color-mix(in srgb, var(--c-accent-ink) 88%, transparent); }
.cta-meta svg { width: 18px; height: 18px; flex: none; }

.form {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.form .fh { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--c-text); }
.form .fields { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.field input, .field select {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.form .btn { width: 100%; margin-top: 4px; }
.form .fine { font-size: 11.5px; color: var(--c-muted); margin-top: 12px; text-align: center; }

/* =============================== Footer ================================ */
.site-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: 54px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}
.foot-brand p { color: var(--c-muted); font-size: 14px; margin-top: 16px; max-width: 290px; text-wrap: pretty; }
.foot-col h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--c-text); padding: 5px 0; opacity: .8; }
.foot-col a:hover { opacity: 1; color: var(--c-accent); }
.foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--c-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--c-muted); flex-wrap: wrap; gap: 12px;
}

/* =============================== Bandeau cookies ======================= */
.foot-bottom a[data-consent-open] { color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom a[data-consent-open]:hover { color: var(--c-accent); }
.consent {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 900; /* sous la modale de connexion (1000) */
  max-width: 620px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: login-pop .2s ease-out;
}
.consent[hidden] { display: none; }
.consent-text { flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--c-text); }
.consent-text a { color: var(--c-accent); font-weight: 600; white-space: nowrap; }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-actions .btn { padding: 11px 16px; font-size: 14px; }
@media (max-width: 600px) {
  .consent { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 12px; }
  .consent-actions .btn { flex: 1; }
}

/* =============================== Sécurité & RGPD ========================= */
.rgpd-subprocessors {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.rgpd-subprocessors li {
  font-size: 14.5px;
  color: var(--c-muted);
  padding: 14px 18px;
  background: var(--c-surface-2);
  border-radius: var(--radius);
  line-height: 1.5;
}
.rgpd-subprocessors li strong { color: var(--c-text); }
.rgpd-contact { margin-top: 24px; font-size: 14.5px; color: var(--c-muted); }
.rgpd-contact a { color: var(--c-accent); font-weight: 600; }

/* =============================== Responsive ============================ */
@media (max-width: 1180px) and (min-width: 981px) {
  .plans-5 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .plans, .plans-4, .plans-5 { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-inline: auto; }
  .cta { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  /* En-tête : les liens de section passent dans le menu hamburger */
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav:not([hidden]) { display: block; }
}
@media (max-width: 860px) {
  .brand-tag { display: none; }
}
@media (max-width: 720px) {
  /* ---- Smartphone ---- */
  :root { --gutter: 20px; }
  html { scroll-padding-top: 76px; }

  .nav { height: 64px; gap: 12px; }
  .nav-cta { gap: 10px; }
  /* L'application n'est pas accessible depuis un smartphone pour le moment :
     pas de « Se connecter » sur mobile (ni dans le menu). */
  .nav-cta .login { display: none; }
  .nav-cta .btn { padding: 11px 14px; font-size: 14px; }
  .mobile-nav { max-height: calc(100vh - 64px); }

  .hero-grid { gap: 32px; padding-block: 44px 52px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .hero-sub { margin-top: 18px; font-size: 16.5px; }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { margin-top: 22px; flex-direction: column; gap: 10px; }
  .dash-main.hero-dash { padding: 16px 16px 18px; }
  .kpis.hero-kpis { gap: 10px; }
  .panel .ph { flex-wrap: wrap; gap: 6px 12px; }
  .kpi { padding: 12px; }
  .kpi .val { font-size: 21px; }
  .kpi .chg { font-size: 11px; }
  .chart { height: 130px; }
  .dash-h h4 { font-size: 17px; }

  .section { padding: 56px 0; }
  .section-head h1, .section-head h2 { font-size: clamp(26px, 7vw, 34px); }
  .section-head p { margin-top: 14px; font-size: 16.5px; }
  .eyebrow { margin-bottom: 14px; }

  .stat { padding: 26px 16px; }
  .stat .num { font-size: 28px; }

  .features-grid { margin-top: 32px; gap: 16px; }
  .feature { padding: 26px 22px 28px; }
  .feature:hover { transform: none; }
  .feature-callout { margin-top: 32px; padding: 14px 18px; border-radius: var(--radius-lg); }

  .aw-bar { gap: 10px; padding: 10px 12px; }
  .aw-url { max-width: none; min-width: 0; font-size: 11.5px; padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .pricing .section-head { margin-bottom: 32px; }
  .plans, .plans-4, .plans-5 { grid-template-columns: 1fr; max-width: 420px; }
  .plans-1 { max-width: none; }

  .about-grid { margin-top: 32px; gap: 16px; }
  .about-card { padding: 24px 22px 26px; }
  .about-manifesto { margin-top: 20px; padding: 24px 22px; gap: 22px; }
  .about-manifesto blockquote p { font-size: 18px; }
  .about-manifesto .btn { justify-self: stretch; }

  .cta { padding: 28px 22px; gap: 28px; }
  .cta h2 { font-size: clamp(26px, 7vw, 34px); }
  .cta p { font-size: 16px; }
  .cta-meta { margin-top: 20px; }
  .form { padding: 20px 18px; }
  /* 16px minimum : évite le zoom automatique d'iOS au focus */
  .field input, .field select { font-size: 16px; }

  .site-footer { padding: 40px 0 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-col a { padding: 8px 0; }
  .foot-bottom { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 6px; }

  .rgpd-subprocessors li { padding: 12px 14px; }
}
@media (max-width: 480px) {
  /* Très petits écrans : le CTA de l'en-tête vit dans le menu, seule la marque reste */
  .nav-cta .btn { display: none; }
  .stats-grid { border-left: 0; border-right: 0; }
  .login-card { padding: 24px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   FINITION PREMIUM — couche dédiée à la direction sombre / data-room
   ========================================================================= */

/* --- CTA : corriger le contraste du texte sur fond sombre + lueur --- */
:root[data-direction="premium"] .cta {
  color: var(--c-text);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
:root[data-direction="premium"] .cta::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(56,214,198,.20), transparent 62%);
  pointer-events: none;
}
:root[data-direction="premium"] .cta > * { position: relative; z-index: 1; }
:root[data-direction="premium"] .cta h2 { color: var(--c-text); }
:root[data-direction="premium"] .cta p { color: var(--c-hero-muted); }
:root[data-direction="premium"] .cta-meta .row { color: var(--c-text); }
:root[data-direction="premium"] .cta-meta svg { color: var(--c-accent); }
:root[data-direction="premium"] .form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}

/* --- Lueur cyan sur les boutons & l'accent --- */
:root[data-direction="premium"] .btn-primary {
  box-shadow: 0 0 28px -8px var(--c-accent), 0 1px 0 rgba(255,255,255,.14) inset;
}
:root[data-direction="premium"] .btn-primary:hover {
  box-shadow: 0 0 0 4px var(--ring), 0 0 30px -6px var(--c-accent);
}
:root[data-direction="premium"] .brand .mark img {
  filter: drop-shadow(0 0 8px rgba(34, 195, 230, .45));
}

/* --- Texture de grille fine dans le hero (effet data-room) --- */
:root[data-direction="premium"] .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120,160,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 100% at 80% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
:root[data-direction="premium"] .hero > * { position: relative; z-index: 1; }

/* --- Cartes fonctionnalités : liseré supérieur lumineux au survol --- */
:root[data-direction="premium"] .feature {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-surface) 92%, var(--c-accent) 8%), var(--c-surface));
}
:root[data-direction="premium"] .feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
:root[data-direction="premium"] .feature { position: relative; overflow: hidden; }
:root[data-direction="premium"] .feature:hover::before { opacity: .8; }
:root[data-direction="premium"] .feature:hover {
  box-shadow: var(--shadow-md), 0 0 40px -20px var(--c-accent);
}

/* --- Plan mis en avant : halo cyan --- */
:root[data-direction="premium"] .plan.featured {
  box-shadow: var(--shadow-md), 0 0 0 1px var(--c-accent), 0 0 60px -24px var(--c-accent);
}

/* --- KPIs du dashboard : léger fond translucide --- */
:root[data-direction="premium"] .kpi,
:root[data-direction="premium"] .panel {
  background: color-mix(in srgb, var(--c-surface) 70%, transparent);
}

/* --- Bandeau de chiffres : numéros en dégradé subtil --- */
:root[data-direction="premium"] .stat .num span { color: var(--c-accent); }

/* =========================================================================
   WIDGET DE CONNEXION (modale)
   ========================================================================= */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-modal.open { display: flex; }
.login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, .55);
  backdrop-filter: blur(4px);
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 26px;
  animation: login-pop .18s ease-out;
}
@keyframes login-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.login-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: none; background: transparent;
  color: var(--c-muted); cursor: pointer;
  border-radius: 8px;
}
.login-x:hover { background: var(--c-accent-soft); color: var(--c-text); }
.login-x svg { width: 18px; height: 18px; }
.login-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--c-text); margin-bottom: 14px;
}
.login-brand .mark {
  width: 30px; height: 24px;
  display: grid; place-items: center;
}
.login-brand .mark img { width: 100%; height: 100%; display: block; }
.login-card h3 {
  font-family: var(--font-head);
  font-size: 22px; color: var(--c-text); margin: 0 0 4px;
}
.login-sub { font-size: 14px; color: var(--c-muted); margin: 0 0 20px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form .field { display: flex; flex-direction: column; gap: 6px; }
.login-form label {
  font-size: 13px; font-weight: 600; color: var(--c-text);
}
.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg, var(--c-surface));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-form input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.login-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; font-size: 13px; flex-wrap: wrap;
}
.login-remember {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--c-muted); font-weight: 500; cursor: pointer;
}
.login-remember input { accent-color: var(--c-accent); }
.login-link { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.login-link:hover { text-decoration: underline; }
.login-submit { width: 100%; justify-content: center; margin-top: 4px; }
.login-msg {
  font-size: 13px; margin: 0; padding: 9px 11px; border-radius: var(--radius);
  line-height: 1.4;
}
.login-msg.is-error {
  color: #b8472d;
  background: color-mix(in srgb, #b8472d 12%, transparent);
}
.login-msg.is-ok {
  color: #1d6f6b;
  background: color-mix(in srgb, #1d6f6b 14%, transparent);
}
.login-foot {
  font-size: 13px; color: var(--c-muted);
  margin: 18px 0 0; text-align: center;
}
.login-foot a { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.login-foot a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .login-form input[type="email"],
  .login-form input[type="password"] { font-size: 16px; }
}
