/* ==========================================================================
   Fonts — Marianne
   Source: gip-inclusion/itou-theme · dist/fonts/marianne (woff2).
   Only the weights the page actually uses are loaded.
   ========================================================================== */

@font-face {
  font-family: "Marianne";
  src: url("../fonts/Marianne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marianne";
  src: url("../fonts/Marianne-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Marianne";
  src: url("../fonts/Marianne-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Tokens — Plateforme de l'inclusion design system
   Source: gip-inclusion/itou-theme · src/stylesheets/base/_variables.scss
   (subset used by the page; pull more from the source as needed).
   ========================================================================== */

:root {
  /* Greys from the brand scale */
  --nuance-05: #999baf;
  --nuance-08: #e6e6eb;
  --nuance-10: #f8f8f8;

  /* Brand */
  --primary: #000638; /* ink — headings + body text */
  --secondary: #333860; /* secondary text */
  --tertiary: #000091; /* Marianne blue — links, focus, accent */

  /* Buttons */
  --button: #000091;
  --button-lightest: #edf6ff;

  /* Semantic */
  --info: #0063cb;
  --info-lightest: #f6f8ff;
  --important: #6c38d9;
  --important-lightest: #f4f2ff;

  /* Per-service signature colours */
  --emploi: #006adc;
  --emploi-lightest: #f2f8fd;
  --communaute: #18a47d;
  --communaute-lightest: #f3faf8;
  --pilotage: #ffad1d;
  --pilotage-lightest: #fff8ed;
  --accent-02: #8adcff; /* sky */

  /* Shorthands */
  --fg-muted: #727492;
  --border: var(--nuance-08);

  /* Type */
  --font-sans: "Marianne", Arial, sans-serif;

  /* Misc */
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --transition: all 0.3s ease-in-out;
  --focus-ring: 0 0 0 0.2rem rgba(0, 0, 145, 0.3);
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

p {
  margin: 0;
}

::selection {
  background: var(--tertiary);
  color: #fff;
}

:where(a, button):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 0.25rem;
}

/* ==========================================================================
   Module: icône (SVG sprite inlined in the page, see templates/accueil/icones.svg)
   ========================================================================== */

.icones-sprite {
  display: none;
}

.icone {
  width: 1.125em;
  height: 1.125em;
  fill: currentColor;
  flex: none;
  vertical-align: -0.2em;
}

/* ==========================================================================
   Module: section (shared section layout)
   ========================================================================== */

.section {
  padding: 3rem 1rem;
  background: #fff;
}

.section--grisee {
  background: var(--nuance-10);
}

.section--bleu {
  background: var(--button-lightest);
}

.section--lisere {
  border-top: 1px solid var(--border);
}

.section__contenu {
  max-width: 80rem;
  margin: 0 auto;
}

.section__surtitre {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.section__titre {
  margin: 0 0 2rem;
  font-size: 1.75rem;
}

/* Tighten the title when a lead paragraph follows it. */
.section__titre:has(+ .section__intro) {
  margin-bottom: 0.75rem;
}

.section__intro:has(+ .exemples) {
  margin-bottom: 1rem;
}

.section__intro {
  max-width: 46rem;
  margin: 0 0 2rem;
  line-height: 1.6;
  color: var(--secondary);
}

@media (min-width: 48rem) {
  .section {
    padding: 4.5rem 2rem;
  }

  .section__titre {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Module: bouton
   ========================================================================== */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  background: var(--button);
  color: #fff;
  border: 1px solid var(--button);
  border-radius: var(--radius-lg);
  font: 500 0.9375rem var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.bouton:hover {
  background: #00006e;
  border-color: #00006e;
}

.bouton--inverse {
  background: #fff;
  color: var(--button);
  border-color: #fff;
  min-height: 48px;
  padding: 0.625rem 1.625rem;
  font-size: 1rem;
}

/* ==========================================================================
   Module: profils ("Pour qui ?" tabs)
   Sans JavaScript, les quatre profils sont affichés à la suite ; le JS
   (js/profils.js) révèle la barre d'onglets et n'affiche qu'un panneau.
   ========================================================================== */

.profils__onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}

.profils__onglet {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 0.375rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 0.9375rem var(--font-sans);
  color: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}

.profils__onglet.est-actif {
  border-bottom-color: var(--tertiary);
  color: var(--tertiary);
  font-weight: 700;
}

/* Spacing only matters when the panels are stacked (no JS). With the tabs
   active a single panel shows, so it must sit flush like the first one. */
.profils__onglets[hidden] ~ .profil + .profil {
  margin-top: 3rem;
}

.profil__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.profil__titre {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.profil__chapo {
  margin: 0 0 1.75rem;
  line-height: 1.7;
  color: var(--secondary);
}

.profil__etapes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.etape {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.etape__numero {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--button-lightest);
  color: var(--tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 0.875rem var(--font-sans);
  flex: none;
}

.etape__titre {
  display: block;
  font-weight: 700;
  color: var(--primary);
}

.etape__detail {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--secondary);
}

@media (min-width: 64rem) {
  .profil__grille {
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
  }
}

/* ==========================================================================
   Module: fonctionnalités (cards)
   ========================================================================== */

.fonctionnalites__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.carte {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.carte__pictogramme {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.carte__pictogramme--emploi {
  background: var(--emploi-lightest);
  color: var(--emploi);
}

.carte__pictogramme--orientation {
  background: var(--button-lightest);
  color: var(--tertiary);
}

.carte__pictogramme--solutions {
  background: var(--info-lightest);
  color: var(--info);
}

.carte__pictogramme--pilotage {
  background: var(--pilotage-lightest);
  color: #b34000;
}

.carte__pictogramme--communaute {
  background: var(--communaute-lightest);
  color: var(--communaute);
}

.carte__pictogramme--parcours {
  background: var(--important-lightest);
  color: var(--important);
}

.carte__titre {
  font-size: 1.125rem;
}

.carte__texte {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--secondary);
}

@media (min-width: 40rem) {
  .fonctionnalites__grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .fonctionnalites__grille {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Module: espace ("Un seul espace" + service list)
   ========================================================================== */

.espace__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.espace__texte {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--secondary);
}

.espace__garantie {
  margin: 0.5rem 0 0;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.espace__garantie .icone {
  color: var(--tertiary);
}

.services {
  background: var(--nuance-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.5rem 1.5rem;
}

.service {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--nuance-08);
}

.service:last-of-type {
  border-bottom: 0;
}

.service__puce {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex: none;
}

.service__puce--emploi { background: var(--emploi); }
.service__puce--info { background: var(--info); }
.service__puce--pilotage { background: var(--pilotage); }
.service__puce--communaute { background: var(--communaute); }
.service__puce--important { background: var(--important); }
.service__puce--ciel { background: var(--accent-02); }

.service__nom {
  font-weight: 700;
  font-size: 0.9375rem;
  flex: 1;
}

.service .icone {
  color: var(--nuance-05);
}

.service__description {
  font-size: 0.9375rem;
  color: var(--secondary);
  flex: 1;
  text-align: right;
}

.services__note {
  margin: 0;
  padding: 0.75rem 0 1rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--nuance-08);
}

@media (min-width: 64rem) {
  .espace__grille {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
  }
}

/* ==========================================================================
   Module: témoignages
   ========================================================================== */

.temoignages__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.temoignage {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.temoignage > .icone {
  font-size: 1.75rem;
  color: var(--tertiary);
}

.temoignage__citation {
  margin: 0;
  line-height: 1.7;
}

.temoignage__auteur {
  margin-top: auto;
}

.temoignage__nom {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
}

.temoignage__role {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

@media (min-width: 64rem) {
  .temoignages__grille {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Module: appel (final CTA on ink background)
   ========================================================================== */

.appel {
  padding: 3rem 1rem;
  background: var(--primary);
  text-align: center;
}

.appel__titre {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: #fff;
}

.appel__texte {
  margin: 0 0 2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 48rem) {
  .appel {
    padding: 4rem 2rem;
  }

  .appel__titre {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Module: hero (ink banner + tabbed search)
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  z-index: 10; /* keep the search dropdowns above the sections below */
  padding: 2.5rem 1rem 3rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(1100px 520px at 12% -15%, rgba(0, 0, 145, 0.65), transparent 60%),
    radial-gradient(900px 480px at 108% 6%, rgba(138, 220, 255, 0.16), transparent 55%),
    radial-gradient(760px 620px at 88% 120%, rgba(108, 56, 217, 0.42), transparent 62%),
    linear-gradient(158deg, #060636 0%, #000638 52%, #02022b 100%);
}

/* Faint dot grid overlay for a digital, technical feel; fades out from the top. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
}

.hero__contenu {
  max-width: 50rem;
  margin: 0 auto;
}

.hero__visuel {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin: 0 auto 1.75rem;
}

.hero__titre {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  color: #fff;
}

.hero__sous-titre {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero__note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Tabbed search --------------------------------------------------------- */

.recherche {
  max-width: 46rem;
  margin: 0 auto;
}

/* Standalone pill tabs sitting directly on the hero background (not a track). */
.recherche__onglets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.recherche__onglet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: 500 0.6875rem var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Short labels + no icons on small screens; full labels + icons from tablet up. */
.recherche__onglet .icone,
.onglet__long {
  display: none;
}

.recherche__onglet:not(.est-actif):hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.recherche__onglet.est-actif {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

@media (min-width: 40rem) {
  .recherche__onglet {
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
  }

  .recherche__onglet .icone,
  .onglet__long {
    display: inline-block;
  }

  .onglet__court {
    display: none;
  }
}

.recherche__barre {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25);
}

/* Inactive tab forms stay hidden despite the display above. */
.recherche__barre[hidden] {
  display: none;
}

.champ--ville {
  position: relative;
}

.champ {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
}

.champ .icone {
  color: var(--tertiary);
  flex: none;
}

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

.champ input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--primary);
}

.champ input::placeholder {
  color: var(--fg-muted);
}

.champ__select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
}

/* Thematic dropdown enhanced to match the city suggestions (js/select-theme.js).
   The native <select> stays as the no-JS fallback and is hidden once enhanced. */
.champ--theme {
  position: relative;
}

.select-theme--enrichi .champ__select {
  display: none;
}

.select-theme__declencheur {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
}

.select-theme__valeur {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-theme__valeur--vide {
  color: var(--fg-muted);
}

.select-theme__chevron {
  flex: none;
  color: var(--fg-muted);
}

.champ__separateur {
  display: none;
  width: 1px;
  height: 1.5rem;
  background: var(--border);
}

.recherche__bouton {
  justify-content: center;
  border-radius: 0.75rem;
}

/* City suggestions dropdown (js/villes.js) */
.suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 0.75rem 2rem rgba(0, 6, 56, 0.18);
  max-height: 15rem;
  overflow-y: auto;
}

/* A variant sets display, which would otherwise defeat the [hidden] attribute. */
.suggestions[hidden] {
  display: none;
}

.suggestions__item {
  padding: 0.5rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  color: var(--primary);
  cursor: pointer;
}

.suggestions__item:hover,
.suggestions__item[aria-selected="true"] {
  background: var(--button-lightest);
  color: var(--tertiary);
}

.suggestions__item:active {
  background: var(--nuance-08);
}

/* Thematic dropdown (js/select-theme.js): wide 2-column grid showing every
   theme at once (no scroll), each with an icon. */
.suggestions--theme {
  top: calc(100% + 0.875rem);
  left: 0;
  right: auto;
  width: 34rem;
  max-width: min(92vw, 34rem);
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.125rem 0.25rem;
}

.suggestions--theme .suggestions__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestions--theme .suggestions__item .icone {
  flex: none;
  color: var(--tertiary);
}

@media (min-width: 30rem) {
  .suggestions--theme {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 40rem) {
  .recherche__barre {
    flex-direction: row;
    align-items: stretch;
    border-radius: 999px;
    padding: 0.375rem 0.375rem 0.375rem 0.5rem;
  }

  .champ__separateur {
    display: block;
    align-self: center;
  }

  .recherche__bouton {
    flex: none;
    border-radius: 999px;
  }
}

/* ==========================================================================
   Module: stats (key figures)
   ========================================================================== */

.stats {
  padding: 2.5rem 1rem;
  background: #fff;
}

.stats .section__contenu {
  text-align: center;
}

.stats__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat__illu {
  width: auto;
  height: 3.25rem;
  margin-bottom: 0.5rem;
}

.stat__nombre {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--tertiary);
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--secondary);
}

@media (min-width: 48rem) {
  .stats {
    padding: 3.5rem 2rem;
  }

  .stat__illu {
    height: 4rem;
  }

  .stat__label {
    font-size: 0.9375rem;
  }
}

/* ==========================================================================
   Module: bloc-recherche (media cards + pill links, two arrangements)
   ========================================================================== */

.bloc-recherche__grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 64rem) {
  .bloc-recherche__grille {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
    gap: 3rem;
  }

  .bloc-recherche--inverse .bloc-recherche__grille {
    grid-template-columns: 1fr 1.5fr;
  }
}

.cartes-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 30rem) {
  .cartes-media {
    grid-template-columns: repeat(2, 1fr);
  }
}

.carte-media {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.carte-media:hover {
  border-color: var(--nuance-05);
  box-shadow: 0 0.75rem 1.75rem rgba(0, 6, 56, 0.1);
}

.carte-media:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.carte-media__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--nuance-08);
}

.carte-media__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Zoom on hover, clipped by the media box so the card never resizes. */
  transition: transform 0.45s ease;
}

.carte-media:hover .carte-media__media img {
  transform: scale(1.06);
}

.carte-media__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.carte-media__fleche {
  flex: none;
  font-size: 1.25rem;
  color: var(--tertiary);
  transition: transform 0.3s ease;
}

.carte-media:hover .carte-media__fleche {
  transform: translateX(3px);
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font: 700 0.6875rem var(--font-sans);
  color: #fff;
}

.badge--emploi {
  background: var(--emploi);
}

.badge--service {
  background: var(--communaute);
}

.carte-media__corps {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.25rem 1.25rem;
}

.carte-media__pastille {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.carte-media__pastille--emploi {
  background: var(--emploi-lightest);
  color: var(--emploi);
}

.carte-media__pastille--service {
  background: var(--communaute-lightest);
  color: var(--communaute);
}

.carte-media__titre {
  font-size: 1rem;
}

.carte-media__stat {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--emploi);
}

.carte-media__stat--service {
  color: var(--communaute);
}

.carte-media__texte {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--secondary);
}

/* Pill links ------------------------------------------------------------ */

.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-content: flex-start;
}

.pastille-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font: 500 0.875rem var(--font-sans);
  text-decoration: none;
  transition: var(--transition);
}

.pastille-lien .icone {
  color: var(--tertiary);
}

.pastille-lien:hover {
  border-color: var(--tertiary);
  background: var(--button-lightest);
}

.lien-fleche {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  /* Extra space above, and a left inset matching the pastille padding so the
     link lines up with the icons of the pills above it. */
  margin-top: 1rem;
  padding-left: 0.875rem;
  color: var(--tertiary);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}

/* Accompagnateurs section: a plain informational list of types (not buttons)
   plus a single search CTA. */
/* Illustrative structure types: a plain "Par exemple :" caption above a
   borderless icon+label list (not buttons). */
.exemples {
  margin: 0 0 1.75rem;
}

.exemples__legende {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.types-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.type-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.9375rem;
}

.type-tag .icone {
  color: var(--tertiary);
}

.recherche-cta {
  min-height: 48px;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
}

/* City text field, reused inside the "which city?" modal (js/villes.js). */
.ville-filtre__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.8125rem 1rem;
  background: #fff;
  border: 1.5px solid var(--nuance-08);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ville-filtre__box:hover {
  border-color: var(--nuance-05);
}

.ville-filtre__box:focus-within {
  border-color: var(--tertiary);
  box-shadow: var(--focus-ring);
}

.ville-filtre__box .icone {
  flex: none;
  font-size: 1.25rem;
  color: var(--tertiary);
}

.ville-filtre__saisie {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--primary);
}

.ville-filtre__saisie::placeholder {
  color: var(--fg-muted);
}

/* "Which city?" modal opened from a section pill/card (js/villes.js). */
.modale-ville {
  width: calc(100% - 2rem);
  max-width: 28rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  color: var(--primary);
  overflow: visible;
  box-shadow: 0 1.5rem 3rem rgba(0, 6, 56, 0.28);
}

/* The page is embedded in an iframe as tall as its content: its viewport is
   the whole document, so the browser's own centring puts the dialog in the
   middle of the page rather than in front of the visitor. When the host
   publishes the visible band (see resize-reporter.js), we centre on it
   instead. A host that publishes nothing never matches this selector. */
[data-viewport] .modale-ville {
  position: absolute;
  top: calc(var(--viewport-top) + var(--viewport-height) / 2);
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.modale-ville::backdrop {
  background: rgba(0, 6, 56, 0.55);
}

.modale-ville__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
}

.modale-ville__fermer {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--nuance-10);
  color: var(--secondary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.modale-ville__fermer:hover {
  background: var(--nuance-08);
}

.modale-ville__titre {
  margin: 0;
  padding-right: 2rem;
  font-size: 1.25rem;
}

.modale-ville__contexte {
  margin: -0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.modale-ville__contexte:empty {
  display: none;
}

.modale-ville__valider {
  justify-content: center;
}

/* ==========================================================================
   Module: témoignages — layout with side illustration
   ========================================================================== */

.temoignages__conteneur {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.temoignages__illu {
  width: 100%;
  max-width: 20rem;
  height: auto;
  justify-self: center;
}

@media (min-width: 40rem) {
  .temoignages__grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .temoignages__grille {
    grid-template-columns: repeat(2, 1fr);
  }

  .temoignages__conteneur {
    grid-template-columns: 1.7fr 1fr;
  }
}

/* ==========================================================================
   Module: parcours (horizontal numbered steps)
   ========================================================================== */


/* Mobile-first: steps stack vertically, then form a row on wider screens. */
.parcours-frise {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.parcours-frise__etape {
  position: relative;
  padding-left: 3.25rem;
}

.parcours-frise__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tertiary);
  color: #fff;
  font: 700 1rem var(--font-sans);
}

.parcours-frise__etape:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: -1.5rem;
  width: 2px;
  height: 1.5rem;
  background: var(--border);
}

.parcours-frise__pic {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--tertiary);
}

.parcours-frise__titre {
  margin: 0 0 0.375rem;
  font-size: 1rem;
}

.parcours-frise__texte {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--secondary);
}

@media (min-width: 48rem) {
  .parcours-frise {
    flex-direction: row;
    gap: 1rem;
  }

  .parcours-frise__etape {
    flex: 1;
    padding: 3.25rem 0 0;
    text-align: center;
  }

  .parcours-frise__num {
    left: 50%;
    transform: translateX(-50%);
  }

  .parcours-frise__etape:not(:first-child)::before {
    top: 1.125rem;
    left: auto;
    right: 50%;
    width: 100%;
    height: 2px;
  }

  .parcours-frise__pic {
    margin: 0 auto 0.5rem;
  }
}
