:root {
  --bg: #f6efe5;
  --paper: rgba(255, 251, 245, 0.8);
  --surface: #fffaf3;
  --surface-strong: #ffffff;
  --ink: #16332e;
  --muted: #5d736d;
  --brand: #1d6a56;
  --brand-dark: #0e4d3c;
  --accent: #c98b3b;
  --accent-soft: #f1d7b2;
  --line: rgba(22, 51, 46, 0.1);
  --shadow: 0 24px 60px rgba(38, 49, 44, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --fs-scale: 1;
}

html[data-theme="contrast"] {
  --bg: #000;
  --paper: #0b0b0b;
  --surface: #111;
  --surface-strong: #151515;
  --ink: #fff;
  --muted: #e4e4e4;
  --brand: #ffd24d;
  --brand-dark: #ffbf00;
  --accent: #ffd24d;
  --line: rgba(255, 255, 255, 0.25);
  --shadow: none;
}

html[data-font="dys"] body,
html[data-font="dys"] h1,
html[data-font="dys"] h2,
html[data-font="dys"] h3 {
  font-family: "Atkinson Hyperlegible", "Verdana", sans-serif !important;
  letter-spacing: 0.01em;
}

html[data-underline="on"] a { text-decoration: underline; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--fs-scale)); }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 139, 59, 0.16), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(29, 106, 86, 0.14), transparent 22%),
    linear-gradient(180deg, #fbf6ef 0%, #f6efe5 48%, #f7f2ea 100%);
  min-height: 100vh;
}
html[data-theme="contrast"] body { background: #000; }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
  opacity: 0.35;
}
html[data-theme="contrast"] body::before { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 229, 0.72);
  border-bottom: 1px solid rgba(22, 51, 46, 0.08);
}
html[data-theme="contrast"] .site-header { background: #0a0a0a; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
}

.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand-mark {
  width: 52px; height: 52px;
  border-radius: 18px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 14px 30px rgba(14, 77, 60, 0.24);
  font-weight: 800; letter-spacing: 0.08em;
}
.brand-copy strong, h1, h2, h3 { font-family: "Fraunces", serif; }
.brand-copy { display: grid; gap: 0.15rem; }
.brand-copy strong { font-size: 1.05rem; font-weight: 700; line-height: 1; }
.brand-copy span { color: var(--muted); font-size: 0.88rem; }

.nav {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; justify-content: flex-end;
}
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--brand-dark); }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  transition: background 160ms ease, transform 160ms ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.95); transform: translateY(-1px); }

.a11y-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-weight: 700; font-size: 0.85rem;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.a11y-btn:hover { background: rgba(255, 255, 255, 0.95); border-color: rgba(29, 106, 86, 0.32); transform: translateY(-1px); }
.a11y-btn svg { color: var(--brand-dark); }
html[data-theme="contrast"] .a11y-btn { background: #111; }
html[data-theme="contrast"] .a11y-btn svg { color: var(--brand); }
@media (max-width: 640px) {
  .a11y-btn-label { display: none; }
  .a11y-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 12px; }
}

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}
.lang-switch button {
  background: transparent; border: 0;
  padding: 0.5rem 0.8rem;
  font-weight: 800; font-size: 0.82rem;
  color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800; border: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.cta:hover { transform: translateY(-2px); }
.cta-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 18px 36px rgba(14, 77, 60, 0.22);
}
.cta-secondary {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(22, 51, 46, 0.08);
}
html[data-theme="contrast"] .cta-secondary { color: var(--ink); background: #222; }
.cta-ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }

/* HERO / Pages */
.hero { padding: 3.5rem 0 2rem; }
.hero.tight { padding: 2.5rem 0 1.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 2rem; align-items: stretch;
}
.hero-copy {
  position: relative; padding: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.92), rgba(255, 246, 235, 0.86));
  border: 1px solid rgba(22, 51, 46, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden; isolation: isolate;
}
html[data-theme="contrast"] .hero-copy { background: #0d0d0d; }
.hero-copy::after {
  content: "";
  position: absolute; right: -4rem; bottom: -4rem;
  width: 15rem; height: 15rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 139, 59, 0.22), transparent 70%);
  z-index: -1;
}

.page-header {
  padding: 3rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}
.page-header .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-left: 2rem;
}
.page-header .container::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--page-accent, var(--brand)), var(--page-accent-dark, var(--brand-dark)));
}
.page-header h1 {
  margin: 0.6rem 0 0.6rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.03em;
}
.page-header p {
  margin: 0; max-width: 64ch;
  color: var(--muted);
  font-size: 1.05rem; line-height: 1.7;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--page-tint, transparent);
  opacity: 0.6;
  z-index: -1;
}
.page-icon {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  opacity: 0.85;
  filter: drop-shadow(0 8px 22px rgba(14, 77, 60, 0.14));
}
@media (max-width: 760px) {
  .page-header .container { grid-template-columns: 1fr; padding-left: 1.2rem; }
  .page-header .container::before { left: 0.2rem; }
  .page-icon { display: none; }
}

/* Per-page accents */
body[data-page="demarches"] { --page-accent: #1d6a56; --page-accent-dark: #0e4d3c; --page-tint: rgba(29,106,86,0.06); }
body[data-page="annuaire"] { --page-accent: #c98b3b; --page-accent-dark: #a56a1e; --page-tint: rgba(201,139,59,0.08); }
body[data-page="associations"] { --page-accent: #7a5fdb; --page-accent-dark: #5a3fb8; --page-tint: rgba(122,95,219,0.07); }
body[data-page="transport"] { --page-accent: #3681c9; --page-accent-dark: #1f5b95; --page-tint: rgba(54,129,201,0.07); }
body[data-page="cantine"] { --page-accent: #e15a47; --page-accent-dark: #b83d2d; --page-tint: rgba(225,90,71,0.07); }
body[data-page="emplois"] { --page-accent: #2a9d8f; --page-accent-dark: #1c6e65; --page-tint: rgba(42,157,143,0.07); }
body[data-page="actualites"] { --page-accent: #d4a24c; --page-accent-dark: #a97a29; --page-tint: rgba(212,162,76,0.08); }
body[data-page="signalement"] { --page-accent: #d94f4f; --page-accent-dark: #a43535; --page-tint: rgba(217,79,79,0.07); }
body[data-page="modules"] { --page-accent: #6a4a9c; --page-accent-dark: #4c3275; --page-tint: rgba(106,74,156,0.08); }
body[data-page="contact"] { --page-accent: #4a7c59; --page-accent-dark: #2d5a3d; --page-tint: rgba(74,124,89,0.07); }

body[data-page]:not([data-page="home"]) .page-header .eyebrow {
  background: var(--page-tint);
  color: var(--page-accent-dark);
}
body[data-page]:not([data-page="home"]) .icon-badge {
  background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 20%, transparent), color-mix(in srgb, var(--page-accent) 8%, transparent));
  color: var(--page-accent-dark);
}
body[data-page]:not([data-page="home"]) .tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--page-accent) 0%, var(--page-accent-dark) 100%);
}
body[data-page]:not([data-page="home"]) .data-card:hover,
body[data-page]:not([data-page="home"]) .quick-card:hover {
  border-color: var(--page-accent);
}
body[data-page]:not([data-page="home"]) .data-card .meta span {
  background: color-mix(in srgb, var(--page-accent) 10%, transparent);
  color: var(--page-accent-dark);
}
body[data-page]:not([data-page="home"]) .inline-link {
  color: var(--page-accent-dark);
  border-bottom-color: color-mix(in srgb, var(--page-accent) 50%, transparent);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.9rem; border-radius: 999px;
  background: rgba(29, 106, 86, 0.08);
  color: var(--brand-dark);
  font-size: 0.88rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
}

h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95; letter-spacing: -0.04em;
}
.hero-copy p {
  margin: 0; max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem; line-height: 1.75;
}

.hero-actions, .stats { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-actions { margin-top: 1.8rem; }
.stats { margin-top: 2rem; }
.stat {
  min-width: 150px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(22, 51, 46, 0.08);
}
.stat strong { display: block; font-size: 1.55rem; font-weight: 800; color: var(--brand-dark); }
.stat span { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.92rem; }

.hero-panel { display: grid; gap: 1rem; }

.panel-card, .section-card, .quick-card, .news-card, .showcase-card, .contact-card, .data-card {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.panel-card { border-radius: var(--radius-xl); padding: 1.4rem; }

.city-visual {
  position: relative; min-height: 340px;
  border-radius: calc(var(--radius-xl) - 10px);
  padding: 1.5rem; color: #fff; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(6, 49, 40, 0.34), rgba(6, 49, 40, 0.6)),
    url("https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1200&q=80") center/cover;
}
.city-visual::before {
  content: ""; position: absolute; inset: auto 0 0; height: 50%;
  background: linear-gradient(180deg, transparent, rgba(5, 32, 26, 0.85));
}
.visual-tag, .visual-copy { position: relative; z-index: 1; }
.visual-tag {
  display: inline-flex; padding: 0.55rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.visual-copy { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.6rem; }
.visual-copy h2 { margin: 0 0 0.6rem; font-size: 2rem; line-height: 1; }
.visual-copy p { margin: 0; color: rgba(255, 255, 255, 0.84); line-height: 1.65; }

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mini-card {
  padding: 1.2rem; border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
.mini-card span { display: inline-block; color: var(--accent); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.mini-card strong { display: block; margin-top: 0.55rem; font-size: 1.1rem; line-height: 1.3; }
.mini-card p { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

section { padding: 2.5rem 0 0; scroll-margin-top: 100px; }

.section-intro {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.2rem;
}
.section-intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.section-intro p { margin: 0; max-width: 48ch; color: var(--muted); line-height: 1.7; }

.tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
html[data-theme="contrast"] .tabs { background: #111; }
.tab {
  padding: 0.55rem 1rem; border-radius: 999px;
  background: transparent; border: 0;
  color: var(--muted); font-weight: 700; font-size: 0.9rem;
}
.tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
}

.quick-grid, .data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.data-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.quick-card, .data-card {
  padding: 1.3rem; border-radius: var(--radius-lg);
  transition: transform 180ms ease, border-color 180ms ease;
}
.quick-card:hover, .data-card:hover { transform: translateY(-4px); border-color: rgba(29, 106, 86, 0.24); }
.quick-card strong, .data-card strong { display: block; margin-top: 0.7rem; font-size: 1.1rem; }
.quick-card p, .data-card p { margin: 0.6rem 0 0; color: var(--muted); line-height: 1.6; font-size: 0.94rem; }
.data-card .meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.data-card .meta span {
  font-size: 0.78rem; font-weight: 700;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: rgba(29, 106, 86, 0.08); color: var(--brand-dark);
}
.data-card a.inline-link {
  display: inline-block; margin-top: 0.8rem;
  color: var(--brand-dark); font-weight: 700; font-size: 0.9rem;
  border-bottom: 1px dashed rgba(29, 106, 86, 0.4);
}
.quick-card.clickable { cursor: pointer; text-decoration: none; color: inherit; display: block; }

.icon-badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.15rem; font-weight: 800;
  background: linear-gradient(135deg, rgba(29, 106, 86, 0.12), rgba(201, 139, 59, 0.14));
  color: var(--brand-dark);
}

.news-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; }
.news-stack, .agenda-stack { display: grid; gap: 1rem; }
.news-card, .section-card, .contact-card { border-radius: var(--radius-xl); padding: 1.45rem; }
.news-card small, .agenda-item small {
  display: inline-block; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 800; margin-bottom: 0.6rem;
}
.news-card h3, .agenda-item h3, .section-card h3, .showcase-card h3, .contact-card h3 {
  margin: 0; font-size: 1.4rem; line-height: 1.2;
}
.news-card p, .agenda-item p, .section-card p, .showcase-card p, .contact-card p, .footer p {
  color: var(--muted); line-height: 1.7;
}
.news-card p, .agenda-item p, .section-card p, .showcase-card p, .contact-card p { margin: 0.7rem 0 0; }
.news-card.featured { padding: 0; overflow: hidden; }
.featured-cover {
  min-height: 240px;
  background:
    linear-gradient(180deg, rgba(12, 39, 34, 0.1), rgba(12, 39, 34, 0.66)),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1200&q=80") center/cover;
  display: flex; align-items: end; padding: 1.5rem; color: #fff;
}
.featured-cover h3, .featured-cover p, .featured-cover small { color: inherit; }

.agenda-panel {
  padding: 1.45rem; border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #114d3d 0%, #0b3a2f 100%);
  color: #fff;
  box-shadow: 0 22px 60px rgba(11, 58, 47, 0.28);
}
.agenda-panel p { color: rgba(255, 255, 255, 0.72); }
.agenda-item { padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.agenda-item:first-of-type { border-top: none; padding-top: 0.3rem; }

.showcase-card {
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 0.8rem; margin-top: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: inherit;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
html[data-theme="contrast"] .field input,
html[data-theme="contrast"] .field select,
html[data-theme="contrast"] .field textarea { background: #111; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 106, 86, 0.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-msg {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  display: none;
}
.form-msg.success { display: block; background: rgba(29, 106, 86, 0.14); color: var(--brand-dark); }
.form-msg.error { display: block; background: rgba(201, 64, 64, 0.14); color: #a42020; }

.transport-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.transport-card {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: grid; gap: 0.7rem;
}
.transport-card strong { font-size: 1.1rem; }
.transport-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.94rem; }
.transport-card a { color: var(--brand-dark); font-weight: 700; border-bottom: 1px dashed rgba(29, 106, 86, 0.4); display: inline-block; }

.cantine-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.cantine-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; }
.menu-day {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
.menu-day h4 {
  margin: 0 0 0.5rem; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand-dark);
}
.menu-day ul { margin: 0; padding-left: 1rem; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.menu-day .veg { color: var(--brand-dark); font-weight: 700; }

.job-row {
  display: grid; grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  margin-bottom: 0.6rem;
}
.job-row strong { font-size: 1.05rem; }
.job-row .tag {
  font-size: 0.78rem; font-weight: 700;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: rgba(29, 106, 86, 0.08); color: var(--brand-dark);
}

.signal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signal-map {
  min-height: 320px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(29, 106, 86, 0.1), rgba(201, 139, 59, 0.12)),
    repeating-linear-gradient(45deg, rgba(22, 51, 46, 0.04) 0 12px, transparent 12px 24px),
    #eaf2ec;
  border: 1px dashed rgba(29, 106, 86, 0.3);
  position: relative;
  display: grid; place-items: center;
  color: var(--brand-dark);
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
}
html[data-theme="contrast"] .signal-map { background: #111; }
.geo-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(29, 106, 86, 0.2), 0 0 0 14px rgba(29, 106, 86, 0.08);
  position: absolute;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.newsletter-panel {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(29, 106, 86, 0.92), rgba(14, 77, 60, 0.95));
  color: #fff;
  box-shadow: 0 22px 50px rgba(11, 58, 47, 0.28);
}
.newsletter-panel h2 { margin: 0.3rem 0 0.5rem; color: #fff; font-size: 2rem; line-height: 1.05; }
.newsletter-panel p { color: rgba(255, 255, 255, 0.86); margin: 0; line-height: 1.7; }
.newsletter-form { margin-top: 1.2rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 240px;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff; font: inherit;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.newsletter-checkboxes {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 0.9rem; color: rgba(255, 255, 255, 0.86); font-size: 0.9rem;
}
.newsletter-checkboxes label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.social-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.social-row a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff; font-weight: 700; font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.sales-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sales-card {
  border-radius: var(--radius-xl);
  padding: 1.45rem;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="contrast"] .sales-card { background: #0d0d0d; }
.sales-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.85rem; }
.sales-tag {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.7rem; border-radius: 999px;
  background: rgba(29, 106, 86, 0.08);
  color: var(--brand-dark);
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.sales-badge { color: var(--accent); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.sales-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.sales-card p { margin: 0.7rem 0 0; color: var(--muted); line-height: 1.65; }
.sales-points { display: grid; gap: 0.5rem; margin-top: 1rem; }
.sales-points span {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(29, 106, 86, 0.05);
  color: var(--ink);
  font-size: 0.92rem; line-height: 1.5;
}

.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1rem; }
.contact-card.highlight {
  background: linear-gradient(160deg, rgba(201, 139, 59, 0.18), rgba(255, 251, 245, 0.86));
}
.contact-list { display: grid; gap: 0.85rem; margin-top: 1rem; }
.contact-row {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(22, 51, 46, 0.08);
}

.footer { padding: 2.8rem 0 4rem; }
.footer-box {
  padding: 1.4rem 1.5rem;
  border-radius: 24px;
  background: rgba(11, 58, 47, 0.96);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-box p { margin: 0.3rem 0 0; color: rgba(255, 255, 255, 0.72); }
.footer-note { margin-top: 0.9rem; color: var(--muted); text-align: center; font-size: 0.9rem; }

.ai-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px; border: 0;
  color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 18px 40px rgba(14, 77, 60, 0.32);
}

.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(11, 23, 20, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 640px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  max-height: 82vh; display: flex; flex-direction: column;
}
.modal-head {
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.modal-head input {
  flex: 1; font: inherit;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}
html[data-theme="contrast"] .modal-head input { background: #111; }
.modal-body { padding: 1rem 1.2rem; overflow: auto; }
.ai-answer {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(29, 106, 86, 0.08);
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}
.ai-results { display: grid; gap: 0.6rem; }
.ai-result {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
  text-decoration: none; color: inherit; display: block;
}
.ai-result:hover { border-color: rgba(29, 106, 86, 0.32); transform: translateY(-1px); }
.ai-result small { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; }
.ai-result strong { display: block; margin-top: 0.2rem; }
.ai-result p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.a11y-panel {
  position: fixed; right: 1.2rem; bottom: 5.5rem; z-index: 41;
  width: 300px;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(11, 58, 47, 0.22);
  display: none;
}
.a11y-panel.open { display: block; animation: scaleIn 260ms cubic-bezier(.2,.8,.2,1); transform-origin: bottom right; }
.a11y-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.a11y-panel h4 { margin: 0; font-size: 1rem; }
.a11y-panel-head .icon-btn {
  width: 32px; height: 32px;
  background: rgba(0, 0, 0, 0.05);
  border: 0;
}
html[data-theme="contrast"] .a11y-panel-head .icon-btn { background: #222; }
.a11y-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.a11y-row button {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700; font-size: 0.85rem;
  color: var(--ink);
}
html[data-theme="contrast"] .a11y-row button { background: #111; }
.a11y-row button[aria-pressed="true"] {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.a11y-panel label { font-size: 0.82rem; color: var(--muted); display:block; margin-bottom: 0.3rem; }

@media (max-width: 1080px) {
  .hero-grid, .news-layout, .sales-grid, .contact-grid, .quick-grid, .data-grid, .transport-grid, .signal-layout {
    grid-template-columns: 1fr;
  }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .cantine-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .nav { display: none; }
  .hero { padding-top: 2rem; }
  .hero-copy, .panel-card, .news-card, .section-card, .showcase-card, .contact-card { padding: 1.2rem; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .section-intro { flex-direction: column; }
  .job-row { grid-template-columns: 1fr; }
  .cantine-grid { grid-template-columns: 1fr; }
  .a11y-panel { right: 0.8rem; left: 0.8rem; width: auto; }
}

.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;
}

/* ========= v2 additions ========= */

html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
  scroll-behavior: auto !important;
}

mark {
  background: rgba(201, 139, 59, 0.35);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

/* Search & filter bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
}
.filter-bar .search-input {
  flex: 1 1 240px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: inherit; font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
html[data-theme="contrast"] .filter-bar .search-input { background: #111; }
.filter-bar .search-input:focus {
  border-color: var(--page-accent, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent, var(--brand)) 25%, transparent);
}
.filter-bar label.filter-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
html[data-theme="contrast"] .filter-bar label.filter-chip { background: #111; }
.filter-bar label.filter-chip:has(input:checked) {
  background: var(--page-accent, var(--brand));
  color: #fff;
  border-color: var(--page-accent, var(--brand));
}
.filter-bar label.filter-chip input { display: none; }
.filter-bar .filter-btn {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700; font-size: 0.88rem;
  color: var(--ink);
}
html[data-theme="contrast"] .filter-bar .filter-btn { background: #111; }

/* Cards additions */
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
}
.fav-btn {
  background: transparent;
  border: 0;
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
}
.fav-btn[aria-pressed="true"] { color: var(--accent); }

button.inline-link {
  background: transparent; border: 0;
  color: var(--brand-dark); font-weight: 700; font-size: 0.9rem;
  border-bottom: 1px dashed rgba(29, 106, 86, 0.4);
  padding: 0; cursor: pointer;
}

.badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-size: 0.76rem; font-weight: 700;
}
.badge.ok { background: rgba(29, 106, 86, 0.14); color: var(--brand-dark); }
.badge.ko { background: rgba(150, 80, 60, 0.14); color: #8b3d2d; }

/* Generic modal additions */
#generic-modal .modal { max-width: 560px; }
#generic-modal-title { font-family: "Fraunces", serif; font-size: 1.2rem; }
.modal-body h5 { margin: 1rem 0 0.4rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.modal-body ul { margin: 0; padding-left: 1.2rem; color: var(--ink); line-height: 1.7; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.modal-meta span {
  font-size: 0.78rem; font-weight: 700;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: rgba(29, 106, 86, 0.1); color: var(--brand-dark);
}
.modal-body .cta { margin-top: 1rem; }

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(11, 23, 20, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 46;
  width: min(100%, 420px);
  background: var(--surface);
  box-shadow: -22px 0 50px rgba(11, 58, 47, 0.18);
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.drawer-head strong { font-family: "Fraunces", serif; font-size: 1.2rem; flex: 1; }
.drawer-body { padding: 1.2rem; overflow: auto; }
.drawer-body p { color: var(--muted); line-height: 1.6; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.drawer-fields { display: grid; gap: 0.6rem; margin: 0.8rem 0; }
.drawer-fields > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}
html[data-theme="contrast"] .drawer-fields > div { background: #151515; }
.drawer-fields span { color: var(--muted); font-size: 0.85rem; }
.drawer-fields strong { text-align: right; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }

/* Cantine */
.cantine-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}
.allergen-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.allergen-chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem; font-weight: 700;
  color: var(--ink);
}
html[data-theme="contrast"] .allergen-chip { background: #111; }
.allergen-chip[aria-pressed="true"] {
  background: #a43535; color: #fff;
  border-color: #a43535;
  text-decoration: line-through;
}
.menu-day ul li.item-bad { opacity: 0.35; text-decoration: line-through; }
.menu-foot {
  margin-top: 0.6rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.menu-foot .cal { font-size: 0.78rem; color: var(--muted); }
.menu-foot .allergens { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.allergen {
  font-size: 0.72rem; font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(201, 139, 59, 0.18);
  color: #7a4e0f;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Live transport : stacked layout */
.live-table {
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--page-accent, var(--brand)) 6%, transparent);
  padding: 0.75rem 0.85rem;
  margin-top: 0.3rem;
}
.live-table .live-title {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--page-accent-dark, var(--brand-dark));
  margin-bottom: 0.5rem;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1fa05e;
  box-shadow: 0 0 0 0 rgba(31, 160, 94, 0.5);
  animation: pulse-live 1.6s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 160, 94, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(31, 160, 94, 0); }
}
.live-lines { display: grid; gap: 0.45rem; }
.live-line {
  display: grid;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
html[data-theme="contrast"] .live-line { background: #151515; }
.live-line-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.6rem; flex-wrap: wrap;
}
.live-line-head strong {
  font-size: 0.88rem; font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.live-route { color: var(--muted); font-size: 0.82rem; }
.live-times {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.live-time {
  display: inline-flex; align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page-accent, var(--brand)) 26%, var(--surface-strong));
  color: var(--page-accent-dark, var(--brand-dark));
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--page-accent, var(--brand)) 18%, transparent);
}
html[data-theme="contrast"] .live-time {
  background: #222; color: var(--brand); border-color: rgba(255, 210, 77, 0.3);
}
.live-time.is-next {
  background: var(--page-accent, var(--brand));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--page-accent, var(--brand)) 35%, transparent);
}
.live-time.imminent {
  background: #d94f4f;
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 79, 79, 0.35);
  animation: pulse-urgent 1.4s ease-in-out infinite;
}
@keyframes pulse-urgent {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

/* Trip planner */
.trip-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 0.5rem;
  align-items: end;
  margin-top: 1rem;
}
.trip-card {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
.trip-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); margin-bottom: 0.6rem;
}
.trip-steps { margin: 0.3rem 0; padding-left: 1rem; line-height: 1.8; }
.trip-total { margin-top: 0.6rem; font-size: 1.05rem; }

/* Job rows extras */
.job-row { grid-template-columns: 1fr auto auto auto; gap: 0.8rem; }
@media (max-width: 760px) { .job-row { grid-template-columns: 1fr; } }

/* News actions */
.news-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.news-actions .read-time { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.share-btn {
  background: transparent; border: 1px solid var(--line);
  padding: 0.4rem 0.75rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem;
  color: var(--ink);
}
.share-btn:hover { border-color: var(--page-accent, var(--brand)); }

/* Chips (AI suggestions, tag filters) */
.ai-chips {
  margin: 0.6rem 0;
}
.ai-chips small {
  display: block;
  font-size: 0.78rem; font-weight: 800;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.chip {
  display: inline-block;
  margin: 0.15rem 0.3rem 0.15rem 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(29, 106, 86, 0.08);
  color: var(--brand-dark);
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer;
}
.chip:hover { background: rgba(29, 106, 86, 0.14); }
.chip.active { background: var(--page-accent, var(--brand)); color: #fff; }

.tag-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

/* Signalement v2 */
#signal-leaflet {
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  z-index: 1; /* keep under modals */
}
.signal-photo-preview img {
  max-width: 200px; max-height: 160px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-top: 0.4rem;
}
.signal-history {
  display: grid; gap: 0.6rem;
  margin-top: 1.5rem;
}
.signal-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
.signal-thumb {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(29, 106, 86, 0.08);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.signal-thumb.placeholder { color: var(--muted); }
.signal-address-field {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(29, 106, 86, 0.05);
  font-size: 0.88rem;
  color: var(--muted);
}
.signal-address-field strong { color: var(--ink); display: block; margin-bottom: 0.2rem; }

/* Read toolbar */
.read-toolbar {
  position: fixed; left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 42;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
  box-shadow: 0 22px 50px rgba(11, 58, 47, 0.18);
}

/* Print */
@media print {
  .site-header, .footer, .ai-fab, .a11y-panel, .read-toolbar, .filter-bar, .cantine-toolbar, .cantine-head, .tabs { display: none !important; }
  body::before { display: none !important; }
  body { background: #fff; }
  .menu-day { page-break-inside: avoid; break-inside: avoid; }
}

/* Responsive adjustments */
@media (max-width: 760px) {
  .trip-form { grid-template-columns: 1fr; }
}

/* ========= v3 : header redesign (desktop sexy) ========= */

.site-header {
  background: rgba(246, 239, 229, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(22, 51, 46, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-theme="contrast"] .site-header {
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-inner {
  padding: 0.7rem 0;
  gap: 1.5rem;
}

/* Brand : plus compact, pastille plus petite, pas de sublabel par défaut en desktop */
.brand {
  flex-shrink: 0;
  gap: 0.7rem;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 8px 22px rgba(14, 77, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.brand-copy {
  gap: 0;
  line-height: 1.1;
}
.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.brand-copy span {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.8;
}
@media (max-width: 1340px) { .brand-copy span { display: none; } }

/* Nav : pills modernes, indicateur actif animé */
.nav {
  flex: 1 1 auto;
  justify-content: safe center;
  flex-wrap: nowrap;
  gap: 0.1rem;
  padding: 0.25rem 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--page-accent, var(--brand));
  transform: translateX(-50%) scale(0);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.nav a:hover {
  color: var(--ink);
  background: rgba(22, 51, 46, 0.045);
}
.nav a.active {
  color: var(--brand-dark);
  background: rgba(29, 106, 86, 0.08);
  font-weight: 700;
}
html[data-theme="contrast"] .nav a.active {
  color: var(--brand);
  background: rgba(255, 210, 77, 0.14);
}
.nav a.active::after { transform: translateX(-50%) scale(1); }
.nav a:hover::after { transform: translateX(-50%) scale(0.7); }

@media (max-width: 1180px) {
  .nav a { padding: 0.5rem 0.65rem; font-size: 0.86rem; }
}

/* Tools right : plus compact + lang switch raffiné + a11y icon-only avec tooltip */
.header-tools {
  flex-shrink: 0;
  gap: 0.4rem;
  align-items: center;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(22, 51, 46, 0.08);
  padding: 2px;
  gap: 0;
}
html[data-theme="contrast"] .lang-switch { background: #111; }
.lang-switch button {
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 77, 60, 0.2);
}
html[data-theme="contrast"] .lang-switch button[aria-pressed="true"] { background: var(--brand); color: #000; }

.a11y-btn {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}
.a11y-btn-label { display: none; }
.a11y-btn::before {
  content: attr(aria-label);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 10px 24px rgba(11, 58, 47, 0.18);
  z-index: 30;
}
.a11y-btn:hover::before, .a11y-btn:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile : burger à venir plus tard, nav scroll horizontal */
@media (max-width: 760px) {
  .nav { display: flex; }
  .header-inner { gap: 0.6rem; padding: 0.6rem 0; }
  .brand-copy span { display: none; }
  .brand-mark { width: 36px; height: 36px; }
}

/* ========= v4 : animations ========= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pulseDot {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.4); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Page entrance */
main { animation: fadeIn 320ms ease; }
.page-header > .container { animation: fadeInUp 500ms cubic-bezier(.2,.8,.2,1) both; }
.page-header .eyebrow { animation: fadeInUp 500ms cubic-bezier(.2,.8,.2,1) both; animation-delay: 60ms; }
.page-header h1 { animation: fadeInUp 600ms cubic-bezier(.2,.8,.2,1) both; animation-delay: 120ms; }
.page-header p { animation: fadeInUp 700ms cubic-bezier(.2,.8,.2,1) both; animation-delay: 200ms; }
.page-icon { animation: scaleIn 700ms cubic-bezier(.2,.8,.2,1) both; animation-delay: 300ms; }

/* Hero */
.hero-copy { animation: fadeInUp 600ms cubic-bezier(.2,.8,.2,1) both; }
.hero-panel { animation: fadeInUp 700ms cubic-bezier(.2,.8,.2,1) both; animation-delay: 150ms; }

/* Cards stagger — delay driven by --i custom property set in JS */
.data-grid > *,
.quick-grid > *,
.sales-grid > *,
.transport-grid > *,
.news-stack > *,
.cantine-grid > *,
.job-row,
.signal-item,
.agenda-stack > *,
#jobs-list > *,
#modules-grid > * {
  animation: fadeInUp 500ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(50ms + var(--i, 0) * 45ms);
}

/* Tabs : slide indicator */
.tabs {
  position: relative;
}
.tab {
  position: relative;
  transition: color 220ms ease;
  z-index: 1;
}
.tab[aria-selected="true"] {
  background: transparent !important;
  color: #fff !important;
}
.tab-slider {
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--page-accent, var(--brand)) 0%, var(--page-accent-dark, var(--brand-dark)) 100%);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--page-accent, var(--brand)) 30%, transparent);
  transition: transform 340ms cubic-bezier(.2,.8,.2,1), width 340ms cubic-bezier(.2,.8,.2,1);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.tab-slider.ready { opacity: 1; }

/* Hover lift ONLY on interactive cards (ones that open details or navigate) */
.data-card, .quick-card, .transport-card, .news-card, .sales-card, .signal-item, .job-row {
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease, border-color 240ms ease;
}
.data-card.clickable:hover,
.quick-card.clickable:hover,
.signal-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px rgba(38, 49, 44, 0.14);
  cursor: pointer;
}
/* Non-interactive cards: subtle border highlight on hover only, no lift */
.transport-card:hover,
.sales-card:hover {
  border-color: color-mix(in srgb, var(--page-accent, var(--brand)) 28%, var(--line));
}
.featured-cover {
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}
.news-card.featured:hover .featured-cover {
  transform: scale(1.03);
}
.news-card.featured {
  transition: box-shadow 240ms ease, transform 240ms cubic-bezier(.2,.8,.2,1);
}
.news-card.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 60px rgba(38, 49, 44, 0.18);
}

/* CTA micro-interaction */
.cta {
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 40%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.cta:hover::after { opacity: 1; }
.cta:active { transform: translateY(0) scale(0.98); }

/* Chips hover */
.chip { transition: background 220ms ease, color 220ms ease, transform 180ms ease; }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: translateY(0); }

/* Filter chips */
.filter-bar label.filter-chip, .filter-bar .filter-btn {
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 180ms ease;
}
.filter-bar label.filter-chip:hover, .filter-bar .filter-btn:hover { transform: translateY(-1px); }

/* Allergen chips click feedback */
.allergen-chip { transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms ease; }
.allergen-chip:active { transform: scale(0.95); }

/* Fav */
.fav-btn { transition: color 200ms ease, transform 220ms cubic-bezier(.2,2,.2,1); }
.fav-btn:hover { transform: scale(1.18) rotate(8deg); }
.fav-btn[aria-pressed="true"] { animation: scaleIn 300ms cubic-bezier(.2,2,.2,1); }

/* Drawer & modal */
.drawer {
  transition: transform 380ms cubic-bezier(.2,.8,.2,1);
}
.drawer.open {
  animation: slideInRight 420ms cubic-bezier(.2,.8,.2,1);
}
.drawer-body > * { animation: fadeInUp 500ms cubic-bezier(.2,.8,.2,1) both; }
.drawer-body > *:nth-child(1) { animation-delay: 100ms; }
.drawer-body > *:nth-child(2) { animation-delay: 160ms; }
.drawer-body > *:nth-child(3) { animation-delay: 220ms; }
.drawer-body > *:nth-child(4) { animation-delay: 280ms; }

.modal-backdrop.open { animation: fadeIn 200ms ease; }
.modal-backdrop.open .modal { animation: scaleIn 280ms cubic-bezier(.2,.8,.2,1); }

/* AI FAB pulse */
.ai-fab { transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease; }
.ai-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 22px 50px rgba(14, 77, 60, 0.4); }
.ai-fab:active { transform: translateY(0) scale(0.98); }

/* Search input focus */
.filter-bar .search-input, .field input, .field select, .field textarea, #ai-input {
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

/* Geo pulse dot */
.geo-dot { animation: pulse 1.8s ease-in-out infinite; }

/* Mark highlight animation */
mark { animation: fadeIn 300ms ease; }

/* Skeleton shimmer (réutilisable) */
.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ========= v5 : AI Assistant look ========= */

.ai-modal-shell {
  position: relative;
  padding: 2px;
  border-radius: 26px;
  background: linear-gradient(135deg, #1d6a56, #c98b3b, #7a5fdb, #1d6a56);
  background-size: 300% 300%;
  animation: aiGradient 6s ease infinite;
  box-shadow: 0 40px 80px rgba(11, 58, 47, 0.28);
  max-width: 560px;
  width: 100%;
}
.ai-modal {
  max-width: 100%;
  padding: 0;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
@keyframes aiGradient {
  0%, 100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

.ai-header {
  padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(29, 106, 86, 0.04), rgba(201, 139, 59, 0.04));
}
html[data-theme="contrast"] .ai-header { background: #0c0c0c; }

.ai-brand { display: flex; align-items: center; gap: 0.7rem; }
.ai-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1d6a56 0%, #0e4d3c 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 77, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.ai-avatar svg {
  width: 22px; height: 22px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
  animation: aiPulse 2.4s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.08) rotate(8deg); opacity: 0.85; }
}

.ai-brand-text { display: grid; line-height: 1.1; }
.ai-brand-text strong {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ai-brand-text span {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

.ai-search-bar {
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ai-search-bar svg {
  width: 18px; height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}
.ai-search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  color: inherit;
  padding: 0.4rem 0;
  font-size: 1rem;
}
.ai-search-bar input::placeholder { color: var(--muted); }

.ai-body {
  padding: 1.2rem;
  overflow: auto;
  max-height: 50vh;
}

.ai-bubble {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  animation: fadeInUp 380ms cubic-bezier(.2,.8,.2,1);
}
.ai-avatar-sm {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1d6a56 0%, #0e4d3c 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(14, 77, 60, 0.24);
}
.ai-avatar-sm svg { width: 18px; height: 18px; }
.ai-bubble-content {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 4px 14px 14px 14px;
  background: linear-gradient(135deg, rgba(29, 106, 86, 0.08), rgba(29, 106, 86, 0.04));
  color: var(--ink);
  line-height: 1.6;
  font-size: 0.95rem;
  min-height: 40px;
}
html[data-theme="contrast"] .ai-bubble-content { background: #1a1a1a; }

.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0;
}
.typing span {
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 50%;
  animation: typingDot 1.3s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.35; }
  35% { transform: translateY(-5px); opacity: 1; }
}

.ai-chips-section { margin-bottom: 1rem; }
.ai-chips-section small {
  display: block;
  font-size: 0.72rem; font-weight: 800;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  padding-left: 3rem;
}
.ai-chips-section .ai-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding-left: 3rem;
}
.ai-chips-section .chip {
  margin: 0;
  font-size: 0.88rem;
}

.ai-results {
  display: grid;
  gap: 0.5rem;
  padding-left: 3rem;
}
.ai-result {
  animation: fadeInUp 380ms cubic-bezier(.2,.8,.2,1) both;
}
.ai-result:nth-child(1) { animation-delay: 40ms; }
.ai-result:nth-child(2) { animation-delay: 90ms; }
.ai-result:nth-child(3) { animation-delay: 140ms; }
.ai-result:nth-child(n+4) { animation-delay: 180ms; }

.ai-footer {
  padding: 0.7rem 1.2rem;
  text-align: center;
  font-size: 0.74rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
}
html[data-theme="contrast"] .ai-footer { background: #0c0c0c; }

@media (max-width: 600px) {
  .ai-chips-section small,
  .ai-chips-section .ai-chips,
  .ai-results { padding-left: 0; }
}

/* ========= v6 : burger, mobile nav, spinner, file picker ========= */

.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  transition: background 160ms ease, border-color 160ms ease;
}
.burger:hover { background: rgba(255, 255, 255, 0.95); }
html[data-theme="contrast"] .burger { background: #111; }

@media (max-width: 760px) {
  .nav { display: none !important; }
  .burger { display: inline-flex; }
  .a11y-btn, .lang-switch { display: none; }
  /* Lang/a11y are inside the mobile menu instead */
}

.mobile-nav-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(11, 23, 20, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 56;
  width: min(85%, 340px);
  background: var(--surface);
  box-shadow: -22px 0 60px rgba(11, 58, 47, 0.2);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  padding: 1rem 1.2rem 1.5rem;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.mobile-nav-head strong { font-family: "Fraunces", serif; font-size: 1.1rem; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-list a {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  transition: background 180ms ease;
}
.mobile-nav-list a:hover { background: rgba(22, 51, 46, 0.05); }
.mobile-nav-list a.active {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand-dark);
  font-weight: 800;
}

/* Spinner + loading button state */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 1em; height: 1em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.6s linear infinite;
  vertical-align: -0.15em;
}
.cta.is-loading, button.is-loading {
  cursor: progress;
  opacity: 0.85;
  pointer-events: none;
}
.cta.is-loading .spinner { font-size: 1.1em; color: currentColor; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* File picker (styled) */
.file-picker {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  background: rgba(29, 106, 86, 0.03);
  transition: border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}
.file-picker:hover { border-color: var(--brand); background: rgba(29, 106, 86, 0.06); }
.file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-picker-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700; font-size: 0.88rem;
}
.file-picker-name { color: var(--muted); font-size: 0.9rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-placeholder {
  margin-top: 0.5rem;
  width: 100px; height: 100px;
  border-radius: 10px;
  background: rgba(29, 106, 86, 0.06);
  display: grid; place-items: center;
  color: var(--brand-dark);
  font-size: 1.3em;
}

/* Reduced motion: disable burger menu animations too */
html[data-motion="reduced"] .mobile-nav { transition: none; }

/* Honour reduced motion via data-motion attribute */
html[data-motion="reduced"] .data-grid > *,
html[data-motion="reduced"] .quick-grid > *,
html[data-motion="reduced"] .sales-grid > *,
html[data-motion="reduced"] .transport-grid > *,
html[data-motion="reduced"] .news-stack > *,
html[data-motion="reduced"] .cantine-grid > *,
html[data-motion="reduced"] .job-row,
html[data-motion="reduced"] .signal-item,
html[data-motion="reduced"] main,
html[data-motion="reduced"] .hero-copy,
html[data-motion="reduced"] .hero-panel,
html[data-motion="reduced"] .page-header *,
html[data-motion="reduced"] .drawer-body > *,
html[data-motion="reduced"] .modal-backdrop .modal,
html[data-motion="reduced"] .modal-backdrop.open {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
