/* ==========================================================================
   expo.sp — mini-site
   Mêmes tokens que le mini-site eval.sp (couleurs, typo, espacements)
   ========================================================================== */

:root {
  /* Couleurs */
  --primary-color-4: #0075fc;
  --primary-color-1: #bfdcfe;
  --primary-tint: #e7f1ff;
  --text-default: #212529;
  --text-muted: #495057;
  --text-dimmed: #868e96;
  --text-on-emphasis: #ffffff;
  --border-default: #dee2e6;
  --gray-9: #212529;

  --surface-dark: #161c22;
  --surface-darkest: #0a0c0f;
  --surface-blue-deep: #0c4485;

  /* Espacements */
  --spacing-xs: 10px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;
  --spacing-section: 40px;

  /* Largeur maximale du contenu des sections */
  --content-max: 1600px;

  /* Gouttière latérale fluide : 24px sur petit écran → 140px à 1512px. */
  --gutter: clamp(24px, 10.34vw - 16.3px, 140px);

  /* Marge latérale effective : la gouttière, ou davantage au-delà de
     --content-max, ce qui plafonne le contenu sans conteneur supplémentaire. */
  --side-pad: max(var(--gutter), (100% - var(--content-max)) / 2);

  /* Espacement vertical des sections de contenu */
  --section-pad: 80px;

  /* Typographie */
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* Retrait interne des colonnes du formulaire */
  --form-pad: clamp(40px, 10.5vw - 18.8px, 140px);

  /* Échelle de la composition de captures (ajustée en media queries) */
  --shots-scale: .9;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, ol, ul, dl, dd {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

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

/* Heading/h5 : Montserrat SemiBold 16 / 20 */
.cta {
  display: inline-flex;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: 8px;
  background: var(--primary-color-4);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cta:hover,
.cta:focus-visible {
  background: #0062d6;
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Bouton secondaire, sur fond sombre */
.cta--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
}

/* ==========================================================================
   Barre fixe — logo + CTA, affichée quand le CTA du héro n'est plus visible
   ========================================================================== */

.topbar {
  position: fixed;
  top: var(--spacing-lg);
  left: var(--side-pad);
  right: var(--side-pad);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: 8px 8px 8px var(--spacing-xl);
  border-radius: 99px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(10, 12, 15, .1), 0 0 0 1px rgba(10, 12, 15, .04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

.topbar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

.topbar__logo {
  width: 132px;
  height: 32px;
}

.cta--topbar {
  width: auto;
  padding: 12px var(--spacing-xl);
  border-radius: 99px;
}

.cta--topbar:focus-visible {
  outline-color: var(--primary-color-4);
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .topbar.is-visible { transform: none; }
}

/* ==========================================================================
   Héro — texte centré, captures en dessous rognées par le bas de la bande.
   Fond sombre, halo bleu qui monte derrière les captures, trame discrète.
   ========================================================================== */

.first-part {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  padding: 112px var(--side-pad) 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(0, 117, 252, .55) 0%, rgba(12, 68, 133, .25) 45%, transparent 75%),
    linear-gradient(180deg, var(--surface-darkest) 0%, var(--surface-dark) 100%);
}

/* Trame de points, estompée vers les bords */
.first-part::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 20%, transparent 75%);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  text-align: center;
  word-break: break-word;
}

.hero__logo {
  width: 220px;
  height: 48px;
  margin-bottom: var(--spacing-xxl);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--spacing-xl);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  background: rgba(255, 255, 255, .04);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: .08em;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color-4);
  box-shadow: 0 0 0 4px rgba(0, 117, 252, .25);
}

.hero__baseline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 72px;
  line-height: 80px;
  letter-spacing: -.01em;
  color: #ffffff;
}

.hero__accent {
  color: var(--primary-color-4);
}

.hero__desc {
  max-width: 680px;
  margin-top: var(--spacing-xl);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 30px;
  color: rgba(255, 255, 255, .72);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-section);
}

/* --- Composition de captures ---------------------------------------------
   Scène de 900 × 560px à l'échelle 1, réduite par transform. Le conteneur
   reprend la taille réduite, moins une bande basse rognée par la section
   (effet « écrans qui sortent du bas »). */

.shots {
  position: relative;
  flex: 0 0 auto;
  width: calc(900px * var(--shots-scale));
  height: calc(480px * var(--shots-scale));
}

.shots__stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  height: 560px;
  transform: scale(var(--shots-scale));
  transform-origin: top left;
}

/* Chaque capture est une « fenêtre » qui recadre la copie d'écran complète. */
.shot {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(10, 12, 15, .45), 0 4px 12px rgba(10, 12, 15, .25);
  /* Décalage de parallaxe, piloté en JS au scroll */
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}

.shot img {
  display: block;
  max-width: none;
}

/* Étape 2/4 « Exposition » — en retrait à gauche, cadre 399 × 484 */
.shot--exposition {
  left: 40px;
  top: 88px;
  width: 399px;
  height: 484px;
  z-index: 1;
}

.shot--exposition img {
  width: 399px;
  height: 847px;
  margin-top: -126px;
}

/* « Détails incendie » — au centre, cadre 399 × 560 */
.shot--details {
  left: 360px;
  top: 0;
  width: 399px;
  height: 560px;
  z-index: 2;
}

.shot--details img {
  width: 399px;
  height: 847px;
  margin-top: -130px;
}

/* Carte « Télécharger ma FIE annuelle » (export 2x, 339 × 104), flottante
   à droite, au premier plan */
.shot--fie {
  left: 561px;
  top: 250px;
  width: 339px;
  height: 104px;
  z-index: 3;
}

.shot--fie img {
  width: 339px;
  height: 104px;
}

/* ==========================================================================
   En-têtes de section
   ========================================================================== */

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  max-width: 720px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: #000000;
}

.section-title--light {
  color: #ffffff;
}

.section-lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--text-muted);
}

.section-lead--light {
  color: var(--text-dimmed);
}

/* ==========================================================================
   Recensement — deux modes côte à côte, chacun avec son flux
   ========================================================================== */

.recensement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: var(--section-pad) var(--side-pad);
  background: var(--surface-dark);
  word-break: break-word;
}

.section-head--center {
  align-items: center;
  max-width: 920px;
  text-align: center;
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-xl);
  width: 100%;
}

.mode {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  padding: var(--spacing-xxl);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  container-type: inline-size;  /* le flux s'adapte à la largeur de la carte */
}

.mode--auto {
  border-color: rgba(0, 117, 252, .35);
  background: rgba(0, 117, 252, .14);
}

.mode__badge {
  margin-bottom: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mode--auto .mode__badge {
  background: var(--primary-color-4);
}

.mode__titre {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  color: #ffffff;
}

.mode__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-dimmed);
}

/* --- Flux : trois nœuds reliés par des flèches -------------------------- */

.flux {
  display: flex;
  align-items: stretch;
  gap: 28px;                  /* place pour la flèche entre deux nœuds */
  width: 100%;
  /* Poussé en bas de la carte : les flux des deux cartes restent alignés
     même si le titre ou le texte de l'une passe sur plus de lignes. */
  margin-top: auto;
  padding-top: var(--spacing-xl);
}

.flux__noeud {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(10, 12, 15, .45);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  word-break: normal;
  overflow-wrap: normal;
}

.flux__noeud svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--primary-color-4);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Flèche vers le nœud suivant */
.flux__noeud:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -19px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--text-dimmed);
  border-right: 2px solid var(--text-dimmed);
  transform: translateY(-50%) rotate(45deg);
}

/* Le nœud d'arrivée — la fiche — est mis en avant */
.flux__noeud--fin {
  border-color: var(--primary-color-4);
  background: var(--primary-color-4);
}

.flux__noeud--fin svg {
  stroke: #ffffff;
}

/* Carte trop étroite pour trois nœuds côte à côte : flux vertical,
   flèches vers le bas. */
@container (max-width: 540px) {
  .flux { flex-direction: column; gap: 22px; }

  .flux__noeud { flex-direction: row; align-items: center; gap: 12px; }

  .flux__noeud:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* ==========================================================================
   Points forts — grille « bento »
   ========================================================================== */

.points-forts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  padding: var(--section-pad) var(--side-pad);
  background: #ffffff;
  word-break: break-word;
}

/* 3 colonnes : [large, sur 2 lignes][simple / simple empilés]
   puis [simple][large] */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-xl);
  width: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  padding: var(--spacing-xxl);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: #ffffff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  border-color: var(--primary-color-1);
  box-shadow: 0 8px 24px rgba(0, 117, 252, .08);
}

.card--wide {
  grid-column: span 2;
}

.card--agents {
  grid-row: span 2;
}

/* Sur deux lignes de haut : les étiquettes descendent en bas de la carte */
.card--agents .tags {
  margin-top: auto;
  padding-top: var(--spacing-lg);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-xs);
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-color-4);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__titre {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--text-default);
}

.card__desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--text-muted);
}

/* --- Étiquettes agents / contextes / risques ---------------------------- */

.tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--spacing-lg);
}

.tags__groupe {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-lg);
}

.tags dt {
  flex: 0 0 80px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dimmed);
}

.tags dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--primary-tint);
  color: var(--primary-color-4);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.tag--muted {
  background: #f1f3f5;
  color: var(--text-dimmed);
}

/* --- Carte fiche individuelle : texte + visuel -------------------------- */

.card--fie {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-xxl);
}

.card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  flex: 1 1 0;
  min-width: 0;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text-default);
}

/* Coche bleue dessinée en CSS */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color-4);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 6px;
  height: 4px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.card__visuel {
  flex: 0 1 339px;
  min-width: 0;
  padding: var(--spacing-xl);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-tint), #f8fbff);
}

.card__visuel img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(12, 68, 133, .15);
}

/* ==========================================================================
   Bouton d'envoi : attente puis confirmation
   ========================================================================== */

.cta--submit {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-xs);
}

.cta--submit[disabled] {
  cursor: default;
}

.cta__spinner,
.cta__check {
  display: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.cta--submit.is-sending .cta__spinner { display: block; }
.cta--submit.is-sent .cta__check { display: block; }

.cta__spinner {
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: cta-spin .6s linear infinite;
}

.cta__check {
  color: #ffffff;
}

@keyframes cta-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cta__spinner { animation-duration: 1.6s; }
}

/* ==========================================================================
   Formulaire — « Demander une démo »
   ========================================================================== */

.form {
  background: var(--primary-color-1);
}

.form__inner {
  display: flex;
  align-items: stretch;
}

.form__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 40.74%;
  padding: var(--spacing-xs) var(--form-pad);
  background: var(--primary-color-4);
  color: var(--text-on-emphasis);
}

.form__intro-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.form__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
}

.form__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}

.form__fields {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  padding: var(--spacing-section) var(--form-pad);
}

.form__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 736px;
}

.form__row {
  display: flex;
  gap: var(--spacing-xs);
  width: 100%;
}

.form__row .field {
  flex: 1 1 0;
  min-width: 0;
}

.field {
  width: 100%;
}

/* Champ : 56px de haut. Bordure transparente de 1.5px compensée sur le
   padding : le texte ne bouge pas quand StaticForms pose sa bordure. */
.field__control {
  display: block;
  width: 100%;
  padding: 14.5px 22.5px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}

.field__control::placeholder {
  color: var(--text-dimmed);
  opacity: 1;
}

.field__control:focus-visible {
  outline: 2px solid var(--primary-color-4);
  outline-offset: 2px;
}

.field__control--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 58.5px;
  background-image: url("../img/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 22.5px center;
  background-size: 24px 24px;
}

.field__control--select:invalid {
  color: var(--text-dimmed);
}

.field__control--select option {
  color: var(--text-default);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  gap: var(--spacing-section);
  padding: var(--spacing-xxl) var(--side-pad);
  background: var(--gray-9);
  color: var(--text-dimmed);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}

.footer__apps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-lg);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: #ffffff;
}

.footer__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   Page « Mentions légales »
   ========================================================================== */

.legal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xxl);
  padding: 64px var(--side-pad) 48px;
  background-image: linear-gradient(180deg, var(--surface-darkest) 0%, var(--surface-dark) 100%);
  color: var(--text-on-emphasis);
}

.legal-header__home {
  display: inline-block;
  border-radius: 4px;
}

.legal-header__home:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.legal-header__logo {
  width: 141.5px;
  height: auto;
}

.legal-header__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
}

.legal-header__date {
  margin-top: 8px;
  color: var(--text-dimmed);
}

.legal {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-section);
  max-width: calc(800px + 2 * var(--side-pad));
  padding: 56px var(--side-pad) 80px;
}

.legal__section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.legal__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
}

.legal__back {
  align-self: flex-start;
  color: var(--primary-color-4);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__link {
  color: var(--primary-color-4);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__back:focus-visible,
.legal__link:focus-visible {
  outline: 2px solid var(--primary-color-4);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .legal-header { padding: 40px var(--side-pad) 32px; }
  .legal-header__title { font-size: 28px; line-height: 36px; }
  .legal { padding: 40px var(--side-pad) 56px; }
}

/* ==========================================================================
   Adaptations écran
   ========================================================================== */

@media (max-width: 1200px) {
  :root { --shots-scale: .9; }

  .hero__baseline { font-size: 60px; line-height: 68px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* En 2 colonnes : les cartes larges prennent toute la ligne ; web app et
     circuits de validation se partagent la suivante, la carte santé seule
     reprend toute la largeur pour ne pas laisser de trou. */
  .card--wide,
  .card--sante { grid-column: 1 / -1; }

  .card--agents { grid-row: auto; }
}

@media (max-width: 820px) {
  :root {
    --shots-scale: .72;
    --section-pad: 56px;
  }

  .first-part { padding-top: 80px; gap: 56px; }

  .hero__baseline { font-size: 48px; line-height: 56px; }
  .hero__desc { font-size: 18px; line-height: 28px; }

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

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

  .card--fie {
    flex-direction: column;
    align-items: stretch;
  }

  .card__visuel { flex: 0 0 auto; }

  .form__inner { flex-direction: column; }

  .form__intro {
    flex: 0 0 auto;
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
  }

  .form__intro,
  .form__fields { align-items: flex-start; }

  .form__title { font-size: 32px; line-height: 40px; }

  .footer {
    flex-direction: column;
    gap: var(--spacing-xxl);
  }
}

@media (max-width: 560px) {
  :root {
    --form-pad: 16px;
    --section-pad: 40px;
  }

  :root { --shots-scale: .42; }

  .first-part { padding-top: 56px; gap: 40px; }

  .hero__logo { width: 183px; height: 40px; margin-bottom: var(--spacing-xl); }

  .hero__baseline { font-size: 38px; line-height: 44px; }
  .hero__desc { font-size: 16px; line-height: 24px; }

  .mode { padding: var(--spacing-xl); }

  .hero__actions { width: 100%; flex-direction: column; }

  .cta { width: 100%; }

  .section-title { font-size: 24px; line-height: 32px; }
  .section-lead { font-size: 16px; line-height: 24px; }

  .recensement,
  .points-forts { gap: var(--spacing-xxl); }

  .card { padding: var(--spacing-xl); }

  .tags__groupe {
    flex-direction: column;
    gap: 8px;
  }

  .tags dt { flex: 0 0 auto; }

  .topbar {
    top: var(--spacing-xs);
    left: var(--spacing-xs);
    right: var(--spacing-xs);
    padding-left: var(--spacing-lg);
  }

  .topbar__logo { width: 99px; height: 24px; }

  .cta--topbar { width: auto; padding: 10px var(--spacing-lg); font-size: 14px; }

  .form__title { font-size: 26px; line-height: 34px; }

  .form__row { flex-direction: column; gap: var(--spacing-lg); }
}
