/* Charte graphique de la commune (DGS, 12 octobre 2026) : police unique Bahnschrift.
   Bahnschrift est une police Microsoft livrée avec Windows et non redistribuable sur le web :
   les postes Windows l'utilisent directement, les autres reçoivent Barlow, sa plus proche
   équivalente libre (SIL OFL 1.1, hébergée dans assets/fonts). */
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700 1000; font-style: normal; font-display: swap; }

/* Un élément masqué par le code (attribut hidden) reste masqué, quel que soit son style d’affichage. */
[hidden] {
  display: none !important;
}

:root {
  /* Plancher typographique (27 octobre 2026) : plus aucun texte sous 13 px.
     Étiquettes des vols 3D 13 px, mentions et légendes 14 px, textes secondaires 15 px.
     En rem : le panneau de confort de lecture les agrandit avec le reste. */
  --fs-2xs: 0.8125rem;
  --fs-xs: 0.875rem;
  --fs-sm: 0.9375rem;

  /* Les cinq teintes du blason (charte DGS). Le bleu marine est la couleur institutionnelle ;
     les autres restent des accents, jamais en fond de texte long. */
  --kk-marine: #151a79;
  --kk-lagon: #0000fb;
  --kk-rouge: #fc0300;
  --kk-or: #d3b600;
  --kk-baobab: #505a3f;
  --kk-jaune: #f7e602;
  --brand-blue: var(--kk-marine);
  --brand-green: var(--kk-baobab);
  --brand-gold: var(--kk-or);
  --brand-red: var(--kk-rouge);
  --lagoon-950: #0b0f46;
  --lagoon-900: #0f135c;
  --lagoon-800: var(--kk-marine);
  --lagoon-700: #19208c;
  --lagoon-600: #1d25a0;
  --lagoon-400: var(--kk-or);
  --mangrove: var(--kk-baobab);
  --sun: var(--kk-or);
  --sand-50: #fbfaf4;
  --sand-100: #f3f1e4;
  --sand-200: #e5e0bf;
  --ink: #13163b;
  --muted: #53556b;
  --white: #ffffff;
  --line: rgba(19, 22, 59, 0.15);
  --container: min(90rem, calc(100% - 3rem));
  --section-space: clamp(1.5rem, 3vw, 2.5rem);
  --heading-space: clamp(1.25rem, 2vw, 2rem);
  --display: "Bahnschrift", "Barlow", "Segoe UI", sans-serif;
  --body: "Bahnschrift", "Barlow", "Segoe UI", sans-serif;
  --condensed: "Bahnschrift Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Bahnschrift", "Barlow", "Segoe UI", sans-serif;
  --shadow-soft: 0 24px 80px rgba(11, 15, 70, 0.12);
  --shadow-float: 0 28px 90px rgba(11, 15, 70, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--body);
  /* 16 px sur téléphone, jusqu'à 17 px sur grand écran. */
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(211, 182, 0, 0.22);
  touch-action: manipulation;
}

html:has(body.menu-open),
html:has(body.dialog-open) {
  overflow: hidden;
}
body.menu-open,
body.dialog-open {
  overflow: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

button:focus-visible,
[href]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  /* Focus en deux couleurs : anneau marine bordé de blanc, visible sur fond clair comme sombre (RGAA 3.3, 10.7). */
  outline: 3px solid var(--kk-marine);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

section[id],
h2[id] {
  scroll-margin-top: 7rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  background: var(--white);
  color: var(--lagoon-950);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  position: relative;
  z-index: 20;
  background: var(--lagoon-950);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-xs, 0.875rem);
  letter-spacing: 0.02em;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.45rem;
}

.utility-inner p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.status-dot {
  width: 0.46rem;
  height: 0.46rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a1bd70;
  box-shadow: 0 0 0 4px rgba(161, 189, 112, 0.14);
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.text-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  z-index: 18;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 18, 89, 0.9);
  color: var(--white);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 15, 70, 0.97);
  box-shadow: 0 12px 40px rgba(8, 11, 52, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6rem;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 auto;
  object-fit: contain;
  padding: .2rem;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: .45rem;
  background: #ffffff;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.015em;
}

.brand-copy small {
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.65);
  font-size:var(--fs-xs, 0.875rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2.15rem);
  margin-left: auto;
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 0.8rem 0;
  color: rgba(255, 255, 255, 0.8);
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  left: 0;
  height: 2px;
  background: var(--lagoon-400);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.desktop-nav a:hover {
  color: var(--white);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

/* La recherche de l'accueil a été retirée (27 octobre 2026) : la loupe du header devient
   un bouton « Rechercher » bien visible. Le libellé vient du CSS, le nom accessible reste
   l'aria-label du bouton. Sous 1120 px, il redevient une loupe ronde. */
.search-trigger {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1.15rem 0 1rem;
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 600;
}

.search-trigger::after {
  content: "Rechercher";
}

.search-trigger:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1120px) {
  .search-trigger {
    width: 2.75rem;
    justify-content: center;
    padding: 0;
  }

  .search-trigger::after {
    content: none;
  }
}

.icon-button:active,
.citizen-button:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.98);
}

.icon-button svg,
.citizen-button svg {
  width: 1.14rem;
  height: 1.14rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.citizen-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1rem;
  border: 1px solid var(--lagoon-400);
  border-radius: 0.5rem;
  background: var(--lagoon-400);
  color: var(--lagoon-950);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.citizen-button:hover {
  background: #a1a6ea;
}

.menu-trigger,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 7.8rem);
  overflow: clip;
  background: var(--lagoon-950);
  color: var(--white);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 58% center;
  animation: hero-settle 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 8, 41, 0.95) 0%, rgba(6, 8, 41, 0.76) 37%, rgba(6, 8, 41, 0.22) 69%, rgba(6, 8, 41, 0.05) 100%),
    linear-gradient(0deg, rgba(11, 15, 70, 0.78) 0%, transparent 42%);
}

.coastline {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 11rem;
  opacity: 0.97;
}

.coastline svg {
  width: 100%;
  height: 100%;
  fill: var(--sand-50);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: 2rem;
  padding-bottom: 13rem;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker span {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.25rem;
  color: var(--lagoon-400);
  font-variant-numeric: tabular-nums;
}

.hero h1 {
  max-width: 61rem;
  margin-bottom: 1.3rem;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7.2vw, 7.5rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero h1 em {
  color: var(--lagoon-400);
  font-family: var(--serif);
  font-size: 0.88em;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.65;
}

.hero-search {
  position: relative;
  display: grid;
  width: min(100%, 41rem);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.48rem 0.48rem 0.48rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-float);
  color: var(--ink);
}

.hero-search > svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--lagoon-600);
  stroke-width: 1.8;
}

.hero-search input {
  min-width: 0;
  padding: 0.7rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
}

.hero-search input::placeholder {
  color: #696b84;
}

.hero-search button {
  min-height: 3.2rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--lagoon-900);
  color: var(--white);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hero-search button:hover {
  background: var(--lagoon-800);
}

.search-results {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-result {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result[aria-selected="true"] {
  background: var(--sand-100);
}

.search-result span {
  min-width: 0;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result small {
  color: var(--muted);
  font-size:var(--fs-xs, 0.875rem);
}

.search-result svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--lagoon-600);
  stroke-width: 1.8;
}

.quick-dock {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 3.8rem;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--white);
  box-shadow: var(--shadow-float);
  color: var(--ink);
}

.quick-dock button {
  display: grid;
  min-width: 0;
  min-height: 7.25rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.55rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.quick-dock button:last-child {
  border-right: 0;
}

.quick-dock button:hover {
  background: var(--lagoon-900);
  color: var(--white);
}

.quick-dock button > svg:first-child {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--lagoon-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: stroke 180ms ease;
}

.quick-dock button:hover > svg:first-child {
  stroke: var(--lagoon-400);
}

.quick-dock span {
  display: grid;
  min-width: 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.quick-dock small {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-family: var(--body);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.quick-dock button:hover small {
  color: rgba(255, 255, 255, 0.6);
}

.quick-dock .quick-arrow {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.quick-dock button:hover .quick-arrow {
  transform: translateX(0.2rem);
}

.section-heading {
  margin-bottom: var(--heading-space);
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--lagoon-600);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--lagoon-400);
}

.section-heading h2,
.agenda-heading h2,
.practical-copy h2,
.documents-section h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.6vw, 5rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  color: var(--lagoon-800);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 700;
  transition: color 180ms ease;
}

.arrow-link:hover {
  color: var(--lagoon-600);
}

.arrow-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.arrow-link:hover svg {
  transform: translateX(0.2rem);
}

.service-section {
  background: var(--sand-50);
}

.service-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  grid-template-rows: minmax(15rem, auto) minmax(15rem, auto);
  gap: 1rem;
}

.service-card {
  position: relative;
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-radius: 0.7rem;
  background: var(--white);
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.7rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.service-card p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--fs-sm, 0.9375rem);
}

.service-label {
  margin-bottom: 0.5rem !important;
  color: var(--lagoon-600) !important;
  font-size:var(--fs-xs, 0.875rem) !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sur la carte sombre, le libellé passe en or (8,2:1) au lieu du bleu (1,4:1). */
.service-card--primary .service-label {
  color: var(--kk-or) !important;
}

.service-card--primary {
  grid-row: 1 / 3;
  padding: 2.7rem;
  background: var(--lagoon-900);
  color: var(--white);
}

.service-card--primary::before {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 45% 55% 50% 50%;
  background: radial-gradient(circle at 32% 37%, rgba(211, 182, 0, 0.22), transparent 62%);
  content: "";
  inset: -8rem -13rem auto auto;
  transform: rotate(18deg);
}

.service-card--primary h3 {
  max-width: 31rem;
  font-size: clamp(2.4rem, 4vw, 4.7rem);
}

.service-card--primary p:not(.service-label) {
  max-width: 29rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
}

.service-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--sand-100);
  color: var(--lagoon-700);
}

.service-card--primary .service-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lagoon-400);
}

.service-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.service-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-link {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: inherit;
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.service-link svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.service-link:hover svg {
  transform: translateX(0.25rem);
}

.service-card--school {
  grid-row: 1 / 3;
  padding-top: 15rem;
  background: #e4e8dd;
}

.service-card--school p {
  color: #5e6454;
}

.service-art {
  position: absolute;
  inset: 0 0 auto;
  height: 14rem;
  overflow: hidden;
  background: #c7c9e6;
}

.service-art .sun {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--sun);
}

.hill {
  position: absolute;
  bottom: -5rem;
  border-radius: 50%;
}

.hill-one {
  right: -4rem;
  width: 18rem;
  height: 14rem;
  background: #7e886c;
  transform: rotate(-18deg);
}

.hill-two {
  left: -6rem;
  width: 23rem;
  height: 13rem;
  background: #515e3a;
  transform: rotate(12deg);
}

.service-art svg {
  position: absolute;
  z-index: 2;
  bottom: 1.6rem;
  left: 2rem;
  width: 4.5rem;
  height: 4.5rem;
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
}

.circle-link {
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  margin-top: 1.5rem;
  place-items: center;
  border: 1px solid rgba(19, 22, 59, 0.22);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.circle-link:hover {
  background: var(--lagoon-900);
  color: var(--white);
  transform: translateX(0.2rem);
}

.circle-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.service-card--compact {
  gap: 2rem;
  border: 1px solid var(--line);
  background: transparent;
}

.service-card--compact h3 {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
}

.service-card--tint {
  border: 0;
  background: var(--sand-100);
}

.inline-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lagoon-800);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 700;
  cursor: pointer;
}

.inline-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.inline-link:hover svg {
  transform: translateX(0.2rem);
}

.service-card--report {
  background: var(--sun);
}

.service-card--report h3 {
  font-size: clamp(1.8rem, 2.7vw, 3rem);
}

.service-card--report p {
  color: rgba(19, 22, 59, 0.72);
}

.service-card--report .service-label {
  color: var(--ink) !important;
}

.service-card--report .service-link {
  border-color: rgba(19, 22, 59, 0.22);
}

.news-section {
  background: var(--white);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(22rem, 0.8fr);
  gap: clamp(2rem, 4vw, 5rem);
}

.featured-news {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--sand-100);
}

.featured-visual {
  position: relative;
  min-height: 31rem;
  background-image:
    linear-gradient(0deg, rgba(11, 15, 70, 0.14), transparent 55%),
    url("assets/hero-kani-keli.webp");
  background-position: 69% center;
  background-size: cover;
}

.news-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.42rem 0.65rem;
  border-radius: 0.25rem;
  background: var(--sun);
  color: var(--ink);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 3.5vw, 4rem);
}

.news-date {
  margin-bottom: 1.1rem;
  color: var(--lagoon-600);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 700;
}

.featured-copy h3 {
  margin-bottom: 1.2rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.featured-copy > p:not(.news-date) {
  color: var(--muted);
  font-size: var(--fs-sm, 0.9375rem);
}

.featured-copy a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.3rem;
  color: var(--lagoon-800);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 800;
}

.featured-copy a svg,
.news-list a svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.featured-copy a:hover svg,
.news-list a:hover svg {
  transform: translateX(0.2rem);
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list article {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  display: grid;
  color: var(--muted);
  font-size:var(--fs-xs, 0.875rem);
  line-height: 1;
  text-transform: uppercase;
}

.news-list time strong {
  color: var(--lagoon-800);
  font-family: var(--display);
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
}

.news-list article p {
  margin-bottom: 0.35rem;
  color: var(--lagoon-600);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-list article h3 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.news-list article > a {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lagoon-800);
}

.citizen-section {
  position: relative;
  overflow: hidden;
  background: var(--lagoon-950);
  color: var(--white);
}

.citizen-section::before,
.citizen-section::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 43% 57% 64% 36%;
  content: "";
}

.citizen-section::before {
  top: -24rem;
  left: -20rem;
  width: 52rem;
  height: 52rem;
}

.citizen-section::after {
  right: -20rem;
  bottom: -26rem;
  width: 58rem;
  height: 58rem;
}

.citizen-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(4rem, 8vw, 9rem);
}

.citizen-copy h2 {
  margin-bottom: 1.7rem;
  font-family: var(--display);
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.citizen-copy h2 em {
  color: var(--lagoon-400);
  font-family: var(--serif);
  font-weight: 400;
}

.citizen-copy > p:not(.eyebrow) {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 1rem;
}

.light-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 0.95rem 1.15rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--white);
  color: var(--lagoon-950);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.light-button:hover {
  background: var(--lagoon-400);
}

.light-button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.citizen-preview {
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 50px 100px rgba(3, 4, 17, 0.36), inset 0 1px rgba(255, 255, 255, 0.7);
  color: var(--ink);
  transform: rotate(1.4deg);
}

.preview-top,
.request-head,
.preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.preview-top {
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.35rem;
}

.preview-top > div {
  display: grid;
}

.preview-top small,
.request-head small,
.preview-actions small,
.progress-list small {
  color: var(--muted);
  font-size:var(--fs-xs, 0.875rem);
}

.preview-top strong {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.preview-avatar {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--sun);
  color: var(--ink);
  font-size: var(--fs-xs, 0.875rem);
  font-weight: 800;
}

.request-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 0.7rem;
  background: var(--sand-50);
  box-shadow: inset 0 0 0 1px rgba(19, 22, 59, 0.08);
}

.request-head {
  justify-content: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.request-head > div {
  display: grid;
}

.request-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.5rem;
  background: #f6f6fb;
  color: var(--lagoon-800);
}

.request-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.request-status {
  margin-left: auto;
  padding: 0.38rem 0.55rem;
  border-radius: 0.25rem;
  background: #fff9cf;
  color: #776a17;
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 800;
}

.progress-list {
  display: grid;
  gap: 0;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.progress-list li {
  position: relative;
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 4.3rem;
}

.progress-list li:not(:last-child)::after {
  position: absolute;
  top: 1.35rem;
  bottom: -0.1rem;
  left: 0.58rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.progress-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  place-items: center;
  border: 2px solid #c6c7d0;
  border-radius: 50%;
  background: var(--sand-50);
}

.progress-list li.done > span {
  border-color: var(--mangrove);
  background: var(--mangrove);
  color: var(--white);
}

.progress-list li.done > span svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.progress-list li.active > span {
  border: 4px solid var(--lagoon-900);
  box-shadow: 0 0 0 4px rgba(211, 182, 0, 0.18);
}

.progress-list li > div {
  display: grid;
  align-content: start;
}

.progress-list strong {
  font-size: var(--fs-sm, 0.9375rem);
}

.preview-actions {
  padding: 1.5rem 0.35rem 0.3rem;
}

.preview-actions > span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0.45rem;
}

.preview-actions > span strong {
  color: var(--lagoon-800);
  font-family: var(--display);
  font-size: 1.6rem;
}

.preview-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lagoon-800);
  font-size: var(--fs-xs, 0.875rem);
  font-weight: 800;
  cursor: pointer;
}

.preview-actions button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.agenda-section {
  background: var(--sand-100);
}

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.agenda-heading {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.agenda-heading h2 {
  margin-bottom: 1.4rem;
}

.agenda-heading > p:not(.eyebrow) {
  max-width: 28rem;
  color: var(--muted);
}

.agenda-heading .arrow-link {
  margin-top: 1.2rem;
}

.agenda-list {
  border-top: 1px solid var(--line);
}

.agenda-list article {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.7rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.agenda-list time {
  display: grid;
  justify-items: center;
  border-right: 1px solid var(--line);
  color: var(--lagoon-800);
  line-height: 1;
}

.agenda-list time strong {
  font-family: var(--display);
  font-size: 2.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
}

.agenda-list time span,
.event-type {
  color: var(--muted);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.agenda-list h3 {
  margin: 0.4rem 0 0.3rem;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.agenda-list p {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs, 0.875rem);
}

.agenda-list p svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.agenda-list article > a {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lagoon-800);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.agenda-list article > a:hover {
  background: var(--lagoon-900);
  color: var(--white);
  transform: translateX(0.2rem);
}

.agenda-list article > a svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.documents-section {
  background: var(--white);
}

.document-list {
  border-top: 1px solid var(--line);
}

.document-list > a {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, padding-left 180ms ease;
}

.document-list > a:hover {
  padding-left: 0.6rem;
  color: var(--lagoon-600);
}

.doc-type {
  display: grid;
  width: 3rem;
  height: 3.2rem;
  place-items: center;
  background: var(--sand-100);
  color: var(--lagoon-800);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 800;
}

.document-list a > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.document-list small,
.doc-size {
  color: var(--muted);
  font-size:var(--fs-xs, 0.875rem);
}

.document-list strong {
  margin-top: 0.15rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.doc-size {
  font-variant-numeric: tabular-nums;
}

.document-list > a > svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.territory-section {
  position: relative;
  min-height: 43rem;
  background:
    linear-gradient(90deg, rgba(11, 15, 70, 0.94), rgba(11, 15, 70, 0.34) 65%),
    url("assets/hero-kani-keli.webp") center 48% / cover;
  color: var(--white);
}

.territory-band {
  display: grid;
  min-height: 43rem;
  align-items: center;
  background: linear-gradient(0deg, rgba(11, 15, 70, 0.46), transparent 50%);
}

.territory-section h2 {
  max-width: 45rem;
  margin-bottom: 3rem;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 720;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.village-list {
  display: flex;
  max-width: 65rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.village-list span,
.village-list a {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 0.35rem;
  background: rgba(11, 15, 70, 0.28);
  backdrop-filter: blur(9px);
  font-size: var(--fs-xs, 0.875rem);
  font-weight: 700;
}

.village-list a {
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.village-list a:hover {
  border-color: var(--lagoon-400);
  background: rgba(211, 182, 0, 0.22);
  transform: translateY(-0.15rem);
}

.practical-section {
  background: var(--sand-50);
}

.practical-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.85fr;
  gap: 1rem;
}

.practical-copy {
  padding-right: clamp(1rem, 5vw, 6rem);
}

.practical-copy h2 {
  margin-bottom: 1.5rem;
}

.practical-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-actions a,
.contact-actions button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.contact-actions a:hover,
.contact-actions button:hover {
  border-color: var(--lagoon-600);
  background: var(--white);
}

.contact-actions svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--lagoon-600);
  stroke-width: 1.7;
}

.contact-actions span {
  display: grid;
  font-weight: 700;
}

.contact-actions small {
  color: var(--muted);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 500;
}

.hours-card,
.address-card {
  display: flex;
  min-height: 23rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-radius: 0.7rem;
}

.hours-card {
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hours-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hours-head svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: var(--lagoon-600);
  stroke-width: 1.7;
}

.hours-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
}

.hours-card dl {
  margin: 1.5rem 0;
}

.hours-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs, 0.875rem);
}

.hours-card dt {
  color: var(--muted);
}

.hours-card dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hours-card > p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--mangrove);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 700;
}

.address-card {
  position: relative;
  overflow: hidden;
  background: var(--lagoon-900);
  color: var(--white);
  font-style: normal;
}

.address-card::before,
.address-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.address-card::before {
  top: -8rem;
  right: -7rem;
  width: 17rem;
  height: 17rem;
}

.address-card::after {
  top: -5rem;
  right: -4rem;
  width: 10rem;
  height: 10rem;
}

.address-card > span {
  color: var(--lagoon-400);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.address-card strong {
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.address-card a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  color: var(--lagoon-400);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 800;
}

.address-card a svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-footer {
  padding: var(--section-space) 0 1.5rem;
  background: #070a2e;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: clamp(3rem, 8vw, 9rem);
  padding-bottom: var(--section-space);
}

.brand--footer {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm, 0.9375rem);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links > div {
  display: grid;
  align-content: start;
  /* Chaque lien fait déjà 44 px de haut (cible tactile) : pas d'écart en plus. */
  gap: 0;
}

.footer-links h2 {
  margin-bottom: 0.4rem;
  color: var(--lagoon-400);
  font-size: var(--fs-sm, 0.9375rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a,
.footer-links button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--white);
}

/* Liens secondaires de « La commune », repliés pour garder des colonnes de même hauteur. */
.footer-more summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  width: fit-content;
  color: var(--lagoon-400);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.footer-more summary::-webkit-details-marker {
  display: none;
}

.footer-more summary::after {
  content: "+";
  font-size: 1.15em;
  line-height: 1;
}

.footer-more[open] summary::after {
  content: "−";
}

.footer-more summary:hover {
  color: var(--white);
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm, 0.9375rem);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.25rem;
}

/* Un lien légal ne se coupe jamais en deux lignes : la rangée passe à la ligne entre les liens. */
.footer-bottom div a {
  white-space: nowrap;
}

.footer-bottom a:hover {
  color: var(--white);
}

dialog {
  max-width: calc(100% - 2rem);
  padding: 0;
  border: 0;
  color: var(--ink);
  box-shadow: 0 35px 120px rgba(4, 5, 25, 0.42);
}

dialog::backdrop {
  background: rgba(5, 7, 33, 0.74);
  backdrop-filter: blur(7px);
}

.command-dialog {
  width: min(44rem, calc(100% - 2rem));
  border-radius: 0.8rem;
  background: var(--sand-50);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.7rem 1.7rem 1rem;
}

.dialog-head p {
  margin-bottom: 0.2rem;
  color: var(--lagoon-600);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dialog-head h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: 2.1rem;
  letter-spacing: -0.045em;
}

dialog .icon-button {
  border-color: var(--line);
}

.dialog-search {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 1.7rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--white);
}

.dialog-search svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: var(--lagoon-600);
  stroke-width: 1.8;
}

.dialog-search input {
  width: 100%;
  padding: 1rem 0;
  border: 0;
  background: transparent;
}

.dialog-results {
  display: grid;
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.5rem 1.7rem 1rem;
}

.dialog-results .search-result {
  border-radius: 0.35rem;
}

.dialog-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  margin: 0 1.7rem 0.8rem;
  padding: 0.7rem 1rem;
  border-radius: 0.45rem;
  background: var(--sand-100);
  color: var(--kk-marine);
  font-weight: 700;
}

.dialog-all svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.dialog-all:hover,
.dialog-all:focus-visible {
  background: var(--sand-200);
}

.dialog-hint {
  margin: 0;
  padding: 0.8rem 1.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size:var(--fs-xs, 0.875rem);
}

kbd {
  display: inline-grid;
  min-width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  margin-right: 0.2rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 0.25rem;
  background: var(--white);
  font-family: inherit;
}

.service-dialog {
  width: min(58rem, calc(100% - 2rem));
  min-height: 36rem;
  border-radius: 1rem;
  background: var(--sand-50);
}

.service-dialog-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36%;
  overflow: hidden;
  background: var(--lagoon-900);
}

.service-dialog-art span {
  position: absolute;
  border-radius: 50%;
}

.service-dialog-art span:first-child {
  top: -5rem;
  right: -7rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.service-dialog-art span:last-child {
  right: -8rem;
  bottom: -3rem;
  width: 26rem;
  height: 16rem;
  background: var(--lagoon-400);
  transform: rotate(-24deg);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  background: var(--white);
}

.service-dialog-copy {
  width: 64%;
  padding: 4rem clamp(2rem, 5vw, 4.5rem);
}

.service-dialog-copy h2 {
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.service-dialog-copy > p:not(.eyebrow):not(.prototype-note) {
  color: var(--muted);
}

.service-dialog-copy ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.service-dialog-copy li {
  position: relative;
  padding-left: 1.3rem;
  font-size: var(--fs-sm, 0.9375rem);
}

.service-dialog-copy li::before {
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lagoon-400);
  content: "";
}

.service-dialog-actions {
  display: flex;
  gap: 0.7rem;
}

.primary-button,
.secondary-button {
  min-height: 3rem;
  padding: 0 1.1rem;
  border-radius: 0.4rem;
  font-size: var(--fs-xs, 0.875rem);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-button {
  border: 1px solid var(--lagoon-900);
  background: var(--lagoon-900);
  color: var(--white);
}

.primary-button:hover {
  border-color: var(--lagoon-700);
  background: var(--lagoon-700);
}

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--lagoon-600);
  background: var(--white);
}

.prototype-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size:var(--fs-xs, 0.875rem);
}

.citizen-dialog {
  width: min(68rem, calc(100% - 2rem));
  border-radius: 1rem;
  background: var(--white);
}

.citizen-dialog-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.citizen-dialog-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  background: var(--lagoon-900);
  color: var(--white);
}

.citizen-dialog-message h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.citizen-dialog-message ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm, 0.9375rem);
}

.citizen-dialog-message li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.citizen-dialog-message li svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--lagoon-400);
  stroke-width: 2;
}

.login-form {
  display: grid;
  align-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
}

.login-form h3 {
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.login-form > p:not(.prototype-note) {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: var(--fs-sm, 0.9375rem);
}

.login-form label {
  margin: 0.8rem 0 0.35rem;
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--sand-50);
  color: var(--ink);
}

.login-form input[aria-invalid="true"] {
  border-color: #ad3b39;
}

.field-error {
  min-height: 1rem;
  margin-top: 0.25rem;
  color: #9a312f;
  font-size:var(--fs-sm, 0.9375rem);
}

.login-form .primary-button {
  width: 100%;
  margin-top: 0.9rem;
}

.form-help {
  justify-content: center;
  margin-top: 1rem;
  color: var(--lagoon-800);
  font-size: var(--fs-xs, 0.875rem);
  font-weight: 700;
}

.access-panel {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(25rem, 100%);
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  box-shadow: -20px 0 70px rgba(11, 15, 70, 0.25);
  animation: slide-in 240ms ease both;
}

.access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.access-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.8rem;
}

.access-options {
  display: grid;
  gap: 0.7rem;
}

.access-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--sand-50);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.access-options button:hover,
.access-options button[aria-pressed="true"] {
  border-color: var(--lagoon-600);
  background: #eaede5;
}

.access-options span {
  color: var(--lagoon-600);
  font-size: 1.2rem;
}

.cookie-banner {
  position: fixed;
  z-index: 45;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  max-width: 66rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: auto;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  background: rgba(11, 15, 70, 0.97);
  box-shadow: var(--shadow-float);
  color: var(--white);
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size:var(--fs-xs, 0.875rem);
}

.cookie-banner a {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--lagoon-400);
  font-size:var(--fs-xs, 0.875rem);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-banner > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.cookie-banner .secondary-button {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.cookie-banner .primary-button {
  border-color: var(--lagoon-400);
  background: var(--lagoon-400);
  color: var(--lagoon-950);
}

.toast {
  position: fixed;
  z-index: 60;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: min(24rem, calc(100% - 2.4rem));
  padding: 0.9rem 1rem;
  border-radius: 0.45rem;
  background: var(--lagoon-950);
  box-shadow: var(--shadow-float);
  color: var(--white);
  font-size: var(--fs-xs, 0.875rem);
  animation: toast-in 220ms ease both;
}

html.font-large {
  font-size: 118%;
}

html.high-contrast {
  --lagoon-950: #05061f;
  --lagoon-900: #070a2e;
  --lagoon-600: #0f1568;
  --lagoon-400: #8b93ff;
  --sun: #ffe74d;
  --ink: #030416;
  --muted: #31334f;
  --line: rgba(3, 4, 22, 0.35);
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-settle {
  from { opacity: 0.2; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(2rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .menu-trigger {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    top: 7.8rem;
    right: 0;
    bottom: 0;
    display: grid;
    width: min(30rem, 100%);
    align-content: start;
    padding: 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--lagoon-950);
    box-shadow: -20px 0 70px rgba(3, 4, 21, 0.3);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 700;
  }

  .mobile-nav button {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 0;
    border-radius: 0.45rem;
    background: var(--lagoon-400);
    color: var(--lagoon-950);
    font-weight: 800;
  }

  .service-grid {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto auto;
  }

  .service-card--primary {
    grid-row: 1 / 3;
  }

  .service-card--school {
    grid-row: 1 / 3;
  }

  .service-card--report {
    grid-column: 1 / 3;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .featured-news {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .citizen-layout {
    gap: 4rem;
  }

  .practical-grid {
    grid-template-columns: 1fr 1fr;
  }

  .practical-copy {
    grid-column: 1 / 3;
    margin-bottom: 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-bottom div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 1.25rem, 90rem);
  }

  .section {
    padding: var(--section-space) 0;
  }

  .utility-inner {
    justify-content: flex-end;
  }

  .utility-inner > p {
    display: none;
  }

  .nav-wrap {
    min-height: 4.9rem;
    gap: 0.75rem;
  }

  .site-header {
    top: 0;
  }

  .brand-logo {
    width: 3.25rem;
    height: 3.25rem;
  }

  .brand-copy strong {
    font-size: var(--fs-sm, 0.9375rem);
  }

  .brand-copy small {
    font-size:var(--fs-xs, 0.875rem);
  }

  /* La loupe reste visible sur téléphone : c'est le seul accès à la recherche. */
  .citizen-button {
    display: none;
  }

  .mobile-nav {
    top: 7.35rem;
  }

  .hero {
    min-height: 52rem;
  }

  .hero-media img {
    object-position: 67% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 8, 41, 0.92), rgba(6, 8, 41, 0.38)),
      linear-gradient(0deg, rgba(11, 15, 70, 0.84), transparent 60%);
  }

  .hero-content {
    align-self: start;
    padding-top: 5rem;
    padding-bottom: 17rem;
  }

  .hero-kicker {
    font-size:var(--fs-xs, 0.875rem);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
    line-height: 0.91;
  }

  .hero-intro {
    font-size: var(--fs-sm, 0.9375rem);
  }

  .hero-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-search button {
    display: none;
  }

  .quick-dock {
    bottom: 2.3rem;
    grid-template-columns: 1fr;
  }

  .quick-dock button {
    min-height: 4.8rem;
    padding: 0.8rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-dock button:last-child {
    border-bottom: 0;
  }

  .quick-dock span {
    font-size: var(--fs-sm, 0.9375rem);
  }

  .quick-dock small {
    font-size:var(--fs-xs, 0.875rem);
  }

  .quick-dock button > svg:first-child {
    width: 1.35rem;
    height: 1.35rem;
  }

  .coastline {
    height: 7rem;
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    margin-bottom: 2.3rem;
  }

  .section-heading h2,
  .agenda-heading h2,
  .practical-copy h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .service-card,
  .service-card--primary {
    min-height: 23rem;
    grid-column: auto;
    grid-row: auto;
    padding: 1.5rem;
  }

  .service-card--primary h3 {
    font-size: 2.6rem;
  }

  .service-card--school {
    min-height: 31rem;
    grid-column: auto;
    grid-row: auto;
    padding-top: 15rem;
  }

  .service-card--compact {
    min-height: 20rem;
  }

  .service-card--report {
    grid-column: auto;
  }

  .featured-news {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 18rem;
  }

  .featured-copy {
    padding: 1.6rem;
  }

  .news-list article {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    gap: 0.8rem;
  }

  .news-list article h3 {
    font-size: 1.1rem;
  }

  .citizen-layout,
  .agenda-layout,
  .practical-grid {
    grid-template-columns: 1fr;
  }

  .citizen-copy h2 {
    font-size: 3.25rem;
  }

  .citizen-preview {
    padding: 0.8rem;
    transform: none;
  }

  .request-head {
    flex-wrap: wrap;
  }

  .request-status {
    margin-left: 0;
  }

  .agenda-heading {
    position: static;
  }

  .agenda-list article {
    grid-template-columns: 3.7rem minmax(0, 1fr);
    gap: 1rem;
  }

  .agenda-list article > a {
    display: none;
  }

  .agenda-list time strong {
    font-size: 2.2rem;
  }

  .agenda-list h3 {
    font-size: 1.2rem;
  }

  .agenda-list p {
    align-items: flex-start;
  }

  .document-list > a {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 0.8rem;
  }

  .doc-size {
    display: none;
  }

  .document-list strong {
    font-size: 0.95rem;
  }

  .territory-section,
  .territory-band {
    min-height: 34rem;
  }

  .territory-section h2 {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .practical-copy {
    grid-column: auto;
    padding-right: 0;
  }

  .hours-card,
  .address-card {
    min-height: 21rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links > div:last-child {
    grid-column: 1 / 3;
  }

  .footer-bottom div {
    justify-content: flex-start;
  }

  .service-dialog {
    min-height: auto;
  }

  .service-dialog-art {
    display: none;
  }

  .service-dialog-copy {
    width: 100%;
    padding: 4.5rem 1.5rem 2rem;
  }

  .service-dialog-copy h2 {
    font-size: 3rem;
  }

  .citizen-dialog-layout {
    grid-template-columns: 1fr;
  }

  .citizen-dialog-message {
    padding: 3rem 1.5rem 2rem;
  }

  .login-form {
    padding: 2rem 1.5rem;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-banner > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(3, 4, 22, 0.42);
  }
}

.visual-story-section {
  background: var(--sand-50);
}

.section-heading-note {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs, 0.875rem);
}

.visual-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1rem;
}

.visual-story-card {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border-radius: 0.7rem;
  background: var(--lagoon-900);
  color: var(--white);
}

.visual-story-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(4, 6, 28, 0.86) 100%);
  content: "";
}

.visual-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease;
}

.visual-story-card--lagon img { object-position: 78% 72%; filter: saturate(1.18) hue-rotate(-7deg); }
.visual-story-card--relief img { object-position: 34% 30%; filter: saturate(0.86) sepia(0.12); }
.visual-story-card--commune img { object-position: 54% 48%; filter: saturate(0.95) hue-rotate(14deg); }

.visual-story-card span {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.2rem;
  left: 1.25rem;
}

.visual-story-card small,
.visual-story-card strong { display: block; }
.visual-story-card small { color: var(--lagoon-400); font-size:var(--fs-xs, 0.875rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.visual-story-card strong { margin-top: 0.35rem; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 0.96; letter-spacing: -0.05em; }
.visual-story-card:hover img,
.visual-story-card:focus-visible img { opacity: 0.9; transform: scale(1.06); }

@media (max-width: 850px) {
  .visual-story-grid { grid-template-columns: 1fr 1fr; }
  .visual-story-card:first-child { grid-column: 1 / -1; min-height: 20rem; }
}

@media (max-width: 560px) {
  .visual-story-grid { grid-template-columns: 1fr; }
  .visual-story-card:first-child { grid-column: auto; }
  .visual-story-card { min-height: 19rem; }
}


/* Homepage content published through the municipal administration. */
.news-layout--single { grid-template-columns: minmax(0, 1fr); }
.home-content-empty, .home-content-status { padding: 1.4rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--muted); }
.home-content-status { margin-bottom: 1rem; }
.home-content-retry { color: var(--lagoon-800); font: inherit; font-weight: 700; text-decoration: underline; background: transparent; border: 0; cursor: pointer; }
.featured-visual--uploaded { background: none; }
.featured-visual--uploaded > img, .featured-visual--uploaded > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-visual--uploaded > video { object-fit: contain; background: var(--ink); }
.featured-news h3, .news-list h3, .agenda-list h3 { overflow-wrap: anywhere; }

/* Keep the aspect-ratio cards inside narrow mobile grid tracks. */
.visual-story-card { min-width: 0; width: 100%; }

.home-event-link-label { display: none; }
@media (max-width: 760px) {
  .agenda-list article > a { display: inline-flex; grid-column: 2; justify-self: start; width: auto; min-height: 2.75rem; padding: .5rem .8rem; gap: .6rem; border-radius: .4rem; font-size: var(--fs-xs, 0.875rem); font-weight: 700; }
  .home-event-link-label { display: inline; }
}


/* Official municipal identity: blue and green foundations, gold accents. */
.site-header { border-bottom-color: rgba(212, 186, 18, .42); }
.brand--footer .brand-logo, .mini-footer .brand-logo { width: 5rem; height: 5rem; }
.not-found .brand-logo { width: 6.5rem; height: 6.5rem; margin: 0 auto 2rem; }
.desktop-nav a::after { background: var(--brand-gold); }
.news-tag { border-left: 3px solid var(--brand-red); }
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(212, 186, 18, .34), var(--shadow-float); }
@media (max-width: 760px) {
  .brand--footer .brand-logo, .mini-footer .brand-logo { width: 4rem; height: 4rem; }
}

/* The blurred header is a containing block: anchor its menu directly below it. */
@media (max-width: 1120px) {
  .mobile-nav { position: absolute; top: 100%; bottom: auto; height: calc(100dvh - var(--menu-header-bottom, 8.4rem)); }
}

/* Cibles tactiles de 44 px au minimum : sous ce seuil, un doigt manque sa cible ou touche la voisine.
   La zone cliquable grandit, la taille du texte reste la même. */
.film-topline a,
.territory-film .container > a,
.village-list a,
.footer-links a,
.footer-links button,
.site-footer .container > a,
.site-footer .container > div a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.text-button,
.hero-suggestions button,
.arrow-link,
.inline-link,
.featured-copy a,
.preview-actions button,
.address-card a {
  min-height: 44px;
}
.utility-links .text-button {
  min-width: 44px;
  justify-content: center;
}

/* Bandeau cookies : une carte compacte en bas à gauche, qui ne masque plus le haut de page. */
.cookie-banner {
  right: auto;
  max-width: 27rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  margin: 0;
}

.cookie-banner p,
.cookie-banner a {
  font-size: var(--fs-sm, 0.9375rem);
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 760px) {
  .cookie-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}

/* Le titre d'accueil garde ses deux lignes avec la police de la charte. */
body .mairie-hero h1 {
  max-width: 12.5ch;
}

/* Charte DGS : une seule famille de caractères. Les mots mis en valeur dans les titres
   passent par la graisse Light et la couleur, jamais par l'italique. */
:is(h1, h2, h3, h4) em {
  font-style: normal;
  font-weight: 300;
}

/* Bandes rouge et jaune du blason, en liseré au-dessus de l'en-tête. */
.site-header::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--kk-rouge) 0 14px, var(--kk-jaune) 14px 28px);
  content: "";
  pointer-events: none;
}

/* Bandeau d'information (période d'inscription scolaire) */
.info-band {
  border-bottom: 1px solid rgba(211, 182, 0, 0.45);
  background: #fff8d6;
}

.info-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  padding: 1rem 0;
}

.info-band p {
  flex: 1 1 22rem;
  margin: 0;
  color: var(--ink);
}

.info-band-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--kk-marine);
  color: var(--white);
  font-family: var(--condensed);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-band .card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--kk-marine);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.info-band .card-action svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* ---------- Cartes entièrement cliquables (cartes.js) ---------- */
.carte-cliquable {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) {
  .carte-cliquable:hover {
    border-color: rgba(21, 26, 121, 0.45);
    box-shadow: 0 18px 40px -22px rgba(11, 15, 70, 0.45);
    transform: translateY(-3px);
  }

  .carte-cliquable:hover .card-action svg {
    transform: translateX(4px);
  }
}

.carte-cliquable:active {
  transform: scale(0.985);
  transition-duration: 90ms;
}

/* Le lien reçoit le focus clavier : toute la carte s'entoure, comme au survol. */
.carte-cliquable:focus-within {
  outline: 3px solid var(--kk-lagon);
  outline-offset: 3px;
}

.carte-cliquable :is(a, button):focus-visible {
  outline: 3px solid var(--kk-marine);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--white);
}

.carte-cliquable .card-action svg {
  transition: transform 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .carte-cliquable,
  .carte-cliquable .card-action svg {
    transition: none;
  }

  .carte-cliquable:hover,
  .carte-cliquable:active {
    transform: none;
  }
}

/* ---------- Confort tactile sur téléphone ---------- */
@media (pointer: coarse) {
  /* 16 px au moins : en dessous, iOS zoome sur le champ et décale la page. */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: max(16px, 1rem);
  }

  /* Numéros et adresses e-mail : une zone de toucher d'au moins 44 px de haut. */
  a[href^="tel:"],
  a[href^="mailto:"] {
    display: inline-block;
    min-height: 44px;
    padding-block: 0.7rem;
    line-height: 1.2;
  }

  a,
  button,
  label,
  summary {
    touch-action: manipulation;
  }
}

/* Date de mise à jour en bas de chaque page (scripts/dates-maj.mjs). */
.page-maj {
  margin: 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line, rgba(21, 26, 121, 0.12));
  color: var(--muted);
  font-size: var(--fs-sm, 0.9375rem);
}

.page-maj .container {
  display: block;
}

/* Événement annulé : mention en rouge, titre barré, toujours lisible. */
.is-annule .event-type,
.is-annule .event-copy small {
  color: #a1100b !important;
  font-weight: 800;
}

.is-annule h3 {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* Accueil : images entières et contenu superposé sur un fond contrasté. */
.service-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  grid-template-rows: repeat(2, minmax(26rem, auto));
}
.service-grid .service-card {
  display: grid;
  grid-column: auto;
  grid-row: auto;
  align-items: end;
  justify-content: stretch;
  grid-template-columns: minmax(0, 1fr);
  min-height: 26rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--lagoon-950);
  color: var(--white);
  isolation: isolate;
}
.service-grid .service-card--primary { grid-column: 1; grid-row: 1 / 3; }
.service-grid .service-card--school { grid-column: 2; grid-row: 1; }
.service-grid .service-card--compact:not(.service-card--tint) { grid-column: 3; grid-row: 1; }
.service-grid .service-card--tint { grid-column: 3; grid-row: 2; }
.service-grid .service-card--report { grid-column: 2; grid-row: 2; }
.service-card--primary .service-overlay { padding: 7rem 2.7rem 2.4rem; }
.service-grid .service-card > .service-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  /* La photo remplit toute la carte ; le texte se lit grâce au dégradé sombre placé derrière lui seulement. */
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) {
  .service-grid .service-card:hover > .service-photo { transform: scale(1.04); }
}
.service-grid .service-card--primary::before { content: none; }
.service-overlay {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 5rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgba(7, 10, 46, 0.94) 0%, rgba(7, 10, 46, 0.82) 45%, rgba(7, 10, 46, 0.4) 75%, rgba(7, 10, 46, 0) 100%);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.service-grid .service-card h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.6rem, 2.25vw, 2.5rem);
}
.service-grid .service-card--primary h3 { font-size: clamp(2.4rem, 4vw, 4.7rem); }
.service-grid .service-card p:not(.service-label) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}
.service-grid .service-card .service-label { color: #f7e602 !important; }
.service-grid .service-card .service-link,
.service-grid .service-card .inline-link,
.service-grid .service-card .circle-link {
  margin-top: 0.8rem;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.service-grid .service-topline { width: 100%; }
.service-grid .service-topline .service-icon { display: none; }
.service-grid .service-meta { color: var(--white); }
.service-grid .service-card .circle-link { width: 2.75rem; height: 2.75rem; }
.service-grid .service-card button:focus-visible {
  outline: 3px solid #f7e602;
  outline-offset: 4px;
}
@media (min-width: 761px) and (max-width: 1120px) {
  .service-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-rows: repeat(3, minmax(26rem, auto));
  }
  .service-grid .service-card--compact:not(.service-card--tint) { grid-column: 1; grid-row: 3; }
  .service-grid .service-card--tint { grid-column: 2; grid-row: 3; }
}
@media (max-width: 760px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .service-grid .service-card { grid-column: auto; grid-row: auto; min-height: 32rem; }
  .service-grid .service-overlay { padding: 1.25rem; }
  .service-grid .service-card--primary h3 { font-size: 2.6rem; }
}
/* Grande carte « État civil » : le document reste visible à gauche de la photo. */
.service-grid .service-card--primary > .service-photo { object-position: 18% center; }

/* Accueil, cartes des démarches : rubrique en haut, titre et texte en bas, photo dégagée au milieu.
   Toute la carte est cliquable ; les petits boutons (flèche ronde, « Consulter ») ne s'affichent plus. */
.service-grid .service-card { align-items: stretch; }
.service-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  justify-content: flex-end;
  gap: 0;
  padding: 1.4rem;
  background:
    linear-gradient(to bottom, rgba(7, 10, 46, 0.62) 0%, rgba(7, 10, 46, 0) 24%),
    linear-gradient(to top, rgba(7, 10, 46, 0.92) 0%, rgba(7, 10, 46, 0.72) 26%, rgba(7, 10, 46, 0) 58%);
}
.service-card:not(.service-card--primary) .service-overlay > div { display: contents; }
.service-grid .service-card:not(.service-card--primary) .service-label { margin-bottom: auto !important; padding-bottom: 1rem; }
.service-grid .service-card p:not(.service-label) { margin: 0; }
.service-card--primary .service-overlay { padding: 2.4rem 2.7rem; }
.service-card--primary .service-link svg { display: none; }
.service-grid .service-link { position: static; }
.service-grid .service-link::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
}
.service-grid .service-card .circle-link,
.service-grid .service-card .inline-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.service-grid .service-card .circle-link svg,
.service-grid .service-card .inline-link svg { display: none; }
.service-grid .service-card .circle-link:focus-visible,
.service-grid .service-card .inline-link:focus-visible { outline-offset: -4px; }
@media (max-width: 760px) {
  .service-grid .service-card { min-height: 24rem; }
  .service-grid .service-overlay,
  .service-card--primary .service-overlay { padding: 1.25rem; }
}

/* Mobile : une démarche par ligne, en pleine largeur (27 octobre 2026).
   Les placements en colonnes du bureau (dont un sélecteur :not() plus fort que la règle mobile
   ci-dessus) recréaient des colonnes étroites sur téléphone : :nth-child(n) les annule. */
@media (max-width: 760px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .service-grid > .service-card:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
    min-height: 21rem;
  }

  .service-grid > .service-card--primary:nth-child(n) {
    min-height: 27rem;
  }
}
