/* Blocs repris de l'accueil de l'application (gabarits/blocs_appli.html). Fichier produit par
   preparer_blocs_appli.py à partir de apps/web/src/styles/app.css : ne pas le modifier à la main. */

/* jetons de l'application, limités à ces blocs */
.appli {
  --paper: #f5f7fb;
  --sheet: #ffffff;
  --ink: #0e1a33;
  --muted: #56627a;
  --line: #e1e6ef;
  --soft: #eef2f8;
  --accent: #1d4ed8;
  --accent-2: #2563eb;
  --accent-soft: #eaf0fe;
  --wheat: #ea580c; /* repère du site étudié (remplissage) : orange signal */
  --good: #047857;
  --warn: #b45309;
  --bad: #be123c;
  /* boutons principaux et bande foncée (petits éléments seulement : le fond reste clair) */
  --bouton: #1d4ed8;
  --bouton-survol: #1e40af;
  --nuit: #0e1a33;
  --sur-nuit: #ffffff;
  --sur-nuit-doux: #b9c4da;

  --grad: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  --grad-doux: linear-gradient(135deg, #eef3fd 0%, #eaf0fe 100%);
  --ombre-sm: 0 1px 2px rgb(14 26 51 / 0.05), 0 1px 3px rgb(14 26 51 / 0.04);
  --ombre: 0 1px 2px rgb(14 26 51 / 0.04), 0 10px 30px -10px rgb(14 26 51 / 0.12);
  --ombre-accent: 0 5px 17px rgb(29 78 216 / 0.22);
  /* Fond de page : halos bleus très doux (pas de violet), fixes pendant le défilement. */
  --halo:
    radial-gradient(1200px 800px at -8% -4%, rgb(59 130 246 / 0.12), transparent 62%),
    radial-gradient(1000px 760px at 108% 40%, rgb(37 99 235 / 0.09), transparent 62%),
    radial-gradient(1100px 700px at 40% 110%, rgb(14 165 233 / 0.07), transparent 60%);
  /* Cartes du rapport (tuiles, graphiques, carte, tableaux) : grands arrondis et ombre bleutée diffuse. */
  --rayon-bloc: 18px;
  --ombre-bloc: 0 1px 2px rgb(14 26 51 / 0.04), 0 14px 34px -16px rgb(29 78 216 / 0.26);
  --ombre-bloc-survol: 0 1px 2px rgb(14 26 51 / 0.05), 0 22px 42px -18px rgb(29 78 216 / 0.36);
  --bord-bloc: color-mix(in srgb, var(--line) 75%, #ffffff);
  /* Pastille pleine des icônes (tuiles, en-têtes) : bleu clair vers cobalt, pictogramme blanc. */
  --grad-icone: linear-gradient(145deg, #4f8df9 0%, #1d4ed8 100%);
  --ombre-icone: 0 6px 14px -6px rgb(29 78 216 / 0.65), inset 0 1px 0 rgb(255 255 255 / 0.28);

  /* Carte du passage : 6 classes, du moins au plus passant, du gris au vert (beaucoup de passage = bon pour un
     commerce). Pas de rouge ni d'orange : le rouge marque les concurrents. */
  --h0: #e3e8f0;
  --h1: #cfd8e3;
  --h2: #f5d76e;
  --h3: #a8d672;
  --h4: #4caf50;
  --h5: #1b7a3d;

  /* Fond de la carte du passage (Plan IGN repeint) : discret, pour que les rues colorées ressortent. */
  --carte-fond: #eef1f5;
  --carte-ilot: #e8ebf0;
  --carte-bati: #dde2e9;
  --carte-vert: #d3ead2;
  --carte-eau: #b6d6f2;
  --carte-route: #ffffff;
  --carte-route-bord: #d9dfe8;
  --carte-rail: #c3c9d3;
  --carte-texte: #5d687c;
  --carte-texte-fort: #26324a;
  --carte-texte-eau: #3f78b3;
  --carte-texte-vert: #3f7a50;
  --carte-concurrent: #dc2626; /* concurrents sur la carte : rouge franc, pictogramme blanc */
  /* Commodités sur la carte (disque plein, pictogramme blanc), une couleur par famille : ni rouge (concurrents) ni
     vert (passage). */
  --carte-enseignement: #7c3aed;
  --carte-sante: #0e7490;
  --carte-courses: #b45309;
  --carte-loisirs: #be185d;
  --carte-public: #475569;

  /* Graphiques : 2 séries, bleu et orange (lisibles par les daltoniens, ≥ 3:1 sur fond blanc). */
  --c1: #1d4ed8;
  --c2: #ea580c;

  --f-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-data: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-chiffres: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Couleurs vives de remplissage (barres, anneau de la note), identiques dans les deux thèmes. */
  --vif-good: #10b981;
  --vif-warn: #f59e0b;
  --vif-bad: #f43f5e;

  --radius: 10px;
  --radius-sm: 7px;
  --gutter: 16px;
  --focus: 2px solid var(--accent);
  --sticky-offset: 56px;

  color-scheme: light;
}

/* surtitre précédé d'un trait (le .surtitre de l'application) */
.surtitre-trait {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font: 800 11.5px var(--f-body);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.surtitre-trait::before {
  content: "";
  flex: none;
  width: 27px;
  height: 1px;
  background: currentColor;
}
.accueil-cadre {
  width: min(1180px, 100% - 2 * var(--marge));
  margin-inline: auto;
}

/* bandeau */
.accueil-hero {
  /* le lavande du haut se fond dans le blanc de la méthode */
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, var(--sheet) 100%);
  overflow: hidden;
}
.accueil-hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
  min-height: 610px;
  padding-block: 68px 75px;
}
.accueil-hero h1 {
  max-width: 690px;
  margin: 25px 0;
  font-size: clamp(44px, 4.5vw, 67px);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -0.055em;
}
.accueil-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.accueil-chapeau {
  max-width: 530px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}
.accueil-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 32px;
}
.accueil-actions .btn {
  min-height: 0;
  padding: 14px 21px;
  font-size: 13.5px;
}
.accueil-preuves {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  font-size: 13px;
  color: var(--muted);
}
.accueil-preuves li::before {
  content: "✓";
  margin-right: 8px;
  font-weight: 800;
  color: var(--accent);
}

/* carte « réponse » : ce que dit un rapport, sur le rapport d'exemple (décorative) */
.reponse-scene {
  position: relative;
  min-width: 0;
  padding: 8px 0 30px 8px;
}
.reponse-scene::before {
  content: "";
  position: absolute;
  inset: 4% -12% 0 16%;
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-15deg);
}
.reponse {
  position: relative;
  max-width: 460px;
  margin: auto;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 0 1px 2px rgb(14 26 51 / 0.04), 0 40px 80px -32px rgb(14 26 51 / 0.34);
}
.reponse-haut {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  background: var(--grad-doux);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.reponse-lieu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: 600 12.5px var(--f-body);
  color: var(--muted);
}
.reponse-lieu > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.reponse-exemple {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--sheet);
  font: 700 10px var(--f-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reponse-verdict {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reponse-anneau {
  flex: none;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--sheet) calc(100% - 7px), transparent calc(100% - 6px)),
    conic-gradient(var(--vif-good) calc(var(--note) * 1%), var(--line) 0);
  box-shadow: var(--ombre-sm);
}
.reponse-anneau b {
  font: 700 25px/1 var(--f-chiffres);
  letter-spacing: -0.04em;
}
.reponse-anneau small {
  font: 600 11px var(--f-body);
  letter-spacing: 0;
  color: var(--muted);
}
.reponse-verdict small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.reponse-verdict strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 2px;
  font: 800 24px/1.1 var(--f-display);
  letter-spacing: -0.045em;
}
/* passage heure par heure, dans l'en-tête */
.reponse-heures {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.reponse-heures-tete {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 600 11.5px var(--f-body);
  color: var(--muted);
}
.reponse-heures-tete span:last-child {
  color: var(--accent);
  font-weight: 700;
}
.reponse-barres,
.reponse-axe {
  display: grid;
  grid-template-columns: repeat(19, minmax(0, 1fr));
  gap: 3px;
}
.reponse-barres {
  align-items: end;
  height: 46px;
}
.reponse-barres i {
  border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--accent) 22%, var(--sheet));
}
.reponse-barres i.pic {
  background: var(--accent);
}
.reponse-axe span {
  font: 500 10px var(--f-body);
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

/* ordinateur : carte d'exemple agrandie d'un cran (tout son contenu) */
@media (min-width: 1100px) {
  .reponse {
    zoom: 1.1;
  }
}

/* pastilles de jugement : bon, moyen (mot + icône) */
.jugement {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font: 700 11.5px/1.2 var(--f-body);
  letter-spacing: 0;
  white-space: nowrap;
}
.jugement .icone {
  stroke-width: 2.6;
}
.jugement-bon {
  background: color-mix(in srgb, var(--good) 13%, var(--sheet));
  color: var(--good);
}
.jugement-moyen {
  background: color-mix(in srgb, var(--warn) 13%, var(--sheet));
  color: var(--warn);
}

.reponse-chiffres {
  list-style: none;
  margin: 0;
  padding: 4px 22px 0;
}
.reponse-chiffres li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas: "icone libelle valeur" "icone libelle jugement";
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  padding: 13px 0;
}
.reponse-chiffres li + li {
  border-top: 1px solid var(--line);
}
.reponse-icone {
  grid-area: icone;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.reponse-libelle {
  grid-area: libelle;
  min-width: 0;
  font: 600 13.5px/1.3 var(--f-body);
}
.reponse-libelle small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.reponse-chiffres b {
  grid-area: valeur;
  justify-self: end;
  font: 800 21px/1 var(--f-chiffres);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reponse-chiffres .jugement {
  grid-area: jugement;
  justify-self: end;
}
/* atouts du local : trois tuiles alignées (icône, titre, précision, badge ✓ ou !) */
.reponse-atouts {
  list-style: none;
  margin: 0 22px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.reponse-atout {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 12px 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}
.reponse-atout-icone {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  border-radius: 10px;
}
.reponse-atout-bon .reponse-atout-icone {
  background: color-mix(in srgb, var(--good) 13%, var(--sheet));
  color: var(--good);
}
.reponse-atout-moyen .reponse-atout-icone {
  background: color-mix(in srgb, var(--warn) 13%, var(--sheet));
  color: var(--warn);
}
.reponse-atout-statut {
  position: absolute;
  top: -6px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  color: #fff;
  font: 800 9.5px/1 var(--f-body);
}
.reponse-atout-bon .reponse-atout-statut {
  background: var(--vif-good);
}
.reponse-atout-moyen .reponse-atout-statut {
  background: var(--vif-warn);
}
.reponse-atout b {
  font: 700 12.5px/1.25 var(--f-body);
}
.reponse-atout small {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}
.reponse-puce {
  position: absolute;
  z-index: 2;
  left: -14px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--bouton);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgb(14 26 51 / 0.4);
  font: 700 12px var(--f-body);
  white-space: nowrap;
  transform: rotate(-2deg);
}
.reponse-puce .icone {
  color: #6ee7b7;
}

/* méthode */
.accueil-section {
  background: var(--sheet);
  padding-block: 8px 100px;
}
/* transition depuis le haut de page : un fil vertical parcouru par un point lumineux, jusqu'au titre */
.transition-methode {
  position: relative;
  display: block;
  width: 2px;
  height: 84px;
  margin: 0 auto 26px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent));
}
.transition-methode::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  border: 2px solid var(--sheet);
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
}
.transition-methode i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: descente 2.6s ease-in-out infinite;
}
@keyframes descente {
  0% {
    top: 0;
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 6px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .transition-methode i {
    animation: none;
    opacity: 0;
  }
}
.accueil-tete-section {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}
.accueil-tete-section h2 {
  font-size: clamp(31px, 3vw, 43px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.055em;
}
.accueil-tete-section p {
  max-width: none;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}
/* parcours en trois cartes illustrées, reliées par un fil lumineux (écrans larges) */
.parcours {
  --pad-carte: 22px;
  --tete-carte: 22px;
  --ecart-visuel: 18px;
  --haut-visuel: 245px;
  position: relative;
}
.point-accent {
  color: var(--accent);
}
/* cartes larges (grand écran) : illustrations plus hautes, donc radar et données plus grands */
@media (min-width: 1360px) {
  .parcours {
    --haut-visuel: 300px;
  }
}
.accueil-etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.accueil-etapes li {
  display: grid;
  align-content: start;
  padding: var(--pad-carte) var(--pad-carte) 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 0 1px 2px rgb(14 26 51 / 0.03), 0 24px 50px -34px rgb(14 26 51 / 0.3);
}
.parcours-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--tete-carte);
  margin-bottom: var(--ecart-visuel);
}
.accueil-etape-num {
  font: 800 12.5px var(--f-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.parcours-repere {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.parcours-repere::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.parcours-visuel {
  position: relative;
  height: var(--haut-visuel);
  overflow: hidden;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 7%, var(--sheet));
}
.parcours-icone {
  justify-self: start;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 24px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.parcours-icone .icone {
  width: 18px;
  height: 18px;
}
.accueil-etapes h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  letter-spacing: -0.045em;
}
.accueil-etapes p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.parcours-pied {
  max-width: none;
  margin-top: 36px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.parcours-pied span {
  color: var(--accent);
}

/* éléments communs des illustrations */
.parcours-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  transform: translate(-50%, -50%);
}
.parcours-centre-petit {
  width: 46px;
  height: 46px;
  background: var(--accent);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.parcours-puce {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  font: 700 12px var(--f-body);
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgb(14 26 51 / 0.35);
}
.parcours-puce .icone {
  color: var(--accent);
}

/* 01 : le plan et l'adresse */
.parcours-visuel-plan {
  background-color: color-mix(in srgb, var(--accent) 9%, var(--sheet));
  background-image: linear-gradient(32deg, transparent 46%, var(--sheet) 46%, var(--sheet) 52%, transparent 52%),
    linear-gradient(122deg, transparent 30%, var(--sheet) 30%, var(--sheet) 35%, transparent 35%),
    repeating-linear-gradient(32deg, transparent 0 48px, color-mix(in srgb, var(--sheet) 70%, transparent) 48px 58px),
    repeating-linear-gradient(122deg, transparent 0 64px, color-mix(in srgb, var(--sheet) 55%, transparent) 64px 72px);
}
.parcours-onde {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  transform: translate(-50%, -50%);
}
.parcours-onde-1 {
  width: 104px;
  height: 104px;
}
.parcours-onde-2 {
  width: 214px;
  height: 214px;
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: none;
  animation: onde 3.6s ease-out infinite;
}
.parcours-puce-adresse {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
}

/* 02 : le radar de l'analyse (SVG en ligne ; préfixe « sonar » : « radar » sert déjà au calcul) */
.parcours-visuel-analyse {
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    color-mix(in srgb, var(--accent) 7%, var(--sheet));
}
.sonar {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}
.sonar-anneau {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 16%, transparent);
}
.sonar-anneau-ext {
  stroke: color-mix(in srgb, var(--accent) 34%, transparent);
  stroke-dasharray: 3 4;
}
.sonar-croix {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 12%, transparent);
}
.sonar-balai-debut {
  stop-color: var(--accent-2);
  stop-opacity: 0.04;
}
.sonar-balai-fin {
  stop-color: var(--accent-2);
  stop-opacity: 0.34;
}
.sonar-faisceau {
  stroke: var(--accent-2);
  stroke-width: 1.4;
  stroke-opacity: 0.75;
}
.sonar-balayage {
  transform-box: view-box;
  transform-origin: 158px 122.5px;
  animation: sonar-tourne 5s linear infinite;
}
.sonar-echo {
  color: var(--accent);
  animation: sonar-clignote 2.4s ease-in-out infinite;
}
.sonar-pastille {
  fill: var(--sheet);
  stroke: color-mix(in srgb, var(--accent) 35%, transparent);
  filter: drop-shadow(0 3px 6px rgb(29 78 216 / 0.28));
}
.sonar-lib {
  fill: var(--muted);
  font: 600 9.5px var(--f-body);
  /* contour couleur du fond : le libellé reste net quand le fil ou un anneau passe derrière */
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--accent) 7%, var(--sheet));
  stroke-width: 3px;
  stroke-linejoin: round;
}
.sonar-halo {
  fill: color-mix(in srgb, var(--accent) 12%, transparent);
}
.sonar-onde {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: sonar-onde 2.8s ease-out infinite;
}
.sonar-coeur-icone {
  color: #fff;
}
@keyframes sonar-tourne {
  to {
    transform: rotate(360deg);
  }
}
@keyframes sonar-clignote {
  50% {
    opacity: 0.35;
  }
}
@keyframes sonar-onde {
  from {
    transform: scale(0.85);
    opacity: 0.9;
  }
  to {
    transform: scale(1.9);
    opacity: 0;
  }
}
/* cartes encore côte à côte mais étroites : le titre de chaque carte tient sur une ligne */
@media (min-width: 901px) and (max-width: 1180px) {
  .parcours-repere {
    display: none;
  }
}

/* 03 : le rapport */
.parcours-visuel-rapport {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, var(--sheet)), color-mix(in srgb, var(--accent) 16%, var(--sheet)));
}
.parcours-feuille {
  position: absolute;
  z-index: 2;
  left: 14%;
  right: 14%;
  top: 16px;
  bottom: -14px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  padding: 18px 18px 30px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 0 20px 40px -18px rgb(14 26 51 / 0.4);
  transform: rotate(5deg);
}
.parcours-feuille-tete {
  display: flex;
  justify-content: space-between;
  font: 800 10px var(--f-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.parcours-barres {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}
.parcours-barres i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--sheet)));
}
.parcours-ligne {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}
.parcours-ligne-courte {
  width: 60%;
}
.parcours-badge {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 26px;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font: 700 12px var(--f-body);
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* le fil qui relie les trois illustrations, et ses nœuds entre les cartes */
.parcours-fil {
  position: absolute;
  z-index: 1;
  left: 16%;
  right: 16%;
  top: calc(var(--pad-carte) + var(--tete-carte) + var(--ecart-visuel) + var(--haut-visuel) / 2);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
  opacity: 0.7;
}
.parcours-noeud {
  position: absolute;
  z-index: 3;
  top: calc(var(--pad-carte) + var(--tete-carte) + var(--ecart-visuel) + var(--haut-visuel) / 2);
  width: 14px;
  height: 14px;
  margin: -6px 0 0 -7px;
  border-radius: 50%;
  border: 3px solid var(--sheet);
  background: var(--accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 16%, transparent);
  animation: pulsation 2.4s ease-in-out infinite;
}
.parcours-noeud-1 {
  left: calc(33.333% - 4px);
}
.parcours-noeud-2 {
  left: calc(66.666% + 4px);
  animation-delay: -1.2s;
}
@keyframes onde {
  from {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0;
  }
}
@keyframes pulsation {
  50% {
    box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent) 8%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .parcours-onde-2,
  .parcours-noeud,
  .sonar-balayage,
  .sonar-echo,
  .sonar-onde {
    animation: none;
  }
}

/* le rapport */
.accueil-analyse {
  background: var(--soft);
  padding-block: 100px;
}
.accueil-analyse-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}
.accueil-analyse-grille > div {
  min-width: 0;
}
.accueil-analyse h2 {
  margin: 18px 0;
  font-size: clamp(32px, 3.4vw, 43px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.055em;
}
.accueil-analyse-grille > div > p {
  line-height: 1.8;
  color: var(--muted);
}
.accueil-analyses {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.accueil-analyses li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
}
.accueil-analyses span {
  color: var(--accent);
}
.accueil-petit {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
/* tableau du quartier : en-tête (rang de la rue, note), plan + chiffres, légende */
.accueil-visuel {
  container-type: inline-size;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 0 30px 70px -36px rgb(14 26 51 / 0.3);
}
.tq-tete {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tq-repere {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.tq-titre {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}
.tq-titre b {
  font: 800 22px/1.15 var(--f-display);
  letter-spacing: -0.04em;
}
.tq-titre small {
  font-size: 13px;
  color: var(--muted);
}
.tq-corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: 14px;
  align-items: stretch;
}
.tq-chiffres {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tq-chiffres li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--sheet);
  box-shadow: 0 6px 16px -12px rgb(14 26 51 / 0.3);
}
.tq-chiffres li > span:nth-child(2) {
  display: grid;
  min-width: 0;
  margin-right: auto;
}
.tq-icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tq-chiffres b {
  font: 800 19px/1.15 var(--f-chiffres);
  letter-spacing: -0.03em;
}
.tq-chiffres small {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}
.tq-puce {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  font: 700 11px var(--f-body);
  font-style: normal;
  white-space: nowrap;
}
.tq-bon {
  background: color-mix(in srgb, var(--good) 13%, var(--sheet));
  color: var(--good);
}
.tq-chiffres small.tq-plus {
  color: var(--good);
  font-weight: 700;
}
.tq-legende {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
}
.tq-legende span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tq-legende i {
  flex: none;
}
.tq-l-local {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.tq-l-zone {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, var(--sheet));
}
.tq-l-concurrent {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--vif-bad);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vif-bad) 40%, transparent);
}
.tq-l-metro {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font: 800 9.5px/1 var(--f-display);
  font-style: normal;
}

/* plan : rues réelles en SVG (couleurs du thème), repères posés en HTML */
.quartier {
  position: relative;
  aspect-ratio: 1150 / 805;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  align-self: center;
}
.quartier-carte,
.quartier-carte svg {
  display: block;
  width: 100%;
  height: 100%;
}
.quartier-carte .sol {
  fill: color-mix(in srgb, var(--muted) 9%, var(--sheet));
}
.quartier-carte .bord,
.quartier-carte .rue,
.quartier-carte .passe {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quartier-carte .bord {
  stroke: color-mix(in srgb, var(--muted) 16%, var(--sheet));
}
.quartier-carte .rue {
  stroke: var(--sheet);
}
.quartier-carte .passe {
  stroke: var(--accent);
}
.quartier-carte .passe-2 {
  stroke-opacity: 0;
}
.quartier-carte .passe-3 {
  stroke-opacity: 0.32;
}
.quartier-carte .rayon {
  fill: color-mix(in srgb, var(--accent) 16%, transparent);
  stroke: color-mix(in srgb, var(--accent) 55%, transparent);
}
.quartier-rayon {
  position: absolute;
  z-index: 3;
  left: 76.1%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--sheet));
  background: var(--sheet);
  color: var(--accent);
  font: 700 11px var(--f-body);
  white-space: nowrap;
  box-shadow: 0 4px 10px -6px rgb(14 26 51 / 0.4);
}
.marqueur-concurrent {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--vif-bad);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px -3px rgb(244 63 94 / 0.55);
}
.marqueur-concurrent .icone {
  stroke-width: 2.2;
}
.marqueur-metro {
  position: absolute;
  z-index: 3;
  left: calc(50% - 32px);
  top: calc(50% - 46px);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--sheet);
  color: var(--accent);
  font: 800 11px/1 var(--f-display);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px -4px rgb(14 26 51 / 0.4);
}
.quartier-ici {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 7px;
  margin: -3px 0 0 -9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 12%, transparent);
  animation: sol-pulse 2.4s ease-in-out infinite;
}
@keyframes sol-pulse {
  50% {
    box-shadow: 0 0 0 13px color-mix(in srgb, var(--accent) 5%, transparent);
  }
}
/* épingle du local : goutte violette percée d'un point blanc, pointe sur l'adresse */
.epingle-local {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -121%);
}
.epingle-local::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  transform: rotate(-45deg);
  box-shadow: -3px 8px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent);
}
.epingle-local i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .quartier-ici {
    animation: none;
  }
}
/* carte étroite : les chiffres passent sous le plan, deux par ligne */
@container (max-width: 620px) {
  .tq-corps {
    grid-template-columns: minmax(0, 1fr);
  }
  .tq-chiffres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tq-puce {
    display: none;
  }
}
@container (max-width: 420px) {
  .tq-chiffres {
    grid-template-columns: minmax(0, 1fr);
  }
  .tq-legende {
    justify-content: flex-start;
  }
  .quartier-rayon {
    display: none;
  }
}

/* le simulateur : capture d'un vrai rapport, version claire ou sombre selon le thème */
.accueil-simulateur {
  background: var(--sheet);
  padding-block: 100px;
}
/* deux colonnes : la capture à gauche (taille raisonnable), le texte à droite */
.accueil-simulateur-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
.accueil-simulateur-grille > div {
  min-width: 0;
}
.accueil-simulateur h2 {
  margin: 18px 0;
  font-size: clamp(32px, 3.4vw, 43px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.055em;
}
.accueil-simulateur-grille > div > p {
  line-height: 1.8;
  color: var(--muted);
}
.capture-simulateur {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 660px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 40px 90px -40px rgb(14 26 51 / 0.4);
}
.capture-fenetre {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}
.capture-fenetre i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.capture-fenetre span {
  margin-left: 10px;
  font: 600 12px var(--f-body);
  color: var(--muted);
}
.capture-simulateur img {
  display: block;
  width: 100%;
  height: auto;
}
.capture-sombre {
  display: none !important;
}
:root[data-theme="dark"] .capture-clair {
  display: none !important;
}
:root[data-theme="dark"] .capture-sombre {
  display: block !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .capture-clair {
    display: none !important;
  }
  :root:not([data-theme="light"]) .capture-sombre {
    display: block !important;
  }
}
.capture-simulateur figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--sheet);
  font-size: 12px;
  color: var(--muted);
}
.accueil-simulateur-points {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.accueil-simulateur-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 600;
}
.accueil-simulateur-points .icone {
  flex: none;
  margin-top: 2px;
  color: var(--good);
}
.accueil-simulateur .btn {
  min-height: 0;
  padding: 14px 21px;
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .accueil-hero-grille,
  .accueil-analyse-grille,
  .accueil-simulateur-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }
  .accueil-hero-grille {
    min-height: 0;
    padding-block: 55px;
  }
  .reponse-scene {
    width: 100%;
    max-width: 520px;
    margin: auto;
  }
  .accueil-etapes {
    grid-template-columns: minmax(0, 1fr);
  }
  .parcours-fil,
  .parcours-noeud {
    display: none;
  }
  .accueil-analyse,
  .accueil-simulateur {
    padding-block: 65px;
  }
  .accueil-section {
    padding-block: 4px 65px;
  }
  .transition-methode {
    height: 60px;
  }
}
@media (max-width: 550px) {
  .accueil-hero-grille {
    padding-block: 40px 45px;
  }
  .accueil-hero h1 {
    font-size: 42px;
  }
  .accueil-actions .btn {
    width: 100%;
  }
  .reponse-scene {
    padding: 0 0 8px;
  }
  .reponse-scene::before {
    display: none;
  }
  .reponse-haut {
    padding-inline: 16px;
  }
  .reponse-chiffres {
    padding-inline: 16px;
  }
  .reponse-atouts {
    margin-inline: 16px;
    padding: 12px 0 16px;
    gap: 6px;
  }
  .reponse-anneau {
    width: 62px;
    height: 62px;
  }
  .reponse-verdict strong {
    font-size: 20px;
  }
  .reponse-chiffres li {
    grid-template-columns: 34px auto minmax(0, 1fr);
    grid-template-areas: "icone libelle libelle" "icone valeur jugement";
    row-gap: 6px;
  }
  .reponse-chiffres b {
    justify-self: start;
  }
  .reponse-puce {
    position: static;
    margin-top: 12px;
    transform: none;
    white-space: normal;
  }
}

/* lien de l'accueil vers le rapport d'exemple */
.lien-exemple {
  display: inline-flex;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  font: 700 14.5px var(--f-body);
  text-decoration: none;
}
.lien-exemple:hover span {
  transform: translateX(3px);
}
.lien-exemple span {
  transition: transform 0.2s;
}
