/* Infolettre FM 103,3 : formulaire d'inscription en étapes (shortcode custom_newsletter, newsletter/signup-form.php).
   Fichier externe chargé par <link>. À chaque modification : monter FM1033_SIGNUP_VERSION dans
   signup-form.php et vider ce fichier dans Cloudflare (Cloudflare ignore ?ver=).
   Raisons des choix visuels (R-31) :
   - Palette éditoriale à fort contraste (R-01, R-25, R-29) : encre #181920 (17,5:1 sur blanc), gris secondaire
     #30333B (12,6:1), rouge radio FM 103,3 #D41F0D (5,25:1 avec texte blanc, survol #A8180A à 7,5:1).
   - Peu de contours (demande du client : « trop de bordures ») : seuls les champs où l'on écrit (courriel,
     recherche) ont une bordure, #5C6270 (6,11:1). Tuiles, pastilles, boutons secondaires et récapitulatif sont
     des aplats sans contour : gris #ECEFF4 au repos, rouge pâle #FBDDD8 une fois coché. L'état se lit sur la
     case (#3F4450, 9,75:1, puis rouge avec crochet), pas sur un cadre. La carte garde un seul filet fin.
   - Titre de la carte (h3) au-dessus des étapes : il nomme la boîte ; les titres d'étape sont un cran plus petits.
   - Ligne d'outils (compteur à gauche, Tout sélectionner / Tout retirer à droite) juste au-dessus des choix,
     au même endroit à toutes les largeurs.
   - Typographie (R-06) : Open Sans du site en corps 15-16 px (16 px sur les champs pour éviter le zoom forcé iOS).
   - Progression lisible (R-05, R-03) : aucun estompage opacity sur les étapes à venir ; sur téléphone étroit,
     seule l'étape active affiche son libellé complet afin d'éviter toute coupure de mot (« Municipalités »).
   - Hiérarchie des cartes (R-14) : l'étape 1 met en avant 2 grandes cartes avec icône calendrier et sous-titre,
     tandis que les étapes 2 et 3 utilisent des tuiles compactes adaptées à 11-12 choix, et l'étape 4 un récapitulatif tabulaire.
   - Rayons et ombre mesurés (R-11, R-12) : une seule carte englobante légèrement élevée (14 px), tuiles et champs à 9 px,
     pastilles à 6 px ; aucune décoration superflue.
   - Mouvement sobre (R-19, MOTION 1) : transitions d'état de 0,15 s uniquement au survol et au focus, coupées sous
     prefers-reduced-motion. */

.fm-nl {
  --fm-nl-red: #d41f0d;
  --fm-nl-red-dark: #a8180a;
  --fm-nl-red-tint: #fbddd8;
  --fm-nl-red-tint-hover: #f6c9c2;
  --fm-nl-ink: #181920;
  --fm-nl-muted: #30333b;
  --fm-nl-step-upcoming: #3c4049;
  --fm-nl-placeholder: #505560;
  --fm-nl-surface: #eceff4;
  --fm-nl-surface-hover: #dfe4ec;
  --fm-nl-surface-active: #d2d8e2;
  --fm-nl-box-line: #3f4450;
  --fm-nl-control-line: #5c6270;
  --fm-nl-track-line: #a9b0bd;
  --fm-nl-divider: #cdd2dc;
  --fm-nl-card-line: #b4bac6;
  position: relative;
  margin: 8px 0 0;
  color: var(--fm-nl-ink);
  font-family:
    var(--e-global-typography-text-font-family, "Open Sans"), "Open Sans",
    Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  scroll-margin-top: 120px;
  scroll-margin-bottom: 170px;
  -webkit-text-size-adjust: 100%;
}

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

.fm-nl [hidden] {
  display: none !important;
}

/* Couche de base d'affordance interactive (R-39). */
.fm-nl a[href],
.fm-nl button:not(:disabled),
.fm-nl label[for],
.fm-nl input[type="checkbox"]:not(:disabled) {
  cursor: pointer;
}

.fm-nl button:disabled,
.fm-nl [aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 1;
}

.fm-nl__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fm-nl__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Carte principale ---------- */

.fm-nl__card {
  background: #ffffff;
  border: 1px solid var(--fm-nl-card-line);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 6px 20px rgba(24, 25, 32, 0.1);
}

.fm-nl__form {
  margin: 0;
}

/* ---------- Titre de la carte (règles complètes : le thème stylise les h3) ---------- */

.fm-nl__intro {
  margin: 0 0 22px;
}

.fm-nl .fm-nl__title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fm-nl-ink);
  font-family: inherit;
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
}

.fm-nl .fm-nl__title::before,
.fm-nl .fm-nl__title::after {
  content: none;
}

.fm-nl .fm-nl__lead {
  margin: 0;
  padding: 0;
  color: var(--fm-nl-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- Barre de progression nette (lisible à toutes les étapes) ---------- */

.fm-nl__stepper {
  margin: 0 0 26px;
  padding: 0;
}

.fm-nl .fm-nl__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-nl .fm-nl__step-item {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.fm-nl .fm-nl__step-btn,
.fm-nl .fm-nl__step-btn:disabled {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 6px 4px 11px;
  border: 0;
  border-bottom: 3px solid var(--fm-nl-track-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fm-nl-step-upcoming);
  opacity: 1 !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.fm-nl .fm-nl__step-btn:not(:disabled):hover {
  color: var(--fm-nl-ink);
  border-bottom-color: var(--fm-nl-ink);
  background: var(--fm-nl-surface);
}

.fm-nl .fm-nl__step-btn:not(:disabled):active {
  background: var(--fm-nl-surface-hover);
}

.fm-nl .fm-nl__step-btn:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.fm-nl__step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--fm-nl-surface-hover);
  color: var(--fm-nl-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.fm-nl__step-name {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Étape active : trait rouge FM 103,3 franc et pastille pleine. */
.fm-nl .fm-nl__step-btn[aria-current="step"] {
  border-bottom-color: var(--fm-nl-red);
  color: var(--fm-nl-ink);
  font-weight: 700;
}

.fm-nl .fm-nl__step-btn[aria-current="step"] .fm-nl__step-num {
  background: var(--fm-nl-red);
  color: #ffffff;
}

/* Étape complétée : pastille sombre à crochet blanc net. */
.fm-nl
  .fm-nl__step-item[data-step-done="true"]
  .fm-nl__step-btn:not([aria-current="step"]) {
  border-bottom-color: var(--fm-nl-ink);
  color: var(--fm-nl-ink);
}

.fm-nl
  .fm-nl__step-item[data-step-done="true"]
  .fm-nl__step-btn:not([aria-current="step"])
  .fm-nl__step-num {
  background-color: var(--fm-nl-ink);
  color: transparent;
  font-size: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1L12.8 4.8' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

/* ---------- Étapes et en-têtes ---------- */

.fm-nl__step {
  margin: 0 0 28px;
}

.fm-nl__step:last-child {
  margin-bottom: 0;
}

.fm-nl:not(.fm-nl--wizard) .fm-nl__step + .fm-nl__step {
  padding-top: 26px;
  border-top: 1px solid var(--fm-nl-divider);
}

.fm-nl--wizard .fm-nl__step {
  margin: 0;
}

.fm-nl__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fm-nl__head {
  margin: 0 0 14px;
}

.fm-nl .fm-nl__legend {
  margin: 0 0 4px;
  padding: 0;
  color: var(--fm-nl-ink);
  font-size: clamp(17.5px, 2vw, 19.5px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  scroll-margin-top: 120px;
  scroll-margin-bottom: 170px;
}

/* Paragraphe de titre non interactif : jamais de cadre noir au focus programmatique. */
.fm-nl .fm-nl__legend:focus {
  outline: none !important;
}

.fm-nl .fm-nl__hint {
  margin: 0;
  padding: 0;
  color: var(--fm-nl-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* Ligne d'outils d'un groupe : compteur à gauche, bouton à droite, juste au-dessus des choix. */
.fm-nl__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 12px;
}

.fm-nl__count {
  min-width: 0;
  color: var(--fm-nl-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.fm-nl .fm-nl__all {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 0 0 auto;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--fm-nl-surface);
  box-shadow: none;
  color: var(--fm-nl-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: background-color 0.15s ease;
}

.fm-nl .fm-nl__all:hover {
  background: var(--fm-nl-surface-hover);
}

.fm-nl .fm-nl__all:active {
  background: var(--fm-nl-surface-active);
  transform: translateY(1px);
}

.fm-nl .fm-nl__all:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
}

/* ---------- Tuiles de choix : aplats sans contour, l'état se lit sur la case ---------- */

.fm-nl__options {
  display: grid;
  gap: 10px;
}

.fm-nl__options--freq {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fm-nl__options--muni,
.fm-nl__options--cats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fm-nl__tile {
  position: relative;
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.fm-nl .fm-nl__check-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  scroll-margin-top: 120px;
  scroll-margin-bottom: 170px;
}

.fm-nl__tile-face {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--fm-nl-surface);
  color: var(--fm-nl-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.fm-nl__tile--freq .fm-nl__tile-face {
  min-height: 66px;
  padding: 14px 16px;
  gap: 12px;
}

/* Case interne à fort contraste (#3F4450 sur #FFFFFF = 9,75:1). */
.fm-nl__box {
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--fm-nl-box-line);
  border-radius: 5px;
  background: #ffffff;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.fm-nl__freq-icon {
  flex: none;
  color: var(--fm-nl-muted);
}

.fm-nl__freq-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fm-nl__tile-text {
  min-width: 0;
  overflow-wrap: break-word;
}

.fm-nl__freq-sub {
  color: var(--fm-nl-muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}

.fm-nl__tile:hover .fm-nl__tile-face {
  background: var(--fm-nl-surface-hover);
}

.fm-nl__tile:hover .fm-nl__box {
  border-color: var(--fm-nl-ink);
}

.fm-nl__tile:active .fm-nl__tile-face {
  transform: translateY(1px);
}

/* État sélectionné : double signal visuel (teinte chaude + case rouge à crochet blanc). */
.fm-nl__check-input:checked + .fm-nl__tile-face {
  background: var(--fm-nl-red-tint);
  color: var(--fm-nl-ink);
  font-weight: 700;
}

.fm-nl__check-input:checked + .fm-nl__tile-face .fm-nl__box {
  border-color: var(--fm-nl-red);
  background-color: var(--fm-nl-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1L12.8 4.8' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

.fm-nl__check-input:checked + .fm-nl__tile-face .fm-nl__freq-icon {
  color: var(--fm-nl-red-dark);
}

.fm-nl__tile:hover .fm-nl__check-input:checked + .fm-nl__tile-face {
  background: var(--fm-nl-red-tint-hover);
}

.fm-nl__check-input:focus-visible + .fm-nl__tile-face {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
}

@media (forced-colors: active) {
  .fm-nl__check-input:checked + .fm-nl__tile-face {
    border: 2px solid Highlight;
  }
}

/* ---------- Étape 4 : case de consentement (même tuile que les choix, texte sur plusieurs lignes) ---------- */

.fm-nl__consent {
  margin: 16px 0 0;
}

.fm-nl__tile--consent .fm-nl__tile-face {
  align-items: flex-start;
  line-height: 1.4;
}

.fm-nl__tile--consent .fm-nl__box {
  margin-top: 1px;
}

/* Le libellé est une phrase : il garde la même graisse une fois coché, pour ne pas changer de ligne. */
.fm-nl__tile--consent .fm-nl__check-input:checked + .fm-nl__tile-face {
  font-weight: 600;
}

.fm-nl__check-input[aria-invalid="true"] + .fm-nl__tile-face {
  box-shadow: inset 0 0 0 2px var(--fm-nl-red-dark);
}

.fm-nl .fm-nl__consent-note {
  margin: 8px 0 0;
  padding: 0;
  color: var(--fm-nl-muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
}

.fm-nl .fm-nl__consent-note a {
  color: var(--fm-nl-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fm-nl .fm-nl__consent-note a:hover {
  color: var(--fm-nl-red-dark);
}

.fm-nl .fm-nl__consent-note a:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Étape 2 : champ de recherche, puis pastilles retirables alignées sur la grille ---------- */

.fm-nl__muni-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fm-nl__combobox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fm-nl__search-icon {
  flex: none;
  color: var(--fm-nl-muted);
}

/* Page servie avant le déplacement de la loupe dans le champ : on ne l'affiche pas seule sur une ligne. */
.fm-nl__combobox > .fm-nl__search-icon {
  display: none;
}

.fm-nl__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fm-nl__tags:empty {
  display: none;
}

.fm-nl .fm-nl__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin: 0;
  padding: 5px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--fm-nl-red-tint);
  box-shadow: none;
  color: var(--fm-nl-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  transition: background-color 0.15s ease;
}

.fm-nl button.fm-nl__tag:hover {
  background: var(--fm-nl-red-tint-hover);
}

.fm-nl button.fm-nl__tag:active {
  transform: translateY(1px);
}

.fm-nl button.fm-nl__tag:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
}

.fm-nl__tag-x {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--fm-nl-red-dark);
}

/* Le seul contour de l'étape : c'est un champ où l'on écrit. */
.fm-nl__combo-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  gap: 6px;
  padding: 0 3px 0 14px;
  border: 1.5px solid var(--fm-nl-control-line);
  border-radius: 9px;
  background: #ffffff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.fm-nl__combo-input-wrap:hover {
  border-color: var(--fm-nl-ink);
}

.fm-nl__combo-input-wrap:focus-within {
  border-color: var(--fm-nl-ink);
  box-shadow: 0 0 0 3px rgba(24, 25, 32, 0.14);
}

/* 16 px minimum : empêche le zoom automatique d'iOS Safari au toucher. */
.fm-nl .fm-nl__muni-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 6px;
  border: 0 !important;
  border-radius: 4px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fm-nl-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  scroll-margin-top: 120px;
  scroll-margin-bottom: 170px;
}

.fm-nl .fm-nl__muni-search::placeholder {
  color: var(--fm-nl-placeholder);
  opacity: 1;
}

/* Focus visible porté par .fm-nl__combo-input-wrap:focus-within (bordure + halo). */
.fm-nl .fm-nl__muni-search:focus {
  outline: none;
}

.fm-nl .fm-nl__combo-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: var(--fm-nl-ink);
  transition: background-color 0.15s ease;
}

.fm-nl .fm-nl__combo-toggle:hover {
  background: var(--fm-nl-surface-hover);
}

.fm-nl .fm-nl__combo-toggle:active {
  background: var(--fm-nl-surface-active);
}

.fm-nl .fm-nl__combo-toggle:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
}

.fm-nl .fm-nl__combo-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.fm-nl__muni-drawer {
  max-height: 360px;
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
}

.fm-nl__empty {
  padding: 20px;
  border-radius: 9px;
  background: var(--fm-nl-surface);
  text-align: center;
}

.fm-nl .fm-nl__empty-text {
  margin: 0 0 12px;
  color: var(--fm-nl-ink);
  font-size: 15px;
  font-weight: 600;
}

.fm-nl .fm-nl__reset-search {
  min-height: 44px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  color: var(--fm-nl-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.fm-nl .fm-nl__reset-search:hover {
  background: var(--fm-nl-surface-hover);
}

.fm-nl .fm-nl__reset-search:active {
  transform: translateY(1px);
}

.fm-nl .fm-nl__reset-search:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
}

/* ---------- Barre de navigation Suivant / Précédent ---------- */

.fm-nl__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.fm-nl__nav-spacer {
  flex: 1 1 auto;
}

.fm-nl .fm-nl__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.fm-nl .fm-nl__btn--prev {
  background: var(--fm-nl-surface);
  color: var(--fm-nl-ink);
}

.fm-nl .fm-nl__btn--prev:hover {
  background: var(--fm-nl-surface-hover);
}

.fm-nl .fm-nl__btn--next {
  min-width: 148px;
  border-color: var(--fm-nl-ink);
  background: var(--fm-nl-ink);
  color: #ffffff;
}

.fm-nl .fm-nl__btn--next:hover {
  border-color: #000000;
  background: #000000;
}

.fm-nl .fm-nl__btn:active {
  transform: translateY(1px);
}

.fm-nl .fm-nl__btn:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
}

.fm-nl__arrow {
  font-size: 16px;
  line-height: 1;
}

/* ---------- Étape 4 : Récapitulatif structuré + Courriel + S'inscrire ---------- */

.fm-nl__recap {
  display: flex;
  flex-direction: column;
  margin: 0 0 22px;
  padding: 4px 18px;
  border-radius: 10px;
  background: var(--fm-nl-surface);
}

.fm-nl__recap-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 11px 0;
}

.fm-nl__recap-row + .fm-nl__recap-row {
  border-top: 1px solid var(--fm-nl-divider);
}

.fm-nl__recap-label {
  flex: 0 0 116px;
  color: var(--fm-nl-muted);
  font-size: 13.5px;
  font-weight: 700;
}

.fm-nl__recap-val {
  flex: 1 1 180px;
  min-width: 0;
  color: var(--fm-nl-ink);
  font-size: 14.5px;
  font-weight: 600;
}

.fm-nl .fm-nl__recap-edit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 0 auto;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  box-shadow: none;
  color: var(--fm-nl-red-dark);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  letter-spacing: 0;
}

.fm-nl .fm-nl__recap-edit:hover {
  background: #ffffff;
  color: var(--fm-nl-ink);
  text-decoration: none;
}

.fm-nl .fm-nl__recap-edit:active {
  transform: translateY(1px);
}

.fm-nl .fm-nl__recap-edit:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
}

.fm-nl__signup {
  margin: 0;
}

.fm-nl__label {
  display: block;
  margin: 0 0 8px;
  color: var(--fm-nl-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.fm-nl .fm-nl__input {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 15px;
  border: 1.5px solid var(--fm-nl-control-line);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: none;
  color: var(--fm-nl-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  scroll-margin-top: 120px;
  scroll-margin-bottom: 170px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.fm-nl .fm-nl__input::placeholder {
  color: var(--fm-nl-placeholder);
  opacity: 1;
}

.fm-nl .fm-nl__input:hover {
  border-color: var(--fm-nl-ink);
}

.fm-nl .fm-nl__input:focus {
  border-color: var(--fm-nl-ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(24, 25, 32, 0.14);
}

.fm-nl .fm-nl__input:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 1px;
}

.fm-nl .fm-nl__input[aria-invalid="true"] {
  border-color: var(--fm-nl-red-dark);
}

.fm-nl__nav--final .fm-nl__submit {
  margin-left: auto;
}

.fm-nl .fm-nl__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 176px;
  height: 50px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 9px;
  background: var(--fm-nl-red);
  box-shadow: none;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color 0.15s ease;
}

.fm-nl .fm-nl__submit:hover {
  background: var(--fm-nl-red-dark);
}

.fm-nl .fm-nl__submit:active {
  background: var(--fm-nl-red-dark);
  transform: translateY(1px);
}

.fm-nl .fm-nl__submit:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
}

.fm-nl .fm-nl__submit[aria-disabled="true"] {
  background: var(--fm-nl-step-upcoming);
  color: #ffffff;
  transform: none;
}

/* ---------- Messages d'erreur et notifications ---------- */

.fm-nl .fm-nl__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--fm-nl-red-dark);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
}

.fm-nl__error::before {
  content: "!";
  content: "!" / "";
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--fm-nl-red-dark);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

.fm-nl__status {
  scroll-margin-top: 120px;
  scroll-margin-bottom: 170px;
}

.fm-nl__status:focus {
  outline: none;
}

.fm-nl__summary,
.fm-nl__notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 0;
  border-left: 5px solid var(--fm-nl-red-dark);
  border-radius: 9px;
  background: var(--fm-nl-red-tint);
}

.fm-nl__notice {
  border-left-color: var(--fm-nl-ink);
  background: var(--fm-nl-surface);
}

.fm-nl .fm-nl__summary-title,
.fm-nl .fm-nl__notice p {
  margin: 0;
  color: var(--fm-nl-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.fm-nl__summary ul {
  margin: 6px 0 0;
  padding: 0 0 0 20px;
}

.fm-nl__summary li {
  margin: 4px 0;
}

.fm-nl__summary a {
  display: inline-block;
  padding: 3px 0;
  color: var(--fm-nl-red-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fm-nl__summary a:hover {
  color: var(--fm-nl-ink);
  text-decoration: none;
}

.fm-nl__summary a:focus-visible {
  outline: 2px solid var(--fm-nl-ink);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Écrans tactiles et 3 paliers responsives (tablette, mobile large, téléphone) ---------- */

@media (pointer: coarse) {
  .fm-nl .fm-nl__all,
  .fm-nl .fm-nl__recap-edit,
  .fm-nl .fm-nl__tag {
    min-height: 44px;
  }

  .fm-nl .fm-nl__tag {
    padding: 6px 12px;
  }

  .fm-nl__summary a {
    padding: 6px 0;
  }
}

/* Palier intermédiaire (tablettes et petits portables) : grille à 2 colonnes aérée. */
@media (max-width: 820px) {
  .fm-nl__card {
    padding: 22px 20px;
  }

  .fm-nl__options--muni,
  .fm-nl__options--cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm-nl .fm-nl__step-btn,
  .fm-nl .fm-nl__step-btn:disabled {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 2px 9px;
    font-size: 12.5px;
    text-align: center;
  }

  .fm-nl .fm-nl__all,
  .fm-nl .fm-nl__recap-edit,
  .fm-nl .fm-nl__tag {
    min-height: 44px;
  }
}

/* Palier téléphone : 1 colonne pleine largeur, barre d'étapes compacte sans césure de mot,
   défilement naturel de la page (sans boîte interne piégeant le doigt). */
@media (max-width: 540px) {
  .fm-nl__card {
    padding: 18px 15px;
    border-radius: 12px;
  }

  .fm-nl__stepper {
    margin-bottom: 20px;
  }

  .fm-nl .fm-nl__steps {
    display: flex;
    align-items: stretch;
    gap: 6px;
  }

  .fm-nl .fm-nl__step-item {
    flex: 0 0 46px;
  }

  .fm-nl .fm-nl__step-item[data-step-active="true"] {
    flex: 1 1 auto;
  }

  .fm-nl .fm-nl__step-btn,
  .fm-nl .fm-nl__step-btn:disabled {
    flex-direction: row;
    justify-content: center;
    min-height: 46px;
    padding: 6px 4px 9px;
    font-size: 13.5px;
  }

  .fm-nl .fm-nl__step-btn[aria-current="step"] {
    justify-content: flex-start;
    padding-left: 6px;
    padding-right: 6px;
  }

  /* Sur petit écran, seul le nom de l'étape active est affiché visuellement (les autres restent lus par les lecteurs d'écran). */
  .fm-nl .fm-nl__step-btn:not([aria-current="step"]) .fm-nl__step-name {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .fm-nl .fm-nl__step-btn[aria-current="step"] .fm-nl__step-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fm-nl__intro {
    margin-bottom: 18px;
  }

  .fm-nl__options--freq,
  .fm-nl__options--muni,
  .fm-nl__options--cats {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .fm-nl__tile-face {
    min-height: 52px;
    padding: 12px 14px;
  }

  .fm-nl__muni-drawer {
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .fm-nl__recap {
    padding: 4px 14px;
  }

  .fm-nl__recap-row {
    align-items: flex-start;
  }

  .fm-nl__recap-label {
    flex-basis: 100%;
  }

  .fm-nl .fm-nl__recap-edit {
    background: #ffffff;
    padding: 6px 12px;
    text-decoration: none;
  }

  .fm-nl .fm-nl__input {
    max-width: none;
  }

  .fm-nl__nav {
    gap: 10px;
    margin-top: 22px;
  }

  .fm-nl .fm-nl__btn,
  .fm-nl .fm-nl__submit {
    min-height: 50px;
    height: 50px;
  }

  .fm-nl__nav--final .fm-nl__submit {
    margin-left: 0;
    flex: 2 1 0;
    min-width: 0;
    padding: 0 18px;
  }

  .fm-nl__nav .fm-nl__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 14px;
  }

  .fm-nl__nav-spacer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-nl .fm-nl__step-btn,
  .fm-nl .fm-nl__all,
  .fm-nl__tile-face,
  .fm-nl__box,
  .fm-nl__combo-input-wrap,
  .fm-nl .fm-nl__tag,
  .fm-nl .fm-nl__combo-toggle,
  .fm-nl .fm-nl__btn,
  .fm-nl .fm-nl__input,
  .fm-nl .fm-nl__submit {
    transition: none;
  }

  .fm-nl .fm-nl__all:active,
  .fm-nl__tile:active .fm-nl__tile-face,
  .fm-nl button.fm-nl__tag:active,
  .fm-nl .fm-nl__reset-search:active,
  .fm-nl .fm-nl__recap-edit:active,
  .fm-nl .fm-nl__btn:active,
  .fm-nl .fm-nl__submit:active {
    transform: none;
  }
}
