:root {
  --bg: #0B0C0E;
  --bg-raised: #111214;
  --card: #16171B;
  --card-alt: #1C1D21;
  --border: #26272C;
  --yellow: #F5B929;
  --yellow-deep: #D89A15;
  --white: #FFFFFF;
  --text: #E9E9EC;
  --muted: #9A9CA5;
  --muted-2: #6C6E76;
  --green: #33C481;
  --red: #E5534B;
  --radius: 10px;
  --pearl: #F7F6F3;
  --pearl-card: #FFFFFF;
  --ink: #14161B;
  --ink-muted: #5B5E68;
  --ink-border: rgba(20,22,27,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--white);
}

a { color: inherit; text-decoration: none; }
.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ===== Public nav ===== */
header.public {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(24,25,28,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  position: sticky; top: 0; z-index: 100;
  transition: background 0.2s ease, transform 0.28s ease;
}
header.public.header-hidden { transform: translateY(-100%); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 16px; flex-wrap: nowrap;
  transition: padding 0.22s ease;
}
header.public.is-scrolled .nav { padding: 10px 0; }
.logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.28rem; font-weight: 700; color: var(--white);
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: url('/assets/logo-mark.svg') center / 100% 100% no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  display: inline-block;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark > * { display: none !important; }
.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  line-height: 1.05;
}
.logo-word {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: -0.01em;
}
.logo.has-plan .logo-word {
  transform: translateY(-1px);
}
.logo-plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-plan-chip--essentiel {
  color: var(--yellow);
  border: 1px solid rgba(245,185,41,0.4);
  background: rgba(245,185,41,0.08);
}
.logo-plan-chip--premium {
  color: var(--bg);
  border: 1px solid var(--yellow);
  background: var(--yellow);
}
.dash-card-top .logo-brand { gap: 2px; }
.dash-card-top .logo-word { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.dash-card-top .logo-plan-chip { font-size: 0.5rem; padding: 2px 6px; }
nav.links {
  display: flex; align-items: center; justify-content: flex-start; flex: 1; min-width: 0;
  gap: 18px; font-size: 0.86rem; color: rgba(255,255,255,0.82);
  margin-left: 8px;
}
nav.links > a,
nav.links .nav-dropdown-toggle {
  white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; line-height: 1.2;
}
.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 22px; cursor: pointer; padding: 4px 6px; line-height: 1; flex-shrink: 0;
}
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 10px;
  background: rgba(24,25,28,0.97); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 6px; min-width: 190px; z-index: 60;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 9px 10px; font-size: 0.85rem; color: rgba(255,255,255,0.82);
  border-radius: 5px; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.07); color: var(--white); }

/* Tablette / écran moyen : menu hamburger — une seule ligne propre (logo · ☰ · actions) */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  nav.links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex: none; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 4px; background: rgba(24,25,28,0.97); padding: 14px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 90;
  }
  header.public.nav-open nav.links { display: flex; }
  header.public.nav-open nav.links a,
  header.public.nav-open nav.links .nav-dropdown-toggle { padding: 10px 0; width: 100%; }
  .nav-dropdown-menu { position: static; margin-top: 6px; background: none; border: none; padding: 0 0 0 12px; }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
.cookie-banner p { font-size: 0.82rem; color: var(--muted); flex: 1; min-width: 200px; margin: 0; }
.cookie-banner .actions { display: flex; gap: 10px; }
.cookie-banner button {
  padding: 9px 16px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: none;
}
.cookie-accept { background: var(--yellow); color: var(--bg); }
.cookie-decline { background: transparent; color: var(--muted); border: 1px solid var(--border) !important; }

/* ===== Free-check result feedback ===== */
.check-result {
  max-width: 520px; margin: 14px auto 0; padding: 12px 16px; border-radius: 8px;
  font-size: 0.85rem; text-align: left; display: none; align-items: center; gap: 10px;
  background: rgba(51,196,129,0.1); border: 1px solid rgba(51,196,129,0.3); color: var(--ink);
}
.check-result.visible { display: flex; }
.check-result .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.check-result a { color: inherit; text-decoration: underline; font-weight: 600; }
.check-result.found { background: rgba(255,90,90,0.1); border-color: rgba(255,90,90,0.35); }
.check-result.found .dot { background: var(--red); }
.check-form-row button[disabled] { opacity: 0.7; cursor: default; }
nav.links a:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-user-email {
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notif-host { flex-shrink: 0; }
.btn-primary {
  padding: 11px 20px; background: var(--yellow); color: var(--bg);
  border: none; border-radius: 7px; font-size: 0.87rem; font-weight: 600;
  cursor: pointer; display: inline-flex; transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: #ffc857; transform: translateY(-1px); }
.btn-secondary {
  padding: 11px 20px; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 7px; font-size: 0.87rem; font-weight: 500;
  cursor: pointer; display: inline-flex; transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover { border-color: var(--muted); background: var(--card); }
.btn-login {
  padding: 10px 18px; background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid rgba(255,255,255,0.32); border-radius: 7px;
  font-size: 0.86rem; font-weight: 500; display: inline-flex;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-login:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.1); }

/* ===== App shell (logged-in pages) ===== */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.app-shell.no-sidebar { grid-template-columns: 1fr; }
.app-shell.no-sidebar .app-sidebar { display: none; }
.app-sidebar { background: var(--bg-raised); border-right: 1px solid var(--border); padding: 24px 18px; }
.app-sidebar .logo { margin-bottom: 34px; }
.app-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 7px; margin-bottom: 4px;
  font-size: 0.87rem; color: var(--muted);
}
.app-nav a .dot-icon { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.app-nav a.active { background: var(--card); color: var(--white); font-weight: 600; border: 1px solid var(--border); }
.app-nav a.active .dot-icon { background: var(--yellow); }
.app-main { padding: 34px 40px 60px; min-width: 0; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.app-header h1 { font-size: 1.5rem; }
.app-header p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* ===== Hero (index) ===== */
.hero { padding: 76px 0 90px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,185,41,0.16), transparent 70%);
  top: -180px; right: -180px;
}
.hero-bg .doc-outline { position: absolute; }
.hero-bg .doc-outline.card { top: -30px; left: -70px; width: 400px; transform: rotate(-8deg); }
.hero-bg .doc-outline.passport { bottom: -70px; right: -100px; width: 520px; transform: rotate(5deg); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 22px; text-transform: uppercase;
}
.pill .ring { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--yellow); display:flex; align-items:center; justify-content:center; font-size: 8px; color: var(--yellow); }
.hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.2rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--yellow); }
#rotatingWord { display: inline-block; transition: opacity 0.4s ease; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero p.lead { font-size: 1.05rem; color: var(--muted); max-width: 44ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.trust-row { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted-2); }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row .chk { color: var(--green); }

/* Dashboard mockup card in hero */
.dash-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7); overflow: hidden;
}
.dash-card-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dash-demo-badge {
  margin-left: auto;
  background: rgba(245,185,41,0.14); color: var(--yellow);
  border: 1px solid rgba(245,185,41,0.35);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
  animation: badgePulse 2.6s ease-in-out infinite;
}
.dash-card-demo .dash-body {
  grid-template-columns: 128px 1fr;
  min-height: 420px;
  max-height: 520px;
}
.dash-card-demo .dash-sidebar {
  overflow-y: auto;
  padding: 10px 8px;
  scrollbar-width: thin;
}
.dash-card-demo .dash-sidebar a {
  font-size: 0.68rem;
  padding: 6px 8px;
}
.dash-card-demo .dash-main {
  overflow-y: auto;
  max-height: 520px;
  scrollbar-width: thin;
}
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.dash-sidebar a { display: block; font-size: 0.74rem; color: var(--muted); padding: 7px 9px; border-radius: 5px; margin-bottom: 2px; cursor: pointer; transition: background 0.12s ease, color 0.12s ease; }
.dash-sidebar a:hover { background: var(--card-alt); color: var(--white); }
.dash-sidebar a.active { background: var(--card-alt); color: var(--white); font-weight: 600; }
.dash-main { padding: 20px 22px; min-height: 300px; }
.mini-alert .dot.yellow { background: var(--yellow); }
.dash-stack { display: flex; flex-direction: column; gap: 10px; }
.dash-placeholder { display: flex; align-items: center; justify-content: center; height: 220px; color: var(--muted-2); font-size: 0.85rem; text-align: center; }
.dash-card-top .logo-mark { width: 24px; height: 24px; border-radius: 7px; }
.dash-card-top .title { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.dash-body { display: grid; grid-template-columns: 130px 1fr; min-height: 340px; }
.dash-sidebar { border-right: 1px solid var(--border); padding: 16px 10px; }
.score-row { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.gauge {
  width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(var(--yellow) 0deg 295deg, var(--border) 295deg 360deg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gauge-inner {
  width: 64px; height: 64px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-inner .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--white); }
.gauge-inner .denom { font-size: 0.55rem; color: var(--muted-2); }
.score-label { font-size: 0.8rem; color: var(--muted); }
.score-label strong { display: block; color: var(--white); font-size: 0.92rem; margin-bottom: 2px; }
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-width: 900px;
}
.badge-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  opacity: 0.45;
  filter: grayscale(0.4);
  transition: opacity 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.badge-card.is-unlocked {
  opacity: 1;
  filter: none;
  border-color: rgba(245,185,41,0.35);
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(245,185,41,0.1), transparent 55%),
    var(--card);
}
.badge-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted-2);
  border: 1px solid var(--border);
  background: var(--bg);
}
.badge-card.is-unlocked .badge-mark {
  color: var(--bg);
  background: var(--yellow);
  border-color: var(--yellow);
}
.badge-body strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 4px;
  font-weight: 600;
}
.badge-body p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.badge-date {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--muted-2);
}
.score-trend.is-down { color: var(--red); }
.score-trend.is-stable { color: var(--muted-2); }
.score-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 2px 0 16px;
}
.score-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}
.score-ring-gauge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--border) 0deg 360deg);
}
.score-ring-inner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
}
.score-ring-inner span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.score-ring-meta {
  text-align: center;
}
.score-ring-meta strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.score-ring-meta span {
  display: block;
  font-size: 0.62rem;
  color: var(--muted-2);
  line-height: 1.3;
  max-width: 11ch;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .score-rings { gap: 8px; }
  .score-ring-gauge { width: 46px; height: 46px; }
  .score-ring-inner { width: 34px; height: 34px; }
}
.score-details { margin: 2px 0 18px; font-size: 0.78rem; color: var(--muted); }
.score-details summary { cursor: pointer; color: var(--muted-2); list-style: none; }
.score-details summary::-webkit-details-marker { display: none; }
.score-details summary::before { content: '▸ '; }
.score-details[open] summary::before { content: '▾ '; }
.score-details summary:hover { color: var(--white); }
.score-details ul { margin: 10px 0 0; padding-left: 4px; list-style: none; }
.score-details li { margin-bottom: 6px; display: flex; justify-content: space-between; gap: 12px; }
.score-details li .amt { font-family: 'IBM Plex Mono', monospace; flex-shrink: 0; }
.score-details li .amt.pos { color: var(--green); }
.score-details li .amt.neg { color: var(--red); }
.dash-suggestion {
  margin: -4px 0 16px; padding: 12px 14px; border: 1px solid rgba(245,185,41,0.3); border-radius: 8px;
  background: rgba(245,185,41,0.08); font-size: 0.78rem; color: var(--muted);
}
.dash-suggestion strong { color: var(--white); display: block; margin-bottom: 4px; }
.dash-suggestion a, .dash-suggestion button { color: var(--yellow); font-weight: 600; text-decoration: none; background: none; border: none; padding: 0; font-size: inherit; cursor: pointer; font-family: inherit; }
.dash-suggestion a:hover, .dash-suggestion button:hover { text-decoration: underline; }
.dash-suggestion.is-ok { border-color: rgba(51,196,129,0.3); background: rgba(51,196,129,0.08); }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dash-section-head .doc-expiry-title { margin-bottom: 0; }
.dash-section-head .btn-link-quiet {
  background: none; border: none; color: var(--muted-2); font-size: 0.78rem; cursor: pointer; padding: 0; font-family: inherit;
}
.dash-section-head .btn-link-quiet:hover { color: var(--yellow); }
.mini-alert.empty { text-align: center; color: var(--muted); padding: 18px 12px; }
.monitored-email-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text); padding: 7px 0; border-bottom: 1px solid var(--border); }
.monitored-email-row:last-child { border-bottom: none; }
.monitored-email-row .tag-primary { font-size: 0.68rem; color: var(--muted-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; flex-shrink: 0; }
.monitored-email-row .remove-email-btn {
  margin-left: auto; background: none; border: 1px solid var(--border); color: var(--muted-2);
  width: 20px; height: 20px; border-radius: 5px; font-size: 0.68rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.monitored-email-row .remove-email-btn:hover { color: var(--red); border-color: var(--red); }

/* ===== Centre de notifications (cloche) ===== */
.notif-host { position: relative; display: flex; align-items: center; margin-right: 4px; }
.notif-bell-wrap { position: relative; }
.notif-bell-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.notif-bell-btn:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.notif-badge[hidden] { display: none !important; }
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 24px));
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7); z-index: 80; overflow: hidden;
}
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px 10px; border-bottom: 1px solid var(--border);
}
.notif-panel-head strong { font-size: 0.92rem; }
.notif-panel-actions { display: flex; gap: 8px; flex-shrink: 0; }
.notif-text-btn {
  background: none; border: none; color: var(--muted-2); font-size: 0.72rem; cursor: pointer; padding: 0;
}
.notif-text-btn:hover { color: var(--white); }
.notif-text-btn.danger:hover { color: var(--red); }
.notif-filters { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.notif-filter {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 4px 10px; font-size: 0.72rem; cursor: pointer;
}
.notif-filter.active, .notif-filter:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.notif-list { max-height: 360px; overflow-y: auto; padding: 6px; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 0.84rem; }
.notif-item {
  padding: 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { background: rgba(245,185,41,0.06); border-color: rgba(245,185,41,0.18); }
.notif-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.notif-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; }
.notif-kind .dot { width: 6px; height: 6px; border-radius: 50%; }
.notif-kind .dot.red { background: var(--red); }
.notif-kind .dot.yellow { background: var(--yellow); }
.notif-kind .dot.green { background: var(--green); }
.notif-delete {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border);
  background: none; color: var(--muted-2); cursor: pointer; font-size: 0.68rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.notif-delete:hover { color: var(--red); border-color: var(--red); }
.notif-title { font-size: 0.86rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.notif-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.notif-date { margin-top: 6px; font-size: 0.7rem; color: var(--muted-2); font-family: 'IBM Plex Mono', monospace; }
.notif-item { cursor: pointer; }
.notif-toast {
  position: fixed; right: 20px; bottom: 24px; z-index: 1200;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 16px 12px;
  background: var(--card); border: 1px solid rgba(245,185,41,0.35);
  border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,0.65);
  cursor: pointer;
}
.notif-toast[hidden] { display: none !important; }
.notif-toast-close {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border-radius: 6px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 0.75rem;
}
.notif-toast-close:hover { color: var(--white); }
.notif-toast-kicker {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); font-weight: 700; margin-bottom: 4px;
}
.notif-toast-title { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 4px; padding-right: 24px; }
.notif-toast-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-bottom: 10px; }
.notif-toast-cta {
  border: none; border-radius: 7px; padding: 7px 12px; cursor: pointer;
  background: var(--yellow); color: var(--bg); font-size: 0.8rem; font-weight: 700;
}
@media (max-width: 640px) {
  .notif-toast { right: 12px; bottom: 16px; }
}

@media (max-width: 720px) {
  .notif-panel { right: -40px; }
}
.pwd-strength { margin-top: 8px; }
.pwd-strength-track { width: 100%; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.pwd-strength-bar { height: 100%; width: 0%; border-radius: 2px; transition: width 0.2s ease, background 0.2s ease; }
.pwd-strength-label { display: block; margin-top: 5px; font-size: 0.72rem; color: var(--muted); min-height: 14px; }
.metric-list { flex: 1; }
.metric-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; color: var(--muted); padding: 5px 0; }
.metric-row span.v { font-weight: 600; }
.metric-row span.v.green-soft { color: #6FA383; }
.metric-row span.v.red { color: var(--red); }
.metric-row span.v.yellow { color: var(--yellow); }
.metric-row span.v.green { color: var(--green); }
.mini-alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-alert { border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; font-size: 0.72rem; }
.mini-alert .t { display: flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; margin-bottom: 3px; }
.mini-alert .dot { width: 6px; height: 6px; border-radius: 50%; }
.mini-alert .dot.red { background: var(--red); }
.mini-alert .dot.green { background: var(--green); }
.mini-alert .dot.blink { animation: dotBlink2 1.8s ease-in-out infinite; }
@keyframes dotBlink2 { 0%, 100% { opacity: 1; } 50% { opacity: 0.28; } }
.mini-alert .d { color: var(--muted-2); }
.mini-alert.is-read { opacity: 0.55; }
.alert-mark-read {
  margin-left: auto; background: none; border: 1px solid var(--border); color: var(--muted-2);
  width: 18px; height: 18px; border-radius: 5px; font-size: 0.65rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alert-mark-read:hover { color: var(--green); border-color: var(--green); }
.alert-mark-read:disabled { opacity: 0.5; cursor: default; }
.alert-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 8px;
}
.alert-action {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 500;
  color: var(--muted); text-decoration: underline; text-underline-offset: 2px;
}
.alert-action:hover { color: var(--yellow); }
.alert-action--demarche { color: var(--muted); text-decoration: none; }
.alert-action--demarche:hover { color: var(--yellow-deep); text-decoration: underline; }
.alert-action:disabled { opacity: 0.5; cursor: default; }

/* ===== Light section utility (alternating black/white bands) ===== */
.section-light { background: var(--pearl); border-top: 1px solid var(--ink-border); border-bottom: 1px solid var(--ink-border); }
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: var(--ink); }
.section-light p, .section-light p.sub { color: var(--ink-muted); }
.section-light .feature-card { background: var(--pearl-card); border-color: var(--ink-border); }
.section-light .feature-card .icon { background: #EFEEEA; border-color: var(--ink-border); color: var(--yellow-deep); }
.section-light .feature-card h3 { color: var(--ink); }
.section-light .feature-card p { color: var(--ink-muted); }
.section-light .press-label { color: var(--muted-2); }
.section-light .press-track span { color: var(--ink-muted); }
/* Secondary CTAs are dark-theme by default — invert on pearl surfaces */
.section-light .btn-secondary {
  color: var(--ink);
  border-color: var(--ink-border);
  background: transparent;
}
.section-light .btn-secondary:hover {
  border-color: var(--ink-muted);
  background: rgba(20, 22, 27, 0.05);
}

/* ===== Free check section ===== */
.check-section { padding: 70px 0; border-top: 1px solid var(--ink-border); border-bottom: 1px solid var(--ink-border); background: var(--pearl); text-align: center; }
.check-section h2 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.check-section p.sub { color: var(--ink-muted); margin-bottom: 28px; }
.check-form-row {
  display: flex; gap: 10px; max-width: 520px; margin: 0 auto 18px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 6px;
}
.check-form-row input {
  flex: 1; min-width: 0; background: transparent; border: none; padding: 11px 12px;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.92rem;
}
.check-form-row input:focus { outline: none; }
.check-form-row input::placeholder { color: var(--muted-2); }
.check-form-row button {
  padding: 11px 20px; background: var(--yellow); color: var(--bg); border: none;
  border-radius: 6px; font-weight: 600; font-size: 0.86rem; cursor: pointer; white-space: nowrap;
}
@media (max-width: 480px) {
  .check-form-row { flex-direction: column; padding: 8px; }
  .check-form-row input { width: 100%; padding: 10px 8px; }
  .check-form-row button { width: 100%; }
}
.check-terms-note { font-size: 0.76rem; color: var(--ink-muted); margin-bottom: 22px; }
.check-terms-note a { color: var(--ink-muted); text-decoration: underline; }
.check-terms-note a:hover { color: var(--ink); }
.check-perks { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-muted); }
.check-perks span { display: flex; align-items: center; gap: 6px; }
.check-perks .chk { color: var(--green); }

/* ===== Press strip ===== */
.press-strip { padding: 46px 0; text-align: center; overflow: hidden; }
.press-strip .press-label { font-size: 0.7rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
.press-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.press-track {
  display: flex; align-items: center; gap: 72px; width: max-content;
  animation: pressScroll 32s linear infinite;
}
.press-track span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.35rem;
  color: var(--muted); white-space: nowrap; letter-spacing: -0.01em; opacity: 0.85;
}
@keyframes pressScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Generic sections ===== */
section { padding: 90px 0; }
.section-head { max-width: 58ch; margin: 0 auto 50px; text-align: center; }
.section-head p { color: var(--muted); }
.section-head.left { text-align: left; margin-left: 0; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--ink-border); border-radius: 10px; background: var(--pearl-card); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 16px 20px; font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 600; color: var(--ink);
}
.faq-arrow { color: var(--yellow-deep); font-size: 0.9rem; transition: transform 0.2s ease; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { padding: 0 20px 18px; font-size: 0.87rem; color: var(--ink-muted); line-height: 1.6; margin: 0; }
.testimonials-section { padding: 90px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonials-grid--soon { grid-template-columns: 1fr; }
.testimonials-soon {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  padding: 8px 12px 4px;
}
.testimonials-soon-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.testimonials-soon p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.testimonials-soon p + p { margin-top: 8px; }
.testimonial-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.testimonial-card .stars { color: var(--yellow); font-size: 0.9rem; letter-spacing: 3px; }
.testimonial-card p.quote { font-size: 0.88rem; color: var(--text); line-height: 1.55; flex: 1; }
.testimonial-card .meta { font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.testimonial-card .meta strong { color: var(--white); display: block; font-size: 0.86rem; margin-bottom: 2px; }
@media (max-width: 980px) { .testimonials-grid { grid-template-columns: 1fr; } }

.hebdo-card {
  margin: 18px 0 8px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(245,185,41,0.22);
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(245,185,41,0.14), transparent 55%),
    linear-gradient(165deg, #18191d 0%, #111214 100%);
  animation: hebdoCardIn 0.45s ease both;
}
.hebdo-card[hidden] { display: none !important; }
.hebdo-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.hebdo-kicker {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); font-weight: 700;
}
.hebdo-card-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 700; color: var(--white);
  line-height: 1.25; margin-top: 6px;
}
.hebdo-period {
  font-size: 0.78rem; color: var(--muted); margin-top: 4px; font-weight: 500;
}
.hebdo-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(245, 185, 41, 0.35);
  background: rgba(245, 185, 41, 0.08);
  color: var(--yellow);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.hebdo-read svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.hebdo-read:hover {
  border-color: var(--yellow-deep);
  background: rgba(245, 185, 41, 0.16);
  color: #ffc857;
  transform: translateY(-1px);
}
.hebdo-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hebdo-metrics--report { margin-top: 4px; }
.hebdo-metric {
  background: rgba(11,12,14,0.55); border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center;
}
.hebdo-metric-value {
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--white); line-height: 1.1;
}
.hebdo-metric-label { display: block; margin-top: 5px; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.02em; }

.hebdo-report { max-width: 580px; animation: hebdoReportIn 0.5s ease both; }
.hebdo-report-hero {
  position: relative;
  margin: 0 0 22px;
  padding: 20px 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(155deg, #1a1b20 0%, #111214 70%);
}
.hebdo-report-hero::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--green);
}
.hebdo-report-hero[data-tone="watch"]::before { background: var(--yellow); }
.hebdo-report-hero[data-tone="alert"]::before { background: var(--red); }
.hebdo-report-hero[data-tone="calm"] {
  background:
    radial-gradient(90% 70% at 100% -10%, rgba(51,196,129,0.12), transparent 50%),
    linear-gradient(155deg, #1a1b20 0%, #111214 70%);
}
.hebdo-report-hero[data-tone="watch"] {
  background:
    radial-gradient(90% 70% at 100% -10%, rgba(245,185,41,0.14), transparent 50%),
    linear-gradient(155deg, #1a1b20 0%, #111214 70%);
}
.hebdo-report-hero[data-tone="alert"] {
  background:
    radial-gradient(90% 70% at 100% -10%, rgba(229,83,75,0.16), transparent 50%),
    linear-gradient(155deg, #1a1b20 0%, #111214 70%);
}
.hebdo-report-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem; font-weight: 700; color: var(--white);
  line-height: 1.2; margin-top: 8px; letter-spacing: -0.02em;
}
.hebdo-report-lead {
  margin-top: 10px; font-size: 0.95rem; color: var(--text); line-height: 1.5; max-width: 42ch;
}
.hebdo-report-period {
  margin-top: 14px; font-size: 0.75rem; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase;
}

.hebdo-chapter {
  margin-bottom: 8px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--border);
  animation: hebdoChapterIn 0.45s ease both;
}
.hebdo-chapter:nth-of-type(1) { animation-delay: 0.05s; }
.hebdo-chapter:nth-of-type(2) { animation-delay: 0.1s; }
.hebdo-chapter:nth-of-type(3) { animation-delay: 0.15s; }
.hebdo-chapter:nth-of-type(4) { animation-delay: 0.2s; }
.hebdo-chapter:last-child { border-bottom: none; padding-bottom: 4px; }
.hebdo-chapter-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2); font-weight: 600; margin-bottom: 8px;
}
.hebdo-chapter-num {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--yellow); font-weight: 700; letter-spacing: 0.04em;
}
.hebdo-chapter-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.hebdo-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hebdo-list li {
  font-size: 0.9rem; color: var(--text); padding: 11px 13px;
  border-radius: 10px; background: var(--bg-raised);
  border: 1px solid var(--border); border-left: 3px solid var(--red);
}
.hebdo-list li.ok {
  border-left-color: var(--green); color: var(--muted);
}
.hebdo-list li.muted { color: var(--muted-2); border-left-color: var(--border); }

.hebdo-note-label { font-size: 0.72rem; color: var(--muted-2); margin-bottom: 10px; }
.hebdo-quote {
  margin: 0; padding: 16px 18px 16px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,185,41,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(245,185,41,0.18);
  border-left: 3px solid var(--yellow);
}
.hebdo-quote strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; color: var(--white); margin-bottom: 8px; font-weight: 700;
}
.hebdo-quote p {
  font-size: 0.92rem; color: var(--text); line-height: 1.55; margin: 0;
}

.hebdo-chapter--action {
  margin-top: 4px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(245,185,41,0.28);
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(245,185,41,0.12), transparent 55%),
    var(--card);
}
.hebdo-action-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--white);
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.hebdo-action-text {
  font-size: 0.92rem; color: var(--text); line-height: 1.5; margin-bottom: 14px;
}
.hebdo-action-cta {
  width: 100%; justify-content: center;
}

@keyframes hebdoCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes hebdoReportIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes hebdoChapterIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hebdo-note { font-size: 0.9rem; color: var(--text); line-height: 1.45; padding: 10px 12px; border-radius: 8px; background: var(--bg-raised); border: 1px solid var(--border); }
.hebdo-action .btn-secondary { width: fit-content; }
.star-btn {
  background: none; border: none; padding: 0 2px; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: rgba(255,255,255,0.18);
  transition: color 0.12s ease, transform 0.12s ease;
}
.star-btn:hover { transform: scale(1.08); }
.star-btn.active { color: var(--yellow); }
#avisPanel textarea {
  width: 100%; min-height: 140px; resize: vertical; box-sizing: border-box;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px;
  padding: 11px 13px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem; line-height: 1.5;
}
#avisPanel textarea:focus { outline: none; border-color: var(--yellow-deep); }
.feature-card {
  display: block;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--yellow-deep); transform: translateY(-2px); }
.filigrane-highlight { animation: cardGlowPulse 2.6s ease-in-out infinite; }
@keyframes cardGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,185,41,0); border-color: var(--border); }
  50% { box-shadow: 0 0 0 3px rgba(245,185,41,0.22); border-color: var(--yellow-deep); }
}
.feature-card .icon {
  width: 40px; height: 40px; border-radius: 9px; background: var(--card-alt);
  border: 1px solid var(--border); color: var(--yellow);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.05rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.feature-card .step-num { font-size: 0.68rem; color: var(--yellow-deep); text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 6px; }
.feature-card p { font-size: 0.87rem; color: var(--muted); }
.feature-plan {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(51, 196, 129, 0.1);
  border: 1px solid rgba(51, 196, 129, 0.28);
}
.feature-plan--paid {
  color: var(--yellow);
  background: rgba(245, 185, 41, 0.1);
  border-color: rgba(245, 185, 41, 0.32);
}

/* Comment ça marche — parcours actionnable */
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-step { display: flex; flex-direction: column; }
.how-step .how-outcome {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}
.how-step .how-action {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
}
.how-step .how-action:hover { color: var(--yellow-deep); text-decoration: underline; }
/* Light section: yellow-deep reads better on white cards than bright yellow */
.section-light .how-step .how-outcome { color: var(--ink-muted); }
.section-light .how-step .how-action { color: var(--yellow-deep); }
.section-light .how-step .how-action:hover { color: var(--ink); }
.how-footer {
  margin-top: 36px;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.how-footer p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.how-footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Vault band */
.vault-band {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 46px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.vault-band h2 { font-size: 1.5rem; margin-bottom: 10px; }
.vault-band p.sub { color: var(--muted); margin-bottom: 22px; }
.plan-compare { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.plan-compare .plan { flex: 1; min-width: 160px; }
.plan-compare .plan .name { font-size: 0.75rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.plan-compare .plan .price { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.plan-compare .plan .price.accent { color: var(--yellow); }
.plan-compare .plan ul { list-style: none; font-size: 0.82rem; color: var(--muted); }
.plan-compare .plan ul li { margin-bottom: 4px; }
.doc-stack { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; }
.doc-mini {
  position: absolute; width: 160px; height: 100px; border-radius: 8px;
  background: var(--card-alt); border: 1px solid var(--border);
}
.doc-mini.one { transform: rotate(-8deg) translate(-30px, 10px); }
.doc-mini.two { transform: rotate(4deg) translate(20px, -14px); z-index: 2; }
.doc-lock {
  position: absolute; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); color: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 10px 24px -8px rgba(245,185,41,0.5);
}

/* ===== Pricing ===== */
.tarifs-toggle { display: flex; justify-content: center; gap: 4px; margin-bottom: 46px; }
.tarifs-toggle button {
  padding: 9px 18px; border-radius: 7px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 0.85rem; cursor: pointer;
}
.tarifs-toggle button.active { background: var(--card); color: var(--white); border-color: var(--yellow-deep); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; max-width: 1180px; margin: 0 auto; }
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}
.price-card--founder { border-color: rgba(232, 197, 71, 0.45); }
.founder-code-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ink-border, rgba(255,255,255,0.14));
  background: rgba(0,0,0,0.18);
  color: var(--text, #fff);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 30px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--yellow); position: relative; }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--bg); font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
}
.price-card .plan-name { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.price-card .plan-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 4px; transition: opacity 0.15s ease; }
.price-card .plan-price .price-suffix { font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.price-card ul li { font-size: 0.87rem; color: var(--muted); padding: 7px 0; display: flex; gap: 8px; }
.price-card ul li::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-note { text-align: center; color: var(--muted-2); font-size: 0.82rem; margin-top: 34px; }

/* ===== À propos ===== */
.about-page { padding: 72px 0 80px; }
.about-intro { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.about-intro .pill { justify-content: center; margin-bottom: 18px; }
.about-intro h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}
.about-intro h1 .accent { color: var(--yellow); }
.about-intro .lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.about-story {
  max-width: 680px;
  margin: 0 auto 72px;
}
.about-story h2 { font-size: 1.45rem; margin-bottom: 16px; }
.about-story p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.about-principles { margin-bottom: 72px; }
.about-principles .section-head { margin-bottom: 36px; }
.about-principles .feature-card { cursor: default; }
.about-principles .feature-card:hover { transform: none; }
.about-what { padding: 64px 0; margin-bottom: 64px; }
.about-what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.about-what h2 { font-size: 1.35rem; margin-bottom: 18px; }
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-deep);
}
.about-list--muted li::before { background: var(--ink-border); }
.about-france {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-france h2 { font-size: 1.35rem; margin-bottom: 12px; }
.about-france p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.about-france-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-france-meta span {
  font-size: 0.9rem;
  color: var(--text);
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 800px) {
  .about-what-grid,
  .about-france { grid-template-columns: 1fr; gap: 28px; }
  .about-page { padding: 48px 0 60px; }
  .about-story,
  .about-principles { margin-bottom: 48px; }
  .about-what { padding: 48px 0; margin-bottom: 48px; }
}

/* ===== Contact ===== */
.contact-page { padding: 72px 0 100px; }
.contact-layout { max-width: 720px; margin: 0 auto; }
.contact-intro { margin-bottom: 28px; }
.contact-intro h1 {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px;
}
.contact-intro p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 540px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.contact-account-hint {
  font-size: 0.8rem; color: var(--yellow); background: rgba(245,185,41,0.08);
  border: 1px solid rgba(245,185,41,0.28); border-radius: 8px; padding: 10px 12px;
}
.contact-card textarea {
  width: 100%; min-height: 160px; resize: vertical; box-sizing: border-box;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px;
  padding: 11px 13px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem; line-height: 1.5;
}
.contact-card textarea:focus { outline: none; border-color: var(--yellow-deep); }
.contact-card input[readonly], .contact-card input:read-only {
  opacity: 0.85; cursor: default;
}
.contact-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 4px;
}
.contact-legal-note {
  font-size: 0.76rem; color: var(--muted-2); line-height: 1.5; margin: 0;
}
.contact-legal-note a { color: var(--muted); text-decoration: underline; }
.contact-legal-note a:hover { color: var(--yellow-deep); }
.contact-success {
  font-size: 0.88rem; color: var(--green); padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(51,196,129,0.35); background: rgba(51,196,129,0.08);
}
@media (max-width: 560px) {
  .contact-page { padding: 48px 0 72px; }
  .contact-card { padding: 20px 16px; }
  .contact-actions { flex-direction: column-reverse; }
  .contact-actions .btn-primary,
  .contact-actions .btn-secondary { width: 100%; justify-content: center; }
}

/* ===== Settings page ===== */
.settings-grid { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-form { display: flex; flex-direction: column; gap: 16px; }

.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-preview {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-link-muted {
  background: none; border: none; color: var(--muted-2); font-size: 0.8rem; cursor: pointer;
  padding: 0; text-decoration: underline;
}
.btn-link-muted:hover { color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field label { font-size: 0.8rem; color: var(--muted); }
.form-field input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px;
  padding: 10px 12px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
}
.form-field input:focus { outline: none; border-color: var(--yellow-deep); }
.field-hint { font-size: 0.72rem; color: var(--muted-2); }
.save-confirm { display: inline-block; margin-left: 12px; font-size: 0.82rem; color: var(--green); opacity: 0; transition: opacity 0.2s ease; }
.save-confirm.visible { opacity: 1; }
.plan-status { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.plan-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 132px;
  padding: 18px 16px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-sizing: border-box;
}
.plan-seal[hidden] { display: none !important; }
.plan-seal img {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 12px;
}
.plan-seal span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1;
}
.plan-seal--premium {
  border-color: rgba(245,185,41,0.55);
  background: linear-gradient(180deg, rgba(245,185,41,0.1) 0%, var(--card) 70%);
}
.plan-seal--premium span { color: var(--white); }
.plan-seal--pricing {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 18px 14px 16px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
}
.plan-seal--pricing img { width: 40px; height: 40px; border-radius: 10px; }
.plan-seal--pricing span { font-size: 0.8rem; letter-spacing: 0.12em; }
.plan-status-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white); }
.plan-status-desc { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.plan-status a.btn-primary { align-self: flex-start; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Private space: large dashboard tab ===== */
.dash-card-large { max-width: none; }
.dash-card-large .dash-body { min-height: 460px; grid-template-columns: 180px 1fr; }
.dash-card-large .dash-sidebar { width: auto; }
.dash-card-large .dash-main { padding: 32px 36px; }
.dash-empty {
  margin-top: 18px; padding: 22px; text-align: center; color: var(--muted-2);
  font-size: 0.85rem; border: 1px dashed var(--border); border-radius: 10px;
}
.icon-back,
.icon-up {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--yellow);
  display: block;
}
.priv-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 9px 16px; border-radius: 7px; font-size: 0.85rem; font-weight: 500; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.priv-back:hover {
  border-color: var(--yellow-deep);
  background: var(--card-alt);
  color: var(--white);
}
.priv-back:hover .icon-back { color: var(--yellow); }
a.page-back,
a.priv-back {
  text-decoration: none;
}
.page-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 9px 16px; border-radius: 7px; font-size: 0.85rem; font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  margin-bottom: 18px;
}
.page-back:hover {
  border-color: var(--yellow-deep);
  background: var(--card-alt);
  color: var(--white);
}
.page-back:hover .icon-back { color: var(--yellow); }
.page-back--flush { margin-bottom: 0; }
.section-light .page-back,
.check-section .page-back {
  background: var(--pearl-card);
  border-color: var(--ink-border);
  color: var(--ink);
}
.section-light .page-back:hover,
.check-section .page-back:hover {
  border-color: var(--yellow-deep);
  background: #EFEEEA;
  color: var(--ink);
}
.auth-back-link {
  text-align: center;
  font-size: 0.82rem;
}
.auth-back-link a,
.demarche-back-hub,
.legal-back-top,
#demarchePrev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-back-link a {
  color: var(--muted);
  text-decoration: none;
  justify-content: center;
}
.auth-back-link a:hover { color: var(--white); }
.auth-back-link a:hover .icon-back { color: var(--yellow); }
.auth-back-link a .icon-back,
.demarche-back-hub .icon-back,
#demarchePrev .icon-back {
  color: var(--yellow-deep);
}
.legal-back-top .icon-up { color: var(--yellow-deep); }

/* ===== Espace privé : barre persistante (logo, déconnexion) ===== */
.priv-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--bg-raised);
  flex-wrap: wrap; position: sticky; top: 0; z-index: 100;
}
.priv-topbar .logo { font-size: 1.05rem; gap: 10px; }
.priv-topbar .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.priv-topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.priv-topbar-email { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .priv-topbar { padding: 12px 16px; }
  .priv-topbar-email { display: none; }
  .priv-topbar .logo-plan-chip { padding: 3px 7px; font-size: 0.56rem; }
}

/* ===== Premium lock overlay ===== */
.priv-locked-wrap { position: relative; }
.priv-locked-wrap .blurred { filter: blur(4px) grayscale(0.5); pointer-events: none; user-select: none; }
.priv-lock-overlay {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 10px; padding: 24px;
  background: rgba(14,15,17,0.6); border-radius: 14px; backdrop-filter: blur(1px);
}
.priv-lock-overlay .lock-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--border); color: var(--yellow);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.priv-lock-overlay h4 { font-size: 1rem; color: var(--white); }
.priv-lock-overlay p { font-size: 0.85rem; color: var(--muted); max-width: 32ch; }
.settings-grid.single-col { grid-template-columns: 1fr; }
.settings-grid.single-col #infosPanel { max-width: 720px; }

/* ===== Coffre-fort ===== */
.vault-security-note {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 22px; margin-bottom: 0; padding: 12px 14px;
  border-radius: 10px; border: 1px solid rgba(232, 197, 71, 0.28);
  background: rgba(232, 197, 71, 0.06);
}
.vault-security-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow); background: rgba(232, 197, 71, 0.1);
  border: 1px solid rgba(232, 197, 71, 0.22);
}
.vault-security-note strong {
  display: block; font-size: 0.86rem; color: var(--white); margin-bottom: 4px;
}
.vault-security-note p {
  margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; max-width: 62ch;
}
.vault-upload-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.vault-upload-row .form-field { flex: 1; min-width: 180px; margin-bottom: 0; }
/* ===== Global select styling (fixes native white dropdown) ===== */
select {
  color-scheme: dark;
}
select option {
  background: var(--bg-raised);
  color: var(--text);
}
.form-field select,
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"] {
  width: 100%; box-sizing: border-box;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px;
  padding: 10px 12px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
}
.form-field select:focus,
.form-field input:focus { outline: none; border-color: var(--yellow-deep); }

.share-source-picker {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--bg-raised);
}
.share-source-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 7px;
  background: none; border: none; color: var(--text); font-size: 0.87rem; text-align: left; cursor: pointer;
}
.share-source-option:hover { background: var(--card-alt); }
.share-source-option svg { color: var(--yellow); flex-shrink: 0; }

.share-selected-doc {
  display: none; align-items: center; gap: 10px; margin-top: 10px;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: var(--bg-raised);
}
.share-selected-doc img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.share-selected-doc span { flex: 1; font-size: 0.85rem; color: var(--text); }

.demarche-notice {
  background: rgba(245, 185, 41, 0.08);
  border: 1px solid rgba(216, 154, 21, 0.35);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 22px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 920px;
}
.demarche-notice strong { color: var(--white); font-weight: 600; }
.demarche-notice em { font-style: normal; color: var(--text); }

.demarche-how {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.demarche-how h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--white);
}
.demarche-how ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.demarche-how li { margin-bottom: 6px; }

.demarche-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px) {
  .demarche-case-grid { grid-template-columns: 1fr; }
}
.demarche-case-card {
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.demarche-case-card:hover:not(:disabled) {
  border-color: var(--yellow-deep);
  background: var(--card-alt);
  transform: translateY(-1px);
}
.demarche-case-card:disabled { opacity: 0.55; cursor: not-allowed; }
.demarche-case-card .icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border);
  color: var(--yellow); margin-bottom: 12px;
}
.demarche-case-card h3 {
  font-size: 0.92rem;
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--white);
}
.demarche-case-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.demarche-back-hub { margin-bottom: 14px; }
.demarche-wizard-head { margin-bottom: 8px; }
.demarche-wizard-head h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
}
.demarche-step-label {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.demarche-step-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.demarche-step-pills span {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-2);
  background: var(--bg-raised);
}
.demarche-step-pills span.active {
  color: var(--bg);
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 600;
}
.demarche-step-pills span.done {
  color: var(--yellow);
  border-color: rgba(216, 154, 21, 0.45);
}

.demarche-step-panel .form-field textarea {
  width: 100%; box-sizing: border-box;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px;
  padding: 10px 12px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  resize: vertical; min-height: 84px;
}
.demarche-step-panel .form-field textarea:focus {
  outline: none; border-color: var(--yellow-deep);
}

.demarche-wizard-nav {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.demarche-certify {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.demarche-certify input {
  margin-top: 3px;
  accent-color: var(--yellow);
  flex-shrink: 0;
}
.demarche-certify span { color: var(--text); }

.demarche-official {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.demarche-official h4 {
  font-size: 0.9rem;
  margin: 0 0 6px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
}
.demarche-links-intro {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin: 0 0 10px;
  line-height: 1.45;
}
.demarche-links {
  margin: 0;
  padding-left: 18px;
}
.demarche-links li { margin-bottom: 6px; font-size: 0.85rem; }
.demarche-links a { color: var(--yellow-deep); text-decoration: none; }
.demarche-links a:hover { color: var(--yellow); text-decoration: underline; }

.demarche-result { margin-top: 12px; }
.demarche-result textarea {
  width: 100%; min-height: 280px; box-sizing: border-box;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem;
  line-height: 1.6; resize: vertical;
}
.demarche-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.demarche-actions button, .demarche-actions a { border: none; cursor: pointer; text-decoration: none; }
.demarche-actions a.is-disabled,
.demarche-actions button:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.doc-register-wrap { display: flex; align-items: center; gap: 8px; }
.doc-register-btn {
  background: var(--yellow); color: var(--bg); border: none; border-radius: 6px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 600; cursor: pointer;
}
.doc-register-btn:hover { background: #ffc857; }
.doc-expiry-section { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 16px; }
.doc-expiry-title { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.doc-expiry-row {
  display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text);
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.doc-expiry-row:last-child { border-bottom: none; }
.doc-expiry-row .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ===== AI chat widget ===== */
.ai-chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 400; font-family: 'Inter', sans-serif; }

/* Marqueur de version produit — bas droite, à gauche du chat ODA */
body::after {
  content: 'V1.0';
  position: fixed;
  right: 88px;
  bottom: 30px;
  z-index: 350;
  font-family: 'IBM Plex Mono', 'Space Grotesk', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 640px) {
  body::after { right: 82px; bottom: 26px; font-size: 0.64rem; }
}
.ai-chat-bubble {
  width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--bg);
  border: none; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  padding: 0; overflow: hidden;
}
.ai-chat-bubble:hover { background: #ffc857; }
.ai-chat-bubble img { width: 100%; height: 100%; object-fit: cover; }
.ai-chat-header-identity { display: flex; align-items: center; gap: 8px; }
.ai-chat-header-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.ai-chat-header-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.ai-chat-header-ai {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--muted-2);
}
.ai-chat-disclaimer {
  margin: 0; padding: 6px 16px 0;
  font-size: 0.68rem; line-height: 1.35; color: var(--muted-2);
  border-top: 1px solid var(--border);
}
.ai-chat-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ai-chat-typing { display: flex !important; align-items: center; gap: 4px; padding: 12px 14px !important; }
.ai-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: aiTypingBounce 1.2s ease-in-out infinite; }
.ai-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.ai-chat-prompt {
  position: absolute; right: 66px; bottom: 4px; width: 240px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; box-shadow: 0 20px 40px -14px rgba(0,0,0,0.5);
}
.ai-chat-prompt p { font-size: 0.85rem; color: var(--text); margin-bottom: 10px; }
.ai-chat-prompt .ai-chat-prompt-actions { display: flex; gap: 8px; align-items: center; }
.ai-chat-prompt button#aiChatPromptOpen {
  background: var(--yellow); color: var(--bg); border: none; border-radius: 6px;
  padding: 7px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.ai-chat-prompt button#aiChatPromptClose {
  background: none; border: none; color: var(--muted-2); cursor: pointer; font-size: 0.8rem; margin-left: auto;
}
.ai-chat-panel {
  position: absolute; right: 0; bottom: 70px; width: 320px; max-height: 440px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0,0,0,0.6);
}
.ai-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--white);
}
.ai-chat-header button { background: none; border: none; color: var(--muted-2); cursor: pointer; font-size: 0.85rem; }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; max-height: 300px; }
.ai-chat-msg { font-size: 0.83rem; line-height: 1.5; padding: 8px 12px; border-radius: 10px; max-width: 85%; }
.ai-chat-msg.assistant { background: var(--bg-raised); color: var(--text); align-self: flex-start; border: 1px solid var(--border); }
.ai-chat-msg.user { background: var(--yellow); color: var(--bg); align-self: flex-end; }
.ai-chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.ai-chat-gate {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}
.ai-chat-gate p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 12px;
}
.ai-chat-gate .btn-primary {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
.ai-chat-input-row input {
  flex: 1; min-width: 0; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px;
  padding: 9px 10px; color: var(--text); font-size: 0.82rem;
}
.ai-chat-input-row button {
  background: var(--yellow); color: var(--bg); border: none; border-radius: 7px;
  padding: 9px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
@media (max-width: 480px) {
  .ai-chat-panel { width: calc(100vw - 32px); right: -6px; }
  .ai-chat-prompt { width: 210px; }
}

.share-picker-content {
  position: relative; width: 100%; max-width: 560px; max-height: 78vh;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; overflow-y: auto; z-index: 1;
}
.share-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.share-picker-head h3 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.share-picker-body .vault-folder:last-child { margin-bottom: 0; }

.vault-upload-row select {
  width: 100%; box-sizing: border-box; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 12px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
}
.vault-upload-row input[type="file"] {
  width: 100%; box-sizing: border-box; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 7px; padding: 8px 10px; color: var(--muted); font-family: 'Inter', sans-serif; font-size: 0.82rem;
}
.vault-error { font-size: 0.78rem; color: var(--red); min-height: 16px; margin-top: 8px; }
.vault-remove {
  background: none; border: 1px solid var(--border); color: var(--muted-2);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; flex-shrink: 0;
}
.vault-remove:hover { color: var(--red); border-color: var(--red); }

.share-link-btn {
  background: none; border: 1px solid var(--border); color: var(--muted-2);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.share-link-btn:hover { color: var(--yellow); border-color: var(--yellow-deep); }

.vault-file-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 10px 12px; font-size: 0.85rem; cursor: pointer; box-sizing: border-box;
}
.vault-loading {
  display: flex; align-items: center; gap: 10px; font-size: 0.83rem; color: var(--muted);
  margin-top: 12px;
}
.vault-spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--yellow);
  animation: vaultSpin 0.7s linear infinite; display: inline-block;
}
@keyframes vaultSpin { to { transform: rotate(360deg); } }

.vault-row { cursor: pointer; }
.vault-thumb { padding: 0; overflow: hidden; }
.vault-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.vault-modal {
  display: none; position: fixed; inset: 0; z-index: 300; align-items: center; justify-content: center;
}
.vault-modal.open { display: flex; }
.vault-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.vault-modal-content {
  position: relative; max-width: 90vw; max-height: 88vh; z-index: 1;
}
.vault-modal-content img { max-width: 90vw; max-height: 88vh; border-radius: 10px; display: block; }
.vault-modal-close {
  position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); color: var(--white);
  cursor: pointer; font-size: 0.9rem;
}

.vault-folder {
  border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 14px; background: var(--bg-raised);
}
.vault-folder-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vault-folder-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--card-alt);
  border: 1px solid var(--border); color: var(--yellow);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vault-folder-title { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.vault-folder-count { font-size: 0.74rem; color: var(--muted-2); margin-top: 1px; }
.vault-folder-items { display: flex; flex-wrap: wrap; gap: 10px; }
.vault-item { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.vault-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.vault-item-remove {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(14,15,17,0.75); border: none; color: var(--white); font-size: 0.68rem; cursor: pointer;
}
.vault-item-remove:hover { background: var(--red); }

.share-form { display: flex; flex-direction: column; gap: 16px; }
.share-checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.share-result {
  margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised);
}
.share-result-row { display: flex; gap: 10px; }
.share-result-row input {
  flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 7px;
  padding: 10px 12px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem;
}
.score-row { flex-wrap: wrap; }
@media (max-width: 700px) {
  .dash-card-large .dash-body { grid-template-columns: 1fr; }
  .dash-card-large .dash-sidebar { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .dash-card-large .dash-sidebar a { margin-bottom: 0; }
  .dash-card-large .dash-main { padding: 22px 18px; }
}
@media (max-width: 600px) {
  .dash-card { overflow: visible; }
  .dash-card-top { flex-wrap: wrap; row-gap: 6px; padding: 12px 14px; }
  .dash-demo-badge { margin-left: 0; }
  .dash-card .dash-body,
  .dash-card-demo .dash-body { grid-template-columns: 1fr; min-height: auto; max-height: none; }
  .dash-card .dash-sidebar,
  .dash-card-demo .dash-sidebar {
    display: flex; flex-wrap: wrap; gap: 6px; width: 100%;
    border-right: none; border-bottom: 1px solid var(--border); padding: 10px 12px;
    overflow: visible; max-height: none;
  }
  .dash-card .dash-sidebar a,
  .dash-card-demo .dash-sidebar a { margin-bottom: 0; padding: 6px 10px; }
  .dash-card .dash-main,
  .dash-card-demo .dash-main { padding: 18px 16px; max-height: none; overflow: visible; }
  .dash-card .mini-alerts { grid-template-columns: 1fr; }
  .dash-card .score-row { gap: 16px; }
}
@media (max-width: 560px) {
  .features-grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
}
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.kpi-card .label { font-size: 0.72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.kpi-card .value { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--white); }
.kpi-card .value.accent { color: var(--yellow); }
.kpi-card .foot { font-size: 0.76rem; color: var(--muted); margin-top: 6px; }

.panel-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; }
.panel h3 { font-size: 0.95rem; margin-bottom: 18px; font-family: 'Inter', sans-serif; font-weight: 600; }
.chart-axis { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--muted-2); margin-top: 10px; }
.activity-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border-bottom: none; }
.activity-row .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.activity-row .dot.red { background: var(--red); }
.activity-row .dot.orange { background: var(--yellow); }
.activity-row .dot.green { background: var(--green); }
.activity-row .title { font-size: 0.85rem; color: var(--white); font-weight: 500; }
.activity-row .meta { font-size: 0.74rem; color: var(--muted-2); margin-top: 2px; }
.panel-foot-link { display: block; text-align: center; margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.panel-foot-link:hover { color: var(--white); }

/* ===== Documents page ===== */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-row {
  display: flex; align-items: center; gap: 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px;
}
.doc-row .doc-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--card-alt);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--yellow);
}
.doc-row .info { flex: 1; }
.doc-row .name { font-size: 0.92rem; font-weight: 600; color: var(--white); }
.doc-row .date { font-size: 0.76rem; color: var(--muted-2); margin-top: 2px; }
.doc-row .verified { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--green); }
.doc-row .menu-dots { color: var(--muted-2); padding: 0 6px; }

/* ===== Carte d'identité numérique (onglet Identité) ===== */
.id-card {
  background: linear-gradient(135deg, var(--card-alt), var(--bg-raised));
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
  position: relative; overflow: hidden;
}
.id-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(245,185,41,0.12), transparent 60%);
}
.id-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; position: relative; }
.id-card-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--white); }
.id-card-badge {
  margin-left: auto; font-size: 0.68rem; font-weight: 600; color: var(--green);
  background: rgba(51,196,129,0.12); border: 1px solid rgba(51,196,129,0.3);
  border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.id-card-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; position: relative; }
.id-card-row {
  display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--muted);
  padding: 7px 0; border-top: 1px dashed var(--border); position: relative;
}
.id-card-row span:last-child { color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; }
.id-card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ===== Icône afficher/masquer un mot de passe ===== */
.password-field { position: relative; }
.password-field input { width: 100%; }
.password-toggle-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted-2); cursor: pointer;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px;
}
.password-toggle-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ===== Filtre de l'historique des partages ===== */
.share-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.share-filter-select {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px; color: var(--text);
  padding: 7px 10px; font-size: 0.8rem; font-family: inherit; cursor: pointer;
}
.share-filter-select:focus { outline: none; border-color: var(--yellow-deep); }

/* ===== Onglet Paramètres (dashboard privé) ===== */
.settings-section { padding: 16px 0; border-top: 1px solid var(--border); }
.settings-section:first-child { padding-top: 0; border-top: none; }
.settings-section-title { font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.settings-section .form-field { margin-bottom: 12px; max-width: 360px; }
.pref-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.85rem; color: var(--muted); padding: 9px 0;
}
.pref-toggle-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--yellow); flex-shrink: 0; cursor: pointer; }
.settings-section-danger .btn-secondary { border-color: rgba(255,107,107,0.35); color: #ff6b6b; }
.settings-section-danger .btn-secondary:hover { background: rgba(255,107,107,0.08); border-color: #ff6b6b; }

/* ===== Alerts page ===== */
.alert-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.alert-tabs button { padding: 8px 16px; border-radius: 7px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 0.83rem; cursor: pointer; }
.alert-tabs button.active { background: var(--card); color: var(--white); border-color: var(--yellow-deep); }
.alert-list { display: flex; flex-direction: column; gap: 12px; }
.alert-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 12px;
}
.alert-item .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.alert-item .dot.red { background: var(--red); }
.alert-item .dot.orange { background: var(--yellow); }
.alert-item .dot.green { background: var(--green); }
.alert-item .title { font-size: 0.92rem; font-weight: 600; color: var(--white); }
.alert-item .desc { font-size: 0.83rem; color: var(--muted); margin: 4px 0; }
.alert-item .meta { font-size: 0.72rem; color: var(--muted-2); }

/* ===== Filigrane page ===== */
.filigrane-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; }
.filigrane-grid > div { min-width: 0; }
.steps-list { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.steps-list .step { display: flex; gap: 14px; }
.steps-list .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--card-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem; color: var(--yellow); flex-shrink: 0;
}
.steps-list h4 { font-size: 0.92rem; margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.steps-list p { font-size: 0.85rem; color: var(--muted); }
.dropzone {
  width: 100%; box-sizing: border-box; cursor: pointer;
  border: 1.5px dashed var(--border); border-radius: 12px; background: var(--card);
  padding: 60px 30px; text-align: center;
}
.dropzone:hover { border-color: var(--yellow-deep); }
.dropzone .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--card-alt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--yellow); font-size: 1.2rem; }
.dropzone p.main { font-size: 0.95rem; color: var(--white); margin-bottom: 6px; }
.dropzone p.hint { font-size: 0.78rem; color: var(--muted-2); }
.upgrade-note {
  margin-top: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; font-size: 0.84rem; color: var(--muted);
}
.upgrade-note strong { color: var(--white); }
.filigrane-upsell {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: rgba(245, 185, 41, 0.08);
  border: 1px solid rgba(245, 185, 41, 0.35);
  border-radius: 10px;
}
.filigrane-upsell p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  max-width: 42ch;
}
.filigrane-upsell strong { color: var(--yellow); font-weight: 600; }
.filigrane-upsell .btn-primary { white-space: nowrap; }
.purpose-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.purpose-row .form-field { flex: 1; min-width: 200px; margin-bottom: 0; }
.purpose-row select, .purpose-row input[type="date"] {
  width: 100%; box-sizing: border-box; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 12px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { font-size: 1.2rem; margin-bottom: 4px; }
.cta-band p { color: var(--muted); font-size: 0.9rem; }

/* ===== Guide fonctionnalités ===== */
.guide-note {
  margin: 28px auto 0; max-width: 54ch; text-align: center;
  font-size: 0.88rem; color: var(--muted); line-height: 1.5;
}
.guide-list {
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 48px; padding-bottom: 36px;
}
.guide-block {
  padding: 28px 30px;
  border: 1px solid var(--ink-border);
  border-radius: 14px;
  background: var(--pearl-card, #fff);
  scroll-margin-top: 96px;
}
.section-light .guide-block {
  background: var(--pearl-card);
}
.section-light .guide-cta { color: var(--yellow-deep); }
.section-light .guide-cta:hover { color: var(--ink); }
.guide-block-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 10px;
}
.guide-block-head h2 {
  font-size: 1.25rem; margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}
.guide-block > p {
  color: var(--ink-muted, var(--muted));
  font-size: 0.92rem; line-height: 1.55; margin-bottom: 14px;
}
.guide-points {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.guide-points li {
  position: relative; padding-left: 16px;
  font-size: 0.88rem; color: var(--ink-muted, var(--muted)); line-height: 1.45;
}
.guide-points li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-deep, #c9a227);
}
.guide-points li strong { color: var(--ink, var(--text)); font-weight: 600; }
.guide-cta {
  display: inline-flex; align-items: center;
  font-size: 0.88rem; font-weight: 600; color: var(--yellow-deep, #b8921f);
  text-decoration: none;
}
.guide-cta:hover { text-decoration: underline; }

/* ===== Footer ===== */
footer.public { border-top: 1px solid var(--ink-border); padding: 56px 0 30px; background: var(--pearl); }
footer.public h5 { color: var(--ink); }
footer.public ul li a { color: var(--ink-muted); }
footer.public ul li a:hover { color: var(--ink); }
footer.public p.tagline { color: var(--ink-muted); }
footer.public .logo { color: var(--ink); }
footer.public .social-row a { border-color: var(--ink-border); color: var(--ink-muted); }
footer.public .footer-bottom { color: var(--ink-muted); border-top-color: var(--ink-border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h5 { font-size: 0.8rem; color: var(--white); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul li a { font-size: 0.85rem; color: var(--muted); }
.footer-grid ul li a:hover { color: var(--white); }
.footer-grid p.tagline { font-size: 0.85rem; color: var(--muted); max-width: 26ch; margin-top: 10px; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted-2); }
.footer-bottom .badges { display: flex; gap: 18px; }
.footer-bottom .badges span { display: flex; align-items: center; gap: 6px; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--yellow-deep); outline-offset: 2px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .vault-band { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .filigrane-grid { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .features-grid, .features-grid.cols-3, .kpi-grid { grid-template-columns: 1fr; }
  .press-logos { gap: 28px; }
}

.btn-login, .btn-primary, .btn-secondary { white-space: nowrap; }
.btn-primary.disabled, .btn-secondary.disabled { opacity: 0.6; pointer-events: none; }
.mobile-only-link { display: none !important; }
@media (max-width: 1100px) {
  header.public.nav-open .mobile-only-link { display: block !important; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 6px; padding-top: 12px !important; }
}
@media (max-width: 480px) {
  .nav { gap: 8px; padding: 14px 0; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
  .logo-plan-chip { padding: 2px 6px; font-size: 0.5rem; letter-spacing: 0.08em; }
  .nav-right { gap: 6px; }
  .btn-login { display: none; }
  .btn-primary { padding: 9px 12px; font-size: 0.8rem; }
  .nav-toggle { padding: 4px; font-size: 20px; }
  .nav-user-email { max-width: 110px; }
}
