/* ============================================================
   ANDRÉSY — l'app des Andrésiens
   DA « Le confluent » : l'eau et la lumière. Andrésy est née au
   confluent de la Seine et de l'Oise, et son blason porte encore
   la galère romaine qui y surveillait la navigation. La palette
   part de là — ardoise profonde, bleu Seine, sable de berge —
   et se réchauffe d'un corail pour ne jamais tomber dans le bleu
   froid des administrations.
   Volontairement éloignée de Dampierre (crème / vert forêt / ocre) :
   deux communes, deux identités.
   Mobile-first absolu ; desktop cappé à 460px centré.
   ============================================================ */

:root {
  --bg: #f4f0e7;
  --surface: #ffffff;
  --ink: #14303f;
  --ink-soft: #5b6f79;
  --ink-faint: #94a4ac;
  --line: #e4ded1;

  --deep: #0f3347;
  --seine: #2b7a9b;
  --reflet: #7fb8c9;
  --seine-soft: #e2eef3;
  --corail: #e07a5f;
  --corail-soft: #fbe6df;
  --sable: #f7f3ea;

  --grad-hero: linear-gradient(140deg, #0d2c3e 0%, #1d5a77 55%, #2f88a8 100%);
  --grad-seine: linear-gradient(135deg, #1d5a77, #2f88a8);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 51, 71, 0.04), 0 8px 24px rgba(15, 51, 71, 0.08);
  --shadow-seine: 0 10px 30px rgba(15, 51, 71, 0.26);
  --ease-spring: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tabbar-h: 66px;
}

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

html, body { overflow-x: clip; } /* clip, pas hidden : garde la tabbar fixed ancrée au viewport (gotcha iOS) */

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 30px);
}

/* Aurora : le fond respire. Deux nappes d'eau et un reflet de sable. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(580px 400px at 86% -8%, rgba(47, 136, 168, 0.15), transparent 66%),
    radial-gradient(500px 340px at -14% 22%, rgba(224, 122, 95, 0.09), transparent 62%),
    var(--bg);
}

a { color: var(--seine); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

@media (min-width: 600px) {
  body {
    max-width: 460px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--line), 0 18px 60px rgba(15, 51, 71, 0.15);
    min-height: 100vh;
  }
  body::before { max-width: 460px; left: 50%; transform: translateX(-50%); }
  .tabbar { max-width: 432px; }
}

/* ── Header identité ─────────────────────────────────────────── */
.brand {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { display: grid; place-items: center; }
.brand-mark img { display: block; filter: drop-shadow(0 1px 2px rgba(15, 51, 71, 0.2)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seine);
}

/* ── Routes ──────────────────────────────────────────────────── */
.route { display: none; }
.route.active { display: block; }

.section { padding: 18px 18px 8px; }

.section-head { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 6px; }
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--deep);
}
.section-count { font-size: 0.85rem; font-weight: 600; color: var(--ink-faint); }
.section > .muted.small { margin-bottom: 14px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin: 12px 14px 0;
  padding: 24px 22px 52px;
  border-radius: 26px;
  background: var(--grad-hero);
  box-shadow: var(--shadow-seine);
  color: var(--sable);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 200px at 85% -20%, rgba(220, 240, 248, 0.2), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sable) 62%, transparent);
  margin-bottom: 7px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.12;
}
.hero-sub {
  margin-top: 7px;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--sable) 80%, transparent);
}
/* La galère du blason, en filigrane : la ville se reconnaît sans qu'on l'écrive. */
.hero-mark {
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 150px;
  opacity: 0.1;
  /* le blason source est noir : on le blanchit pour le poser sur le dégradé */
  filter: brightness(0) invert(1);
  transform: rotate(-6deg);
  pointer-events: none;
}

/* ── Accès rapides ───────────────────────────────────────────── */
.section-hero-overlap { padding-top: 0; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: -36px 0 24px;
  position: relative;
  z-index: 2;
}
.quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 13px 4px 11px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s var(--ease-spring);
}
.quick:active { transform: scale(0.93); }
.quick-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; }
.ic-seine  { background: var(--seine-soft); color: #1d5a77; }
.ic-corail { background: var(--corail-soft); color: #b8532f; }
.ic-sand   { background: #f6ecd8; color: #96701c; }
.ic-green  { background: #e2efe0; color: #35703a; }
.quick-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--ink-soft);
}

/* ── Entrée en cascade ───────────────────────────────────────── */
.route.active .card,
.route.active .event,
.route.active .group,
.route.active .spot,
.route.active .month-label,
.route.active .hero,
.route.active .quick-grid,
.route.active .notify {
  animation: rise 0.5s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.route.active .quick-grid { --i: 1; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ── Bandeau d'alerte ────────────────────────────────────────── */
/* La dernière alerte diffusée reste lisible dans l'app : celui qui a refusé les
   notifications doit voir la même information que les autres. */
.alert-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 14px 14px 0;
  padding: 14px 16px;
  background: var(--corail-soft);
  border-radius: 18px;
  border-left: 4px solid var(--corail);
}
.alert-banner[hidden] { display: none; }
.alert-ic { font-size: 1.1rem; line-height: 1.3; }
.alert-title { font-weight: 700; font-size: 0.95rem; color: #8f3a1c; }
.alert-text { font-size: 0.88rem; color: #93503a; margin-top: 2px; }
.alert-date { font-size: 0.74rem; color: #b2705c; margin-top: 5px; }

/* ── Bloc notifications ──────────────────────────────────────── */
.notify {
  margin: 18px 0 6px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notify-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.notify-text { font-size: 0.9rem; color: var(--ink-soft); }
.notify-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.notify-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1d6b4f;
}
.notify-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9b6e;
  box-shadow: 0 0 0 3px rgba(46, 155, 110, 0.18);
}
.notify-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 10px; }

/* ── Cards actus ─────────────────────────────────────────────── */
.cards { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 18px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 17px 18px 16px;
  transition: transform 0.15s var(--ease-spring);
}
.card:active { transform: scale(0.985); }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.card-date { font-size: 0.78rem; font-weight: 500; color: var(--ink-faint); }
.card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.28;
  margin-bottom: 7px;
}
.card-text { font-size: 0.94rem; color: var(--ink-soft); }
.card-link {
  display: inline-block;
  margin-top: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.card.featured {
  background: var(--grad-hero);
  box-shadow: var(--shadow-seine);
  color: var(--sable);
  position: relative;
  overflow: hidden;
}
.card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 170px at 90% -12%, rgba(220, 240, 248, 0.18), transparent 70%);
  pointer-events: none;
}
.card.featured .card-title { font-size: 1.34rem; color: var(--sable); }
.card.featured .card-text { color: color-mix(in srgb, var(--sable) 82%, transparent); }
.card.featured .card-date { color: color-mix(in srgb, var(--sable) 58%, transparent); }
.card.featured .card-link { color: var(--sable); text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 1; }
.card.featured .chip { background: rgba(244, 240, 231, 0.18); color: var(--sable); }

/* ── Chips ───────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  background: #ebe8de;
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip-culture       { background: #ebe2f6; color: #654396; }
.chip-associatif    { background: #f6e7cd; color: #8c5011; }
.chip-patrimoine    { background: #e9e3d5; color: #7a6236; }
.chip-environnement { background: #ddefdb; color: #35703a; }
.chip-scolaire      { background: var(--seine-soft); color: #1d5a77; }
.chip-cadre-de-vie  { background: #f0e9e2; color: #7d6553; }
.chip-economie      { background: #e2ecf7; color: #2a5f93; }
.chip-sante         { background: #fbe1ea; color: #a03a63; }
.chip-animations    { background: var(--corail-soft); color: #b8532f; }
.chip-travaux       { background: #f4e7d2; color: #8a6115; }
.chip-alerte        { background: var(--corail-soft); color: #b8532f; }

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-filter {
  padding: 8px 15px;
  font-size: 0.82rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.15s var(--ease-spring), background 0.2s ease, color 0.2s ease;
}
.chip-filter:active { transform: scale(0.94); }
.chip-filter.active {
  background: var(--grad-seine);
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 90, 119, 0.32);
}

/* ── Agenda ──────────────────────────────────────────────────── */
.agenda { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }

.month-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--corail);
  margin: 10px 0 0;
}

.event {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 15px;
  transition: transform 0.15s var(--ease-spring);
}
.event:active { transform: scale(0.985); }
.event-date {
  flex: 0 0 54px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 0 10px;
  background: var(--grad-seine);
  border-radius: 15px;
  color: var(--sable);
  box-shadow: 0 5px 14px rgba(29, 90, 119, 0.26);
}
.event-weekday {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.78;
}
.event-day { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.event-span { font-size: 0.6rem; font-weight: 700; opacity: 0.78; letter-spacing: 0.06em; }
.event-body { min-width: 0; }
.event-body .card-meta { margin-bottom: 6px; }
.event-title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.28; }
.event-when { font-size: 0.84rem; font-weight: 600; color: var(--seine); margin: 3px 0 6px; }
.event-text { font-size: 0.9rem; color: var(--ink-soft); }
.event-link { display: inline-block; margin-top: 9px; font-size: 0.85rem; font-weight: 600; text-decoration: none; }

/* ── Sortir ──────────────────────────────────────────────────── */
.spots { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; }

.spot {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* deep-link `#/sortir/<id>` : sans ça le scroll cale le haut de la carte à y=0,
     donc sous le header sticky — on arrive au milieu du texte, titre invisible. */
  scroll-margin-top: calc(66px + env(safe-area-inset-top));
}
.spot-head { display: flex; gap: 13px; align-items: flex-start; width: 100%; padding: 17px 17px 15px; text-align: left; }
.spot-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 1.35rem;
  line-height: 1;
  background: var(--seine-soft);
  border-radius: 14px;
}
/* Les deux lignes sont des <span> : sans flex-column elles coulent l'une
   derrière l'autre et la tagline s'enroule autour du titre. */
.spot-titles { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.spot-title { font-family: var(--font-head); font-weight: 600; font-size: 1.16rem; line-height: 1.25; }
.spot-tagline { font-size: 0.83rem; color: var(--corail); font-weight: 600; margin-top: 2px; }
.spot-caret { font-size: 1.3rem; color: var(--ink-faint); transform: rotate(90deg); transition: transform 0.3s var(--ease-spring); align-self: center; }
.spot.open .spot-caret { transform: rotate(-90deg); }
.spot-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.34s var(--ease-spring); }
.spot.open .spot-body { grid-template-rows: 1fr; }
.spot-body-in { overflow: hidden; min-height: 0; }
.spot-text { padding: 0 17px 14px; font-size: 0.93rem; color: var(--ink-soft); }

/* La pièce maîtresse — l'Île Nancy — est mise en scène */
.spot.highlight { background: var(--grad-hero); color: var(--sable); box-shadow: var(--shadow-seine); }
.spot.highlight .spot-icon { background: rgba(244, 240, 231, 0.16); }
.spot.highlight .spot-tagline { color: var(--reflet); }
.spot.highlight .spot-text { color: color-mix(in srgb, var(--sable) 82%, transparent); }
.spot.highlight .spot-caret { color: rgba(244, 240, 231, 0.6); }
.spot.highlight .row { border-bottom-color: rgba(244, 240, 231, 0.16); color: var(--sable); }
.spot.highlight .row-detail { color: color-mix(in srgb, var(--sable) 72%, transparent); }
.spot.highlight .row-glyph { color: var(--reflet); }
.spot.highlight .btn-link { background: rgba(244, 240, 231, 0.18); box-shadow: none; }
.spot.highlight .btn-tel { background: rgba(244, 240, 231, 0.12); color: var(--sable); }

/* ── Recherche ───────────────────────────────────────────────── */
.search-wrap { margin: 8px 0 16px; }
.search {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a4ac' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") no-repeat 16px center / 19px;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  -webkit-appearance: none;
  appearance: none;
}
.search::placeholder { color: var(--ink-faint); }
.search:focus { outline: 2px solid var(--seine); outline-offset: -1px; }

/* ── Groupes accordéon ───────────────────────────────────────── */
.groups { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }

.group {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: calc(66px + env(safe-area-inset-top)); /* deep-link : ne pas passer sous le header sticky */
}
.group-head { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 16px; text-align: left; }
.group-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 1.22rem;
  line-height: 1;
  background: color-mix(in srgb, var(--seine-soft) 72%, var(--surface));
  border-radius: 13px;
}
.group-titles { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.group-title { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; flex: 1; }
.group-titles .group-title { flex: initial; }
.group-sub { font-size: 0.8rem; color: var(--ink-faint); }
.group-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--deep);
  background: var(--seine-soft);
  border-radius: 999px;
  padding: 2px 9px;
}
.group-caret { font-size: 1.3rem; color: var(--ink-faint); transform: rotate(90deg); transition: transform 0.3s var(--ease-spring); }
.group.open .group-caret { transform: rotate(-90deg); }

.group-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.34s var(--ease-spring); }
.group.open .group-body { grid-template-rows: 1fr; }
.group-body-in { overflow: hidden; min-height: 0; border-top: 1px solid var(--line); }

.item { border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item-head { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 13px 16px; text-align: left; }
.item-head:active { background: color-mix(in srgb, var(--seine-soft) 60%, transparent); }
.item-title { font-weight: 600; font-size: 0.98rem; transition: color 0.2s ease; }
.item-summary { font-size: 0.83rem; color: var(--ink-faint); }
.item-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease-spring); }
.item.open .item-body { grid-template-rows: 1fr; }
.item-body-in { overflow: hidden; min-height: 0; padding: 0 16px; }
.item.open .item-body-in { padding-bottom: 16px; }
.item.open .item-head .item-title { color: var(--seine); }
.item-body p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 9px; }

.item-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease-spring);
}
.btn:active { transform: scale(0.95); }
.btn-link { background: var(--grad-seine); color: #fff; box-shadow: 0 5px 14px rgba(29, 90, 119, 0.26); }
.btn-tel { background: var(--seine-soft); color: var(--deep); }
.btn-ghost { background: var(--sable); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ── Lignes info ─────────────────────────────────────────────── */
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.row:last-child { border-bottom: 0; }
.row-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.row-label { font-weight: 600; font-size: 0.94rem; }
.row-detail { font-size: 0.84rem; color: var(--ink-soft); }
.row-glyph { font-size: 0.95rem; color: var(--seine); flex: 0 0 auto; }
.row-action:active { background: color-mix(in srgb, var(--seine-soft) 60%, transparent); }

/* ── Footer ──────────────────────────────────────────────────── */
.app-footer { text-align: center; padding: 26px 10px 8px; font-size: 0.88rem; color: var(--ink-soft); }
.app-footer p + p { margin-top: 8px; }
/* Colophon Seiyar — règle 4 du routeur de la flotte */
.seiyar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.seiyar a {
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.seiyar a:active { color: var(--seine); }

/* ── Tab bar (5 onglets) ─────────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  z-index: 40;
  display: flex;
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 26px;
  box-shadow: 0 10px 34px rgba(15, 51, 71, 0.18);
}
.tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 7px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color 0.2s ease, background 0.25s var(--ease-spring), transform 0.15s var(--ease-spring);
}
.tab:active { transform: scale(0.94); }
/* 5 onglets : le label doit tenir sans césure sur un écran de 360 px */
.tab-label { font-size: 0.6rem; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.tab.active { color: var(--deep); background: var(--seine-soft); }

/* ── Accessibilité ───────────────────────────────────────────── */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--seine); outline-offset: 2px; }
