/* Design « ardoise du chef » : papier chaud, encre bleu-nuit, vermillon pour les priorités, sauge pour les points forts.
   Titres en Newsreader (auto-hébergée, licence OFL), texte en police système : aucune requête externe (RGPD, CSP « self »).
   Style épuré : filets fins et espace plutôt que cartes, ombres et pastilles.
   Thème clair uniquement : le site ne suit plus le mode sombre du système (le noir intégral était trop dur). */
@font-face {
  font-family: "Newsreader";
  src: url("/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f6f1e7;
  --surface: #fffdf9;
  --surface-2: #efe8da;
  --ink: #1c2433;
  --ink-2: #4a5365;
  --line: #e2d9c8;
  --primary: #1c2b3d;
  --primary-ink: #ffffff;
  --accent: #c13b22;
  --sauge: #e1e9dc;
  --ardoise: #2b3433;
  --chalk: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --good: #2a7550;
  --good-bg: #e2f0e7;
  --warn: #8f5d00;
  --warn-bg: #fbefd2;
  --bad: #b3261e;
  --bad-bg: #fbe3e0;
  --shadow: 0 1px 2px rgb(28 36 51 / 4%), 0 8px 24px rgb(28 36 51 / 6%);
  --radius: 10px;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.025em; }
.nw { white-space: nowrap; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; gap: 12px; font: 600 1.65rem/1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; display: block; filter: drop-shadow(0 2px 5px rgb(28 43 61 / 25%)); }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__by { font: 600 .875rem/1 var(--sans); letter-spacing: .06em; color: var(--ink-2); }
.brand__name em { font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -.01em; }
/* Menu : grand, foncé, bien lisible ; la rubrique affichée est soulignée */
.topnav { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 1.06rem; font-weight: 600; white-space: nowrap; }
.topnav a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; transition: background .15s; }
.topnav a:not(.btn):hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.topnav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.topnav .topnav__cta, .topbar .menu-toggle { display: none; }
.topbar__cta { font-size: 1.02rem; }
.menu-toggle { align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 1.05rem var(--sans); cursor: pointer; }
.menu-toggle:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--primary-ink); border: 0; border-radius: var(--radius); min-height: 44px; padding: 11px 24px; font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: color-mix(in srgb, var(--primary) 82%, #fff); }
.btn:active { background: var(--primary); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn--big { width: 100%; padding: 16px 24px; font-size: 1.08rem; }
.btn--ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }

/* Héro */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(48px, 7vw, 96px); }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 9px 18px 9px 14px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--ink-2); max-width: 52ch; }
.auditform { display: grid; gap: 18px; margin: 32px 0 20px; max-width: 540px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: .9rem; font-weight: 600; }
.field__label em { font-weight: 400; color: var(--ink-2); font-style: normal; }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; font: 1rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid #cfc5b1; border-radius: var(--radius); padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
textarea { min-height: 84px; resize: vertical; }
.form-error { color: var(--bad); font-weight: 600; margin: 0; }
.form-note { font-size: .875rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
.form-note a { display: inline-block; padding: 13px 2px; margin: -13px 0; }
.code__intro { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.code__input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; padding: 14px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: .9rem; color: var(--ink-2); }
.chips li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.chips--center { justify-content: center; gap: 8px 24px; margin-top: -4px; }
.chips--center li { font-size: 1rem; font-weight: 600; color: var(--ink); }

/* Aperçu */
.hero__media { position: relative; margin-bottom: 36px; }
.hero__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.hero__media .sample { position: absolute; left: -48px; bottom: -36px; width: min(340px, 88%); padding: 20px; box-shadow: var(--shadow); }
.hero__media .gauge { width: 76px; height: 76px; }
.sample { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.sample__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.sample__tag { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 4px; }
.sample__verdict { font: 700 1.08rem var(--serif); margin: 0; }
.sample__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.sample__list li { display: flex; gap: 10px; align-items: flex-start; }
.sample.section--ardoise { border: 0; border-image: none; border-radius: 8px; padding: 22px 24px; box-shadow: 0 0 0 7px #8a5a35, 0 0 0 8px rgb(0 0 0 / 30%), 0 16px 34px rgb(0 0 0 / 35%), inset 0 0 24px rgb(0 0 0 / 30%); }
.sample.section--ardoise .sample__tag { color: var(--ink-2); }
.sample.section--ardoise .sample__verdict { font: 600 1.7rem / 1.05 var(--chalk); color: var(--ink); text-shadow: 0 0 1px rgb(243 240 230 / 55%); }
.sample.section--ardoise .sample__list { font-size: 1rem; color: var(--ink); gap: 12px; }

/* Jauge */
.gauge { width: 96px; height: 96px; flex: none; transform: rotate(-90deg); }
.gauge text { transform: rotate(90deg); transform-origin: 60px 60px; }
.gauge--big { width: 150px; height: 150px; }
.gauge__track { fill: none; stroke: var(--line); stroke-width: 10; }
.gauge__value { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.gauge__num { font: 700 34px var(--serif); fill: var(--ink); }
.gauge--good { stroke: var(--good); }
.gauge--warn { stroke: var(--warn); }
.gauge--bad { stroke: var(--bad); }

/* Pastilles de statut */
.ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .9rem; font-weight: 800; flex: none; }
.ico--good { background: var(--good-bg); color: var(--good); }
.ico--warn { background: var(--warn-bg); color: var(--warn); }
.ico--bad { background: var(--bad-bg); color: var(--bad); }
.ico--info { background: var(--surface-2); color: var(--ink-2); }

/* Sections */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tint { background: var(--surface-2); }
.section--sauge { background: var(--sauge); --line: #c5d0bf; }
/* Bloc « ardoise » : vraie ardoise (texture, cadre en bois), titres écrits à la craie. */
.section--ardoise {
  --ink: #f3f0e6; --ink-2: #e0e4da; --line: rgb(243 240 230 / 30%); --accent: #f4a08a;
  --good: #a9dfb8; --warn: #f3da8e; --bad: #f4a08a;
  color: var(--ink);
  background: url("/ardoise.jpg") 0 0 / 640px 640px repeat, var(--ardoise);
  border-block: 14px solid #6f4727;
  border-image: linear-gradient(180deg, #a26f43, #764a28 55%, #5a3920) 1;
  box-shadow: inset 0 10px 22px rgb(0 0 0 / 35%), inset 0 -10px 22px rgb(0 0 0 / 28%);
}
.section--ardoise h1, .section--ardoise h2, .section--ardoise h3,
.section--ardoise .rverdict, .section--ardoise .prio__n, .section--ardoise .steps__n, .section--ardoise .rbars__score {
  font-family: var(--chalk);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow: 0 0 1px rgb(243 240 230 / 55%), 0 0 6px rgb(243 240 230 / 8%);
}
.section--ardoise h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.section--ardoise h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.1; font-weight: 600; }
.section--ardoise .prio__n, .section--ardoise .steps__n { color: var(--accent); font-size: 3.4rem; line-height: 1; text-shadow: 0 0 8px rgb(244 160 138 / 25%); }
/* Traits de craie à la place des filets */
.section--ardoise .steps li, .section--ardoise .prio__item, .section--ardoise .rbars {
  border-top: 0;
  background: url("/chalk-line.svg") 0 0 / 100% 9px no-repeat;
  padding-top: 32px;
}
.section--ardoise .bar { filter: url("#chalk"); }
/* Jauge : cercles légèrement irréguliers (filtre léger), chiffre net, grand et centré (jamais filtré) */
.gauge__inner { fill: none; stroke: transparent; }
.section--ardoise .gauge circle { filter: url("#chalk-ring"); }
.section--ardoise .gauge__track { stroke: rgb(243 240 230 / 20%); stroke-width: 8; }
.section--ardoise .gauge__value { stroke-width: 8; }
.section--ardoise .gauge__inner { stroke: rgb(243 240 230 / 24%); stroke-width: 1.4; }
.section--ardoise .gauge__num { font: 700 56px var(--chalk); fill: var(--ink); dominant-baseline: central; text-shadow: none; }
.section--ardoise .ico--good { background: rgb(169 223 184 / 18%); color: var(--good); }
.section--ardoise .ico--warn { background: rgb(243 218 142 / 18%); color: var(--warn); }
.section--ardoise .ico--bad { background: rgb(244 160 138 / 20%); color: var(--bad); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__photo { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); display: block; }
.split .cards--2 { gap: 40px 32px; }
.section__lead { color: var(--ink-2); max-width: 62ch; margin-bottom: 40px; font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { border-top: 1px solid var(--ink); padding: 22px 0 0; }
.card h3 { margin-bottom: .4em; }
.section h2 + .cards, .section h2 + .faq { margin-top: 40px; }
.card p { color: var(--ink-2); margin: 0; font-size: 1rem; line-height: 1.65; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { position: relative; }
.steps__n { display: block; margin-bottom: 10px; }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--ink-2); }
.cta-row { margin-top: 40px; }
.faq { max-width: 820px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--primary); }
.faq p { color: var(--ink-2); }

/* Chargement */
@keyframes spin { to { transform: rotate(360deg); } }

/* Rapport : un bloc ardoise (score, thèmes, priorités), puis des sections calmes. */
.rslate { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.rslate h2 { margin: clamp(48px, 6vw, 80px) 0 0; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.rhead { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "score brand" "score body"; column-gap: clamp(28px, 5vw, 72px); row-gap: 20px; align-items: center; }
.rscore { grid-area: score; text-align: center; }
.rbrand { grid-area: brand; align-self: end; display: flex; align-items: center; gap: 18px; min-width: 0; }
.rbody { grid-area: body; align-self: start; min-width: 0; }
/* Logo du restaurant sur une étiquette claire (ou foncée si le logo est blanc), comme un écriteau posé sur l'ardoise */
.rbrand__logo { flex: none; width: 88px; height: 88px; display: grid; place-items: center; padding: 10px; border-radius: 16px; background: #f6f1e7; box-shadow: 0 3px 0 rgb(0 0 0 / 35%), 0 0 0 1px rgb(255 255 255 / 10%); }
.rbrand__logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.rbrand__logo--dark { background: #171d1c; box-shadow: 0 0 0 1px rgb(243 240 230 / 40%); }
.rbrand__logo--mono { font: 600 3rem / 1 var(--chalk); color: var(--ardoise); text-shadow: none; }
.rbrand__text { min-width: 0; }
.rbrand__name { font: 600 clamp(1.9rem, 3vw, 2.5rem) / 1.05 var(--chalk); margin: 0 0 4px; color: var(--ink); overflow-wrap: anywhere; }
.rscore .gauge { width: clamp(150px, 18vw, 200px); height: clamp(150px, 18vw, 200px); }
.rscore__of { display: block; margin-top: 6px; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.report__site { color: var(--ink-2); font-size: .95rem; margin: 0; word-break: break-word; }
.rverdict { font-size: clamp(2.7rem, 5.6vw, 4.4rem); line-height: 1; margin: 0 0 18px; text-wrap: balance; }
.report__meta { color: var(--ink-2); font-size: .9rem; margin: 0; }
.report__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.section--ardoise .btn { background: var(--ink); color: var(--ardoise); }
.section--ardoise .btn:hover { background: color-mix(in srgb, var(--ink) 88%, var(--ardoise)); }
.section--ardoise .btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgb(246 241 231 / 45%); }
.section--ardoise .btn--ghost:hover { background: rgb(246 241 231 / 10%); }

/* Les cinq thèmes d'un coup d'œil */
.rbars { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 32px; }
.rbars li { display: grid; align-content: start; }
.rbars__link { display: grid; gap: 8px; align-content: start; color: inherit; text-decoration: none; padding: 10px 12px 12px; margin: -10px -12px -12px; border-radius: var(--radius); border: 1px solid transparent; transition: background-color .15s, border-color .15s, transform .15s; }
.rbars__link:hover, .rbars__link:focus-visible { background: rgb(243 240 230 / 8%); border-color: rgb(243 240 230 / 40%); transform: translateY(-2px); }
.rbars__more { font-size: .875rem; color: var(--accent); opacity: .85; margin-top: 2px; }
.rbars__more::after { content: " ↓"; }
.rbars__link:hover .rbars__more, .rbars__link:focus-visible .rbars__more { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.rbars__label { font-size: .9rem; color: var(--ink-2); }
.rbars__score { font-size: 2.1rem; line-height: 1; }
.rbars__score small { font: 400 .9rem var(--sans); color: var(--ink-2); }
.rnote { margin: 28px 0 0; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--ink-2); font-size: .92rem; max-width: 70ch; }

/* Priorités */
.prio { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.prio__n { display: block; margin-bottom: 12px; }
.prio__item h3 { margin-bottom: .5em; }
.section--ardoise .prio__item h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -.01em; text-shadow: none; }
.prio__item p { color: var(--ink-2); font-size: 1rem; margin: 0 0 14px; }
.prio__item .prio__fix { color: var(--ink); }
.prio__fix strong { color: var(--accent); font-weight: 600; }


/* Sections sous l'ardoise */
.rsec { padding: clamp(48px, 7vw, 96px) 0; }
.rsec--sauge { background: var(--sauge); --line: #c5d0bf; }
.rsec--tint { background: var(--surface-2); }
.rsec h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 28px; }
.rsec .section__lead { margin-top: -12px; }
.strengths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.strengths li { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--ink); padding-top: 20px; }
.strengths strong { display: block; font-weight: 600; margin-bottom: 4px; }

/* Détail par thème */
.cats { border-bottom: 1px solid var(--line); }
.cat { border-top: 1px solid var(--line); }
.cats__all { margin-bottom: 20px; }
.cat > summary { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 18px; align-items: center; padding: 22px 16px; margin: 0 -16px; border-radius: var(--radius); cursor: pointer; list-style: none; transition: background-color .15s; }
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary:hover { background: rgb(28 36 51 / 5%); }
.cat[open] > summary { background: rgb(28 36 51 / 4%); }
.cat > summary:focus-visible { outline-offset: -3px; }
.cat__title { font: 500 1.4rem var(--serif); }
.cat > summary:hover .cat__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.cat__score { font-weight: 600; font-variant-numeric: tabular-nums; }
/* Bouton « Voir le détail » : texte et flèche qui pivote selon l'état */
.cat__toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfc5b1; border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 500; color: var(--ink); background: var(--surface); transition: background-color .15s, border-color .15s; }
.cat__toggle::before { content: "Voir le détail"; }
.cat__toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.cat > summary:hover .cat__toggle { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.cat[open] .cat__toggle::before { content: "Masquer"; }
.cat[open] .cat__toggle::after { transform: translateY(2px) rotate(-135deg); }
.bar { grid-column: 1 / -1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.bar--good > span { background: var(--good); }
.bar--warn > span { background: var(--warn); }
.bar--bad > span { background: var(--bad); }
.finds { list-style: none; margin: 0; padding: 0 0 20px; display: grid; gap: 0; }
.find { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.find__title { font-weight: 600; margin: 0 0 2px; }
.find__detail { color: var(--ink-2); font-size: .95rem; margin: 0; }
.find__fix { font-size: .95rem; margin: 6px 0 0; }
.find__fix strong { color: var(--accent); }
.find__pts { font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Suite et contact */
.next { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.next__box h2 { margin-top: 0; }
.offers { list-style: none; padding: 0; margin: 0 0 20px; }
.offers li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.offers li:last-child { border-bottom: 1px solid var(--line); }
.offers span { color: var(--ink-2); font-size: .95rem; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; align-content: start; }
.contact h2 { margin: 0; font-size: 1.6rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); padding: 6px 0; }
.check a { display: inline-block; padding: 10px 2px; margin: -10px 0; }
.check input { margin-top: 1px; width: 24px; height: 24px; accent-color: var(--primary); flex: none; }
.contact__ok { background: var(--good-bg); color: var(--good); font-weight: 600; border-radius: 12px; padding: 14px 16px; margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Pages légales */
.doc { padding: 44px 0 70px; max-width: 780px; }
.doc h1 { font-size: 2.2rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.todo { background: var(--warn-bg); border-radius: 6px; padding: 0 5px; }

.footer { background: url("/ardoise.jpg") 0 0 / 640px 640px repeat, var(--ardoise); padding: 40px 0; color: #c6ccd8; font-size: .92rem; }
.footer a { display: inline-block; padding: 12px 2px; color: #f6f1e7; }
.footer strong { color: #f6f1e7; font-weight: 600; }
.footer__in { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.footer p { margin: 0; }

@media (max-width: 900px) {
  .hero__in, .next { grid-template-columns: 1fr; }
  .cat > summary { grid-template-columns: 1fr auto; grid-template-areas: "title toggle" "score toggle" "bar bar"; row-gap: 6px; }
  .cat__title { grid-area: title; }
  .cat__score { grid-area: score; font-size: .95rem; color: var(--ink-2); }
  .cat__toggle { grid-area: toggle; }
  .cat > summary .bar { grid-area: bar; }
  .cat__toggle::before { content: "Détail"; }
  .cat[open] .cat__toggle::before { content: "Masquer"; }
  /* Mobile : jauge et logo sur une même ligne, le verdict en dessous sur toute la largeur */
  .rhead { grid-template-columns: auto 1fr; grid-template-areas: "score brand" "body body"; column-gap: 20px; row-gap: 22px; }
  .rscore .gauge { width: 120px; height: 120px; }
  .rbrand { align-self: center; flex-direction: column; align-items: flex-start; gap: 12px; }
  .rbrand__logo { width: 72px; height: 72px; }
  .rbars { grid-template-columns: repeat(2, 1fr); }
  .strengths { grid-template-columns: 1fr; }
  .cards, .steps, .prio { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
  /* Tablette et mobile : photo en bandeau, carte posée dessous en chevauchant légèrement la photo */
  .hero__media { margin-bottom: 0; }
  .hero__photo { aspect-ratio: 16 / 10; }
  .hero__media .sample { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -56px 14px 0; }
  .split { grid-template-columns: 1fr; }
  .split__photo { max-height: 320px; }
}
/* Animations d'apparition : en attente (« paused ») jusqu'à ce que le bloc soit visible (classe .is-live posée par app.js).
   Réservées aux navigateurs qui exécutent le script : sans script, tout reste affiché. */
@keyframes gauge-draw { from { stroke-dashoffset: 339.3; } }
@keyframes chalk-in { from { opacity: 0; transform: translateX(-12px); } }
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .sample .gauge__value { animation: gauge-draw 1.5s cubic-bezier(.2, .8, .2, 1) 0.15s both paused; }
  .sample .sample__tag, .sample .sample__verdict { animation: chalk-in .6s ease-out 1s both paused; }
  .sample .sample__list li { animation: chalk-in .6s ease-out both paused; }
  .sample .sample__list li:nth-child(1) { animation-delay: 1.5s; }
  .sample .sample__list li:nth-child(2) { animation-delay: 2.05s; }
  .sample .sample__list li:nth-child(3) { animation-delay: 2.6s; }
  .sample .sample__list li:nth-child(4) { animation-delay: 3.15s; }
  .sample.is-live .gauge__value, .sample.is-live .sample__tag, .sample.is-live .sample__verdict, .sample.is-live .sample__list li { animation-play-state: running; }
  .prio .prio__item { animation: chalk-in .7s ease-out both paused; }
  .prio .prio__item:nth-child(2) { animation-delay: .45s; }
  .prio .prio__item:nth-child(3) { animation-delay: .9s; }
  .prio.is-live .prio__item { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.find__detail a { display: inline-block; padding: 10px 2px; margin: -10px 0; }
/* Page de rapport : avant que le script ne s'exécute, on n'affiche ni l'accueil ni ses sections, mais l'écran de chargement. */
html.is-report .hero, html.is-report #marketing { display: none; }
html.is-report #loading { display: block; }
html.is-report main, html.is-report-live main { min-height: 100vh; }

.hero__example { margin: 0 0 18px; font-size: .95rem; color: var(--ink-2); }
.hero__example a { display: inline-block; padding: 10px 0; font-weight: 600; }
.rsample { margin: 0 0 28px; padding: 12px 16px; border: 1px dashed rgb(243 240 230 / 45%); border-radius: var(--radius); color: var(--ink-2); font-size: .95rem; }
.rsample strong { color: var(--accent); }
.rsample a { color: var(--ink); font-weight: 600; display: inline-block; padding: 10px 2px; margin: -10px 0; }

#contact-home .contact { max-width: 680px; margin-inline: auto; }

/* Qui peut le faire, constat « non repéré dans le code », vue publique */
.who { margin: 8px 0 0; font-size: .95rem; color: var(--ink-2); }
.who__k { font-weight: 600; color: var(--ink); }
.tag-absence { display: inline-block; margin-left: 10px; padding: 1px 10px; border: 1px dashed currentColor; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--ink-2); line-height: 1.6; vertical-align: middle; }
.prio__sev .tag-absence { margin-left: 8px; }
.prio__sev .tag-absence:first-child { margin-left: 0; }
.find__fix--locked, .prio__fix--locked { color: var(--ink-2); font-style: italic; }
.prio__fix--locked a { color: var(--ink); font-style: normal; font-weight: 600; display: inline-block; padding: 10px 2px; margin: -10px 0; }
.find--locked .find__title { font-weight: 500; }
.find--locked a { display: inline-block; padding: 10px 2px; margin: -10px 0; font-weight: 600; }
.unlock { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.unlock p { margin: 0; flex: 1 1 420px; }

/* Niveau de risque d'un constat de sécurité (texte + couleur) */
:root { --sev-critique: #a31d14; --sev-eleve: #9a4300; --sev-modere: #7a5200; --sev-faible: #4a5365; }
.section--ardoise { --sev-critique: #ff9d8c; --sev-eleve: #ffb27a; --sev-modere: #f3da8e; --sev-faible: #cdd2c8; }
.sev { display: inline-block; margin-left: 10px; padding: 1px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: .875rem; font-weight: 600; line-height: 1.6; vertical-align: middle; white-space: nowrap; }
.sev--critique { color: var(--sev-critique); }
.sev--eleve { color: var(--sev-eleve); }
.sev--modere { color: var(--sev-modere); }
.sev--faible { color: var(--sev-faible); }
.prio__sev { margin: 0 0 12px; }
.prio__sev .sev { margin-left: 0; }

/* Texte réservé aux lecteurs d'écran (annonce « points » après « 2/4 ») */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Les attributs « hidden » doivent l'emporter sur les display: grid / flex des composants */
[hidden] { display: none !important; }

/* Menu sur mobile et tablette : bouton « Menu » + panneau pleine largeur (avec JavaScript) ; sans JavaScript, le menu passe sous la marque */
@media (max-width: 1080px) {
  .topbar__in { gap: 12px; min-height: 72px; flex-wrap: wrap; }
  .brand { font-size: 1.5rem; }
  .brand__mark { width: 38px; height: 38px; }
  .topnav { order: 3; width: 100%; margin: 0; padding-bottom: 10px; flex-wrap: wrap; font-size: 1.05rem; }
  .topbar__cta { margin-left: auto; }
}
@media (max-width: 1080px) and (scripting: enabled) {
  .topbar__in { flex-wrap: nowrap; }
  .topbar .topbar__cta { display: none; }
  .topbar .menu-toggle { display: inline-flex; margin-left: auto; }
  .topnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgb(28 36 51 / 16%); font-size: 1.2rem; }
  .menu-open .topnav { display: flex; }
  .topnav a:not(.btn) { min-height: 56px; padding: 10px 14px; border-radius: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .topnav a[aria-current] { text-underline-offset: 6px; }
  .topnav .topnav__cta { display: inline-flex; justify-content: center; margin-top: 14px; width: 100%; min-height: 56px; }
}

/* Suggestions de fiches Google (liste sous le champ « nom du restaurant ») */
.combo { position: relative; }
.combo__panel { position: absolute; left: 0; right: 0; z-index: 20; margin-top: 4px; background: var(--surface); border: 1px solid #cfc5b1; border-radius: var(--radius); box-shadow: 0 12px 28px rgb(28 36 51 / 18%); overflow: hidden; }
.combo__list { list-style: none; margin: 0; padding: 0; }
.combo__opt { display: grid; gap: 1px; padding: 10px 16px; min-height: 48px; align-content: center; cursor: pointer; border-top: 1px solid var(--line); }
.combo__opt:first-child { border-top: 0; }
.combo__opt strong { font-weight: 600; font-size: 1rem; }
.combo__opt span { color: var(--ink-2); font-size: .9rem; }
.combo__opt:hover, .combo__opt[aria-selected="true"] { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.combo__attr { margin: 0; padding: 6px 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); display: flex; justify-content: flex-end; align-items: center; min-height: 32px; }
.combo__attr img { display: block; height: 18px; width: auto; }
.combo__status { margin: 6px 0 0; font-size: .9rem; color: var(--good); font-weight: 600; }
.combo__status:empty { display: none; }
.combo__undo { background: none; border: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-weight: 600; cursor: pointer; padding: 12px 8px; margin: -12px 0; }

/* ───────── Page d'attente : un tableau d'ardoise où l'audit « écrit » ses étapes, et la saisie du code ───────── */
.loading { padding: clamp(36px, 6vw, 72px) 0; }
.loading__box {
  --ink: #f3f0e6; --ink-2: #dde2d8; --line: rgb(243 240 230 / 28%); --accent: #f4a08a; --good: #a9dfb8; --bad: #f4a08a;
  position: relative; max-width: 600px; margin: 0 auto; padding: 40px 32px 34px; text-align: center; color: var(--ink);
  background: url("/ardoise.jpg") 0 0 / 640px 640px repeat, var(--ardoise);
  border-radius: 10px;
  box-shadow: 0 0 0 8px #8a5a35, 0 0 0 9px rgb(0 0 0 / 30%), 0 20px 40px rgb(0 0 0 / 32%), inset 0 0 28px rgb(0 0 0 / 32%);
}
/* Anneau de la marque : l'arc tourne tant que l'analyse dure, puis se ferme en vert */
.ring { display: block; width: 84px; height: 84px; margin: 0 auto 14px; overflow: visible; }
.ring__track { fill: none; stroke: rgb(243 240 230 / 20%); stroke-width: 7; }
.ring__arc { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 150.8 201.1; transform-origin: 40px 40px; animation: spin 1.5s linear infinite; }
.ring__dot { fill: #f3f0e6; transform-origin: 40px 40px; animation: pulse-dot 1.5s ease-in-out infinite; }
.ring--done .ring__arc { animation: none; stroke: var(--good); stroke-dasharray: 201.1 201.1; transform: rotate(-90deg); }
.ring--done .ring__dot { animation: none; fill: var(--good); }
@keyframes pulse-dot { 50% { transform: scale(.7); } }
.loading__title { font: 600 clamp(2rem, 4vw, 2.7rem) / 1.05 var(--chalk); margin: 0 0 6px; color: var(--ink); letter-spacing: 0; text-shadow: 0 0 1px rgb(243 240 230 / 55%), 0 0 8px rgb(243 240 230 / 10%); text-wrap: balance; }
.loading__site { margin: 0 0 22px; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); overflow-wrap: anywhere; }
.progress { list-style: none; margin: 0 auto 20px; padding: 0; display: grid; gap: 2px; text-align: left; max-width: 400px; }
.progress__item { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 4px 10px; border-radius: 8px; color: rgb(243 240 230 / 55%); font-size: 1.05rem; transition: color .3s, background .3s; }
.progress__mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgb(243 240 230 / 45%); font: 700 1.1rem / 1 var(--chalk); color: var(--good); filter: url("#chalk-ring"); }
.progress__item--done { color: var(--ink); }
.progress__item--done .progress__mark { border-color: var(--good); }
.progress__item--current { color: var(--ink); font-weight: 700; background: rgb(243 240 230 / 9%); }
.progress__item--current .progress__mark { border-color: var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
/* Barre d'avancement à la craie */
.loading__bar { height: 10px; max-width: 400px; margin: 0 auto 18px; border-radius: 99px; background: rgb(243 240 230 / 16%); overflow: hidden; }
.loading__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f4a08a, #f3da8e); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.loading__hint { margin: 0; font-size: .95rem; color: var(--ink-2); }
.loading #loading-error { text-align: left; margin: 14px auto 18px; max-width: 420px; color: #7a1f16; }
.loading__box .btn--ghost { color: var(--ink); border-color: rgb(243 240 230 / 55%); }
.loading__box .btn--ghost:hover { background: rgb(243 240 230 / 10%); }
/* Carte du code : papier clair posé à côté de l'ardoise */
.codecard { display: grid; gap: 14px; max-width: 600px; margin: 28px auto 0; padding: 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.codecard__icon { width: 46px; height: 46px; color: var(--accent); }
.codecard__title { font-size: 1.55rem; margin: 0; }
.code__intro { margin: 0; line-height: 1.55; }
.codecard .code__input { font-size: 2rem; padding: 16px; }
@media (min-width: 900px) {
  .loading:has(.codecard:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; max-width: 1080px; }
  .loading:has(.codecard:not([hidden])) .loading__box, .loading:has(.codecard:not([hidden])) .codecard { margin: 0; max-width: none; }
}
@media (max-width: 480px) {
  .loading__box { padding: 30px 16px 26px; box-shadow: 0 0 0 6px #8a5a35, 0 0 0 7px rgb(0 0 0 / 30%), 0 14px 28px rgb(0 0 0 / 30%), inset 0 0 24px rgb(0 0 0 / 32%); margin-inline: 6px; }
  .ring { width: 68px; height: 68px; }
  .progress__item { min-height: 38px; padding: 2px 6px; font-size: 1rem; }
  .codecard { padding: 24px 18px; margin: 22px 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ring__arc, .ring__dot, .progress__item--current .progress__mark { animation: none; }
  .progress__item--current .progress__mark { border-top-color: var(--accent); }
  .loading__bar i { transition: none; }
}

/* ───────── Rapport : mention de fiabilité, priorités alignées, bouton ───────── */
.rdisclaimer { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; max-width: 64ch; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.rdisclaimer__i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid currentColor; border-radius: 50%; font: italic 700 .875rem / 1 var(--serif); }
/* Trois priorités : numéro, titre, niveau, constat et solution alignés d'une colonne à l'autre */
.prio { column-gap: 40px; row-gap: 0; }
.prio__detail { margin-top: 0; }
@media screen and (min-width: 901px) {
  .prio { grid-template-rows: auto auto auto 1fr auto; }
  .prio__item { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .prio__item > .prio__n { grid-row: 1; }
  .prio__item > h3 { grid-row: 2; }
  .prio__item > .prio__sev { grid-row: 3; }
  .prio__item > .prio__detail { grid-row: 4; }
  .prio__item > .prio__fix { grid-row: 5; align-self: start; }
}
@media screen and (max-width: 900px) { .prio { row-gap: 40px; } }
.rcta { display: flex; justify-content: center; margin: 56px 0 6px; }
.rcta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 34px; border-radius: 14px;
  background: linear-gradient(180deg, #d1452a, #b5361f); color: #fff; font: 700 1.15rem var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 1px solid rgb(255 255 255 / 22%); box-shadow: 0 10px 26px rgb(193 59 34 / 38%), 0 2px 0 rgb(0 0 0 / 25%);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.rcta__btn span { font-size: 1.35rem; line-height: 1; transition: transform .15s; }
.rcta__btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 32px rgb(193 59 34 / 48%), 0 2px 0 rgb(0 0 0 / 25%); }
.rcta__btn:hover span { transform: translateX(4px); }
.rcta__btn:focus-visible { outline: 3px solid #f3da8e; outline-offset: 4px; }
@media (max-width: 480px) { .rcta__btn { width: 100%; } }

.rbars__legend { margin: 14px 0 0; font-size: .92rem; color: var(--ink-2); }

/* Échelle de la réservation */
.ladder { margin: 6px 0 22px; padding: 22px 22px 20px; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); }
.ladder__steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ladder__step { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding-top: 2px; color: var(--ink-2); font-size: .95rem; line-height: 1.25; }
.ladder__step::before { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.ladder__step:first-child::before { display: none; }
.ladder__step--done::before, .ladder__step--current::before { background: var(--primary); }
.ladder__n { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); background: var(--surface); font-weight: 800; font-size: 1.05rem; color: var(--ink-2); }
.ladder__step--done .ladder__n { background: var(--primary); border-color: var(--primary); color: #fff; }
.ladder__step--current .ladder__n { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.ladder__step--current { color: var(--ink); font-weight: 700; }
.ladder__step--todo .ladder__name { opacity: .75; }
.ladder__now { margin: 0 0 10px; font-size: 1.05rem; }
.ladder__assets { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; font-weight: 600; }
.ladder__asset--yes { color: var(--good); }
.ladder__asset--no { color: var(--bad); }
.ladder__asset--unknown { color: var(--ink-2); }
.ladder__next { margin: 0; padding: 12px 14px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 6px; }
.ladder__next--locked { color: var(--ink-2); font-style: italic; }
@media (max-width: 640px) {
  .ladder { padding: 18px 16px; }
  .ladder__steps { grid-template-columns: 1fr; gap: 0; }
  .ladder__step { grid-template-columns: 38px 1fr; justify-items: start; align-items: center; text-align: left; gap: 12px; padding: 6px 0; font-size: 1rem; }
  .ladder__step::before { top: -50%; left: 18px; width: 3px; height: 100%; }
}

/* Impression et PDF : en dernier, pour l'emporter à spécificité égale sur les styles d'écran */
@page { size: A4; margin: 14mm 14mm 18mm; }
.rprinthead, .rclose { display: none; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff !important; }
  body { color: #1d2523; font: 10pt/1.45 var(--sans); }
  .topbar, .hero, #marketing, .footer, .report__actions, #loading, .rcta, .unlock, .cats__all, .cat__toggle, .rbars__more, .contact, .rsample a { display: none !important; }
  a { color: inherit; text-decoration: none; }
  main, html.is-report main, html.is-report-live main { min-height: 0 !important; }
  .wrap { max-width: none; padding: 0; margin: 0; }
  * { animation: none !important; transition: none !important; }
  .prio__item, .sample *, .bar span { opacity: 1 !important; transform: none !important; }

  /* Tout le contenu en clair : l'ardoise, le vert sauge et les teintes deviennent du papier blanc */
  .section--ardoise, .rsec--sauge, .rsec--tint, .rsec { background: #fff !important; color: #1d2523; border: 0; border-image: none; box-shadow: none; padding: 0; --ink: #1d2523; --ink-2: #4b5552; --line: #d9d2c0; --accent: #a23a1f; --good: #1d7a45; --warn: #8a5a00; --bad: #b3261e; --sev-critique: #a31d14; --sev-eleve: #9a4300; --sev-modere: #7a5200; --sev-faible: #4a5365; }
  .section--ardoise::before, .section--ardoise::after { display: none !important; }
  .section--ardoise h1, .section--ardoise h2, .section--ardoise h3, .section--ardoise .rverdict, .section--ardoise .prio__n, .section--ardoise .rbars__score, .rbrand__name { font-family: var(--serif) !important; text-shadow: none !important; color: #1d2523; letter-spacing: -.01em; }
  .section--ardoise .bar, .section--ardoise .gauge circle { filter: none !important; }
  .section--ardoise .gauge__track { stroke: #e6e0d0; }
  .section--ardoise .gauge__inner { stroke: #e6e0d0; }
  .section--ardoise .gauge__num { font: 700 56px var(--serif); fill: #1d2523; }
  .section--ardoise .ico--good { background: #dcefe2; color: var(--good); }
  .section--ardoise .ico--warn { background: #f7ead0; color: var(--warn); }
  .section--ardoise .ico--bad { background: #f6dcd8; color: var(--bad); }

  /* En-tête de la première page */
  .rprinthead { display: flex !important; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #1f5b4c; padding-bottom: 6pt; margin-bottom: 14pt; }
  .rprinthead strong { font: 600 15pt var(--serif); color: #1f5b4c; }
  .rprinthead span { font-size: 9pt; color: #4b5552; }

  .rslate { padding: 0; }
  .rhead { grid-template-columns: 32mm 1fr; column-gap: 8mm; row-gap: 2mm; padding: 0 0 4pt; break-inside: avoid; }
  .rscore .gauge { width: 30mm; height: 30mm; }
  .rscore__of { font-size: 7.5pt; margin-top: 2pt; }
  .rbrand { gap: 4mm; }
  .rbrand__logo { width: 18mm; height: 18mm; padding: 2mm; border-radius: 3mm; box-shadow: 0 0 0 1px #d9d2c0; background: #fff; }
  .rbrand__logo--dark { background: #26302e; }
  .rbrand__logo--mono { font: 600 22pt var(--serif); color: #1f5b4c; }
  .rbrand__name { font-size: 17pt; line-height: 1.1; margin: 0 0 1pt; }
  .report__site { font-size: 9pt; }
  .rverdict { font-size: 19pt !important; line-height: 1.15; margin: 0 0 4pt !important; }
  .report__meta { font-size: 8.5pt; }

  /* Thèmes d'un coup d'œil : tableau compact */
  .ladder { margin: 4pt 0 8pt; padding: 6pt 8pt; border: 1px solid #d9d2c0; background: #fbf8f1; break-inside: avoid; }
  .ladder__steps { gap: 3pt; margin: 0 0 6pt; }
  .ladder__n { width: 16pt; height: 16pt; border-width: 1.5pt; font-size: 8pt; }
  .ladder__step { font-size: 7.5pt; gap: 3pt; }
  .ladder__step::before { top: 8pt; height: 1.5pt; }
  .ladder__now, .ladder__assets, .ladder__next { font-size: 8.5pt; margin: 0 0 3pt; padding: 0; background: none; }
  .rdisclaimer { font-size: 8pt; margin: 3pt 0 0; max-width: none; }
  .rdisclaimer__i { width: 11pt; height: 11pt; font-size: 7pt; margin-top: 1pt; }
  .rbars { grid-template-columns: repeat(5, 1fr); gap: 4mm; margin: 4pt 0 6pt; padding: 6pt 0 0; border-top: 1px solid #d9d2c0; border-bottom: 0; break-inside: avoid; }
  .rbars__link { padding: 0; margin: 0; gap: 3pt; }
  .rbars__label { font-size: 8pt; line-height: 1.2; }
  .rbars__score { font-size: 17pt !important; }
  .rbars__score small { font-size: 8pt; }
  .bar { height: 4pt; }
  .rnote { font-size: 8.5pt; margin: 6pt 0; }

  .rslate h2, .rsec h2 { font-size: 15pt !important; margin: 14pt 0 6pt !important; break-after: avoid; }

  /* Priorités : trois fiches lisibles */
  .prio { grid-template-columns: 1fr; gap: 7pt; margin: 4pt 0 0; }
  .prio__item { display: grid; grid-template-columns: 9mm 1fr; column-gap: 3mm; padding: 5pt 9pt 3pt 8pt; border: 1px solid #d9d2c0; border-left: 3pt solid #a23a1f; border-radius: 2pt; background: #fbf8f1; break-inside: avoid; }
  .prio__item > * { grid-column: 2; }
  .prio__item .prio__n { grid-column: 1; grid-row: 1 / span 6; font-size: 24pt !important; line-height: 1; margin: 0; text-shadow: none !important; color: #a23a1f; }
  .prio__item h3 { font-size: 11.5pt !important; margin: 0 0 3pt !important; }
  .prio__item p { font-size: 9.5pt; margin: 0 0 3pt; color: #3a4441; }
  .prio__sev { margin: 0 0 3pt !important; }

  /* Points forts */
  .strengths { grid-template-columns: 1fr 1fr; gap: 6pt 8mm; }
  .strengths li { border-top: 1px solid #d9d2c0; padding-top: 5pt; break-inside: avoid; }
  .strengths .find__detail { font-size: 9pt; }
  .rsec--sauge { padding: 0 !important; }

  /* Détail par thème : tout ouvert, sur une nouvelle page */
  .rsec .section__lead { font-size: 9pt; margin: 0 0 6pt; }
  .cats { border: 0; }
  details.cat { border-top: 0; margin: 0 0 9pt; }
  details.cat > summary { display: grid !important; grid-template-columns: 1fr auto; gap: 2pt 8pt; margin: 0; padding: 5pt 7pt; background: #efe9da !important; border-radius: 2pt; break-after: avoid; list-style: none; }
  .cat__title { font: 600 11.5pt var(--serif); }
  .cat__score { font-size: 10pt; }
  .cat > summary .bar { grid-column: 1 / -1; height: 3pt; }
  .finds { padding: 0; }
  .find { padding: 5pt 7pt; gap: 8pt; break-inside: avoid; }
  .find__title { font-size: 9.5pt; }
  .find__detail, .find__fix, .who { font-size: 8.8pt; margin-top: 2pt; }
  .find__pts { font-size: 8pt; }
  .ico { width: 5mm; height: 5mm; font-size: 7pt; }
  .sev, .tag-absence { font-size: 7.5pt; padding: 0 6pt; }

  /* Clôture */
  .rsec--tint { break-before: avoid; }
  .next { display: block; }
  .next__box h2 { margin-top: 14pt !important; }
  .next__box p, .offers li { font-size: 9.5pt; }
  .offers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8mm; margin: 0 0 6pt; }
  .offers li { padding: 4pt 0; break-inside: avoid; }
  .offers li:last-child { border-bottom: 0; }
  .offers span { font-size: 8.8pt; }
  .next__box > p:last-child { display: none; }
  .rclose { display: block !important; margin-top: 12pt; padding: 8pt 10pt; border: 1px solid #1f5b4c; border-radius: 3pt; font-size: 9.5pt; break-inside: avoid; }
  .rclose strong { color: #1f5b4c; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: .875rem; letter-spacing: .02em; gap: 8px; padding: 8px 12px 8px 10px; }
}

/* Champ en erreur : bordure et halo rouges, message juste au-dessus du bouton */
input[aria-invalid="true"] { border-color: var(--bad); background: #fff6f4; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 28%, transparent); }
.form-error { padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); border-left-width: 4px; border-radius: var(--radius); background: #fff0ed; }
.form-note--dev { padding: 8px 12px; border: 1px dashed var(--ink-2); border-radius: var(--radius); }
.form--no-email [data-email-only] { display: none; }


