/* Habillage « Auto-école Saint Marc » de l'appli Révision permis B.
   Chargé après style.css : mêmes couleurs, polices et route que le site principal. */

:root {
  --road: clamp(48px, 8vw, 116px);
  --bg: #f3ecdf;
  --surface: #fbf7ef;
  --surface-2: #efe6d6;
  --text: #1d1c1a;
  --text-2: #5c574f;
  --text-3: #8a8378;
  --line: rgba(29, 28, 26, .12);
  --line-strong: rgba(29, 28, 26, .24);
  --shadow: 0 0 0 1px rgba(29, 28, 26, .10), 0 10px 26px -16px rgba(0, 0, 0, .35);
  --shadow-lg: 0 0 0 1px rgba(29, 28, 26, .12), 0 22px 44px -22px rgba(0, 0, 0, .45);
  --blue: #1f55c7;
  --blue-ink: #1f55c7;
  --yellow: #f2c230;
  --bad: #d23a2c;
  --pill: #fbf7ef;
  color-scheme: light;
}
/* le site principal n'a pas de mode sombre : on garde les mêmes couleurs */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #f3ecdf; --surface: #fbf7ef; --surface-2: #efe6d6;
    --text: #1d1c1a; --text-2: #5c574f; --text-3: #8a8378;
    --line: rgba(29, 28, 26, .12); --line-strong: rgba(29, 28, 26, .24);
    --shadow: 0 0 0 1px rgba(29, 28, 26, .10), 0 10px 26px -16px rgba(0, 0, 0, .35);
    --shadow-lg: 0 0 0 1px rgba(29, 28, 26, .12), 0 22px 44px -22px rgba(0, 0, 0, .45);
    --blue: #1f55c7; --blue-ink: #1f55c7; --vi: #7c5cff; --ve: #12a37a;
    --good: #16a34a; --good-bg: #eaf7ee; --bad: #d23a2c; --bad-bg: #fdecec;
    --warn-bg: #fff7dd; --warn-line: #e2b400; --pill: #fbf7ef;
    color-scheme: light;
  }
}

body {
  font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  padding-left: var(--road);
}
/* grain papier du site */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Route et voiture (comme le site principal) ---------- */
.sm-route {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--road); z-index: 15;
  background: #2b2b2e; box-shadow: inset -10px 0 24px -12px rgba(0, 0, 0, .6);
}
.sm-route .bords { position: absolute; top: 0; bottom: 0; left: 7px; right: 7px; border-left: 2px solid rgba(255,255,255,.85); border-right: 2px solid rgba(255,255,255,.85); }
.sm-route .ligne { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background-image: linear-gradient(to bottom, #f2c230 0 40px, transparent 40px 80px); background-size: 4px 80px; background-repeat: repeat-y; }
.sm-route .voiture { position: absolute; left: 50%; top: 64%; width: min(56%, 46px); transform: translate(-50%, -50%); will-change: transform; }
.sm-route .voiture svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)); }
.sm-route .km { position: absolute; left: 50%; top: calc(64% + clamp(42px, 6vw, 64px)); transform: translateX(-50%); background: #fff; border-radius: 6px 6px 3px 3px; border-top: 7px solid #d23a2c; padding: 4px 6px 5px; min-width: 36px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.sm-route .km span, .sm-route .panneau span { font-family: 'JetBrains Mono', ui-monospace, monospace; text-transform: uppercase; white-space: nowrap; }
.sm-route .km span { display: block; font-size: 10px; letter-spacing: .02em; color: #1d1c1a; font-weight: 600; }
.sm-route .panneau { position: absolute; left: 0; right: 0; top: 96px; display: flex; justify-content: center; }
.sm-route .panneau span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; letter-spacing: .06em; color: rgba(255,255,255,.7); }

/* ---------- Barre « Retour au site » ---------- */
.sitebar { position: sticky; top: 0; z-index: 12; background: rgba(243,236,223,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.sitebar-in { max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.sb-back { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: #1d1c1a; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .2s var(--ease-out); }
.sb-back:active { transform: scale(.96); }
.sb-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #1d1c1a; color: #1d1c1a; text-decoration: none; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-tel i { color: #d23a2c; }
@media (max-width: 420px) { .sb-tel { width: 42px; padding: 0; justify-content: center; } .sb-tel span { display: none; } .sb-tel i { font-size: 18px; } }

/* ---------- Bandeau de l'auto-école aux couleurs du site ---------- */
.band { margin-top: 0; border-radius: 0 0 22px 22px; color: #1d1c1a; box-shadow: 0 0 0 1.5px #1d1c1a inset, 0 14px 30px -18px rgba(0,0,0,.5); }
.band::after { height: 10px; background: repeating-linear-gradient(-45deg, #1d1c1a 0 10px, transparent 10px 20px); opacity: 1; }
.band-kicker { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .06em; color: #1d1c1a; }
.band-name { font-stretch: 118%; text-transform: uppercase; color: #1d1c1a; }
.band-offer { color: #3d3a35; }
.band-stage { background: #d23a2c; }
.band-contacts { grid-template-columns: 1fr; padding-bottom: 12px; }
.contact { background: rgba(255,255,255,.8); box-shadow: 0 0 0 1.5px #1d1c1a inset; }
.contact-ico { background: #1d1c1a; color: #f2c230; }
.contact-txt b, .contact-txt .tel { color: #1d1c1a; }
.contact-txt span { color: #5c574f; }

/* ---------- Titres et boutons ---------- */
h1, h2, .res-score { font-family: 'Archivo', sans-serif; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.025em; }
.btn.primary { background: #1d1c1a; color: #fff; }
.foot a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* ---------- Écrans étroits : la route prend de la place, on resserre ---------- */
@media (max-width: 460px) {
  .filters { flex-wrap: wrap; gap: 10px; }
  .filters .segmented { flex: 1 1 100%; }
  .bar .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; font-size: 15px; white-space: nowrap; }
  .bar .icon-btn { width: 46px; }
}
