/* Detekta : direction visuelle « maquette A » (chaleureux, clair, cartes illustrées).
   Jetons → base → en-tête → boutons → formulaires → composants → vitrine → espaces connectés → annuaire → pied de page → téléphone.
   Police : Plus Jakarta Sans, servie par le site (public/assets/fonts/, licence OFL dans OFL.txt, CSP font-src 'self').
   Fichier PARTAGÉ : une page ou un outil ajoute ses styles dans public/assets/pages/ ou tools/ (docs/conventions-agents.md). */

/* ---------- Police ---------- */
/* Fichiers WOFF2 officiels de Google Fonts (police variable, graisses 200 à 800), découpés par jeu de caractères. */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
  --ink: #1F1F1F; --ink-2: #5E5E5E; --ink-3: #717171;
  --line: #EBEBEB; --line-2: #DDDDDD; --soft: #F7F7F7; --bg: #FFFFFF;
  --coral: #F0484E; --coral-ink: #C8253B; --coral-soft: #FFF1EE;
  --sun: #FFC75A; --sun-ink: #8A5A00; --sun-soft: #FFF5DD;
  --mint: #3FBFA6; --mint-ink: #17775F; --mint-soft: #E3F6F1;
  --sky: #8CC8F5; --sky-ink: #1D5FA8; --sky-soft: #E8F3FD;
  --plum: #7A5AF8; --plum-ink: #5B3FD6; --plum-soft: #F1EDFF;
  --peach-ink: #B4471C; --peach-soft: #FFF0E6;
  /* Dégradé décoratif (grands titres) et dégradé des boutons (texte blanc, contraste AA). */
  --grad: linear-gradient(100deg, #F65B43 0%, #EE3D59 55%, #DB3170 100%);
  --grad-btn: linear-gradient(100deg, #D8371F 0%, #D2294A 55%, #BE2461 100%);
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 14px; --r-xs: 10px;
  /* Trois largeurs de contenu, et trois seulement : le titre reste à la même place d'un écran à l'autre. */
  --w-wide: 1200px; --w-main: 1040px; --w-narrow: 760px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow: 0 6px 18px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .11), 0 2px 6px rgba(0, 0, 0, .05);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 80px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-app { background: var(--soft); }
main { flex: 1; width: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: var(--coral-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.04em; }
h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.6em; }
h3 { font-size: 18px; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
::selection { background: #FFD9CF; }
.nw { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.wrap { max-width: calc(var(--w-wide) + 80px); margin: 0 auto; padding: 0 40px; }
.page { padding-top: 40px; padding-bottom: 80px; }
.narrow { max-width: var(--w-narrow); margin: 0 auto; }
.narrow-left { max-width: var(--w-main); }
.narrow-form { max-width: var(--w-narrow); margin: 0 auto; }
/* Largeur imposée à un bloc (pageHead({ width }) ou conteneur de page). */
.w-wide { max-width: var(--w-wide); }
.w-main { max-width: var(--w-main); }
.w-narrow { max-width: var(--w-narrow); }
.narrow-form > .lead-sm, .narrow-form > .alert { margin-bottom: 22px; }
.narrow-form > h1 { margin-bottom: 10px; }
.wrap.narrow { max-width: calc(var(--w-narrow) + 80px); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.inline { display: inline; }
.count { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.is-app .count { background: #fff; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-xs { width: 13px; height: 13px; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 30px; height: 30px; }
.ico-xl { width: 40px; height: 40px; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 12px; font-weight: 800; text-decoration: none; transition: top .15s; }
.skip:focus { top: 0; color: #fff; }

/* Teintes : fond pastel + encre lisible (contraste AA). */
.t-coral { background: var(--coral-soft); color: var(--coral-ink); }
.t-mint { background: var(--mint-soft); color: var(--mint-ink); }
.t-sky { background: var(--sky-soft); color: var(--sky-ink); }
.t-plum { background: var(--plum-soft); color: var(--plum-ink); }
.t-sun { background: var(--sun-soft); color: var(--sun-ink); }
.t-peach { background: var(--peach-soft); color: var(--peach-ink); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--coral); font-weight: 800; font-size: 25px; letter-spacing: -.045em; text-decoration: none; flex: none; }
.logo:hover { color: var(--coral-ink); }
.logo-mark { width: 34px; height: 34px; }
.nav { display: flex; gap: 2px; min-width: 0; }
.nav a { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--soft); }
.nav-admin a { padding: 9px 11px; font-size: 14.5px; }
.right { display: flex; align-items: center; gap: 4px; flex: none; }
.host { font-size: 14.5px; font-weight: 600; padding: 11px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; transition: background-color .2s; white-space: nowrap; }
.host:hover { background: var(--soft); color: var(--ink); }
.globe { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 800; transition: background-color .2s; }
.globe:hover { background: var(--soft); color: var(--ink); }
.globe .ico { width: 18px; height: 18px; }
.menu { position: relative; margin-left: 4px; }
.menu > summary { display: flex; align-items: center; gap: 12px; padding: 5px 5px 5px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; list-style: none; background: #fff; transition: box-shadow .2s; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { box-shadow: var(--shadow); }
.menu > summary:focus-visible { outline-offset: 2px; border-radius: 999px; }
.burger { width: 16px; height: 16px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #6F6F6F; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.avatar .ico { width: 20px; height: 20px; }
.avatar.on { background: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 280px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px; z-index: 40; animation: pop .18s var(--ease) both; }
.menu-panel form { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: var(--r-xs); background: none; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--soft); color: var(--ink); }
.menu-item .ico { width: 18px; height: 18px; color: var(--ink-2); }
.menu-item.strong { font-weight: 700; }
.menu-nav { display: none; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
.menu-nav a { display: block; padding: 11px 12px; border-radius: var(--r-xs); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.menu-nav a:hover { background: var(--soft); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flash-wrap { padding-top: 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border: 0; border-radius: var(--r-xs); cursor: pointer;
  background: var(--grad-btn); background-size: 140% 100%; color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
  box-shadow: 0 8px 20px rgba(210, 41, 74, .24); transition: background-position .4s, transform .2s, box-shadow .2s;
}
.btn:hover { background-position: 100% 0; color: #fff; box-shadow: 0 12px 26px rgba(210, 41, 74, .32); }
.btn:active { transform: scale(.97); }
.btn .ico { width: 18px; height: 18px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; border-radius: var(--r-xs); box-shadow: none; }
.btn-lg { min-height: 56px; padding: 15px 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-dark:hover { background: #000; color: #fff; box-shadow: var(--shadow); }
.btn-danger { background: #fff; color: var(--coral-ink); border: 1.5px solid #E9A7AE; box-shadow: none; }
.btn-danger:hover { background: var(--coral-soft); color: var(--coral-ink); box-shadow: none; }
.btn-line { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 18px; border-radius: var(--r-sm); color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.btn-line:hover { background: var(--soft); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; }
/* Un seul bouton dégradé par groupe d'actions : les suivants s'affichent en contour (secondaire). */
:is(.btns, .page-actions, .form-foot, .actions-row) > .btn:not(.btn-ghost, .btn-dark, .btn-danger) ~ .btn:not(.btn-ghost, .btn-dark, .btn-danger) {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none;
}
.err-btns { justify-content: center; }
.btns.after { margin-top: 32px; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.back { margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.back a, .narrow > p:first-child > a:only-child, .narrow-left > p:first-child > a:only-child {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s;
}
.back a:hover, .narrow > p:first-child > a:only-child:hover, .narrow-left > p:first-child > a:only-child:hover { color: var(--ink); border-color: var(--ink); }
.back .ico { width: 16px; height: 16px; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form > * { margin: 0; }
.form .btn { align-self: flex-start; }
.form-card { padding: 28px; }
.form-title { margin: 0; font-size: 19px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot .hint { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.field > label, .field > legend, .checks > legend { display: block; font-size: 15px; font-weight: 700; margin-bottom: 7px; padding: 0; }
.field legend { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt { color: var(--ink-2); font-weight: 500; }
.hint { color: var(--ink-2); font-size: 14px; margin: 7px 0 0; }
.hint.note { display: flex; align-items: center; gap: 8px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=file], select, textarea {
  width: 100%; min-height: 48px; background: #fff; border: 1.5px solid var(--line-2); color: var(--ink);
  border-radius: 12px; padding: 12px 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
input[type=file] { padding: 10px 12px; cursor: pointer; }
input[type=file]::file-selector-button {
  margin-right: 14px; padding: 9px 16px; border: 0; border-radius: var(--r-xs); background: var(--ink); color: #fff;
  font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background-color .2s;
}
input[type=file]::file-selector-button:hover { background: #000; }
input[type=checkbox], input[type=radio] { accent-color: var(--coral-ink); }
input:hover, select:hover, textarea:hover { border-color: #BDBDBD; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 31, 31, .14); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5E5E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
textarea.mono, .out-pre { font: 14px/1.5 var(--mono); }
::placeholder { color: var(--ink-3); opacity: 1; }
input[type=color] { width: 72px; height: 48px; padding: 4px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px 16px; }
.check-grid.codes { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--coral-ink); flex: none; width: 19px; height: 19px; }
.check-card { padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.check-card:has(input:checked) { border-color: var(--coral-ink); background: var(--coral-soft); }
.consent { font-size: 14px; color: var(--ink-2); }
.secret { display: block; font: 700 17px/1.5 var(--mono); background: var(--soft); border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px; margin: 10px 0; word-spacing: 4px; overflow-wrap: anywhere; }
ol.plain { padding-left: 20px; }
ol.plain li { margin-bottom: 12px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.radio-card { display: flex; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; background: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.radio-card:hover { border-color: #BDBDBD; box-shadow: var(--shadow-sm); }
.radio-card input { accent-color: var(--coral-ink); flex: none; width: 19px; height: 19px; margin: 0; }
.radio-card strong { display: block; font-size: 15.5px; }
.radio-card small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.radio-card:has(input:checked) { border-color: var(--coral-ink); background: var(--coral-soft); box-shadow: 0 0 0 1px var(--coral-ink) inset; }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.radio-art { flex: none; width: 64px; height: 56px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.radio-img { width: 58px; height: auto; }

/* ---------- Cartes, alertes, badges ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin-top: 0; font-size: 20px; }
.card h2 + .dl, .card .dl + h2 { margin-top: 0; }
.card .dl + h2 { margin-top: 22px; }
.card-soft { background: var(--soft); box-shadow: none; }
.is-app .card-soft { background: #fff; }
.card.highlight { border-color: #F5B8AE; background: linear-gradient(180deg, #FFF6F3 0, #fff 90px); }
.card.danger { border-color: #F2C4C9; }
.card.empty { text-align: center; padding: 48px 24px; }
.card.empty .btn { margin-top: 8px; }
.card.empty .ico-xl { margin: 0 auto 12px; color: var(--ink-3); }
.empty-illus { width: 120px; height: auto; margin: 0 auto 16px; }
.empty-state { padding: 32px 0; }
.empty-state .empty-illus { width: 180px; }
.empty-line { color: var(--ink-2); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 16px 18px; }
.alert { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 18px; background: #fff; color: var(--ink); }
.alert.ok { background: var(--mint-soft); border-color: #BFE7DC; }
.alert.bad { background: var(--coral-soft); border-color: #F5C4BC; }
.alert.warn { background: var(--sun-soft); border-color: #F4DCA2; }
.alert.info { background: var(--sky-soft); border-color: #C9E1F6; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; vertical-align: middle; line-height: 1.4; }
.is-app .badge:not(.ok):not(.bad):not(.warn):not(.info):not(.mute) { background: #fff; border: 1px solid var(--line); }
.badge.ok { background: var(--mint-soft); color: var(--mint-ink); }
.badge.bad { background: var(--coral-soft); color: var(--coral-ink); }
.badge.warn { background: var(--sun-soft); color: var(--sun-ink); }
.badge.info { background: var(--sky-soft); color: var(--sky-ink); }
.badge.mute { background: #F0F0F0; color: var(--ink-2); }
.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
details > summary { cursor: pointer; font-weight: 700; }
details[open] > summary { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--ink-2); background: #fff; }
.chip strong { color: var(--ink); }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0 0 16px; }
.dl dt { color: var(--ink-2); font-size: 14px; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.prose p { margin-bottom: .8em; overflow-wrap: anywhere; }
.prose h2 { font-size: 20px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.list li:first-child { border-top: 0; }
.mail pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.5 var(--mono); margin: 0; }
.kicker { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-ink); }
.tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--coral-ink); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tag span { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-ink); font-size: 12px; letter-spacing: 0; }
.lead-sm { color: var(--ink-2); font-size: 17px; max-width: 760px; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pills a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.pills a:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); color: var(--ink); }
.pills a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.pills a.on .pill-n { background: rgba(255, 255, 255, .2); color: #fff; }
.canton-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.canton-filter a { padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.canton-filter a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; margin: 0 0 20px; border-radius: 999px; background: #EFEFEF; }
.segmented a, .segmented .seg-on { padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.segmented a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.segmented .seg-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 700; }
.faq details, .card details { border-top: 1px solid var(--line); padding: 14px 0 0; margin-top: 14px; }
.card details:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.card.danger > summary, details.card > summary { list-style: none; }

/* ---------- Vitrine : héros ---------- */
.hero { padding: 64px 0 8px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); font-weight: 800; letter-spacing: -.05em; line-height: 1.02; max-width: 980px; margin: 0 auto; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); margin: 18px auto 0; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 16px 6px 8px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 800; color: var(--ink); }
.eyebrow-ico { width: 28px; height: 28px; }
.hero-sub { padding-top: 56px; }
.hero-sub h1 { font-size: clamp(36px, 5.2vw, 64px); }
.hero-sub .search { margin-top: 32px; }
.finder { margin: 0; }
.who { display: inline-flex; gap: 8px; margin: 34px auto 18px; padding: 6px; border-radius: 999px; background: var(--soft); }
.who-tab { display: flex; align-items: center; gap: 10px; padding: 8px 22px 8px 10px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--ink-3); transition: background-color .25s, color .25s, box-shadow .25s; }
.who-ico { width: 42px; height: 42px; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), filter .25s; filter: grayscale(.85) opacity(.7); }
.who-tab:hover { color: var(--ink); }
body:has(#who-p:checked) .who-p, body:has(#who-e:checked) .who-e { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
body:has(#who-p:checked) .who-p .who-ico, body:has(#who-e:checked) .who-e .who-ico { transform: scale(1.08) rotate(-4deg); filter: none; }
body:has(#who-p:focus-visible) .who-p, body:has(#who-e:focus-visible) .who-e { outline: 3px solid var(--ink); outline-offset: 2px; }
.for-e { display: none; }
body:has(#who-e:checked) .for-p { display: none; }
body:has(#who-e:checked) span.for-e { display: inline; }
body:has(#who-e:checked) .seg .for-e { display: block; }
body:has(#who-e:checked) .need.for-e { display: flex; }

.search { display: flex; align-items: center; max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow-lg); padding: 8px; text-align: left; }
.seg { flex: 1; display: flex; flex-direction: column; padding: 10px 24px; border-radius: 999px; min-width: 0; transition: background-color .2s, box-shadow .2s; }
.seg:hover { background: var(--soft); }
.seg:focus-within { background: #fff; box-shadow: var(--shadow-lg); }
.seg:has(select:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
.seg-what { flex: 1.5; }
.seg-k { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; color: var(--ink); cursor: pointer; }
.seg select { border: 0; min-height: 0; padding: 2px 26px 0 0; background-color: transparent; background-position: right 0 center; background-size: 16px; font-size: 15px; color: var(--ink-2); box-shadow: none; text-overflow: ellipsis; }
.seg select:focus, .seg select:focus-visible { outline: none; box-shadow: none; }
.sep { width: 1px; height: 34px; background: var(--line); flex: none; }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 62px; padding: 0 28px 0 22px; border: 0; border-radius: 999px; background: var(--grad-btn); background-size: 140% 100%; color: #fff; font-weight: 700; font-size: 16.5px; cursor: pointer; flex: none; box-shadow: 0 10px 24px rgba(210, 41, 74, .3); transition: background-position .4s, transform .2s; }
.go:hover { background-position: 100% 0; }
.go:active { transform: scale(.97); }
.go .ico { width: 20px; height: 20px; }
.go:focus-visible { outline-offset: 3px; border-radius: 999px; }
.trust { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; padding: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ico { width: 18px; height: 18px; color: var(--mint-ink); }
.trust-sm { justify-content: flex-start; gap: 8px 20px; margin-top: 20px; font-size: 14px; }

/* ---------- Vitrine : sections ---------- */
.section { padding: 88px 0 0; }
.section-sm { margin-top: 44px; }
.section-sm > h2:first-child { margin-top: 0; }
.head { margin-bottom: 28px; max-width: 760px; }
.head h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.035em; line-height: 1.12; margin: 0; }
.head p { color: var(--ink-2); margin: 10px 0 0; font-size: 17px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.need { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; border-radius: var(--r-lg); }
.need:hover { color: var(--ink); }
.need.for-e { display: none; }
.art { aspect-ratio: 1 / 1; border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden; position: relative; }
.art-img { width: 84%; height: auto; transition: transform .6s var(--ease); }
.need:hover .art-img { transform: scale(1.07) rotate(-1.5deg); }
.art.t-peach { background: linear-gradient(160deg, #FFF3EC, #FFE2D3); }
.art.t-mint { background: linear-gradient(160deg, #EEFBF7, #D6F2EA); }
.art.t-sun { background: linear-gradient(160deg, #FFF8E6, #FFEBC0); }
.art.t-sky { background: linear-gradient(160deg, #F0F8FE, #D9ECFA); }
.art.t-plum { background: linear-gradient(160deg, #F4F1FF, #E3DCFF); }
.art.t-coral { background: linear-gradient(160deg, #FFF3F1, #FFDCD6); }
.pill { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 6px 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.meta { padding: 14px 2px 0; }
.meta h3 { font-size: 17px; margin: 0; }
.meta p { color: var(--ink-2); font-size: 15px; margin: 3px 0 0; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.more .ico { width: 16px; height: 16px; transition: transform .25s; }
.need:hover .more .ico { transform: translateX(4px); }
.need:focus-visible { outline-offset: 6px; border-radius: var(--r-lg); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px 32px; transition: box-shadow .3s, transform .3s; }
.step:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.num { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-btn); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 19px; box-shadow: 0 8px 20px rgba(210, 41, 74, .26); }
.step-ico { width: 64px; height: 64px; }
.step h3 { font-size: 21px; letter-spacing: -.025em; margin: 24px 0 8px; line-height: 1.2; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

.cover { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; background: linear-gradient(170deg, #FFF4F0 0%, #FFFFFF 70%); border: 1px solid #FBE2DB; border-radius: 40px; padding: 64px; }
.cover h2 { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -.045em; line-height: 1.04; margin: 0; }
.lead2 { color: var(--ink-2); font-size: 17.5px; margin: 18px 0 0; max-width: 460px; }
.refuse { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); max-width: 480px; }
.refuse strong { color: var(--ink); }
.refuse .ico { width: 22px; height: 22px; color: var(--coral-ink); margin-top: 1px; }
.guar { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.guar li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); min-width: 0; }
.gi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.gi .ico { width: 26px; height: 26px; }
.guar h3 { font-size: 17.5px; margin: 0; }
.guar p { color: var(--ink-2); font-size: 15px; margin: 4px 0 0; }
.guar .guar-strong { color: var(--ink); font-weight: 600; font-size: 16px; margin: 0; align-self: center; }
.guar li > div { min-width: 0; align-self: center; }

.host-block { display: grid; grid-template-columns: 1fr 1fr; border-radius: 40px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.host-art { background: linear-gradient(150deg, #F4F1FF 0%, #EAF7F3 100%); display: grid; place-items: center; padding: 48px; min-height: 440px; }
.host-art-plum { background: linear-gradient(150deg, #F4F1FF 0%, #FFF4EE 100%); }
.host-img { width: 100%; max-width: 420px; height: auto; }
.host-copy { padding: 64px 64px 60px; }
.host-copy h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.04em; line-height: 1.08; margin: 0; }
.host-copy > p { color: var(--ink-2); font-size: 17px; margin: 14px 0 0; }
.ticks { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 600; }
.ticks .ico { width: 22px; height: 22px; color: var(--mint-ink); }

.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; margin: 0; font-size: 17px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1F1F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; max-width: 760px; }

/* Coulisses : aperçus (carte publique, scanner caviardé, dossiers d'outils) */
.duo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 8px; }
.duo > :only-child { max-width: 620px; }
.classified { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.classified-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.classified-head h3 { margin: 0; font-size: 17px; }
.classified-head .redacted { margin: 0; display: flex; align-items: center; min-height: 24px; }
.classified-head .redacted .redact { height: 16px; width: 150px; }
.blur { filter: blur(6px); opacity: .8; padding: 18px; pointer-events: none; user-select: none; }
.veil { position: absolute; inset: 60px 0 0; display: grid; place-items: center; background: rgba(255, 255, 255, .5); }
.stamp { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 800; }
.lock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
a.classified.open { display: block; color: var(--ink); text-decoration: none; transition: box-shadow .25s, transform .25s; }
a.classified.open:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.open-body { padding: 18px 18px 0; background: linear-gradient(160deg, #FFF8F5, #fff 70%); }
.open-foot { margin: 0; padding: 14px 22px 20px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.map { display: block; width: 100%; height: auto; }
.map .land { fill: #FFE7DF; stroke: var(--coral); stroke-width: 2; stroke-linejoin: round; }
.map .dot { fill: var(--coral-ink); }
.map .halo { fill: var(--coral); opacity: .22; transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
.map .h1 { animation-delay: 1s; }
.map .h2 { animation-delay: 2s; }
@keyframes pulse { 0%, 100% { transform: scale(.6); opacity: .1; } 50% { transform: scale(1.5); opacity: .35; } }
.scan { position: relative; display: flex; flex-direction: column; min-height: 250px; }
.scan-bar { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.scan-glass { flex: none; width: 16px; height: 16px; border: 3px solid var(--coral-ink); border-radius: 50%; }
.scan-row { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--coral), transparent); animation: scan 3.6s linear infinite; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.redact { display: inline-block; height: 12px; border-radius: 6px; background: #E2DED8; vertical-align: middle; }
.redact.w1 { width: 18%; } .redact.w2 { width: 30%; } .redact.w3 { width: 42%; } .redact.w4 { width: 56%; } .redact.w5 { width: 72%; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 20px; }
.file { position: relative; overflow: hidden; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.file-tab { margin-bottom: 10px; color: var(--coral-ink); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.file-name { min-height: 22px; margin-bottom: 12px; font-weight: 800; font-size: 16.5px; }
.file ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.file li { line-height: 14px; min-height: 14px; }
.file .redact { display: block; filter: blur(2px); }
.files.open { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.files.open .file li { line-height: 1.4; font-size: 15px; color: var(--ink); }
.files.open .badge { font-size: 11.5px; padding: 1px 8px; margin-left: 4px; }
.files.open .file li a { color: var(--ink); text-decoration-color: var(--line-2); }
.files.open .file li a:hover { color: var(--coral-ink); text-decoration-color: currentColor; }
.file-stamp { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }

/* ---------- Espaces connectés ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head-text { flex: 1 1 420px; min-width: 0; }
.page-head h1 { margin: 0; }
.page-head .lead-sm { margin-top: 10px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.page-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head-row h1 { margin: 0; }
.head-row > h1, .page-head h1 { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.page-badges { margin-top: 10px; }
.head-row.page-head { align-items: flex-start; margin-bottom: 28px; }
.head-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.head-title h1 { overflow-wrap: anywhere; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.stat-ico { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.stat strong { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.stat > span:last-child { color: var(--ink-2); font-size: 14px; font-weight: 600; }

.rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.card .rows:last-child { margin-bottom: 0; }
.row-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px 14px 14px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
a.row-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); border-color: var(--line-2); }
.row-card > div, .row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-main strong, .row-card > div > strong { display: block; font-size: 16px; }
.row-card .muted { display: block; font-size: 14px; }
.row-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.row-go { flex: none; color: var(--ink-3); transition: transform .2s, color .2s; }
.row-go .ico { width: 18px; height: 18px; }
a.row-card:hover .row-go { transform: translateX(3px); color: var(--ink); }

.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.action { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.action:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--ink); }
.action-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; }
.action-ico .ico { width: 24px; height: 24px; }
.action-t { font-weight: 800; font-size: 16.5px; letter-spacing: -.015em; }
.action-p { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.action-go { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); transition: transform .25s; }
.action-go .ico { width: 16px; height: 16px; }
.action:hover .action-go { transform: translateX(3px); }

.banner { display: flex; gap: 18px; align-items: flex-start; }
.banner h2 { margin: 0 0 6px; }
.banner-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }

/* Avancement d'une demande */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; padding: 18px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 6px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.track li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track li:first-child::before { display: none; }
.track li.done::before, .track li.now::before { background: var(--mint); }
.track-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 800; }
.track-dot .ico { width: 16px; height: 16px; }
.track li.done .track-dot { background: var(--mint-soft); border-color: var(--mint); color: var(--mint-ink); }
.track li.now { color: var(--ink); font-weight: 800; }
.track li.now .track-dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(31, 31, 31, .08); }

/* Boîte à outils */
.jump { margin-bottom: 8px; }
.family { margin-top: 40px; scroll-margin-top: 96px; }
.family-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.family-head h2 { margin: 0; font-size: 22px; }
.family-head .count { margin-left: 0; }
.family-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.tool-grid > li { display: flex; min-width: 0; }
.tool-card { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s, border-color .25s; }
a.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--ink); border-color: var(--line-2); }
.tool-card.is-soon { background: transparent; border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.tool-card.is-soon .tool-ico { filter: grayscale(.7); }
.tool-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.tool-ico .ico { width: 24px; height: 24px; }
.tool-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tool-name { font-weight: 800; font-size: 16.5px; letter-spacing: -.015em; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.tool-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.tool-foot .badge { white-space: normal; text-align: left; }
.tool-go { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); transition: transform .25s, background-color .25s; }
.tool-go .ico { width: 16px; height: 16px; }
a.tool-card:hover .tool-go { transform: translateX(3px); background: var(--ink); color: #fff; }

.tool-page { margin: 0 auto; }
.tool-hero { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.tool-hero-ico { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.tool-hero-ico .ico { width: 30px; height: 30px; }
.tool-hero-text { flex: 1; min-width: 0; }
.tool-hero-text .tag { margin-bottom: 6px; }
.tool-hero-text .head-row { margin-bottom: 8px; }
.tool-hero-text .head-row h1 { overflow-wrap: anywhere; hyphens: auto; }

.out { border-width: 1.5px; box-shadow: var(--shadow-lg); }
.out-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.out-head h2 { margin: 0; font-size: 20px; }
.out-head .kicker { margin-bottom: 4px; }
.out-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.out-ico .ico { width: 24px; height: 24px; }
.out-ok { border-color: #A8DECF; background: linear-gradient(180deg, var(--mint-soft) 0, #fff 140px); }
.out-ok .out-ico { background: #fff; color: var(--mint-ink); }
.out-warn { border-color: #F1D08A; background: linear-gradient(180deg, var(--sun-soft) 0, #fff 140px); }
.out-warn .out-ico { background: #fff; color: var(--sun-ink); }
.out-bad { border-color: #F2AEB4; background: linear-gradient(180deg, var(--coral-soft) 0, #fff 140px); }
.out-bad .out-ico { background: #fff; color: var(--coral-ink); }
.out-info { border-color: #BCD9F3; background: linear-gradient(180deg, var(--sky-soft) 0, #fff 140px); }
.out-info .out-ico { background: #fff; color: var(--sky-ink); }
.out-block { padding: 16px 18px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: var(--r-sm); }
.out-block + .out-block { margin-top: 12px; }
.out-block h3 { font-size: 16.5px; margin: 0 0 8px; }
.out-block > :last-child { margin-bottom: 0; }
.out-pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 16px; }
.source-grid { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.source-grid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.source-grid a:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); color: var(--ink); }
.source-grid .ico { width: 16px; height: 16px; color: var(--ink-2); }
.note-card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.scan-form input[name=q] { min-height: 56px; font-size: 17px; }

/* Dossiers d'enquête, entrées datées */
.actions-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.timeline-cards { display: flex; flex-direction: column; gap: 12px; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.entry-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 8px; }
.entry .prose { margin: 0; }
.hash { margin: 8px 0 2px; font-size: 13px; color: var(--ink-2); }
.hash code { display: inline-block; margin-top: 4px; font: 12px/1.4 var(--mono); color: var(--ink); word-break: break-all; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }

/* Choix du profil, connexion */
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; margin-top: 24px; }
.choice-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; margin: 0; transition: box-shadow .25s, transform .25s, border-color .25s; }
.choice-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--ink); }
.choice-card h3 { margin: 0 0 4px; }
.choice-card p { color: var(--ink-2); margin: 0; font-size: 15px; }
.choice-art { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; }
.choice-img { width: 46px; height: 46px; }
.auth { display: grid; place-items: center; padding: 16px 0 24px; }
.auth-card { width: 100%; max-width: 500px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 36px; }
.auth-card h1 { font-size: clamp(28px, 3vw, 34px); margin-bottom: 10px; }
.auth-card .form { margin-top: 22px; }
.auth-card .form .btn { align-self: stretch; }
.auth-art { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 20px; overflow: hidden; }
.auth-img { width: 56px; height: 56px; }
.auth-img.wide { width: 80px; height: auto; }

/* Administration */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
a.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile strong { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.tile span { color: var(--ink-2); font-size: 14px; }
.tile.warn { border-color: #F1D08A; background: var(--sun-soft); }
.tile.warn strong { color: var(--sun-ink); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.tabs a:hover { border-color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.table-wrap:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--soft); color: var(--ink-2); font-weight: 700; white-space: nowrap; }
td.nowrap, th { white-space: nowrap; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.cols > div { min-width: 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 8px 0 8px 16px; border-left: 3px solid var(--line); overflow-wrap: anywhere; }
.pager { display: flex; gap: 10px; }
.listing-pager { align-items: center; justify-content: center; flex-wrap: wrap; margin: 28px 0; }

/* ---------- Annuaire et pages SEO ---------- */
.seo-page { padding: 40px 0 0; }
.seo-page h2 { font-size: clamp(22px, 2.4vw, 28px); }
.seo-head { margin-bottom: 28px; }
.seo-head h1 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.045em; line-height: 1.05; margin: 0 0 14px; max-width: 900px; }
.crumbs { margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px 0 6px; border-top: 1.5px solid var(--ink-3); border-right: 1.5px solid var(--ink-3); transform: rotate(45deg); }
.crumbs a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 3px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin: 0 0 8px; }
.card.listing { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 22px; transition: box-shadow .25s, transform .25s; }
.card.listing:hover { box-shadow: var(--shadow); }
.card.listing > * { margin: 0; }
.listing.is-verified { border-color: #A8DECF; box-shadow: 0 0 0 1px #A8DECF inset, var(--shadow-sm); }
.listing-head { display: flex; align-items: flex-start; gap: 14px; }
.listing-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.listing-id { flex: 1; min-width: 0; }
.listing h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.listing-place { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.listing-place .ico { color: var(--ink-3); }
.listing-badge { margin: 8px 0 0; }
.listing-place a { color: var(--ink-2); font-weight: 600; }
.listing-addr { color: var(--ink-2); font-size: 14.5px; padding: 10px 14px; background: var(--soft); border-radius: 12px; overflow-wrap: anywhere; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-actions .btn-sm { min-height: 40px; }
/* Site (domaine en clair) et date de mise à jour : fiches des pages SEO et de la carte. */
.listing-web { max-width: 100%; }
.listing-site { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-upd { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.listing-upd .ico { color: var(--ink-3); }
.listing-foot { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.listing-foot a { color: var(--ink-2); }
.canton-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.canton-grid a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.canton-grid a:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--ink); }
.canton-code { flex: none; width: 38px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral-ink); font-size: 12.5px; font-weight: 800; }
.canton-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.canton-n { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.canton-grid a.is-empty .canton-code { background: var(--soft); color: var(--ink-2); }
.canton-grid a.is-empty .canton-name { font-weight: 600; color: var(--ink-2); }
.cta-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 36px 0; padding: 36px 40px; background: linear-gradient(170deg, #FFF4F0 0%, #FFFFFF 70%); border: 1px solid #FBE2DB; border-radius: 32px; }
.cta-card h2 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 32px); }
.cta-card p { color: var(--ink-2); max-width: 620px; }
.cta-card p:last-child { margin: 18px 0 0; }
.cta-illus { width: 128px; height: 128px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; }
.seo-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; }
.source-note { margin-top: 28px; max-width: 820px; }
.map-card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; margin-bottom: 36px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.map-wrap { max-width: 640px; width: 100%; margin: 0 auto; padding: 12px; border-radius: 22px; background: linear-gradient(160deg, #FFF8F5, #FFFFFF 70%); }
.map-side-t { margin: 0 0 14px; font-size: 18px; }
.pills-codes a { padding: 7px 12px; font-size: 14px; }
.chmap { display: block; width: 100%; height: auto; }
.chmap .land { fill: #FFF1EC; stroke: #F5B8AE; stroke-width: 1.5; stroke-linejoin: round; }
.chmap .pin { fill: var(--coral-ink); opacity: .92; transition: opacity .2s, fill .2s; }
.chmap a:hover .pin, .chmap .pin.on { opacity: 1; fill: var(--ink); }
.chmap a:focus-visible { outline: none; }
.chmap a:focus-visible .pin { fill: var(--ink); stroke: var(--sun); stroke-width: 3; }
.chmap .pin-n { fill: #fff; font: 800 10px/1 var(--font); text-anchor: middle; pointer-events: none; }

/* ---------- Pied de page ---------- */
.foot { background: var(--soft); border-top: 1px solid var(--line); margin-top: 104px; padding: 56px 0 28px; color: var(--ink-2); font-size: 14.5px; }
.is-app .foot { margin-top: 64px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot .logo { font-size: 22px; }
.foot .logo-mark { width: 30px; height: 30px; }
.foot-about { margin: 12px 0 0; max-width: 320px; }
.foot-h { font-size: 14.5px; font-weight: 800; margin: 0 0 12px; letter-spacing: 0; color: var(--ink); }
.foot-grid a:not(.logo) { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.foot-grid a:not(.logo):hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 14px; }
.langs { display: flex; gap: 18px; font-weight: 700; }
.langs a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; padding: 4px 0; }
.langs a:hover { text-decoration: underline; }
.langs a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.langs .ico { width: 16px; height: 16px; }
.foot-app { margin-top: 56px; padding: 22px 0; }
.foot-app-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
.foot-app .foot-bottom { flex: 1; margin: 0; padding: 0; border: 0; justify-content: flex-end; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: var(--ink-2); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); text-decoration: underline; }
.tabbar { display: none; }

/* ---------- Apparition au défilement (vitrine, script public unique) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lead, .hero .eyebrow, .who, .finder .search, .hero .trust { animation: rise .8s var(--ease) both; }
.hero .lead { animation-delay: .06s; }
.who { animation-delay: .12s; }
.finder .search { animation-delay: .18s; }
.hero .trust { animation-delay: .24s; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid4 .reveal:nth-child(4n+2), .js .steps .reveal:nth-child(2) { transition-delay: .07s; }
.js .grid4 .reveal:nth-child(4n+3), .js .steps .reveal:nth-child(3) { transition-delay: .14s; }
.js .grid4 .reveal:nth-child(4n+4) { transition-delay: .21s; }

/* ---------- Grands écrans → téléphone ---------- */
@media (max-width: 1280px) {
  .nav-admin { display: none; }
  .menu-nav-admin { display: block; }
}
@media (max-width: 1120px) {
  .is-site .nav { display: none; }
  .is-site .menu-nav { display: block; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover { grid-template-columns: 1fr; padding: 48px; gap: 36px; }
  .host-block { grid-template-columns: 1fr; }
  .host-art { min-height: 300px; }
  .map-card { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .is-app .nav { display: none; }
  .is-app .menu-nav { display: block; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .search { flex-direction: column; align-items: stretch; border-radius: 28px; padding: 10px; }
  .seg { border-radius: 18px; padding: 12px 16px; }
  .sep { width: auto; height: 1px; margin: 0 14px; }
  .go { margin-top: 8px; height: 56px; border-radius: 16px; }
  .steps { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 30px 24px; }
  .cta-illus { display: none; }
}
@media (max-width: 744px) {
  .wrap { padding: 0 20px; }
  .bar { height: 64px; gap: 12px; }
  .host { display: none; }
  .logo { font-size: 23px; }
  .logo-mark { width: 30px; height: 30px; }
  .page { padding-top: 24px; padding-bottom: 48px; }
  .hero { padding: 36px 0 0; }
  .lead { font-size: 16.5px; margin-top: 14px; }
  .who { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 28px 0 14px; }
  .who-tab { justify-content: center; padding: 6px 10px; font-size: 15px; gap: 6px; }
  .who-ico { width: 36px; height: 36px; }
  .trust { flex-direction: column; align-items: flex-start; gap: 10px; margin: 22px 4px 0; text-align: left; }
  .section { padding-top: 60px; }
  .head h2 { font-size: 27px; }
  .head p { font-size: 16px; }
  .grid4 { grid-template-columns: 1fr; gap: 16px; }
  .need { flex-direction: row; align-items: center; gap: 16px; }
  .need .art { flex: none; width: 104px; border-radius: 18px; }
  .pill { display: none; }
  .meta { padding: 0; min-width: 0; }
  .meta h3 { font-size: 16px; }
  .meta p { font-size: 14px; }
  .more { margin-top: 6px; font-size: 13.5px; }
  .step { padding: 24px 22px 26px; }
  .cover { padding: 30px 20px; border-radius: 28px; gap: 28px; }
  .guar li { padding: 18px; gap: 14px; border-radius: 18px; }
  .gi { width: 44px; height: 44px; border-radius: 13px; }
  .gi .ico { width: 22px; height: 22px; }
  .host-block { border-radius: 28px; }
  .host-art { min-height: 0; padding: 28px; }
  .host-copy { padding: 32px 22px 34px; }
  .btns { flex-direction: column; align-items: stretch; }
  .btns .btn, .btn-line { justify-content: center; }
  .faq details { font-size: 16px; }
  .foot { margin-top: 72px; padding: 40px 0 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot { padding-bottom: calc(24px + 74px + env(safe-area-inset-bottom)); }
  .foot-app { padding-bottom: calc(18px + 74px + env(safe-area-inset-bottom)); }
  .foot-app .foot-bottom { justify-content: flex-start; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 4px 6px; border-radius: 12px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-decoration: none; }
  .tabbar .ico { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--coral-ink); }
  .tabbar a:focus-visible { outline-offset: 0; }
  .page-head { margin-bottom: 22px; }
  .page-actions { margin-left: 0; width: 100%; }
  .page-actions .btn { width: 100%; }
  .card { padding: 20px; border-radius: 20px; }
  .form-card { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .form .btn, .form-foot .btn { width: 100%; align-self: stretch; }
  .stats { gap: 10px; }
  .stat { grid-template-columns: 1fr; padding: 14px; row-gap: 6px; align-content: start; }
  .stat-ico { grid-row: auto; width: 38px; height: 38px; border-radius: 12px; }
  .stat-ico .ico { width: 18px; height: 18px; }
  .stat strong { font-size: 24px; }
  .stat > span:last-child { font-size: 13px; overflow-wrap: anywhere; hyphens: auto; }
  .tool-hero { gap: 14px; }
  .tool-hero-ico { width: 52px; height: 52px; border-radius: 16px; }
  .tool-grid { gap: 10px; }
  .tool-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; padding: 14px 16px; }
  .tool-ico { width: 44px; height: 44px; grid-row: 1 / 3; }
  .tool-foot { grid-column: 2; padding-top: 0; }
  .family { margin-top: 32px; }
  .actions { gap: 10px; }
  .action { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 16px 48px 16px 16px; }
  .action-ico { width: 44px; height: 44px; margin: 0; grid-row: 1 / 3; }
  .action-go { top: 50%; right: 14px; transform: translateY(-50%); }
  .action:hover .action-go { transform: translate(3px, -50%); }
  .jump { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 8px; padding: 2px 20px 6px; scrollbar-width: none; }
  .jump::-webkit-scrollbar { display: none; }
  .jump a { flex: none; }
  .track { padding: 16px 4px; }
  .track li { font-size: 12px; padding: 0 2px; }
  .track-dot { width: 30px; height: 30px; }
  .track li::before { top: 14px; }
  .seo-page { padding-top: 24px; }
  .canton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .canton-grid a { flex-wrap: wrap; gap: 6px 8px; padding: 10px 12px; }
  .canton-name { flex-basis: 100%; order: 3; font-size: 14px; }
  .canton-n { margin-left: auto; }
  .map-card { padding: 14px; border-radius: 22px; }
  .map-wrap { padding: 6px; }
  .auth { padding: 0; }
  .auth-card { padding: 26px 20px; border-radius: 24px; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dt { margin-top: 10px; }
  .dl dt:first-child { margin-top: 0; }
}
@media (max-width: 560px) {
  /* Héros d'outil en une colonne : l'icône passe en ligne au-dessus, le texte garde toute la largeur. */
  .tool-hero { flex-direction: column; gap: 10px; }
  .tool-hero-ico { width: 44px; height: 44px; border-radius: 14px; }
  .tool-hero-ico .ico { width: 22px; height: 22px; }
  /* Fil d'Ariane sur une seule ligne, la fin coupée proprement. */
  .crumbs ol { flex-wrap: nowrap; overflow: hidden; }
  .crumbs li { flex: none; }
  .crumbs li:last-child { flex: 1 1 auto; min-width: 0; }
  .crumbs li:last-child > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 420px) {
  .tool-hero-text h1 { font-size: clamp(24px, 7vw, 32px); }
}
@media (max-width: 520px) {
  .row-card { flex-wrap: wrap; row-gap: 8px; }
  .row-card .row-main { flex: 1 1 calc(100% - 60px); }
  .row-card .badge { margin-left: 58px; }
  .row-go { display: none; }
  .classified-head .redacted .redact { width: 110px; }
  .segmented { display: flex; border-radius: 18px; }
  .segmented a, .segmented .seg-on { flex: 1 1 auto; text-align: center; border-radius: 14px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 36px; }
  .hero-sub h1 { font-size: 32px; }
  .need .art { width: 88px; }
  .globe span { display: none; }
  .globe { padding: 0 10px; }
  .menu > summary { gap: 8px; padding-left: 10px; }
}

/* ---------- Moins d'animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .map .halo { opacity: .2; }
}

/* ---------- Impression ---------- */
@media print {
  .top, .foot, .tabbar, .skip, .back { display: none !important; }
  body, body.is-app { background: #fff; padding: 0; }
  .card, .action, .tool-card { box-shadow: none; }
}
