/* Nimbo — site. Calme, doux, zéro rouge. Mêmes couleurs que l'app. */
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url('/fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-display: swap; src: url('/fonts/nunito-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; font-display: swap; src: url('/fonts/nunito-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-display: swap; src: url('/fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --mist: #EEF2F4; --surface: #FFFFFF; --soft: #F4F6F8; --line: #DCE2E7;
  --ink: #1F2A37; --ink-soft: #4A5668; --muted: #5B6878;
  --accent: #5C62B8; --accent-ink: #4B51A6; --accent-deep: #363B82; --accent-tint: #E2E4F7;
  --peach: #F2B8A0; --peach-tint: #FBE3D9; --peach-ink: #7A3A22;
  --sage: #8FB8A0; --sage-tint: #DDEDE3; --sage-ink: #2F5A40;
  --cloud: #D5DAF6; --cheek: #F4B7A6; --paper: #FFFDF8; --paper-line: #ECE6DA;
  --night: #1E2433; --night-surface: #262E40; --night-ink: #E9ECF5; --night-muted: #A7B0C6; --night-accent: #A9B0F0;
  --display: 'Fredoka', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 24px; --max: 72rem; --read: 42rem;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 14px; border-radius: 12px; z-index: 10; }

/* En-tête */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.4rem; }
.brand svg { width: 46px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--surface); }
.top nav .cta-mini { background: var(--accent); color: #fff; }
.top nav .cta-mini:hover { background: var(--accent-deep); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* Boutons */
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 16px; padding: 12px 22px 12px 18px; min-height: 56px; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; fill: #fff; }
.store small { display: block; font-size: 0.72rem; line-height: 1.1; opacity: .85; }
.store strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.note { color: var(--muted); font-size: 0.95rem; }

/* Héros */
.hero { padding-block: 32px 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.pill { display: inline-block; background: var(--accent-tint); color: var(--accent-deep); font-weight: 700; font-size: 0.9rem; padding: 6px 14px; border-radius: 999px; }
.hero h1 { margin-top: 16px; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: 18px; max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.stage { position: relative; display: flex; justify-content: center; }
.stage .mascot { position: absolute; width: 132px; top: -38px; right: 6%; z-index: 2; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Téléphone */
.phone { width: min(320px, 86vw); background: var(--surface); border-radius: 44px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(31,42,55,.35), 0 0 0 1px var(--line); }
.screen { background: var(--mist); border-radius: 32px; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 480px; }
.screen .h { font-family: var(--display); font-weight: 600; font-size: 1.6rem; }
.screen .sub { color: var(--muted); font-size: 0.85rem; margin-top: -8px; }
.card { background: var(--surface); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card .k { font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.card .t { font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.card .s { font-size: 0.9rem; color: var(--ink-soft); }
.btn { background: var(--accent); color: #fff; font-weight: 700; text-align: center; border-radius: 999px; padding: 11px; font-size: 0.95rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ghost { background: var(--soft); color: var(--ink); font-weight: 700; text-align: center; border-radius: 999px; padding: 9px; font-size: 0.82rem; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.tools span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.66rem; font-weight: 700; color: var(--ink-soft); }
.tools i { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-tint); display: grid; place-items: center; font-style: normal; }
.tools i svg { width: 16px; stroke: var(--accent-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
section.block { padding-block: 72px; }
.block .head { max-width: 44rem; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.block .head p { color: var(--ink-soft); font-size: 1.1rem; }
.center .head { margin-inline: auto; text-align: center; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--display); font-weight: 600; font-size: 1.1rem; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-deep); display: grid; place-items: center; }
.step p { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-weight: 700; font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; }
.c-todo { background: var(--accent-tint); color: var(--accent-deep); }
.c-worry { background: var(--peach-tint); color: var(--peach-ink); }
.c-idea { background: var(--sage-tint); color: var(--sage-ink); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding-block: 36px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .visual { order: -1; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature.flip .visual { order: 0; } }
.feature .text { display: flex; flex-direction: column; gap: 14px; }
.feature .text p { color: var(--ink-soft); font-size: 1.08rem; }
.feature .tag { align-self: flex-start; }
.visual { display: flex; justify-content: center; }
.paper { background: var(--paper); border: 1px solid var(--paper-line); border-radius: 22px; padding: 20px; max-width: 380px; width: 100%; display: flex; flex-direction: column; gap: 8px; transform: rotate(-1.5deg); box-shadow: 0 20px 40px -28px rgba(31,42,55,.4); }
.paper .meta { color: var(--muted); font-size: 0.85rem; }
.paper .subj { font-weight: 700; }
.paper .body { color: var(--ink-soft); font-size: 0.95rem; }
.paper .send { align-self: flex-end; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 16px; font-size: 0.85rem; }
.notif { background: rgba(255,255,255,.92); border-radius: 22px; padding: 14px 16px; max-width: 380px; width: 100%; box-shadow: 0 20px 40px -28px rgba(31,42,55,.45), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.notif .app { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.notif .app b { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-tint); display: inline-block; }
.notif .acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.notif .acts span { background: var(--soft); border-radius: 12px; text-align: center; padding: 8px 4px; font-weight: 700; font-size: 0.82rem; }
.timer { background: var(--night); color: var(--night-ink); border-radius: 32px; padding: 28px; max-width: 340px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.timer .clock { font-family: var(--display); font-weight: 600; font-size: 3.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.timer .m { color: var(--night-muted); font-size: 0.92rem; }
.timer .step { background: none; padding: 0; font-family: var(--display); font-weight: 500; font-size: 1.2rem; }
.timer .step::before { content: none; }
.timer svg { width: 110px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tile p { color: var(--ink-soft); }

.adhd { background: var(--surface); border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .adhd { grid-template-columns: 1fr; } }
.adhd ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.adhd li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.adhd li b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.12rem; }
.adhd li span { color: var(--ink-soft); }
.dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-tint); display: grid; place-items: center; font-weight: 700; color: var(--accent-deep); }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 52rem; margin-inline: auto; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }
.price { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; border: 2px solid transparent; }
.price.plus { border-color: var(--accent); }
.price .amount { font-family: var(--display); font-weight: 600; font-size: 2.2rem; line-height: 1; }
.price .amount small { font-size: 1rem; color: var(--muted); font-family: var(--body); font-weight: 600; }
.price ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }

.faq { max-width: 46rem; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 20px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 28px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-family: var(--display); font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }
.post { background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.post:hover { transform: translateY(-3px); }
.post h3 { font-size: 1.25rem; }
.post p { color: var(--ink-soft); font-size: 0.98rem; }
.post .more { color: var(--accent-ink); font-weight: 700; font-size: 0.95rem; margin-top: auto; }

.final { background: var(--night); color: var(--night-ink); border-radius: 36px; padding: clamp(32px, 6vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final p { color: var(--night-muted); max-width: 34rem; }
.final .store { background: #fff; color: var(--ink); }
.final .store svg { fill: var(--ink); }
.final svg.m { width: 130px; }

/* Article */
.article { padding-block: 24px 72px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article .wrap { max-width: var(--read); }
.article h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.byline { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }
.prose { margin-top: 28px; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.75rem; margin-top: 1.9em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin: 1.4em 0; background: var(--surface); border-radius: 20px; padding: 18px 22px; border-left: 4px solid var(--cloud); color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.98rem; background: var(--surface); border-radius: 16px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tldr { background: var(--accent-tint); border-radius: 20px; padding: 18px 22px; margin-top: 24px; }
.tldr b { font-family: var(--display); font-weight: 600; display: block; margin-bottom: 6px; }
.tldr ul { margin: 0; padding-left: 1.2rem; }
.app-box { background: var(--surface); border-radius: 28px; padding: 26px; display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; margin-top: 2.2em; }
@media (max-width: 560px) { .app-box { grid-template-columns: 1fr; } }
.app-box h2 { font-size: 1.4rem; margin: 0 0 6px; }
.app-box p { color: var(--ink-soft); margin-bottom: 14px; }
.disclaimer { color: var(--muted); font-size: 0.92rem; margin-top: 2.4em; border-top: 1px solid var(--line); padding-top: 18px; }
.related { margin-top: 2.4em; }
.related h2 { font-size: 1.4rem; margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.related a { font-weight: 700; }

/* Pages simples (aide, confidentialité…) */
.legal .wrap { max-width: var(--read); }
.legal section { background: var(--surface); border-radius: var(--radius); padding: 26px clamp(18px, 4vw, 32px); margin-top: 18px; }
.legal h2 { font-size: 1.5rem; margin-bottom: 8px; }
.legal h3 { font-size: 1.12rem; margin-top: 18px; margin-bottom: 4px; }
.legal p + p { margin-top: 8px; }
.legal ul { padding-left: 1.2rem; }
.updated { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* Pied de page */
footer.foot { padding-block: 48px 40px; color: var(--muted); font-size: 0.95rem; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: flex-start; justify-content: space-between; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.foot a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
footer.foot a:hover { text-decoration: underline; }
footer.foot .small { max-width: 30rem; }

.adhd-m { width: 140px; }
.app-box svg { width: 110px; }
@media (max-width: 560px) { .app-box svg { width: 90px; } }

.facts { width: 100%; border-collapse: collapse; margin-top: 10px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts th { width: 32%; padding-right: 14px; font-weight: 700; }
.facts td { color: var(--ink-soft); }
.legal section h2 { font-size: 1.25rem; margin-top: 18px; }
.legal section h2:first-child { margin-top: 0; }
.legal section h2 + * { margin-top: 6px; }
.legal section h3 { font-size: 1.12rem; }

.prose figure.shot { margin: 1.4em auto; max-width: 340px; }
.prose figure.shot img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 20px 40px -28px rgba(31,42,55,.45); }
.prose figure.shot figcaption { color: var(--muted); font-size: 0.88rem; text-align: center; margin-top: 8px; }

.prose .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.4em 0 0; }
.prose .shots figure { margin: 0; }
.prose .shots img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 16px 32px -24px rgba(31,42,55,.5); }
.prose .shots figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 6px; line-height: 1.3; }
.prose .shots-note { color: var(--muted); font-size: 0.88rem; text-align: center; margin-top: 8px; }
@media (max-width: 480px) { .prose .shots { gap: 8px; } .prose .shots figcaption { font-size: 0.78rem; } }
/* Les tableaux larges défilent dans leur cadre au lieu d'élargir la page sur téléphone. */
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.prose th, .prose td { min-width: 120px; }
