/*
 * modele-immobilier.fr : feuille de style unique.
 * Lecture design : site utilitaire de confiance (documents juridiques), langage papier et encre,
 * CSS natif + variables, un seul accent (bleu encre), mouvement discret.
 * Rayons : contrôles 6 px, panneaux 10 px, feuilles de papier 2 px (règle fixe sur tout le site).
 * Couches (z-index) : 10 en-tête collant, 20 barre d'onglets du générateur, 50 menu mobile, 100 impression.
 */

@font-face { font-family: "Geist"; src: url("../fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f4f5f3;
  --bg-sunk: #eceeeb;
  --surface: #fbfbfa;
  --field: #fdfdfc;
  --paper: #fdfdfb;
  --paper-ink: #16181c;
  --ink: #16181c;
  --ink-2: #474c55;
  --ink-3: #626873;
  --line: #dfe2de;
  --line-strong: #c3c7c2;
  --accent: #2747c6;
  --accent-ink: #f7f8fd;
  --accent-text: #2442b8;
  --accent-soft: #e6eafa;
  --accent-line: #b9c4f0;
  --warn-bg: #fbf2dc;
  --warn-ink: #6b4a00;
  --warn-line: #ebd49a;
  --err: #b42318;
  --shadow: 0 1px 2px rgb(22 30 60 / 0.06), 0 8px 28px -12px rgb(22 30 60 / 0.18);
  --shadow-paper: 0 1px 1px rgb(22 30 60 / 0.05), 0 14px 40px -18px rgb(22 30 60 / 0.28);
  --r: 10px;
  --r-sm: 6px;
  --r-paper: 2px;
  --header-h: 64px;
  --wrap: 1240px;
  --gutter: 16px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111316;
    --bg-sunk: #0c0e10;
    --surface: #171a1e;
    --field: #1c1f24;
    --ink: #eceef1;
    --ink-2: #b9bec6;
    --ink-3: #959ba5;
    --line: #2a2e35;
    --line-strong: #3b4049;
    --accent: #8ea2ff;
    --accent-ink: #0e1122;
    --accent-text: #a8b8ff;
    --accent-soft: #1b2142;
    --accent-line: #34407a;
    --warn-bg: #2b2412;
    --warn-ink: #f0d58f;
    --warn-line: #574718;
    --err: #ff8a7a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px -12px rgb(0 0 0 / 0.6);
    --shadow-paper: 0 1px 1px rgb(0 0 0 / 0.4), 0 18px 44px -18px rgb(0 0 0 / 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111316; --bg-sunk: #0c0e10; --surface: #171a1e; --field: #1c1f24;
  --ink: #eceef1; --ink-2: #b9bec6; --ink-3: #959ba5; --line: #2a2e35; --line-strong: #3b4049;
  --accent: #8ea2ff; --accent-ink: #0e1122; --accent-text: #a8b8ff; --accent-soft: #1b2142; --accent-line: #34407a;
  --warn-bg: #2b2412; --warn-ink: #f0d58f; --warn-line: #574718; --err: #ff8a7a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px -12px rgb(0 0 0 / 0.6);
  --shadow-paper: 0 1px 1px rgb(0 0 0 / 0.4), 0 18px 44px -18px rgb(0 0 0 / 0.7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -0.18em; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--r-sm); z-index: 60; }
.skip:focus { top: 8px; }

/* ---------- En-tête ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-head { backdrop-filter: saturate(140%) blur(8px); } }
.head-in { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.02em; font-size: 1.05rem; white-space: nowrap; }
.brand-mark {
  width: 22px; height: 28px; position: relative; flex: none;
  background: var(--accent);
  clip-path: polygon(0 0, 68% 0, 100% 26%, 100% 100%, 0 100%);
  border-radius: 2px;
}
.brand-mark::after { content: ""; position: absolute; right: 0; top: 0; width: 32%; height: 26%; background: color-mix(in srgb, var(--accent) 55%, var(--bg)); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.brand b { font-weight: 650; }
.brand span { color: var(--ink-3); font-weight: 500; }
.menu { margin-left: auto; position: relative; }
@media (min-width: 640px) { .menu { margin-left: 0; } }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
  width: min(92vw, 360px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 10px;
}
.menu-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.menu-panel a:hover { background: var(--bg-sunk); }
.menu-panel p { margin: 10px 12px 4px; font-size: 0.8rem; color: var(--ink-3); font-weight: 600; }


/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--r-sm);
  font: inherit; font-size: 0.95rem; font-weight: 550; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-quiet { background: transparent; color: var(--ink-2); padding-inline: 10px; min-height: 40px; }
.btn-quiet:hover { color: var(--ink); background: var(--bg-sunk); }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn.is-busy .i { animation: mi-pulse 1s ease-in-out infinite; }
@keyframes mi-pulse { 50% { opacity: 0.35; } }
.btn-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--ink-3); cursor: pointer; }
.btn-icon:hover { color: var(--err); border-color: var(--line); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Fil d'Ariane, en-tête de page ---------- */
.crumbs { font-size: 0.85rem; color: var(--ink-3); padding-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding: 14px 0 20px; }
.page-head h1 { font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.6rem); font-weight: 650; letter-spacing: -0.025em; max-width: 26ch; }
.page-head .lede { margin: 10px 0 0; font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 0.86rem; color: var(--ink-3); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts a { color: var(--ink-2); }
.facts .verified { color: var(--accent-text); font-weight: 550; }

/* ---------- Générateur ---------- */
.gen-zone { padding-bottom: 8px; }
.gen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.gen-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gen-tabs { display: inline-flex; padding: 3px; background: var(--bg-sunk); border-radius: var(--r-sm); gap: 2px; }
.gen-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.9rem; font-weight: 550; padding: 7px 12px; border-radius: 4px; cursor: pointer; min-height: 36px; }
.gen-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.gen-tools { display: flex; gap: 2px; flex-wrap: wrap; }
.gen-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.gen-form { padding: 6px 18px 18px; min-width: 0; }
.gen-side { background: var(--bg-sunk); padding: 16px; border-top: 1px solid var(--line); min-width: 0; border-radius: 0 0 var(--r) var(--r); }
@media (max-width: 1023px) {
  .gen-top { position: sticky; top: var(--header-h); z-index: 20; background: var(--surface); border-radius: var(--r) var(--r) 0 0; }
  .gen[data-view="form"] .gen-preview { display: none; }
  .gen[data-view="preview"] .gen-form { display: none; }
  .gen[data-view="preview"] .gen-side { border-top: 0; }
}
@media (min-width: 1024px) {
  .gen-tabs { display: none; }
  .gen-top { justify-content: flex-end; }
  .gen-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .gen-side { border-top: 0; border-left: 1px solid var(--line); border-radius: 0 0 var(--r) 0; display: flex; flex-direction: column; }
  .gen-side-in { position: sticky; top: calc(var(--header-h) + 12px); }
  .gen-preview { max-height: calc(100dvh - var(--header-h) - 190px); min-height: 420px; overflow: auto; }
}

.sec { border: 0; margin: 0; padding: 18px 0 6px; min-width: 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec legend { float: left; width: 100%; padding: 0; font-weight: 650; font-size: 1rem; margin-bottom: 4px; }
.sec legend + * { clear: both; }
.sec-intro { font-size: 0.88rem; color: var(--ink-3); margin: 0 0 10px; clear: both; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 14px; clear: both; padding-top: 8px; }
.fld { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (min-width: 560px) {
  .fld-half { grid-column: span 3; }
  .fld-third { grid-column: span 2; }
  .fld-twothirds { grid-column: span 4; }
}
.fld[hidden], .sec[hidden] { display: none; }
.lbl { font-size: 0.9rem; font-weight: 550; color: var(--ink); margin: 0; }
.req { color: var(--accent-text); }
.help { font-size: 0.82rem; color: var(--ink-3); margin: 0; line-height: 1.45; }
.err { font-size: 0.82rem; color: var(--err); margin: 0; font-weight: 550; }
.gen input[type="text"], .gen input[type="email"], .gen input[type="tel"], .gen input[type="date"], .gen input[type="month"], .gen select, .gen textarea {
  width: 100%; min-height: 44px; padding: 9px 12px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.gen textarea { resize: vertical; line-height: 1.5; }
.gen input:hover, .gen select:hover, .gen textarea:hover { border-color: var(--ink-3); }
.gen input:focus, .gen select:focus, .gen textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--err); }
.sel { position: relative; }
.sel select { appearance: none; padding-right: 36px; }
.sel .i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); }
.affix { position: relative; }
.affix input { padding-right: 42px; }
.affix .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 0.92rem; pointer-events: none; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio, .check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.95rem; line-height: 1.45; }
.radio { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--field); }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio input, .check input { margin: 0.18em 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.info-note { flex-direction: row; gap: 10px; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--r-sm); font-size: 0.88rem; color: var(--ink-2); }
.info-note .i { color: var(--accent-text); margin-top: 2px; }
.info-note p { margin: 0; }

.repeat .rep-items { display: grid; gap: 10px; margin-top: 4px; }
.rep-item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--field); padding: 4px 12px 12px; }
.rep-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 2px; }
details.rep-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 0; cursor: pointer; }
details.rep-item > summary::-webkit-details-marker { display: none; }
details.rep-item > summary .chev { transition: transform 0.2s var(--ease); color: var(--ink-3); }
details.rep-item[open] > summary .chev { transform: rotate(180deg); }
.rep-title { font-weight: 600; font-size: 0.93rem; }
.rep-foot { display: flex; justify-content: flex-end; padding-top: 6px; }
.rep-add { margin-top: 6px; justify-self: start; border: 1px dashed var(--line-strong); }

.gen-store { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.gen-warn { display: grid; gap: 8px; margin-bottom: 12px; }
.gen-warn:empty { display: none; }
.warn { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 0.88rem; line-height: 1.45; }
.warn p { margin: 0; }
.warn .i { margin-top: 1px; }
.warn-info { background: var(--accent-soft); color: var(--ink-2); }
.warn-info .i { color: var(--accent-text); }
.warn-warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.gen-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gen-actions .btn-primary { flex: 1 1 auto; }
.gen-status { min-height: 1.4em; margin: 8px 0 0; font-size: 0.85rem; color: var(--accent-text); }
.gen-privacy { display: flex; gap: 8px; align-items: center; margin: 4px 0 0; font-size: 0.8rem; color: var(--ink-3); }

/* ---------- Feuille de papier (aperçu) ---------- */
.gen-preview { container-type: inline-size; border-radius: var(--r-sm); }
.gen-preview:focus-visible { outline-offset: 4px; }
.paper {
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--r-paper); box-shadow: var(--shadow-paper);
  aspect-ratio: 210 / 297; padding: 8% 8.5% 7%;
  font-family: var(--font); font-size: clamp(9.5px, 1.82cqi, 13.5px); line-height: 1.45;
  transition: opacity 0.2s var(--ease);
}
.paper p { margin: 0 0 0.62em; }
.d-title { font-size: 1.5em; text-align: center; letter-spacing: -0.01em; margin: 0 0 0.25em; color: var(--paper-ink); }
.d-sub { text-align: center; color: #5b616b; font-size: 0.92em; margin-bottom: 1.4em !important; }
.d-meta { text-align: right; }
.d-h { font-size: 1.06em; margin: 1.2em 0 0.5em; color: var(--paper-ink); }
.d-p { text-align: justify; hyphens: auto; }
.d-small { font-size: 0.9em; }
.d-center { text-align: center; }
.d-note { font-size: 0.82em; font-style: italic; color: #5b616b; }
.d-space { height: 0.8em; }
.d-break { border: 0; border-top: 1px dashed #c9ccd1; margin: 1.6em 0; }
.d-list { margin: 0 0 0.8em; padding-left: 1.3em; }
.d-list li { margin-bottom: 0.2em; }
.d-check { list-style: none; margin: 0 0 0.8em; padding: 0; }
.d-check li { display: flex; gap: 0.6em; align-items: baseline; margin-bottom: 0.25em; }
.d-box { width: 0.85em; height: 0.85em; border: 1px solid #16181c; flex: none; position: relative; top: 0.1em; }
.d-box.on { background: linear-gradient(45deg, transparent 44%, #16181c 44%, #16181c 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #16181c 44%, #16181c 56%, transparent 56%); }
.d-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; margin: 0.4em 0 1.2em; }
.d-parties p { margin: 0 0 0.12em; }
.d-plabel { font-size: 0.78em; font-weight: 700; letter-spacing: 0.04em; color: #5b616b; margin-bottom: 0.4em !important; }
.d-kv, .d-table { width: 100%; border-collapse: collapse; margin: 0.3em 0 1.1em; }
.d-kv th, .d-kv td, .d-table th, .d-table td { border: 1px solid #d3d6da; padding: 0.38em 0.55em; text-align: left; vertical-align: top; }
.d-kv th { width: 42%; font-weight: 400; color: #5b616b; }
.d-kv tr.strong th, .d-kv tr.strong td { font-weight: 700; color: #16181c; }
.d-table th { font-size: 0.86em; color: #5b616b; font-weight: 700; }
.d-table.small td { font-size: 0.88em; }
.d-tablewrap { overflow-x: auto; }
.d-box-frame { border: 1px solid #d3d6da; padding: 0.8em 1em 0.3em; margin: 0.3em 0 1.1em; }
.d-hand { margin: 0.6em 0 1.2em; }
.d-handtext { font-size: 0.86em; font-style: italic; color: #3b4048; }
.d-lines { height: calc(var(--lines) * 1.6em); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.6em - 1px), #d3d6da calc(1.6em - 1px), #d3d6da 1.6em); }
.d-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6em; margin-top: 1.4em; break-inside: avoid; }
.d-sign p { margin: 0 0 0.15em; }
.d-signzone { height: 5.5em; border: 1px dashed #c9ccd1; margin-top: 0.4em; }
.paper .blank { display: inline-block; min-width: 7em; border-bottom: 1px dotted #8b9099; height: 0.9em; vertical-align: baseline; }

/* Générateur réduit (accueil) */
.gen-mini { display: grid; gap: 14px; }
.gen-mini .gen-form { padding: 0; }
.gen-mini .sec { padding: 0; }
.gen-mini .grid { padding-top: 0; gap: 10px; }
.gen-mini .gen-preview { position: relative; }
.gen-mini .paper { aspect-ratio: auto; min-height: 0; font-size: clamp(9px, 1.95cqi, 12.5px); }

/* ---------- Impression ---------- */
.mi-print { display: none; }
@media print {
  body.is-printing > *:not(.mi-print) { display: none !important; }
  body.is-printing .mi-print { display: block; }
  body.is-printing { background: #fff; }
  .mi-print .paper { box-shadow: none; aspect-ratio: auto; padding: 0; font-size: 10.5pt; }
  @page { size: A4; margin: 18mm 17mm; }
}

/* ---------- Contenu éditorial ---------- */
.content-grid { display: grid; gap: 40px; padding: 48px 0 24px; }
@media (min-width: 1024px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; }
  .content-aside { order: 2; }
}
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.9rem; }
.toc p { font-weight: 650; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a.is-current { color: var(--accent-text); border-left-color: var(--accent); }
@media (max-width: 1023px) { .content-aside { display: none; } }

.prose { max-width: 70ch; }
.prose > h2 { font-size: clamp(1.4rem, 1.15rem + 0.85vw, 1.85rem); font-weight: 650; letter-spacing: -0.02em; margin: 2.6em 0 0.6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--bg-sunk); }
.prose .table-wrap { overflow-x: auto; margin: 1em 0 1.5em; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose .table-wrap table { margin: 0; }
.prose .table-wrap tr:last-child td { border-bottom: 0; }

/* Citation de texte officiel */
.cite { margin: 1.4em 0 1.6em; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); }
.cite blockquote { margin: 0; }
.cite blockquote p { color: var(--ink); font-size: 1rem; margin-bottom: 0.6em; }
.cite figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 0.84rem; color: var(--ink-3); }
.cite figcaption a { display: inline-flex; align-items: center; gap: 5px; font-weight: 550; }

/* Liste des mentions obligatoires */
.mentions { list-style: none; padding: 0 !important; margin: 1em 0 1.6em !important; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mentions li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
@media (min-width: 720px) { .mentions li { grid-template-columns: minmax(0, 1fr) 210px; } }
.mentions .m-what { color: var(--ink); font-weight: 550; }
.mentions .m-what small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.88rem; margin-top: 2px; }
.mentions .m-src { font-size: 0.84rem; color: var(--ink-3); }
.mentions .m-src a { font-weight: 550; }

/* Étapes (HowTo) */
.steps { list-style: none; padding: 0 !important; margin: 1.2em 0 1.6em !important; counter-reset: st; display: grid; gap: 18px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin: 0 !important; }
.steps li::before { content: counter(st); font-family: var(--mono); font-size: 0.9rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.steps h3 { margin: 4px 0 4px !important; font-size: 1.05rem !important; }
.steps p { margin: 0; }

/* Encadrés */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-sm); margin: 1.4em 0; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.callout .i { color: var(--accent-text); margin-top: 3px; width: 1.3em; height: 1.3em; }
.callout p { margin: 0 0 0.5em; color: var(--ink-2); }
.callout p:last-child { margin: 0; }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout-warn .i, .callout-warn p, .callout-warn strong { color: var(--warn-ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin: 1em 0 1.4em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { margin-top: 3px; color: var(--ink-3); transition: transform 0.25s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--accent-text); }
.faq .faq-a { padding: 0 0 16px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Liens internes */
.related { display: grid; gap: 10px; margin: 1em 0 1.6em; }
@media (min-width: 640px) { .related { grid-template-columns: 1fr 1fr; } }
.related a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.related a:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.related .ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.related .ic .i { width: 22px; height: 22px; }
.related strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.3; }
.related span.d { display: block; color: var(--ink-3); font-size: 0.88rem; line-height: 1.4; margin-top: 2px; }
.related .ext { font-size: 0.78rem; color: var(--ink-3); }

/* Bandeau d'action */
.cta { margin: 2.6em 0 1em; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
@media (min-width: 720px) { .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 28px 30px; } }
.cta h2 { font-size: 1.35rem !important; margin: 0 0 6px !important; }
.cta p { margin: 0; color: var(--ink-2); }

/* Sources, auteur, avertissement */
.sources { font-size: 0.9rem; border-top: 1px solid var(--line); margin-top: 0.6em; }
.sources li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; color: var(--ink-2); }
.sources ul { padding: 0; margin: 0; }
.sources .mono { color: var(--ink-3); }
.author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 2em 0 1em; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 1.05rem; letter-spacing: 0.02em; }
.author p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.author .who { font-weight: 650; color: var(--ink); font-size: 1rem; }
.author .who a { color: inherit; }
.author .role { color: var(--ink-3); font-size: 0.88rem; margin-bottom: 6px; }
.dates { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.85rem; color: var(--ink-3); margin: 0 0 1em; }
.disclaimer { display: flex; gap: 12px; padding: 16px 18px; background: var(--bg-sunk); border-radius: var(--r-sm); font-size: 0.88rem; color: var(--ink-2); margin: 1.2em 0 0; }
.disclaimer .i { margin-top: 2px; color: var(--ink-3); width: 1.25em; height: 1.25em; }
.disclaimer p { margin: 0 0 0.4em; }
.disclaimer p:last-child { margin: 0; }
.gen-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-3); margin: 12px 2px 0; max-width: 100ch; }
.gen-note .i { margin-top: 2px; }
.gen-note p { margin: 0; }

/* ---------- Accueil ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; } .hero { padding: 56px 0 72px; } }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3rem); font-weight: 680; letter-spacing: -0.035em; line-height: 1.06; max-width: 17ch; }
@media (min-width: 1024px) { .hero h1 { font-size: clamp(2rem, 0.4rem + 2.6vw, 2.7rem); max-width: none; } }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 44ch; margin: 18px 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.hero-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.85rem; color: var(--ink-3); }
.hero-demo-head strong { color: var(--ink); font-size: 0.95rem; }
.hero-demo .gen-mini { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .hero-demo .gen-mini .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero-demo .gen-mini .fld { grid-column: span 1; } }
.hero-demo .gen-mini .gen-preview { max-height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section h2.big { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 660; letter-spacing: -0.03em; max-width: 22ch; margin-bottom: 12px; }
.section .intro { color: var(--ink-2); max-width: 60ch; margin-bottom: 28px; }

.families { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .families { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; }
  .fam-louer { grid-row: span 2; }
  .fam-gerer { grid-column: 2 / 4; }
}
.fam { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.fam figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-sunk); }
.fam-louer figure { aspect-ratio: 4 / 3; }
.fam-gerer { display: grid; }
@media (min-width: 900px) { .fam-gerer { grid-template-columns: 0.9fr 1.1fr; } .fam-gerer figure { aspect-ratio: auto; height: 100%; } }
.fam figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.fam:hover figure img { transform: scale(1.02); }
.fam-body { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.fam h3 { font-size: 1.2rem; font-weight: 650; }
.fam .fam-d { color: var(--ink-3); font-size: 0.93rem; margin: 0 0 6px; }
.fam ul { list-style: none; margin: 0; padding: 0; }
.fam li a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.fam li a .i { color: var(--accent-text); }
.fam li a .go { margin-left: auto; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.fam li a:hover { color: var(--accent-text); }
.fam li a:hover .go { transform: translateX(3px); color: var(--accent-text); }

.how { display: grid; gap: 32px; }
@media (min-width: 1024px) { .how { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } .how-media { position: sticky; top: calc(var(--header-h) + 24px); } }
.how-media img { border-radius: var(--r); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.how-media h2 { margin-bottom: 18px; }
.how-list { display: grid; }
.how-item { padding: 24px 0; border-top: 1px solid var(--line); }
.how-item:first-child { border-top: 0; padding-top: 0; }
.how-item h3 { font-size: 1.25rem; font-weight: 650; margin-bottom: 10px; }
.how-item p { color: var(--ink-2); margin-bottom: 0.7em; }

.promise { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
@media (min-width: 800px) { .promise { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.promise div { padding: 22px 20px; border-top: 1px solid var(--line); }
.promise div:first-child { border-top: 0; }
@media (min-width: 800px) { .promise div { border-top: 0; border-left: 1px solid var(--line); } .promise div:first-child { border-left: 0; } }
.promise .i { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 10px; }
.promise strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.promise p { margin: 0; color: var(--ink-3); font-size: 0.92rem; line-height: 1.5; }

/* Pages simples (légal, méthode, auteurs) */
.page-simple { padding: 8px 0 64px; }
.page-simple .prose { max-width: 74ch; }
.legal-meta { font-size: 0.88rem; color: var(--ink-3); margin: 8px 0 28px; }
.method-figure { margin: 8px 0 32px; }
.method-figure img { border-radius: var(--r); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.flow { list-style: none; padding: 0 !important; margin: 1.4em 0 2em !important; display: grid; gap: 12px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flow li { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); margin: 0 !important; }
.flow li strong { display: block; margin-bottom: 4px; }
.flow li p { margin: 0; font-size: 0.95rem; }
.team { display: grid; gap: 14px; margin: 1.4em 0 2em; }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team .author { margin: 0; grid-template-columns: 56px minmax(0, 1fr); }
.sitemap-cols { display: grid; gap: 28px; margin-top: 12px; }
@media (min-width: 720px) { .sitemap-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sitemap-cols h2 { font-size: 1.1rem !important; margin: 0 0 8px !important; }
.sitemap-cols ul { padding-left: 1.1em; }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--bg-sunk); border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 40px; font-size: 0.92rem; }
.foot-top { display: grid; gap: 32px; }
@media (min-width: 1024px) { .foot-top { grid-template-columns: 1.1fr 3fr; gap: 56px; } }
.foot-brand p { color: var(--ink-3); margin: 12px 0 0; max-width: 34ch; }
.foot-plan h2 { font-size: 0.82rem; font-weight: 650; color: var(--ink); margin: 0 0 10px; }
.foot-cols { display: grid; gap: 24px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.foot-cols h3 { font-size: 0.82rem; font-weight: 650; color: var(--ink-3); margin: 0 0 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; line-height: 1.35; display: inline-block; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--ink-3); font-size: 0.84rem; }
.foot-bottom p { margin: 0; max-width: 110ch; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: var(--ink-3); }

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: mi-rise 0.7s var(--ease) both; }
  .reveal-2 { animation-delay: 0.08s; }
  .reveal-3 { animation-delay: 0.16s; }
  @keyframes mi-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
.example-paper { max-width: 560px; margin: 1.2em 0 1.8em; }
.sources-notes { font-size: 0.86rem; padding-left: 1.3em; }
.sources-notes li { margin-bottom: 0.5em; }
.team-list { display: grid; gap: 28px; margin-top: 8px; }
.member .author { margin: 0 0 12px; }
.member .who { font-size: 1.25rem; margin: 0; }
.member-links { display: flex; gap: 16px; margin-top: 8px !important; font-size: 0.9rem; }
.member-docs { display: grid; gap: 16px; padding: 0 4px; }
@media (min-width: 720px) { .member-docs { grid-template-columns: 1fr 1fr; padding-left: 92px; } }
.member-docs h3 { font-size: 0.85rem; color: var(--ink-3); margin: 0 0 6px; font-weight: 650; }
.member-docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.95rem; }
sup + sup::before { content: ","; }
@media (max-width: 559px) {
  .page-head { padding: 10px 0 14px; }
  .page-head .lede { font-size: 1rem; margin-top: 8px; }
  .facts { margin-top: 10px; gap: 4px 14px; font-size: 0.82rem; }
  .facts span:last-child { display: none; }
  .gen-tools .btn span { font-size: 0.88rem; }
}
.author-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px !important; font-size: 0.88rem; }
.author-links a { display: inline-flex; align-items: center; gap: 4px; font-weight: 550; }
.foot-social { margin-top: 10px !important; }
.foot-social a { color: var(--ink-2); font-weight: 550; }
/* Page contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; } .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.contact-card h2 { font-size: 0.85rem; font-weight: 650; color: var(--ink-3); margin: 0 0 4px; }
.contact-card p { margin: 0 0 16px; color: var(--ink-2); font-size: 0.95rem; }
.contact-card p:last-child { margin: 0; }
.contact-form { margin-top: 1.6em; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.cf-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .cf-grid { grid-template-columns: 1fr 1fr; } .cf-full { grid-column: 1 / -1; } }
.cf-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-fld label { font-size: 0.9rem; font-weight: 550; color: var(--ink); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.contact-form textarea { resize: vertical; line-height: 1.5; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.contact-form .sel select { appearance: none; padding-right: 36px; }
.contact-form .has-err input, .contact-form .has-err select, .contact-form .has-err textarea { border-color: var(--err); }
.contact-form .help { margin: 0; }
.cf-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-info { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0 !important; font-size: 0.84rem !important; color: var(--ink-3) !important; }
.cf-info .i { margin-top: 2px; flex: none; }
.cf-actions { margin-top: 16px; }
.cf-status { min-height: 1.4em; margin: 12px 0 0 !important; font-size: 0.92rem !important; }
.cf-status.is-ok { color: var(--accent-text) !important; font-weight: 600; }
.cf-status.is-err { color: var(--err) !important; font-weight: 550; }
/* Logo PNG */
.brand img { display: block; height: 30px; width: auto; }
.site-foot .brand img { height: 28px; }
/* Bouton projet dans l'en-tête */
.head-cta { display: none; min-height: 40px; padding: 8px 14px; font-size: 0.9rem; }

.menu-cta { padding: 6px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-cta .btn { width: 100%; color: var(--accent-ink); }
.menu-panel .menu-cta a.btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
/* Bandeau éditeur : les trois associés */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.editor-strip { display: flex; align-items: center; gap: 12px; min-width: 0; }
.editor-strip p { margin: 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }
.editor-strip p a { font-weight: 600; }
.editor-strip .li { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.editor-strip .li .i { color: var(--accent-text); }
.trio { display: inline-flex; flex: none; padding-left: 10px; text-decoration: none; }
.trio img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-left: -10px; border: 2px solid var(--accent); box-shadow: 0 0 0 2px var(--bg); background: var(--bg-sunk); transition: transform 0.2s var(--ease); }
.trio:hover img { transform: translateY(-2px); }
.trio img:nth-child(2) { z-index: 1; position: relative; }
.hero .editor-strip { margin-top: 22px; }
@media (max-width: 559px) {
  .hero-meta { margin-top: 12px; padding-top: 12px; gap: 10px; }
  .trio img { width: 36px; height: 36px; }
  .editor-strip p { font-size: 0.84rem; }
  .hero-meta .btn { width: 100%; }
}
/* Pied de page : bandeau projet */
.foot-cta { display: grid; gap: 18px; align-items: center; padding: 22px 24px; margin-bottom: 40px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 900px) { .foot-cta { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; } }
.foot-cta .trio img { width: 52px; height: 52px; }
.foot-cta .t { font-weight: 650; font-size: 1.15rem; color: var(--ink); margin: 0 0 4px; }
.foot-cta p { margin: 0; color: var(--ink-2); }
.foot-plan h2 a { color: inherit; text-decoration: none; }
.foot-plan h2 a:hover { text-decoration: underline; }
.foot-social a { display: inline-flex; align-items: center; gap: 6px; }
/* Encadré auteur avec photo */
img.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.author-big { grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
.author-big img.avatar { width: 120px; height: 120px; }
@media (max-width: 559px) { .author-big { grid-template-columns: 1fr; } }
.author-page .member-docs { padding-left: 0; margin-top: 8px; }
.author-page .member-docs h2 { font-size: 0.95rem; margin: 0 0 8px; }
/* Page projet */
.project-form { margin-top: 0; }
.pf-title { font-size: 1.25rem !important; margin: 0 0 14px !important; }
.pf-team { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pf-team li { display: flex; gap: 10px; align-items: center; }
.pf-team img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex: none; }
.pf-team strong { display: block; font-size: 0.95rem; color: var(--ink); }
.pf-team span span { font-size: 0.84rem; color: var(--ink-3); }
.pf-list, .pf-steps { margin: 0 0 16px; padding-left: 1.2em; font-size: 0.92rem; color: var(--ink-2); }
.pf-list li, .pf-steps li { margin-bottom: 4px; }
.pf-note { font-size: 0.86rem !important; color: var(--ink-3) !important; }
/* Exemple rempli (capture du PDF) */
.example-shot { margin: 1.4em 0 1.8em; max-width: 520px; }
.example-shot a { display: block; border-radius: var(--r-paper); box-shadow: var(--shadow-paper); overflow: hidden; background: var(--paper); }
.example-shot img { width: 100%; height: auto; display: block; transition: transform 0.4s var(--ease); }
.example-shot a:hover img { transform: scale(1.01); }
.example-shot figcaption { font-size: 0.86rem; color: var(--ink-3); margin-top: 10px; line-height: 1.45; }

/* ---------- Menu principal (v2) : familles de modèles avec sous-menus ---------- */
:root { --header-h: 68px; }
.head-in { gap: 20px; }
.brand img { height: 28px; }
.nav { display: none; margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer;
  font: inherit; font-size: 0.93rem; font-weight: 550; letter-spacing: -0.01em; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-trigger .chev { width: 14px; height: 14px; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.nav-trigger:hover, .nav-link:hover, .has-sub:focus-within > .nav-trigger, .has-sub.is-open > .nav-trigger { color: var(--ink); background: var(--bg-sunk); }
.has-sub.is-open > .nav-trigger .chev, .has-sub:hover > .nav-trigger .chev { transform: rotate(180deg); }
.has-sub.is-active > .nav-trigger, .nav-link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: -8px; z-index: 50; display: none;
  width: 340px; padding: 14px; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sub.sub-2 { width: 600px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { display: block; animation: mi-drop 0.18s var(--ease); }
@keyframes mi-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sub-head { margin: 0 6px 10px; font-size: 0.82rem; color: var(--ink-3); }
.sub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sub.sub-2 ul { grid-template-columns: 1fr 1fr; }
.sub li a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-sm); text-decoration: none; }
.sub li a:hover, .sub li a[aria-current="page"] { background: var(--accent-soft); }
.sub .ic { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--bg-sunk); color: var(--accent-text); }
.sub li a:hover .ic { background: var(--surface); }
.sub .ic .i { width: 18px; height: 18px; }
.sub strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.sub small { display: block; font-size: 0.78rem; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.sub-foot { display: flex; justify-content: space-between; gap: 12px; margin: 10px 6px 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.sub-foot a { color: var(--accent-text); font-weight: 550; text-decoration: none; }
.sub-foot a:hover { text-decoration: underline; }
.has-sub:last-of-type .sub { left: auto; right: -8px; }
.nav-extra { display: none; }
.head-cta { display: none; min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
/* Tablette : bouton projet visible à côté du menu */
@media (min-width: 640px) { .head-cta { display: inline-flex; margin-left: auto; } .menu { margin-left: 0; } }
/* Ordinateur : menu déroulant complet */
@media (min-width: 1160px) {
  .nav { display: block; }
  .menu { display: none; }
  .head-cta { margin-left: 6px; }
}
/* « Notre méthode » reste dans les sous-menus, le menu mobile et le pied de page : la barre n'a pas la place pour un cinquième intitulé. */
@media (max-width: 1259px) and (min-width: 1160px) { .nav-trigger { padding: 0 9px; font-size: 0.9rem; } .head-cta { padding: 0 12px; } }
/* Logo : jamais compressé par le menu (proportions 960 x 132 conservées) */
.brand { flex: none; }
.brand img { max-width: none; width: auto; aspect-ratio: 960 / 132; }
.site-head .brand img { height: 28px; }
.site-foot .brand img { height: 28px; }
/* Barre de liens utiles (au-dessus de l'en-tête, non collante) */
.topbar { display: none; background: var(--bg-sunk); border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-3); }
@media (min-width: 1024px) { .topbar { display: block; } }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.topbar p { margin: 0; }
.topbar p a { color: var(--ink-2); font-weight: 550; }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--accent-text); text-decoration: underline; }
/* Page Qui sommes-nous */
.about-list { padding-left: 1.2em; }
.about-list li { margin-bottom: 0.5em; }
.about-team { display: grid; gap: 16px; margin: 0.6em 0 2.4em; max-width: 70ch; }
.team-box { grid-template-columns: 88px minmax(0, 1fr); margin: 0; }
.team-box img.avatar { width: 88px; height: 88px; }
.team-box .who { font-size: 1.15rem; margin: 0 0 2px; }
.team-box .who a { color: var(--ink); text-decoration: none; }
.team-box .who a:hover { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 559px) { .team-box { grid-template-columns: 64px minmax(0, 1fr); } .team-box img.avatar { width: 64px; height: 64px; } }
