/* =========================================================
   SICOS MOTORS — feuille de style du site vitrine
   Couleurs tirées du logo : bleu SICOS, vert de la coche, argent du bolide.
   Pour ajuster la charte, modifiez les variables ci-dessous.
   ========================================================= */

@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Charte SICOS */
  --blue-900: #0B2E4F;   /* texte, fonds sombres */
  --blue-800: #0E3D69;
  --blue-700: #0F4C85;   /* bleu du logo : accueil, boutons */
  --blue-600: #1A5E9E;   /* survol */
  --blue-100: #D6E5F4;
  --blue-50:  #EDF4FB;
  --green-700: #2E7524;  /* boutons verts (texte blanc lisible) */
  --green-600: #3B8C2C;  /* vert de la coche du logo */
  --green-300: #8ACB76;  /* vert sur fond sombre */
  --green-50:  #E7F4E3;
  --silver:    #A9B1B3;  /* argent du logo */
  --reflect:   #CBD1D6;  /* bande réfléchissante */
  --paper:     #FFFFFF;
  --mist:      #EEF2F5;  /* sections alternées */
  --line:      #D3DBE2;
  --text-soft: #42566A;
  --alert:     #C4271D;

  --ink: var(--blue-900);

  /* Typographie */
  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text:    "Atkinson Hyperlegible Next", "Segoe UI", Roboto, Arial, sans-serif;

  /* Échelle (14 / 16 / 18 / 21 / 24 / 36 / 48 / 72) */
  --s-14: .875rem;
  --s-16: 1rem;
  --s-18: 1.125rem;
  --s-21: 1.3125rem;
  --s-24: 1.5rem;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 84px;
  --radius: 10px;
  --shadow-deep: 0 30px 60px -24px rgba(5, 22, 40, .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--s-18);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; word-break: break-all; }
[hidden] { display: none !important; }

.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--blue-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .drive :focus-visible, .site-footer :focus-visible, .as-head :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Titres ---------- */
h1, h2 {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: .005em;
  line-height: .95;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.75rem); font-weight: 800; }
h3 { font-size: var(--s-21); line-height: 1.25; font-weight: 700; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.65rem;
  border: 2px solid transparent; border-radius: 8px;
  font-weight: 700; font-size: var(--s-16); line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-lg { min-height: 58px; padding: .9rem 2rem; font-size: var(--s-18); }
.btn-block { width: 100%; }

.btn-ink { background: var(--blue-700); color: #fff; box-shadow: 0 1px 2px rgba(11, 46, 79, .25), 0 10px 20px -12px rgba(15, 76, 133, .8); }
.btn-ink:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(11, 46, 79, .2), 0 14px 26px -12px rgba(15, 76, 133, .85); }
.btn-green { background: var(--green-700); color: #fff; box-shadow: 0 1px 2px rgba(20, 60, 15, .3), 0 10px 20px -12px rgba(46, 117, 36, .9); }
.btn-green:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(20, 60, 15, .25), 0 14px 26px -12px rgba(46, 117, 36, .95); }
.btn-line { border-color: var(--blue-700); color: var(--blue-700); background: #fff; }
.btn-line:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }
.btn-line-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-line-light:hover { background: #fff; border-color: #fff; color: var(--blue-800); transform: translateY(-1px); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--blue-900); color: #C9D7E5; font-size: var(--s-14); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 42px; }
.topbar-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; align-items: center; gap: 1.6rem; flex: none; }
.topbar-links > a { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.topbar-links > a:hover { color: var(--green-300); }
.topbar-links .icon { width: 1.05rem; height: 1.05rem; opacity: .85; }
.topbar-login { padding-left: 1.6rem; border-left: 1px solid rgba(255, 255, 255, .18); }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; overflow: hidden; }
.lang-switch a { padding: .2rem .6rem; color: #C9D7E5; text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.lang-switch a + a { border-left: 1px solid rgba(255, 255, 255, .3); }
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--blue-900); }
.topbar :focus-visible { outline-color: #fff; }
@media (max-width: 1100px) { .topbar-links > a[href^="mailto:"], .topbar-links > a[href^="tel:"] { display: none; } .topbar-login { padding-left: 0; border-left: 0; } }
@media (max-width: 700px) { .topbar-tag { display: none; } .topbar-inner { justify-content: flex-end; } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 28px -20px rgba(11, 46, 79, .55); }

.header-inner { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { height: 54px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: clamp(1.4rem, 2.1vw, 2.4rem); }
.nav-list a {
  position: relative; display: inline-block; padding-block: .6rem;
  text-decoration: none; font-size: var(--s-16); font-weight: 700; white-space: nowrap; color: var(--blue-900);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 3px; border-radius: 2px;
  background: var(--green-600); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-list a:hover { color: var(--blue-700); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-extra { display: none; }
.nav-lang { text-decoration: none; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: .75rem; flex: none; margin-left: auto; }
.btn-header { min-height: 48px; padding: .7rem 1.5rem; }
.menu-toggle { display: none; width: 48px; height: 48px; margin-right: -2px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue-900); align-items: center; justify-content: center; }
.menu-toggle:hover { border-color: var(--blue-700); }
.menu-toggle .icon { width: 1.4rem; height: 1.4rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1180px) {
  .header-inner { justify-content: space-between; }
  .brand { margin-right: auto; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.75rem;
    box-shadow: 0 24px 40px -24px rgba(11, 46, 79, .35);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: var(--s-18); }
  .nav-list a::after { display: none; }
  .nav-extra { display: grid; gap: .75rem; padding-top: 1.25rem; }
  .nav-lang { padding: .5rem 0; color: var(--blue-700); }
}
@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .header-actions .btn-header { display: none; }
  .brand-logo { height: 44px; }
}
@media (max-width: 360px) { .brand-logo { height: 38px; } }

/* ---------- Accueil ---------- */
.hero { background: var(--blue-700); color: #fff; position: relative; overflow: hidden; }
/* le trait argenté du bolide du logo, en grand */
.hero::before {
  content: ""; position: absolute; right: -12%; top: -30%; width: 75%; height: 160%;
  background: linear-gradient(115deg, transparent 46%, rgba(169, 177, 179, .16) 46.2%, rgba(169, 177, 179, .16) 58%, transparent 58.2%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5.5rem);
}
.hero h1 { font-size: clamp(3rem, 1.3rem + 4vw, 5.25rem); line-height: 1; }
.hero-lead { margin-top: 1.5rem; font-size: clamp(var(--s-18), 1rem + .45vw, var(--s-21)); max-width: 34rem; line-height: 1.5; color: var(--blue-100); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* Carte de conducteur */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.idcard {
  width: min(100%, 460px);
  aspect-ratio: 1.586;
  background: var(--paper); color: var(--blue-900);
  border-radius: 16px;
  box-shadow: var(--shadow-deep);
  transform: rotate(-3deg);
  display: flex; flex-direction: column; overflow: hidden;
  position: relative;
}
.idcard-top { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem .6rem; border-bottom: 3px solid var(--green-600); }
.idcard-logo { height: 30px; width: auto; }
.idcard-kind { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--blue-700); }
.idcard-body { flex: 1; display: grid; grid-template-columns: 24% 1fr 34%; gap: 4.5%; padding: 4% 5%; align-items: center; }
.idcard-photo { border-radius: 6px; overflow: hidden; aspect-ratio: 5 / 6; }
.idcard-photo svg { width: 100%; height: 100%; }
.idcard-info { display: flex; flex-direction: column; min-width: 0; }
.idcard-label { font-size: .72rem; color: var(--text-soft); line-height: 1; }
.idcard-num { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 1.6rem + 3vw, 3.8rem); line-height: .9; letter-spacing: .02em; color: var(--blue-700); }
.idcard-line { font-size: .8rem; font-weight: 700; line-height: 1.35; }
.idcard-valid { font-size: .7rem; color: var(--text-soft); margin-top: .35rem; }
.idcard-qr { position: relative; }
.idcard-qr .qr { width: 100%; height: auto; }
.idcard-strip { height: 12px; background: repeating-linear-gradient(90deg, var(--blue-700) 0 22px, var(--reflect) 22px 30px); }

.scan-frame {
  position: absolute; inset: -6px; border-radius: 6px;
  background:
    linear-gradient(var(--green-600), var(--green-600)) top left / 16px 3px,
    linear-gradient(var(--green-600), var(--green-600)) top left / 3px 16px,
    linear-gradient(var(--green-600), var(--green-600)) top right / 16px 3px,
    linear-gradient(var(--green-600), var(--green-600)) top right / 3px 16px,
    linear-gradient(var(--green-600), var(--green-600)) bottom left / 16px 3px,
    linear-gradient(var(--green-600), var(--green-600)) bottom left / 3px 16px,
    linear-gradient(var(--green-600), var(--green-600)) bottom right / 16px 3px,
    linear-gradient(var(--green-600), var(--green-600)) bottom right / 3px 16px;
  background-repeat: no-repeat;
  opacity: 0; transition: opacity .25s ease;
}
.scan-line {
  position: absolute; left: -4px; right: -4px; top: 0; height: 3px;
  background: var(--green-600); border-radius: 2px;
  box-shadow: 0 0 12px 2px rgba(59, 140, 44, .6);
  opacity: 0;
}
.idcard[data-state="scanning"] .scan-frame,
.idcard[data-state="done"] .scan-frame { opacity: 1; }
.idcard[data-state="scanning"] .scan-line { opacity: 1; animation: sweep 1.5s ease-in-out forwards; }
@keyframes sweep { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }

.scan-result {
  position: relative; z-index: 2; color: var(--blue-900);
  width: min(92%, 380px); margin-top: -1.25rem; margin-left: 18%;
  background: var(--paper); border-radius: 12px; border-left: 5px solid var(--green-600);
  box-shadow: 0 18px 40px -20px rgba(5, 22, 40, .6);
  padding: 1rem 1.15rem;
}
.scan-running { display: none; align-items: center; gap: .6rem; font-weight: 700; font-size: var(--s-16); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.scan-checks li { display: flex; align-items: center; gap: .55rem; font-size: var(--s-16); font-weight: 700; line-height: 1.6; }
.scan-checks li:first-child { font-size: var(--s-18); }
.scan-checks .icon { color: var(--green-600); stroke-width: 2.6; }
.scan-again {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem;
  background: none; border: 0; padding: .25rem 0; font-size: var(--s-14); font-weight: 700; color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.scan-again:hover { color: var(--blue-700); }
.scan-again:focus-visible { outline-color: var(--blue-600); }
.scan-again .icon { width: 1.1em; height: 1.1em; }
.scan-result[data-phase="scanning"] { border-left-color: var(--reflect); }
.scan-result[data-phase="scanning"] .scan-running { display: flex; }
.scan-result[data-phase="scanning"] .scan-checks,
.scan-result[data-phase="scanning"] .scan-again { display: none; }
.scan-result[data-phase="done"] .scan-checks li { animation: rise .35s ease both; }
.scan-result[data-phase="done"] .scan-checks li:nth-child(2) { animation-delay: .12s; }
.scan-result[data-phase="done"] .scan-checks li:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Bande réfléchissante (argent du logo) */
.reflect-band {
  position: relative; color: var(--blue-900);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #DCE1E4 0%, var(--reflect) 55%, #BAC2C7 100%);
  border-bottom: 2px solid rgba(11, 46, 79, .12);
}
.band-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; padding-block: .75rem; }
.band-label { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; flex: none; }
.band-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.band-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem;
  border: 2px solid var(--blue-900); border-radius: 999px;
  font-weight: 700; font-size: var(--s-16); text-decoration: none;
  background: rgba(255, 255, 255, .5);
}
.band-list a:hover { background: var(--blue-900); color: #fff; }
.band-list a:focus-visible { outline-color: var(--blue-900); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding-inline: .5rem; }
  .scan-result { margin-left: 10%; }
}
@media (max-width: 640px) {
  .band-inner { flex-direction: column; align-items: flex-start; gap: .6rem; padding-block: 1rem; }
  .band-list a { font-size: var(--s-14); padding: .35rem .85rem; min-height: 40px; }
  .idcard { transform: rotate(-2deg); }
  .idcard-kind, .idcard-valid { display: none; }
  .idcard-logo { height: 26px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head p { margin-top: 1rem; font-size: var(--s-21); color: var(--text-soft); line-height: 1.45; }

/* Étapes : une route */
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; }
.road::before {
  content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 10px; border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, #fff 0 26px, transparent 26px 46px) center / 100% 2px no-repeat,
    var(--blue-900);
}
.road-step { position: relative; }
.road-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-600); color: #fff; border: 4px solid var(--blue-900);
  font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; line-height: 1;
}
.road-step h3 { margin-top: 1.25rem; }
.road-step p { margin-top: .5rem; color: var(--text-soft); font-size: var(--s-16); max-width: 30ch; }
@media (max-width: 860px) {
  .road { grid-template-columns: 1fr; gap: 0; }
  .road::before { left: 24px; right: auto; top: 0; bottom: 0; width: 10px; height: auto;
    background:
      repeating-linear-gradient(180deg, #fff 0 22px, transparent 22px 40px) center / 2px 100% no-repeat,
      var(--blue-900); }
  .road-step { display: grid; grid-template-columns: 58px 1fr; column-gap: 1.25rem; padding-bottom: 2rem; }
  .road-step:last-child { padding-bottom: 0; }
  .road-num { grid-row: span 2; }
  .road-step h3 { margin-top: .9rem; }
}

/* Fonctionnalités */
.features { background: var(--mist); }
.feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem); }
.feature-group-title {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--f-display); font-weight: 800; font-size: 2.1rem; line-height: 1;
  padding-bottom: 1rem; border-bottom: 3px solid var(--blue-900);
}
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--green-50); color: var(--green-700); flex: none; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature-list > div { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.feature-list dt { font-weight: 700; font-size: var(--s-18); }
.feature-list dd { margin-top: .2rem; color: var(--text-soft); font-size: var(--s-16); max-width: 52ch; }
@media (max-width: 780px) { .feature-groups { grid-template-columns: 1fr; } }

/* Pour qui : onglets */
.tab-list { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -1px;
  padding: .85rem 0; font-weight: 700; font-size: var(--s-18); color: var(--text-soft);
}
.tab:hover { color: var(--blue-900); }
.tab[aria-selected="true"] { color: var(--blue-900); border-bottom-color: var(--green-600); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-statement { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; text-wrap: balance; color: var(--blue-700); }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding-block: .55rem; font-size: var(--s-18); }
.checklist .icon { margin-top: .2em; color: var(--green-600); stroke-width: 2.4; }
.tab-detail .btn { margin-top: 1.5rem; }
@media (max-width: 780px) {
  .tab-list { gap: .25rem 1.25rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tab { white-space: nowrap; font-size: var(--s-16); }
  .tab-panel { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* SICOS Drive */
.drive { background: var(--blue-900); color: #fff; overflow: hidden; }
.drive-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.drive h2 { color: var(--green-300); font-weight: 900; font-size: clamp(3rem, 1.8rem + 4vw, 5.25rem); }
.drive-lead { margin-top: 1.25rem; font-size: var(--s-21); max-width: 32rem; line-height: 1.45; color: #D8E3EE; }
.drive .checklist { margin-top: 1.75rem; }
.checklist-light .icon { color: var(--green-300); }
.drive-copy > .btn { margin-top: 2rem; }

.drive-get { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 2rem; margin-top: 2rem; }
.drive-get-main { display: grid; gap: .6rem; justify-items: start; }
.drive-meta { font-size: var(--s-14); color: #B9C9D9; }
.drive-count { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--green-300); font-size: var(--s-16); }
.drive-ios { order: -1; max-width: 28rem; padding: .75rem 1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .08); font-size: var(--s-16); }
.drive-qr { display: flex; align-items: center; gap: 1rem; max-width: 20rem; padding: .75rem; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.drive-qr-code { flex: none; width: 104px; height: 104px; background: #fff; border-radius: 8px; padding: 6px; }
.drive-qr-code svg, .drive-qr-code img { width: 100%; height: 100%; }
.drive-qr p { font-size: var(--s-14); line-height: 1.45; color: #D8E3EE; }
.drive-qr strong { color: #fff; display: block; }

.drive-install { margin-top: 1.5rem; max-width: 34rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.drive-install summary { cursor: pointer; padding: .9rem 0; font-weight: 700; font-size: var(--s-16); color: #fff; list-style: none; display: flex; align-items: center; gap: .6rem; }
.drive-install summary::-webkit-details-marker { display: none; }
.drive-install summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--green-300); border-bottom: 2.5px solid var(--green-300); transform: rotate(-45deg); transition: transform .2s ease; }
.drive-install[open] summary::before { transform: rotate(45deg); }
.drive-install ol { list-style: decimal; padding-left: 1.4rem; display: grid; gap: .45rem; color: #D8E3EE; font-size: var(--s-16); }
.drive-install li::marker { color: var(--green-300); font-weight: 700; }
.drive-sha { margin-top: .9rem; font-size: var(--s-14); color: #B9C9D9; }
.drive-sha code { display: block; margin-top: .25rem; color: #fff; }

.phone {
  width: 320px; border-radius: 42px; padding: 12px;
  background: #061A2E; border: 2px solid #284763;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  transform: rotate(3deg);
}
.phone-screen { border-radius: 32px; overflow: hidden; background: #fff; color: var(--blue-900); display: flex; flex-direction: column; height: 560px; }
.phone-map { position: relative; flex: 1; min-height: 0; }
.phone-map svg { width: 100%; height: 100%; }
.phone-pill {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  background: var(--blue-700); color: #fff; font-size: .8rem; font-weight: 700;
  padding: .35rem .8rem; border-radius: 999px; white-space: nowrap;
}
.phone-pill { transition: background-color .3s ease; }
.phone-pill.is-arrived { background: var(--green-700); }
.phone-sheet { padding: 1rem 1rem 1.15rem; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(11, 46, 79, .4); }
.phone-to { font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.phone-driver { display: flex; align-items: center; gap: .65rem; margin-top: .85rem; }
.phone-avatar svg { width: 40px; height: 40px; }
.phone-driver-txt { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3; min-width: 0; }
.phone-driver-txt strong { white-space: nowrap; }
.phone-ok { display: inline-flex; align-items: center; gap: .25rem; color: var(--green-700); font-weight: 700; font-size: .78rem; }
.phone-ok .icon { width: 1em; height: 1em; stroke-width: 3; }
.phone-price { margin-left: auto; font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.phone-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; margin-top: .9rem; }
.phone-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 42px; border-radius: 10px; border: 2px solid var(--blue-700); color: var(--blue-700); font-size: .82rem; font-weight: 700;
}
.phone-btn .icon { width: 1.05em; height: 1.05em; }
.phone-btn-alert { background: var(--alert); border-color: var(--alert); color: #fff; }
@media (max-width: 860px) {
  .drive-grid { grid-template-columns: 1fr; }
  .phone { justify-self: center; width: min(310px, 100%); transform: rotate(2deg); }
  .phone-screen { height: 520px; }
}

/* Chiffres en direct */
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem 2.5rem; }
.figure { display: flex; flex-direction: column-reverse; border-top: 3px solid var(--green-600); padding-top: 1rem; }
.figure dd { font-family: var(--f-display); font-weight: 900; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--blue-700); }
.figure dt { color: var(--text-soft); font-size: var(--s-16); margin-top: .35rem; }
.partners-title { margin-top: 3rem; }
.partners { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.partners li { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--s-16); }

/* Questions */
.faq { background: var(--mist); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 3px solid var(--blue-900); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.15rem 0; font-weight: 700; font-size: var(--s-18);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--green-700), var(--green-700)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--green-700), var(--green-700)) center / 2.5px 14px no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 2.5rem 1.35rem 0; color: var(--text-soft); max-width: 62ch; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq .section-head { position: static; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-copy > p { margin-top: 1rem; font-size: var(--s-21); color: var(--text-soft); line-height: 1.45; max-width: 32rem; }
.contact-info { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-info li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-info .icon { margin-top: .15rem; width: 1.4em; height: 1.4em; color: var(--green-700); }
.contact-info a { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ci-label { display: block; font-size: var(--s-14); color: var(--text-soft); }
.contact-copy .btn { margin-top: 2rem; }

.contact-form {
  background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--green-600);
  border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 30px 60px -40px rgba(11, 46, 79, .45);
  display: grid; gap: 1.15rem;
}
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { font-weight: 700; font-size: var(--s-16); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff;
  font-size: var(--s-16);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2E4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 18px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(26, 94, 158, .22); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--alert); }
.field-error { color: var(--alert); font-size: var(--s-14); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: .85rem 1rem; border-radius: var(--radius); font-weight: 700; font-size: var(--s-16); }
.form-notice-ok { background: var(--green-50); color: var(--green-700); }
.form-notice-error { background: #FBE7E5; color: var(--alert); }
.form-privacy { font-size: var(--s-14); color: var(--text-soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-900); color: #D8E3EE; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.brand-plate .brand-logo { height: 48px; }
.brand-plate { background: #fff; border-radius: 12px; padding: .6rem .9rem; }
.footer-brand p { margin-top: 1rem; max-width: 26ch; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green-300); text-decoration: underline; text-underline-offset: 3px; }
.footer-social { margin-top: 1.25rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid #234566; font-size: var(--s-14);
}
.to-top { display: inline-flex; align-items: center; gap: .4rem; }
.to-top .icon { width: 1.1em; height: 1.1em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Logos de communes (avec initiales de secours) ---------- */
.c-logo {
  --c: var(--blue-700);
  position: relative; display: grid; place-items: center; flex: none;
  width: var(--size, 72px); height: var(--size, 72px); border-radius: 50%;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.c-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.c-initials { display: none; font-family: var(--f-display); font-weight: 900; font-size: calc(var(--size, 72px) * .3); line-height: 1; color: #fff; letter-spacing: .02em; }
.c-logo.is-fallback { background: var(--c); border-color: transparent; }
.c-logo.is-fallback .c-initials { display: block; }

/* Bandeau des communes sur l'accueil */
.hero-proof { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-size: var(--s-16); font-weight: 700; }
.hero-proof .icon { color: var(--green-300); stroke-width: 2.6; }
.hero-proof a { color: #fff; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; }
.hero-proof a:hover { text-decoration-color: #fff; }
.logo-strip { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.75rem; justify-items: start; }
.logo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 1.25rem .75rem; width: 100%; }
.logo-row a { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; text-align: center; border-radius: 12px; padding: .5rem .25rem; }
.logo-row a:hover { background: var(--mist); }
.logo-row .c-logo { --size: 64px; }
.logo-name { font-size: var(--s-14); font-weight: 700; line-height: 1.25; }

/* ---------- Page « Communes partenaires » ---------- */
.p-hero { background: var(--mist); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.p-hero h1 { font-size: clamp(3rem, 1.8rem + 4vw, 5.25rem); line-height: 1; color: var(--blue-700); }
.p-lead { margin-top: 1rem; font-size: var(--s-21); color: var(--text-soft); max-width: 40rem; line-height: 1.45; }
.p-figures { margin-top: 2.5rem; }
.p-figures .figure dd { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem); }
.p-asof { margin-top: 1.25rem; font-size: var(--s-14); color: var(--text-soft); }
.p-notice { margin-bottom: 1.5rem; max-width: 40rem; }

.p-list { padding-top: clamp(3rem, 6vw, 4.5rem); }
.p-region + .p-region { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.p-region-title { display: flex; align-items: baseline; gap: .9rem; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); padding-bottom: .75rem; border-bottom: 3px solid var(--blue-900); margin-bottom: 1.25rem; }
.p-region-title span { font-family: var(--f-text); font-size: var(--s-16); font-weight: 700; color: var(--text-soft); letter-spacing: 0; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.p-tile {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.p-tile:hover { border-color: var(--blue-700); box-shadow: 0 14px 30px -22px rgba(11, 46, 79, .55); }
.p-tile .c-logo { --size: 64px; }
.p-tile-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.p-tile-name { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--blue-700); }
.p-tile-dp { font-size: var(--s-14); color: var(--text-soft); }
.p-tile-nums { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin-top: .35rem; font-size: var(--s-14); }
.p-tile-nums strong { font-size: var(--s-16); }
.p-badge { display: inline-block; align-self: flex-start; margin-top: .45rem; padding: .15rem .6rem; border-radius: 999px; background: #FFF4D6; color: #7A5300; font-size: .78rem; font-weight: 700; }

.p-h2 { font-family: var(--f-text); font-size: var(--s-21); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
.p-h2 ~ .p-h2 { margin-top: 2.5rem; }
.p-unions { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.p-unions-lead { color: var(--text-soft); font-size: var(--s-16); margin: -.5rem 0 1.25rem; }
.p-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.p-pills li { padding: .35rem .8rem; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: var(--s-14); font-weight: 700; }

.p-join { background: var(--blue-700); color: #fff; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.p-join-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.p-join h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.p-join p { margin-top: .6rem; color: var(--blue-100); max-width: 36rem; }

/* Page d'une commune */
.p-crumb { margin-bottom: 1.5rem; font-size: var(--s-16); font-weight: 700; }
.p-crumb a { display: inline-flex; align-items: center; gap: .4rem; color: var(--blue-700); text-decoration: none; }
.p-crumb a:hover { text-decoration: underline; }
.icon-back { transform: rotate(-90deg); }
.p-head { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2rem); }
.p-head .c-logo { --size: clamp(84px, 12vw, 120px); }
.p-kind { font-size: var(--s-16); font-weight: 700; color: var(--green-700); margin-bottom: .35rem; }
.p-place { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .75rem; font-size: var(--s-16); }
.p-place div { display: flex; gap: .4rem; }
.p-place dt { color: var(--text-soft); }
.p-place dd { font-weight: 700; }
.p-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.p-stations { columns: 2 220px; column-gap: 2rem; }
.p-stations li { display: flex; align-items: flex-start; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: var(--s-16); break-inside: avoid; }
.p-stations .icon { color: var(--green-700); margin-top: .15em; width: 1.1em; height: 1.1em; }
.p-empty { color: var(--text-soft); font-size: var(--s-16); }
.p-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.p-card { background: var(--mist); border-radius: 14px; padding: 1.4rem 1.5rem 1.5rem; border-top: 5px solid var(--green-600); }
.p-card + .p-card { border-top-color: var(--blue-700); }
.p-card h2 { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.p-card p { margin: .6rem 0 1.1rem; color: var(--text-soft); font-size: var(--s-16); }
@media (max-width: 860px) {
  .p-detail-grid { grid-template-columns: 1fr; }
  .p-side { position: static; }
}
@media (max-width: 520px) {
  .p-head { flex-direction: column; align-items: flex-start; }
  .p-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .figure-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
  .figure dd, .p-figures .figure dd { font-size: 2.6rem; }
  .figure dt { font-size: var(--s-14); }
}

/* ---------- Pages intérieures (mentions légales, 404) ---------- */
.page { padding-block: clamp(3rem, 7vw, 6rem); }
.page h1 { font-size: clamp(2.75rem, 1.8rem + 3.5vw, 4.5rem); color: var(--blue-700); }
.page-body { max-width: 44rem; margin-top: 2.5rem; }
.page-body h2 { font-family: var(--f-text); font-size: var(--s-21); font-weight: 700; line-height: 1.3; margin-top: 2.25rem; }
.page-body p { margin-top: .6rem; color: var(--text-soft); }
.page-body a { font-weight: 700; }
.page .btn { margin-top: 2.5rem; }

/* ---------- Assistant ---------- */
.as-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 54px; padding: .7rem 1.2rem .7rem 1rem;
  background: var(--green-700); color: #fff; border: 3px solid #fff; border-radius: 999px;
  font-weight: 700; font-size: var(--s-16);
  box-shadow: 0 16px 34px -14px rgba(5, 22, 40, .7);
}
.as-launcher:hover { background: var(--green-600); }
.as-launcher .icon { width: 1.4em; height: 1.4em; }
.as-launcher[aria-expanded="true"] { display: none; }

.as-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(5, 22, 40, .6);
  transform-origin: bottom right;
}
.as-panel.is-entering { animation: as-in .22s ease-out; }
@keyframes as-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.as-head { display: flex; align-items: center; gap: .7rem; background: var(--blue-700); color: #fff; padding: .7rem .8rem .7rem .9rem; }
.as-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
.as-logo img { width: 34px; height: auto; }
.as-head h2 { font-family: var(--f-display); font-weight: 900; font-size: 1.45rem; line-height: 1; letter-spacing: .02em; }
.as-close { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: #fff; border-radius: 8px; }
.as-close:hover { background: var(--blue-600); }

.as-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--mist); overscroll-behavior: contain; }
.as-msg { max-width: 88%; padding: .7rem .9rem; border-radius: 14px; font-size: var(--s-16); line-height: 1.45; }
.as-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 0 var(--line); }
.as-user { align-self: flex-end; background: var(--blue-700); color: #fff; border-bottom-right-radius: 4px; }
.as-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.as-actions a, .as-actions button {
  display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .75rem;
  border-radius: 999px; background: var(--green-50); color: var(--green-700); border: 1.5px solid #BFE0B5;
  font-size: var(--s-14); font-weight: 700; text-decoration: none;
}
.as-actions a:hover, .as-actions button:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.as-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.as-chips button {
  min-height: 36px; padding: .3rem .8rem; border-radius: 999px;
  border: 2px solid var(--blue-700); color: var(--blue-700); background: #fff; font-size: var(--s-14); font-weight: 700;
}
.as-chips button:hover { background: var(--blue-700); color: #fff; }
.as-typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.as-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-soft); animation: pulse 1s infinite; }
.as-typing span:nth-child(2) { animation-delay: .15s; }
.as-typing span:nth-child(3) { animation-delay: .3s; }

.as-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); background: #fff; }
.as-form input { flex: 1; min-width: 0; min-height: 46px; padding: .55rem .85rem; border: 2px solid var(--line); border-radius: var(--radius); font-size: var(--s-16); }
.as-form input:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(26, 94, 158, .22); }
.as-form button { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--green-700); color: #fff; border: 0; border-radius: var(--radius); }
.as-form button:hover { background: var(--green-600); }

@media (max-width: 520px) {
  .as-launcher span { display: none; }
  .as-launcher { padding: .7rem; min-width: 56px; justify-content: center; right: 14px; bottom: 14px; }
  .as-panel { right: 0; bottom: 0; width: 100vw; height: 100%; height: 100dvh; border-radius: 0; }
}

/* ---------- Page privée des statistiques ---------- */
.stats-page { background: var(--mist); }
.stats-bar { background: #fff; border-bottom: 1px solid var(--line); }
.stats-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.stats-actions { display: flex; gap: 1.25rem; font-weight: 700; font-size: var(--s-16); }
.stats-main { padding-block: 2.5rem 4rem; }
.stats-main h1 { font-size: clamp(2.5rem, 1.8rem + 2.5vw, 3.75rem); color: var(--blue-700); }
.stats-note { margin-top: 1rem; color: var(--text-soft); font-size: var(--s-16); max-width: 60rem; }
.stats-note a { font-weight: 700; color: var(--blue-700); }
.stats-warn { color: var(--alert); }
.stats-login { margin-top: 2rem; max-width: 24rem; display: grid; gap: .6rem; background: #fff; padding: 1.5rem; border-radius: 14px; border-top: 6px solid var(--green-600); }
.stats-login label { font-weight: 700; }
.stats-login input { min-height: 50px; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: var(--radius); }
.stats-login .btn { margin-top: .5rem; }
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 2rem; }
.stats-kpis > div { background: #fff; border-radius: 12px; padding: 1.1rem 1.25rem; border-top: 4px solid var(--green-600); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats-kpis > div:first-child { border-top-color: var(--blue-700); }
.stats-kpis dt { font-size: var(--s-14); color: var(--text-soft); font-weight: 700; }
.stats-kpis dd { font-family: var(--f-display); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--blue-900); }
.stats-kpis dd.stats-sub { order: -1; font-family: var(--f-text); font-weight: 400; font-size: var(--s-14); color: var(--text-soft); margin-top: .3rem; }
.stats-block { margin-top: 2.5rem; background: #fff; border-radius: 12px; padding: 1.25rem 1.5rem 1.5rem; }
.stats-block h2 { font-family: var(--f-text); font-size: var(--s-18); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
.stats-chart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; height: 220px; align-items: end; }
.stats-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.stats-bar-fill { width: 100%; background: var(--blue-700); border-radius: 3px 3px 0 0; min-height: 2px; }
.stats-col:last-child .stats-bar-fill { background: var(--green-600); }
.stats-val { font-size: .7rem; font-weight: 700; color: var(--text-soft); }
.stats-day { font-size: .7rem; color: var(--text-soft); }
.stats-tables { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 1.5rem; }
.stats-table { width: 100%; border-collapse: collapse; font-size: var(--s-16); }
.stats-table th { text-align: left; font-size: var(--s-14); color: var(--text-soft); font-weight: 700; padding: .4rem .5rem .6rem 0; border-bottom: 2px solid var(--blue-900); }
.stats-table td { padding: .6rem .5rem .6rem 0; border-bottom: 1px solid var(--line); }
.stats-table td:not(:first-child), .stats-table th:not(:first-child) { text-align: right; }
.stats-tag { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: .75rem; font-weight: 700; }
@media (max-width: 640px) { .stats-col:not(:nth-child(5n)) .stats-day { visibility: hidden; } .stats-val { display: none; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .assistant, .reflect-band, .contact-form, .hero-visual { display: none !important; }
  .hero, .drive, .site-footer { background: none; color: #000; }
}
