/* Doxne · site vitrine
   Couleurs, rayons et typographie repris du design system de l'app (20_DESIGN_SYSTEM). */

@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f7f7f7;
  --card: #ffffff;
  --soft: #f0f0f0;
  --text: #111111;
  --text-2: #575757;
  --text-3: #8f8f8f;
  --line: #e6e6e6;
  --line-strong: #d6d6d6;
  --action: #111111;
  --on-action: #ffffff;
  --track: #ffffff;
  --fill: #e6e6e6;
  --green: #1fa35b;
  --green-soft: #e8f6ee;
  --orange: #f2780c;
  --orange-soft: #fef1e6;
  --red: #e0383e;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.06);
  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-xl: 32px;
  --gutter: 24px;
  --max: 1160px;
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
    --bg: #111111;
    --card: #1e1e1e;
    --soft: #262626;
    --text: #f7f7f7;
    --text-2: #a3a3a3;
    --text-3: #737373;
    --line: #303030;
    --line-strong: #3d3d3d;
    --action: #f7f7f7;
    --on-action: #111111;
    --track: #1e1e1e;
    --fill: #3d3d3d;
    --green: #34c77b;
    --green-soft: #12291c;
    --orange: #ff9a3d;
    --orange-soft: #2e1d0e;
    --red: #ff5c5c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.35);
}

/* Langue : un seul bloc visible */
html[data-lang="fr"] [lang="en"]:not(html),
html[data-lang="en"] [lang="fr"]:not(html) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { transition: background-color .25s, color .25s; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; }
strong { font-weight: 700; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--action); color: var(--on-action); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ En-tête */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .logo-dark { display: none; }
html[data-theme="dark"] .brand .logo-dark { display: block; }
html[data-theme="dark"] .brand .logo-light { display: none; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--soft); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--text-2); cursor: pointer; letter-spacing: .02em; }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 460px) { .top .btn-small { display: none; } }

/* ------------------------------------------------------------ Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-on-dark { background: #f7f7f7; color: #111111; }

/* ------------------------------------------------------------ Hero */
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(50px, 6.2vw, 86px); margin: 22px 0 24px; letter-spacing: -0.045em; line-height: .95; }
.hero h1 .brandline { display: block; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -0.01em; line-height: 1.35; color: var(--text-2); margin-bottom: 18px; font-weight: 700; max-width: 26em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 34em; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 15px; font-weight: 700; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-visual { position: relative; }
.hero-visual .shot { max-width: 470px; margin-left: auto; }
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual .shot { margin: 0 auto; }
}

/* Captures (tuiles avec la couleur de fond du visuel) */
.shot { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 735 / 1208; position: relative; }
.shot.light { background: #f7f7f7; }
.shot.dark { background: #111111; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
html[data-theme="dark"] .shot.dark { box-shadow: inset 0 0 0 1px #262626; }
.hero .shot.light { background: transparent; }
html[data-theme="dark"] .hero .shot.light { background: #f7f7f7; }

/* ------------------------------------------------------------ Bandeau promesses */
.promises { padding: 28px 0 8px; }
.promises ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.promises li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; }
.promises .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; margin-bottom: 14px; }
.promises .ic svg { width: 21px; height: 21px; }
.promises strong { display: block; font-size: 17px; margin-bottom: 2px; }
.promises span { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .promises ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .promises ul { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Sections */
.section { padding: 112px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.section h2 { font-size: clamp(38px, 5vw, 66px); letter-spacing: -0.035em; line-height: 1; }
.section-head p { margin-top: 20px; font-size: clamp(18px, 1.5vw, 20px); color: var(--text-2); }
@media (max-width: 700px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* Démo de la grande barre */
.demo-band { background: #111111; color: #f7f7f7; border-radius: 40px; margin: 0 var(--gutter); padding: 88px 0; position: relative; overflow: hidden; }
html[data-theme="dark"] .demo-band { background: #191919; box-shadow: inset 0 0 0 1px #262626; }
.demo-band .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.demo-band h2 { font-size: clamp(40px, 5.2vw, 72px); letter-spacing: -0.035em; line-height: 1; color: #f7f7f7; }
.demo-band p { color: #a3a3a3; font-size: 19px; margin-top: 20px; max-width: 30em; }
.demo-band .kicker { color: #737373; }
.demo-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: #f7f7f7; font-weight: 700; font-size: 15px; }
.demo-hint .tap { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #f7f7f7; position: relative; }
.demo-hint .tap::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(247,247,247,.35); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
@media (max-width: 900px) { .demo-band { margin: 0 12px; padding: 64px 0; border-radius: 32px; } .demo-band .wrap { grid-template-columns: 1fr; gap: 36px; } }

.app-card { background: #f7f7f7; color: #111; border-radius: 34px; padding: 26px 22px 22px; max-width: 460px; width: 100%; margin-left: auto; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
@media (max-width: 900px) { .app-card { margin: 0 auto; } }
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 4px; }
.app-top h3 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; }
.app-date { font-size: 14px; color: #575757; margin-top: 4px; }
.streak { display: inline-flex; align-items: center; gap: 4px; background: #fef1e6; color: #f2780c; font-weight: 700; font-size: 17px; padding: 8px 12px; border-radius: 999px; }
.streak svg { width: 16px; height: 16px; }
.bigbar { position: relative; height: 128px; border-radius: 999px; background: #ffffff; border: 1px solid #e6e6e6; margin: 22px 0 10px; overflow: hidden; display: grid; place-items: center; }
.bigbar .fill { position: absolute; inset: 6px auto 6px 6px; width: 0; border-radius: 999px; background: #e6e6e6; transition: width .55s cubic-bezier(.2,.8,.2,1), background .35s; }
.bigbar .num { position: relative; font-weight: 900; font-size: 72px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .35s; }
.bigbar.done .fill { background: #1fa35b; }
.bigbar.done .num { color: #ffffff; }
.bigbar.pop { animation: pop .45s cubic-bezier(.2,.8,.2,1.4); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.035); } 100% { transform: scale(1); } }
.bar-sub { text-align: center; color: #575757; font-size: 15px; margin: 0 0 18px; min-height: 1.5em; }
.bar-sub.done { color: #1fa35b; font-weight: 700; }
.habit-list { list-style: none; margin: 0; padding: 0; background: #ffffff; border: 1px solid #e6e6e6; border-radius: 22px; overflow: hidden; }
.habit-list li + li { border-top: 1px solid #e6e6e6; }
.habit { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: transparent; border: 0; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.habit .hic { width: 42px; height: 42px; border-radius: 12px; background: #f0f0f0; display: grid; place-items: center; flex: none; }
.habit .hic svg { width: 20px; height: 20px; }
.habit .txt { flex: 1; min-width: 0; }
.habit .name { display: block; font-weight: 700; font-size: 17px; line-height: 1.25; color: #111; }
.habit .meta { display: block; font-size: 14px; color: #575757; }
.habit .box { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d6d6d6; flex: none; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.habit .box svg { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1.4); }
.habit[aria-pressed="true"] .box { background: #1fa35b; border-color: #1fa35b; }
.habit[aria-pressed="true"] .box svg { opacity: 1; transform: scale(1); }
.habit:hover .box { transform: scale(1.06); }
.reset { display: block; margin: 16px auto 0; background: transparent; border: 0; color: #8f8f8f; font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 12px; border-radius: 999px; }
.reset:hover { color: #111; background: #f0f0f0; }

/* Fonctionnalités : texte + capture en alternance */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); padding-top: 80px; margin-top: 40px; }
.feature .shot { max-width: 440px; width: 100%; }
.feature.flip .media { order: 2; }
.feature .media { display: flex; justify-content: center; }
.feature h3 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.035em; line-height: 1; margin-bottom: 20px; }
.feature .intro { font-size: 19px; color: var(--text-2); max-width: 30em; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.tag i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--text); font-style: normal; }
.tag i svg { width: 15px; height: 15px; }
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.points li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fa35b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 1px; }
.points strong { display: block; font-size: 17px; }
.points span { color: var(--text-2); font-size: 16px; }
.badge-premium { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--action); color: var(--on-action); margin-left: 6px; vertical-align: 2px; }
.badge-premium svg { width: 11px; height: 11px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .media { order: 0; }
  .feature + .feature { padding-top: 56px; margin-top: 24px; }
}

/* Premium */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px; display: flex; flex-direction: column; }
.plan h3 { font-size: 34px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.plan h3 svg { width: 28px; height: 28px; }
.plan .sub { color: var(--text-2); margin: 10px 0 24px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; }
.plan li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23575757' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan.premium { background: #111111; color: #f7f7f7; border-color: #111111; }
html[data-theme="dark"] .plan.premium { background: #f7f7f7; color: #111; border-color: #f7f7f7; }
html[data-theme="dark"] .plan.premium .sub, html[data-theme="dark"] .plan.premium .note { color: #575757 !important; }
html[data-theme="dark"] .plan.premium li::before { background-color: #e8f6ee; }
.plan.premium .sub { color: #a3a3a3; }
.plan.premium li::before { background: #1f3a2a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334c77b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .note { margin-top: auto; padding-top: 26px; font-size: 14px; color: var(--text-3); }
.plan.premium .note { color: #8f8f8f; }
.formulas { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.formulas span { border: 1px solid #3d3d3d; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
html[data-theme="dark"] .formulas span { border-color: #d6d6d6; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } .plan { padding: 28px 24px; } }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 0 22px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23575757' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 0 20px; color: var(--text-2); }
.faq-list .answer p:last-child { margin-bottom: 0; }
.faq-list .answer a { color: var(--text); font-weight: 700; }
.more-link { display: inline-flex; margin-top: 28px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* Appel final */
.final { padding: 40px 0 120px; }
.final-card { background: #111111; color: #f7f7f7; border-radius: 40px; padding: 80px 48px; text-align: center; position: relative; overflow: hidden; }
html[data-theme="dark"] .final-card { background: #191919; box-shadow: inset 0 0 0 1px #262626; }
.final-pill { display: inline-grid; place-items: center; background: #1fa35b; color: #fff; font-weight: 900; font-size: clamp(64px, 12vw, 150px); letter-spacing: -0.05em; line-height: 1; padding: .14em .42em .16em; border-radius: 999px; margin-bottom: 32px; box-shadow: 0 30px 80px rgba(31,163,91,.35); }
.final-card h2 { font-size: clamp(34px, 4.8vw, 60px); letter-spacing: -0.035em; line-height: 1.02; max-width: 15em; margin: 0 auto; }
.final-card p { color: #a3a3a3; font-size: 19px; margin: 18px auto 30px; max-width: 32em; }
@media (max-width: 600px) { .final-card { padding: 56px 22px; border-radius: 32px; } }

/* ------------------------------------------------------------ Pied de page */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--text-2); font-weight: 700; }
.foot a:hover { color: var(--text); }
.foot .brand { color: var(--text); }
.foot .about { color: var(--text-2); max-width: 22em; margin-top: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.foot-bottom a { color: var(--text-2); }
.creator { color: var(--text-2); }
.creator a { color: var(--text); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Pages de texte (légal, FAQ) */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(42px, 6vw, 68px); letter-spacing: -0.035em; line-height: 1; margin-bottom: 16px; }
.doc .updated { color: var(--text-3); font-weight: 700; font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 14px; font-weight: 900; }
.doc h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; margin: 28px 0 10px; font-weight: 700; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--text); font-weight: 700; text-underline-offset: 3px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px 26px; margin: 0 0 12px; }
.summary h2 { margin: 0 0 12px; font-size: 20px; }
.summary ul { margin: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 26px; margin: 12px 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--text-2); font-weight: 700; }
.toc a:hover { color: var(--text); }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.table th { color: var(--text); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.callout { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; margin: 20px 0; }
.faq-page .faq-list { max-width: none; }
.faq-group { margin-top: 44px; }
.faq-group h2 { margin: 0 0 16px; }
.contact-box { margin-top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.contact-box h2 { margin: 0 0 6px; font-size: 24px; }
.contact-box p { margin: 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-size: clamp(90px, 20vw, 200px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.notfound p { color: var(--text-2); font-size: 19px; margin: 16px 0 28px; }

/* Bouton clair / sombre */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .15s; }
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
