/* C.S. Le Guide de nos Enfants - feuille de style principale
   Couleurs reprises du logo (jaune, rouge) et de l'uniforme (bleu ciel). */

:root {
  --ink: #16324f;
  --ink-soft: #3d5670;
  --sky: #2f80c8;
  --sky-dark: #1f639f;
  --sky-soft: #e9f2fb;
  --sun: #f4b400;
  --red: #d52b1e;
  --paper: #ffffff;
  --line: rgba(47, 128, 200, .32);
  --line-fine: rgba(47, 128, 200, .11);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --radius-photo: 4px;
  --radius-ui: 10px;
}

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

html { scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-dark); text-underline-offset: .18em; }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line-fine);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 76px;
}
.topbar { background: var(--ink); }
.topbar .wrap { display: flex; justify-content: center; }
.school-name {
  display: block; padding: .45rem 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(.74rem, 3.05vw, 1.45rem); letter-spacing: .01em;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.school-name:hover { color: var(--sun); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 64px; }
@media (max-width: 400px) { .brand img { height: 46px; } }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .5rem .6rem;
  font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { background: var(--sky-soft); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sun); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem;
  font: 700 1rem/1.2 var(--font-body);
  border-radius: var(--radius-ui);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #b32116; color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-call { background: var(--sky); color: #fff; padding: .6rem 1rem; font-size: .95rem; white-space: nowrap; }
.btn-call:hover { background: var(--sky-dark); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--ink); border-radius: 8px;
  padding: .45rem .7rem; font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer;
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-block; margin-left: .5rem; order: 2; }
  .btn-call { margin-left: auto; }
  .header-inner { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin: 0; display: none; padding-bottom: 1rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: .75rem .5rem; border-bottom: 1px solid var(--line-fine); border-radius: 0; }
  .btn-call { order: 1; }
}
@media (max-width: 560px) {
  .btn-call { padding: .5rem .7rem; font-size: .88rem; }
  .header-inner { gap: .6rem; }
  .nav-toggle { padding: .4rem .55rem; margin-left: 0; }
}

/* ---------- Papier Seyès : l'élément signature ---------- */
.seyes {
  background-color: #fff;
  background-image:
    linear-gradient(to right, transparent 0 calc(var(--margin, 72px) - 1px), var(--red) calc(var(--margin, 72px) - 1px) calc(var(--margin, 72px) + 1px), transparent calc(var(--margin, 72px) + 1px)),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, var(--line-fine) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(to right, var(--line-fine) 0 1px, transparent 1px 32px);
}

/* ---------- Bannière défilante des bâtiments ---------- */
.banner { position: relative; height: clamp(260px, 46vw, 580px); overflow: hidden; background: var(--ink); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(10, 25, 40, .75), transparent); }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 1.6rem; z-index: 1; }
.slide figcaption span {
  display: block; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3.6vw, 2.6rem); color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.slide figcaption span::after { content: ""; display: block; width: 72px; height: 5px; background: var(--sun); margin-top: .5rem; border-radius: 3px; }
.banner-controls { position: absolute; right: max(1.25rem, calc((100% - var(--wrap)) / 2)); bottom: 1.6rem; z-index: 2; display: flex; gap: .4rem; }
.banner-controls button {
  min-width: 44px; height: 44px; padding: 0 .8rem; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font: 700 1.1rem var(--font-body); cursor: pointer;
}
.banner-controls button[data-slide="pause"] { font-size: .9rem; }
.banner-controls button:hover { background: var(--sun); }
@media (max-width: 560px) {
  .banner-controls { bottom: auto; top: .8rem; }
  .banner-controls button { min-width: 38px; height: 38px; }
}

/* ---------- Haut de page accueil ---------- */
.hero { --margin: 72px; padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center;
  padding-left: calc(var(--margin) - 1.25rem);
}
.hero-kicker { font-weight: 700; color: var(--ink-soft); margin-bottom: 1rem; }
.hero h1 { max-width: 16ch; }
.hero-motto {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--red); margin: 0 0 1.8rem;
}
.hero-lead { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.taped {
  position: relative; margin: 0;
  background: #fff; padding: .7rem .7rem 2.6rem;
  box-shadow: 0 18px 40px -18px rgba(22, 50, 79, .45);
  transform: rotate(2.2deg);
}
.taped img { border-radius: 2px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.taped figcaption {
  position: absolute; left: 1rem; bottom: .7rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink-soft);
}
.taped::before {
  content: ""; position: absolute; top: -14px; left: 50%;
  width: 120px; height: 30px; margin-left: -60px;
  background: rgba(244, 180, 0, .78); transform: rotate(-4deg);
}
@media (prefers-reduced-motion: no-preference) {
  .hero .taped { animation: pose 900ms cubic-bezier(.2, .8, .2, 1) 150ms both; }
  @keyframes pose {
    from { opacity: 0; transform: translateY(-24px) rotate(-5deg); }
    to { opacity: 1; transform: rotate(2.2deg); }
  }
}
@media (max-width: 860px) {
  .hero { --margin: 28px; padding: 2.5rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-left: 1.25rem; }
}

/* ---------- Bandeau de page intérieure ---------- */
.page-head { --margin: 72px; padding: 3.5rem 0 2.8rem; border-bottom: 1px solid var(--line); }
.page-head .wrap > * { margin-left: calc(var(--margin) - 1.25rem); }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .page-head { --margin: 28px; padding: 2.4rem 0 2rem; }
  .page-head .wrap > * { margin-left: 1.25rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tint { background: var(--sky-soft); }
.section-intro { max-width: 60ch; margin-bottom: 2.5rem; }
.section-intro p { color: var(--ink-soft); }

/* Parcours scolaire : une vraie séquence */
.parcours {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  counter-reset: etape;
}
.parcours li {
  counter-increment: etape;
  padding: 1.4rem 1.2rem 1.2rem 0;
  border-top: 4px solid var(--sky);
  position: relative;
}
.parcours li:nth-child(2) { border-color: var(--sun); }
.parcours li:nth-child(3) { border-color: var(--red); }
.parcours li:nth-child(4) { border-color: var(--ink); }
.parcours li::before {
  content: counter(etape);
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1;
  margin-bottom: .6rem; color: var(--ink);
}
.parcours strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.parcours span { color: var(--ink-soft); }
@media (max-width: 760px) { .parcours { grid-template-columns: 1fr 1fr; gap: 0 1.2rem; } }

/* Établissements : cartes (accueil) */
.campus-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.2rem 1.6rem; }
.campus-card { grid-column: span 2; }
.campus-card:nth-child(4), .campus-card:nth-child(5) { grid-column: span 3; }
.campus-card img { border-radius: var(--radius-photo); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: .9rem; }
.campus-card:nth-child(4) img, .campus-card:nth-child(5) img { aspect-ratio: 16 / 8; }
.campus-card h3 { margin-bottom: .35rem; }
.campus-card h3 a { color: var(--ink); text-decoration: none; }
.campus-card h3 a:hover { color: var(--red); }
.campus-card p { margin-bottom: .5rem; }
.campus-tel { font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .campus-cards { grid-template-columns: 1fr 1fr; }
  .campus-card, .campus-card:nth-child(4) { grid-column: span 1; }
  .campus-card:nth-child(5) { grid-column: span 2; }
  .campus-card:nth-child(4) img { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .campus-cards { grid-template-columns: 1fr; }
  .campus-card, .campus-card:nth-child(5) { grid-column: auto; }
  .campus-card img, .campus-card:nth-child(5) img { aspect-ratio: 3 / 2; }
}

/* Établissements : fiches détaillées */
.jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2rem; max-width: none; }
.jump .tag { text-decoration: none; font-size: .95rem; padding: .4rem .9rem; }
.jump .tag:hover { background: var(--sky); color: #fff; }
.campus {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem 3rem; align-items: center;
  padding: 3rem 0; border-top: 1px solid var(--line);
}
.campus-photo img { border-radius: var(--radius-photo); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.campus h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.campus-meta { list-style: none; padding: 0; margin: 0; }
.campus-meta li { padding: .55rem 0; border-bottom: 1px solid var(--line-fine); }
.campus-meta b { display: block; font-size: .85rem; color: var(--ink-soft); }
.campus-text { grid-column: 1 / -1; columns: 2; column-gap: 3rem; }
.campus-text p { break-inside: avoid; }
.campus-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: .6rem; align-items: center; }
.campus-strip img { border-radius: var(--radius-photo); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.campus-strip .btn { margin-left: .6rem; white-space: nowrap; }
.tag {
  display: inline-block; font-weight: 700; font-size: .85rem;
  padding: .2rem .6rem; border-radius: 999px; background: var(--sky-soft); color: var(--sky-dark);
}
@media (max-width: 860px) {
  .campus { grid-template-columns: 1fr; }
  .campus-text { columns: 1; }
  .campus-strip { grid-template-columns: 1fr 1fr; }
  .campus-strip .btn { grid-column: 1 / -1; justify-self: start; margin: .4rem 0 0; }
}

/* Atouts */
.atouts { columns: 2; column-gap: 3rem; padding: 0; margin: 0; list-style: none; }
.atouts li {
  break-inside: avoid; padding: .7rem 0 .7rem 2rem; position: relative;
  border-bottom: 1px solid var(--line-fine);
}
.atouts li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--sun);
}
@media (max-width: 760px) { .atouts { columns: 1; } }

/* Activités */
.activites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
.activite img { border-radius: var(--radius-photo); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: .9rem; }
.activite h3 { margin-bottom: .25rem; }
.activite .quand { font-weight: 700; color: var(--red); margin-bottom: .4rem; }
@media (max-width: 900px) { .activites { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .activites { grid-template-columns: 1fr; } }

/* Résultats */
.resultats { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.table-scroll { overflow-x: auto; }
.resultats th, .resultats td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.resultats thead th { font-family: var(--font-display); background: var(--ink); color: #fff; }
.resultats td.taux { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.bar { display: block; height: 6px; background: var(--sky-soft); border-radius: 3px; margin-top: .35rem; min-width: 90px; }
.bar i { display: block; height: 100%; background: var(--sky); border-radius: 3px; }

/* Bloc d'appel à l'action */
.cta { --margin: 72px; padding: 3.5rem 0; border-block: 1px solid var(--line); }
.cta-inner { margin-left: calc(var(--margin) - 1.25rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 .3rem; }
.cta p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .cta { --margin: 28px; } .cta-inner { margin-left: 1.25rem; } }

/* Documents à télécharger */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.docs-group { border: 1px solid var(--line); border-radius: var(--radius-ui); padding: 1.3rem 1.4rem; background: #fff; }
.docs-group h3 { font-size: 1.15rem; }
.docs-group ul { list-style: none; margin: 0; padding: 0; }
.docs-group li { border-top: 1px solid var(--line-fine); }
.docs-group a, .docs-group .na { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; text-decoration: none; font-weight: 700; }
.docs-group a::after { content: "PDF"; font-size: .75rem; font-weight: 700; color: var(--red); border: 1px solid currentColor; border-radius: 4px; padding: 0 .35rem; align-self: center; }
.docs-group .na { color: var(--ink-soft); font-weight: 400; }
.note { background: #fff8e1; border-left: 4px solid var(--sun); padding: 1rem 1.2rem; border-radius: 0 var(--radius-ui) var(--radius-ui) 0; max-width: 72ch; }

/* Classes (pédagogie) */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 3rem; }
.classe { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.classe h3 { color: var(--sky-dark); margin-bottom: .4rem; }
.classe p { margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.split img { border-radius: var(--radius-photo); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Galerie */
.gal-bloc { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.gal-bloc h2 small { font: 700 .95rem var(--font-body); color: var(--ink-soft); margin-left: .5rem; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.galerie button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-photo); overflow: hidden; }
.galerie img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .25s ease; }
.galerie button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 25, 40, .88); }
.lightbox img { max-width: 94vw; max-height: 82vh; margin: auto; border-radius: 4px; }
.lb-bar { display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; }
.lb-bar button { font: 700 1rem var(--font-body); padding: .6rem 1rem; border-radius: 8px; border: 0; background: #fff; color: var(--ink); cursor: pointer; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.secretariats { list-style: none; padding: 0; margin: 0 0 2rem; }
.secretariats li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.secretariats b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.secretariats a { font-weight: 700; font-size: 1.15rem; }
form .field { margin-bottom: 1.1rem; }
form label { display: block; font-weight: 700; margin-bottom: .35rem; }
form input, form select, form textarea {
  width: 100%; font: 1rem var(--font-body); color: var(--ink);
  padding: .75rem .85rem; border: 2px solid #c5d6e6; border-radius: 8px; background: #fff;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(47, 128, 200, .2); }
form textarea { min-height: 160px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }
.alert { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 700; }
.alert-ok { background: #e6f5ea; color: #1d6b34; }
.alert-ko { background: #fdeaea; color: #9b1c14; }
[hidden] { display: none !important; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #dce7f2; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.footer-motto { font-family: var(--font-display); font-weight: 700; color: var(--sun); font-size: 1.15rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .9rem; color: #a9bdd1; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tableau détaillé du bac et affiche */
.resultats-bac thead tr:nth-child(2) th { background: var(--ink-soft); font-size: .9rem; }
.resultats-bac th, .resultats-bac td { text-align: center; }
.resultats-bac td:first-child, .resultats-bac th:first-child { text-align: left; }
.resultats-bac tr.total td { background: #fff4d1; font-weight: 700; }
.affiche { margin: 2.5rem 0 0; max-width: 820px; }
.affiche img { border-radius: var(--radius-photo); box-shadow: 0 14px 34px -18px rgba(22, 50, 79, .5); }
.affiche figcaption { margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; }
.footer-bottom a { color: #fff; font-weight: 700; }

/* ---------- Localisation ---------- */
.campus-map {
  grid-column: 1 / -1; margin-top: .6rem;
  border: 1px solid var(--line); border-radius: var(--radius-ui); overflow: hidden; background: #fff;
}
.campus-map iframe { display: block; width: 100%; height: clamp(220px, 26vw, 300px); border: 0; }
.map-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1rem 1.2rem; border-top: 4px solid var(--sun);
}
.map-bar p { margin: 0; max-width: 52ch; }
.map-bar b { display: block; font-size: .85rem; color: var(--ink-soft); }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-map {
  margin-top: .3rem; padding: .6rem 1.05rem; font-size: .92rem;
  background: var(--red); color: #fff; border: 2px solid var(--red);
}
.btn-map::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: inset 0 0 0 3.5px #fff, inset 0 0 0 6px var(--red);
}
.btn-map:hover, .btn-map:focus-visible { background: #b32116; border-color: #b32116; color: #fff; }
.map-dialog {
  width: min(96vw, 1100px); padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10, 25, 40, .6);
}
.map-dialog::backdrop { background: rgba(10, 25, 40, .75); }
.map-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: var(--ink); color: #fff; }
.map-dialog-head h2 { margin: 0; font-size: 1.25rem; color: #fff; }
.map-close { font: 700 .95rem var(--font-body); padding: .5rem .9rem; border: 0; border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.map-close:hover { background: var(--sun); }
.map-dialog iframe { display: block; width: 100%; height: min(70vh, 620px); border: 0; }
.map-dialog-foot { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem 1.2rem; border-top: 4px solid var(--sun); }
@media (max-width: 560px) {
  .map-actions .btn, .map-dialog-foot .btn { flex: 1 1 100%; justify-content: center; }
  .map-dialog iframe { height: 62vh; }
}
