/* Pages publiques (bienvenue, connexion), pages légales et éléments de coquille associés :
   pied de page, compte dans l'en-tête, notifications avec bouton, indicateur hors ligne. */

/* ---------- Coquille : colonne principale + pied de page ---------- */
.shell__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell__main > .main { flex: 1 0 auto; }

.site-footer {
  width: 100%; max-width: calc(var(--content-max) + 2 * var(--space-6)); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5);
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5;
}
.site-footer p { flex: 1 1 380px; max-width: 80ch; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 1023px) { .site-footer { padding: var(--space-4) var(--space-5) var(--space-5); } }
@media (max-width: 639px) { .site-footer { padding: var(--space-4); } }

/* ---------- Compte dans l'en-tête (version en ligne) ---------- */
.account-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: var(--fs-sm); font-weight: 650; text-decoration: none; white-space: nowrap;
}
.account-chip[hidden], .net-status[hidden], .callout[hidden] { display: none; }
.account-chip:hover { background: var(--surface-2); color: var(--text); }
.account-chip .icon { width: 18px; height: 18px; color: var(--primary); }
.account-chip.is-signed { padding: 0; border: 0; background: none; }
.account-chip__avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--navy)); color: #fff; font-weight: 800; font-size: var(--fs-sm);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border-strong);
}
.account-chip.is-signed:hover .account-chip__avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--primary); }
@media (max-width: 639px) {
  .account-chip { width: 40px; padding: 0; justify-content: center; }
  .account-chip__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Pages publiques : sans menu latéral ni recherche ---------- */
.is-public .sidebar, .is-public .nav-backdrop, .is-public .topbar__menu, .is-public .topbar__search, .is-public .streak-chip { display: none !important; }
.is-public .topbar__actions { margin-left: auto; }
.is-public .main { max-width: 1280px; }

/* ---------- Notifications avec bouton, indicateur réseau ---------- */
.toast--action { display: flex; align-items: center; gap: var(--space-3); pointer-events: auto; }
.toast__text { flex: 1; }
.toast__actions { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.toast__btn {
  min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid currentColor;
  background: transparent; color: inherit; font: inherit; font-weight: 750; cursor: pointer;
}
.toast__btn:hover { background: rgba(127, 127, 127, .18); }
.toast__close { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
.toast__close .icon { width: 16px; height: 16px; }
.toast__close:hover { background: rgba(127, 127, 127, .18); }

.net-status {
  position: fixed; z-index: 85; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); color: var(--text); font-size: var(--fs-xs); font-weight: 650;
}
.net-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); flex: none; }
.net-status.is-online .net-status__dot { background: var(--success); }
@media (max-width: 639px) { .net-status { left: 8px; bottom: 8px; } }

@media print {
  .shell__main { display: block !important; }
  .site-footer, .net-status, .account-chip { display: none !important; }
}

/* ======================================================================== Bienvenue (#/bienvenue) */
.lp { display: grid; gap: var(--space-7); }
.lp-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.lp-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.02em; line-height: 1.2; max-width: 30ch; }
.lp-sub { margin-top: var(--space-2); color: var(--text-2); max-width: 70ch; }

/* Bandeau d'ouverture */
.lp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: var(--space-6);
  padding: clamp(28px, 4vw, 56px); border-radius: 26px; background: var(--hero-bg); color: var(--hero-text);
  box-shadow: var(--shadow-lg);
}
.lp-hero::before, .lp-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.lp-hero::before { width: 520px; height: 520px; right: -160px; top: -220px; background: radial-gradient(closest-side, rgba(61, 182, 236, .35), transparent); }
.lp-hero::after { width: 420px; height: 420px; left: -180px; bottom: -240px; background: radial-gradient(closest-side, rgba(113, 81, 209, .28), transparent); }
.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 10px; border-radius: 999px;
  background: rgba(4, 159, 217, .22); border: 1px solid rgba(143, 216, 246, .35); color: #BFE9FA;
  font-weight: 750; font-size: var(--fs-sm); letter-spacing: .02em;
}
.lp-kicker .icon { width: 16px; height: 16px; color: #FFD25E; }
.lp-hero__title { margin-top: var(--space-4); font-size: clamp(2rem, 1.1rem + 3.2vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
.lp-hero__title span { display: block; color: #8FD8F6; }
.lp-hero__lead { margin-top: var(--space-4); max-width: 56ch; color: rgba(255, 255, 255, .86); font-size: var(--fs-lg); line-height: 1.6; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.lp-hero .btn--primary, .lp-cta .btn--primary { background: #fff; color: var(--navy); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.lp-hero .btn--primary:hover, .lp-cta .btn--primary:hover { background: #E3F2FA; color: var(--navy); }
.lp-hero .btn:focus-visible, .lp-cta .btn:focus-visible, .lp-hero a:focus-visible { outline-color: #fff; }
.lp-hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: var(--space-5); color: rgba(255, 255, 255, .82); font-size: var(--fs-sm); }
.lp-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero__trust .icon { width: 16px; height: 16px; color: #4CC38A; }
.lp-hero__login { margin-top: var(--space-4); color: rgba(255, 255, 255, .82); font-size: var(--fs-sm); }
.lp-hero__login a { color: #fff; font-weight: 700; }
.lp-hero__art { position: relative; }

/* Illustration : fenêtre de l'application */
.lp-art { width: 100%; max-width: 480px; margin-left: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); animation: lp-float 7s ease-in-out infinite; }
.lp-art__win { fill: rgba(10, 22, 42, .72); stroke: rgba(143, 216, 246, .35); stroke-width: 1.5; }
.lp-art__bar { fill: rgba(255, 255, 255, .07); }
.lp-art__dot:nth-of-type(1) { fill: #F06C76; }
.lp-art__dot { fill: #E3AA45; }
.lp-art__dot:nth-of-type(3) { fill: #4CC38A; }
.lp-art__side { fill: rgba(255, 255, 255, .05); }
.lp-art__line { fill: rgba(255, 255, 255, .17); }
.lp-art__line--on { fill: #3DB6EC; }
.lp-art__line--strong { fill: rgba(255, 255, 255, .5); }
.lp-art__card { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .12); }
.lp-art__track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 7; }
.lp-art__ring { fill: none; stroke: #3DB6EC; stroke-width: 7; stroke-linecap: round; animation: lp-ring 2.4s var(--ease) both; }
.lp-art__pct { fill: #fff; font: 800 14px var(--font-sans); }
.lp-art__ok { fill: rgba(76, 195, 138, .2); stroke: #4CC38A; stroke-width: 1.5; }
.lp-art__opt { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .12); }
.lp-art__tick { fill: none; stroke: #4CC38A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-art__term { fill: #050D1A; stroke: rgba(143, 216, 246, .25); }
.lp-art__code { fill: #CFE9F7; font: 600 11.5px var(--font-mono); }
.lp-art__code--dim { fill: rgba(207, 233, 247, .62); font-weight: 500; }
.lp-art__code--ok { fill: #4CC38A; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp-ring { from { stroke-dashoffset: 163; } }

/* Chiffres */
.lp-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-5); }
.lp-stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--space-3); align-items: center;
  padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.lp-stat__icon { grid-row: span 2; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.lp-stat__value { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-stat__label { color: var(--text-2); font-size: var(--fs-sm); }

/* Fonctionnalités */
.lp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.lp-feature {
  padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.lp-feature:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.lp-feature__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(140deg, var(--primary-soft), var(--surface-2)); color: var(--primary); margin-bottom: var(--space-3); }
.lp-feature h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.lp-feature p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }

/* Leçons vidéo */
.lp-videos { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center;
  padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.lp-videos .lp-feature__icon { margin-bottom: 0; }
.lp-videos .lp-title { font-size: var(--fs-xl); }
@media (max-width: 640px) { .lp-videos { grid-template-columns: minmax(0, 1fr); } .lp-videos .btn { justify-self: stretch; } }

/* Domaines */
.lp-domains { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-6); align-items: center;
  padding: clamp(20px, 3vw, 40px); border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.lp-domains__text .btn { margin-top: var(--space-5); }
.lp-domains__list { list-style: none; display: grid; gap: var(--space-3); }
.lp-domains__list li { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--space-3); align-items: center; }
.lp-domains__name { font-weight: 650; font-size: var(--fs-sm); }
.lp-domains__id { display: inline-block; min-width: 2.4em; color: color-mix(in srgb, var(--c) 70%, var(--text)); font-weight: 800; }
.lp-domains__pct { font-weight: 800; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); color: var(--text-2); }
.lp-domains__bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.lp-domains__bar span { display: block; height: 100%; border-radius: inherit; background: var(--c); }

/* Gratuit / membres */
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); align-items: stretch; }
.lp-plan { display: flex; flex-direction: column; padding: var(--space-6); border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.lp-plan .ticks { flex: 1; margin: var(--space-4) 0 var(--space-5); }
.lp-plan .btn { align-self: flex-start; }
.lp-plan--full { border: 2px solid var(--primary); background: linear-gradient(165deg, var(--primary-soft), var(--surface) 60%); box-shadow: var(--shadow); }
.lp-plan__tag { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.lp-plan--full .lp-plan__tag { background: var(--primary); color: var(--on-primary); }
.lp-plan__name { margin-top: var(--space-3); font-size: var(--fs-xl); }
.lp-plan__desc { color: var(--text-2); margin-top: 4px; }
.lp-plan__note { margin-top: var(--space-3); color: var(--text-2); font-size: var(--fs-xs); }
.lp-note { margin-top: var(--space-4); color: var(--text-2); font-size: var(--fs-sm); }

/* FAQ */
.lp-faq__list { display: grid; gap: var(--space-2); margin-top: var(--space-5); max-width: 860px; }
.lp-faq__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.lp-faq__item[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.lp-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; border-radius: var(--radius);
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__chev { color: var(--text-3); transform: rotate(90deg); transition: transform .2s var(--ease); }
.lp-faq__item[open] .lp-faq__chev { transform: rotate(-90deg); color: var(--primary); }
.lp-faq__item p { padding: 0 18px 18px; color: var(--text-2); line-height: 1.6; max-width: 75ch; }

/* Appel à l'action final */
.lp-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: clamp(24px, 3.5vw, 44px); border-radius: 26px; background: var(--hero-bg); color: var(--hero-text);
}
.lp-cta h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.02em; }
.lp-cta p { margin-top: 6px; color: rgba(255, 255, 255, .85); max-width: 52ch; }
.lp-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.lp-disclaimer { text-align: center; color: var(--text-3); font-size: var(--fs-xs); margin-top: calc(-1 * var(--space-5)); }
.lp-disclaimer a { color: var(--text-2); }

@media (max-width: 1180px) { .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); }
  .lp-art { max-width: 420px; margin: 0 auto; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-domains, .lp-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .lp { gap: var(--space-6); }
  .lp-hero { border-radius: 20px; }
  .lp-hero__actions .btn, .lp-cta__actions .btn { width: 100%; }
  .lp-art { max-width: 320px; }
  .lp-stat { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 4px; padding: var(--space-3); }
  .lp-stat__icon { grid-row: auto; width: 36px; height: 36px; }
  .lp-stat__value { font-size: var(--fs-xl); }
  .lp-features { grid-template-columns: minmax(0, 1fr); }
  .lp-plan { padding: var(--space-5); }
  .lp-plan .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .lp-art, .lp-art__ring { animation: none; } .lp-feature { transition: none; } }

/* ======================================================================== Connexion (#/connexion) */
.auth-page {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--space-5);
  min-height: calc(100vh - var(--header-h) - 2 * var(--space-6) - 80px); align-items: stretch;
}
.auth-aside {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: var(--space-5);
  padding: clamp(24px, 3.5vw, 44px); border-radius: 26px; background: var(--hero-bg); color: var(--hero-text);
}
.auth-aside::after { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -200px; bottom: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(61, 182, 236, .35), transparent); }
.auth-aside__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; align-self: flex-start; }
.auth-aside__brand:hover { color: #fff; }
.auth-aside__brand svg { width: 34px; height: 34px; }
.auth-aside__brand rect { fill: rgba(255, 255, 255, .12); }
.auth-aside__brand path { stroke: #8FD8F6; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.auth-aside__brand:focus-visible { outline-color: #fff; }
.auth-aside__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; max-width: 18ch; }
.auth-art { width: 100%; max-width: 360px; margin: auto 0; }
.auth-art__link { fill: none; stroke: rgba(143, 216, 246, .5); stroke-width: 2.5; stroke-dasharray: 6 6; }
.auth-art__node { fill: rgba(255, 255, 255, .08); stroke: #8FD8F6; stroke-width: 2; }
.auth-art__lock { fill: none; stroke: #FFD25E; stroke-width: 2.2; stroke-linecap: round; }
.auth-art__packet { fill: #FFD25E; filter: drop-shadow(0 0 6px rgba(255, 210, 94, .9)); }
.auth-aside__list { list-style: none; display: grid; gap: var(--space-3); color: rgba(255, 255, 255, .9); font-size: var(--fs-sm); }
.auth-aside__list li { display: flex; gap: 10px; align-items: flex-start; }
.auth-aside__list .icon { color: #8FD8F6; margin-top: 1px; }

.auth-panel { display: grid; place-items: center; padding: var(--space-4) 0; }
.auth-card {
  width: 100%; max-width: 460px; padding: clamp(22px, 3vw, 36px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.auth-head { margin-bottom: var(--space-5); }
.auth-head__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); margin-bottom: var(--space-4); }
.auth-head__icon .icon { width: 26px; height: 26px; }
.auth-head__icon.is-success { background: var(--success-soft); color: var(--success); }
.auth-title { font-size: var(--fs-2xl); letter-spacing: -.02em; line-height: 1.2; }
.auth-lead { margin-top: 6px; color: var(--text-2); }
.auth-lead strong { color: var(--text); overflow-wrap: anywhere; }
.auth-tabs { margin-bottom: var(--space-4); }
.auth-tabs button { flex: 1; justify-content: center; min-height: 40px; }
.auth-form { display: grid; gap: var(--space-4); }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > .icon { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; width: 18px; height: 18px; }
.field .auth-input input { width: 100%; padding-left: 40px; }
.auth-forgot { margin-top: calc(-1 * var(--space-2)); text-align: right; font-size: var(--fs-sm); }
.auth-submit { width: 100%; }
.auth-submit.is-busy { opacity: .75; cursor: progress; }
.auth-feedback { margin-top: 0; }
.auth-legal { font-size: var(--fs-xs); color: var(--text-2); text-align: center; }
.auth-alt { margin-top: var(--space-5); text-align: center; color: var(--text-2); font-size: var(--fs-sm); }
.auth-alt .link-btn { display: inline-flex; align-items: center; gap: 6px; }
.auth-alt .link-btn .icon { width: 16px; height: 16px; }
.auth-actions { display: grid; gap: var(--space-3); }
.auth-tips { margin-bottom: var(--space-5); color: var(--text-2); font-size: var(--fs-sm); }
.auth-tips .icon { color: var(--primary); }
.auth-code { font: 700 1.5rem var(--font-mono); letter-spacing: .3em; text-align: center; }
.field input.auth-code { min-height: 56px; }

/* Mot de passe : afficher / masquer, robustesse */
.pw-field__box { position: relative; display: flex; }
.field .pw-field__box input { width: 100%; padding-right: 48px; }
.pw-field__toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer;
}
.pw-field__toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-field__toggle .icon { width: 18px; height: 18px; }
.field__hint { font-size: var(--fs-xs); color: var(--text-3); }
.pw-meter { display: grid; gap: 6px; margin-top: calc(-1 * var(--space-2)); }
.pw-meter__bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.pw-meter__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--danger); transition: width .3s var(--ease), background .3s var(--ease); }
.pw-meter.is-mid .pw-meter__bar span { background: var(--warning); }
.pw-meter.is-good .pw-meter__bar span, .pw-meter.is-great .pw-meter__bar span { background: var(--success); }
.pw-meter__label { font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); }
.pw-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--text-2); }
.pw-rules li { display: inline-flex; align-items: center; gap: 4px; }
.pw-rules .icon { width: 14px; height: 14px; color: var(--border-strong); }
.pw-rules li.is-ok { color: var(--success); }
.pw-rules li.is-ok .icon { color: var(--success); }

@media (max-width: 860px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-4); }
  .auth-aside { padding: var(--space-5); gap: var(--space-3); border-radius: 20px; }
  .auth-art, .auth-aside__list { display: none; }
  .auth-aside__title { font-size: var(--fs-lg); max-width: none; }
  .auth-panel { padding: 0; }
  .auth-card { max-width: none; box-shadow: var(--shadow-sm); }
}
@media (max-width: 560px) { .auth-card { padding: var(--space-5) var(--space-4); border-radius: 18px; } }

/* ======================================================================== Pages légales */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 16px); padding: var(--space-4); }
.legal__toc-title { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--space-2); }
.legal__toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc .link-btn { display: block; width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); line-height: 1.35; }
.legal__toc .link-btn::before { content: counter(toc) ". "; color: var(--text-3); font-weight: 700; }
.legal__toc .link-btn:hover { background: var(--surface-2); color: var(--primary); }
.legal__body { padding: clamp(20px, 3vw, 40px); }
.legal__local { margin: 0 0 var(--space-5); }
.legal__section + .legal__section { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.legal__section { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__section h2 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.legal__section h2:focus { outline: none; }
.legal__section p, .legal__section li { color: var(--text-2); line-height: 1.65; max-width: 78ch; }
.legal__section p + p, .legal__section p + ul, .legal__section ul + p { margin-top: var(--space-3); }
.legal__section strong { color: var(--text); }
.legal__list { padding-left: 1.2em; display: grid; gap: 6px; }
.legal__list--plain { list-style: none; padding-left: 0; }
.legal-todo { padding: 1px 6px; border-radius: 6px; background: var(--warning-soft); color: var(--warning); font-weight: 650; }
.legal__updated { margin-top: var(--space-6); }
@media (max-width: 860px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; }
}
/* Aperçu de trois écrans redessinés (images sur fond clair dans les deux thèmes) */
.lp-apercu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-4); }
.lp-apercu__item { margin: 0; padding: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.lp-apercu__item img { display: block; width: 100%; height: auto; }
.lp-apercu__item figcaption { margin-top: var(--space-2); font-size: var(--fs-sm); color: #333; text-align: center; }
@media (max-width: 860px) { .lp-apercu { grid-template-columns: minmax(0, 1fr); } }
