/*
Theme Name: AIL Annuaire
Description: Thème de l'Annuaire Investissement Locatif. Gabarits PHP natifs (classements, fiches, territoires), sans constructeur visuel. Nécessite l'extension « Annuaire Investissement Locatif ».
Version: 0.1.0
Requires PHP: 8.1
Text Domain: ail
*/
/* Annuaire Investissement Locatif : feuille unique, sans framework.
   Lecture : annuaire de confiance, registre éditorial-institutionnel.
   Une seule couleur d'accent (vert sapin), radius 0 partout, chiffres en mono. */

:root {
  --bg: #f3f4f1;
  --surface: #fbfbf9;
  --surface-2: #e9ece7;
  --ink: #15191b;
  --ink-2: #2c3336;
  --muted: #535c60;
  --line: #d3d8d4;
  --line-strong: #8d968f;
  --accent: #1f5c47;
  --accent-ink: #f4f8f6;
  --accent-wash: #e3eee8;
  --accent-text: #1a5040;
  --decl: #7a4a00;
  --decl-wash: #f7ecd9;
  --err: #a3261b;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --wrap: 1240px;
  --gut: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1312; --surface: #151a19; --surface-2: #1b2220; --ink: #e6ebe8; --ink-2: #cfd6d2;
    --muted: #a0aaa5; --line: #2b3431; --line-strong: #5f6b66; --accent: #6cc19d; --accent-ink: #0c1512;
    --accent-wash: #16261f; --accent-text: #8fd6b6; --decl: #e8b866; --decl-wash: #2a2114; --err: #ff8a7a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1312; --surface: #151a19; --surface-2: #1b2220; --ink: #e6ebe8; --ink-2: #cfd6d2;
  --muted: #a0aaa5; --line: #2b3431; --line-strong: #5f6b66; --accent: #6cc19d; --accent-ink: #0c1512;
  --accent-wash: #16261f; --accent-text: #8fd6b6; --decl: #e8b866; --decl-wash: #2a2114; --err: #ff8a7a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font); font-feature-settings: "ss01";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 2.85rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
h3 { font-size: 1.12rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
abbr[title] { text-decoration: none; cursor: help; }
time, .num, .revision, .w, .score, .sub { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
@media (min-width: 768px) { :root { --gut: 32px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 30; }
.skip:focus { left: 0; }

.small { font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }
.sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; line-height: 1.35; margin-top: .15rem; }
.intro { color: var(--ink-2); max-width: 62ch; font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 64ch; }
.eyebrow { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); margin-bottom: 1rem; }
.mt { margin-top: 2rem; }

/* Bandeau maquette */
.demo-strip { background: var(--decl-wash); color: var(--decl); font-size: .8rem; text-align: center; padding: .4rem var(--gut); border-bottom: 1px solid var(--line); }

/* Bandeau d'appel à la mise en relation */
.cta-strip { background: var(--accent); color: var(--accent-ink); font-size: .88rem; }
.cta-strip-row { display: flex; align-items: center; justify-content: center; gap: .4rem 1.25rem; flex-wrap: wrap; min-height: 40px; padding-block: .45rem; text-align: center; }
.cta-strip p { margin: 0; }
.cta-strip a { color: var(--accent-ink); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.cta-strip a:hover { text-decoration-thickness: 2px; }
@media (max-width: 640px) { .cta-strip p { font-size: .82rem; } }

/* En-tête */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand picture, .brand img { display: block; height: 26px; width: auto; }
.brand-mark { width: 26px; height: 26px; background: var(--accent); position: relative; flex-shrink: 0; }
.brand-mark::after { content: ""; position: absolute; inset: 7px 7px 0 0; background: var(--bg); }
.brand-name { font-weight: 700; font-size: .92rem; line-height: 1.05; letter-spacing: -.01em; }
.nav-main { margin-left: auto; }
.nav-main ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-main a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; padding-block: .35rem; border-bottom: 2px solid transparent; }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta { flex-shrink: 0; }
.nav-mobile { display: none; margin-left: auto; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; font-weight: 600; padding: .5rem .75rem; border: 1px solid var(--line-strong); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile ul { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); list-style: none; margin: 0; padding: .5rem 0; width: min(86vw, 320px); box-shadow: 0 18px 40px -20px rgb(21 25 27 / .35); }
.nav-mobile li a { display: block; padding: .7rem 1rem; color: var(--ink); text-decoration: none; }
.nav-mobile li a:hover { background: var(--surface-2); }
@media (max-width: 1120px) { .header-row .nav-main, .header-row .nav-cta { display: none; } .nav-mobile { display: block; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .98rem/1 var(--font); padding: .95rem 1.35rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s cubic-bezier(.16,1,.3,1), color .2s, border-color .2s, transform .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-sm { padding: .65rem 1rem; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
@media (max-width: 520px) { .cta-row .btn { width: 100%; white-space: normal; text-align: center; } }

/* Fil d'Ariane */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 1.25rem 0 0; padding: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

.revision { font: 400 .8rem/1.5 var(--mono); color: var(--muted); margin: 1rem 0 0; }
.revision .sep { display: inline-block; width: 1px; height: .9em; background: var(--line-strong); margin: 0 .75rem; vertical-align: -.1em; }

/* Accueil */
.hero { display: grid; gap: 2rem; padding-block: 2.5rem 3rem; align-items: center; }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.08fr .92fr; gap: 4rem; padding-block: 4rem 5rem; } }
.hero h1 { font-size: clamp(2rem, 1.25rem + 2.4vw, 3.05rem); max-width: 21ch; }
.hero .lead { max-width: 46ch; }
.hero-fig { margin: 0; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--surface-2); }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; }

.home-rubs { padding-block: 3rem; border-top: 1px solid var(--line); }
.rub-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.rub-row { display: grid; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: center; }
@media (min-width: 900px) { .rub-row { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }
.rub-link { text-decoration: none; color: var(--ink); display: block; }
.rub-name { display: block; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.rub-link:hover .rub-name { color: var(--accent-text); }
.rub-q { display: block; color: var(--muted); margin-top: .25rem; }
.rub-meta .small { margin: .5rem 0 0; }

.wbar { display: flex; gap: 3px; height: 12px; width: 100%; max-width: 520px; }
.wbar span { background: var(--accent); }
.wbar span:nth-child(2) { opacity: .78; } .wbar span:nth-child(3) { opacity: .6; }
.wbar span:nth-child(4) { opacity: .44; } .wbar span:nth-child(5) { opacity: .3; }

.home-alsace { padding-block: 3.5rem; display: grid; gap: 2rem; }
@media (min-width: 1024px) { .home-alsace { grid-template-columns: .8fr 1.6fr; gap: 3.5rem; align-items: start; } .alsace-head { position: sticky; top: 100px; } }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1.35fr 1fr; } .tile-paris { grid-row: span 2; } }
.tile { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.tile-paris img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.tile-body { padding: 1rem 1.1rem 1.1rem; }
.tile-body h3 { margin-bottom: .5rem; }
.tile-counts { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; font-size: .9rem; }
.tile-counts a, .tile-counts li.off { display: flex; justify-content: space-between; padding: .3rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tile-counts a span, .tile-counts li span { font-family: var(--mono); }
.tile-counts a:hover { color: var(--accent-text); }
.tile-counts li.off { color: var(--muted); }

.home-regions { padding-block: 1rem 3rem; scroll-margin-top: 90px; }
.home-regions .cover td.off { color: var(--muted); }

.manifest { background: var(--accent-wash); border-block: 1px solid var(--line); margin-block: 2rem; }
.manifest-inner { padding-block: 4rem; }
.manifest h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); max-width: 22ch; letter-spacing: -.025em; }
.manifest-cols { display: grid; gap: 1rem 3rem; margin: 1.5rem 0 1.25rem; color: var(--ink-2); }
@media (min-width: 900px) { .manifest-cols { grid-template-columns: 1fr 1fr; max-width: 980px; } }

.home-rules { padding-block: 3rem; }
.rules { margin: 1.5rem 0 0; }
.rule { display: grid; gap: .5rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .rule { grid-template-columns: 200px 1fr; align-items: baseline; } }
.rule dd { margin: 0; color: var(--ink-2); max-width: 70ch; }

/* Accueil : méthode et directeur de publication */
.home-eval { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
.eval-grid { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 768px) { .eval-grid { grid-template-columns: 1fr 1fr; } }
.eval-card { border: 1px solid var(--line); background: var(--surface); padding: 1.25rem 1.4rem; }
.eval-card:nth-child(1), .eval-card:nth-child(4) { background: var(--accent-wash); border-color: transparent; }
.eval-card i { font-size: 1.6rem; color: var(--accent-text); }
.eval-card h3 { margin: .6rem 0 .35rem; }
.eval-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.principes { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 80ch; }
.principes li { padding: .8rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.principes strong { color: var(--ink); }
.home-eval .rules { margin-bottom: 1.5rem; }
.director { display: grid; grid-template-columns: 112px 1fr; gap: 1.25rem; align-items: center; margin: 1.5rem 0 1.75rem; }
.director-photo { width: 112px; height: 112px; object-fit: cover; }
.director-photo.is-empty { border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--muted); font-size: 1.6rem; }
.director-name { font-weight: 700; font-size: 1.2rem; margin: 0; }
.director-role { color: var(--ink-2); margin: .2rem 0 .5rem; }
.director-links { margin: 0; font-size: .9rem; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .6rem; }
.director-links .sep { width: 1px; height: .9em; background: var(--line-strong); }
.director-bio p { font-size: 1.08rem; color: var(--ink); }
.director-bio p:first-child::before { content: "«\00a0"; }
.director-bio p:last-child::after { content: "\00a0»"; }
.releves-h { margin-top: 2rem; }
.releves { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.releves li { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: .25rem 1.5rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .92rem; align-items: baseline; }
.releves li span { color: var(--ink-2); }
.releves time { font-family: var(--mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) { .releves li { grid-template-columns: 1fr; } .director { grid-template-columns: 88px 1fr; } .director-photo { width: 88px; height: 88px; } }

.home-pro { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-block: 2.5rem 4rem; border-top: 1px solid var(--line); }
.home-pro > div { max-width: 62ch; }
.home-pro h2 { font-size: 1.35rem; }
.home-pro p { color: var(--muted); margin: 0; }

/* Statuts */
.st { display: inline-flex; align-items: center; gap: .35rem; font: 500 .78rem/1 var(--mono); padding: .32rem .5rem; border: 1px solid; white-space: nowrap; }
.st-ok { color: var(--accent-text); border-color: var(--accent); background: var(--accent-wash); }
.st-decl { color: var(--decl); border-color: currentColor; background: var(--decl-wash); }
.st-non { color: var(--muted); border-style: dashed; border-color: var(--line-strong); }

/* Pages classement */
.rt-hero { padding-block: 1.5rem 2rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .rt-hero.has-img { grid-template-columns: 1.35fr .9fr; gap: 3.5rem; } }
.rt-hero h1 { max-width: 26ch; }
.answer { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); font-weight: 500; color: var(--ink); max-width: 60ch; border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1rem 0 0; }
.rt-figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.rt-figure img { width: 100%; height: 100%; object-fit: cover; }
.draft { display: flex; gap: .6rem; align-items: flex-start; background: var(--decl-wash); color: var(--decl); border: 1px solid currentColor; padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1.25rem; }
.draft i { font-size: 1.15rem; margin-top: .1rem; }

.grille { padding: 2rem 0; border-top: 1px solid var(--line); }
.grille .wbar { max-width: none; margin: 1rem 0 1.25rem; }
.grille-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: c; }
@media (min-width: 900px) { .grille-list { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.grille-list li { display: flex; flex-direction: column; gap: .3rem; }
.grille-list .w { font: 500 1.6rem/1 var(--mono); color: var(--accent-text); }
.grille-list .cn { font-weight: 600; line-height: 1.3; }
.grille-list details summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.grille-list details p { font-size: .86rem; color: var(--ink-2); margin: .4rem 0 0; }

.ranking { padding: 2rem 0 1rem; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); position: relative; }
.table-wrap:focus-visible { outline-offset: -2px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
caption { caption-side: top; text-align: left; padding: .8rem 1rem; color: var(--muted); font-size: .82rem; border-bottom: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; }
thead th { font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: var(--surface); }
tbody tr + tr > * { border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.classement { min-width: 980px; }
.classement th, .classement td { padding: .75rem .65rem; }
.classement thead th.num { white-space: normal; }
.classement .rank { font: 600 1.05rem/1 var(--mono); width: 4rem; min-width: 4rem; position: sticky; left: 0; background: var(--surface); }
.classement .rank .muted { font: 400 .72rem/1.2 var(--font); display: block; }
.classement .actor { position: sticky; left: 4rem; background: var(--surface); min-width: 200px; box-shadow: 1px 0 0 var(--line); }
.classement th.actor a { font-weight: 700; font-size: .98rem; }
.classement .note { white-space: nowrap; }
.score { font: 600 1.35rem/1 var(--mono); color: var(--accent-text); }
.classement .neut, .crit .neut td { color: var(--muted); }
.classement .hon { min-width: 230px; font-size: .82rem; line-height: 1.4; }
.classement .avis { min-width: 140px; }
.classement tbody.sans tr.group th { background: var(--surface-2); font-size: .82rem; font-weight: 600; color: var(--ink-2); position: sticky; left: 0; }
.rel { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; white-space: nowrap; }
.rel-none { color: var(--muted); }
.rel-on { color: var(--decl); font-weight: 600; }

.declare { border: 1px solid var(--decl); background: var(--decl-wash); color: var(--ink); padding: 1rem 1.2rem; margin-top: 1rem; }
.declare-none { border-color: var(--line); background: var(--surface); }
.declare-none p { margin: 0; font-size: .9rem; }
.declare-h { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--decl); margin-bottom: .5rem; }
.declare ul { margin: 0 0 .5rem; padding-left: 1.1rem; }
.declare .small { margin: 0; }
.report { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .88rem; margin-top: 1rem; }
.report a { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }

.prose { max-width: 72ch; padding: 2.5rem 0 1rem; border-top: 1px solid var(--line); margin-top: 2rem; font-size: 1.04rem; }
.prose h2 { margin-top: 2.25rem; } .prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose li { margin-bottom: .35rem; }
.slot { font-size: .86rem; color: var(--muted); border: 1px dashed var(--line-strong); padding: .7rem .9rem; background: transparent; }
.slot-inline { font-family: var(--mono); font-size: .86em; color: var(--decl); background: var(--decl-wash); padding: .05rem .3rem; }

.terr-list { padding: 2rem 0 1rem; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.cols { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cols li { padding: .7rem 0; border-top: 1px solid var(--line); }
.cols li a { font-weight: 600; }
.cols li.off { color: var(--muted); }

.faq { padding: 2rem 0 1rem; border-top: 1px solid var(--line); margin-top: 1.5rem; max-width: 80ch; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font: 400 1.3rem/1 var(--mono); color: var(--accent-text); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary h3 { display: inline; font-size: 1.02rem; }
.faq-item > div { padding: 0 0 1rem; color: var(--ink-2); }

.history { padding: 2rem 0 3.5rem; border-top: 1px solid var(--line); margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.history h2 { font-size: 1.1rem; }
.history ol { margin: 0; padding-left: 1.1rem; }

/* Fiche acteur */
.fiche-head { padding-block: 1.75rem 2rem; border-bottom: 1px solid var(--line); }
.fiche-id { display: flex; gap: 1.25rem; align-items: flex-start; }
.mono { color: var(--accent); flex-shrink: 0; }
.fiche-meta { color: var(--muted); margin: -.25rem 0 .75rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; padding: .3rem .55rem; border: 1px solid var(--line-strong); color: var(--ink-2); }
.badge-demo { border-color: var(--decl); color: var(--decl); background: var(--decl-wash); }
.badge-rel { border-color: var(--decl); color: var(--decl); font-weight: 600; }
.fiche-body > section { padding: 2rem 0; border-top: 1px solid var(--line); }
.fiche-body > section:first-child, .fiche-body > aside + section { border-top: 0; }
.fiche-body > aside { margin-top: 2rem; }
.fiche-body .table-wrap + .table-wrap { margin-top: 1rem; }
.note-bloc { margin-top: 1.5rem; }
.note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: .75rem; }
.note-head h3 { margin: 0; font-size: 1.2rem; }
.note-head .small { margin: 0; flex-basis: 100%; }
.bignote { margin: 0; font-family: var(--mono); }
.bignote strong { font-size: 2rem; color: var(--accent-text); font-weight: 600; }
.bignote span { color: var(--muted); margin-left: .3rem; }
.bignote.off strong { font-size: 1.1rem; color: var(--muted); font-family: var(--font); }
.crit { min-width: 720px; }
.crit td:last-child { color: var(--ink-2); }
.fields { min-width: 720px; }
.fields th[scope="row"] { font-weight: 600; width: 22%; }
.fields .src { font-size: .82rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
.empty-state { color: var(--muted); border: 1px dashed var(--line-strong); padding: 1rem; margin: 0; }
.ops { list-style: none; margin: 0; padding: 0; }
.ops li { padding: .9rem 0; border-top: 1px solid var(--line); display: grid; gap: .1rem; }
.terr-dl { display: grid; gap: 1rem; margin: 0; }
@media (min-width: 768px) { .terr-dl { grid-template-columns: 1fr 1fr; } }
.terr-dl dt { font-weight: 600; font-size: .85rem; color: var(--muted); }
.terr-dl dd { margin: .25rem 0 0; }
.claim p { max-width: 72ch; }

/* Pages de confiance */
.page-head { padding-block: 1.5rem 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.trust { max-width: 880px; }
.trust > h2 { margin-top: 2.5rem; }
.trust .m-grille { margin-top: 1.75rem; }
.trust .m-grille .wbar { max-width: none; margin-bottom: .75rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .65rem 0 .65rem 1.75rem; border-top: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .7rem; height: .38rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks.no li::before { width: .75rem; height: 2px; border: 0; background: var(--muted); transform: none; top: 1.2rem; }
.steps { padding-left: 1.25rem; }
.steps li { padding: .35rem 0; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 600px) { .kv > div { grid-template-columns: 1fr; gap: .2rem; } }
.person { display: grid; gap: 1.25rem; grid-template-columns: 140px 1fr; align-items: start; }
.person-photo { aspect-ratio: 4 / 5; border: 1px dashed var(--line-strong); display: grid; place-content: center; text-align: center; color: var(--muted); font-size: .78rem; gap: .3rem; }
.person-photo i { font-size: 1.6rem; }
.person-name { font-weight: 700; font-size: 1.15rem; }
.credits { padding-left: 1.1rem; font-size: .9rem; }
.motifs { display: grid; gap: 1rem; }
@media (min-width: 900px) { .motifs { grid-template-columns: 1.2fr 1fr 1fr; } }
.motif { border: 1px solid var(--line); background: var(--surface); padding: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; }
.motif h2 { font-size: 1.1rem; }
.motif .btn { margin-top: auto; }
.delay { display: inline-flex; gap: .4rem; align-items: center; font: 500 .8rem/1.3 var(--mono); color: var(--accent-text); }

/* Formulaires */
.form { margin-top: 1.5rem; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 1.5rem; padding: 1.25rem 0 0; }
legend { font-weight: 700; font-size: 1.1rem; padding: 0 .5rem 0 0; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field-2, .field-3 { display: grid; gap: 0 1.25rem; }
@media (min-width: 720px) { .field-2 { grid-template-columns: 1fr 1fr; } .field-3 { grid-template-columns: 1fr 1fr 1fr; } }
label, .label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { font: 400 .72rem/1 var(--mono); color: var(--muted); margin-left: .35rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); padding: .75rem .85rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type="file"] { padding: .55rem; }
.help { font-size: .82rem; color: var(--muted); margin: 0; }
.err { font-size: .84rem; color: var(--err); margin: 0; font-weight: 500; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.consent { flex-direction: row; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.consent input, .check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); flex-shrink: 0; }
.consent label { font-weight: 400; flex: 1; min-width: 0; }
.consent .err { flex-basis: 100%; }
.checks-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .5rem 0 1.1rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; }
.check label { font-weight: 400; }
.result { border: 1px solid var(--accent); background: var(--surface); padding: 1.25rem; margin-top: 1.5rem; }
.result ol { padding-left: 1.2rem; }
.result li { padding: .5rem 0; }
.result .check { margin-top: .35rem; }
.declare-note { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }

/* Page 404 */
.page-404 { padding-block: 3rem 4rem; max-width: 900px; }
.e404-code { font: 600 clamp(4rem, 3rem + 6vw, 7.5rem)/1 var(--mono); color: var(--accent-text); margin: 0 0 .5rem; letter-spacing: -.04em; }
.page-404 .lead { max-width: 56ch; }
.e404-links { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.e404-links h2 { font-size: 1.2rem; }
.e404-links .small { margin-top: 1.5rem; }

/* Formulaire de contact */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.motif-choice { padding: .75rem 0; border-top: 1px solid var(--line); }
.motif-choice label { font-weight: 400; }
.motif-choice input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--accent); flex-shrink: 0; }
.contact-direct { font-size: 1.05rem; }

/* Couverture */
.cover { min-width: 640px; }
.cover tbody + tbody > tr:first-child > * { border-top: 2px solid var(--line-strong); }
.cover td.off { color: var(--muted); }
.cover th[scope="row"] { font-weight: 600; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 2rem; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand { font-weight: 700; font-size: 1rem; }
.footer-about p:last-child { color: var(--muted); max-width: 40ch; }
.footer-h { font-weight: 700; margin-bottom: .6rem; }
.footer-about .footer-mail { display: flex; align-items: center; gap: .45rem; color: var(--ink); margin-top: .75rem; }
.footer-mail a { color: var(--accent-text); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

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

/* Liste des professionnels (sans classement) */
.ac-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.ac-card { background: var(--surface); border: 1px solid var(--line); padding: 1.1rem 1.2rem; display: grid; gap: .45rem; }
.ac-card.is-partner { border: 2px solid var(--accent); background: var(--accent-wash); }
.crit tr.is-partner > * { background: var(--accent-wash); }
.crit tr.is-partner > th { box-shadow: inset 3px 0 0 var(--accent); }
.ac-card.is-portail { background: transparent; border-style: dashed; }
.ac-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.ac-nom { font-size: 1.15rem; line-height: 1.25; margin: 0; }
.ac-nom a { color: inherit; text-decoration: none; }
.ac-nom a:hover { text-decoration: underline; }
.ac-card .badge-rel { border-color: var(--accent); color: var(--accent-text); background: var(--surface); }
.ac-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.ac-desc { margin: 0; max-width: 72ch; }
.ac-decl { margin: 0; max-width: 72ch; font-size: .875rem; color: var(--muted); }
.ac-offre { margin: .2rem 0 0; display: flex; gap: .5rem; align-items: flex-start; font-weight: 600; color: var(--accent-text); }
.ac-offre .ph { font-size: 1.2rem; flex: none; margin-top: .1rem; }
.ac-hon { margin: 0; font-size: .92rem; }
.ac-hon span { color: var(--muted); margin-right: .4rem; }
.ac-hon span::after { content: " :"; }
.ac-links { margin: .3rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; font-size: .95rem; }
.ac-links .ph { margin-left: .2rem; }
.ac-offre-bloc { border: 2px solid var(--accent); background: var(--accent-wash); padding: 1.1rem 1.2rem; margin: 1.5rem 0; }
.ac-offre-bloc h2 { margin-top: 0; }

/* Compléments WordPress */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trust .table-wrap { margin-top: .75rem; }
