/* Tenutia — feuille de style principale */

@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0B1524;
  --bg-2: #0F1C30;
  --surface: #13223A;
  --surface-2: #1A2C49;
  --line: #24385A;
  --text: #F4F1EA;
  --muted: #A9B5C6;
  --amber: #F2A541;
  --amber-hi: #F7C47E;
  --amber-ink: #1A1206;
  --blue: #7FB3E8;
  --green: #7FD1A8;
  --red: #F08A8A;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --reader-size: 1.125rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hi); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -80px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 10px 30px -10px rgba(242, 165, 65, .6); }
.btn-primary:hover { background: var(--amber-hi); color: var(--amber-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); background: rgba(255,255,255,.03); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(240,138,138,.5); }
.btn-danger:hover { background: rgba(240,138,138,.1); color: var(--red); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: default; }
.link-button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; }

.eyebrow { font: 600 .8125rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.center .eyebrow, .section-head .eyebrow { justify-content: center; }
.lead { font-size: 1.1875rem; color: var(--muted); line-height: 1.65; }
.accent { color: var(--amber); }

.badge { display: inline-flex; align-items: center; gap: .35em; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.badge .icon { width: 13px; height: 13px; }
.badge-free { background: rgba(127, 179, 232, .15); color: var(--blue); }
.badge-lock { background: rgba(242, 165, 65, .14); color: var(--amber); }
.badge-ok { background: rgba(127, 209, 168, .15); color: var(--green); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 21, 36, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(36, 56, 90, .6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.375rem/1 var(--font-display); letter-spacing: .01em; }
.logo svg { color: var(--amber); }
.logo:hover { color: var(--text); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.btn), .main-nav .link-button { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.main-nav a:not(.btn):hover, .main-nav .link-button:hover { color: var(--text); }
.main-nav .link-button { text-decoration: none; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); border-color: #33507C; }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.main-nav .lang-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); font-size: .9375rem; }
.main-nav .lang-menu a:hover { background: var(--surface); }
.main-nav .lang-menu a.is-active { background: rgba(242, 165, 65, .16); color: var(--amber); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 22px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn), .main-nav .link-button { padding: 12px 4px; font-size: 1.0625rem; text-align: left; }
  .main-nav .btn { margin-top: 8px; min-height: 50px; }
  .lang-menu { align-self: flex-start; margin-top: 10px; }
  .lang-menu ul { position: static; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: none; }
}

/* ---------- Messages ---------- */
.flash { margin: 22px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.flash-success { border-color: rgba(127, 209, 168, .45); background: rgba(127, 209, 168, .08); }
.flash-error { border-color: rgba(240, 138, 138, .5); background: rgba(240, 138, 138, .08); }
.flash-info { border-color: rgba(127, 179, 232, .4); background: rgba(127, 179, 232, .08); }

/* ---------- Héros ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(242,165,65,.16), rgba(242,165,65,0)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 700; margin-bottom: 22px; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9375rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--green); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.hero-wave { position: absolute; width: 520px; max-width: 100%; }
.wave-path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.4s .3s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.phone { position: relative; width: 290px; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #2A3D5E, #121F35); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.06); transform: rotate(-4deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-12px); } }
.phone-screen { background: var(--bg); border-radius: 32px; padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; }
.ph-muted { color: var(--muted); font-size: .75rem; }
.ph-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.ph-pill .icon { color: var(--amber); width: 14px; height: 14px; }
.ph-title { font: 700 1.25rem/1.2 var(--font-display); }
.ph-card-amber { background: var(--amber); color: var(--amber-ink); border-radius: 18px; padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.ph-kicker { font-size: .625rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ph-card-title { font: 700 1rem/1.25 var(--font-display); }
.ph-btn { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; background: var(--amber-ink); color: var(--text); font-size: .75rem; font-weight: 600; border-radius: 10px; padding: 8px 12px; }
.ph-btn .icon { width: 12px; height: 12px; }
.ph-card { background: var(--surface); border-radius: 16px; padding: 12px; }
.ph-card-label { font-size: .75rem; font-weight: 600; }
.ph-chart { width: 100%; height: 60px; margin-top: 4px; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-mini { background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ph-mini strong { font: 700 1.125rem/1.2 var(--font-display); color: var(--text); }
.ph-mini .icon { color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 40px 0 88px; }
.section-alt { background: var(--bg-2); border-top: 1px solid rgba(36,56,90,.5); border-bottom: 1px solid rgba(36,56,90,.5); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.h-section { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 700; }
.h-page { font-size: clamp(2.125rem, 4.4vw, 3.25rem); font-weight: 700; }
.page-head { padding: 72px 0 24px; }

.stats-band { padding: 0 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat-big { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.stat-big strong { font: 700 2.75rem/1 var(--font-display); color: var(--amber); }
.stat-big span { color: var(--text); font-size: 1.0625rem; }
.stat-big a { font-size: .8125rem; color: var(--muted); }
.stat-big a:hover { color: var(--text); }

.chapter-timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; gap: 14px; counter-reset: none; }
.timeline-item { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: border-color .2s ease, transform .2s ease; }
.timeline-item:hover { border-color: #33507C; transform: translateY(-2px); }
.timeline-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--amber); display: flex; align-items: center; justify-content: center; font: 700 1.25rem/1 var(--font-display); }
.timeline-week { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.timeline-body h3 { font-size: 1.25rem; margin: 4px 0 4px; }
.timeline-body p { margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(242,165,65,.12); color: var(--amber); margin-bottom: 18px; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1875rem; }
.feature p { color: var(--muted); margin: 0; }

.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.research-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.research-num { font: 700 2.5rem/1 var(--font-display); color: var(--amber); }
.research-card p { margin: 0; font-size: 1.0625rem; flex: 1; }
.research-card a { font-size: .875rem; color: var(--muted); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font: 600 1.0625rem/1.4 var(--font-body); padding: 20px 32px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

.cta-final { background: radial-gradient(60% 80% at 50% 100%, rgba(242,165,65,.14), transparent); }

/* ---------- Tarifs ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.price-card-featured { border: 2px solid var(--amber); background: linear-gradient(180deg, #1D2E4C, var(--surface)); box-shadow: 0 30px 70px -30px rgba(242,165,65,.35); }
.price-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--amber-ink); font-size: .75rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.price { margin: 0; }
.price strong { font: 700 2.5rem/1.1 var(--font-display); }
.price span { color: var(--muted); }
.currency-switch { display: flex; justify-content: center; gap: .5rem; margin: 0 0 1.25rem; font-size: .9rem; }
.currency-switch a, .currency-switch strong { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.currency-switch strong { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); }
.price-note { color: var(--muted); font-size: .9375rem; margin: 2px 0 18px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list .icon { color: var(--green); margin-top: 3px; }
.billing-switch { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 16px; align-self: flex-start; }
.switch-opt { background: none; border: 0; color: var(--muted); font: 600 .875rem/1 var(--font-body); padding: 10px 16px; border-radius: 9px; cursor: pointer; min-height: 38px; }
.switch-opt.is-active { background: var(--surface-2); color: var(--text); }
.checkout-form { display: grid; gap: 14px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--amber); }
.pricing-legal { margin-top: 22px; }

.guide-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.guide-cover { display: flex; justify-content: center; }
.cover { width: 260px; aspect-ratio: 1 / 1.414; border-radius: 10px 18px 18px 10px; background: linear-gradient(150deg, #1E3355, #0B1524 70%); box-shadow: var(--shadow), inset 6px 0 0 rgba(0,0,0,.25); border: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; transform: rotate(-3deg); }
.cover-logo { font: 700 1rem/1 var(--font-display); color: var(--amber); }
.cover-title { font: 700 1.75rem/1.1 var(--font-display); margin-top: auto; }
.cover-sub { color: var(--muted); font-size: .875rem; }
.cover-wave { width: 100%; margin-top: 10px; }
.guide-form { max-width: 460px; }

/* ---------- Authentification ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1040px; margin: 56px auto 96px; padding: 0 20px; }
.auth-single { grid-template-columns: 1fr; max-width: 520px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px 0 0 26px; padding: 44px; }
.auth-single .auth-card { border-radius: 26px; }
.auth-aside { border-radius: 0 26px 26px 0; background: radial-gradient(120% 90% at 100% 0%, rgba(242,165,65,.22), transparent 60%), linear-gradient(160deg, #1B2D4B, #0F1C30); border: 1px solid var(--line); border-left: 0; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.auth-quote { font: 700 1.75rem/1.25 var(--font-display); margin: 0; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--muted); }
.auth-points li { display: flex; gap: 12px; align-items: center; }
.auth-points .icon { color: var(--amber); }
.h-auth { font-size: 1.875rem; }
.auth-switch { text-align: center; color: var(--muted); margin: 18px 0 0; }

.form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 500; font-size: .9375rem; }
input[type=email], input[type=password], input[type=text], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--font-body);
}
textarea { min-height: 76px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242,165,65,.2); }
::placeholder { color: #7F8DA2; }

/* ---------- Tableau de bord ---------- */
.dash-head { padding: 56px 0 8px; }
.dash-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.next-card { display: inline-flex; flex-direction: column; gap: 8px; background: var(--amber); color: var(--amber-ink); text-decoration: none; border-radius: 22px; padding: 22px 24px; min-width: min(420px, 100%); transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 20px 50px -20px rgba(242,165,65,.55); }
.next-card:hover { color: var(--amber-ink); transform: translateY(-2px); }
.next-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.next-title { font: 700 1.5rem/1.2 var(--font-display); }
.next-cta { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 6px; }
.ring-wrap { position: relative; width: 190px; height: 190px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--amber); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label strong { font: 700 2.25rem/1 var(--font-display); }
.ring-label span { color: var(--muted); font-size: .875rem; }

.week-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 26px; }
.week-strip > div { display: flex; flex-direction: column; }
.chapter-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chapter-card { height: 100%; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.chapter-card:hover { color: var(--text); border-color: #3A5885; transform: translateY(-2px); }
.chapter-card.is-done { border-color: rgba(127,209,168,.35); }
.chapter-card.is-locked .cc-title, .chapter-card.is-locked .cc-sub { opacity: .75; }
.cc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-num { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); color: var(--amber); display: flex; align-items: center; justify-content: center; font: 700 1rem/1 var(--font-display); }
.is-done .cc-num { background: rgba(127,209,168,.15); color: var(--green); }
.cc-meta { color: var(--muted); font-size: .8125rem; flex: 1; }
.cc-title { font: 700 1.1875rem/1.25 var(--font-display); }
.cc-sub { color: var(--muted); font-size: .9375rem; }
.cc-score { font-size: .8125rem; color: var(--green); font-weight: 600; }
.upsell { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: radial-gradient(100% 140% at 0% 0%, rgba(242,165,65,.16), transparent 60%), var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.upsell h2 { font-size: 1.5rem; }
.upsell p { color: var(--muted); margin: 0; max-width: 620px; }

/* ---------- Lecteur de chapitre ---------- */
.reader-bar { position: sticky; top: 70px; z-index: 40; background: rgba(11,21,36,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(36,56,90,.6); }
.reader-bar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 58px; gap: 10px; }
.reader-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 500; min-height: 44px; }
.reader-back:hover { color: var(--text); }
.reader-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; min-width: 42px; justify-content: center; padding: 0 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 600 .875rem/1 var(--font-body); cursor: pointer; }
.tool-btn:hover { border-color: var(--muted); }
.tool-btn.is-active { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.tts-speed select { min-height: 42px; padding: 0 10px; width: auto; font-size: .875rem; border-radius: 11px; background: var(--surface); }
.reader-progress { height: 3px; background: transparent; }
.reader-progress span { display: block; height: 100%; width: 0; background: var(--amber); transition: width .1s linear; }

.chapter-head { padding: 56px 0 10px; }
.h-chapter { font-size: clamp(2.125rem, 4.8vw, 3.375rem); font-weight: 700; }
.chapter-intro { font-size: 1.25rem; line-height: 1.65; color: var(--muted); }
.chapter-body { font-size: var(--reader-size); line-height: 1.75; padding-bottom: 96px; }
.chapter-body h2 { font-size: 1.625rem; margin: 2.2em 0 .7em; }
.chapter-body h3 { font-size: 1.25rem; }
.chapter-body ul, .chapter-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.chapter-body li { margin-bottom: .55em; }
.chapter-body strong { color: #FFFFFF; }
.ref { font-size: .7em; line-height: 0; margin-left: 2px; }
.ref a { color: var(--amber); text-decoration: none; padding: 1px 4px; border-radius: 6px; background: rgba(242,165,65,.12); font-weight: 600; }
.tts-active { background: rgba(242,165,65,.12); border-radius: 8px; box-shadow: 0 0 0 6px rgba(242,165,65,.12); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 1.6em 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font: 700 1.875rem/1.1 var(--font-display); color: var(--amber); }
.stat-label { font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.callout { background: rgba(127,179,232,.08); border: 1px solid rgba(127,179,232,.3); border-radius: 18px; padding: 20px 22px; margin: 1.6em 0; }
.callout-warn { background: rgba(242,165,65,.08); border-color: rgba(242,165,65,.4); }
.cycle { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0; }
.cycle span { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9375rem; }
.cycle span:not(:last-child)::after { content: "→"; margin-left: 12px; color: var(--amber); }
.alert-list li::marker { color: var(--amber); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.2em 0 1.6em; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; font-size: .9375rem; line-height: 1.55; }
.contact-card strong { font-family: var(--font-display); font-size: 1.0625rem; }
.contact-card span { color: var(--muted); }

.takeaways { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; margin: 3em 0 2em; }
.takeaways h2 { margin-top: 0; font-size: 1.375rem; }
.takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.takeaways li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.takeaways .icon { color: var(--green); margin-top: 5px; }

.quiz { margin: 2.5em 0; }
.quiz h2 { margin-top: 0; }
.quiz-q { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 14px; margin: 0 0 14px; background: var(--surface); }
.quiz-q legend { font-weight: 600; padding: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.45; float: left; width: 100%; margin-bottom: 12px; }
.quiz-q legend + * { clear: both; }
.quiz-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: var(--amber); font: 700 .875rem/26px var(--font-display); text-align: center; }
.quiz-opt { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; font-size: 1rem; line-height: 1.4; background: var(--bg); }
.quiz-opt:hover { border-color: #3A5885; }
.quiz-opt input { width: 18px; height: 18px; accent-color: var(--amber); margin: 0; flex-shrink: 0; }
.quiz-opt.is-right { border-color: var(--green); background: rgba(127,209,168,.08); }
.quiz-opt.is-wrong { border-color: var(--red); background: rgba(240,138,138,.08); }
.quiz-explain { font-size: .9375rem; color: var(--muted); margin: 6px 2px 4px; }
.quiz-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.quiz-result { margin: 0; font-weight: 600; }
.complete-row { display: flex; justify-content: center; margin: 2em 0 2.5em; }

.sources { border-top: 1px solid var(--line); padding-top: 1.6em; margin-top: 2em; }
.sources h2 { font-size: 1.25rem; margin-top: 0; }
.sources ol, .source-list { font-size: .9375rem; color: var(--muted); line-height: 1.55; padding-left: 1.4em; }
.sources li, .source-list li { margin-bottom: .7em; }
.chapter-disclaimer { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--muted); background: var(--surface); border-radius: 14px; padding: 14px 16px; line-height: 1.5; }
.chapter-disclaimer .icon { color: var(--blue); margin-top: 2px; }
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2.2em; }
.chapter-nav a { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; text-decoration: none; color: var(--text); font-size: 1rem; line-height: 1.4; }
.chapter-nav a:hover { border-color: #3A5885; color: var(--text); }
.chapter-nav span { color: var(--muted); font-size: .8125rem; }
.cn-next { text-align: right; grid-column: 2; }

/* Thème de lecture clair */
body.reader-light { --bg: #F7F4EE; --bg-2: #EFEBE3; --surface: #FFFFFF; --surface-2: #F1ECE2; --line: #E2DACB; --text: #1A2233; --muted: #4F5A6B; color-scheme: light; }
body.reader-light .site-header, body.reader-light .reader-bar { background: rgba(247,244,238,.92); border-color: var(--line); }
body.reader-light .chapter-body strong { color: #0B1524; }
body.reader-light a { color: #9A5A00; }
body.reader-light .eyebrow, body.reader-light .stat-num, body.reader-light .ref a, body.reader-light .quiz-n, body.reader-light .timeline-num { color: #9A5A00; }
body.reader-light .btn-primary, body.reader-light .tool-btn.is-active { color: var(--amber-ink); }
body.reader-light .logo { color: var(--text); }
body.reader-light .site-footer { background: #EFEBE3; }

/* ---------- Outils interactifs ---------- */
.tool { margin: 1.8em 0; scroll-margin-top: 150px; }
.tool > div:first-child { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 24px; padding: 26px; font-size: 1rem; line-height: 1.6; }
.tool-head { margin-bottom: 18px; }
.tool-head h3 { font-size: 1.375rem; margin: 4px 0 4px; }
.tool-head p { margin: 0; }
.tool-kicker { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--amber); }

.bilan-form { display: grid; gap: 14px; }
.bilan-q { border: 0; padding: 0; margin: 0; }
.bilan-q legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.scale5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.scale5 label { position: relative; cursor: pointer; }
.scale5 input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scale5 span { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; transition: all .15s ease; }
.scale5 input:checked + span { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.scale5 input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.bilan-result { text-align: center; }
.bilan-score { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin: 4px 0 8px; }
.bilan-score strong { font: 700 4rem/1 var(--font-display); color: var(--amber); }
.bilan-score span { color: var(--muted); }
.bilan-history { display: flex; justify-content: center; align-items: flex-end; gap: 8px; height: 110px; margin: 18px 0; }
.bh-bar { width: 28px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--amber), #B8762A); position: relative; }
.bh-bar span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: .6875rem; color: var(--muted); white-space: nowrap; }

.kegel-settings { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.kegel-settings label { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; color: var(--muted); font-weight: 500; flex: 1; min-width: 110px; }
.kegel-settings select { min-height: 44px; }
.kegel-stage { position: relative; width: 240px; height: 240px; margin: 18px auto 8px; }
.kegel-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.kegel-ring .ring-bg { stroke-width: 12; }
.kegel-ring .ring-fg { stroke-width: 12; transition: stroke-dashoffset .25s linear; }
.kegel-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kegel-center strong { font: 700 4rem/1 var(--font-display); }
.kegel-center span { font: 700 1.25rem/1.3 var(--font-display); color: var(--amber); }
.kegel-rep { text-align: center; color: var(--muted); margin: 0 0 16px; }
.kegel-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kegel-plan { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; }
.kegel-plan strong { font: 700 1.125rem/1.3 var(--font-display); }
.kegel-manual { justify-content: center; margin-bottom: 12px; }
[data-k-sound].is-off { opacity: .6; }
.discreet-overlay { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: flex-end; justify-content: center; padding: 30px; cursor: pointer; }
.discreet-overlay p { color: #333; font-size: .8125rem; margin: 0; }

.breath-stage { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; }
.breath-circle { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--amber-hi), var(--amber) 55%, #B8762A); box-shadow: 0 0 80px rgba(242,165,65,.35); transform: scale(.75); transition-property: transform; transition-timing-function: ease-in-out; }
.breath-label { position: absolute; bottom: 4px; font: 700 1.375rem/1 var(--font-display); }
[data-b-time] { text-align: center; margin: 0; }

.arousal input[type=range] { width: 100%; height: 44px; accent-color: var(--amber); background: transparent; }
.scale-ticks { display: grid; grid-template-columns: repeat(10, 1fr); text-align: center; font-size: .75rem; color: var(--muted); margin: -4px 0 16px; }
.scale-card { border-radius: 18px; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); transition: border-color .2s ease; }
.scale-card strong { font: 700 1.125rem/1.3 var(--font-display); display: block; margin-bottom: 6px; }
.scale-card p { margin: 0; color: var(--muted); }
.scale-card.zone-calm { border-color: rgba(127,179,232,.6); }
.scale-card.zone-play { border-color: rgba(127,209,168,.6); }
.scale-card.zone-stop { border-color: rgba(242,165,65,.8); }
.scale-card.zone-over { border-color: rgba(240,138,138,.8); }

.thoughts-form { display: grid; gap: 14px; }
.thoughts-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.thought { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; font-size: .9375rem; }
.thought b { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.thought .alt { color: var(--green); }
.thought-del { justify-self: end; }

.habit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.habit-list li { margin: 0; }
.habit { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.habit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.habit-box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; transition: all .15s ease; }
.habit input:checked + .habit-box { background: var(--green); border-color: var(--green); color: #0B1524; }
.habit input:focus-visible + .habit-box { outline: 3px solid var(--amber); outline-offset: 2px; }
.habit-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 18px; text-align: center; font-size: .75rem; color: var(--muted); }
.hw-day { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hw-dot { width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text); font-size: .8125rem; }

.phrase-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.phrase { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0; }
.phrase p { margin: 0; font-style: italic; }

/* ---------- Chapitre verrouillé ---------- */
.locked { padding: 40px 0 96px; }
.locked .reader-back { margin-bottom: 26px; }
.locked-fade { position: relative; color: var(--muted); filter: blur(3px); user-select: none; margin: 10px 0 -40px; }
.locked-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 36px; text-align: center; box-shadow: var(--shadow); }
.locked-icon { width: 60px; height: 60px; border-radius: 18px; background: rgba(242,165,65,.14); color: var(--amber); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.locked-icon .icon { width: 28px; height: 28px; }
.locked-card h2 { font-size: 1.5rem; }
.locked-card p { color: var(--muted); }
.locked-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Compte ---------- */
.account-grid { display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.panel h2 { font-size: 1.25rem; }
.panel .form { margin-top: 10px; max-width: 420px; }
.panel-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.panel-actions form { margin: 0; }
.panel-danger { border-color: rgba(240,138,138,.3); }

.prose h2 { font-size: 1.375rem; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: #D6DCE5; }
.prose ul { padding-left: 1.3em; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08111D; padding: 60px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-disclaimer { color: var(--muted); font-size: .875rem; max-width: 420px; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font: 600 .8125rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 6px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(36,56,90,.6); color: var(--muted); font-size: .8125rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .feature-grid, .research-grid, .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .price-card-featured { order: -1; }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-visual { min-height: 470px; }
  .phone { width: 260px; }
  .stats-grid, .feature-grid, .research-grid, .chapter-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; gap: 36px; }
  .auth { grid-template-columns: 1fr; margin: 28px auto 64px; }
  .auth-card { border-radius: 24px; padding: 30px 22px; }
  .auth-aside { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .ring-wrap { width: 150px; height: 150px; margin: 0 auto; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .chapter-nav { grid-template-columns: 1fr; }
  .cn-next { grid-column: 1; }
  .reader-back span, .tool-btn[data-tts-toggle] span { display: none; }
  .timeline-item { padding: 18px; gap: 14px; }
  .timeline-num { width: 40px; height: 40px; font-size: 1.0625rem; }
  .tool > div:first-child { padding: 20px 16px; }
  .chapter-body { --reader-size: 1.0625rem; }
  .lead { font-size: 1.0625rem; }
  .phrase { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .wave-path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .reader-bar, .site-footer, .quiz, .complete-row, .tool, .chapter-nav { display: none !important; }
}

@media (max-width: 520px) {
  .hero-actions .btn, .locked-actions .btn, .cta-final .btn { width: 100%; }
}

/* Cartes du programme sur l'accueil : toute la carte est cliquable */
.timeline-item { position: relative; }
.timeline-link { color: inherit; text-decoration: none; }
.timeline-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.timeline-link:focus-visible { outline: none; }
.timeline-item:has(.timeline-link:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.timeline-item:hover .timeline-link { color: var(--amber); }

/* Langues écrites de droite à gauche (arabe) */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: inherit; letter-spacing: 0; }
[dir="rtl"] .icon-arrow, [dir="rtl"] .btn .icon[data-dir] { transform: scaleX(-1); }
:lang(zh) body, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }
[dir="rtl"] .faq summary::after { right: auto; left: 2px; }
[dir="rtl"] .faq summary { padding-right: 0; padding-left: 32px; }
[dir="rtl"] .auth-aside { border-radius: 26px 0 0 26px; border-left: 1px solid var(--line); border-right: 0; }
[dir="rtl"] .chapter-body ul, [dir="rtl"] .chapter-body ol, [dir="rtl"] .prose ul, [dir="rtl"] .sources ol, [dir="rtl"] .source-list { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .ref { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .cycle span:not(:last-child)::after { content: "←"; margin-left: 0; margin-right: 12px; }
[dir="rtl"] .quiz-q legend { float: right; }
[dir="rtl"] .cn-next { text-align: left; }
