/* =========================================================
   Site de la Commune de Clémont — feuille de style commune
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-light: #60a5fa;
  --accent: #f97316;
  --accent-dark: #c2410c;
  --teal: #0d9488;
  --yellow: #fbbf24;
  --ink: #1e293b;
  --ink-soft: #475569;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(30, 58, 138, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(30, 58, 138, 0.15);
  --max-width: 1180px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-dark); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: #fff2e6;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 999;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #dbeafe;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #dbeafe; }
.topbar .topbar-links { display: flex; gap: 18px; }
.topbar .topbar-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.15rem;
}
.brand .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.brand .logo-mark.blason {
  background: none;
  border-radius: 0;
}
.brand .logo-mark.blason img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Blason (armoiries) ---------- */
.page-header-flex .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.blason-badge {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.blason-badge img {
  display: block;
  width: 110px;
  height: auto;
}
.blason-inline {
  width: 200px;
  margin: 0 auto 20px;
}
.blason-inline img {
  width: 100%;
  height: auto;
  display: block;
}
.brand small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: .72rem;
  letter-spacing: .04em;
}

nav.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  transition: background .15s, color .15s;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: #eef2ff;
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--primary-dark); }
.btn-outline:hover { border-color: var(--primary); }
.btn-ghost-light { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.28); }

.site-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--ink);
  padding: 18px 24px;
  box-shadow: 0 -8px 24px -8px rgba(0,0,0,.25);
  display: none;
}
.site-banner.visible { display: block; }
.site-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-banner p { margin: 0; max-width: 680px; font-size: .92rem; color: #e2e8f0; }
.site-banner .banner-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 15% -10%, #3b82f6 0%, transparent 60%),
              linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, var(--teal) 120%);
  color: #fff;
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(251,191,36,.35), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #e0ecff; font-size: 1.1rem; max-width: 520px; }
.hero .eyebrow { background: rgba(255,255,255,.15); color: #fff7ed; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-art {
  aspect-ratio: 4/3;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-art .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.hero-art .shape.s1 { width: 140px; height: 140px; top: -30px; left: -30px; }
.hero-art .shape.s2 { width: 90px; height: 90px; bottom: 20px; right: 30px; background: rgba(30,58,138,.18); }
.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slideshow .hero-slide.active { opacity: 1; }
.hero-art-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(15,23,42,0) 45%, rgba(15,23,42,.55) 100%);
  pointer-events: none;
}
.hero-art .icon-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,.92);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: -56px;
  position: relative;
  z-index: 3;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: var(--accent-dark); }
.stat-card .lbl { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.stat-card.linkable {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.stat-card.linkable:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(30,58,138,.22); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.bg-tint { background: #eef4ff; }
.bg-dark {
  background: linear-gradient(135deg, var(--primary-dark), #0f2a63);
  color: #e0ecff;
}
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: #cbd8f2; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.agenda-filter-card.is-active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: var(--shadow);
}
.agenda-filter-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  flex-shrink: 0;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.card-head .icon {
  margin-bottom: 0;
}
.card-address {
  margin: 0;
  font-size: .82rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.icon-blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.icon-orange { background: linear-gradient(135deg, var(--accent), var(--yellow)); }
.icon-teal { background: linear-gradient(135deg, var(--teal), #34d399); }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag-news { background: #fff2e6; color: var(--accent-dark); }
.tag-travaux { background: #e0f2f1; color: var(--teal); }
.tag-event { background: #eef2ff; color: var(--primary-dark); }
.tag-culture { background: #fdf2f8; color: #be185d; }
.tag-artisan { background: #e0f2f1; color: var(--teal); }
.tag-commerce { background: #fff2e6; color: var(--accent-dark); }
.tag-restaurant { background: #fdf2f8; color: #be185d; }
.tag-pro { background: #eef2ff; color: #334155; }
.tag-sante { background: #fee2e2; color: #b91c1c; }
.tag-enfance { background: #ede9fe; color: #6d28d9; }

.icon-slate { background: linear-gradient(135deg, #334155, #64748b); }
.icon-sante { background: linear-gradient(135deg, #dc2626, #f87171); }
.icon-enfance { background: linear-gradient(135deg, #7c3aed, #c4b5fd); }

.commerce-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.commerce-photo-link {
  display: block;
}
.commerce-photo-link .commerce-photo {
  transition: transform .2s, opacity .2s;
}
.commerce-photo-link:hover .commerce-photo {
  transform: scale(1.02);
  opacity: .92;
}
.card-name-link {
  color: inherit;
  text-decoration: none;
}
.card-name-link:hover {
  text-decoration: underline;
}
.assoc-logo {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  margin-bottom: 14px;
}

.photo-placeholder {
  border-radius: var(--radius-sm);
  aspect-ratio: 16/10;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .9;
}
.photo-placeholder.p1::before { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.photo-placeholder.p2::before { background: linear-gradient(135deg, #0d9488, #34d399); }
.photo-placeholder.p3::before { background: linear-gradient(135deg, #f97316, #fbbf24); }
.photo-placeholder.p4::before { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.photo-placeholder .ph-icon { position: relative; z-index: 2; padding: 14px; opacity: .85; }

/* ---------- News / event list items ---------- */
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean > li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.list-clean > li:last-child { border-bottom: none; }
.date-chip {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #eef2ff;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.date-chip .day { font-size: 1.2rem; line-height: 1; }
.date-chip .mon { font-size: .68rem; text-transform: uppercase; }

/* ---------- Timeline (démarches / agenda) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  padding-bottom: 28px;
  border-left: 2px dashed var(--border);
  margin-left: 22px;
}
.steps li:last-child { border-left: none; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -22px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.accordion-item button.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-item .accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 20px;
}
.accordion-item.open .accordion-panel { padding-bottom: 18px; }
.accordion-item .chevron { transition: transform .2s; }
.accordion-item.open .chevron { transform: rotate(180deg); }

/* ---------- Table ---------- */
table.info-table { width: 100%; border-collapse: collapse; }
table.info-table th, table.info-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
table.info-table th { color: var(--primary-dark); font-weight: 700; width: 42%; }

table.commissions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .92rem;
}
table.commissions-table caption { text-align: left; }
table.commissions-table th {
  background: var(--primary-dark);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
table.commissions-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.6);
}
table.commissions-table tr.row-schwab td { background: rgba(13, 148, 136, 0.12); }
table.commissions-table tr.row-louis td { background: rgba(249, 115, 22, 0.10); }
table.commissions-table tr.row-jathan td { background: rgba(37, 99, 235, 0.10); }
table.commissions-table tr.row-neutral td { background: var(--bg); }
table.commissions-table td:first-child { font-weight: 600; color: var(--ink); }
table.commissions-table td:nth-child(2) { white-space: nowrap; font-weight: 600; }
table.commissions-table td:nth-child(3) { text-align: center; font-weight: 700; color: var(--primary-dark); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; color: var(--ink); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: var(--accent-dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 22px;
}
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  font-weight: 600;
}
.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  font-weight: 600;
}
/* Piège à robots : champ masqué visuellement mais toujours présent dans le
   DOM (contrairement à display:none, plus facilement détecté par les bots). */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Contact info cards ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

/* ---------- Map ---------- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #fb923c);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { opacity: .95; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cbd5e1; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: #94a3b8;
}
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.social-row a:hover { background: var(--primary); }

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 46px 0;
}
.page-header h1 { color: #fff; margin-bottom: 6px; }
.breadcrumb { font-size: .85rem; color: #dbeafe; }
.breadcrumb a { color: #dbeafe; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Visionneuse (mode livre) ---------- */
.viewer-topbar {
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 0;
}
.viewer-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.viewer-topbar a.back-link {
  color: #dbeafe;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.viewer-topbar a.back-link:hover { color: #fff; }
.viewer-topbar h1 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0;
  text-align: center;
  flex: 1;
}
.viewer-stage {
  background: #1e293b;
  min-height: calc(100vh - 250px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
}
#book { margin: 0 auto; }
.viewer-loading {
  color: #cbd5e1;
  text-align: center;
}
.viewer-loading .spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-controls {
  background: #0f172a;
  padding: 16px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.viewer-controls .page-indicator {
  color: #cbd5e1;
  font-weight: 700;
  font-size: .9rem;
  min-width: 90px;
  text-align: center;
}
.viewer-controls button {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.viewer-controls button:hover:not(:disabled) { background: var(--primary); }
.viewer-controls button:disabled { opacity: .35; cursor: default; }
.viewer-error {
  color: #fecaca;
  text-align: center;
  max-width: 420px;
}
.viewer-fallback {
  background: #1e293b;
  color: #e2e8f0;
  max-width: 700px;
  width: 100%;
  text-align: center;
}
.viewer-fallback p { color: #cbd5e1; }
.viewer-fallback-frame-wrap {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 18px;
}
.viewer-fallback-frame-wrap iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  header.site-header.nav-open nav.main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px;
  }
  header.site-header.nav-open nav.main-nav ul { flex-direction: column; }
  .topbar .topbar-links { gap: 12px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .cta-band { flex-direction: column; text-align: center; padding: 36px 24px; }
  section { padding: 52px 0; }
}
