/* ════════════════════════════════════════════════════════════════
   Plan de mobilité simplifié — CC Vitry, Champagne et Der
   Système de design partagé (identité web Mobilité positive)
   ════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Typo */
  --font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  /* Identité — vert CCVCD (calé sur le nouveau logo, outils web) */
  --teal:        #718627;
  --teal-dark:   #586a1b;
  --teal-darker: #414e12;
  --teal-light:  #f4f8e7;
  --teal-tint:   #f9fbf4;

  /* Bleu nuit (rapports / sérieux) */
  --navy:        #183c6d;
  --navy-2:      #204d88;
  --navy-soft:   #e9eff7;
  --navy-line:   #c5d4e7;

  /* Accent */
  --accent:      #fdc10d;
  --accent-2:    #d5a30b;

  /* Neutres */
  --text:        #1a2332;
  --muted:       #62707f;
  --line:        #e2e6ea;
  --line-soft:   #eef1f4;
  --bg:          #f5f7f8;
  --surface:     #ffffff;

  /* Couleurs thématiques (les grands thèmes d'une étude de mobilité) */
  --t-marche:       #2e9e5b;
  --t-velo:         #7fb800;
  --t-tc:           #2f80c7;
  --t-voiture:      #d9534f;
  --t-stationnement:#8e44ad;
  --t-partage:      #f0a500;
  --t-services:     #16a5a5;
  --t-marchandises: #8a7355;

  --radius-sm: 7px;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 4px rgba(16,32,48,.07);
  --shadow:    0 6px 22px rgba(16,32,48,.10);
  --shadow-lg: 0 18px 50px rgba(16,32,48,.16);
  --ring:      0 0 0 3px rgba(113,134,39,.22);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s, color .15s;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(113,134,39,.30); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: 0 12px 28px rgba(113,134,39,.38); }
.btn-ghost { background: #fff; color: var(--teal-dark); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-tint); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.26); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ─── Pastille d'état globale (non utilisée en déploiement réel) ─── */
.demo-flag {
  position: fixed; right: 14px; bottom: 14px; z-index: 4000;
  background: rgba(24,60,109,.92); color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 7px;
  pointer-events: none;
}
.demo-flag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ─── Barre d'outils flottante « changer d'outil » ────────────── */
.toolswitch {
  position: fixed; z-index: 3500; left: 50%; transform: translateX(-50%);
  bottom: 14px;
  display: flex; gap: 4px; align-items: center;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px; box-shadow: var(--shadow-lg);
}
.toolswitch a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 8px 13px; border-radius: 999px; text-decoration: none;
  transition: background .15s, color .15s; white-space: nowrap;
}
.toolswitch a .ts-ico { font-size: 14px; line-height: 1; }
.toolswitch a:hover { background: var(--teal-tint); color: var(--teal-dark); text-decoration: none; }
.toolswitch a.is-current { background: var(--teal); color: #fff; }
.toolswitch a.ts-home { color: var(--navy); }
.toolswitch .ts-label { }
@media (max-width: 720px) {
  .toolswitch { gap: 2px; padding: 4px; max-width: 96vw; overflow-x: auto; }
  .toolswitch a { padding: 8px 10px; }
  .toolswitch .ts-label { display: none; }
  .toolswitch a.ts-home .ts-label { display: inline; }
}

/* utilitaires */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.hidden { display: none !important; }
