@font-face { font-family: "Amazon Ember"; src: url("../fonts/amazon-ember-400.ttf") format("truetype"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: "Amazon Ember"; src: url("../fonts/amazon-ember-500.ttf") format("truetype"); font-weight: 451 599; font-display: swap; }
@font-face { font-family: "Amazon Ember"; src: url("../fonts/amazon-ember-700.ttf") format("truetype"); font-weight: 600 749; font-display: swap; }
@font-face { font-family: "Amazon Ember"; src: url("../fonts/amazon-ember-900.ttf") format("truetype"); font-weight: 750 1000; font-display: swap; }

/* Mêmes jetons que « Projet Site » : ardoise + jaune / bleu / rouge du logo E.C.R.P */
:root {
  --bg: #f3f5f9; --bg2: #e8edf5; --panel: #ffffff; --panel2: #f4f6fa;
  --text: #121a26; --muted: #5b6878; --line: #dfe4ec;
  --accent: #1a9be0; --accent-ink: #ffffff;
  --top: rgba(255, 255, 255, .82); --top-ink: #121a26; --top-btn: rgba(15, 23, 42, .06);
  --y: #fac304; --b: #5cb9e1; --r: #f56060;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-hi: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 32px rgba(15, 23, 42, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1140px; /* largeur du contenu, élargie sur grand écran (fin de fichier) */
  --slate: radial-gradient(460px 240px at 100% 0%, rgba(92, 185, 225, .28), transparent 70%),
           radial-gradient(360px 180px at 0% 100%, rgba(250, 195, 4, .1), transparent 70%),
           repeating-linear-gradient(-60deg, transparent 0 46px, rgba(255, 255, 255, .03) 46px 48px),
           linear-gradient(120deg, #5a5e65 0%, #6e727a 50%, #7b8088 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --bg2: #121926; --panel: #171e29; --panel2: #1f2835; --text: #e9eef5; --muted: #95a3b5; --line: #2a3544;
    --accent: #3aa8e8; --top: rgba(13, 17, 23, .8); --top-ink: #ffffff; --top-btn: rgba(255, 255, 255, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35); --shadow-hi: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 36px rgba(0, 0, 0, .55);
    --slate: radial-gradient(420px 220px at 100% 0%, rgba(92, 185, 225, .18), transparent 70%),
             repeating-linear-gradient(-60deg, transparent 0 46px, rgba(255, 255, 255, .03) 46px 48px),
             linear-gradient(120deg, #262e39 0%, #2e3744 50%, #364150 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --bg2: #121926; --panel: #171e29; --panel2: #1f2835; --text: #e9eef5; --muted: #95a3b5; --line: #2a3544;
  --accent: #3aa8e8; --top: rgba(13, 17, 23, .8); --top-ink: #ffffff; --top-btn: rgba(255, 255, 255, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35); --shadow-hi: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 36px rgba(0, 0, 0, .55);
  --slate: radial-gradient(420px 220px at 100% 0%, rgba(92, 185, 225, .18), transparent 70%),
           repeating-linear-gradient(-60deg, transparent 0 46px, rgba(255, 255, 255, .03) 46px 48px),
           linear-gradient(120deg, #262e39 0%, #2e3744 50%, #364150 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text);
  font-family: "Amazon Ember", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  background: radial-gradient(1200px 400px at 10% -10%, color-mix(in srgb, var(--b) 16%, transparent), transparent 70%),
              radial-gradient(900px 360px at 100% 0%, color-mix(in srgb, var(--y) 12%, transparent), transparent 70%), var(--bg);
  background-repeat: no-repeat; background-color: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
button, .card, .ibtn, .nav a, .btn { transition: transform .15s var(--ease), background-color .15s, box-shadow .2s var(--ease), border-color .15s, color .15s; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.ic-s { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 8px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  /* séparateur neutre et discret (les couleurs du logo restent sur le soulignement du menu) */
  background: var(--top); color: var(--top-ink); box-shadow: 0 1px 0 var(--line), 0 6px 18px -12px rgba(15, 23, 42, .25);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.brand { display: inline-flex; align-items: center; height: 44px; padding: 0 10px; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); flex: none; }
.brand img { height: 34px; width: auto; }
/* logo SVG (js/logo.js) */
.brand .ecrp-logo { height: 36px; width: auto; display: block; }
/* logo à gauche, boutons à droite : les deux blocs prennent la même largeur, le menu reste centré */
.top-l, .top-r { flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: max-content; }
.top-r { justify-content: flex-end; }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 10px 14px; color: var(--top-ink); text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
/* soulignement tricolore (couleurs du logo) sous la page en cours, plus discret au survol */
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--y) 0 33.34%, var(--b) 0 66.67%, var(--r) 0);
  transform: scaleX(0); transition: transform .2s var(--ease), opacity .2s;
}
@media (hover: hover) { .nav a:hover::after { transform: none; opacity: .45; } }
.nav a[aria-current="page"]::after { transform: none; opacity: 1; }
.spacer { flex: 1; }
.ibtn {
  min-width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--top-btn); color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; font-size: 18px; flex: none;
}
@media (hover: hover) { .ibtn:hover { background: color-mix(in srgb, var(--top-btn), var(--text) 8%); } }
.ibtn:active { transform: scale(.94); }
.ibtn .lbl { font-size: 15px; font-weight: 700; }
.ibtn.cta { background: #1a9be0; color: #fff; box-shadow: 0 6px 16px rgba(26, 155, 224, .35); }
@media (hover: hover) { .ibtn.cta:hover { background: #148ad0; } }
#menuBtn { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  #menuBtn { display: inline-flex; }
}
@media (max-width: 520px) {
  .top { gap: 6px; }
  .ibtn.cta .lbl, .ibtn.tel .lbl { display: none; }
  .brand img { height: 28px; }
  .brand .ecrp-logo { height: 32px; }
}

/* menu déroulant (téléphone / tablette), comme le menu ☰ de Projet Site */
#side {
  position: fixed; top: 74px; left: 12px; width: min(380px, calc(100vw - 24px)); max-height: calc(100% - 86px); overflow-y: auto; z-index: 29;
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 10px; box-shadow: var(--shadow-hi);
  opacity: 0; visibility: hidden; transform: scale(.94) translateY(-8px); transform-origin: 16px 0;
  transition: opacity .18s ease, transform .22s var(--ease), visibility 0s linear .22s;
}
body.menu #side { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s var(--ease), visibility 0s; }
#scrim { position: fixed; inset: 67px 0 0 0; background: rgba(8, 12, 20, .4); z-index: 28; opacity: 0; pointer-events: none; transition: opacity .25s; }
body.menu #scrim { opacity: 1; pointer-events: auto; }
.side-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 6px; }
.side-sec + .side-sec { margin-top: 10px; }
.side-sec a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 15.5px; }
.side-sec a .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc, var(--b)) 14%, var(--panel)); color: color-mix(in srgb, var(--cc, var(--b)) 80%, var(--text)); }
.side-sec a[aria-current="page"] { background: color-mix(in srgb, var(--b) 10%, var(--panel)); font-weight: 600; }
@media (hover: hover) { .side-sec a:hover { background: var(--panel2); } }
.side-sec small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- Mise en page ---------- */
main { flex: 1; width: 100%; padding: 22px max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left)); }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* ---------- Bannière (ardoise + traits diagonaux, comme la bannière d'accueil de Projet Site) ---------- */
.hero {
  --glass: rgba(255, 255, 255, .08); --glass-bd: rgba(255, 255, 255, .18); --ink2: rgba(255, 255, 255, .86); --wl-line: rgba(255, 255, 255, .2); --ib: #3aa8e8;
  position: relative; overflow: hidden; max-width: var(--wrap); margin: 0 auto; padding: 30px 32px 36px; border-radius: 26px; color: #fff;
  background: var(--slate); box-shadow: var(--shadow-hi);
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px;
}
.hero::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: calc(52% - 165px); width: 150px; transform: skewX(-28deg); pointer-events: none;
  background: linear-gradient(90deg, transparent 0 20px, var(--y) 20px 23px, transparent 23px 58px, var(--b) 58px 61px, transparent 61px 96px, var(--r) 96px 99px, transparent 99px);
  opacity: .6;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--y) 0 33.34%, var(--b) 0 66.67%, var(--r) 0); }
.hero > * { position: relative; }
.hero-txt { flex: 1 1 440px; min-width: 0; }
/* annonce (fermeture exceptionnelle…) en haut de la bannière */
.annonce { --ac: #ff5a5a; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; margin-bottom: 18px; padding: 10px 14px; border-radius: 14px; color: #fff; font-size: 13.5px; line-height: 1.4;
  background: color-mix(in srgb, var(--ac) 30%, rgba(20, 24, 30, .45)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 75%, transparent), 0 6px 18px rgba(0, 0, 0, .18); }
.annonce .ic-s { width: 18px; height: 18px; color: var(--ac); flex: none; }
.annonce p { margin: 0; } .annonce p + p { margin-top: 6px; }
.annonce b { color: #fff; }
.annonce.y { --ac: var(--y); } .annonce.b { --ac: #4cc3ff; }
.kicker { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--ink2); margin-bottom: 6px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--y); }
.kicker i:first-of-type { margin-left: 6px; }
.kicker i:nth-of-type(2) { background: var(--b); }
.kicker i:nth-of-type(3) { background: var(--r); }
.hero h1 { margin: 0; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.04; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .2); overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: var(--y); }
.hero h1 { text-wrap: balance; }
/* titre en 3 lignes : « Votre permis » / « auto & moto » / lieu (plus petit) */
.hero h1 .l1, .hero h1 em, .hero h1 small { display: block; }
.hero h1 em { padding-left: 1.2em; } /* « auto & moto » décalé vers la droite */
.hero h1 small { margin-top: 10px; font-size: .46em; font-weight: 700; letter-spacing: .02em; line-height: 1.2; color: rgba(255, 255, 255, .92); }
.hero .lead { margin: 14px 0 0; font-size: 17px; color: var(--ink2); max-width: 560px; }
.hero .lead b { color: #fff; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero.sm { padding: 24px 28px 28px; }
.hero.sm h1 { font-size: clamp(26px, 3.6vw, 40px); }
.hero.sm .hero-txt { flex-basis: 100%; }
@media (max-width: 640px) {
  main { padding-top: 14px; }
  .hero, .hero.sm { padding: 20px 16px 26px; border-radius: 20px; gap: 18px; }
  .hero::before { left: auto; right: -40px; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .kicker { font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
  .hero .lead { font-size: 15.5px; }
  .hero-btns .btn { flex: 1 1 auto; justify-content: center; }
  .status > div { padding: 10px 14px; }
  .status b { font-size: 19px; }
  .grp { margin-top: 34px; }
  .panel { padding: 18px; }
}
.hero.sm::before { left: auto; right: 60px; }

/* bloc « verre » : horaires / statut d'ouverture */
.glass { background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 20px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.status { display: flex; align-items: stretch; overflow: hidden; }
.status > div { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.status > div + div { border-left: 1px solid var(--wl-line); flex: 1; }
.status .ic-s { width: 24px; height: 24px; stroke: var(--y); }
.status b { display: block; font-size: 22px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.status small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); margin-top: 3px; }
/* bandeau date + ouvert / fermé */
.status > div.st-date { gap: 12px; }
.cal { width: 46px; flex: none; border-radius: 11px; overflow: hidden; background: #fff; color: #1c232c; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.cal i { display: block; padding: 2px 0 1px; font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--r); color: #fff; }
.cal b { display: block; font-size: 21px; line-height: 1.25; padding-bottom: 2px; }
/* date : jour en gras, date complète dessous */
.today-d b { font-size: 19px; line-height: 1.1; }
.today-d small { margin-top: 3px; font-size: 12px; white-space: nowrap; }
/* ouvert / fermé + heure sur la même ligne */
.st-row { display: flex; align-items: center; gap: 10px; }
.now { font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.status .now-m { display: none; } /* heure dans la ligne de date : téléphone uniquement */

.status > div.st-open { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 99px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; background: rgba(245, 96, 96, .22); box-shadow: inset 0 0 0 1px rgba(245, 96, 96, .45); }
.badge.on { background: rgba(59, 214, 122, .2); box-shadow: inset 0 0 0 1px rgba(59, 214, 122, .5); }
.badge .dot { width: 8px; height: 8px; background: var(--r); box-shadow: none; }
.badge .dot.on { background: #3bd67a; }
.st-open small { margin: 0 0 0 2px; white-space: nowrap; }
.status > div.st-date, .status > div.st-open { padding: 12px 14px; flex: 1 1 0; justify-content: center; }
.status > div.st-open { align-items: center; text-align: center; }
/* appels rapides vers les agences */
.status > div.st-call { flex: none; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 10px 14px; }
.st-call a { display: flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .15s; }
.st-call a .ic-s { width: 15px; height: 15px; color: var(--b); }
@media (hover: hover) { .st-call a:hover { background: rgba(255, 255, 255, .22); } }
/* bandeau étroit : les boutons d'appel passent dessous, côte à côte */
.hero-side { container-type: inline-size; }
@container (max-width: 500px) {
  .status { flex-wrap: wrap; }
  .status > div.st-call { flex: 1 1 100%; flex-direction: row; border-left: 0; border-top: 1px solid var(--wl-line); }
  .st-call a { flex: 1; justify-content: center; }
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa3ad; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.dot.on { background: #3bd67a; box-shadow: 0 0 0 4px rgba(59, 214, 122, .22); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(59, 214, 122, .08); } }
.hours { padding: 14px 14px 10px; font-size: 14.5px; }
.hours-k { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.hours-k .ic-s { width: 17px; height: 17px; color: var(--y); }
.hours-k span { margin-left: auto; font-size: 11.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink2); }
.hrows { display: grid; gap: 2px; }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 7px 8px; border-radius: 12px; border-top: 1px solid var(--wl-line); }
.hrow:first-child, .hrow.today, .hrow.today + .hrow { border-top-color: transparent; }
.hd { display: flex; align-items: center; gap: 8px; color: var(--ink2); }
.hd i { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: var(--y); color: #1c232c; }
.hs { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.hs b { padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hrow.today { background: rgba(250, 195, 4, .16); box-shadow: inset 0 0 0 1px rgba(250, 195, 4, .35); }
.hrow.today .hd { color: #fff; font-weight: 700; }
.hrow.today .hs b { background: var(--y); color: #1c232c; }
.hrow.off .hs b { background: none; color: var(--ink2); font-weight: 600; padding-right: 0; }

/* carte blanche d'action (comme « Reprendre » de Projet Site) */
.resume {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: #1c232c; background: #fff;
  border-radius: 20px; padding: 14px 16px 14px 22px; box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}
.resume small { display: inline-block; padding: 2px 9px; border-radius: 99px; background: #e2f1fb; color: #1d6fa5; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.resume b { display: block; margin-top: 5px; font-size: 19px; font-weight: 800; }
.resume em { display: block; font-style: normal; font-size: 14.5px; color: #5d6671; }
.resume .go { margin-left: auto; width: 54px; height: 54px; border-radius: 50%; background: #1a9be0; color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(26, 155, 224, .45); transition: transform .2s var(--ease); }
.resume .go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .resume:hover .go { transform: translateX(3px); } }
.resume:active { transform: scale(.98); }

/* boutons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 15.5px; text-decoration: none; background: #fff; color: #1c232c; box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.btn.blue { background: #1a9be0; color: #fff; box-shadow: 0 6px 16px rgba(26, 155, 224, .4); }
.btn.ghost { background: var(--glass, var(--top-btn)); color: inherit; box-shadow: inset 0 0 0 1px var(--glass-bd, var(--line)); }
.btn.line { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: scale(.97); }

/* ---------- Sections (groupes) ---------- */
.grp { max-width: var(--wrap); margin: 44px auto 0; }
.grp-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 20px; }
.grp-ic { --gc: var(--b); width: 52px; height: 52px; border-radius: 15px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--gc) 85%, #fff); box-shadow: 0 6px 16px color-mix(in srgb, var(--gc) 35%, transparent); }
.grp-ic svg { width: 28px; height: 28px; fill: none; stroke: #1c232c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grp-h h2 { position: relative; margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 850; letter-spacing: -.015em; padding-bottom: 6px; line-height: 1.2; }
.grp-h h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 4px; border-radius: 4px; background: var(--gc, var(--b)); }
.grp-pill { padding: 5px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: #1d6fa5; background: #e2f1fb; }
.grp-h .more { margin-left: auto; font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.y { --gc: var(--y); } .b { --gc: var(--b); } .r { --gc: var(--r); }
@media (max-width: 640px) { .grp-ic { width: 44px; height: 44px; border-radius: 13px; } .grp-ic svg { width: 24px; height: 24px; } }

/* ---------- Cartes (liseré de couleur, tache dans le coin) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.cards.five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card {
  --cc: var(--gc, var(--b));
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 20px;
  background: var(--panel); color: var(--text); text-decoration: none; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .07); text-align: left;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--cc); z-index: 2; }
.card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--cc) 8%, transparent) 0 55%, transparent 71%); }
.card > * { position: relative; z-index: 1; }
.card .ph { margin: -18px -18px 6px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card .ph.wide { aspect-ratio: 16 / 9; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--cc) 16%, var(--panel)); color: color-mix(in srgb, var(--cc) 75%, var(--text)); }
.card .ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag { align-self: flex-start; white-space: nowrap; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: color-mix(in srgb, var(--cc) 70%, var(--text)); background: color-mix(in srgb, var(--cc) 15%, var(--panel)); }
.card .t { font-weight: 800; font-size: 18.5px; line-height: 1.3; letter-spacing: -.01em; }
.card .d { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card .cfoot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; gap: 10px; }
.price small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card .go { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: color-mix(in srgb, var(--cc) 80%, var(--text)); background: color-mix(in srgb, var(--cc) 14%, var(--panel)); transition: transform .2s var(--ease), background-color .2s, color .2s; }
.card .go svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
a.card, button.card { cursor: pointer; font: inherit; }

/* ---------- Cartes des formules : plus légères ---------- */
.fcard { gap: 6px; padding-bottom: 14px; }
.fcard::before { height: 4px; }
.fcard .ph { position: relative; margin-bottom: 10px; aspect-ratio: 16 / 11; }
.fcard .ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(10, 14, 20, .35), transparent); pointer-events: none; }
.ph-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 4px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .03em; color: #fff;
  background: rgba(15, 20, 28, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.fcard .t { font-size: 17.5px; font-weight: 500; letter-spacing: -.005em; line-height: 1.3; }
.fcard .pk { font-size: 12.5px; color: color-mix(in srgb, var(--cc) 60%, var(--text)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .d { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard .cfoot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); align-items: center; }
.fcard .price small { font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.fcard .price b { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.fcard .price b i { font-style: normal; font-size: .72em; color: var(--muted); }
.fcard .go { width: 34px; height: 34px; background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cc) 45%, var(--line)); }
.fcard .cfoot { min-height: 0; }
@media (hover: hover) {
  a.card:hover, button.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); border-color: color-mix(in srgb, var(--cc) 40%, var(--line)); }
  a.card:hover .go, button.card:hover .go { transform: translateX(3px); background: var(--cc); color: #fff; }
  a.card:hover .ph img, button.card:hover .ph img { transform: scale(1.04); }
}
a.card:active, button.card:active { transform: scale(.98); }

/* ---------- Bloc « qui sommes-nous » ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.panel p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
.panel p:last-child { margin-bottom: 0; }
.panel p b { color: var(--text); }
/* les photos prennent la hauteur du bloc de texte voisin (plus de vide sous le texte) */
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; min-height: 300px; contain: size; }
.gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.gallery img:first-child { grid-column: span 2; }
@media (max-width: 820px) { .gallery { min-height: 340px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.fact { border-radius: 16px; padding: 14px 16px; background: var(--panel2); border: 1px solid var(--line); }
.fact b { display: block; font-size: 26px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.fact small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.fact.y b { color: color-mix(in srgb, var(--y) 70%, var(--text)); } .fact.b b { color: color-mix(in srgb, var(--b) 75%, var(--text)); } .fact.r b { color: color-mix(in srgb, var(--r) 80%, var(--text)); }

/* ---------- Agences ---------- */
.agency { --cc: var(--gc, var(--b)); }
.agency .t { font-size: 20px; }
.agency ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.agency li { display: flex; gap: 10px; align-items: flex-start; }
.agency li .ic-s { margin-top: 2px; color: color-mix(in srgb, var(--cc) 75%, var(--text)); }
.agency li a { color: var(--text); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .agency li a:hover { color: var(--accent); } }
.agency .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.agency .btn { min-height: 40px; padding: 0 14px; font-size: 14.5px; }

/* ---------- Page Permis : segmenté + fiche détaillée ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 8px 16px; min-height: 40px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
@media (hover: hover) { .seg button:not(.on):hover { background: var(--panel); color: var(--text); } }
.seg button.on { background: #1a9be0; color: #fff; box-shadow: 0 3px 10px rgba(26, 155, 224, .35); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px auto 20px; max-width: var(--wrap); }
.toolbar .hint { color: var(--muted); font-size: 14px; }

dialog.sheet {
  width: min(1180px, calc(100vw - 48px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; overflow: hidden auto;
  background: var(--bg); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
dialog.sheet::backdrop { background: rgba(8, 12, 20, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sh-head { position: relative; display: grid; grid-template-columns: 320px 1fr; min-height: 200px; color: #fff; background: var(--slate); }
.sh-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--y) 0 33.34%, var(--b) 0 66.67%, var(--r) 0); }
.sh-head img { width: 100%; height: 100%; object-fit: cover; }
.sh-head .in { padding: 22px 60px 26px 24px; }
.sh-head h2 { margin: 6px 0 4px; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; font-weight: 900; text-transform: uppercase; }
.sh-head .sub { color: rgba(255, 255, 255, .85); font-size: 15px; }
.sh-head .price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.sh-head .price b { font-size: 34px; color: var(--y); }
.sh-head .price small { color: rgba(255, 255, 255, .8); }
.sh-head .tag { --cc: var(--y); background: rgba(255, 255, 255, .14); color: #fff; }
.sh-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 20px; display: grid; place-items: center; }
.sh-body { padding: 22px 24px 26px; display: grid; gap: 16px; }
.sh-body > p { margin: 0; font-size: 15.5px; }
.note { border-radius: 16px; padding: 14px 16px; font-size: 14.5px; background: color-mix(in srgb, var(--y) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--y) 45%, var(--line)); }
.note b { display: block; margin-bottom: 2px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
/* fiche d'une formule : description et « À savoir » côte à côte, les 4 blocs sur une ligne quand la place le permet */
.sh-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.sh-intro.solo { grid-template-columns: 1fr; }
.sh-desc p { margin: 0 0 10px; font-size: 15.5px; } .sh-desc p:last-child { margin: 0; }
.sh-intro .note { margin: 0; }
@media (max-width: 820px) { .sh-intro { grid-template-columns: 1fr; } }
.box { --cc: var(--b); border-radius: 18px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--cc); }
.box h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--cc) 70%, var(--text)); }
.box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.box li { display: flex; gap: 8px; }
.box li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--cc); }
.box.y { --cc: var(--y); } .box.r { --cc: var(--r); }
.sh-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sh-acts .lbl { font-weight: 800; margin-right: 4px; }
@media (max-width: 640px) {
  .sh-head { grid-template-columns: 1fr; }
  .sh-head img { height: 170px; }
  .sh-head .in { padding: 18px 18px 22px; }
  .sh-body { padding: 18px 16px 22px; }
}

/* ---------- FAQ ---------- */
.faq-sec { max-width: 900px; margin: 30px auto 0; }
.faq-sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 22px; font-weight: 850; }
.faq-sec h2 i { width: 12px; height: 12px; border-radius: 50%; background: var(--gc, var(--b)); }
details.q { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
details.q summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-weight: 700; font-size: 16px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 500; background: var(--panel2); color: var(--muted); transition: transform .2s var(--ease); }
details.q[open] summary::after { transform: rotate(45deg); background: #1a9be0; color: #fff; }
details.q[open] { border-color: color-mix(in srgb, var(--b) 45%, var(--line)); }
details.q .a { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }
details.q .a p { margin: 0 0 10px; }
details.q .a p:last-child { margin-bottom: 0; }
details.q .a ul { margin: 0; padding-left: 20px; }
.faq-search { width: min(420px, 100%); min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 16px; font: inherit; font-size: 15.5px; }

/* ---------- Formulaire ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 10px 14px; font: inherit; font-size: 15.5px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #1a9be0; outline-offset: 0; border-color: transparent; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Actualités ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .news { grid-template-columns: 1fr; } }
.news .card .ph { aspect-ratio: 16 / 9; }
.thumbs { display: flex; gap: 8px; }
.thumbs img { width: 84px; height: 56px; object-fit: cover; border-radius: 10px; }

/* ---------- Pied de page ---------- */
.foot {
  position: relative; color: #fff; background: var(--slate); margin-top: 20px;
  padding: 40px max(16px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--y) 0 33.34%, var(--b) 0 66.67%, var(--r) 0); }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr .85fr; gap: 22px 24px; align-items: start; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; } }
.foot h4 { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--y); }
.foot p, .foot li { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .85); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: #fff; text-decoration: none; }
@media (hover: hover) { .foot a:hover { text-decoration: underline; } }
.foot .brand { margin-bottom: 12px; }
.foot .brand { margin-bottom: 16px; }
.foot .brand .ecrp-logo { height: 42px; }
.foot p.foot-tag { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.35; }
.foot p.foot-sub { margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.foot-links { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.foot-links .btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; color: #fff; }
.foot-links .btn .ic-s { width: 16px; height: 16px; }
.foot-links .round { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: background-color .15s; }
.foot-links .round .ic-s { width: 18px; height: 18px; }
.foot-links .round:first-of-type .ic-s { fill: currentColor; stroke: none; }
.foot-links .round:last-child .ic-s { color: var(--y); }
@media (hover: hover) { .foot-links .round:hover { background: rgba(255, 255, 255, .22); text-decoration: none; } }
/* agences : petites cartes « verre » avec liseré de couleur */
.foot-ag { padding: 16px 16px 14px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-top: 3px solid var(--gc); }
.foot-ag h4 { color: #fff; }
.foot-ag ul { gap: 9px; }
.foot-ag li { display: flex; gap: 10px; align-items: flex-start; }
.foot-ag li .ic-s { width: 16px; height: 16px; margin-top: 2px; color: var(--gc); }
.foot-ag a.more { display: inline-block; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--gc); }
/* horaires : jour à gauche, créneaux à droite */
.foot-h .fh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.foot-h .fh:first-of-type { border-top: 0; padding-top: 0; }
.foot-h .fh span { color: rgba(255, 255, 255, .8); }
.foot-h .fh b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.foot-b { max-width: var(--wrap); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.foot-b .spacer { flex: 1; }
/* cadenas discret vers l'espace moniteurs / administration */
.foot-b .lock { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -6px 0; border-radius: 9px; color: rgba(255, 255, 255, .6); transition: background-color .15s, color .15s; }
.foot-b .lock .ic-s { width: 16px; height: 16px; }
@media (hover: hover) { .foot-b .lock:hover { text-decoration: none; color: #fff; background: rgba(255, 255, 255, .14); } }

/* (placé en fin de fichier pour l'emporter sur les règles générales ci-dessus) */
/* ---------- Téléphone : bandeau et horaires alignés sur un même bord ---------- */
@media (max-width: 640px) {
  .status { flex-direction: column; flex-wrap: nowrap; }
  .status > div + div { border-left: 0; border-top: 1px solid var(--wl-line); }
  .status > div.st-date, .status > div.st-open { flex: none; justify-content: flex-start; padding: 12px 14px; }
  .status .st-date .now-m { display: block; margin-left: auto; font-size: 24px; }
  .status > div.st-open { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
  .st-open .now { display: none; }
  .st-open small { margin: 0; }
  .status > div.st-call { flex: none; flex-direction: row; padding: 10px 14px; }
  .st-call a { flex: 1; justify-content: center; }

  .hours { padding: 12px 12px 8px; }
  .hrow { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 8px; }
  .hd { flex-direction: column; align-items: flex-start; gap: 3px; }
  .hd i { font-size: 9.5px; padding: 1px 6px; }
  .hs { flex-wrap: nowrap; gap: 4px; }
  .hs b { font-size: 12.5px; padding: 3px 7px; }
}
@media (max-width: 380px) {
  .hd { white-space: nowrap; font-size: 14px; }
  .hs b { font-size: 12px; padding: 3px 6px; }
  .hrow { gap: 8px; padding: 8px 6px; }
}

/* ---------- Grand écran : le contenu s'élargit un peu au lieu de laisser de grandes marges ---------- */
@media (min-width: 1500px) {
  :root { --wrap: 1280px; }
  .hero { padding: 34px 38px 40px; gap: 24px 44px; }
  .hero h1 { font-size: 52px; }
  .hero .lead { font-size: 17px; max-width: 600px; }
  .cards { gap: 20px; }
}
@media (min-width: 1800px) {
  :root { --wrap: 1400px; }
  .hero h1 { font-size: 56px; }
}

/* ---------- Barre de défilement « bulle » façon macOS (page et fiche d'une formule) ----------
   Invisible au repos, elle apparaît pendant le défilement (classe .is-scrolling posée par site.js)
   ou au survol : pilule translucide avec un reflet clair sur le bord gauche. */
::-webkit-scrollbar { width: 11px; height: 11px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border-radius: 99px; border: 3px solid transparent; background-clip: padding-box;
  background-color: transparent;
}
.is-scrolling::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 70%);
  background-color: color-mix(in srgb, var(--text) 30%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--text) 45%, transparent); border-width: 2px; }
::-webkit-scrollbar-corner { background: transparent; }
dialog.sheet::-webkit-scrollbar-track { margin: 18px 0; }
/* Firefox (pas de reflet possible : une seule couleur translucide) */
@supports not selector(::-webkit-scrollbar) {
  html, dialog.sheet { scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .3s; }
  html.is-scrolling, dialog.sheet.is-scrolling { scrollbar-color: color-mix(in srgb, var(--text) 35%, transparent) transparent; }
}