/* Zaid&Partners — « Carnet d'audit »
   Fiche de contrôle papier : papier presque blanc, filets fins, cases cochées à l'encre bleue.
   Mobile-first. Aucune dépendance externe. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/publicsans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs */
  --paper: #fdfcf9;
  --paper-2: #f3f1ec;
  --ink: #2b2218;          /* texte courant, 15:1 */
  --brown: #544532;        /* couleur du logo, 9:1 */
  --muted: #6a5b48;        /* texte secondaire, 6,4:1 */
  --rule: #d6cfc2;         /* filets décoratifs */
  --edge: #8f8470;         /* bordures de composants, 3,6:1 */
  --green: #2e6a47;        /* 3e couleur : vert sapin « validé / gratuit », 6,3:1 sur papier */
  --green-bg: #e6efe7;     /* fond teinté du vert */
  --blue: #1d4e7d;         /* accent unique : encre de stylo, 8,4:1 */
  --error: #9b1c1c;
  --mark: #fff1b8;         /* surlignage des champs à compléter */

  /* Typographie */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Espacements (base 8) */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.5rem;

  --radius: 6px;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4.75rem; /* barre d'action mobile */
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--brown); font-weight: 500; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 8vw, 4.25rem); line-height: 1.03; max-width: 16ch; letter-spacing: -0.022em; font-weight: 500; }
h2 { font-size: clamp(1.65rem, 4.8vw, 2.65rem); line-height: 1.12; max-width: 24ch; letter-spacing: -0.016em; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 var(--s2); max-width: 62ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Accessibilité */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: var(--s2); top: -4rem; z-index: 100;
  background: var(--brown); color: var(--paper); padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: var(--s1); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Structure */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.band { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section-head { margin-bottom: var(--s4); }
.section-head p { color: var(--muted); margin-top: var(--s2); }
.label { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin: 0 0 var(--s1); }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.muted { color: var(--muted); }

/* En-tête */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem var(--s2); padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: 3.1rem; height: auto; }
.nav { order: 3; width: 100%; display: flex; gap: 0.25rem; margin-inline: -0.5rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brown); border-bottom-color: var(--edge); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.site-header .header-cta { display: none; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.25rem; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--brown); background: var(--brown); color: var(--paper);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--brown); }
.btn--ghost:hover { background: var(--brown); color: var(--paper); border-color: var(--brown); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--s3); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero .wrap { display: grid; gap: var(--s4); align-items: center; }
.hero .lead { margin-top: var(--s2); }

/* Fiche (papier) */
.sheet {
  position: relative; background: #fff; border: 1px solid var(--edge); border-radius: 4px;
  box-shadow: 0 1px 0 var(--rule), 0 6px 0 -3px var(--paper-2), 0 7px 0 -3px var(--rule);
}
.sheet--bound { padding-left: 2.25rem; }
.sheet--bound::before { /* perforation du carnet */
  content: ""; position: absolute; left: 0.7rem; top: 0.9rem; bottom: 0.9rem; width: 0.7rem;
  background: radial-gradient(circle at center, var(--paper-2) 0 0.28rem, var(--rule) 0.28rem 0.34rem, transparent 0.36rem) 0 0 / 0.7rem 1.6rem repeat-y;
}
.sheet-head { padding: var(--s2) var(--s3) var(--s1); border-bottom: 2px solid var(--brown); }
.sheet-head p { margin: 0; font-weight: 600; color: var(--brown); }
.sheet-head small { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.sheet-foot { padding: var(--s2) var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.95rem; }

/* Cases à cocher (liste de contrôle) */
.check { display: grid; }
.check li {
  position: relative; padding: 0.85rem var(--s3) 0.85rem calc(var(--s3) + 2.1rem);
  border-bottom: 1px solid var(--rule); min-height: 3.2rem;
}
.check li:last-child { border-bottom: 0; }
.check li::before {
  content: ""; position: absolute; left: var(--s3); top: 1rem; width: 1.35rem; height: 1.35rem;
  border: 2px solid var(--brown); border-radius: 3px; background: var(--paper);
}
.check li strong { display: block; color: var(--ink); font-weight: 600; }
.check li span { color: var(--muted); font-size: 0.97rem; }
.check .tick { position: absolute; left: calc(var(--s3) - 0.15rem); top: 0.7rem; width: 1.9rem; height: 1.9rem; overflow: visible; }
.tick path { fill: none; stroke: var(--blue); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tick path { animation: draw 0.55s ease-out backwards; }
  .check li:nth-child(1) .tick path { animation-delay: 0.5s; }
  .check li:nth-child(2) .tick path { animation-delay: 1.05s; }
  @keyframes draw { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
}

/* Listes simples avec case cochée (CSS) */
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5rem; width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--brown); border-radius: 3px; background: var(--paper);
}
.ticks li::after {
  content: ""; position: absolute; left: -0.1rem; top: 0.28rem; width: 1.5rem; height: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5 11-12' fill='none' stroke='%231d4e7d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ticks { display: grid; gap: 0.1rem; }
.ticks--cols { grid-template-columns: 1fr; }

/* Espacements de flux */
h2 + p, h2 + .lead { margin-top: var(--s2); }
.ticks + h3, p + h3 { margin-top: var(--s4); }
.ticks + p { margin-top: var(--s2); }
.ticks { margin-top: var(--s1); }
.sheet .ticks, .fiche .ticks, .duo .ticks { margin-top: 0; }
.page-head + .section { padding-top: 0; }
.author-note { margin-top: var(--s3); }
.langs { margin-top: var(--s3); }
.contact-card h2 { font-size: 1.5rem; }
.form-col h2 { font-size: 1.5rem; margin-bottom: var(--s3); }
.sheet > h3 { padding: var(--s2) var(--s3) var(--s1); border-bottom: 2px solid var(--brown); }

/* Tampon */
.stamp {
  display: inline-block; border: 2px solid var(--blue); color: var(--blue); border-radius: 4px;
  padding: 0.3rem 0.8rem; font: 600 1.05rem/1.2 var(--serif); transform: rotate(-2.5deg);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--blue);
}

/* Deux bénéfices */
.duo { display: grid; gap: var(--s3); }
.duo .sheet h3 { padding: var(--s2) var(--s3) var(--s1); border-bottom: 2px solid var(--brown); }
.duo .ticks { padding: var(--s2) var(--s3) var(--s3); }

/* Étapes (aperçu) */
.steps { display: grid; border-top: 2px solid var(--brown); }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 0 var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.num {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 2px solid var(--brown); border-radius: 3px;
  font: 500 1.5rem/1 var(--serif); color: var(--brown); background: var(--paper);
  font-variant-numeric: lining-nums; transition: background-color 0.2s ease, color 0.2s ease;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--muted); }

/* Principes */
.principles { display: grid; gap: var(--s3); }
.principle { border-left: 3px solid var(--brown); padding-left: var(--s3); }
.principle h3 { margin-bottom: 0.4rem; }
.principle p { margin: 0; color: var(--muted); }

/* Encadré d'appel à l'action */
.cta-band { background: var(--brown); color: var(--paper); }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #efe9dd; }
.cta-band .btn { background: var(--paper); color: var(--brown); border-color: var(--paper); }
.cta-band .btn:hover { background: #e9e2d3; border-color: #e9e2d3; }
.cta-band .btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.cta-band .btn--ghost:hover { background: var(--paper); color: var(--brown); }
.cta-band :focus-visible { outline-color: #fff; }
.contact-lines { display: grid; gap: 0.25rem; margin-top: var(--s3); }
.contact-lines a { color: var(--paper); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

/* Illustration */
.illu { color: var(--brown); }
.illu--frame { border: 1px solid var(--rule); background: #fff; padding: var(--s2); border-radius: 4px; }

/* Pages intérieures */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--s4); }
.page-head p.lead { margin-top: var(--s2); }
.fiche { margin-bottom: var(--s3); }
.fiche-head { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s2); align-items: start; padding: var(--s3) var(--s3) var(--s2); border-bottom: 2px solid var(--brown); }
.fiche-head h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.fiche-head p { margin: 0.25rem 0 0; color: var(--muted); }
.fiche .ticks { padding: var(--s2) var(--s3) var(--s3); }
.fiche .note { margin: 0; padding: var(--s2) var(--s3); background: var(--paper-2); border-top: 1px solid var(--rule); font-size: 0.97rem; color: var(--muted); max-width: none; }
.cols { display: grid; gap: var(--s4); }
.author-note { display: grid; gap: var(--s2); align-items: center; padding: var(--s3); border: 1px dashed var(--blue); border-radius: 4px; background: #fff; }
.author-note p { margin: 0; }

/* Schéma PDCA */
.pdca { width: 100%; max-width: 26rem; margin-inline: auto; display: block; }
.pdca text { font-family: var(--serif); fill: var(--brown); }
.pdca .fr { font-family: var(--sans); font-size: 12.5px; fill: var(--muted); }
.pdca-list { display: grid; gap: var(--s2); }
.pdca-list li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s2); }
.pdca-list b { font: 500 1.3rem/1.2 var(--serif); color: var(--brown); display: block; }
.pdca-list span { color: var(--muted); }

/* Déroulé */
.timeline { border-left: 2px solid var(--brown); margin-left: 0.6rem; display: grid; gap: var(--s3); padding-left: var(--s3); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--s3) - 0.7rem); top: 0.3rem; width: 1rem; height: 1rem;
  background: var(--paper); border: 2px solid var(--brown); border-radius: 2px;
}
.timeline h3 { font-size: 1.2rem; }
.timeline p { margin: 0.2rem 0 0; color: var(--muted); }

/* À propos */
.portrait { max-width: 18rem; }
.portrait figure { margin: 0; }
.portrait .frame { aspect-ratio: 4/5; border: 1px solid var(--edge); background: var(--paper-2); display: grid; place-items: center; border-radius: 4px; color: var(--edge); }
.portrait figcaption { margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.langs li { border: 1px solid var(--edge); border-radius: 999px; padding: 0.25rem 0.9rem; font-weight: 500; background: #fff; }

/* Formulaire */
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--brown); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--edge); border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brown); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--error); }
.field .hint { font-size: 0.92rem; color: var(--muted); }
.form-status { min-height: 1.5rem; margin: 0; font-weight: 600; color: var(--brown); }
.small { font-size: 0.92rem; color: var(--muted); max-width: 60ch; }
.contact-card { padding: var(--s3); display: grid; gap: var(--s2); }
.contact-card .btn { width: 100%; }

/* Pages juridiques */
.legal > * { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; margin: var(--s4) 0 var(--s1); }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 var(--s2); }
.legal li { margin-bottom: 0.3rem; }
.todo { background: var(--mark); color: var(--ink); font-weight: 600; padding: 0.05rem 0.35rem; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* 404 */
.lost { text-align: left; }

/* Pied de page */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: var(--s5) var(--s4); font-size: 0.97rem; }
.site-footer .wrap { display: grid; gap: var(--s4); }
.site-footer h2 { font: 600 1rem/1.3 var(--sans); color: var(--brown); letter-spacing: 0; margin-bottom: 0.4rem; }
.site-footer ul { display: grid; }
.site-footer a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .brand img { width: 8.5rem; }
.site-footer p { margin: 0; }
.site-footer .slogan { font: 500 1.35rem/1.2 var(--serif); color: var(--brown); margin: 0.25rem 0 0.5rem; }
.legalline { grid-column: 1 / -1; max-width: none; border-top: 1px solid var(--rule); padding-top: var(--s2); color: var(--muted); font-size: 0.9rem; }

/* Barre d'action mobile */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--brown);
}
.dock .btn { min-height: 48px; padding: 0.5rem 0.4rem; font-size: 0.92rem; gap: 0.4rem; }
.dock .btn svg { width: 1.1rem; height: 1.1rem; }

/* ===== Ressources (3e couleur : vert sapin = gratuit / validé) ===== */
.nav { flex-wrap: wrap; }
@media (max-width: 30rem) { .nav { gap: 0; margin-inline: -0.3rem; flex-wrap: nowrap; } .nav a { padding: 0 0.34rem; font-size: 0.88rem; white-space: nowrap; } }
.tag { display: inline-block; align-self: start; background: var(--green-bg); color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 0.1rem 0.7rem; font: 600 0.85rem/1.5 var(--sans); margin-bottom: var(--s1); }
.btn--green { background: var(--green); border-color: var(--green); color: #fff; }
.btn--green:hover { background: #1f4a33; border-color: #1f4a33; }
.num--green { border-color: var(--green); color: var(--green); background: var(--green-bg); font-family: var(--sans); font-weight: 700; }
.tool { border-top: 4px solid var(--green); }
.tool-foot { padding: 0 var(--s3) var(--s3); }
.tool .fiche-head { border-bottom: 0; padding-bottom: var(--s1); }
.list-title { margin: var(--s5) 0 var(--s3); }
.rcards { display: grid; gap: var(--s3); }
.rcard { display: flex; flex-direction: column; gap: 0.25rem; padding: var(--s3); background: #fff; border: 1px solid var(--edge); border-top: 3px solid var(--green); border-radius: 4px; color: var(--ink); text-decoration: none; }
.rcard h3 { margin-bottom: 0.3rem; }
.rcard p { margin: 0 0 var(--s2); color: var(--muted); }
.rcard .more { margin-top: auto; color: var(--green); font-weight: 600; display: inline-flex; gap: 0.4rem; transition: gap 0.2s ease; }
.rcard:hover h3 { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 0.2em; }
.rcard:hover .more { gap: 0.8rem; }
.prose { max-width: 46rem; }
.prose h1 { max-width: 20ch; margin-bottom: var(--s1); }
.prose h2 { font-size: 1.5rem; margin: var(--s4) 0 var(--s1); }
.note-warn { background: var(--mark); border-left: 4px solid var(--brown); padding: 0.75rem 1rem; border-radius: 0 4px 4px 0; max-width: none; font-size: 0.97rem; margin: var(--s2) 0 var(--s3); }
.note-end { border-top: 1px solid var(--rule); padding-top: var(--s2); margin-top: var(--s4); color: var(--muted); font-size: 0.95rem; }
.page-head .tag { margin-bottom: var(--s2); }

/* Mini-diagnostic */
.quiz { padding: var(--s3); max-width: 46rem; }
.progress { height: 8px; background: var(--rule); border-radius: 99px; overflow: hidden; margin-bottom: var(--s3); }
.progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.3s ease; }
.q { border: 0; padding: 0 0 var(--s3); margin: 0 0 var(--s3); border-bottom: 1px solid var(--rule); min-width: 0; }
.q legend { font-weight: 600; color: var(--brown); padding: 0; margin-bottom: var(--s2); }
.q small { display: block; font-weight: 400; color: var(--muted); margin-top: 0.15rem; }
.opts { display: grid; gap: 0.5rem; }
.opts label { display: flex; align-items: center; gap: 0.7rem; min-height: 48px; padding: 0.5rem 0.9rem; border: 2px solid var(--edge); border-radius: var(--radius); background: #fff; cursor: pointer; }
.opts label:hover { border-color: var(--brown); }
.opts input { width: 1.25rem; height: 1.25rem; accent-color: var(--green); flex: none; }
.opts label:has(input:checked) { border-color: var(--green); background: var(--green-bg); }
.opts label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.result { display: none; margin-top: var(--s3); padding: var(--s3); border-radius: 4px; border: 2px solid var(--green); background: var(--green-bg); }
.result.show { display: block; }
.result.mid { border-color: var(--brown); background: var(--paper-2); }
.result.low { border-color: var(--error); background: #f8e6e3; }
.result .score { font: 500 3rem/1 var(--serif); color: var(--brown); margin: 0 0 var(--s1); }
.result .meta { color: var(--muted); font-size: 0.92rem; }
.result ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 var(--s2); }
@media (min-width: 48rem) { .rcards { grid-template-columns: repeat(3, 1fr); } .opts { grid-template-columns: 1fr 1fr; } }

/* ===== Photos : tirage collé sur le carnet ===== */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; background: var(--paper-2); border: 6px solid #fff; outline: 1px solid var(--edge); border-radius: 2px; box-shadow: 0 6px 16px rgba(43, 34, 24, 0.14); }
.photo figcaption { margin-top: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.photo-band { padding-block: 0 var(--s4); }
.page-head + .photo-band { padding-top: 0; }
.photo--article { margin: var(--s3) 0; }
.photo--article img { aspect-ratio: 3 / 2; }
.photo--side img, .photo--wide img { aspect-ratio: 16 / 6; }
.photo--side { margin-bottom: var(--s3); }
.photo--wide { margin-bottom: var(--s4); }
.fiche-photo { margin: 0; }
.fiche-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; border-bottom: 2px solid var(--brown); border-radius: 3px 3px 0 0; }
.rimg { display: block; width: calc(100% + 2 * var(--s3)); max-width: none; margin: calc(-1 * var(--s3)) calc(-1 * var(--s3)) var(--s2); aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--rule); }
.audit-col { display: grid; gap: var(--s3); align-content: start; }
.audit-col .photo img { aspect-ratio: 3 / 2; }

/* Accroche du hero et ligne des principes */
.tagline { margin: var(--s2) 0 0; font: 500 clamp(1.15rem, 3.4vw, 1.4rem)/1.35 var(--serif); color: var(--blue); max-width: 34ch; }
.tagline + .lead { margin-top: var(--s2); }
.principles-line { margin: var(--s3) 0 0; padding-top: var(--s1); border-top: 1px dashed var(--edge); font-size: 0.9rem; letter-spacing: 0.04em; color: var(--muted); max-width: none; }
.step em { font-style: italic; }
.step strong { font-weight: 600; color: var(--ink); }

/* Tablette et plus */
@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .photo img { aspect-ratio: 21 / 8; }
  .fiche-photo img { aspect-ratio: 21 / 6; }
  .dock { display: none; }
  .duo { grid-template-columns: 1fr 1fr; }
  .ticks--cols { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
  .principles { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .author-note { grid-template-columns: auto 1fr; }
  .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; }
  .contact-card .btn { width: auto; }
}
@media (min-width: 56rem) {
  .site-header .wrap { flex-wrap: nowrap; gap: var(--s3); }
  .nav { order: 0; width: auto; margin: 0 0 0 auto; }
  .brand img { width: 3.6rem; }
  .site-header .header-cta { display: inline-flex; min-height: 44px; padding: 0.5rem 1rem; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: var(--s6); }
  .cols--wide { grid-template-columns: 1.1fr 0.9fr; }
}

/* ===== Dynamisme léger (A : apparition au défilement, survol) =====
   Tout est dans ce bloc. Uniquement transform / opacity / clip-path (fluide sur mobile).
   Sans JS ou avec « moins d'animations » : tout reste visible et immobile. */
@media (prefers-reduced-motion: no-preference) {
  /* Apparition : la classe .rv est posée par main.js, .in quand l'élément entre à l'écran */
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv.d1 { transition-delay: 0.08s; } .js .rv.d2 { transition-delay: 0.16s; } .js .rv.d3 { transition-delay: 0.24s; }

  /* Cases : la coche s'écrit au stylo (de gauche à droite) quand la liste apparaît */
  .js .ticks:not(.in) li::after { clip-path: inset(0 100% 0 0); }
  .ticks li::after { transition: clip-path 0.45s ease-out; clip-path: inset(0 0 0 0); }
  .ticks.in li:nth-child(2)::after { transition-delay: 0.15s; }
  .ticks.in li:nth-child(3)::after { transition-delay: 0.3s; }
  .ticks.in li:nth-child(4)::after { transition-delay: 0.45s; }
  .ticks.in li:nth-child(n+5)::after { transition-delay: 0.55s; }

  /* Survol (pointeurs précis seulement : pas d'effet collé au toucher) */
  .sheet:not(.quiz) { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .btn { transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
  .nav a { transition: color 0.18s ease, border-color 0.18s ease; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rcard { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .rcard:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(46, 106, 71, 0.14); }
  .rcard:hover .rimg { filter: saturate(1.08); }
  .sheet:not(.quiz):hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--rule), 0 6px 0 -3px var(--paper-2), 0 7px 0 -3px var(--rule), 0 14px 28px rgba(84, 69, 50, 0.12); }
  .btn:hover { transform: translateY(-1px); }
  .step:hover .num, .fiche:hover .num { background: var(--brown); color: var(--paper); }
  .principle { transition: border-color 0.2s ease, padding-left 0.2s ease; }
  .principle:hover { border-left-color: var(--blue); padding-left: calc(var(--s3) + 0.35rem); }
}

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

@media print {
  .dock, .site-header .nav, .site-header .header-cta { display: none; }
  body { padding: 0; }
}
