/* Habillage commun des pages secondaires (Permis à points, Blog, Nos origines)
   Mêmes couleurs, polices, route et voiture que la page d'accueil. */
:root { --road: clamp(48px, 8vw, 116px); --ink: #1d1c1a; --muted: #5c574f; --cream: #f3ecdf; --paper: #fbf7ef; --yellow: #f2c230; --blue: #1f55c7; --red: #d23a2c; --line: rgba(29,28,26,0.12); }
html { scroll-behavior: smooth; scroll-padding-top: 130px; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--ink); font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(29,28,26,0.3); text-underline-offset: 4px; transition: color 200ms ease, text-decoration-color 200ms ease; }
a:hover { color: var(--blue); text-decoration-color: currentColor; }
*:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.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"); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Route et voiture */
.sm-route { position: fixed; left: 0; top: 0; bottom: 0; width: var(--road); z-index: 30; 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 var(--red); 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; 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); }

/* En-tête */
.sm-tete { position: sticky; top: 0; z-index: 40; margin-left: var(--road); background: rgba(243,236,223,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.sm-tete-in { max-width: 1240px; margin: 0 auto; padding: 12px clamp(14px,3vw,32px) 10px; display: flex; align-items: center; gap: 12px; }
.sm-marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.sm-marque img { height: 34px; width: auto; display: block; }
.sm-marque b { display: block; font-size: 15px; font-weight: 800; font-stretch: 115%; text-transform: uppercase; line-height: 1.15; }
.sm-marque small { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sm-appel-tete { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sm-appel-tete:hover { color: #fff; }
.sm-appel-tete i { color: var(--yellow); font-size: 16px; }
.sm-onglets { display: flex; gap: 6px; max-width: 1240px; margin: 0 auto; padding: 0 clamp(14px,3vw,32px) 10px; overflow-x: auto; scrollbar-width: none; }
.sm-onglets::-webkit-scrollbar { display: none; }
.sm-onglets a { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sm-onglets a:hover { background: #fff; color: var(--ink); }
.sm-onglets a[aria-current="page"] { background: var(--ink); color: #fff; }
.sm-onglets a.jaune { background: var(--yellow); }
@media (max-width: 520px) { .sm-appel-tete span { display: none; } .sm-appel-tete { width: 42px; padding: 0; justify-content: center; } .sm-marque small { display: none; } }

/* Contenu */
main.sm-page { margin-left: var(--road); }
.sm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(14px,3vw,32px); }
.sm-hero { padding: clamp(40px,7vw,80px) 0 24px; }
.sm-kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 9px; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 14px; }
.sm-hero h1 { margin: 22px 0 0; font-stretch: 118%; font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; font-size: clamp(28px,7.4vw,84px); line-height: .92; max-width: 16ch; overflow-wrap: break-word; }
.sm-hero p { margin: 20px 0 0; font-size: clamp(17px,1.6vw,20px); line-height: 1.55; color: var(--muted); max-width: 52ch; }
.sm-hero .sm-kicker { margin: 0; color: var(--yellow); font-size: 14px; line-height: 1.35; max-width: none; }
.sm-hand { font-family: 'Caveat', 'Comic Sans MS', cursive; font-weight: 700; }
.sm-bouton { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform 200ms cubic-bezier(0.23,1,0.32,1); }
.sm-bouton:hover { color: #fff; transform: translateY(-1px); }
.sm-bouton.clair { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.sm-bouton.clair:hover { color: var(--ink); background: rgba(29,28,26,.06); }
.sm-zoom { transition: transform 800ms cubic-bezier(0.23,1,0.32,1); }
.sm-zoom:hover { transform: scale(1.03); }

/* Suite du parcours */
.sm-suite { margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.sm-suite a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform 240ms cubic-bezier(0.23,1,0.32,1); }
.sm-suite a:hover { transform: translateY(-2px); color: var(--ink); }
.sm-suite i { font-size: 26px; }
.sm-suite b { font-size: 17px; }
.sm-suite span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* Pied de page */
.sm-pied { margin-left: var(--road); margin-top: 80px; background: var(--ink); color: #fff; }
.sm-pied-in { max-width: 1240px; margin: 0 auto; padding: 40px clamp(14px,3vw,32px) 32px; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-end; justify-content: space-between; }
.sm-pied p { margin: 0; }
.sm-pied .gros { font-stretch: 118%; font-weight: 800; letter-spacing: -0.035em; text-transform: uppercase; font-size: clamp(34px,6vw,72px); line-height: .9; }
.sm-pied .gros span { color: var(--yellow); }
.sm-pied a.tel { height: 54px; padding: 0 26px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.sm-pied .bas { width: 100%; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.sm-pied .bas a { text-decoration: none; }
