/* =========================================================
   Commune de Vendranges — feuille de style principale
   Palette et typographie : voir variables ci-dessous.
   ========================================================= */

:root {
  /* Couleurs */
  --color-primary: #1f3a52;        /* bleu ardoise institutionnel */
  --color-primary-deep: #14283a;
  --color-primary-soft: #3a6178;
  --color-accent: #8a6d3b;         /* ocre / blé — clin d'œil rural */
  --color-accent-soft: #c9ae7c;
  --color-surface: #ffffff;
  --color-surface-alt: #f3f0e9;    /* pierre dorée, très clair */
  --color-surface-dim: #eae5d8;
  --color-text: #202a30;
  --color-text-muted: #5b6670;
  --color-border: #ddd6c4;
  --color-success-bg: #eef3e9;
  --color-success-text: #3f5c2c;

  /* Typographie */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Échelle */
  --max-width: 1180px;
  --radius-s: 4px;
  --radius-m: 10px;
  --shadow-card: 0 1px 2px rgba(20, 40, 58, 0.06), 0 4px 14px rgba(20, 40, 58, 0.07);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-deep);
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text); }
p.lede { font-size: 1.1rem; color: var(--color-text-muted); }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Bandeau institutionnel ---------- */
.top-bar {
  background: #3e6a8a;
  color: #ffffff;
  font-size: 0.82rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 6px;
  flex-wrap: wrap;
}
.top-bar a { color: #e7ecef; text-decoration: none; }
.top-bar a:hover { color: var(--color-accent-soft); text-decoration: underline; }
.top-bar__meta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-primary-deep);
}
.brand__mark { width: 79px; height: 79px; flex: none; }
.brand__mark--img { width: 68px; height: 79px; object-fit: contain; }
.blason-figure { flex: none; width: 235px; }
.blason-figure img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(20, 40, 58, 0.18)); }
.blason-figure figcaption { margin-top: 8px; font-size: 0.78rem; color: var(--color-text-muted); text-align: center; }
.brand__text { line-height: 1.15; }
.brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary-deep);
}
.brand__subtitle {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--color-primary-deep);
  background: none;
}
.nav-toggle-label .bars { width: 20px; height: 2px; background: var(--color-primary-deep); position: relative; display: block; }
.nav-toggle-label .bars::before, .nav-toggle-label .bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--color-primary-deep);
}
.nav-toggle-label .bars::before { top: -6px; }
.nav-toggle-label .bars::after { top: 6px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  display: inline-block;
  padding: 10px 9px;
  text-decoration: none;
  color: var(--color-primary-deep);
  font-size: 0.89rem;
  font-weight: 600;
  border-radius: var(--radius-s);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--color-surface-alt); color: var(--color-primary-deep); }
.main-nav a[aria-current="page"] {
  color: var(--color-accent);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

/* ---------- Widget illiwap (page Alertes) ---------- */
.illiwap-embed {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-surface-alt);
  min-height: 420px;
}
.illiwap-embed iframe { display: block; width: 100%; height: 640px; border: 0; }
.illiwap-embed__placeholder {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 24px;
}
.illiwap-embed__placeholder svg { width: 40px; height: 40px; opacity: 0.6; }

/* ---------- Lien Facebook (menu) ---------- */
.nav-facebook-item { display: flex; align-items: center; }
.main-nav a.nav-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1877f2;
  margin-left: 4px;
  padding: 10px 4px;
}
.nav-facebook svg { width: 12px; height: 18px; }
.main-nav a.nav-facebook:hover { background: none; color: #0f4a99; }

/* ---------- Météo (affichée dans le menu, à côté de Contact) ---------- */
.nav-weather {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin-left: 4px;
  border-left: 1px solid var(--color-border);
}
.nav-weather__day {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--color-primary-deep);
  white-space: nowrap;
}
.nav-weather__day-name { font-weight: 600; }
.nav-weather__icon { font-size: 1rem; }
.nav-weather__temps .min { color: var(--color-text-muted); margin-left: 1px; }
.nav-weather__loading { font-size: 0.8rem; color: var(--color-text-muted); }
@media (max-width: 720px) {
  .nav-weather { border-left: none; border-top: 1px solid var(--color-border); margin-left: 0; margin-top: 8px; padding: 10px 4px 4px; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: #3e6a8a;
  color: #eef2f4;
  padding-block: 56px;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero.hero--compact { padding-block: 40px; }
.hero.hero--compact .container { grid-template-columns: 1fr; }
.hero h1 { color: #fff; }
.hero p.lede { color: #c9d3d9; }
.hero__art { width: 100%; height: auto; }
.hero__chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: #eef2f4;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.83rem;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: #7a5e30; color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-surface-alt); }

/* ---------- Sections ---------- */
section { padding-block: 48px; }
.section-alt { background: var(--color-surface-alt); }
.section-blue { background: #020fdd; color: #eef2f4; } /* bleu du blason — page Vie locale */
.section-blue h2, .section-blue h3 { color: #ffffff; }
.section-blue .eyebrow { color: #cfe0ff; }
.section-blue p, .section-blue .text-muted { color: #d7e0f5; }
.section-blue .card { background: var(--color-surface); color: var(--color-text); }
.section-blue .card p { color: var(--color-text-muted); }
.section-blue .callout { background: #ffffff; color: var(--color-text-muted); }
.section-blue .btn--primary { background: #ffffff; color: #020fdd; }
.section-blue .btn--primary:hover { background: #dfe6ff; color: #020fdd; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }

/* Stat strip */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.stat {
  background: var(--color-surface);
  padding: 22px 18px;
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 4px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__icon {
  width: 40px; height: 40px;
  color: var(--color-accent);
}
.card__icon--trail { color: #4a7c3c; }
.card__icon-group { display: flex; align-items: center; gap: 10px; }
.card__icon-group .card__icon { width: 36px; height: 36px; }
.card__icon--walker { color: #4a7c3c; }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* Trombinoscope (équipe municipale) */
.card--person { align-items: center; text-align: center; }
.card--person h3 { font-size: 1.05rem; }
.avatar-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex: none;
}
.avatar-placeholder svg { width: 38px; height: 38px; }
.avatar-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--color-border);
}
.card .card__link { margin-top: auto; font-weight: 700; font-size: 0.9rem; text-decoration: none; }

/* Figures locales — médaillon ovale façon "tableau d'époque" */
.figure-layout {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 4px;
}
.figure-layout > .figure-layout__text { flex: 1 1 260px; min-width: 260px; }
.portrait-oval {
  flex: none;
  width: 150px;
  height: 190px;
  border-radius: 50%;
  padding: 9px;
  background: linear-gradient(145deg, #e2c384, #8a6a3d 38%, #c9ae7c 55%, #6e5230 82%, #513c22);
  box-shadow: 0 5px 14px rgba(13, 27, 38, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.portrait-oval__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #f4ecd8;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25);
  background: #ece3d2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-oval img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(12%);
}
.portrait-oval__empty {
  color: #8a7a5e;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 10px;
}
.portrait-oval__empty svg { width: 34px; height: 34px; margin-bottom: 6px; opacity: 0.7; }
.portrait-oval__illustration { width: 78%; height: 78%; }
.portrait-frame { flex: none; display: flex; flex-direction: column; align-items: center; width: 150px; }
.portrait-frame__caption {
  margin-top: 8px;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.3;
}
@media (max-width: 480px) {
  .portrait-oval { width: 120px; height: 152px; margin-inline: auto; }
  .portrait-frame { width: 120px; margin-inline: auto; }
  .figure-layout { justify-content: center; text-align: center; }
}

.news-card { border-left: 3px solid var(--color-accent); }
.news-card time {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-surface-dim);
  color: var(--color-primary-deep);
}
.tag--sample { background: var(--color-success-bg); color: var(--color-success-text); }
.tag--link {
  text-decoration: none;
  cursor: pointer;
  background: var(--color-primary-deep);
  color: #fff;
  margin-top: 8px;
}
.tag--link:hover,
.tag--link:focus-visible { background: var(--color-primary); text-decoration: underline; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
th { color: var(--color-text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-m); }
.table-wrap table { border: none; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--color-border); }
.table-wrap tr:last-child td { border-bottom: none; }

/* Info blocks (contact, horaires) */
.info-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 24px;
}
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list li > span { min-width: 0; overflow-wrap: anywhere; }
.info-list svg { width: 20px; height: 20px; color: var(--color-accent); flex: none; margin-top: 2px; }
.info-list strong { display: block; font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; }

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
/* Par défaut, une grille dimensionne chaque colonne pour accueillir le
   contenu le plus large qu'elle contient (min-width:auto implicite), ce
   qui peut légèrement élargir une colonne au-delà de la largeur d'écran
   sur mobile au lieu de laisser le texte revenir à la ligne. */
.split > * { min-width: 0; }

/* Accordion (démarches) */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--color-primary-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface-alt);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .summary-main { display: flex; align-items: center; gap: 12px; }
.accordion-item summary .summary-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top center; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-border); }
.accordion-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-accent);
  font-weight: 400;
}
.accordion-item[open] summary::after { content: "–"; }

/* Sommaire de page (table des matières) */
.page-toc {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 16px 20px;
}
.page-toc__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0 0 10px;
  font-weight: 700;
}
.page-toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-toc__list a {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.page-toc__list a:hover {
  background: var(--color-surface-dim);
  border-color: var(--color-accent-soft);
}

/* Bouton "voir plus" sur une galerie photo */
.gallery-more { margin-top: 18px; }
.gallery-more summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.88rem;
}
.gallery-more summary::-webkit-details-marker { display: none; }
.gallery-more summary::after { content: "+"; font-weight: 700; color: var(--color-accent); }
.gallery-more[open] summary::after { content: "–"; }
.gallery-more .card-grid { margin-top: 20px; }
.accordion-item .accordion-body { padding: 4px 20px 18px; color: var(--color-text-muted); }
.accordion-item .accordion-body a { font-weight: 600; }

/* Transports en commun — couleurs du réseau régional (cars Région / AURA) */
.accordion-item--transport { border-color: #31a1c6; }
.accordion-item--transport summary {
  background: linear-gradient(90deg, #eaf6fa 0%, var(--color-surface-alt) 65%);
  border-left: 4px solid #31a1c6;
}
.transport-badge { display: flex; align-items: center; gap: 10px; }
.transport-badge__logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #31a1c6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.transport-badge__logo svg { width: 17px; height: 17px; }
.transport-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  background: #31a1c6;
  color: #fff;
  margin-left: 8px;
  vertical-align: 1px;
}
.accordion-item--transport .accordion-body a { color: #1c7a99; }

/* Défibrillateur — croix verte, couleur des dispositifs de secours */
.accordion-item--defibrillateur { border-color: #2e8b3d; }
.accordion-item--defibrillateur summary {
  background: linear-gradient(90deg, #eaf6ec 0%, var(--color-surface-alt) 65%);
  border-left: 4px solid #2e8b3d;
}

/* Boîtes aux lettres — jaune La Poste */
.accordion-item--poste { border-color: #ffcd00; }
.accordion-item--poste summary {
  background: linear-gradient(90deg, #fff8e0 0%, var(--color-surface-alt) 65%);
  border-left: 4px solid #ffcd00;
}

/* Badge d'icône générique (repris par défibrillateur / boîtes aux lettres) */
.icon-badge { display: flex; align-items: center; gap: 10px; }
.icon-badge__logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-badge__logo svg { width: 17px; height: 17px; }
.icon-badge__logo--green { background: #2e8b3d; }
.icon-badge__logo--poste { background: #ffcd00; }
.icon-badge__logo--poste svg { width: 15px; height: 15px; }
.icon-badge__logo--stone { background: #6b7280; }

/* Cimetière — gris pierre */
.accordion-item--cimetiere { border-color: #6b7280; }
.accordion-item--cimetiere summary {
  background: linear-gradient(90deg, #f1f2f4 0%, var(--color-surface-alt) 65%);
  border-left: 4px solid #6b7280;
}

/* Calendrier annuel de réservation (salle des fêtes) */
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 18px; font-size: 0.82rem; color: var(--color-text-muted); }
.calendar-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend__swatch { width: 13px; height: 13px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
.calendar-legend__swatch--free { background: var(--color-surface-alt); border: 1px solid var(--color-border); }
.calendar-legend__swatch--reserved { background: var(--color-primary); }
.calendar-legend__swatch--today { background: var(--color-surface); border: 2px solid var(--color-accent); }
.calendar-legend__swatch--past { background: var(--color-surface-alt); opacity: 0.5; }

.calendar-year {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.calendar-month {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 14px 14px 16px;
  background: var(--color-surface);
}
.calendar-month__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  text-transform: capitalize;
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.calendar-grid__dow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  padding-bottom: 4px;
}
.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.74rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
}
.calendar-day--empty { background: none; }
.calendar-day--past { opacity: 0.45; }
.calendar-day--reserved {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: help;
}
.calendar-day--today { box-shadow: inset 0 0 0 2px var(--color-accent); font-weight: 700; }
@media (max-width: 560px) {
  .calendar-year { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .calendar-day { font-size: 0.66rem; }
}

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; }

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.callout {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface-alt);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-block: 14px;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }

/* CTA band */
.cta-band {
  background: var(--color-primary-deep);
  color: #fff;
  padding-block: 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d3d9; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--color-primary-deep);
  color: #c9d3d9;
  padding-block: 44px 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: #c9d3d9; text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--color-accent-soft); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #9fb0ba;
}
.footer-bottom a { color: #9fb0ba; }
.footer-bottom a:hover { color: var(--color-accent-soft); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--color-text-muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__art { max-width: 260px; margin-inline: auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .nav-toggle-label { display: inline-flex; }
  .site-header .container { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--color-border); padding-top: 8px; }
  .main-nav a { display: block; padding: 12px 4px; }
  .split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .top-bar .container { justify-content: center; text-align: center; }
  /* Bloc blason + mot du maire : évite le débordement horizontal quand
     l'image (largeur fixe) et le texte sont côte à côte en flex. */
  .info-block[style*="flex"] { flex-direction: column; }
  .blason-figure { width: 160px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .card-grid, .card-grid.card-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
  /* Carte photo+texte à colonne fixe (180px) : trop large pour les petits
     écrans, on empile la photo au-dessus du texte. */
  .card--photo-wide { grid-template-columns: 1fr !important; }
  .card--photo-wide figure { max-width: 220px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Frise « thermomètre » (page Histoire) ---------- */
.thermo {
  position: relative;
  margin-top: 36px;
  padding: 8px 0 34px;
}
.thermo__track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 18px;
  width: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(to top, #020fdd 0%, var(--color-accent) 100%);
  box-shadow: inset 0 0 0 1px rgba(20,40,58,0.12);
}
.thermo__track::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #020fdd;
  box-shadow: inset 0 0 0 1px rgba(20,40,58,0.12);
}
.thermo__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.thermo__side { min-width: 0; }
.thermo__side--left { justify-self: end; text-align: right; }
.thermo__side--right { justify-self: start; text-align: left; }
.thermo__dot {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid #020fdd;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thermo__dot--now { border-color: var(--color-accent); }
.thermo__year {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  white-space: nowrap;
  background: var(--color-surface);
  padding: 1px 4px;
  border-radius: 999px;
}
.thermo__card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.thermo__side--left .thermo__card { margin-left: auto; }
.thermo__card:hover,
.thermo__card:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(2, 15, 221, 0.22);
  border-color: #020fdd;
  z-index: 3;
  outline: none;
}
.thermo__icon {
  flex: none;
  width: 34px;
  height: 34px;
  color: #020fdd;
}
.thermo__icon svg { width: 100%; height: 100%; }
.thermo__body h3 { margin-bottom: 2px; font-size: 1rem; }
.thermo__body p { margin-bottom: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.thermo__body .tag { margin-bottom: 4px; }

/* Variante photo (cartes postales) : vignette + légende, agrandissement
   au clic dans la visionneuse zoomable plutôt que dans la modale de texte. */
.thermo__card--photo { cursor: zoom-in; }
.thermo__card--photo .thermo__thumb {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.thermo__card--photo .thermo__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.thermo__card--photo:hover .thermo__thumb img,
.thermo__card--photo:focus-visible .thermo__thumb img {
  transform: scale(1.12);
}
.thermo__cap h3 { margin-bottom: 2px; font-size: 1rem; }
.thermo__cap p { margin-bottom: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.thermo__cap .tag { margin-bottom: 4px; }

@media (max-width: 720px) {
  .thermo__track { left: 20px; }
  .thermo__track::after { left: 20px; }
  .thermo__row { grid-template-columns: 40px 1fr; }
  .thermo__dot { grid-column: 1; margin-inline: 0; width: 34px; height: 34px; }
  .thermo__side--left, .thermo__side--right {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    text-align: left;
  }
  .thermo__side--left:empty, .thermo__side--right:empty { display: none; }
  .thermo__side--left .thermo__card { margin-left: 0; }
  .thermo__card { max-width: none; }
}

/* ---------- Modale d'agrandissement (frise Histoire) ---------- */
.thermo-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.thermo-modal.is-open { display: flex; }
.thermo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 35, 0.6);
}
.thermo-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-radius: var(--radius-m);
  max-width: 480px;
  width: 100%;
  max-height: 86vh;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: thermo-pop 0.18s ease;
  display: flex;
  flex-direction: column;
}
.thermo-modal__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
@keyframes thermo-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.thermo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: var(--color-surface-alt);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-text-muted);
}
.thermo-modal__close:hover { background: var(--color-surface-dim); color: var(--color-text); }
.thermo-modal__icon {
  display: block;
  width: 64px;
  height: 64px;
  color: #020fdd;
  margin-bottom: 12px;
}
.thermo-modal__icon svg { width: 100%; height: 100%; }
.thermo-modal__photo[hidden] {
  display: none;
}
.thermo-modal__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-s);
  margin-bottom: 6px;
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.thermo-modal__photo:hover,
.thermo-modal__photo:focus-visible {
  opacity: 0.88;
  outline: none;
}
.thermo-modal__photo-caption[hidden] {
  display: none;
}
.thermo-modal__photo-caption {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
}
.thermo-modal__panel .tag { margin-bottom: 10px; }
.thermo-modal__panel h3 { margin-bottom: 10px; }
.thermo-modal__panel p { color: var(--color-text-muted); margin-bottom: 0; }
.thermo-modal__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 14px;
}
.thermo-modal__thumb {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--color-surface-alt);
}
.thermo-modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thermo-modal__thumb:hover { border-color: var(--color-accent-soft); }
.thermo-modal__thumb.is-active { border-color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  .thermo__card { transition: none; }
  .thermo-modal__panel { animation: none; }
}

/* ---------- Photo pleine largeur avec légende ---------- */
.page-photo {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.page-photo img {
  width: 100%;
  height: auto;
  display: block;
}
/* Toute photo du site insérée en figure est cliquable pour s'agrandir
   (voir assets/js/main.js) — même traitement visuel partout. */
.page-photo {
  cursor: zoom-in;
}
.page-photo img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.page-photo:hover img,
.page-photo:focus-within img {
  transform: scale(1.04);
  filter: brightness(1.04);
}
.page-photo figcaption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Galerie de photos (portraits + paysages mélangés) : on force un cadrage
   uniforme pour que les cartes d'une même rangée aient toutes la même
   hauteur, sans bande blanche sous les photos les plus courtes. */
.village-gallery { align-items: start; }
.village-gallery .page-photo img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.village-gallery .page-photo {
  cursor: zoom-in;
}
.village-gallery .page-photo img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.village-gallery .page-photo:hover img,
.village-gallery .page-photo:focus-within img {
  transform: scale(1.06);
  filter: brightness(1.04);
}
.village-gallery .page-photo:hover figcaption {
  color: var(--color-text);
}

/* Photo isolée (hors galerie) rendue zoomable au clic, même traitement
   visuel que les photos de la galerie du village. */
.page-photo--zoomable {
  cursor: zoom-in;
}
.page-photo--zoomable img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.page-photo--zoomable:hover img,
.page-photo--zoomable:focus-within img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

/* Lightbox — agrandissement des photos de galerie au clic */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px 20px;
}
.photo-lightbox.is-open { display: flex; }
.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 22, 0.88);
  border: none;
  padding: 0;
  cursor: zoom-out;
}
.photo-lightbox__figure {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 94vw);
  margin: 0;
  animation: thermo-pop 0.18s ease;
}
.photo-lightbox__viewport {
  overflow: hidden;
  border-radius: var(--radius-m);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1116;
}
.photo-lightbox__viewport img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform 0.2s ease;
  transform-origin: 50% 50%;
  -webkit-user-drag: none;
  user-select: none;
}
.photo-lightbox__viewport img.is-zoomed {
  cursor: zoom-out;
  transform: scale(2.4);
  transition: transform 0.12s ease;
}
.photo-lightbox__hint {
  color: #c9d3d9;
  text-align: center;
  font-size: 0.76rem;
  margin-top: 6px;
}
.photo-lightbox__caption {
  color: #f2ede1;
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
}
.photo-lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  border: 2px solid var(--color-surface);
  background: var(--color-primary-deep);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.photo-lightbox__close:hover { background: var(--color-accent); }
@media (max-width: 600px) {
  .photo-lightbox__close { top: -14px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .village-gallery .page-photo img { transition: none; }
  .photo-lightbox__figure { animation: none; }
}

/* Visionneuse PDF — affichage direct des documents dans la page */
.pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.pdf-viewer.is-open { display: flex; }
.pdf-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 22, 0.88);
  border: none;
  padding: 0;
  cursor: pointer;
}
.pdf-viewer__panel {
  position: relative;
  z-index: 1;
  width: min(980px, 96vw);
  height: min(90vh, 1200px);
  background: var(--color-surface);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: thermo-pop 0.18s ease;
}
.pdf-viewer__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-primary-deep);
  color: #fff;
  flex: 0 0 auto;
}
.pdf-viewer__title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-viewer__btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  border-radius: var(--radius-s, 6px);
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.pdf-viewer__btn:hover,
.pdf-viewer__btn:focus-visible { background: rgba(255, 255, 255, 0.16); }
.pdf-viewer__close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.pdf-viewer__close:hover { background: rgba(255, 255, 255, 0.2); }
.pdf-viewer__body {
  flex: 1 1 auto;
  min-height: 0;
  background: #525659;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.pdf-viewer__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}
.pdf-viewer__page {
  display: block;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  height: auto;
}
.pdf-viewer__status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2ede1;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}
.pdf-viewer__status a { color: #fff; }
@media (max-width: 640px) {
  .pdf-viewer { padding: 0; }
  .pdf-viewer__panel { width: 100vw; height: 100vh; border-radius: 0; }
  .pdf-viewer__title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pdf-viewer__panel { animation: none; }
}

.card__photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  margin-bottom: 12px;
  display: block;
}

/* ---------- Barre de recherche du site ---------- */
.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid #b3261e;
  border-radius: 50%;
  background: #c1352c;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}
.search-trigger svg { width: 19px; height: 19px; }
.search-trigger:hover { background: #a52a22; border-color: #a52a22; color: #fff; }
@media (max-width: 720px) {
  .search-trigger { order: 1; }
  .nav-toggle-label { order: 2; }
  .main-nav { order: 3; }
}

.site-search {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}
.site-search.is-open { display: block; }
.site-search__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(20, 40, 58, 0.55);
  cursor: default;
  padding: 0;
}
.site-search__panel {
  position: relative;
  max-width: 640px;
  margin: 9vh auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 60px rgba(10, 20, 30, 0.35);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: search-pop 0.16s ease-out;
}
@keyframes search-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.site-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  flex: none;
}
.site-search__field:focus-within { box-shadow: inset 0 0 0 2px var(--color-primary); }
.site-search__field svg { width: 20px; height: 20px; color: var(--color-text-muted); flex: none; }
.site-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: none;
}
.site-search__input::placeholder { color: var(--color-text-muted); }
.site-search__close {
  flex: none;
  border: none;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.site-search__close:hover { background: var(--color-surface-dim); color: var(--color-text); }
.site-search__results {
  overflow-y: auto;
  padding: 8px;
}
.site-search__empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.site-search__result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--color-text);
  border: none;
  background: none;
  cursor: pointer;
}
.site-search__result:hover,
.site-search__result.is-active {
  background: var(--color-surface-alt);
}
.site-search__result-title { font-weight: 700; color: var(--color-primary-deep); font-size: 0.95rem; }
.site-search__result-section {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-left: 8px;
}
.site-search__result-desc { font-size: 0.83rem; color: var(--color-text-muted); margin-top: 2px; }
.site-search__hint {
  padding: 10px 18px;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  flex: none;
}
.site-search__hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  background: var(--color-surface-alt);
}
@media (max-width: 600px) {
  .site-search__panel { margin-top: 0; max-height: 100vh; height: 100%; border-radius: 0; }
}
