:root {
  /* marque */
  --bg:            oklch(99.4% 0.002 90);  /* fond de page, blanc cassé chaud — jamais #fff nu */
  --surface:       oklch(100% 0 0);        /* cartes, champs, surfaces surélevées */
  --fg:            oklch(0.27 0.006 60);   /* texte principal — jamais #000 */
  --muted:         oklch(0.54 0.006 60);   /* texte secondaire, légendes, labels */
  --border:        oklch(0.91 0.003 75);   /* filets, séparateurs, contours */
  --accent:        oklch(0.58 0.17 27);    /* corail unique — logo, CTA principal, pastille Jev */
  --accent-ink:    oklch(100% 0 0);        /* texte posé sur le corail */

  /* typographie */
  --font-display: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* forme */
  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  999px;
  --btn-radius:   999px;   /* boutons en pilule */
  --card-border:  1px solid var(--border);
  --shadow-card:  0 10px 30px oklch(0.27 0.02 60 / 0.07);
  --shadow-pop:   0 24px 60px oklch(0.27 0.03 60 / 0.16);

  /* rythme */
  --container: 1140px;
  --gutter:    clamp(18px, 4vw, 40px);
  --touch:     46px;   /* cible tactile minimale */

  /* dérivés (calculés, jamais saisis à la main) */
  --accent-soft:   color-mix(in oklch, var(--accent) 12%, transparent);
  --fg-soft:       color-mix(in oklch, var(--fg) 5%, transparent);
  --ok:     oklch(0.62 0.14 155);
  --warn:   oklch(0.66 0.13 72);
  --danger: oklch(0.55 0.19 25);
}
/* Hostassist — direction « Classique ». Tokens dans public/assets/tokens.css,
   composants ici. Aucun hex hors :root ; toute couleur dérive des tokens. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p { margin: 0; }

::selection { background: var(--accent-soft); color: var(--fg); }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

a { color: inherit; }
a:visited { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

:disabled { opacity: .45; }

:focus:not(:focus-visible) { outline: none; }

/* Fondations */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1; padding-bottom: clamp(56px, 7vw, 88px); }

.wrap {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted); }

.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }

.muted { color: var(--muted); }

.help { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__stack {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
  flex: 0 0 auto;
  min-height: var(--touch);
}
.brand:visited { color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand svg { display: block; color: var(--fg); }
.brand-cursor { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline: auto;
}
.site-nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--fg); }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.pill-link:visited { color: var(--fg); }
.pill-link:hover {
  background: var(--fg-soft);
  border-color: var(--fg);
  color: var(--fg);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
}
.crumbs a:hover { color: var(--fg); }
.crumbs__current {
  color: var(--fg);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumbs__sep { color: var(--muted); }

.site-header__end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.account-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 8px 4px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.account-link:visited { color: var(--fg); }
.account-link:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

.user-menu { position: relative; }
.user-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: var(--touch);
  min-height: var(--touch);
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
  color: var(--fg);
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--fg-soft); border-color: var(--fg); }
.user-menu[open] summary { background: var(--fg-soft); border-color: var(--fg); }
.burger {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  width: 14px;
}
.burger span {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: var(--fg);
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--fg-soft);
  color: var(--fg);
  font-size: 13px;
  font-weight: 800;
}
.user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  padding: 8px;
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  z-index: 110;
}
.user-menu__panel a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
}
.user-menu__panel a:hover { background: var(--fg-soft); color: var(--fg); }

/* Boutons — pilules */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 12px 26px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:visited { color: var(--accent-ink); }
.btn-primary:hover {
  background: color-mix(in oklch, var(--accent) 86%, black);
  border-color: color-mix(in oklch, var(--accent) 86%, black);
  color: var(--accent-ink);
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
}
.btn-secondary:visited { color: var(--fg); }
.btn-secondary:hover {
  background: var(--fg-soft);
  border-color: var(--fg);
  color: var(--fg);
}
.btn-secondary:active { transform: translateY(1px); }

.btn-ghost {
  border: none;
  background: none;
  padding-inline: 12px;
  color: var(--fg);
}
.btn-ghost:visited { color: var(--fg); }
.btn-ghost:hover { background: var(--fg-soft); color: var(--fg); }

.btn-arrow::after { content: "→"; margin-left: 4px; transition: transform 120ms ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Cartes */
.card {
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.agent-card[hidden] { display: none; }

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--fg);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.agent-card:visited { color: var(--fg); }
.agent-card:hover {
  transform: translateY(-2px);
  border-color: var(--fg);
  color: var(--fg);
  box-shadow: var(--shadow-card);
}

.agent-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--fg-soft);
  color: var(--fg);
  margin-bottom: 4px;
}

.agent-card__title { color: var(--fg); }

.agent-card__summary {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Étapes */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.step {
  border-top: 2px solid var(--fg);
  padding-top: 18px;
}

.step__num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.step strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Sections */
.section { padding: 64px 0; }
.section--soft {
  background: color-mix(in oklch, var(--surface) 55%, var(--bg));
  border-block: 1px solid var(--border);
}

.section-head { max-width: 60ch; }
.section-head .lead { margin-top: 14px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.notice svg { flex: 0 0 auto; margin-top: 1px; color: var(--muted); }

/* Formulaires */
.form { display: grid; gap: 22px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-aside {
  flex: 0 1 auto;
  max-width: 62%;
  min-height: var(--touch);
  padding: 8px 14px;
  font-size: 13.5px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.btn-aside[aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--fg-soft);
}

.field__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.field__req { color: var(--muted); }

.input {
  width: 100%;
  min-height: var(--touch);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  caret-color: var(--accent);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--muted); }
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Adresse — propositions de la Base Adresse Nationale */
.address-suggest { position: relative; }
.address-suggest__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  z-index: 60;
}
.address-suggest__list li {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--fg);
  cursor: pointer;
}
.address-suggest__list li:hover,
.address-suggest__list li[aria-selected="true"] { background: var(--fg-soft); }
.address-suggest__list small { margin-left: 8px; color: var(--muted); font-size: 13px; }

textarea.input {
  min-height: 150px;
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.checks {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.checks__option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
}

.checks__option:has(input:checked) { border-color: var(--fg); }

.checks__option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.checks__option input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tick {
  align-items: flex-start;
  font-weight: 700;
}

.tick span { line-height: 1.4; padding-top: 1px; }

.tick input { margin-top: 2px; }

.yesno {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.yesno__options { display: flex; gap: 10px; }

.yesno__option {
  flex: 1;
  min-height: var(--touch);
}

.yesno__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-weight: 700;
}

.yesno__option:has(input:checked) span {
  border-color: var(--fg);
  background: var(--fg-soft);
}

.yesno__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.yesno__option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.reveal[hidden] { display: none; }

.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in oklch, var(--danger) 14%, transparent); }

.field__hint { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.field__error { font-size: 13.5px; line-height: 1.5; color: var(--danger); font-weight: 600; }

.errors {
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--danger) 6%, transparent);
  color: var(--danger);
  font-size: 14.5px;
}
.errors ul { margin: 0; padding-left: 1.2em; }

/* Onglets d'authentification */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--fg-soft);
  margin-bottom: 28px;
}
.auth-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.auth-tabs a:hover { color: var(--fg); }
.auth-tabs a[aria-current="page"] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 1px 3px var(--shadow-card);
}

/* Tableau de bord */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
}
.chip:visited { color: var(--fg); }
.chip:hover { background: var(--fg-soft); border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.empty {
  margin-top: 28px;
  padding: 40px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
}

/* Indice Jev */
.jev {
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  display: grid;
  gap: 14px;
}

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

.jev__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--border);
  flex: 0 0 auto;
}
.jev.is-run .jev__dot { background: var(--accent); animation: jev-pulse 1.1s ease-in-out infinite; }
.jev.is-ok .jev__dot { background: var(--ok); }
.jev.is-warn .jev__dot { background: var(--warn); }
.jev.is-low .jev__dot { background: var(--danger); }

.jev__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
}

.jev__state { font-size: 14px; color: var(--muted); }

.jev__card {
  display: none;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.jev.is-run .jev__card,
.jev.is-ok .jev__card,
.jev.is-warn .jev__card,
.jev.is-low .jev__card { display: flex; }

.jev.is-run .jev__card {
  background: color-mix(in oklch, var(--fg) 5%, transparent);
  animation: jev-scan 1.4s ease-in-out infinite;
}

.jev.is-ok .jev__card {
  background: color-mix(in oklch, var(--ok) 28%, var(--surface));
  border-color: var(--ok);
}

.jev.is-warn .jev__card {
  background: color-mix(in oklch, var(--warn) 32%, var(--surface));
  border-color: var(--warn);
}

.jev.is-low .jev__card {
  background: color-mix(in oklch, var(--danger) 22%, var(--surface));
  border-color: var(--danger);
}

.jev__mark {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  flex: 0 0 auto;
}

.jev.is-ok .jev__mark { background: var(--ok); }
.jev.is-warn .jev__mark { background: var(--warn); }
.jev.is-low .jev__mark { background: var(--danger); }

.jev__level {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.jev__pct {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
}

.jev.is-ok .jev__level,
.jev.is-ok .jev__pct { color: var(--ok); }

.jev.is-warn .jev__level,
.jev.is-warn .jev__pct { color: var(--warn); }

.jev.is-low .jev__level,
.jev.is-low .jev__pct { color: var(--danger); }

.jev__lecture {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 88%, var(--fg) 4%);
}

.jev__lecture[hidden] { display: none; }

.jev.is-ok .jev__lecture { border-color: color-mix(in oklab, var(--ok) 35%, var(--border)); }
.jev.is-warn .jev__lecture { border-color: color-mix(in oklab, var(--warn) 35%, var(--border)); }
.jev.is-low .jev__lecture { border-color: color-mix(in oklab, var(--danger) 35%, var(--border)); }

.jev__lecture-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.jev.is-ok .jev__lecture-kicker { color: var(--ok); }
.jev.is-warn .jev__lecture-kicker { color: var(--warn); }
.jev.is-low .jev__lecture-kicker { color: var(--danger); }

.jev__lecture-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
}

.jev__lecture-detail {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.jev__motifs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.jev__motifs[hidden] { display: none; }

.jev__motifs legend {
  font-weight: 800;
  padding: 0;
  margin-bottom: 4px;
}

.jev__motif {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.jev__motif:has(input:checked) { border-color: var(--fg); }

.jev__motif input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--fg);
}

.jev__motif strong { display: block; }

.jev__note { font-size: 13px; color: var(--muted); }

@keyframes jev-pulse { 50% { opacity: .45; } }

@keyframes jev-scan { 50% { opacity: .4; } }

/* Cadre du GIF tutoriel */
.gif-frame {
  position: relative;
  z-index: 1;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transform-origin: top right;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gif-frame:hover,
  .gif-frame:focus-within {
    z-index: 40;
    transform: scale(1.9);
    box-shadow: var(--shadow-card);
  }

  .gif-frame--full:hover,
  .gif-frame--full:focus-within {
    transform: scale(1.35);
  }

  .gif-frame.gif-frame--hero:hover,
  .gif-frame.gif-frame--hero:focus-within {
    transform: none;
    box-shadow: none;
  }
}

.gif-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--fg-soft);
}
.gif-frame__dot { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--border); }
.gif-frame__title {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gif-frame__screen { aspect-ratio: 16 / 9; }
.gif-frame__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-frame--full .gif-frame__screen { aspect-ratio: auto; }
.gif-frame--full .gif-frame__screen img { height: auto; object-fit: contain; }

.gif-frame figcaption,
.gif-frame__caption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.gif-hero {
  width: 100%;
  margin: 22px 0 0;
}

.gif-hero figcaption { font-size: 15px; }

.gif-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: stretch;
}

.gif-row .field { height: 100%; }

.gif-row textarea.input { flex: 1; min-height: 180px; }

.gif-row .gif-frame { width: 100%; max-width: 300px; align-self: start; }

.side-note {
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 16px 18px;
}

.side-note[hidden] { display: none; }

#url-liste { margin-top: 16px; }

.side-note p { margin: 0; }

.side-note p + p { margin-top: 10px; }

.side-note__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-note ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.side-note li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
}

.side-note li span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.side-note li span::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--border);
  flex: none;
}

.side-note li em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--fg); white-space: nowrap; }

.side-note li.is-ok span::before { background: var(--ok); }

.side-note li.is-miss span::before { background: var(--warn); }

.side-note__state { margin-top: 12px; font-size: 13px; color: var(--muted); }

.side-note.is-run { background: color-mix(in oklch, var(--accent) 8%, var(--surface)); }

.gif-row:has(.side-note) { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); }

.gif-row:has(.side-note) textarea.input { min-height: 280px; }

.slides { margin-top: 28px; display: grid; gap: 16px; }

.slides h2 { font-size: 22px; }

.slides__slide { display: none; margin: 0; }

.slides__slide.is-on {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.slides__frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--fg-soft);
  overflow: hidden;
}

.slides__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 200ms ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .slides__frame:hover img { transform: scale(1.12); }
}

.slides__slide figcaption {
  color: var(--fg);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.35;
}

.slides__slide .meta {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.slides__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slides__dots { display: flex; gap: 4px; }

.slides__dots button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
}

.slides__dots button.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }


.tour-modal {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(20px, 4vw, 48px);
  border: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: auto;
}

.tour-modal:not([open]) { display: none; }

.tour-modal::backdrop { background: var(--bg); }

.tour-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto 20px;
}

.tour-modal__bar h2 { font-size: clamp(28px, 3.4vw, 42px); }

.tour-modal .slides { width: min(960px, 100%); margin: 0 auto; }

.tour-modal .slides--stack { width: min(1180px, 100%); }

.slides--stack .slides__slide.is-on {
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.slides--stack .slides__frame {
  aspect-ratio: 16 / 9;
  max-height: min(68vh, 720px);
}

.slides--stack .slides__slide figcaption {
  max-width: 62ch;
  font-size: clamp(18px, 2.2vw, 24px);
}

.tour-modal__copy {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.tour-modal__copy h3 { font-size: 20px; margin-top: 8px; }

.tour-modal__copy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

.tour-modal__copy p { margin: 0; }

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.title-row h1 { margin: 0; }

.title-row .btn-secondary { flex: none; }

.when-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.when-row .lead { margin-top: 0; }

.tuto-marks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tuto;
  display: grid;
  gap: 8px;
}

.tuto-marks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tuto-marks li::before {
  content: counter(tuto);
  counter-increment: tuto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  flex: none;
}

/* Réponse rédigée */
.output-stack { display: grid; gap: 16px; margin-top: 36px; }

.output-stack .output-card { margin-top: 0; }

.output-card {
  margin-top: 36px;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 26px;
  display: grid;
  gap: 16px;
}

.output-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.output-card__top h2 { font-size: 22px; }

.output-card__text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  font-size: 16px;
  line-height: 1.65;
}

.tool__setup[hidden],
.tool__answer[hidden] { display: none; }

.tool__answer {
  display: grid;
  gap: 28px;
}

.tool__answer h1 { font-size: clamp(32px, 4vw, 48px); }

.tool__answer .output-stack { margin-top: 0; gap: 24px; }

.tool__answer .output-card { padding: 36px 40px; }

.tool__answer .output-card__top h2 { font-size: clamp(24px, 3vw, 32px); }

.tool__answer .output-card__text {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.55;
}

.tool__answer #agent-retry { justify-self: start; }

.tool--annonce .tool__setup {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
  column-gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.tool--annonce .tool__setup[hidden] { display: none; }
.tool--annonce .tool__setup > :not(.annonce-side) { grid-column: 1; }
.annonce-side {
  grid-column: 2;
  grid-row: 1 / span 8;
  margin: 0;
}
.annonce-side h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}
.annonce-side h2 + p {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 14px;
  max-width: 36ch;
}
.annonce-side ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.annonce-side li {
  font-size: 15px;
  line-height: 1.35;
}
.annonce-side li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--fg);
  transform: translateY(-1px);
}
.annonce-result { max-width: 760px; }
.annonce-grade {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 0;
}
.annonce-grade__num {
  font-family: var(--font-mono);
  font-size: clamp(72px, 12vw, 96px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 0.85;
}
.annonce-grade__sur {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
}
.annonce-result.is-ok .annonce-grade__num { color: var(--ok); }
.annonce-result.is-warn .annonce-grade__num { color: var(--warn); }
.annonce-result.is-low .annonce-grade__num { color: var(--danger); }
.annonce-read {
  margin: 18px 0 0;
  max-width: 16ch;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.annonce-meta,
.annonce-limit {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--muted);
}
.annonce-meta a {
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.annonce-meta a:hover { color: var(--fg); }
.annonce-block { margin-top: 40px; }
.annonce-block h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
}
.annonce-block > p {
  margin: 0 0 4px;
  max-width: 62ch;
  color: var(--muted);
}
.annonce-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.annonce-list li {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.annonce-list li:last-child { border-bottom: 1px solid var(--border); }
.annonce-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.annonce-list h3 {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.annonce-etat {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.annonce-list li.is-ok .annonce-etat { color: color-mix(in oklch, var(--ok) 70%, black); }
.annonce-list li.is-warn .annonce-etat { color: color-mix(in oklch, var(--warn) 62%, black); }
.annonce-list li.is-low .annonce-etat { color: var(--danger); }
.annonce-constate,
.annonce-conseil {
  margin: 0;
  max-width: 68ch;
}
.annonce-constate { color: var(--muted); }
.annonce-phrases { margin-top: 40px; }
.annonce-phrases__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.annonce-phrases h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
}
.annonce-phrases__text {
  white-space: pre-wrap;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.6;
}

.output-card__foot { display: flex; flex-direction: column; gap: 8px; }

/* Livret d'accueil */
.tool.tool--livret { width: min(1160px, calc(100% - (var(--gutter) * 2))); }

.livret { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }

.livret__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.livret__place { display: grid; gap: 6px; min-width: 0; }

.livret__address {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.livret__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.livret__nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.livret__nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.livret__nav button:hover { border-color: var(--fg); background: var(--fg-soft); }
.livret__nav button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.livret__nav button[aria-pressed="true"]:hover {
  border-color: color-mix(in oklch, var(--accent) 86%, black);
  background: color-mix(in oklch, var(--accent) 86%, black);
  color: var(--accent-ink);
}
.livret__nav svg { width: 16px; height: 16px; color: var(--accent); }
.livret__nav button[aria-pressed="true"] svg { color: var(--accent-ink); }

.livret-card[hidden],
.livret__column[hidden] { display: none; }

.livret[data-filter]:not([data-filter="tous"]) .livret__columns { grid-template-columns: minmax(0, 1fr); }
.livret[data-filter]:not([data-filter="tous"]) .livret__column-title { display: none; }

.livret__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.livret__column { display: grid; gap: 20px; min-width: 0; }

.livret__column-title { padding-left: 4px; }

.livret-card {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 96px;
}

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

.livret-card__head h2 { flex: 1; margin: 0; font-size: 21px; }

.livret-card__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.livret-card__icon svg { display: block; width: 24px; height: 24px; }

.livret-card__copy { min-height: 34px; padding: 6px 10px; color: var(--muted); }
.livret-card__copy:hover { color: var(--fg); }

.livret-card__intro {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--fg-soft);
  font-size: 15px;
  line-height: 1.5;
}

.livret-group { display: grid; gap: 10px; }

.livret-group + .livret-group { padding-top: 16px; border-top: 1px solid var(--border); }

.livret-group__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.livret-group__empty,
.livret-group__note,
.livret-card__source { margin: 0; font-size: 14px; color: var(--muted); }

.livret-list { display: grid; margin: 0; padding: 0; list-style: none; }

.livret-item {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.livret-item:first-child { padding-top: 2px; border-top: 0; }
.livret-item:last-child { padding-bottom: 0; }

.livret-item__main { display: grid; gap: 8px; min-width: 0; }

.livret-item__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.livret-item__address { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

.livret-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.livret-chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--fg-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.livret-chip--walk { background: var(--accent-soft); color: var(--accent); }
.livret-chip--rating span { color: var(--warn); }

.livret-item__actions { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }

.livret-item__phone { font-size: 14px; font-weight: 600; color: var(--fg); }

.livret-hours summary {
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.livret-hours summary:hover { color: var(--fg); }

.livret-hours dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 10px 0 0;
  font-size: 14px;
}
.livret-hours dt { color: var(--muted); }
.livret-hours dd { margin: 0; }

.livret__foot { margin: 0; }

@media (max-width: 920px) {
  .livret__columns { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .livret__head,
  .livret-card { padding: 18px; }
  .livret__actions { width: 100%; flex-direction: column; }
  .livret-item__actions .btn-secondary,
  .livret-card__head .livret-card__copy { width: auto; }
}

/* Pied de page */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.site-foot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 46px;
}

.site-foot__name {
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
}

.site-foot__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

.site-foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}

.site-foot__links a:hover { color: var(--fg); }

/* Bandeau cookie */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  padding: 14px var(--gutter);
  background: var(--fg);
  color: var(--bg);
}
.cookie.is-on { display: block; }
.cookie.is-out { opacity: 0; transition: opacity 200ms ease; }
.cookie__row {
  width: min(var(--container), 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie p { margin: 0; font-size: 14px; }
.cookie .btn-secondary {
  border-color: color-mix(in oklch, var(--bg) 40%, var(--fg));
  color: var(--bg);
  background: transparent;
}
.cookie .btn-secondary:hover {
  background: color-mix(in oklch, var(--bg) 12%, transparent);
  border-color: var(--bg);
  color: var(--bg);
}

/* Héros */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__aside { display: grid; gap: 14px; }

/* Exemple de rédaction (accueil) */
.sample {
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sample__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--fg-soft);
}

.sample__head h2 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }

.sample__head .meta { font-size: 11.5px; }

.sample__col { padding: 18px 20px; }
.sample__col + .sample__col { border-top: 1px solid var(--border); }

.sample__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample__text { font-size: 14.5px; line-height: 1.6; color: var(--fg); }
.sample__text--muted { color: var(--muted); }

/* Bandeau CTA final */
.cta-band { padding: 72px 0; }

.cta-band__box {
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 5vw, 56px);
  max-width: 560px;
}

.cta-band__box h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cta-band__box .lead { margin-top: 12px; font-size: 16px; }

/* Auth */
.auth {
  width: min(460px, 100%);
  margin: clamp(32px, 6vw, 72px) auto;
}

.auth__card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.auth h1 { font-size: clamp(28px, 3.4vw, 42px); }

.auth .lead { margin-top: 12px; font-size: 15.5px; }

.auth form { margin-top: 26px; }

.auth-note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.auth-note a { color: var(--fg); font-weight: 700; }
.auth-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Légal */
.legal {
  width: min(68ch, 100%);
  margin: clamp(32px, 6vw, 72px) auto;
  font-size: 16px;
  line-height: 1.7;
}
.legal h1 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 28px; }
.legal h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 40px 0 10px;
}
.legal p + p { margin-top: 10px; }
.legal a { color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--fg); }
.legal strong { font-weight: 800; }

/* Outil */
.tool {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 72px;
}
.tool--wide { width: min(960px, 100%); }

.tool h1 { font-size: clamp(28px, 3.4vw, 42px); }

.tool .lead { margin-top: 14px; }

.advice {
  margin-top: 20px;
  padding: 16px 18px;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.advice .lead { margin: 0; max-width: 68ch; font-size: 16px; line-height: 1.55; }

.form-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.advice + .lead { margin-top: 22px; }

.tool__setup > .form { margin-top: 26px; }

.livret-offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
  margin-top: 22px;
}

.livret-offer__col { display: grid; gap: 8px; align-content: start; }

.livret-offer__label {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.livret-offer__card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
}

.livret-offer__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
}

.livret-offer__icon svg { display: block; width: 28px; height: 28px; }

.livret-offer__card p { margin: 0; min-width: 0; }

.livret-offer__card strong { display: block; font-size: 15px; line-height: 1.3; }

.livret-offer__card p span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 600px) {
  .livret-offer { grid-template-columns: 1fr; }
}

.tool form { margin-top: 32px; }

.missing { padding: 72px 0; }

.file-drop {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 28px 16px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 15px;
}

.file-drop:hover { border-color: var(--fg); }

.perf { margin-top: 36px; display: grid; gap: 28px; min-width: 0; }

.perf__block { min-width: 0; }

.perf__block h2 { font-size: 28px; }

.perf__charts {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.perf__chart {
  margin: 0;
  padding: 16px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}

.perf__chart figcaption { font-weight: 800; margin-bottom: 12px; }

.perf__donut { text-align: center; }

.perf__donut svg { width: 140px; height: 140px; }

.donut__track, .donut__value { fill: none; stroke-width: 12; }

.donut__track { stroke: var(--border); }

.donut__value { stroke: var(--accent); }

.donut__label {
  fill: var(--fg);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  text-anchor: middle;
}

.time { display: flex; align-items: stretch; gap: 8px; min-width: 0; }

.time__y {
  flex: none;
  width: 44px;
  height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.time__scroll { overflow-x: auto; min-width: 0; flex: 1; padding-bottom: 12px; }

.bars { width: 100%; }

.bars__months { display: flex; margin-bottom: 8px; }

.bars__months span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.bars__cols {
  display: flex;
  align-items: end;
  height: 140px;
}

.bars__col {
  flex: 1 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  height: 100%;
  min-width: 56px;
}

.bars__bar {
  display: block;
  width: 100%;
  max-width: 36px;
  border-radius: 8px 8px 2px 2px;
  background: var(--fg);
}

.bars__value, .bars__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.bars__value { margin-bottom: 4px; }

.bars__label { margin-top: 6px; white-space: nowrap; }

.perf__curve svg { display: block; max-width: none; height: 148px; }

.curve__axis, .curve__grid { stroke: var(--border); stroke-width: 1; }

.curve__line { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }

.curve__date { fill: var(--muted); font-family: var(--font-mono); font-size: 12px; }

.perf__curve .meta, .perf__chart .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.split {
  display: flex;
  height: 18px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--border);
}

.split__net { background: var(--fg); }

.split__fee { background: var(--muted); }

.perf__kpis {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.perf__kpis li {
  padding: 14px 16px;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
}

.perf__kpis span { display: block; font-size: 13px; color: var(--muted); }

.perf__kpis strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.perf__table { margin-top: 16px; overflow-x: auto; }

.perf__table table { width: 100%; border-collapse: collapse; font-size: 14px; }

.perf__table th, .perf__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.perf__table th { font-size: 12px; color: var(--muted); font-weight: 700; }

.analyse {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in oklch, var(--bg) 72%, transparent);
}

.analyse__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: min(360px, 100%);
  padding: 22px 26px;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--accent) 45%, var(--border));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, color-mix(in oklch, var(--accent) 12%, var(--surface)), var(--surface) 42%);
  box-shadow: var(--shadow-card);
}

.analyse__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: analyse-scan 1.8s ease-in-out infinite;
}

.analyse__card p { margin: 0; font-weight: 700; letter-spacing: .01em; }

.analyse__orb {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 20%, var(--accent) 55%, transparent 78%);
  -webkit-mask: radial-gradient(circle, transparent 52%, black 54%);
  mask: radial-gradient(circle, transparent 52%, black 54%);
  animation: analyse-spin 1.15s linear infinite;
}

.file-drop.is-chosen { border-style: solid; border-color: var(--fg); }

@keyframes analyse-spin { to { transform: rotate(360deg); } }

@keyframes analyse-scan {
  0% { top: 0; opacity: 0; }
  18% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Bouton copié */
.btn-copied { border-color: var(--ok) !important; background: var(--ok) !important; color: var(--surface) !important; }

/* Divers */
.page-head { padding-top: clamp(32px, 5vw, 56px); }
.page-head .lead { margin-top: 14px; max-width: 62ch; }

.dash-grid { margin-top: 36px; }

/* Responsive */
@media (max-width: 920px) {
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .site-nav { display: none; }
  .gif-row { grid-template-columns: 1fr; }
  .tool--annonce .tool__setup { grid-template-columns: 1fr; }
  .tool--annonce .annonce-side { grid-column: 1; grid-row: auto; }
  .gif-row .gif-frame { max-width: 420px; }
  .gif-row textarea.input { min-height: 150px; }
  .slides__slide.is-on { gap: 16px; }
  .slides__slide figcaption { font-size: 18px; }
}
@media (max-width: 759px) {
  .tool.tool--annonce { padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-header__stack { min-height: 64px; }
  .agent-grid { grid-template-columns: 1fr; }
  .site-foot__bar { align-items: flex-start; flex-direction: column; gap: 0; }
  .btn-primary,
  .btn-secondary,
  .btn-ghost { width: 100%; }
  .slides__nav .btn-secondary,
  .title-row .btn-secondary,
  .annonce-phrases__top .btn-secondary { width: auto; }
  .slides__slide.is-on { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .auth-tabs { grid-template-columns: 1fr; }
  .perf__charts { grid-template-columns: 1fr; }
  .perf__kpis { grid-template-columns: 1fr; }
  .output-card { padding: 20px; }
  .tool__answer .output-card { padding: 22px; }
}

@media (min-width: 1400px) {
  .agent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Accueil — litiges */
.lp-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 72px); }
.lp-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.lp-hero h1 { margin: 0 0 18px; }
.lp-hero .lead { margin-bottom: 28px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-section { padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid var(--border); }
.lp-section--tight { padding-block: clamp(28px, 4vw, 40px); }
.lp-stack { display: flex; flex-direction: column; gap: 20px; }
.lp-litiges {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.lp-head { max-width: 46ch; margin-bottom: 36px; }
.lp-head .lead { margin-top: 14px; }
.lp-chance,
.lp-side {
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.lp-side h3 { margin-bottom: 10px; }
.lp-side p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-chance__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lp-ring { position: relative; width: 58px; height: 58px; flex: none; }
.lp-ring svg { width: 58px; height: 58px; transform: rotate(-90deg); }
.lp-ring circle { fill: none; stroke-width: 7; }
.lp-ring__track { stroke: var(--border); }
.lp-ring__val { stroke: var(--ok); stroke-dasharray: 151; stroke-dashoffset: 38; }
.lp-ring--no .lp-ring__val { stroke: var(--danger); stroke-dashoffset: 98; }
.lp-ring__score {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.lp-criteria,
.lp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-criteria li,
.lp-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.lp-mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.lp-mark--ok { background: color-mix(in oklch, var(--ok) 18%, transparent); color: var(--fg); }
.lp-mark--warn { background: color-mix(in oklch, var(--warn) 22%, transparent); color: var(--fg); }
.lp-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.lp-col--before { background: var(--fg-soft); }
.lp-col--after { background: var(--surface); border-color: var(--fg); box-shadow: var(--shadow-card); }
.lp-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-col--after .lp-tag { color: var(--fg); }
.lp-out {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.lp-col--before .lp-out { color: var(--muted); }
.lp-growth {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.lp-growth__mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}
.lp-growth p { margin: 0; font-size: 15px; font-weight: 700; }
.lp-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-top: 28px;
}
.lp-col--chance {
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.lp-col--chance h3 { font-size: 17px; }
.lp-col--chance p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-card--soon {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}

.or-split {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 8px;
  color: var(--muted);
  font-weight: 700;
}
.or-split::before,
.or-split::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.lp-stat { border-top: 2px solid var(--fg); padding-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lp-stat__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  color: var(--fg);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.lp-card:visited { color: var(--fg); }
.lp-card:hover { transform: translateY(-2px); border-color: var(--fg); color: var(--fg); }
.lp-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
}
.lp-card h3 { font-size: 17px; }
.lp-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.lp-node {
  border: var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.lp-node--final { border-color: var(--fg); }
.lp-node__n {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-node h3 { margin: 12px 0 8px; font-size: 18px; }
.lp-node p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-arrow { display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.lp-close { text-align: center; }
.lp-close .wrap { max-width: 660px; }
.lp-close .lead { margin: 16px auto 28px; }
@media (max-width: 920px) {
  .lp-split,
  .lp-litiges,
  .lp-compare,
  .lp-trio,
  .lp-flow { grid-template-columns: 1fr; }
  .lp-arrow { transform: rotate(90deg); padding: 2px 0; }
}

.canva-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: min(880px, calc(100vh - 24px));
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-pop);
}
.canva-dialog::backdrop { background: oklch(0.27 0.02 60 / 0.45); }
.canva-dialog form {
  display: flex;
  flex-direction: column;
  max-height: min(880px, calc(100vh - 24px));
}
.canva-dialog__bar,
.canva-dialog__scroll { padding-inline: 22px; }
.canva-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}
.canva-dialog__bar h2 { margin: 0; font-size: 22px; }
.canva-dialog__close {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 8px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.canva-dialog__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 8px;
}
.canva-dialog__address { margin: 0; font-weight: 800; line-height: 1.35; }
.canva-dialog [hidden] { display: none !important; }
.canva-block {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.canva-block.is-open {
  border-color: var(--fg);
  background: var(--bg);
}
.canva-block__body,
.canva-upsells,
.canva-nested { display: grid; gap: 10px; }
.canva-block__body {
  margin: 2px 4px 4px 8px;
  padding: 4px 4px 4px 14px;
}
.canva-lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.canva-kicker {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.canva-list { margin: 0; padding-left: 1.15em; display: grid; gap: 4px; font-weight: 700; }
.canva-block.is-open .checks__option { background: var(--surface); }
.canva-upsell { display: grid; gap: 8px; }
.canva-price-field { display: grid; gap: 4px; margin-left: 14px; }
.canva-price-row { display: flex; align-items: center; gap: 8px; }
.canva-price { width: 120px; flex: 0 0 auto; min-height: 40px; }
.canva-euro { font-weight: 800; font-size: 18px; }
.canva-dialog textarea.input { min-height: 132px; }
.canva-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.canva-scale label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.canva-scale input { position: absolute; opacity: 0; }
.canva-scale label:has(input:checked) { border-color: var(--fg); }
.canva-scale label:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.canva-scale__hint {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: var(--muted);
}
.canva-dot { width: 16px; height: 16px; border-radius: 50%; }
.canva-dot--ok { background: var(--ok); }
.canva-dot--warn { background: var(--warn); }
.canva-dot--danger { background: var(--danger); }
.canva-note {
  margin: 0 22px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--fg);
  display: grid;
  gap: 6px;
}
.canva-note strong { font-size: 16px; }
.canva-note p { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.canva-dialog__status { margin: 0; padding: 0 22px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.canva-dialog__status:empty { display: none; }
.canva-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
  .canva-dialog__actions { flex-direction: column; }
  .canva-price { width: min(140px, 100%); }
}
