/* ==========================================================================
   CandleOne — feuille de style partagée (accueil + pages légales)
   Sommaire :
   1. Variables & reset          6. Problème / CRT / protocole
   2. Typographie & utilitaires  7. Pour qui
   3. Boutons & pills            8. Programmes / formateur / FAQ
   4. Bandeau risques & header   9. Footer, sticky CTA, to-top
   5. Hero                       10. Animations & responsive
                                 11. Pages légales
                                 12. Formulaires, avis & admin
   ========================================================================== */

/* ---------- 1. Variables & reset ---------- */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --soft: #f3f0e9;
  --ink: #0b1320;
  --ink-2: #1b2536;
  --text: #2a3344;
  --muted: #5f6878;
  --line: #e6e1d6;
  --line-strong: #d6cfc0;

  --navy: #13294b;
  --gold: #c9a45c;
  --gold-deep: #a4823c;
  --gold-soft: #f6eedd;
  --violet: #6e56cf;
  --violet-soft: #efebfb;
  --ok: #1d8a5a;
  --ok-soft: #e4f4ec;
  --ko: #c0412c;
  --ko-soft: #fbe9e5;
  --wait: #b7791f;
  --wait-soft: #fbf1df;

  --dark-bg: #0b1320;
  --dark-card: #121c2d;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-muted: #a4adbd;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 32, 0.05), 0 4px 14px rgba(11, 19, 32, 0.05);
  --shadow: 0 2px 6px rgba(11, 19, 32, 0.05), 0 20px 50px -18px rgba(11, 19, 32, 0.22);
  --shadow-lg: 0 30px 80px -24px rgba(11, 19, 32, 0.35);

  --max: 1120px;
  --gutter: 24px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Spectral", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- 2. Typographie & utilitaires ---------- */
.container { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }

.serif-em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.section { padding: 120px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark-bg); color: #d9dee8; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; max-width: 760px; }
.section__title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.section__title--sm { font-size: clamp(24px, 2.4vw, 30px); }
.section__sub { font-size: 17px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow--sm { font-size: 11px; margin-bottom: 4px; }
.eyebrow--light { color: var(--gold); }

.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.gold { color: var(--gold); }

.visual-caption {
  margin-top: 14px; text-align: center;
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.visual-caption--light { color: var(--dark-muted); }

.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%231d8a5a' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- 3. Boutons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 19, 32, 0.6); }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d6b36c; }

.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.btn:hover .btn__icon { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap;
}
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--ko { background: var(--ko-soft); color: var(--ko); }
.pill--wait { background: var(--wait-soft); color: var(--wait); }

/* ---------- 4. Bandeau risques & header ---------- */
.risk-bar { background: var(--ink); color: #c9d0dc; font-size: 12.5px; }
.risk-bar__inner { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0; text-align: center; }
.risk-bar strong { color: #fff; }
.risk-bar a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.risk-bar__inner p { min-width: 0; }
.risk-bar__close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; font-size: 20px; line-height: 1; color: #c9d0dc; }
.risk-bar__close:hover { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; }
.logo__img { display: block; height: 44px; width: auto; }

.nav__list { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 14.5px; font-weight: 600; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scroll de la page bloqué tant que le menu mobile est ouvert (largeur de scrollbar compensée) */
html.menu-open { overflow: hidden; padding-right: var(--scrollbar-w, 0px); }

@media (max-width: 1024px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    /* --nav-max : espace réellement disponible sous le header, mesuré à l'ouverture (script.js) */
    max-height: var(--nav-max, calc(100dvh - var(--header-h)));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 8px max(var(--gutter), (100% - var(--max)) / 2) 16px;
    background: var(--bg); border-top: 1px solid var(--line);
    /* voile sur le contenu, limité à ce qui est sous le panneau */
    box-shadow: 0 0 0 100vmax rgba(11, 19, 32, 0.32);
    clip-path: inset(0 0 -100vmax 0);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__link { display: block; padding: 15px 0; font-size: 17px; }
  .nav__link::after { display: none; }
}

/* ---------- 5. Hero ---------- */
.hero {
  padding: 96px 0 120px;
  background: radial-gradient(900px 480px at 85% -10%, rgba(201, 164, 92, 0.12), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero__title { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 24px; }
.hero__title .serif-em { margin-top: 8px; font-size: 0.72em; line-height: 1.2; }
.hero__lead { font-size: 17.5px; color: var(--text); max-width: 540px; }
.hero__lead strong { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 20px; }
.hero__reassure { font-size: 12.5px; color: var(--muted); max-width: 480px; line-height: 1.55; }

/* Mockup fiche d'analyse */
.desk { position: relative; padding: 20px 10px 0; }
.desk__screen { background: var(--ink); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid #1f2a3d; }
.desk__stand { width: 34%; height: 20px; margin: 0 auto; background: linear-gradient(#1a2436, #0e1624); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.screen__bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; }
.screen__bar span { width: 9px; height: 9px; border-radius: 50%; background: #2c3950; }
.screen__bar em { margin-left: 10px; font-style: normal; font-size: 11.5px; color: #7f8aa0; font-weight: 600; }
.screen__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; background: #f6f4ef; border-radius: 10px; padding: 14px; }

.review { background: #fff; border-radius: 10px; padding: 16px; border: 1px solid var(--line); }
.review__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.review__asset { display: block; font-weight: 800; color: var(--ink); font-size: 15px; }
.review__tf { font-size: 12px; color: var(--muted); font-weight: 600; }
.review__list { display: grid; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.review__list li { display: flex; align-items: flex-start; gap: 9px; }
.tick { flex: none; width: 17px; height: 17px; border-radius: 5px; margin-top: 1px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.ok .tick { background: var(--ok-soft); color: var(--ok); }
.ok .tick::before { content: "✓"; }
.ko .tick { background: var(--ko-soft); color: var(--ko); }
.ko .tick::before { content: "✕"; }
.ko { color: var(--ko); }
.review__verdict { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.review__verdict strong { color: var(--ko); font-size: 13.5px; }

.notes { background: #fffdf6; border-radius: 10px; padding: 14px; border: 1px solid #efe6cf; display: flex; flex-direction: column; gap: 9px; }
.notes__title { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.notes__line { height: 6px; border-radius: 4px; background: #ece4cf; }
.notes__line--short { width: 60%; }
.notes__tag { margin-top: auto; font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.35; color: var(--navy); }

.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 16px; font-size: 12.5px; line-height: 1.35; color: var(--muted);
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: 14px; }
.float-card b { color: var(--ok); }
.float-card__label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2px; }
.float-card--a { left: -34px; bottom: -18px; }
.float-card--b { right: -18px; top: -26px; display: flex; gap: 12px; align-items: center; animation-delay: -3s; }
.float-card__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-weight: 800; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }


/* ---------- 6. Problème / CRT / protocole ---------- */
.problem { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start; }
.problem__text > * + * { margin-top: 28px; }
.problem__text strong { color: var(--ink); }

.not-list { display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.not-list li { font-size: 17px; color: var(--muted); }
.not-list s { text-decoration-color: rgba(192, 65, 44, 0.55); text-decoration-thickness: 2px; }
.not-list__true { font-size: 21px !important; font-weight: 700; color: var(--ink) !important; letter-spacing: -0.015em; margin-top: 6px; }
mark { background: linear-gradient(transparent 58%, rgba(201, 164, 92, 0.45) 58%); color: inherit; padding: 0 2px; }

.pull {
  font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink-2);
  padding: 2px 0 2px 22px; border-left: 2px solid var(--gold);
}
.pull span { display: block; font-style: italic; color: var(--navy); font-weight: 600; margin-top: 4px; }

.scenario {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.scenario__title { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.scenario__steps li { position: relative; display: flex; gap: 16px; align-items: center; padding: 11px 0; font-weight: 600; color: var(--ink-2); }
.scenario__steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 42px; bottom: -11px; width: 2px; background: var(--line); }
.step-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 800; color: var(--ink); position: relative; z-index: 1; }
.scenario__steps .is-stop { color: var(--ko); }
.is-stop .step-dot { background: var(--ko-soft); border-color: #f0c4bb; color: var(--ko); }

.crt { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.crt__text strong { color: var(--ink); }

.funnel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.funnel-card__head { margin-bottom: 24px; }
.funnel-card__head strong { display: block; font-size: 18px; color: var(--ink); letter-spacing: -0.015em; }
.funnel { display: grid; gap: 10px; }
.funnel li {
  width: var(--w); margin: 0 auto; min-width: 210px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 12px;
  background: var(--soft); border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.funnel li b { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.funnel li.is-final { background: var(--ink); color: #fff; border-color: var(--ink); }
.funnel li.is-final b { color: var(--gold); }

.protocol { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 88px; align-items: center; }
.protocol__text p + p { margin-top: 16px; }
.protocol__text strong { color: #fff; }
.protocol__keys { font-size: 17px; font-weight: 700; color: #fff; }
.protocol__text .btn { margin-top: 32px; }

.protocol__cards { display: grid; gap: 16px; }
.scorecard { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 28px; }
.scorecard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.scorecard__id { display: block; font-size: 12px; font-weight: 700; color: var(--dark-muted); letter-spacing: 0.04em; }
.scorecard__head strong { font-size: 17px; color: #fff; }
.section--dark .pill--ok { background: rgba(29, 138, 90, 0.18); color: #5fd39d; }
.section--dark .pill--ko { background: rgba(192, 65, 44, 0.2); color: #f08b78; }

.scorecard__rows { display: grid; gap: 14px; }
.scorecard__rows li { display: grid; grid-template-columns: 24px minmax(0, 1.4fr) minmax(60px, 1fr) 48px; align-items: center; gap: 12px; font-size: 14px; }
.sc-check { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(29, 138, 90, 0.2); color: #5fd39d; font-size: 13px; font-weight: 800; }
.sc-label { color: #e6eaf1; font-weight: 600; }
.sc-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #e2c78d); transition: width 1.2s var(--ease); }
.is-visible .sc-bar i { width: var(--s); }
.scorecard__rows b { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.scorecard__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dark-line); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; color: var(--dark-muted); font-size: 14px; }
.scorecard__foot strong { font-size: 26px; color: #fff; letter-spacing: -0.02em; }
.scorecard__foot small { font-size: 14px; color: var(--dark-muted); }
.scorecard__decision { margin-left: auto; color: #5fd39d; font-weight: 700; }

.scorecard--rejected { padding: 22px 28px; border-color: rgba(192, 65, 44, 0.35); }
.scorecard--rejected .scorecard__head { margin-bottom: 10px; }
.scorecard__note { font-size: 14px; color: var(--dark-muted); }
.scorecard__note b { color: #f08b78; }

/* ---------- 7. Pour qui ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.profile-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; margin-bottom: 20px; }
.profile-card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-card h3 { font-size: 17px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

/* ---------- 8. Programmes / formateur / FAQ ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px 36px;
  transition: box-shadow 0.25s;
}
.plan:hover { box-shadow: var(--shadow); }
.plan__tier { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.plan__name { font-size: 23px; margin: 8px 0 10px; }
.plan__pitch { color: var(--muted); font-size: 15px; line-height: 1.55; }
.plan__list { display: grid; gap: 12px; margin: 28px 0 36px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.plan__list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.plan__list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--ok); }
.plan__list b { color: var(--ink); }
.plan__ctas { margin-top: auto; display: grid; gap: 12px; }
.plan__secure { text-align: center; font-size: 12.5px; color: var(--muted); }
.pricing__note { max-width: 640px; margin: 40px auto 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pricing__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.coach { max-width: 680px; text-align: center; }
.coach p { color: var(--text); font-size: 17px; }
.coach strong { color: var(--ink); }

/* Citation : suit la section formateur, sans double espacement vertical */
.section.section--compact-bottom { padding-bottom: 64px; }
.section.quote-section { padding-top: 0; }
.quote-card {
  max-width: 760px; margin: 0 auto; padding: 40px 44px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--violet);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.quote-card__author { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.quote-card__avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em;
}
.quote-card__name { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.quote-card__role { display: block; font-size: 13px; color: var(--muted); }
.quote-card__text p { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink-2); }
.quote-card__text em { font-style: italic; font-weight: 600; color: var(--violet); }

/* Sources & outils : bandeau de logos statique */
/* Placé entre le hero et « Le vrai problème » : les sections voisines fournissent l'espace */
.section.logo-strip { padding: 0; }
.logo-strip__title { text-align: center; font-size: clamp(22px, 2.2vw, 28px); color: var(--ink); margin-bottom: 40px; }
.marquee {
  --marquee-duration: 38s;
  --marquee-gap: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee:focus-visible { outline-offset: 6px; }
/* Deux séries identiques : translateX(-50 %) ramène exactement au point de départ */
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: var(--marquee-gap); padding: 6px var(--marquee-gap) 6px 0; }
.marquee__item {
  --tile: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  filter: grayscale(0.6); opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}
.marquee__item:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.marquee__tile {
  display: grid; place-items: center; width: var(--tile); height: var(--tile); padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.marquee__tile img { width: 100%; height: 100%; object-fit: contain; }
.marquee__initials { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink-2); }
.marquee__name { font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; line-height: 1.3; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Mouvement réduit : rangée statique centrée, sans la série dupliquée */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; animation: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 24px; padding-right: 0; width: 100%; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

@media (max-width: 767px) {
  .marquee { --marquee-gap: 32px; }
  .marquee__item { --tile: 52px; }
  .marquee__tile { padding: 10px; }
  .marquee__name { font-size: 13px; }
}

.faq { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 80px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__head p { color: var(--muted); margin-bottom: 24px; }
.accordion { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-item h3 { font-size: inherit; }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; text-align: left; font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em;
}
.acc-trigger:hover { color: var(--navy); }
.acc-icon { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease), background 0.25s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.acc-trigger[aria-expanded="true"] .acc-icon::before, .acc-trigger[aria-expanded="true"] .acc-icon::after { background: #fff; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { overflow: hidden; transition: height 0.35s var(--ease); }
.acc-panel p { padding: 0 54px 24px 0; color: var(--muted); font-size: 15.5px; }
.acc-panel a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 9. Footer, sticky CTA, to-top ---------- */
.footer { background: var(--dark-bg); color: var(--dark-muted); padding: 72px 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer__brand p { margin-top: 16px; }
.footer__col h4 { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { transition: color 0.2s; }
.footer__col a:hover, .footer__col a[aria-current="page"] { color: var(--gold); }
.footer__bottom { display: grid; gap: 10px; padding-top: 28px; font-size: 12.5px; line-height: 1.6; }

.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
  display: none; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform 0.35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; }
.sticky-cta .btn--primary { flex: 1.6; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 10. Animations & responsive ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .sc-bar i { width: var(--s); }
}

@media (max-width: 1100px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .float-card--a { left: -10px; }
  .float-card--b { right: -6px; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .section { padding: 88px 0; }

  .hero { padding: 64px 0 88px; }
  /* titre progressif du téléphone à la tablette (28px à 320px → 42px vers 670px et plus) */
  .hero__title { font-size: clamp(28px, 4vw + 15px, 42px); }
  .hero__grid, .problem, .crt, .protocol, .faq { grid-template-columns: 1fr; }
  .hero__grid { gap: 56px; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .problem, .crt, .protocol, .faq { gap: 48px; }
  .scenario, .faq__head { position: static; }

  .pricing { grid-template-columns: 1fr; max-width: 520px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .sticky-cta { display: flex; }
  .to-top { bottom: 92px; right: 16px; }
  .footer { padding-bottom: 110px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .logo__img { height: 38px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; text-align: left; }
  .section__sub { font-size: 16px; }
  .lead { font-size: 17px; }
  .hero { padding: 48px 0 72px; }
  .hero__lead { font-size: 16.5px; }
  .hero__ctas .btn { width: 100%; }
  .risk-bar__inner { font-size: 12px; justify-content: space-between; text-align: left; }

  .screen__body { grid-template-columns: 1fr; }
  .notes { display: none; }
  .float-card--a { left: -4px; bottom: -14px; padding: 10px 12px; }
  .float-card--b { right: -4px; top: -20px; padding: 10px 12px; }
  .float-card strong { font-size: 13px; }


  .profile-grid { grid-template-columns: 1fr; }
  .scenario, .funnel-card, .scorecard { padding: 24px 20px; }
  .funnel li { min-width: 0; width: calc(56% + var(--w) * 0.44); padding: 12px 14px; font-size: 13px; }
  .scorecard__rows li { grid-template-columns: 24px 1fr 44px; }
  .sc-bar { grid-column: 2 / 3; grid-row: 2; }
  .scorecard__decision { margin-left: 0; width: 100%; }
  .plan { padding: 32px 24px; }
  .coach { text-align: left; }
  .coach p { font-size: 16px; }
  .section.section--compact-bottom { padding-bottom: 44px; }
  .quote-card { padding: 28px 22px; }
  .quote-card__text p { font-size: 18.5px; }
  .acc-trigger { font-size: 15.5px; padding: 20px 0; }
  .acc-panel p { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 11. Pages légales ----------
   Même header, footer et variables que l'accueil ; une seule colonne de lecture. */
.legal { padding: 72px 0 112px; }
.legal__inner { max-width: 720px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s;
}
.legal-back:hover { color: var(--ink); }
.legal-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.legal-back:hover svg { transform: translateX(-3px); }
.legal h1 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 10px; }
.legal__updated { font-size: 13.5px; color: var(--muted); margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }

.legal-article { font-size: 16px; line-height: 1.75; color: var(--text); }
.legal-article h2 { font-size: 18px; line-height: 1.35; margin: 40px 0 12px; }
.legal-article h2:first-child { margin-top: 0; }
.legal-article p { margin-bottom: 14px; }
.legal-article strong { color: var(--ink); font-weight: 700; }
.legal-article ul { margin: 0 0 16px; display: grid; gap: 8px; }
.legal-article ul > li { position: relative; padding-left: 22px; }
.legal-article ul > li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.legal-article a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(19, 41, 75, 0.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-article a:hover { color: var(--gold-deep); text-decoration-color: currentColor; }
.legal-card { padding: 24px 28px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; line-height: 1.8; }

@media (max-width: 980px) {
  .legal-page .footer { padding-bottom: 32px; }
}

@media (max-width: 640px) {
  .legal { padding: 44px 0 80px; }
  .legal-back { margin-bottom: 28px; }
  .legal__updated { margin-bottom: 36px; padding-bottom: 24px; }
  .legal-card { padding: 20px; }
}

/* ---------- 12. Formulaires, avis & admin ----------
   Pages liste d'attente / avis (gabarit des pages légales), témoignages de l'accueil, administration. */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* En-tête des pages formulaire */
.form-page .legal__inner { max-width: 760px; }
.form-intro { margin-bottom: 40px; }
.form-intro h1 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 18px; }
.form-intro h1 .serif-em { margin-top: 6px; font-size: 0.78em; line-height: 1.25; }
.form-intro p { font-size: 17px; color: var(--text); }
.form-intro p + p { margin-top: 12px; }
.form-intro strong { color: var(--ink); }
.form-intro a, .form-notice a, .form-legal a, .check a, .testimonials__note a {
  color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(19, 41, 75, 0.35); text-underline-offset: 3px;
}
.form-intro a:hover, .form-notice a:hover, .form-legal a:hover, .check a:hover, .testimonials__note a:hover { color: var(--gold-deep); text-decoration-color: currentColor; }

.form-notice {
  margin-bottom: 28px; padding: 18px 22px; border-radius: var(--radius-sm);
  background: var(--gold-soft); border-left: 3px solid var(--gold);
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
}
.form-notice p + p { margin-top: 8px; }

/* Carte et grille du formulaire */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px 36px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-row > * { min-width: 0; }
fieldset.field > legend { margin-bottom: 8px; }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; border: 0; }
.field__label { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; padding: 0; }
.field__optional { font-weight: 500; color: var(--muted); }
.field__hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.field__error { font-size: 13.5px; font-weight: 600; color: var(--ko); line-height: 1.45; }
.field__error:empty { display: none; }
.field__error::before { content: "! "; font-weight: 800; }

.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #8a909b; }
.input:hover { border-color: var(--muted); }
.input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--ink); border-radius: var(--radius-sm); }
.input[aria-invalid="true"] { border-color: var(--ko); background: #fffaf9; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%230b1320' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
select.input[aria-invalid="true"] { background-color: #fffaf9; }
textarea.input { min-height: 168px; resize: vertical; }

.field__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.counter { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter.is-short { color: var(--wait); }
.counter.is-over { color: var(--ko); font-weight: 700; }

/* Case à cocher (consentement) */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); cursor: pointer; }
.check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.check input[aria-invalid="true"] { outline: 2px solid var(--ko); outline-offset: 2px; }
.field--check .field__error { padding-left: 34px; }

/* Note en étoiles : 5 radios natifs (flèches du clavier), visuellement remplacés par des étoiles.
   data-rating (posé par forms.js) colore la sélection ; :has() ajoute l'aperçu au survol. */
.stars-input__options { display: inline-flex; gap: 4px; margin-left: -4px; }
.star { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.star input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.star svg { width: 32px; height: 32px; fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.4; stroke-linejoin: round; transition: fill 0.15s, stroke 0.15s, transform 0.15s; }
.star:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px; }
.stars-input__options[data-rating="1"] .star:nth-child(-n + 1) svg,
.stars-input__options[data-rating="2"] .star:nth-child(-n + 2) svg,
.stars-input__options[data-rating="3"] .star:nth-child(-n + 3) svg,
.stars-input__options[data-rating="4"] .star:nth-child(-n + 4) svg,
.stars-input__options[data-rating="5"] .star:nth-child(-n + 5) svg { fill: var(--gold); stroke: var(--gold-deep); }
@media (hover: hover) {
  .stars-input__options:hover .star svg { fill: var(--surface); stroke: var(--line-strong); }
  .stars-input__options:hover .star:hover svg,
  .stars-input__options:hover .star:has(~ .star:hover) svg { fill: var(--gold); stroke: var(--gold-deep); }
  .star:hover svg { transform: scale(1.08); }
}
.stars-input[aria-invalid="true"] .star svg { stroke: var(--ko); }
.stars-input__value { font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* Champ piège pour robots : hors écran, ignoré des lecteurs d'écran et du clavier */
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile : hauteur réservée pour éviter un saut à l'apparition du widget */
.turnstile-box { min-height: 65px; }
.turnstile-box--compact { min-height: 140px; }

.form-legal { font-size: 13px; color: var(--muted); line-height: 1.6; }
.form-actions { display: grid; gap: 14px; justify-items: start; }

.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Messages d'état (role="status" / role="alert") */
.form-status { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { background: var(--ko-soft); color: var(--ko); }
.form-status.is-info { background: var(--soft); color: var(--ink-2); }

.form-success { text-align: center; padding: 16px 0 8px; }
.form-success:focus { outline: none; }
.form-success__icon { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 24px; font-weight: 800; }
.form-success h2 { font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 460px; margin: 0 auto; }
.form-success .btn { margin-top: 28px; }

/* Étoiles d'affichage (lecture seule) */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--line-strong); }
.stars svg.is-on { fill: var(--gold); }
.stars--lg svg { width: 22px; height: 22px; }

/* Témoignages (accueil) : suit la section formateur, précède la citation */
.section.testimonials { padding: 0 0 64px; }
.testimonials .section__head { margin-bottom: 40px; }
.rating-summary { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.rating-summary__score { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rating-summary__score small { font-size: 14px; font-weight: 600; color: var(--muted); }
.rating-summary__count { font-size: 14px; font-weight: 600; color: var(--muted); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.testimonial__text { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.testimonial__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.testimonial__name { font-weight: 700; color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.testimonial__meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.testimonials__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.testimonials__note { max-width: 640px; margin: 24px auto 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Administration */
.admin-page .header__inner { gap: 16px; }
.admin { padding: 56px 0 112px; }
.admin h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.admin__sub { color: var(--muted); margin-bottom: 32px; }
.admin-login { max-width: 460px; margin: 0 auto; }
.admin-login .form-card { padding: 36px 32px; }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-strong); margin-bottom: 28px; overflow-x: auto; }
.tab { position: relative; padding: 12px 0; font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--ink); }
.tab__count { display: inline-block; min-width: 22px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 12px; text-align: center; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.toolbar__spacer { flex: 1; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.segmented button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.segmented button:hover { border-color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar select.input { width: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }

.admin-list { display: grid; gap: 16px; }
.admin-empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.admin-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; display: grid; gap: 14px; }
.admin-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.admin-review__name { font-size: 16px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.admin-review__stars { color: var(--gold-deep); letter-spacing: 2px; font-size: 17px; line-height: 1; }
.admin-review__head .pill { margin-left: auto; }
.admin-review__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--muted); }
.admin-review__meta span { overflow-wrap: anywhere; }
.admin-review__text { white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); font-size: 15px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-sm); }
.admin-review__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn--danger { background: var(--ko); color: #fff; }
.btn--danger:hover { background: #a4321f; }
.btn--ok { background: var(--ok); color: #fff; }
.btn--ok:hover { background: #166e48; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--soft); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td { color: var(--ink-2); }
.admin-table .cell-message { min-width: 220px; max-width: 360px; white-space: pre-line; overflow-wrap: anywhere; }
.admin-table .cell-nowrap { white-space: nowrap; }
.admin-table caption { text-align: left; padding: 14px 16px; font-size: 13px; color: var(--muted); }

.confirm { width: min(460px, calc(100% - 32px)); margin: auto; padding: 32px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.confirm::backdrop { background: rgba(11, 19, 32, 0.5); }
.confirm h2 { font-size: 20px; margin-bottom: 10px; }
.confirm p { color: var(--muted); }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 28px; }

@media (max-width: 980px) {
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .field__meta { flex-direction: column; gap: 4px; }
  .counter { margin-left: 0; }
  .form-actions, .form-actions .btn { width: 100%; }
  .section.testimonials { padding-bottom: 44px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonial { padding: 24px 20px; }
  .testimonials__actions .btn { width: 100%; }
  .rating-summary { flex-wrap: wrap; gap: 6px 12px; border-radius: var(--radius-sm); }
  .admin { padding: 36px 0 80px; }
  .admin-review { padding: 20px; }
  .admin-review__head .pill { margin-left: 0; }
  .toolbar__spacer { display: none; }
}
