/* /tools/eeat-checker — même palette et typographie que le Labo (/tools) via
   html.site-home-theme ; toutes les règles sont scopées sous .eeat. */
.eeat {
  --eeat-paper: var(--site-home-bg, oklch(.99 .003 80));
  --eeat-card: var(--site-home-surface, oklch(.998 .002 80));
  --eeat-ink: var(--site-home-heading, oklch(.20 .018 250));
  --eeat-text: var(--site-home-text, oklch(.34 .014 250));
  --eeat-muted: var(--site-home-muted, oklch(.48 .012 250));
  --eeat-line: var(--site-home-border, oklch(.86 .010 80));
  --eeat-accent: var(--site-home-accent, oklch(.43 .16 25));
  --eeat-accent-dark: var(--site-home-accent-dark, oklch(.34 .14 25));
  --eeat-accent-soft: color-mix(in oklch, var(--eeat-accent) 8%, transparent);
  --eeat-good: oklch(.47 .12 155);
  --eeat-mid: oklch(.58 .14 65);
  --eeat-bad: oklch(.52 .18 25);
  --eeat-serif: var(--font-serif-stack, 'Playfair Display', Georgia, serif);
  --eeat-sans: var(--font-sans-stack, system-ui, -apple-system, 'Segoe UI', sans-serif);
  --eeat-width: min(1140px, calc(100% - 48px));

  background: var(--eeat-paper);
  color: var(--eeat-text);
  font-family: var(--eeat-sans);
  min-height: 70vh;
  padding-bottom: 72px;
}
.eeat *, .eeat *::before, .eeat *::after { box-sizing: border-box; }
.eeat [hidden] { display: none !important; }
.eeat :is(a, button, input, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--eeat-accent); outline-offset: 3px; }
/* Remises à zéro sans spécificité ajoutée : les règles de composant l'emportent. */
.eeat :where(h2, h3, h4) { margin: 0; text-align: left; }
.eeat :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.eeat :where(li) { padding: 0; }
.eeat :where(p) { margin: 0; }

/* ── Hero ───────────────────────────────────────── */
.eeat-hero { width: var(--eeat-width); margin: 0 auto; padding: 36px 0 44px; border-bottom: 2px solid var(--eeat-ink); }
.eeat-eyebrow { display: inline-block; margin-bottom: 22px; padding: 6px 16px; border-radius: 100px; background: var(--eeat-accent-soft); color: var(--eeat-accent); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eeat-hero h1 { margin: 0 0 18px; color: var(--eeat-ink); font: 700 clamp(2.5rem, 5vw, 4.15rem)/1.1 var(--eeat-serif); letter-spacing: -.03em; text-align: left; }
.eeat-hero h1 em { color: var(--eeat-accent); font-style: normal; white-space: nowrap; }
.eeat-lead { max-width: 64ch; color: var(--eeat-text); font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.7; }
.eeat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.eeat-chips li { padding: 7px 16px; border: 1px solid var(--eeat-line); border-radius: 6px; background: var(--eeat-card); color: var(--eeat-muted); font-size: .8rem; }
.eeat-chips strong { color: var(--eeat-ink); font-weight: 750; }

/* ── Sections ───────────────────────────────────── */
.eeat-section { width: var(--eeat-width); margin: 0 auto; padding-top: 32px; }
.eeat-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.eeat h2 { color: var(--eeat-ink); font: 700 clamp(1.45rem, 2.2vw, 1.8rem)/1.2 var(--eeat-serif); letter-spacing: -.01em; }
.eeat h2:focus { outline: none; }
.eeat-kicker { margin-bottom: 8px; color: var(--eeat-accent); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eeat-small { color: var(--eeat-muted); font-size: .78rem; line-height: 1.6; }
.eeat-muted { color: var(--eeat-muted); }
.eeat-card { border: 1px solid var(--eeat-line); border-radius: 6px; background: var(--eeat-card); }

/* ── Formulaire ─────────────────────────────────── */
.eeat-form { padding: 24px; }
.eeat-tabs { display: inline-flex; gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--eeat-line); border-radius: 8px; background: var(--eeat-paper); }
.eeat-tab { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 5px; background: transparent; color: var(--eeat-text); font: 600 .88rem/1.2 var(--eeat-sans); cursor: pointer; }
.eeat-tab:hover { color: var(--eeat-ink); background: color-mix(in oklch, var(--eeat-ink) 5%, transparent); }
.eeat-tab[aria-selected="true"] { background: var(--eeat-accent); color: var(--eeat-card); }
.eeat-label { display: block; margin-bottom: 8px; color: var(--eeat-ink); font-size: .8rem; font-weight: 650; }
.eeat-panel :is(textarea, input) { display: block; width: 100%; margin: 0; border: 1px solid var(--eeat-line); border-radius: 4px; background: var(--eeat-card); color: var(--eeat-ink); font: 400 1rem/1.55 var(--eeat-sans); padding: 12px 14px; box-shadow: none; }
.eeat-panel textarea { min-height: 220px; resize: vertical; }
.eeat-panel input { height: 50px; }
.eeat-panel :is(textarea, input)::placeholder { color: var(--eeat-muted); opacity: 1; }
.eeat-panel :is(textarea, input):focus-visible { border-color: var(--eeat-accent); }
.eeat-panel .eeat-small { margin-top: 10px; }
.eeat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.eeat-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--eeat-accent); border-radius: 6px; background: var(--eeat-accent); color: var(--eeat-card); font: 700 .9rem/1.3 var(--eeat-sans); cursor: pointer; transition: background .15s; }
.eeat-button:hover { background: var(--eeat-accent-dark); border-color: var(--eeat-accent-dark); }
.eeat-button:disabled { opacity: .6; cursor: wait; }
.eeat-status { color: var(--eeat-muted); font-size: .88rem; line-height: 1.5; }
.eeat-status:empty { display: none; }
.eeat-status.is-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--eeat-line); border-top-color: var(--eeat-accent); border-radius: 50%; animation: eeat-spin .8s linear infinite; }
@keyframes eeat-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .eeat-status.is-busy::before { animation: none; } }
.eeat-error { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--eeat-bad); background: color-mix(in oklch, var(--eeat-bad) 7%, var(--eeat-card)); color: var(--eeat-accent-dark); line-height: 1.6; }

/* ── Résultats ──────────────────────────────────── */
.eeat-results { margin-top: 40px; border-top: 2px solid var(--eeat-ink); }
.eeat-block { margin-top: 34px; }
.eeat-block > h3 { margin-bottom: 14px; color: var(--eeat-ink); font: 700 1.25rem/1.3 var(--eeat-serif); }
.eeat h4 { margin-bottom: 10px; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.eeat-good { color: var(--eeat-good); }
.eeat-bad { color: var(--eeat-bad); }

/* Échelle de score commune (data-score="1" … "5") */
.eeat [data-score] { --eeat-score: var(--eeat-muted); }
.eeat [data-score="1"] { --eeat-score: var(--eeat-bad); }
.eeat [data-score="2"] { --eeat-score: oklch(.6 .16 45); }
.eeat [data-score="3"] { --eeat-score: var(--eeat-mid); }
.eeat [data-score="4"] { --eeat-score: oklch(.56 .12 150); }
.eeat [data-score="5"] { --eeat-score: var(--eeat-good); }

.eeat-verdict { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: 26px 28px; border: 1px solid var(--eeat-line); border-left: 6px solid var(--eeat-score); border-radius: 6px; background: var(--eeat-card); }
.eeat-verdict-score { min-width: 104px; color: var(--eeat-score); font: 700 4.2rem/1 var(--eeat-serif); letter-spacing: -.04em; }
.eeat-verdict-score small { margin-left: 2px; color: var(--eeat-muted); font-size: 1.3rem; letter-spacing: 0; }
.eeat-verdict-body h3 { margin-bottom: 10px; color: var(--eeat-ink); font: 700 1.35rem/1.3 var(--eeat-serif); }
.eeat-verdict-body > p:not(.eeat-ymyl) { max-width: 75ch; line-height: 1.7; }
.eeat-ymyl { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 100px; font-size: .8rem; font-weight: 650; line-height: 1.5; }
.eeat-ymyl[data-ymyl="yes"] { background: color-mix(in oklch, var(--eeat-mid) 14%, var(--eeat-card)); color: oklch(.42 .1 65); }
.eeat-ymyl[data-ymyl="no"] { background: color-mix(in oklch, var(--eeat-good) 10%, var(--eeat-card)); color: var(--eeat-good); }

.eeat-pill { display: inline-block; padding: 4px 11px; border-radius: 100px; background: color-mix(in oklch, var(--eeat-ink) 7%, var(--eeat-card)); color: var(--eeat-ink); font-size: .76rem; font-weight: 700; line-height: 1.4; }
.eeat-pill:empty { display: none; }
.eeat-pill[data-score]:not([data-score="0"]) { background: var(--eeat-score); color: var(--eeat-card); }
.eeat-pill[data-tone="good"] { background: color-mix(in oklch, var(--eeat-good) 12%, var(--eeat-card)); color: var(--eeat-good); }
.eeat-pill[data-tone="mid"] { background: color-mix(in oklch, var(--eeat-mid) 15%, var(--eeat-card)); color: oklch(.42 .1 65); }
.eeat-pill[data-tone="bad"] { background: color-mix(in oklch, var(--eeat-bad) 11%, var(--eeat-card)); color: var(--eeat-bad); }

.eeat-disclosure > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--eeat-ink); font-weight: 650; font-size: .9rem; cursor: pointer; list-style: none; }
.eeat-disclosure > summary::-webkit-details-marker { display: none; }
.eeat-disclosure > summary::after { content: "▾"; margin-left: auto; color: var(--eeat-muted); transition: transform .15s; }
.eeat-disclosure[open] > summary::after { transform: rotate(180deg); }
.eeat-disclosure-body { padding: 0 18px 18px; }
.eeat-source-text { max-height: 380px; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--eeat-line); border-radius: 4px; background: var(--eeat-paper); font-size: .88rem; line-height: 1.7; }
.eeat-source-text p + p { margin-top: .75rem; }
.eeat-disclosure-body .eeat-small { margin-top: 10px; }

.eeat-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.eeat-facts > div { padding: 14px 16px; }
.eeat-facts dt, .eeat-rows dt { margin-bottom: 4px; color: var(--eeat-muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eeat-facts dd { margin: 0; color: var(--eeat-ink); font-weight: 650; overflow-wrap: anywhere; }
.eeat-facts dd.is-missing { color: var(--eeat-muted); font-weight: 500; }
.eeat-note { padding: 12px 16px; border-left: 3px solid var(--eeat-accent); border-radius: 0 4px 4px 0; background: var(--eeat-accent-soft); line-height: 1.65; }
.eeat-block > .eeat-note, .eeat-block > .eeat-disclosure { margin-top: 12px; }
.eeat-links li { padding: 6px 0; border-bottom: 1px solid var(--eeat-line); font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.eeat-links li:last-child { border-bottom: 0; }
.eeat-links strong { color: var(--eeat-ink); }

.eeat-promise, .eeat-quality { padding: 20px 22px; }
.eeat-promise-top, .eeat-quality-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; color: var(--eeat-ink); }
.eeat-rows { display: grid; gap: 14px; margin: 0; }
.eeat-rows dd { margin: 0; line-height: 1.65; }
.eeat-quality > p { margin-bottom: 12px; line-height: 1.65; }

.eeat-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.eeat-two-cols > .eeat-card { padding: 18px 20px; }
.eeat-list li { position: relative; padding: 3px 0 3px 22px; font-size: .9rem; line-height: 1.6; }
.eeat-list li::before { position: absolute; left: 0; top: 3px; font-weight: 700; }
.eeat-list-good li::before { content: "✓"; color: var(--eeat-good); }
.eeat-list-bad li::before { content: "✗"; color: var(--eeat-bad); }
.eeat-list-gaps li::before { content: "–"; color: var(--eeat-bad); }

.eeat-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.eeat-dim { padding: 18px 20px; }
.eeat-dim-name { color: var(--eeat-muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.eeat-dim-score { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.eeat-dim-score strong { color: var(--eeat-score); font: 700 2rem/1 var(--eeat-serif); }
.eeat-dim-score span { color: var(--eeat-muted); font-size: .84rem; }
.eeat-bar { height: 6px; margin-bottom: 14px; border-radius: 3px; background: color-mix(in oklch, var(--eeat-ink) 8%, transparent); overflow: hidden; }
.eeat-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--eeat-score); }
.eeat-dim-reasoning { margin-bottom: 12px; font-size: .88rem; line-height: 1.6; }
.eeat-dim h4 { margin: 12px 0 4px; }
.eeat-dim .eeat-list li { font-size: .84rem; }
.eeat-evidence { display: inline-flex; margin-top: 2px; padding: 2px 0; border: 0; background: none; color: var(--eeat-accent); font: 650 .76rem/1.4 var(--eeat-sans); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.eeat-evidence:hover { color: var(--eeat-accent-dark); }

.eeat-recos { padding: 8px 22px; counter-reset: eeat-reco; }
.eeat-recos li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--eeat-line); line-height: 1.65; counter-increment: eeat-reco; }
.eeat-recos li:last-child { border-bottom: 0; }
.eeat-recos li::before { content: counter(eeat-reco); color: var(--eeat-accent); font: 700 1.4rem/1.2 var(--eeat-serif); }

.eeat-disclaimer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--eeat-line); color: var(--eeat-muted); font-size: .78rem; line-height: 1.6; }

/* ── Jev : confiance, grille SQEG, liens ───────── */
.eeat-confidence { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--eeat-muted); font-size: .76rem; font-weight: 600; line-height: 1.5; }
.eeat-review { padding: 1px 8px; border-radius: 100px; background: color-mix(in oklch, var(--eeat-mid) 16%, var(--eeat-card)); color: oklch(.42 .1 65); font-size: .72rem; font-weight: 700; }
.eeat-verdict-confidence { margin-bottom: 10px; }
.eeat-dim > .eeat-confidence { margin: -4px 0 10px; }
.eeat-block-intro { max-width: 75ch; margin: -6px 0 14px; }
.eeat-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.eeat-check-group { padding: 16px 18px; }
.eeat-check-group > h4 { margin-bottom: 4px; }
.eeat-check { padding: 10px 0; border-bottom: 1px solid var(--eeat-line); }
.eeat-check:last-child { padding-bottom: 0; border-bottom: 0; }
.eeat-check-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--eeat-ink); font-size: .9rem; }
.eeat-check-head .eeat-pill { flex-shrink: 0; }
.eeat-check .eeat-small { margin: 2px 0 4px; }
.eeat-check > .eeat-evidence { display: flex; margin-top: 4px; }
.eeat-links .eeat-pill { margin-left: 4px; padding: 2px 8px; font-size: .7rem; vertical-align: 1px; }
.eeat-explainer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--eeat-line); font-size: .86rem; line-height: 1.65; }
.eeat-explainer summary { color: var(--eeat-accent); font-weight: 650; cursor: pointer; }
.eeat-explainer p { max-width: 80ch; margin-top: 10px; }
.eeat-explainer a { color: var(--eeat-accent); text-underline-offset: .2em; }

/* ── Fenêtre extrait SQEG ───────────────────────── */
.eeat-dialog { width: min(820px, calc(100% - 32px)); max-height: 85vh; padding: 0; border: 1px solid var(--eeat-line); border-radius: 8px; background: var(--eeat-card); color: var(--eeat-text); box-shadow: 0 24px 60px rgba(15, 23, 42, .28); }
.eeat-dialog[open] { display: flex; flex-direction: column; }
.eeat-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.eeat-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--eeat-line); }
.eeat-dialog-header h2 { font-size: 1.2rem; }
.eeat-dialog-close { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--eeat-line); border-radius: 6px; background: var(--eeat-paper); color: var(--eeat-muted); font-size: 1rem; cursor: pointer; }
.eeat-dialog-close:hover { color: var(--eeat-ink); }
.eeat-dialog-body { padding: 20px 24px; overflow-y: auto; line-height: 1.75; }
.eeat-dialog-body p + p { margin-top: .8rem; }
.eeat-dialog-source { padding: 12px 24px; border-top: 1px solid var(--eeat-line); color: var(--eeat-muted); font-size: .74rem; }

/* ── Mobile ─────────────────────────────────────── */
@media (max-width: 700px) {
  .eeat { --eeat-width: calc(100% - 32px); }
  .eeat-hero { padding: 24px 0 32px; }
  .eeat-section-heading { flex-direction: column; gap: 6px; }
  .eeat-form { padding: 18px 16px; }
  .eeat-section-heading .eeat-small { overflow-wrap: anywhere; }
  .eeat-tabs { display: flex; }
  .eeat-tab { flex: 1; padding: 8px 4px; font-size: .8rem; }
  .eeat-disclosure > summary { flex-wrap: wrap; }
  .eeat-disclosure > summary > span:first-child { flex: 1 1 calc(100% - 30px); }
  .eeat-disclosure > summary .eeat-small { order: 3; flex-basis: 100%; overflow-wrap: anywhere; }
  .eeat-button { width: 100%; }
  .eeat-verdict { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .eeat-two-cols { grid-template-columns: 1fr; }
  .eeat-promise, .eeat-quality { padding: 18px 16px; }
}
