@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&display=swap');
/* ————————————————————————————————————————
   Pikodex — site vitrine SaaS
   Registre comptable contemporain, version premium :
   ivoire, encre, vert registre profond, sérif Fraunces.
———————————————————————————————————————— */

:root {
  --paper: #f7f4ee;
  --paper-deep: #efeae0;
  --card: #fdfcf9;
  --ink: #23201a;
  --ink-soft: #6b655a;
  --ink-faint: #98917f;
  --line: #e3ddd0;
  --line-strong: #cfc7b6;

  --green: #2f5d4a;
  --green-deep: #234939;
  --green-night: #10241c;
  --green-tint: #e7efe9;
  --cream: #f3efe3;
  --gold: #c9a86a;

  --amber: #a8631a;
  --amber-tint: #faf0dd;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;

  --shadow-card: 0 1px 2px rgba(35, 32, 26, 0.05), 0 10px 34px -16px rgba(35, 32, 26, 0.22);
  --shadow-pop: 0 2px 6px rgba(16, 36, 28, 0.12), 0 24px 60px -24px rgba(16, 36, 28, 0.38);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden; /* neutralise le débordement des décorations (auroras, halos, maquette) */
}

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(820px, calc(100% - 48px)); }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--paper-deep);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

em { font-style: italic; }

/* ————— Animations d'entrée ————— */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.anim-up {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.05s);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 0.1s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-up { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sheet, .sheet-fly, .badge-check, .orbit-doc, .shield-orbit, .flux-trace, .pill-dot { animation: none !important; }
}

/* ————— Marque ————— */

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.mk-1 { fill: var(--green); }
.mk-2 { fill: var(--green); opacity: 0.45; }
.mk-3 { fill: var(--green); opacity: 0.22; }
.mk-line { fill: var(--paper); }
/* Wordmark « Pikodex » en police ronde, couleur adaptée au fond, point du i doré */
.brand-name { font-family: "Fredoka", var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: 0.005em; line-height: 1; }
.brand-name .bw-i { position: relative; }
.brand-name .bw-i::before {
  content: ""; position: absolute; left: 50%; top: 0.02em;
  width: 0.19em; height: 0.19em; border-radius: 50%;
  background: var(--gold); transform: translateX(-50%);
}

/* ————— Boutons ————— */

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

.btn-solid { background: var(--green); color: #fdfcf9; }
.btn-solid:hover { background: var(--green-deep); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--paper-deep); }

.btn-cream { background: var(--cream); color: var(--green-night); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45); }
.btn-cream:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(0, 0, 0, 0.5); }

.btn-outline { border-color: rgba(243, 239, 227, 0.35); color: var(--cream); }
.btn-outline:hover { border-color: var(--cream); background: rgba(243, 239, 227, 0.08); }

/* ————— Navigation ————— */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* En haut de page (héros sombre) : texte crème */
.nav:not(.is-scrolled):not(.is-open) .brand-name { color: var(--cream); }
.nav:not(.is-scrolled):not(.is-open) .nav-links a { color: rgba(243, 239, 227, 0.72); }
.nav:not(.is-scrolled):not(.is-open) .nav-links a:hover { color: var(--cream); }
.nav:not(.is-scrolled):not(.is-open) .btn-ghost { color: var(--cream); }
.nav:not(.is-scrolled):not(.is-open) .btn-ghost:hover { background: rgba(243, 239, 227, 0.1); }
.nav:not(.is-scrolled):not(.is-open) .btn-solid { background: var(--cream); color: var(--green-night); }
.nav:not(.is-scrolled):not(.is-open) .btn-solid:hover { background: #fff; }
.nav:not(.is-scrolled):not(.is-open) .mk-1,
.nav:not(.is-scrolled):not(.is-open) .mk-2,
.nav:not(.is-scrolled):not(.is-open) .mk-3 { fill: var(--cream); }
.nav:not(.is-scrolled):not(.is-open) .mk-line { fill: var(--green-night); }
.nav:not(.is-scrolled):not(.is-open) .nav-burger span { background: var(--cream); }

.nav.is-scrolled, .nav.is-open {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(35, 32, 26, 0.35);
}

.nav-inner { display: flex; align-items: center; gap: 32px; padding-block: 14px; }

.nav-links { display: flex; gap: 26px; margin-inline: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

/* ————— Héros ————— */

.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(201, 168, 106, 0.14), transparent 55%),
    linear-gradient(175deg, #0d1f18 0%, var(--green-night) 45%, #163628 100%);
  color: var(--cream);
  padding-top: 150px;
  overflow: hidden;
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow-1 { width: 520px; height: 520px; background: rgba(47, 93, 74, 0.55); top: -180px; right: -120px; }
.hero-glow-2 { width: 420px; height: 420px; background: rgba(201, 168, 106, 0.12); bottom: 40px; left: -160px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(243, 239, 227, 0.08);
  border: 1px solid rgba(243, 239, 227, 0.18);
  border-radius: 99px;
  padding: 7px 15px;
  margin: 0 0 26px;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7cc9a4;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 201, 164, 0.5); }
  55% { box-shadow: 0 0 0 7px rgba(124, 201, 164, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.hero-title em {
  color: var(--gold);
  font-weight: 400;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(243, 239, 227, 0.78);
  max-width: 52ch;
  margin: 0 0 34px;
}
.hero-sub strong { color: var(--cream); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(243, 239, 227, 0.55);
}

/* Illustration héros */
.hero-art { min-width: 0; }
.art-bureau { max-width: 560px; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); }
.art-piko { max-width: 440px; margin-inline: auto; filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.42)); animation: piko-flott 5.5s ease-in-out infinite; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
@keyframes piko-flott { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-14px) rotate(0.6deg); } }

/* Feuilles animées : Piko trie ses documents dans les dossiers */
.hero-art { position: relative; }
.piko-feuilles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.feuille {
  position: absolute; top: 24%;
  width: 8.5%; aspect-ratio: 3 / 4;
  background: #f6efe0;
  border-radius: 2px 5px 2px 2px;
  box-shadow: 0 5px 12px -5px rgba(0, 0, 0, 0.5);
  opacity: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.feuille::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 6px 6px 0; border-style: solid; border-color: transparent #d8cdb4 transparent transparent; }
.feuille::after { content: ""; position: absolute; left: 16%; right: 20%; top: 26%; height: 8%; background: #cfc7b6; box-shadow: 0 180% 0 #cfc7b6, 0 360% 0 #d8cdb4; }
.f1 { left: 21%; animation: piko-tri 3.6s ease-in 0s infinite; }
.f2 { left: 61%; animation: piko-tri 3.6s ease-in 0.9s infinite; }
.f3 { left: 29%; animation: piko-tri 3.6s ease-in 1.8s infinite; }
.f4 { left: 66%; animation: piko-tri 3.6s ease-in 2.6s infinite; }
@keyframes piko-tri {
  0%   { opacity: 0; transform: translateY(-10%) rotate(-10deg) scale(0.88); }
  14%  { opacity: 1; }
  60%  { opacity: 1; transform: translateY(150%) rotate(6deg) scale(1); }
  85%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(300%) rotate(0deg) scale(0.9); }
}
@media (prefers-reduced-motion: reduce) { .art-piko, .piko-feuilles { animation: none; } .piko-feuilles { display: none; } }
.art { width: 100%; height: auto; display: block; }

.sheet rect {
  fill: rgba(243, 239, 227, 0.06);
  stroke: rgba(243, 239, 227, 0.55);
  stroke-width: 1.6;
}
.sheet line { stroke: rgba(243, 239, 227, 0.38); stroke-width: 1.6; stroke-linecap: round; }

.sheet-a { transform-origin: 115px 240px; rotate: -9deg; animation: drift 5.5s ease-in-out infinite; }
.sheet-b { transform-origin: 160px 265px; rotate: 7deg; animation: drift 6.4s ease-in-out infinite reverse; }
.sheet-c { transform-origin: 137px 285px; rotate: -2deg; animation: drift 7.2s ease-in-out 0.8s infinite; }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.flux-trace {
  fill: none;
  stroke: rgba(201, 168, 106, 0.55);
  stroke-width: 2;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  animation: flux-dash 1.4s linear infinite;
}
@keyframes flux-dash { to { stroke-dashoffset: -12; } }

.sheet-fly {
  offset-path: path("M 175 235 C 260 130, 330 130, 415 210");
  offset-rotate: auto 90deg;
  animation: fly 3.4s cubic-bezier(0.45, 0, 0.35, 1) infinite;
}
.sheet-fly rect { fill: rgba(16, 36, 28, 0.85); stroke: var(--gold); }
.sheet-fly line { stroke: rgba(201, 168, 106, 0.75); }
@keyframes fly {
  0% { offset-distance: 0%; opacity: 0; transform: scale(0.9); }
  12% { opacity: 1; }
  72% { offset-distance: 100%; opacity: 1; transform: scale(0.62); }
  80%, 100% { offset-distance: 100%; opacity: 0; transform: scale(0.5); }
}

.folder { transform-origin: 460px 300px; animation: folder-catch 3.4s ease-in-out infinite; }
@keyframes folder-catch {
  0%, 68%, 100% { transform: scale(1); }
  74% { transform: scale(1.03); }
  82% { transform: scale(1); }
}
.folder-back { fill: #1c3a2d; stroke: rgba(201, 168, 106, 0.75); stroke-width: 1.6; }
.folder-front { fill: #24493a; stroke: rgba(243, 239, 227, 0.4); stroke-width: 1.6; }
.folder-label { font-family: var(--font-mono); font-size: 22px; fill: var(--cream); }
.folder-sub { font-family: var(--font-body); font-size: 12.5px; fill: rgba(243, 239, 227, 0.6); }

.badge-check circle { fill: var(--gold); }
.badge-check path { stroke: var(--green-night); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.badge-check { transform-origin: 540px 220px; animation: badge-pop 3.4s ease-in-out infinite; }
@keyframes badge-pop {
  0%, 68%, 100% { transform: scale(0); }
  76% { transform: scale(1.12); }
  82%, 94% { transform: scale(1); }
  99% { transform: scale(0); }
}

/* Mock produit — inclinaison 3D au survol */
.mock-scene { perspective: 1200px; }

.mock {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  margin-bottom: -96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  color: var(--ink);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
  will-change: transform;
}
.mock.tilt-actif { transition: none; }
.mock:hover { box-shadow: 0 4px 10px rgba(16, 36, 28, 0.15), 0 40px 90px -30px rgba(16, 36, 28, 0.5); }

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-url {
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--paper-deep);
  border-radius: 6px;
  padding: 3px 14px;
}

.mock-body { padding: 18px 22px 8px; overflow-x: auto; }

.mock-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; min-width: 700px; }
.mchip {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px;
}
.mchip b { font-family: var(--font-mono); font-weight: 500; margin-left: 4px; }
.mchip-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mchip-dbl { color: var(--amber); border-color: #e8cfa4; background: var(--amber-tint); }
.mock-total { margin-left: auto; font-size: 13px; color: var(--ink-soft); }
.mock-total b { color: var(--ink); }

.mock-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.mock-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ink-faint); padding: 9px 10px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.mock-table td { padding: 11px 10px; font-size: 13.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock-table tr:last-child td { border-bottom: none; }
.mock-table .r { text-align: right; font-family: var(--font-mono); font-size: 12.5px; }
.mock-table .mono { font-family: var(--font-mono); font-size: 12.5px; }

.mrow { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.mock.is-in .mrow { opacity: 1; transform: none; }
.mock.is-in .mrow:nth-child(1) { transition-delay: 0.15s; }
.mock.is-in .mrow:nth-child(2) { transition-delay: 0.3s; }
.mock.is-in .mrow:nth-child(3) { transition-delay: 0.45s; }
.mock.is-in .mrow:nth-child(4) { transition-delay: 0.6s; }

.mrow-dbl { background: var(--amber-tint); box-shadow: inset 3px 0 0 var(--amber); }

.mst {
  font-size: 11.5px; font-weight: 600; border-radius: 99px; padding: 3px 10px;
  background: var(--paper-deep); color: var(--ink-soft);
}
.mst-ok { background: var(--green-tint); color: var(--green); }
.mst-dbl { background: #f5e3c2; color: var(--amber); }

/* ————— Bande de chiffres ————— */

.stats { padding: 170px 0 30px; background: var(--paper); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--green);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.mono-stat { font-family: var(--font-mono); font-size: 24px; padding-top: 9px; display: block; }
.stat-lbl { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }

/* ————— Sections génériques ————— */

.section { padding: 96px 0; }

.kicker {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin: 0 0 14px;
}
.kicker-light { color: var(--gold); }

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  max-width: 24ch;
}
.h2 em { color: var(--green); font-weight: 400; }
.h2-light { color: var(--cream); }
.h2-light em { color: var(--gold); }

/* ————— Fonctionnalités ————— */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.feat:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  box-shadow: 0 2px 4px rgba(35, 32, 26, 0.06), 0 22px 44px -20px rgba(47, 93, 74, 0.35);
}

.feat-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green);
  margin-bottom: 18px;
}
.feat-ico svg { width: 26px; height: 26px; }

.feat h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0 0 8px; }
.feat p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ————— Comment ça marche ————— */

.section-deep {
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(201, 168, 106, 0.08), transparent 60%),
    var(--green-night);
  color: var(--cream);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 26px;
  align-items: start;
}

.step {
  background: rgba(243, 239, 227, 0.05);
  border: 1px solid rgba(243, 239, 227, 0.14);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.step:hover { border-color: rgba(201, 168, 106, 0.5); background: rgba(243, 239, 227, 0.07); }

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin: 10px 0 8px; }
.step p { margin: 0; font-size: 14.5px; color: rgba(243, 239, 227, 0.68); }

.step-arrow { align-self: center; color: rgba(201, 168, 106, 0.6); }
.step-arrow svg { width: 44px; height: 22px; display: block; }

/* ————— Avantages ————— */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.adv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.adv-list li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.adv-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.5 2.5 2.5 4.5-5' fill='none' stroke='%232f5d4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 15px;
  background-position: center;
  background-repeat: no-repeat;
}
.adv-list strong { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 3px; }

.art-shield { max-width: 420px; margin-inline: auto; }
.shield-halo { fill: var(--green-tint); opacity: 0.55; }
.shield-orbit {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.4;
  stroke-dasharray: 4 8;
  transform-origin: 210px 210px;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.shield path:first-child { fill: var(--green); }
.shield-check { stroke: var(--cream); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

.orbit-doc rect { fill: var(--card); stroke: var(--green); stroke-width: 1.6; }
.orbit-doc line { stroke: var(--line-strong); stroke-width: 1.6; stroke-linecap: round; }
.orbit-doc { transform-origin: 210px 210px; animation: orbit 40s linear infinite; }
.orbit-doc-1 { --a: 0deg; }
.orbit-doc-2 { --a: 120deg; }
.orbit-doc-3 { --a: 240deg; }
@keyframes orbit {
  from { transform: rotate(var(--a)) translate(170px) rotate(calc(0deg - var(--a))); }
  to { transform: rotate(calc(var(--a) + 360deg)) translate(170px) rotate(calc(-360deg - var(--a))); }
}

/* ————— Témoignages ————— */

.section-tint { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.q-name { font-weight: 700; font-size: 14px; }
.q-role { font-size: 12.5px; color: var(--ink-faint); }

/* ————— Tarifs ————— */

.billing {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: 4px;
  margin-bottom: 40px;
}
.billing-opt {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-radius: 99px;
  padding: 8px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.billing-opt.is-on { background: var(--ink); color: var(--paper); }
.billing-save {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--green-tint);
  color: var(--green);
  border-radius: 99px;
  padding: 2px 8px;
}
.billing-opt.is-on .billing-save { background: rgba(255, 255, 255, 0.16); color: var(--paper); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-5px); }

.plan-hero {
  background: var(--green-night);
  border-color: var(--green-deep);
  color: var(--cream);
  box-shadow: var(--shadow-pop);
}

.plan-flag {
  position: absolute;
  top: -13px; left: 30px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: var(--green-night);
  border-radius: 99px;
  padding: 4px 13px;
}

.plan-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.plan-desc { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-faint); }
.plan-hero .plan-desc { color: rgba(243, 239, 227, 0.6); }

.plan-price { margin: 0 0 24px; display: flex; align-items: baseline; gap: 10px; }
.plan-amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.plan-amount.is-switching { opacity: 0; }
.plan-per { font-size: 13px; color: var(--ink-faint); }
.plan-hero .plan-per { color: rgba(243, 239, 227, 0.6); }

.plan-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 11px; }
.plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.plan-hero .plan-list li { color: rgba(243, 239, 227, 0.8); }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 15px; height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-6.5' fill='none' stroke='%232f5d4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.plan-hero .plan-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-6.5' fill='none' stroke='%23c9a86a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn-plan {
  margin-top: auto;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 600;
}
.btn-plan:hover { border-color: var(--green); color: var(--green); background: var(--green-tint); }

.btn-plan-hero { background: var(--gold); border-color: var(--gold); color: var(--green-night); }
.btn-plan-hero:hover { background: #d9bc85; border-color: #d9bc85; color: var(--green-night); }

.plans-note { margin: 26px 0 0; font-size: 13px; color: var(--ink-faint); text-align: center; }

/* ————— FAQ ————— */

/* ————— FAQ : deux colonnes (contexte + accordéon) ————— */
.faq-grid { display: grid; grid-template-columns: 416px 1fr; gap: 48px; align-items: start; }
.faq-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 26px; }
.faq-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.02em; color: var(--green); margin: 8px 0 0; }
.faq-desc { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 42ch; }

/* Bloc contact */
.faq-contact { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; box-shadow: var(--shadow-card); }
.faq-contact-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.faq-contact-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--green); margin: 0 0 6px; }
.faq-contact-desc { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.faq-contact-btn { background: var(--gold); color: var(--green-night); border: none; border-radius: 99px; padding: 12px 24px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.faq-contact-btn:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 10px 24px -12px rgba(201, 168, 106, 0.7); }

/* Accordéon (un seul ouvert à la fois via details[name]) */
.faq-acc { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 0 24px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq-item:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.faq-item[open] { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); box-shadow: 0 14px 34px -22px rgba(47, 93, 74, 0.3); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--green); }
/* Icône carré vert : + qui devient − */
.faq-ico { position: relative; width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--green); transition: background 0.25s ease; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; top: 50%; left: 50%; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.3s ease; }
.faq-ico::before { width: 12px; height: 2px; }
.faq-ico::after { width: 2px; height: 12px; }
.faq-item[open] .faq-ico { background: var(--green-deep); }
.faq-item[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.faq-a { overflow: hidden; }
.faq-item[open] .faq-a { animation: faq-open 0.32s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
.faq-a p { margin: 0; padding: 0 0 22px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-aside { position: static; }
}

/* ————— CTA final ————— */

.cta {
  background:
    radial-gradient(800px 420px at 50% 120%, rgba(201, 168, 106, 0.16), transparent 60%),
    var(--green-night);
  color: var(--cream);
  padding: 110px 0;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.12;
  margin: 0 0 18px;
}
.cta-title em { color: var(--gold); font-weight: 400; }

.cta-sub {
  margin: 0 auto 36px;
  max-width: 48ch;
  color: rgba(243, 239, 227, 0.7);
  font-size: 16.5px;
}

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ————— Pied de page ————— -*/

.foot { background: var(--paper); border-top: 1px solid var(--line); }

.foot-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.foot-brand p { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-faint); line-height: 1.7; }

.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.foot-col a { text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.foot-col a:hover { color: var(--green); }

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ————— Pages d'authentification ————— */

.auth-body { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 560px) 1fr; background: var(--paper); }

.auth-pane {
  display: flex;
  flex-direction: column;
  padding: 40px clamp(28px, 6vw, 76px);
}

.auth-head { margin-bottom: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Sélecteur de langue sur les pages de compte : à droite, aligné avec le logo. */
.auth-lang .lang-btn { color: var(--ink); }

.auth-card { margin-block: auto; padding-block: 48px; max-width: 400px; width: 100%; }

.auth-title { font-family: var(--font-display); font-weight: 500; font-size: 32px; margin: 0 0 8px; letter-spacing: -0.01em; }
.auth-sub { margin: 0 0 34px; color: var(--ink-soft); font-size: 15px; }
.auth-sub a { color: var(--green); font-weight: 600; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}
.field-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-faint); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin: 22px 0; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green); }
.check a { color: var(--green); font-weight: 600; }

.auth-error {
  background: #f9e8e2;
  border: 1px solid #ecc5b8;
  color: #8c3c22;
  font-size: 13.5px;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 18px;
}

.btn-block { width: 100%; }

.auth-alt { margin-top: 22px; font-size: 13.5px; color: var(--ink-faint); text-align: center; }
.auth-alt a { color: var(--green); font-weight: 600; }

.auth-foot { margin-top: auto; font-size: 12.5px; color: var(--ink-faint); }

/* Panneau latéral des pages auth */
.auth-side {
  position: relative;
  background:
    radial-gradient(700px 500px at 85% 10%, rgba(201, 168, 106, 0.13), transparent 55%),
    linear-gradient(200deg, #163628 0%, var(--green-night) 70%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(32px, 6vw, 90px);
  overflow: hidden;
}

.auth-side .art { max-width: 430px; margin-bottom: 44px; }

.auth-side-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  margin: 0 0 16px;
  max-width: 24ch;
}
.auth-side-src { font-size: 13.5px; color: rgba(243, 239, 227, 0.6); }

.auth-side-points { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-side-points li {
  display: flex; gap: 11px; align-items: center;
  font-size: 14.5px; color: rgba(243, 239, 227, 0.8);
}
.auth-side-points svg { flex: none; color: var(--gold); }

/* ————— Fond « aurora » façon verre dépoli ————— */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Douceur obtenue par le dégradé lui-même : aucun filtre de flou,
   qui écroulait le compositeur sur les machines modestes. */
.aurora span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  will-change: transform;
  transform: translateZ(0);
}

.aurora .a1 {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(47, 93, 74, 0.22) 0%, rgba(47, 93, 74, 0.10) 35%, transparent 68%);
  top: 12%; left: -14%;
  animation: aurora-drift-1 26s ease-in-out infinite alternate;
}
.aurora .a2 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.18) 0%, rgba(201, 168, 106, 0.08) 35%, transparent 68%);
  top: 40%; right: -18%;
  animation: aurora-drift-2 32s ease-in-out infinite alternate;
}
.aurora .a3 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(122, 178, 148, 0.20) 0%, rgba(122, 178, 148, 0.08) 35%, transparent 68%);
  bottom: -12%; left: 22%;
  animation: aurora-drift-3 38s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 { to { transform: translate(90px, 60px) scale(1.12); } }
@keyframes aurora-drift-2 { to { transform: translate(-80px, -70px) scale(1.08); } }
@keyframes aurora-drift-3 { to { transform: translate(60px, -50px) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none; }
}

/* Verre dépoli */
.glass {
  background: rgba(253, 252, 249, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(35, 32, 26, 0.04), 0 20px 50px -24px rgba(35, 32, 26, 0.25);
}

/* ————— Variantes de révélation au défilement ————— */

.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-zoom { transform: translateY(30px) scale(0.96); }
.reveal-left.is-in, .reveal-right.is-in, .reveal-zoom.is-in { transform: none; }

/* Parallaxe légère */
[data-parallax] { will-change: transform; }

/* ————— Piko, la mascotte ————— */

.hero-piko {
  position: absolute;
  right: 24px;
  bottom: -12px;
  width: 120px;
  transform: rotate(4deg);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
  animation: piko-bob 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes piko-bob { 50% { transform: rotate(4deg) translateY(-8px); } }

.piko-strip { padding: 40px 0 96px; }

.piko-carte {
  border-radius: 20px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}

.piko-img { width: 200px; animation: piko-bob 4.2s ease-in-out infinite; }
.piko-medaillon {
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, #1a3a2c, #10241c 70%);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 20px 46px -20px rgba(16, 36, 28, 0.6), inset 0 0 0 1px rgba(201, 168, 106, 0.25);
  animation: piko-bob 4.2s ease-in-out infinite;
}
.piko-medaillon .piko-img { width: 196px; animation: none; }

.piko-bulle { position: relative; }

.piko-nom {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin: 0 0 10px;
}

.piko-titre {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  margin: 0 0 12px;
}
.piko-titre em { color: var(--green); }

.piko-texte { margin: 0; font-size: 15.5px; color: var(--ink-soft); max-width: 56ch; }

.types-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.types-chips span {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-tint);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  border-radius: 99px;
  padding: 6px 14px;
}
.types-chips .type-plus { background: var(--paper-deep); color: var(--ink-faint); border-color: var(--line); }

/* ————— Popups du site ————— */

.pop-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 36, 28, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; } }

.pop {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 91;
  width: min(480px, 92vw);
  border-radius: 22px;
  padding: 36px 38px 32px;
  background: rgba(253, 252, 249, 0.82);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 40px 100px -30px rgba(16, 36, 28, 0.55);
  animation: pop-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}
@keyframes pop-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.94); }
}

.pop-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(35, 32, 26, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease;
}
.pop-close:hover { background: rgba(35, 32, 26, 0.12); }

.pop-piko { width: 130px; margin: -6px auto 4px; border-radius: 50%; box-shadow: 0 14px 34px -16px rgba(16, 36, 28, 0.5), inset 0 0 0 1px rgba(201, 168, 106, 0.22); animation: piko-bob 3.6s ease-in-out infinite; }

.pop h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 6px 0 10px;
}
.pop h2 em { color: var(--green); }

.pop p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 22px; }

.pop .btn { width: 100%; }
.pop .pop-secondaire {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Popup contact (formulaire) */
.pop-form { text-align: left; display: grid; gap: 14px; margin-bottom: 6px; }
.pop-merci { text-align: center; padding: 8px 4px 6px; animation: fade-in 0.3s ease; }
.pop-merci-piko { width: 92px; height: 92px; border-radius: 50%; background: #10241c; margin: 0 auto 12px; display: block; box-shadow: inset 0 0 0 1px rgba(201, 168, 106, 0.3); }
.pop-merci p { font-size: 15px; color: var(--ink-soft); margin: 0; max-width: 34ch; margin-inline: auto; }
.pop-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.pop-form input, .pop-form textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  resize: vertical;
}
.pop-form input:focus, .pop-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

/* ————— Pages juridiques ————— */

.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.legal-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.legal-retour {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.legal-retour:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal {
  padding: 56px 0 90px;
}

.legal-titre {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.legal-maj {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.legal-intro {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 70ch;
  margin: 0 0 24px;
}

.legal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.legal-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  padding: 6px 14px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal-nav a:hover { color: var(--green); border-color: var(--green); }
.legal-nav a.est-ici { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 44px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 24px; }

.legal h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }

.legal p, .legal li {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 75ch;
  line-height: 1.7;
}
.legal p strong, .legal li strong { color: var(--ink); }
.legal ul { padding-left: 22px; margin: 10px 0 18px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--green); font-weight: 600; }

.legal table {
  border-collapse: collapse;
  margin: 14px 0 22px;
  width: 100%;
  max-width: 760px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.legal th, .legal td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.legal th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  background: var(--paper);
}
.legal tr:last-child td { border-bottom: none; }

.todo {
  background: var(--amber-tint);
  color: var(--amber);
  border: 1px dashed var(--amber);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.92em;
  font-weight: 600;
}

.legal-encart {
  background: var(--green-tint);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  max-width: 760px;
}
.legal-encart p { margin: 0; color: var(--green-deep); }

/* ————— Responsive ————— */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { max-width: 520px; }
  .feat-grid, .quotes, .plans { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .auth-body { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

/* Nav → menu burger dès la tablette (≤900px) : la nav desktop complète ne tient pas
   (logo + liens + 2 sélecteurs + 2 boutons dépassent). Les grilles restent en 2 colonnes
   pour la tablette (voir le bloc ≤720px pour le passage en 1 colonne). */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { gap: 8px; flex-wrap: nowrap; }
  .brand { flex: 0 0 auto; }
  .nav-lang { flex: 0 0 auto; }
  .nav-lang .lang-btn { padding: 5px 8px; font-size: 11.5px; gap: 5px; }
  .nav-lang .lang-menu { right: 0; left: auto; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.is-open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-links a:last-child { border-bottom: none; }
  .nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Reveals horizontaux → verticaux (le translateX débordait aussi en tablette). */
  .reveal-left, .reveal-right { transform: translateY(24px); }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 110px; }
  /* La maquette produit (large table 700px) est masquée sur mobile : inutilisable à 375px
     et elle étirait la mise en page. Le visuel Piko du hero suffit. */
  .mock { display: none; }
  /* Carte Piko : empilée + médaillon réduit (la grille 200px+1fr débordait). */
  .piko-carte { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; justify-items: center; text-align: center; }
  .piko-img, .piko-medaillon { width: 140px; height: 140px; }
  .piko-medaillon .piko-img { width: 138px; }
  /* Reveals horizontaux → verticaux sur mobile (le translateX débordait hors écran). */
  .reveal-left, .reveal-right { transform: translateY(24px); }
  .stats { padding-top: 120px; }
  .section { padding: 64px 0; }
  .feat-grid, .quotes, .plans { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .foot-inner { grid-template-columns: 1fr; gap: 28px; }
  .auth-body { grid-template-columns: 1fr; }
  .auth-pane { padding-inline: 24px; }
}

/* Petits écrans (≤430px) : nav resserrée pour tenir sans coupe même sur iPhone SE (320px).
   Seuil au-dessus de la largeur de contenu de la nav pour éviter le « piège du viewport
   étiré » (un dépassement gonfle le viewport et désactiverait une media query trop basse). */
@media (max-width: 430px) {
  .nav-inner { gap: 6px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 30px; }
  .nav-lang .lang-btn { padding: 4px 6px; font-size: 11px; gap: 3px; }
}


/* ═════════ Couche « matière premium » ═════════
   Grain, dégradés de surface, ombres multi-couches, reflets internes. */

.hero, .section-deep, .cta { position: relative; isolation: isolate; }
.hero::after, .section-deep::after, .cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
.hero > .wrap, .section-deep > .wrap, .cta > .wrap { position: relative; z-index: 2; }

.hero-title em {
  background: linear-gradient(115deg, #e3cb96 0%, var(--gold) 45%, #a8874c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-solid {
  background: linear-gradient(180deg, #3a6f59 0%, var(--green) 55%, #29513f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px -10px rgba(16, 36, 28, 0.55);
}
.btn-solid:hover { background: linear-gradient(180deg, #417a62 0%, #336853 55%, #2c5644 100%); transform: translateY(-1px); }
.btn-cream {
  background: linear-gradient(180deg, #fffef9 0%, var(--cream) 100%);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}
.btn-plan-hero {
  background: linear-gradient(180deg, #dcc188 0%, var(--gold) 60%, #b6935a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

.feat, .quote, .plan:not(.plan-hero), .faq-item {
  background: linear-gradient(180deg, #fffefb 0%, var(--card) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(35, 32, 26, 0.05), 0 12px 36px -18px rgba(35, 32, 26, 0.25);
}
.feat:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(35, 32, 26, 0.06), 0 26px 52px -22px rgba(47, 93, 74, 0.4);
}
.feat-ico {
  background: linear-gradient(160deg, #f0f6f2 0%, var(--green-tint) 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(47, 93, 74, 0.12);
}

.plan-hero {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #142e24 0%, var(--green-night) 100%) padding-box,
    linear-gradient(150deg, rgba(201, 168, 106, 0.85) 0%, rgba(201, 168, 106, 0.2) 45%, rgba(201, 168, 106, 0.55) 100%) border-box;
}

.mock {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #fffefb 0%, var(--card) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(207, 199, 182, 0.7) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-pop);
}

.stat-num { font-size: 46px; letter-spacing: -0.02em; }

.kicker::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  vertical-align: middle;
  margin-right: 9px;
  border-radius: 2px;
}

.step {
  background: linear-gradient(180deg, rgba(243, 239, 227, 0.07) 0%, rgba(243, 239, 227, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(243, 239, 227, 0.1);
}

.field input { box-shadow: inset 0 1px 3px rgba(35, 32, 26, 0.05); }

/* ————— Popup politique d'utilisation (inscription) ————— */
.pop-politique { max-width: 560px; text-align: left; }
.pop-titre {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 14px;
}
.politique-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 11px; }
.politique-points li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 11px 14px 11px 38px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.politique-points li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 11px;
  font-weight: 700;
  color: var(--green);
}
.politique-points b { color: var(--ink); }
.politique-actions { display: flex; justify-content: flex-end; gap: 10px; }
.politique-note { font-size: 12.5px; color: var(--ink-faint); margin: 14px 0 0; text-align: center; }
.politique-note a { color: var(--green); font-weight: 600; }

/* ————— Authentification durcie ————— */

/* Piège à robots : hors écran, jamais display:none (les bots le testent) */
.hp-champ {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Champ mot de passe avec œil */
.champ-mdp { position: relative; }
.champ-mdp input { width: 100%; padding-right: 46px; }
.btn-oeil {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink-faint);
  border-radius: 8px;
  line-height: 0;
}
.btn-oeil:hover { color: var(--ink); background: var(--paper-deep); }
.btn-oeil.oeil-ouvert { color: var(--green); }

/* Barre de force */
.force-mdp {
  height: 5px;
  border-radius: 99px;
  background: var(--paper-deep);
  margin-top: 8px;
  overflow: hidden;
}
.force-barre {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #b0432a;
  transition: width 0.25s ease, background 0.25s ease;
}
.force-barre[data-score="2"] { background: #c07b1f; }
.force-barre[data-score="3"] { background: #7d9c33; }
.force-barre[data-score="4"] { background: var(--green); }

/* Critères en checklist */
.criteres-mdp {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 8px 0 0;
  padding: 0;
}
.criteres-mdp li {
  font-size: 12px;
  color: var(--ink-faint);
  position: relative;
  padding-left: 16px;
}
.criteres-mdp li::before {
  content: "○";
  position: absolute;
  left: 0;
}
.criteres-mdp li.ok { color: var(--green); font-weight: 600; }
.criteres-mdp li.ok::before { content: "✓"; }

.field-erreur { color: var(--rouge) !important; font-weight: 600; }

/* Champs entreprise + consentements */
.champs-entreprise {
  border-left: 3px solid var(--green-tint);
  padding-left: 14px;
  margin: 4px 0 14px;
  display: grid;
  gap: 12px;
}
.consentements { display: grid; gap: 9px; margin: 14px 0; }
.consentements .check b { color: var(--rouge); font-weight: 700; }
.check-souvenir { margin: 10px 0 12px; }
.souvenir-hint { color: var(--ink-faint); font-weight: 400; }

/* Étape OTP : 6 cases */
.otp-grille {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin: 18px 0;
}
.otp-case {
  width: 48px; height: 56px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  background: var(--card);
}
.otp-case:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

/* Champ TOTP (2FA) */
.champ-totp {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.4em;
  text-align: center;
}

.lien-bouton {
  border: none;
  background: none;
  font: inherit;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
}
.lien-bouton:disabled { color: var(--ink-faint); cursor: default; }

/* ————— Sélecteur de langue (i18n) ————— */
.nav-lang { position: relative; display: flex; align-items: center; }
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 600;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  opacity: .8;
  transition: opacity .15s ease, background .15s ease;
}
.lang-btn:hover { opacity: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  z-index: 60;
  min-width: 168px;
  background: var(--cream, #fffef9);
  color: var(--ink, #23201a);
  border: 1px solid var(--line, #e4ddcc);
  border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(16, 36, 28, .5);
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.lang-opt {
  display: flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; text-align: left;
  color: var(--ink, #23201a);
  background: transparent; border: none; border-radius: 8px;
  padding: 9px 11px; cursor: pointer;
}
.lang-opt:hover { background: var(--paper-deep, #efeadc); }
.lang-opt[aria-current="true"] { color: var(--green, #2f5d4a); font-weight: 700; }
/* Sur le héros (nav transparente), le bouton suit la couleur crème comme les autres. */
.nav:not(.is-scrolled):not(.is-open) .lang-btn { color: var(--cream); }
/* Le sélecteur reste TOUJOURS visible, y compris quand la nav passe en burger. */
@media (max-width: 720px) {
  .nav-lang { margin-left: auto; margin-right: 10px; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
}

/* ————— Menu profil (landing, utilisateur connecté) ————— */
.nav-profil { position: relative; }
.profil-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit;
  font-weight: 600; font-size: 14px; border-radius: 99px; padding: 5px 12px 5px 5px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: var(--cream);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nav.is-scrolled .profil-btn, .nav.is-open .profil-btn { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.profil-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--gold); color: var(--green-night); background-size: cover; background-position: center; }
.profil-av.a-photo { color: transparent; }
.profil-nom { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-chev { opacity: .7; flex: none; }
.profil-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 195px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 50px -20px rgba(16,36,28,.4); display: flex; flex-direction: column; gap: 2px;
}
.profil-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border: none; background: transparent; border-radius: 9px; font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; cursor: pointer; }
.profil-item:hover { background: var(--green-tint); color: var(--green-deep); }
.profil-item-danger { color: var(--rouge, #a03c22); }
.profil-item-danger:hover { background: #f9e8e2; color: #a03c22; }
/* Mobile : garder l'accès au profil malgré le menu burger (avatar seul) */
@media (max-width: 900px) {
  .nav-cta.nav-profil { display: flex !important; }
  .nav-profil .profil-nom, .nav-profil .profil-chev { display: none; }
  .nav-profil .profil-btn { padding: 4px; }
}
