/* ==========================================================================
   Allô Artisan — feuille de style
   Direction : les enseignes peintes des ateliers de Dakar et les bandes du car rapide.
   Indigo = confiance · jaune soleil = action · argile = alerte · feuille = contact direct.
   ========================================================================== */

:root {
  --bg: #F1F3F8;
  --surface: #FFFFFF;
  --surface-2: #E7EBF3;
  --ink: #111A2E;
  --muted: #586379;
  --line: #D6DCE7;
  --indigo: #1E3F96;
  --indigo-2: #142C70;
  --indigo-soft: #E2E8F8;
  --on-indigo: #FFFFFF;
  --sun: #F5B700;
  --sun-2: #DDA400;
  --sun-soft: #FFF3CC;
  --on-sun: #1B1400;
  --clay: #C4412A;
  --clay-soft: #FBE6E1;
  --leaf: #16754A;
  --leaf-soft: #DFF2E7;
  --plum: #6B2F6E;
  --night: #121A33;
  --focus: #F5B700;
  --shadow-sm: 0 1px 2px rgba(17, 26, 46, .06);
  --shadow: 0 1px 2px rgba(17, 26, 46, .05), 0 10px 28px -12px rgba(17, 26, 46, .16);
  --shadow-lg: 0 30px 70px -20px rgba(17, 26, 46, .35);
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 22px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 66px;
  --bnav-h: 64px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1022; --surface: #121A30; --surface-2: #1A2442; --ink: #E8ECF6; --muted: #9AA6C0; --line: #26324F;
    --indigo: #6E92F2; --indigo-2: #8DA9F5; --indigo-soft: #1B2850; --on-indigo: #0A1022;
    --sun-soft: #3A2E07; --clay: #F0785E; --clay-soft: #3B1B16; --leaf: #4CC48A; --leaf-soft: #133426; --plum: #C27BC5; --night: #050913;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1022; --surface: #121A30; --surface-2: #1A2442; --ink: #E8ECF6; --muted: #9AA6C0; --line: #26324F;
  --indigo: #6E92F2; --indigo-2: #8DA9F5; --indigo-soft: #1B2850; --on-indigo: #0A1022;
  --sun-soft: #3A2E07; --clay: #F0785E; --clay-soft: #3B1B16; --leaf: #4CC48A; --leaf-soft: #133426; --plum: #C27BC5; --night: #050913;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}
main { flex: 1; outline: none; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--indigo); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -.01em; }
h1 { font: 800 clamp(1.9rem, 4.6vw, 3.3rem)/1.06 var(--display); letter-spacing: -.02em; }
h2 { font: 700 clamp(1.35rem, 2.6vw, 1.9rem)/1.15 var(--display); }
h3, .h3 { font: 700 1.08rem/1.3 var(--body); }
h2.h3 { font: 700 1.15rem/1.3 var(--display); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1:focus { outline: none; }
::selection { background: var(--sun); color: var(--on-sun); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--on-sun); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; justify-items: center; }
.stack { display: grid; gap: 14px; }
.pad-y { padding-block: 48px; }
.pad { padding: 16px; }
.ico { flex: none; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 12px; }

/* ---------- Bande car rapide ---------- */
.stripe { height: 9px; background: repeating-linear-gradient(90deg, var(--sun) 0 34px, transparent 34px 44px, var(--clay) 44px 52px, transparent 52px 62px); }

/* ---------- Boutons ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--b);
  font: 700 .97rem/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--indigo); color: var(--on-indigo); }
.btn-primary:hover { background: var(--indigo-2); }
.btn-sun { background: var(--sun); color: var(--on-sun); box-shadow: 0 3px 0 var(--sun-2); }
.btn-sun:hover { background: #FFC51F; }
.btn-wa { background: var(--leaf); color: #fff; }
:root[data-theme="dark"] .btn-wa { color: #06140D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-wa { color: #06140D; } }
.btn-wa:hover { filter: brightness(1.08); }
.btn-ghost { --b: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { --b: var(--muted); }
.btn-danger { --b: var(--clay); background: transparent; color: var(--clay); }
.btn-danger:hover { background: var(--clay-soft); }
.btn-on-dark { --b: rgba(255, 255, 255, .45); background: transparent; color: #fff; }
.btn-on-dark:hover { --b: #fff; }
.btn-sm { min-height: 38px; padding: 7px 13px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 22px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn.subtle { color: var(--muted); }
.btn-link { background: none; border: 0; padding: 0; color: var(--indigo); font-weight: 700; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }
.icon-btn {
  display: inline-grid; place-items: center; position: relative; width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.demo-bar { background: var(--sun); color: var(--on-sun); font-size: .9rem; }
.demo-bar .wrap { padding-block: 6px; font-size: .86rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.demo-bar .btn-link { color: var(--on-sun); }
.offline-bar { background: var(--clay); color: #fff; font-size: .9rem; font-weight: 600; }
.offline-bar .wrap { padding-block: 8px; display: flex; gap: 8px; align-items: center; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--surface); z-index: 31; }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--sun); color: var(--on-sun); font: 800 1.15rem/1 var(--display);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12), 0 2px 0 var(--sun-2); transform: rotate(-4deg);
}
.logo-word { white-space: nowrap; font: 800 1.2rem/1 var(--display); letter-spacing: -.01em; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; position: relative; }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a.on { color: var(--ink); }
.main-nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 3px; border-radius: 3px; background: var(--sun); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.count-dot {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--clay); color: #fff; font: 700 .7rem/18px var(--body); text-align: center; font-style: normal;
}
.account { position: relative; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; font-weight: 600; }
.account-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: var(--on-indigo); font: 700 .75rem/1 var(--display); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px;
  animation: pop .16s ease-out;
}
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .tab-count { margin-left: auto; }

/* ---------- Navigation mobile ---------- */
.bnav { display: none; }
@media (max-width: 1000px) {
  .main-nav, .hide-sm { display: none !important; }
  .header-in { gap: 12px; }
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .bnav a, .bnav button {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px;
    color: var(--muted); text-decoration: none; font: 600 .7rem/1 var(--body); background: none; border: 0; cursor: pointer;
  }
  .bnav a.on { color: var(--indigo); }
  .bnav a.on .ico { background: var(--indigo-soft); border-radius: 10px; padding: 2px 10px; width: 46px; height: 28px; }
  .bnav .count-dot { top: 0; right: calc(50% - 22px); }
  body { padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px)); }
  body.has-actionbar .bnav { display: none; }
  body.has-actionbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #C9D1E4; margin-top: 64px; }
.site-footer .logo { color: #fff; }
.footer-in { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; padding-block: 44px 28px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; max-width: 34ch; }
.footer-brand .btn-ghost { background: transparent; color: #fff; --b: rgba(255,255,255,.3); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h2 { font: 700 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-bottom: 14px; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-cols a { color: #C9D1E4; text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #8E99B5; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Libellés ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 700 .76rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--indigo); }
.eyebrow-lg { font: 700 .82rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--clay); margin-bottom: 10px; }
.eyebrow-lg.on-dark { color: var(--sun); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.flag-sn { display: inline-flex; width: 27px; height: 18px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.flag-sn i { flex: 1; } .flag-sn i:nth-child(1) { background: #00853F; } .flag-sn i:nth-child(2) { background: #FDEF42; position: relative; }
.flag-sn i:nth-child(2)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%); background: #00853F; clip-path: polygon(50% 0%, 61.8% 35.3%, 100% 35.3%, 69.1% 57.1%, 80.9% 92.7%, 50% 70.7%, 19.1% 92.7%, 30.9% 57.1%, 0% 35.3%, 38.2% 35.3%); } .flag-sn i:nth-child(3) { background: #E31B23; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; max-width: 54ch; }

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--indigo) 14%, transparent), transparent 60%),
  linear-gradient(var(--bg), var(--bg)); }
.hero-in { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; padding-block: 56px 64px; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { color: var(--muted); margin-bottom: 26px; }
.rot { display: inline-block; vertical-align: bottom; background: var(--sun); color: var(--on-sun); padding: .02em .32em .08em; border-radius: .18em; transform: rotate(-1.5deg); box-shadow: 0 .09em 0 var(--sun-2); overflow: hidden; }
.rot-word { display: inline-block; transition: transform .26s ease, opacity .26s ease; }
.rot-word.out { transform: translateY(-70%); opacity: 0; }
.hero-search {
  display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 8px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 620px;
}
.hs-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); min-width: 0; }
.hs-field select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-weight: 600; padding: 12px 0; cursor: pointer; outline: none; }
.hs-field:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.hero-alt { margin-top: 18px; color: var(--muted); }
.hero-alt a { font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

/* Mur d'enseignes peintes */
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 10px; }
.wall .enseigne:nth-child(even) { margin-top: 26px; margin-bottom: -26px; }
.enseigne {
  --pbg: var(--sun); --pfg: var(--on-sun); --pedge: rgba(0,0,0,.18);
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 12px; align-items: center;
  padding: 16px 18px 14px; border-radius: 8px; text-decoration: none; color: var(--pfg); background: var(--pbg);
  border: 3px solid var(--pedge); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 10px 22px -12px rgba(0,0,0,.45);
  transform: rotate(var(--tilt, 0deg)); transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
}
.enseigne::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed currentColor; opacity: .28; border-radius: 4px; pointer-events: none; }
.enseigne:hover, .enseigne:focus-visible { transform: rotate(0) translateY(-3px) scale(1.03); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 18px 30px -14px rgba(0,0,0,.5); }
.clou { position: absolute; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 20%, #8a8f99 45%, #3a3f48 100%); }
.clou.l { left: 8px; } .clou.r { right: 8px; }
.ens-ico { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 2px currentColor; }
.ens-txt { font: 800 .98rem/1.12 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.ens-tel { font-size: .8rem; font-weight: 700; opacity: .82; }
.plaque-sun { --pbg: var(--sun); --pfg: #1B1400; }
.plaque-indigo { --pbg: #1E3F96; --pfg: #fff; }
.plaque-paper { --pbg: #FBFAF6; --pfg: #1E3F96; --pedge: #1E3F96; }
.plaque-clay { --pbg: #C4412A; --pfg: #fff; }
.plaque-night { --pbg: #121A33; --pfg: #F5B700; }
.plaque-leaf { --pbg: #16754A; --pfg: #fff; }
.plaque-plum { --pbg: #6B2F6E; --pfg: #fff; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 30px; padding-block: 34px 40px; }
  /* Tablette : les 8 enseignes sur 4 colonnes, version compacte (icône au-dessus du texte). */
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; padding: 4px 2px 8px; }
  .wall .enseigne:nth-child(even) { margin: 0; }
  .wall .enseigne { grid-template-columns: 1fr; grid-template-rows: auto; justify-items: start; gap: 8px; padding: 18px 14px 14px; min-width: 0; }
  .wall .ens-ico { grid-row: auto; width: 38px; height: 38px; }
  .wall .ens-txt { font-size: .84rem; overflow-wrap: anywhere; hyphens: auto; }
  .wall .ens-tel { font-size: .74rem; }
}
@media (max-width: 640px) {
  /* Téléphone : 2 colonnes, tout reste visible sans défilement horizontal. */
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .wall .enseigne { padding: 16px 12px 12px; }
  .wall .ens-txt { font-size: .8rem; }
  .wall .enseigne:hover, .wall .enseigne:focus-visible { transform: rotate(0) scale(1.02); }
}
@media (max-width: 560px) {
  .hero-search { grid-template-columns: 1fr; }
  .hero-search .btn { width: 100%; }
}

/* ---------- Chiffres ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -28px; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 0; overflow: hidden; }
.fig { display: grid; gap: 2px; padding: 20px 22px; border-left: 1px solid var(--line); }
.fig:first-child { border-left: 0; }
.fig strong { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1 var(--display); color: var(--indigo); font-variant-numeric: tabular-nums; }
.fig span { color: var(--muted); font-size: .9rem; font-weight: 600; }
@media (max-width: 700px) { .figures { grid-template-columns: 1fr 1fr; margin-inline: var(--gutter) var(--gutter-r); width: auto; } .fig:nth-child(3) { border-left: 0; } .fig:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding-block: 72px 0; }
.section-sm { padding-block: 32px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head.center h2 { max-width: 24ch; margin-inline: auto; }
.sec-actions { display: flex; gap: 6px; align-items: center; }
.rail-btn { border: 1.5px solid var(--line); background: var(--surface); }
@media (max-width: 700px) { .rail-btn { display: none; } .section { padding-top: 52px; } }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: -4px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 48px) / 4); } }
.rail-empty { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; padding: 28px; border: 2px dashed var(--line); border-radius: var(--r-lg); }

/* Comment ça marche */
.how { background: var(--surface); border-block: 1px solid var(--line); margin-top: 72px; padding-bottom: 64px; }
.how .tabs { margin-inline: auto; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; animation: rise .45s both; animation-delay: calc(var(--i) * 70ms); }
.step-n { position: absolute; top: 18px; right: 20px; font: 800 2.6rem/1 var(--display); color: var(--line); }
.step-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--sun); color: var(--on-sun); margin-bottom: 8px; transform: rotate(-4deg); }
.step:nth-child(2) .step-ico { background: var(--indigo); color: var(--on-indigo); transform: rotate(3deg); }
.step:nth-child(3) .step-ico { background: var(--leaf); color: #fff; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Pourquoi */
.why { display: grid; grid-template-columns: .9fr 1.3fr; gap: 48px; align-items: start; }
.why-intro { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 8px; align-content: start; }
.why-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); flex: none; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 24px; } .why-intro { position: static; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* Bandeau artisans */
.cta-band { margin-top: 72px; background: var(--indigo); color: #fff; position: relative; overflow: hidden; }
:root[data-theme="dark"] .cta-band { background: #13245A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: #13245A; } }
.cta-band::after { content: "A"; position: absolute; right: -2%; bottom: -38%; font: 800 26rem/1 var(--display); color: rgba(255,255,255,.05); pointer-events: none; }
.cta-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding-block: 56px; position: relative; z-index: 1; }
.cta-in h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.cta-in p { color: #D6DEF5; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta-in { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 68ch; }
.faq-wrap { display: grid; gap: 18px; }

/* ---------- En-têtes de page ---------- */
.page-head { padding-block: 28px 22px; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 6px; }
.page-head-lg { padding-block: 48px 8px; }
.page-head-lg h1 { max-width: 20ch; margin-bottom: 14px; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Filtres de l'annuaire ---------- */
.filterbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.filterbar .wrap { padding-block: 12px; display: grid; gap: 10px; }
.fb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.searchbox { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; color: var(--muted); min-width: 0; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; outline: none; color: var(--ink); }
.searchbox:focus-within, .select-ico:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 22%, transparent); }
.fb-selects { display: flex; gap: 10px; flex: 1 1 300px; }
.fb-selects .select-ico { flex: 1; min-width: 0; }
.fb-selects select { flex: 1; min-width: 0; max-width: none; }
.select-ico { display: flex; align-items: center; gap: 6px; padding-left: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; color: var(--muted); }
.select-ico select { border: 0; background: transparent; color: var(--ink); font-weight: 600; padding: 11px 12px 11px 2px; cursor: pointer; outline: none; max-width: 210px; }
.mchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding: 2px var(--gutter-r) 2px var(--gutter); }
.mchips::-webkit-scrollbar { display: none; }
.mchip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink); }
.mchip:hover { border-color: var(--muted); }
.mchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mchip-n { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.mchip.on .mchip-n { background: rgba(255,255,255,.18); color: inherit; }
.fb-toggles { gap: 8px; }
.switch-chip { position: relative; cursor: pointer; }
.switch-chip input { position: absolute; opacity: 0; pointer-events: none; }
.switch-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px dashed var(--line); font-weight: 600; font-size: .88rem; color: var(--muted); }
.switch-chip input:checked + span { border-style: solid; border-color: var(--leaf); background: var(--leaf-soft); color: var(--leaf); }
.switch-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fb-toggles .btn-link { margin-left: auto; font-size: .9rem; }
.results { padding-top: 22px; }
.more { display: flex; justify-content: center; padding-top: 26px; }

/* ---------- Cartes artisan ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.acard {
  position: relative; display: grid; gap: 12px; align-content: start; padding: 18px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
a.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--indigo) 40%, var(--line)); }
.acard.is-feat { border-color: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun); }
.acard.is-feat::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: repeating-linear-gradient(90deg, var(--sun) 0 18px, transparent 18px 24px); }
.acard-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.acard-id { display: grid; gap: 3px; min-width: 0; }
.acard-id h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
.acard-loc { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.acard-loc .ico { margin-top: 2px; }
.acard-desc { color: var(--ink); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.acard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); margin-top: auto; }
.acard-go { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--indigo); }
a.acard:hover .acard-go .ico { transform: translateX(3px); }
.acard-go .ico { transition: transform .2s; }
.chip-mini { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--muted); }

.avatar { display: grid; place-items: center; flex: none; border-radius: 12px; color: var(--pfg); background: var(--pbg); border: 2.5px solid var(--pedge, rgba(0,0,0,.18)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); font-family: var(--display); font-weight: 800; position: relative; overflow: hidden; }
.avatar::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 16%; height: 2px; background: currentColor; opacity: .5; border-radius: 2px; }
.avatar-sm { width: 40px; height: 40px; font-size: .82rem; border-radius: 10px; }
.avatar-md { width: 54px; height: 54px; font-size: 1.05rem; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; border-radius: 18px; }
.avatar-xl { width: 112px; height: 112px; font-size: 2.1rem; border-radius: 22px; transform: rotate(-3deg); }

.stars { display: inline-flex; gap: 1px; color: var(--line); vertical-align: middle; }
.stars .on { color: var(--sun); fill: var(--sun); }
.stars .half { color: var(--sun); fill: color-mix(in srgb, var(--sun) 45%, transparent); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; flex-wrap: wrap; }
.rating strong { font-weight: 800; }
.rating-none { color: var(--muted); font-size: .85rem; font-weight: 600; }

.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font: 700 .76rem/1.2 var(--body); background: var(--surface-2); color: var(--muted); }
.badge-ver { background: var(--indigo); color: var(--on-indigo); }
.badge-feat { background: var(--sun); color: var(--on-sun); }
.badge-on { background: var(--leaf-soft); color: var(--leaf); }
.badge-off { background: var(--surface-2); color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-on .dot, .cc-state.on .dot { box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }

.fav-btn { display: inline-grid; place-items: center; grid-auto-flow: column; gap: 6px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.fav-btn:hover { color: var(--clay); border-color: var(--clay); }
.fav-btn.on { color: var(--clay); border-color: var(--clay); background: var(--clay-soft); }
.fav-btn.on .ico { fill: currentColor; }
.fav-btn.pop .ico { animation: heart .42s ease; }
.fav-btn.with-label { width: auto; height: 38px; padding: 0 13px; border-radius: 10px; font-weight: 700; font-size: .9rem; }

/* Squelettes de chargement */
.skeleton { pointer-events: none; }
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 8px; }
.sk-av { width: 54px; height: 54px; border-radius: 12px; }
.sk-line { height: 12px; } .sk-line.tall { height: 18px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.sk-hero { height: 180px; border-radius: var(--r-lg); margin-bottom: 18px; }
.fiche-loading { padding-block: 32px; display: grid; gap: 12px; }

.empty { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--r-lg); grid-column: 1 / -1; }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--sun-soft); color: var(--on-sun); transform: rotate(-4deg); margin-bottom: 6px; }
:root[data-theme="dark"] .empty-ico { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .empty-ico { color: var(--sun); } }
.empty p { color: var(--muted); max-width: 46ch; }
.empty .btn { margin-top: 6px; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .93rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tab-count { font-size: .74rem; padding: 1px 7px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); }
.tab-count.alert { background: var(--clay); color: #fff; }

/* ---------- Fiche artisan ---------- */
.fiche-head { background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 9%, var(--bg)), var(--bg)); padding-block: 22px 30px; }
.fiche-id { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.fiche-title { display: grid; gap: 10px; min-width: 0; }
.fiche-title h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); overflow-wrap: anywhere; }
.fiche-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: .93rem; }
.meta { display: inline-flex; align-items: center; gap: 6px; }
.fiche-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-self: start; }
.fiche-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; padding-top: 8px; }
.fiche-main { display: grid; gap: 22px; min-width: 0; }
.fiche-body { display: grid; gap: 22px; animation: fade .25s; }
.block h2 { font-size: 1.2rem; margin-bottom: 10px; }
.facts { margin: 0; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fact { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 15px 18px; border-top: 1px solid var(--line); align-items: start; }
.fact:first-child { border-top: 0; }
.fact dt { display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 600; font-size: .92rem; }
.fact dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); font-size: .88rem; font-weight: 600; }
.tel-line { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--sun-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--sun) 50%, transparent); }
.tip .ico { color: var(--sun-2); margin-top: 2px; }
.fiche-side { position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card { display: grid; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.cc-state { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .93rem; }
.cc-state.on { color: var(--leaf); } .cc-state.off { color: var(--muted); }
.cc-btns { display: grid; gap: 10px; }
.actionbar { display: none; }
.rsum { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rsum-big { display: grid; justify-items: center; gap: 4px; }
.rsum-big strong { font: 800 2.6rem/1 var(--display); }
.rsum-bars { display: grid; gap: 6px; min-width: 0; }
.rbar { display: grid; grid-template-columns: 36px 1fr 28px; gap: 10px; align-items: center; font-size: .86rem; font-weight: 600; }
.rbar > span:first-child { display: inline-flex; gap: 3px; align-items: center; }
.rbar > span:first-child .ico { color: var(--sun); fill: var(--sun); }
.rbar-track { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.rbar-track i { display: block; height: 100%; background: var(--sun); border-radius: 8px; transition: width .5s ease; }
.reviews { display: grid; gap: 12px; }
.review { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; }
.review-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.review-head > div { display: grid; }
.review-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); font-weight: 800; }
.review p { overflow-wrap: anywhere; }
.section-sm .h3 { margin-bottom: 14px; }

@media (max-width: 920px) {
  .fiche-layout { grid-template-columns: 1fr; }
  .fiche-side { display: none; }
  .actionbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter);
    background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .fiche-id { grid-template-columns: auto 1fr; gap: 18px; }
  .fiche-tools { grid-column: 1 / -1; justify-content: flex-start; }
  .avatar-xl { width: 84px; height: 84px; font-size: 1.6rem; border-radius: 18px; }
}
@media (min-width: 921px) { body.has-actionbar { padding-bottom: 0; } }
@media (max-width: 620px) {
  .fact { grid-template-columns: 1fr; gap: 6px; }
  .rsum { grid-template-columns: auto 1fr; }
  .rsum > .btn { grid-column: 1 / -1; }
}

/* ---------- Espace artisan ---------- */
.esp-head { padding-block: 32px 18px; }
.esp-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 6px 0 14px; }
.esp-status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .85rem; }
.pill-ok { background: var(--leaf-soft); color: var(--leaf); }
.pill-warn { background: var(--sun-soft); color: var(--on-sun); }
:root[data-theme="dark"] .pill-warn { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-warn { color: var(--sun); } }
.pill-ver { background: var(--indigo); color: var(--on-indigo); }
.pill-sun { background: var(--sun); color: var(--on-sun); }
.pill-bad { background: var(--clay-soft); color: var(--clay); }
.esp-tabs { margin-bottom: 22px; }
.esp-panel { display: grid; gap: 18px; animation: fade .25s; }
.esp-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.esp-aside .sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
@media (max-width: 960px) { .esp-grid { grid-template-columns: 1fr; } .esp-aside { order: -1; } .esp-aside .sticky { position: static; } }
.esp-form { display: grid; gap: 18px; min-width: 0; }
.esp-form[inert] { opacity: .55; }
.fgroup { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 16px; min-width: 0; }
.fgroup legend { float: left; width: 100%; padding: 0; display: grid; gap: 2px; margin-bottom: 4px; }
.fgroup legend + * { clear: both; }
.fg-title { font: 700 1.05rem/1.2 var(--display); }
.fg-sub { color: var(--muted); font-size: .9rem; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; position: relative; }
.field-label { font-weight: 700; font-size: .92rem; padding: 0; }
.field-hint { font-size: .84rem; color: var(--muted); }
.field-err { font-size: .86rem; font-weight: 700; color: var(--clay); min-height: 0; }
.field-err:empty { display: none; }
.counter { justify-self: end; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
:where(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.searchbox input, .select-ico select, .hs-field select { width: auto; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
:where(input:not([type=checkbox]):not([type=radio]), select, textarea):focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--indigo) 22%, transparent); }
.searchbox input:focus, .select-ico select:focus, .hs-field select:focus { box-shadow: none; }
[aria-invalid="true"] { border-color: var(--clay) !important; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.check-chip { position: relative; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; }
.check-chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; }
.check-chip input:checked + span { background: var(--indigo); border-color: var(--indigo); color: var(--on-indigo); }
.check-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; cursor: pointer; position: relative; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > span:last-child { display: grid; gap: 2px; }
.switch-ui { width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch-row input:checked + .switch-ui { background: var(--leaf); }
.switch-row input:checked + .switch-ui::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch-ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--indigo); }
.savebar {
  position: sticky; bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
@media (min-width: 1001px) { .savebar { bottom: 16px; } }
.savebar-btns { display: flex; gap: 10px; margin-left: auto; }
.preview-slot .acard { box-shadow: var(--shadow); }
.preview-slot { animation: fade .2s; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { display: grid; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tile-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); margin-bottom: 6px; }
.tile-label { font-weight: 600; color: var(--muted); font-size: .9rem; }
.tile-num { font: 800 1.9rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.tile-alert { border-color: var(--clay); }
.tile-alert .tile-ico { background: var(--clay-soft); color: var(--clay); }
.card-pad { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 12px; }
.rsum-bars.wide { max-width: 520px; }
.danger-zone { border-color: color-mix(in srgb, var(--clay) 50%, var(--line)); }
.danger-zone .btn { justify-self: start; }
.given { list-style: none; margin: 0; padding: 0; display: grid; }
.given li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.given li:first-child { border-top: 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .88rem; }

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }
.offer { display: grid; gap: 12px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; }
.offer-indigo::before { background: var(--indigo); }
.offer-sun::before { background: repeating-linear-gradient(90deg, var(--sun) 0 22px, transparent 22px 28px); }
.offer-head { display: flex; justify-content: space-between; align-items: center; }
.offer-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.offer-indigo .offer-ico { background: var(--indigo); color: var(--on-indigo); }
.offer-sun .offer-ico { background: var(--sun); color: var(--on-sun); }
.offer-price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.offer-price strong { font: 800 1.7rem/1 var(--display); }
.offer-price span { color: var(--muted); font-weight: 600; }

/* Page d'accueil de l'espace (non connecté) */
.esp-land { background: var(--night); color: #fff; }
.esp-land-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 56px; }
.esp-land h1 { color: #fff; margin-bottom: 16px; }
.esp-land .lead { color: #C9D1E4; margin-bottom: 26px; }
.esp-land .cta-actions { justify-content: flex-start; margin-bottom: 16px; }
.on-dark-muted { color: #9AA6C0; }
.on-dark-muted a { color: var(--sun); }
.land-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.land-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.land-list .why-ico { background: var(--sun); color: var(--on-sun); }
.land-list p { color: #AEB8D0; font-size: .93rem; }
@media (max-width: 860px) { .esp-land-in { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; } }

/* ---------- Administration ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.td-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.td-id > div { display: grid; }
.td-id a { font-weight: 700; color: var(--ink); }
.td-feat { display: grid; gap: 2px; }
.td-rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.toggle-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1.5px dashed var(--line); background: transparent; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; }
.toggle-btn:hover { border-color: var(--muted); color: var(--ink); }
.toggle-btn.on { border-style: solid; border-color: var(--indigo); background: var(--indigo); color: var(--on-indigo); }
.report-card .rc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.rc-items { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; }
.plist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.plist li:first-child { border-top: 0; }
.plist li.soon .muted { color: var(--clay); font-weight: 700; }
.plist li.expired { opacity: .6; }

/* ---------- Pages de contenu ---------- */
.safety { margin-top: 26px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.safety h2 { display: flex; gap: 10px; align-items: center; }
.tips { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.tips li::marker { font-weight: 800; color: var(--clay); }
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.about-text h2 { font-size: 1.3rem; margin: 22px 0 10px; }
.about-text h2:first-child { margin-top: 0; }
.principles { padding-left: 20px; display: grid; gap: 10px; }
.about-card { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.about-card .fact { grid-template-columns: 1fr auto; }
.ens-mini { --pbg: var(--sun); --pfg: #1B1400; position: relative; justify-self: start; padding: 16px 28px; border-radius: 8px; background: var(--pbg); color: var(--pfg); border: 3px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); font: 800 1.4rem/1 var(--display); text-transform: uppercase; transform: rotate(-2deg); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-card { position: static; } }
.legal { display: grid; gap: 26px; }
.legal h2 { font-size: 1.2rem; margin-bottom: 10px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.nf { display: grid; justify-items: center; text-align: center; gap: 14px; padding-block: 72px 24px; }
.nf-sign { font-size: 3rem; padding: 22px 40px; margin-bottom: 12px; animation: swing 3s ease-in-out infinite; transform-origin: 50% -40px; }

/* ---------- Fenêtres et notifications ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; color: var(--ink); overflow: visible; }
.modal.sm { max-width: min(420px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(8, 12, 26, .55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2,1.2,.4,1); border: 1px solid var(--line); }
.modal.closing .modal-card { animation: popout .18s ease-in forwards; }
.modal.closing::backdrop { opacity: 0; transition: opacity .18s; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 4px 22px; }
.modal-head h2 { font-size: 1.2rem; }
.modal-body { padding: 12px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 600px) {
  .modal, .modal.sm { max-width: 100vw; margin: auto 0 0; }
  .modal-card { border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: sheet .28s cubic-bezier(.2,1,.3,1); max-height: 90dvh; }
  .modal.closing .modal-card { animation: sheetout .18s ease-in forwards; }
  .modal-head::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
  .modal-head { position: relative; padding-top: 22px; }
  .modal-foot .btn { flex: 1; }
}
.sheet-nav { display: grid; }
.sheet-link { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-decoration: none; font-weight: 600; text-align: left; cursor: pointer; width: 100%; }
.sheet-link:first-child { border-top: 0; }
.sheet-link .ico:last-child { color: var(--muted); }
.starpick-wrap { display: grid; justify-items: center; gap: 6px; padding: 6px 0; }
.starpick { display: flex; gap: 4px; }
.starpick button { background: none; border: 0; padding: 2px; color: var(--line); cursor: pointer; transition: transform .12s; }
.starpick button:hover { transform: scale(1.12); }
.starpick button.on { color: var(--sun); }
.starpick button.on .ico { fill: var(--sun); }
.starpick-label { font-weight: 700; color: var(--muted); min-height: 1.5em; }
.review-target { display: flex; gap: 12px; align-items: center; }
.review-target > div { display: grid; }
.radios { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.radio-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; border: 1.5px solid var(--line); cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--clay); background: var(--clay-soft); }
.radio-row input { accent-color: var(--clay); width: 18px; height: 18px; }
.celebrate { position: relative; display: grid; place-items: center; padding: 14px; }
.burst { position: absolute; inset: -6px; border-radius: 50%; background: repeating-conic-gradient(var(--sun) 0 8deg, transparent 8deg 22deg); opacity: .5; animation: spin 12s linear infinite; z-index: -1; mask: radial-gradient(circle, transparent 36%, #000 37%, #000 60%, transparent 61%); -webkit-mask: radial-gradient(circle, transparent 36%, #000 37%, #000 60%, transparent 61%); }

.toasts { position: fixed; left: 50%; bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px) + 14px); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 1001px) { .toasts { bottom: 24px; } }
body.has-actionbar .toasts { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--night); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .93rem; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .22s, transform .22s; }
.toast.in { opacity: 1; transform: none; }
.toast-ok .ico { color: #4CC48A; }
.toast-bad { background: var(--clay); }
.toast-info .ico { color: var(--sun); }
:root[data-theme="dark"] .toast { background: #E8ECF6; color: #0A1022; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #E8ECF6; color: #0A1022; } }
:root[data-theme="dark"] .toast-bad { background: var(--clay); color: #fff; }

/* ---------- Animations ---------- */
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popout { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetout { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes heart { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } }
::view-transition-old(root) { animation: .16s ease-in both fade reverse; }
::view-transition-new(root) { animation: .22s ease-out both rise; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Les rangées de filtres ne doivent jamais élargir la page sur petit écran. */
.filterbar .wrap > * { min-width: 0; }
.fb-row > * { min-width: 0; }
.select-ico { min-width: 0; }

/* Page contact et messages (administration) */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.contact-form { max-width: 720px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.msg-card .rc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.msg-card .rc-head .pill { white-space: normal; text-align: right; }
.msg-card.is-read { opacity: .72; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }

.reply { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.reply-ids { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.reply-ids > span { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.contact-form fieldset.field { border: 0; padding: 0; margin: 0; }
p.tip > span { flex: 1; }
