/* ==========================================================================
   NeuroFuel — feuille de style commune
   Palette sobre, une couleur d'accent (indigo), trois couleurs d'énergie.
   ========================================================================== */

:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f1f2f6;
  --ink: #12131a;
  --ink-2: #3f4150;
  --muted: #6b6f80;
  --line: #e4e6ee;
  --line-strong: #cfd2de;

  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: #eef0ff;
  --accent-ink: #312e81;

  --navy: #0d1024;
  --navy-2: #161a36;

  --e1: #15803d; --e1-bg: #ecfdf3; --e1-line: #bbf7d0;
  --e2: #b45309; --e2-bg: #fff7e6; --e2-line: #fde68a;
  --e3: #b91c1c; --e3-bg: #fef2f2; --e3-line: #fecaca;

  --ok: #15803d;
  --warn: #b45309;
  --danger: #b91c1c;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 19, 26, .05), 0 1px 3px rgba(18, 19, 26, .04);
  --shadow: 0 6px 24px rgba(18, 19, 26, .07);
  --shadow-lg: 0 20px 60px rgba(18, 19, 26, .12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1120px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: .95em; height: .95em; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #7c3aed); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
/* Entre tablette et grand écran, le menu (5 liens, langue, bouton) se resserre pour tenir sur une ligne. */
.nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1320px) { .nav { gap: 18px; } .nav a { font-size: .9rem; } }
@media (min-width: 861px) and (max-width: 1180px) { .nav { gap: 14px; } .nav a[href="#science"], .nav a[href="#app"] { display: none; } .nav a.btn-sm { padding-left: 14px; padding-right: 14px; } }
/* Bouton d'action du menu : plus spécifique que `.nav a` pour ne pas hériter du gris. Fond bleu nuit, lisible sur l'en-tête clair. */
.nav a.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 4px 14px rgba(13,16,36,.22); }
.nav a.btn-primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(13,16,36,.28); }
/* Utilisateur connecté à l'app : pastille avec initiale et prénom, vers son espace. */
.nav a.nav-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; }
.nav a.nav-user:hover { border-color: var(--accent); color: var(--accent-ink); }
.nav a.nav-user[hidden] { display: none; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #7c3aed); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 8px; border-radius: 8px; font-size: 1rem; }
  .nav a:hover { background: var(--surface-2); }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(79,70,229,.3); }
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79,70,229,.35); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover:not(:disabled) { background: #eef0ff; color: var(--navy); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-danger { background: var(--e3-bg); color: var(--danger); border-color: var(--e3-line); }
.btn-danger:hover:not(:disabled) { background: #fee2e2; color: var(--danger); }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .eyebrow { color: #a5b4fc; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,.72); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; }
.section-lead { margin-top: 14px; font-size: 1.1rem; color: var(--muted); }

.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 120%;
  background: radial-gradient(60% 50% at 70% 30%, rgba(99,102,241,.35), transparent 60%),
              radial-gradient(40% 40% at 20% 80%, rgba(124,58,237,.25), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
/* Accroche haut de gamme : petites capitales espacées, trait dégradé, séparateurs discrets. */
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 26px; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(199,210,254,.78); }
.hero-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #a5b4fc, #c4b5fd); }
.hero-eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: rgba(199,210,254,.45); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
/* Titre en deux lignes voulues : « Planifiez votre semaine » puis la suite. */
.hero h1 .h1-line { display: block; }
/* Grand écran : « Planifiez votre semaine » reste d'un bloc, la suite se répartit en lignes équilibrées. */
@media (min-width: 861px) { .hero h1:has(.h1-line) { font-size: min(3.3rem, 4.4vw); } .hero h1 .h1-line:first-child { white-space: nowrap; } .hero h1 .h1-line { text-wrap: balance; } }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #a5b4fc, #c4b5fd 55%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 22px; font-size: 1.1rem; line-height: 1.65; color: rgba(255,255,255,.66); max-width: 520px; text-wrap: pretty; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

/* Aperçu produit dans le hero */
.preview { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1deg); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.preview-head strong { font-size: .95rem; }
.preview-head span { font-size: .8rem; color: var(--muted); }
.preview-body { padding: 14px 18px 18px; display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 86px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .88rem; }
.slot time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; }
.slot.e3 { border-color: var(--e3-line); background: var(--e3-bg); }
.slot.e2 { border-color: var(--e2-line); background: var(--e2-bg); }
.slot.e1 { border-color: var(--e1-line); background: var(--e1-bg); }
.slot.lunch { background: var(--surface-2); color: var(--muted); border-style: dashed; }
.pips { display: inline-flex; gap: 3px; }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.e3 .pip.on { background: var(--e3); }
.e2 .pip.on { background: var(--e2); }
.e1 .pip.on { background: var(--e1); }
.preview-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .85rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pill-ok { background: var(--e1-bg); color: var(--ok); }
.pill-warn { background: var(--e2-bg); color: var(--warn); }
.pill-danger { background: var(--e3-bg); color: var(--danger); }
.pill-muted { background: var(--surface-2); color: var(--muted); }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 26px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stat span { color: var(--muted); font-size: .93rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; margin-bottom: 18px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.card-icon .icon { width: 22px; height: 22px; }
.card-icon.accent { background: var(--accent-soft); color: var(--accent); }
/* En-tête de carte : pictogramme (ou numéro d'étape) puis titre à sa droite. */
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-head .step-num, .card-head .card-icon { margin: 0; flex: none; }
.card .card-head h3 { margin: 0; }

.energy-card { border-top: 4px solid; }
.energy-card.e1 { border-top-color: var(--e1); }
.energy-card.e2 { border-top-color: var(--e2); }
.energy-card.e3 { border-top-color: var(--e3); }
.energy-card .card-icon.e1 { background: var(--e1-bg); color: var(--e1); }
.energy-card .card-icon.e2 { background: var(--e2-bg); color: var(--e2); }
.energy-card .card-icon.e3 { background: var(--e3-bg); color: var(--e3); }
.energy-card .tokens { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: -4px 0 10px; }
.energy-card ul { margin-top: 14px; display: grid; gap: 6px; color: var(--ink-2); font-size: .93rem; }
.energy-card li { display: flex; gap: 8px; align-items: flex-start; }
.energy-card li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; margin-top: 9px; opacity: .5; }

.science { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.science-text p { color: rgba(255,255,255,.74); margin-top: 14px; font-size: 1.02rem; }
.science-text p strong { color: #fff; }
.curve { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px; }
.curve h4 { font-size: .95rem; color: #c7d2fe; margin-bottom: 16px; }
.curve-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .9rem; }
.curve-row:first-of-type { border-top: 0; }
.curve-row time { color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #818cf8, #a78bfa); }
.curve-row span { font-size: .85rem; color: rgba(255,255,255,.85); }
.curve-note { margin-top: 14px; font-size: .85rem; color: rgba(255,255,255,.55); }

.profiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.chip .icon { color: var(--accent); }

.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .check { width: 26px; height: 26px; border-radius: 50%; background: var(--e1-bg); color: var(--e1); display: grid; place-items: center; flex: none; margin-top: 2px; }
.benefit .check .icon { width: 14px; height: 14px; stroke-width: 3; }
.benefit h4 { font-size: 1rem; margin-bottom: 4px; }
.benefit p { color: var(--muted); font-size: .93rem; }

/* Section TDAH / dyslexie : la douleur, les réponses, puis les deux promesses. */
.pain { max-width: 760px; margin: 0 auto 36px; padding: 26px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: var(--shadow-sm); }
.pain-quote { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; }
.pain-text { margin-top: 10px; color: var(--muted); }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.promise { border-radius: var(--radius); padding: 30px; color: #fff; background: linear-gradient(135deg, var(--navy), #2a2466); box-shadow: var(--shadow-sm); }
.promise:last-child { background: linear-gradient(135deg, var(--accent), #7c3aed); }
.promise-num { display: block; font-size: clamp(1.6rem, 3.2vw, 2.15rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; margin-bottom: 12px; }
.promise h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.88); }
.promise p { margin-top: 10px; color: rgba(255,255,255,.8); }
.adhd-more { margin-top: 28px; text-align: center; }
.adhd-note { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) {
  .pain { padding: 20px 20px; margin-bottom: 24px; }
  .promises { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .promise { padding: 24px 22px; }
}

.cta-band { background: linear-gradient(135deg, var(--accent), #7c3aed); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; color: #fff; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.025em; }
.cta-band p { margin-top: 12px; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.cta-band .btn { margin-top: 28px; }

.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: .9rem; max-width: 380px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-links ul { display: grid; gap: 8px; }
.footer-links a { color: var(--ink-2); font-size: .93rem; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .preview { transform: none; max-width: 520px; }
  .science { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat { text-align: center; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 22px; }
  .stat:last-child { border-bottom: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .cta-band { padding: 40px 22px; }
  .cta-band .btn { white-space: normal; max-width: 100%; }
  .hero-actions .btn { width: 100%; }
  .slot { grid-template-columns: 70px 1fr auto; }
}

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */
.legal { padding: 56px 0 88px; }
.legal .container { max-width: 780px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -0.03em; }
.legal .lead { margin-top: 10px; color: var(--muted); font-size: 1.05rem; }
.legal-body { margin-top: 40px; display: grid; gap: 36px; }
.legal-body h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-body h3 { font-size: 1.02rem; margin: 16px 0 6px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p + p { margin-top: 10px; }
.legal-body ul { list-style: disc; padding-left: 22px; display: grid; gap: 4px; margin-top: 8px; }
.legal-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* --------------------------------------------------------------------------
   Cookie banner & toasts
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 440px; margin-left: auto;
  background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .25s, opacity .25s;
}
.cookie-banner.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.cookie-banner strong { display: block; margin-bottom: 6px; font-size: .95rem; }
.cookie-banner p { font-size: .86rem; color: rgba(255,255,255,.7); }
.cookie-banner p a { color: #c7d2fe; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; display: flex; gap: 10px; align-items: center; animation: toast-in .25s ease-out; pointer-events: auto; }
.toast.ok { border-left: 4px solid #34d399; }
.toast.warn { border-left: 4px solid #fbbf24; }
.toast.danger { border-left: 4px solid #f87171; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label, .field-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-size: .95rem; line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6f80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .form-row-3 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Application : calculateur
   -------------------------------------------------------------------------- */
.app { padding: 32px 0 96px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.app-head p { color: var(--muted); margin-top: 6px; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.stepper button {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  text-align: left; color: var(--muted); font-weight: 600; font-size: .9rem;
  transition: border-color .15s, background .15s, color .15s;
}
.stepper button:disabled { cursor: not-allowed; opacity: .6; }
.stepper button .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--surface-2); color: var(--muted); flex: none; }
.stepper button.is-done .n { background: var(--e1-bg); color: var(--e1); }
.stepper button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.stepper button.is-active .n { background: var(--accent); color: #fff; }
.stepper button small { display: block; font-weight: 500; font-size: .78rem; color: inherit; opacity: .75; }

.step { display: none; }
.step.is-active { display: block; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.2rem; }
.panel-head p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-section + .panel-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.panel-section h3 { font-size: .95rem; margin-bottom: 4px; }
.panel-section .hint { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }

.day-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.day-toggle { padding: 8px 0; width: 48px; text-align: center; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .88rem; color: var(--muted); transition: all .15s; }
.day-toggle.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }

.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.capacity { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.capacity div strong { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.capacity div span { font-size: .82rem; opacity: .8; }

.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.profile-btn { text-align: left; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: all .15s; display: grid; gap: 8px; }
.profile-btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.profile-btn.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.profile-btn .card-icon { margin: 0; width: 40px; height: 40px; }
.profile-btn strong { font-size: 1rem; }
.profile-btn span { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.profile-btn.is-selected span { color: var(--accent-ink); opacity: .8; }

.tasks-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.tasks-side { position: sticky; top: calc(var(--header-h) + 16px); }

.client-add { display: flex; gap: 10px; }
.client-add .input { flex: 1; }
.client-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.client-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.client-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.client-tab .count { font-size: .75rem; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.client-tab.is-active .count { background: rgba(255,255,255,.15); color: #fff; }
.client-tab .remove { width: 20px; height: 20px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: inherit; opacity: .6; }
.client-tab .remove:hover { opacity: 1; background: rgba(0,0,0,.08); }
.client-tab.is-active .remove:hover { background: rgba(255,255,255,.2); }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; font-size: .95rem; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

.energy-groups { display: grid; gap: 16px; margin-top: 20px; }
.energy-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.energy-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-weight: 700; font-size: .92rem; }
.energy-group-head .left { display: flex; align-items: center; gap: 10px; }
.energy-group-head .dur { font-weight: 500; font-size: .8rem; opacity: .8; }
.energy-group.e1 .energy-group-head { background: var(--e1-bg); color: var(--e1); }
.energy-group.e2 .energy-group-head { background: var(--e2-bg); color: var(--e2); }
.energy-group.e3 .energy-group-head { background: var(--e3-bg); color: var(--e3); }
.task-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); }
.task-row:first-child { border-top: 0; }
.task-row label { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .93rem; min-width: 0; }
.task-row label span { overflow-wrap: anywhere; }
.task-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.task-row.is-on { background: #fafbff; }
.task-row .custom-tag { font-size: .72rem; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; flex: none; }
.stepper-ctl { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; flex: none; }
.stepper-ctl button { width: 30px; height: 30px; border: 0; background: #fff; display: grid; place-items: center; color: var(--ink-2); }
.stepper-ctl button:hover { background: var(--surface-2); }
.stepper-ctl button:disabled { opacity: .35; cursor: default; }
.stepper-ctl output { min-width: 34px; text-align: center; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.stepper-ctl .icon { width: 14px; height: 14px; }
.task-row .del { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.task-row .del:hover { background: var(--e3-bg); color: var(--danger); }
.task-row .del .icon { width: 15px; height: 15px; }
.task-empty { padding: 14px 16px; color: var(--muted); font-size: .88rem; }

.add-task { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.add-task .row { display: grid; grid-template-columns: 1fr 190px auto; gap: 10px; }
.add-task strong { font-size: .9rem; }

.summary { display: grid; gap: 14px; }
.summary h3 { font-size: .95rem; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; color: var(--ink-2); }
.summary-row strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .2s; }
.meter.warn i { background: var(--warn); }
.meter.danger i { background: var(--danger); }
.summary .note { font-size: .83rem; color: var(--muted); }
.summary .note.warn { color: var(--warn); }
.summary .note.danger { color: var(--danger); }

.result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.result-head h2 { font-size: 1.35rem; }
.result-head p { color: var(--muted); margin-top: 4px; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.result-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.result-stat strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.result-stat span { font-size: .82rem; color: var(--muted); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.day-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.day-head h3 { font-size: 1rem; }
.day-head small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }
.day-body { padding: 12px; display: grid; gap: 8px; align-content: start; flex: 1; }
.day-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.day .slot { grid-template-columns: 92px 1fr auto; }
.day .slot .name { font-weight: 500; overflow-wrap: anywhere; }
.day .slot .client { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.slot.overflow { outline: 2px dashed var(--danger); outline-offset: -2px; }
.day-alert { padding: 8px 12px; border-radius: 8px; font-size: .82rem; }
.day-alert.ok { background: var(--e1-bg); color: var(--ok); }
.day-alert.warn { background: var(--e2-bg); color: var(--warn); }
.day-alert.danger { background: var(--e3-bg); color: var(--danger); }

@media (max-width: 960px) {
  .tasks-layout { grid-template-columns: 1fr; }
  .tasks-side { position: static; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .stepper button small { display: none; }
  .panel { padding: 18px; }
  .panel-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .capacity { grid-template-columns: 1fr; }
  .add-task .row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .client-add { flex-direction: column; }
  .day .slot { grid-template-columns: 78px 1fr auto; }
  .step-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Impression du planning
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .stepper, .result-actions, .cookie-banner, .toast-stack, .no-print { display: none !important; }
  body { background: #fff; }
  .app { padding: 0; }
  .days { grid-template-columns: repeat(2, 1fr); }
  .day { break-inside: avoid; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   Section application : badges des stores (état « bientôt » puis « disponible »)
   -------------------------------------------------------------------------- */
.app-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.app-band .eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.app-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.app-band p { color: var(--ink-2); margin-bottom: 22px; max-width: 520px; }
.store-badges { display: grid; gap: 12px; justify-items: stretch; }
.store-badge { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; line-height: 1.1; transition: transform .15s, opacity .15s; }
.store-badge svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.store-badge span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.05rem; }
.store-badge small { font-size: .7rem; font-weight: 500; opacity: .8; letter-spacing: .04em; }
.store-badge:hover { color: #fff; transform: translateY(-1px); }
.app-band[data-store-status="soon"] .store-badge { opacity: .55; cursor: default; pointer-events: none; }
.store-note { font-size: .85rem !important; color: var(--muted) !important; margin: 4px 0 0 !important; }
@media (max-width: 860px) {
  .app-band { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .app-band .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Sélecteur de langue (FR ⇄ EN) dans le menu, et note de version des pages légales anglaises
   -------------------------------------------------------------------------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.nav .lang-switch a { padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); line-height: 1.4; }
.nav .lang-switch a:hover { color: var(--ink); background: var(--surface-2); }
.nav .lang-switch a[aria-current] { background: var(--surface-2); color: var(--ink); }
@media (max-width: 860px) {
  .nav .lang-switch { align-self: flex-start; margin: 6px 8px; }
  .nav .lang-switch a { padding: 6px 14px; font-size: .85rem; }
}
.legal-lang-note { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .88rem; }

/* --------------------------------------------------------------------------
   Pages thématiques (planning TDAH / ADHD planner)
   -------------------------------------------------------------------------- */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(124,58,237,.28), transparent); pointer-events: none; }
.page-hero .container { position: relative; max-width: 880px; text-align: center; }
.page-hero .hero-eyebrow { justify-content: center; }
.page-hero .hero-eyebrow::before { display: none; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.page-hero h1 em { font-style: normal; background: linear-gradient(100deg, #a5b4fc, #c4b5fd 55%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .hero-lead { margin: 20px auto 0; max-width: 680px; }
.page-hero .hero-actions { justify-content: center; }
.page-hero-note { margin-top: 16px; font-size: .88rem; color: rgba(255,255,255,.55); }
.breadcrumb-light { justify-content: center; margin-bottom: 22px; color: rgba(255,255,255,.5); }
.breadcrumb-light a { color: rgba(255,255,255,.7); }
.section-soft { background: var(--surface-2, #f1f2f6); }
.prose-wrap { max-width: 780px; }
.prose p { margin-top: 16px; color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }
.checklist { margin: 20px 0 4px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); line-height: 1.6; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 5px var(--accent); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2, #f1f2f6); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare td { color: var(--muted); }
.compare td.yes { color: var(--ink); font-weight: 600; }
.compare td.yes::before { content: "✓"; color: var(--e1); font-weight: 800; margin-right: 8px; }
.duo { align-items: stretch; }
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); line-height: 1.65; }
@media (max-width: 640px) {
  .page-hero { padding: 36px 0 52px; }
  /* Tableau comparatif en cartes empilées : une ligne = un critère, avec ses deux réponses étiquetées. */
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 0; border: 0; }
  .compare tbody th { width: auto; margin-bottom: 6px; }
  .compare td { margin-top: 4px; }
  .compare td[data-label]::before { content: attr(data-label) " : "; font-weight: 600; color: var(--muted); }
  .compare td[data-label]::before { content: attr(data-label) ": "; }
  .compare td.yes::before { content: "✓ " attr(data-label) ": "; color: var(--e1); margin-right: 0; }
  html[lang="fr"] .compare td[data-label]::before { content: attr(data-label) "\00a0: "; }
  html[lang="fr"] .compare td.yes::before { content: "✓ " attr(data-label) "\00a0: "; }
}
