/* ==========================================================================
   Mairie, par l'Agence SBA : page de présentation
   Couleurs et polices de l'identité de l'agence (Lora, Ubuntu)
   ========================================================================== */

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --tint: #f2ece3;
  --text: #2c3440;
  --muted: #404f64;
  --heading: #0c0947;
  --blue: #1f16c7;
  --blue-hover: #160f96;
  --border: #ddd3c4;
  --dark: #0c0947;
  --on-dark: #ffffff;
  --on-dark-muted: #d4d3ea;

  --radius: 10px;
  --shadow: 0 1px 2px rgb(12 9 71 / 6%), 0 8px 24px rgb(12 9 71 / 8%);
  --shadow-hover: 0 2px 4px rgb(12 9 71 / 8%), 0 12px 32px rgb(12 9 71 / 12%);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(4rem, 8vw, 6.5rem);

  --gutter: 16px;
  --content: 1200px;

  --font-text: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Lora", Georgia, serif;
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
/* Pied de page en bas de l'écran sur les pages courtes (404) */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

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

h1, h2, h3 {
  margin: 0 0 var(--space-2);
  color: var(--heading);
  line-height: 1.2;
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.625rem); }
h3 { font-size: 1.3125rem; font-weight: 500; }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

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

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mail-at::before { content: "@"; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark);
}
.skip-link:focus { top: var(--space-1); color: var(--on-dark); }

/* Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: 0.75rem 1.375rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }

.btn--secondary { background: var(--surface); color: var(--blue); }
.btn--secondary:hover { background: #ecebfb; color: var(--blue-hover); border-color: var(--blue-hover); }

.btn--small { min-height: 44px; padding: 0.5rem 1rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* En-tête
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 249 247 / 94%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--heading);
  text-decoration: none;
}
.brand img { width: 72px; height: auto; }
.brand__name {
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
}
.brand:hover { color: var(--heading); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav ul a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav ul a:hover { color: var(--blue); text-decoration: underline; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--heading);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }

@media (max-width: 1023px) {
  /* Menu replié derrière le bouton dès que le script est chargé */
  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: var(--space-3);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .site-nav { flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none !important; }
}

/* Captures d'écran
   ========================================================================== */

.screen {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screen--phone {
  width: min(100%, 260px);
  border: 6px solid var(--dark);
  border-radius: 28px;
}

/* Agrandissement des captures */
.js .screen { position: relative; }
.screen__zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: zoom-in;
}
.screen__zoom:focus-visible { outline-offset: 4px; }

.has-lightbox { overflow: hidden; }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-4) var(--gutter);
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(12 9 71 / 85%); }

.lightbox__img {
  max-width: min(100%, 1440px);
  max-height: calc(100vh - 2 * var(--space-4));
  max-height: calc(100dvh - 2 * var(--space-4));
  width: auto;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 48px rgb(0 0 0 / 35%);
  cursor: default;
}
.lightbox--phone .lightbox__img { border-radius: 28px; }

.lightbox__close {
  position: fixed;
  top: var(--space-2);
  right: var(--space-2);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
}
.lightbox__close svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.lightbox__close:focus-visible { outline-color: var(--on-dark); }

/* Prise de rendez-vous : page Calendly dans une boîte de dialogue */
.rdv {
  width: min(100vw - 2 * var(--gutter), 1060px);
  max-width: none;
  height: min(100vh - 2 * var(--space-4), 780px);
  height: min(100dvh - 2 * var(--space-4), 780px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 48px rgb(0 0 0 / 35%);
}
.rdv[open] { display: flex; flex-direction: column; }
.rdv::backdrop { background: rgb(12 9 71 / 85%); }

.rdv__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
}
.rdv__header h2 { margin: 0; font-size: 1.375rem; }
.rdv__header p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9375rem; }

.rdv__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
}
.rdv__close:hover { border-color: var(--blue); color: var(--blue); }
.rdv__close svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

.rdv__frame { position: relative; flex: 1; }
.rdv__frame p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
}
.rdv__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

@media (max-width: 599px) {
  .rdv { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .rdv__header { padding-inline: var(--gutter); }
}

/* Hero
   ========================================================================== */

.hero { padding-block: var(--space-5) var(--space-6); }

.hero__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero__points li { display: flex; align-items: center; gap: 0.5rem; }
.hero__points li::before,
.checklist li::before {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero__visual,
.theme__visual {
  position: relative;
  padding-bottom: var(--space-5);
}
.hero__visual .screen--phone,
.theme__visual .screen--phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(110px, 24%, 200px);
  border-width: 5px;
  border-radius: 22px;
}
.hero__visual .screen--desktop,
.theme__visual .screen--desktop { margin-right: clamp(40px, 12%, 110px); }

/* Diaporama des thèmes : images superposées, seule .is-active est visible */
.slides { display: grid; }
.slides img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slides img.is-active { opacity: 1; }

.slideshow-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.slideshow-bar[hidden] { display: none; }

.slideshow-toggle {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
}
.slideshow-toggle:hover { border-color: var(--blue); color: var(--blue); }
.slideshow-toggle svg { width: 0.875rem; height: 0.875rem; fill: currentColor; }
.slideshow-toggle .icon-play,
.slideshow-toggle[aria-pressed="true"] .icon-pause { display: none; }
.slideshow-toggle[aria-pressed="true"] .icon-play { display: block; }

.slideshow-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.slideshow-label span { color: var(--heading); font-weight: 500; }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 5fr 6fr; }
  .hero { padding-top: var(--space-6); }
}

/* Sections
   ========================================================================== */

.section { padding-block: var(--space-6); }
.section--tinted { background: var(--tint); }

.section--dark {
  background: var(--dark);
  color: var(--on-dark-muted);
}
.section--dark h2 { color: var(--on-dark); }
.section--dark :focus-visible { outline-color: var(--on-dark); }
.section--dark .checklist li::before { background: #a9a5ff; }
.section--dark .checklist li { color: var(--on-dark); }
.section--dark .screen { border-color: transparent; }

.section__intro {
  max-width: 44rem;
  margin-bottom: var(--space-5);
}
.section__intro p { color: var(--muted); font-size: 1.125rem; }

/* Thèmes : onglets (le script les active, sinon les quatre thèmes s'enchaînent)
   ========================================================================== */

.themes__tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.themes__tabs[hidden] { display: none; }

@media (min-width: 720px) {
  .themes__tabs { grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
}

.themes__tabs [role="tab"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  min-height: 48px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.themes__tabs [role="tab"]:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); }
.themes__tabs [aria-selected="true"] {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.themes__tab-name {
  color: var(--heading);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
}
.themes__tab-summary { color: var(--muted); font-size: 0.875rem; }

.theme {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
.theme + .theme { margin-top: var(--space-6); }
.js .theme + .theme { margin-top: 0; }
.theme[hidden] { display: none; }
.theme:focus-visible { outline-offset: 8px; }

.theme h3 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 600;
}
.theme__summary {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 400;
}
.theme__text p { color: var(--muted); }
.theme__text .btn { margin-top: var(--space-2); }

@media (min-width: 960px) {
  .theme { grid-template-columns: 4fr 8fr; gap: var(--space-5); }
}

/* Fonctionnalités : texte et capture côte à côte
   ========================================================================== */

.feature {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
.feature + .feature { margin-top: var(--space-6); }
.feature__text { max-width: 34rem; }
.feature__text p { color: var(--muted); }
.feature--phone .screen--phone { justify-self: center; }

@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: var(--space-6); }
  .feature--reverse { grid-template-columns: 7fr 5fr; }
  .feature--reverse .feature__text { order: 2; }
  /* Téléphone : colonne de texte plus large, capture centrée dans la sienne */
  .feature--phone { grid-template-columns: 6fr 5fr; }
  .feature--phone.feature--reverse { grid-template-columns: 5fr 6fr; }
}

.also__title { margin-top: var(--space-6); }

.also {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.also li {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}
.also strong { display: block; color: var(--heading); font-weight: 500; }
.also h3 { margin-bottom: var(--space-1); font-size: 1.1875rem; }
.also .more { margin-top: var(--space-1); }

@media (min-width: 640px) { .also { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .also { grid-template-columns: repeat(3, 1fr); } }

/* Accessibilité
   ========================================================================== */

.accessibility {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
.accessibility__text > p { font-size: 1.125rem; }

@media (min-width: 960px) {
  .accessibility { grid-template-columns: 5fr 6fr; }
}

.checklist {
  display: grid;
  gap: 0.75rem;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
/* Coche positionnée à gauche : le texte de l'élément reste un seul bloc, même avec du gras ou un lien */
.checklist li { position: relative; padding-left: 1.875rem; }
.checklist li::before { position: absolute; left: 0; top: 0.25rem; }

/* Formules
   ========================================================================== */

.plans {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.plan:hover { box-shadow: var(--shadow-hover); }
.plan--featured { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

.plan h3 { margin-bottom: var(--space-1); font-family: var(--font-title); font-size: 1.625rem; font-weight: 600; }
.plan__for { color: var(--muted); }
.plan__price {
  margin: var(--space-2) 0 0;
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 500;
}
.plan__price span { color: var(--muted); font-size: 1rem; font-weight: 400; }
.plan .checklist { flex: 1; align-content: start; margin-bottom: var(--space-4); }
.plan .btn { align-self: flex-start; }

/* Contact
   ========================================================================== */

.contact {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
.contact p { color: var(--muted); max-width: 38rem; }

.contact__card {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-style: normal;
}
.contact__card p { color: var(--text); }
.contact__card p + p { margin-top: var(--space-2); }

@media (min-width: 900px) {
  .contact { grid-template-columns: 7fr 4fr; gap: var(--space-6); }
}

/* Pages de fonctionnalités
   ========================================================================== */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--border); }
.breadcrumb [aria-current] { color: var(--heading); }

/* Téléphone seul dans le hero : centré, sans capture d'ordinateur */
.hero__visual--phone { display: grid; justify-items: center; padding-bottom: 0; }
.hero__visual--phone .screen--phone { position: static; width: min(100%, 280px); border-width: 6px; border-radius: 28px; }

/* Plusieurs captures dans la même colonne */
.stack { display: grid; gap: var(--space-3); }

/* Schéma : étapes reliées par des flèches, en colonne sur mobile, en ligne sur grand écran */
.flow {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.4 1.4 5.6 5.6H4v2h12.2l-5.6 5.6L12 20l8-8z'/%3E%3C/svg%3E");
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow > li {
  position: relative;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.flow > li + li::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--space-5) + 0.75rem);
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  translate: -50% 0;
  rotate: 90deg;
  background: var(--blue);
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.flow__title {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--heading);
  font-weight: 500;
}
.flow p { color: var(--muted); font-size: 0.9375rem; }
.flow p + p { margin-top: var(--space-1); }

@media (min-width: 900px) {
  .flow { grid-auto-columns: 1fr; grid-auto-flow: column; gap: var(--space-5); }
  .flow > li + li::before {
    top: 50%;
    left: calc(-1 * var(--space-5) + 0.75rem);
    translate: 0 -50%;
    rotate: none;
  }
}

.section__intro + .flow,
.flow + .feature { margin-top: var(--space-5); }

/* Étapes empilées, même sur grand écran (textes longs) */
.flow--stack { max-width: 46rem; }
@media (min-width: 900px) {
  .flow--stack { grid-auto-flow: row; }
  .flow--stack > li + li::before {
    top: calc(-1 * var(--space-5) + 0.75rem);
    left: 50%;
    translate: -50% 0;
    rotate: 90deg;
  }
}

/* Niveaux de conformité : trois paliers côte à côte */
.levels {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.levels__item {
  display: grid;
  gap: 0.25rem;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.levels__item strong { color: var(--heading); font-weight: 500; }
.levels__item span { color: var(--muted); font-size: 0.9375rem; }
/* Pastille de niveau devant l'intitulé, la couleur n'est jamais seule porteuse d'information */
.levels__item strong::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--level);
}
.levels__item--non { --level: #b3261e; }
.levels__item--partiel { --level: #b06000; }
.levels__item--total { --level: #1a7f37; }

@media (min-width: 720px) { .levels { grid-template-columns: repeat(3, 1fr); } }

.note { margin-top: var(--space-2); color: var(--muted); font-size: 0.875rem; }

/* Mots-clés : courtes étiquettes en ligne */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: #ecebfb;
  color: var(--heading);
  font-size: 0.875rem;
}

/* Maquette d'e-mail */
.mail {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
}
.mail__head {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mail__head p { margin: 0; color: var(--muted); }
.mail__head strong { color: var(--heading); font-weight: 500; }
.mail__body { padding: var(--space-3); }
.mail__body dl { display: grid; gap: 0.75rem; margin: var(--space-2) 0 0; }
.mail__body dt { color: var(--muted); font-size: 0.8125rem; }
.mail__body dd { margin: 0; color: var(--text); }
.mail__link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.mail__attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mail__attachment svg { width: 1rem; height: 1rem; fill: var(--muted); }
.mail figcaption {
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Liens vers les autres fonctionnalités */
.related {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.related li {
  position: relative;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.related li:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); }
.related a { color: var(--heading); font-weight: 500; text-decoration: none; }
/* Toute la carte est cliquable, le lien reste le seul élément interactif */
.related a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.related p { margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }

/* Page de listing : en-tête sans visuel et grille de fonctionnalités */
.hero--compact { padding-bottom: var(--space-4); }
.hero--compact .lead { max-width: 44rem; }

.catalog {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.catalog li {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.catalog li:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); }
.catalog img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--border);
}
/* Capture de téléphone : entière, centrée sur un fond teinté */
.catalog img.catalog__img--phone {
  object-fit: contain;
  object-position: center;
  padding: var(--space-2) 0;
  background: var(--tint);
}
.catalog__text { padding: var(--space-3); }
.catalog h3 { margin-bottom: var(--space-1); font-size: 1.1875rem; }
.catalog a { color: var(--heading); text-decoration: none; }
/* Toute la carte est cliquable, le lien du titre reste le seul élément interactif */
.catalog a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.catalog p { color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 640px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .catalog { grid-template-columns: repeat(3, 1fr); } }

/* Questions fréquentes : accordéon natif <details> */
.accordion {
  max-width: 48rem;
  border-top: 1px solid var(--border);
}
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  position: relative;
  padding: var(--space-3) 2.5rem var(--space-3) 0;
  color: var(--heading);
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s;
}
.accordion details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.accordion summary:hover { color: var(--blue); }
.accordion__answer { padding-bottom: var(--space-3); color: var(--muted); }
.accordion__answer p + p { margin-top: var(--space-1); }
.accordion__more { margin-top: var(--space-4); color: var(--muted); }

/* Références : communes équipées, avec capture et témoignage facultatifs */
.references {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.reference {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.reference img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--border);
}
.reference__text { padding: var(--space-3); }
.reference h3 { margin-bottom: 0.25rem; font-size: 1.1875rem; }
.reference h3 a { color: var(--heading); }
.reference__meta { color: var(--muted); font-size: 0.9375rem; }
.reference blockquote { margin: var(--space-2) 0 0; }
.reference blockquote p { margin-bottom: var(--space-1); color: var(--text); font-family: var(--font-title); font-size: 1.0625rem; }
.reference blockquote footer { color: var(--muted); font-size: 0.875rem; }

@media (min-width: 640px) { .references { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .references { grid-template-columns: repeat(3, 1fr); } }

.related__all { margin-top: var(--space-3); }

/* Lien « En savoir plus » sous un bloc de la page d'accueil */
.more { display: inline-block; margin-top: var(--space-2); font-weight: 500; }
.section--dark .more { color: var(--on-dark); }
.more-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.also a { color: inherit; text-decoration-color: var(--border); }
.also a strong { color: var(--heading); }

/* Encadré de questions, sous forme de liste de définitions */
.faq { display: grid; gap: var(--space-3); max-width: 46rem; margin: 0; }
.faq dt { color: var(--heading); font-weight: 500; font-size: 1.125rem; }
.faq dd { margin: 0.25rem 0 0; color: var(--muted); }
.faq--columns { max-width: none; margin-top: var(--space-4); }
@media (min-width: 900px) { .faq--columns { grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-5); } }

/* Pied de page
   ========================================================================== */

.site-footer {
  padding-top: var(--space-5);
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--on-dark); text-decoration-thickness: 2px; }
.site-footer :focus-visible { outline-color: var(--on-dark); }

.site-footer__inner {
  display: grid;
  gap: var(--space-4);
}
.site-footer__brand img {
  width: 80px;
  margin-bottom: var(--space-2);
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #fff;
  box-sizing: content-box;
}
.site-footer address { font-style: normal; }

.site-footer__links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__copy {
  margin-top: var(--space-5);
  padding-block: var(--space-3);
  border-top: 1px solid rgb(255 255 255 / 16%);
  font-size: 0.875rem;
}

@media (min-width: 800px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* Pages de texte (mentions légales)
   ========================================================================== */

.text-page { padding-block: var(--space-5) var(--space-6); }
.text-page .container { max-width: calc(48rem + 2 * var(--gutter)); }
.text-page h2 { margin-top: var(--space-5); font-size: 1.625rem; }
.text-page dl { margin: 0; }
.text-page dt { margin-top: var(--space-2); color: var(--heading); font-weight: 500; }
.text-page dd { margin: 0; }
.text-page .checklist { margin-bottom: var(--space-2); }
