/* Site public de Rendimo (lot VISUEL5, « immobilier »). Charte : rendimo/ecrans/charte.py, docs/CHARTE.md.
   Idée : un site d'annonces immobilières. Les images portent la page : Toulouse vue du ciel, des logements
   illustrés, la carte des prix réels, des graphiques ; le texte se réduit à une ligne par idée. Le vert du logo
   reste seul pour ce qui se clique ; la brique de Toulouse ne sert qu'à la carte des prix.
   Aucune ressource externe : polices, images et icônes hébergées ici, aucun script tiers, aucune mesure d'audience. */

/* Public Sans (SIL Open Font License 1.1, voir public-sans-OFL.txt) : tout le texte, comme dans l'application. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("public-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("public-sans-italique.woff2") format("woff2");
}

:root {
  --fond: #ffffff;
  --fond-2: #f5f5f2;
  --surface-3: #ecede8;
  --sable: #efece6;
  --texte: #1b1e22;
  --texte-2: #474d55;
  --texte-3: #5b616a;
  --titre: #1b1e22;
  --ligne: #dcddd8;
  --contour-champ: #80868e;
  --action: #15653f;
  --action-survol: #0f4d30;
  --action-doux: #e6f1eb;
  --sur-action: #ffffff;
  --succes: #15653f;
  --vigilance: #8a5200;
  --vigilance-fond: #fbf0db;
  --erreur: #b3261e;
  --erreur-fond: #fceae8;
  --negatif: #b3261e;
  --surligneur: #fff0a0;
  --carte: #ffffff;
  --cadre-appareil: #1f2328;
  --barre-credit: #5d6b7a;
  --sur-barre: #ffffff;
  --barre-charges: #8d99a6;
  --barre-taxe: #b7c0c9;
  --carte-1: #f5e6c8;
  --carte-2: #edc28c;
  --carte-3: #db955c;
  --carte-4: #bb6141;
  --carte-5: #86392a;
  --ombre: 0 1px 2px rgba(27, 30, 34, 0.08), 0 10px 30px rgba(27, 30, 34, 0.14);
  --police: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --rayon: 8px;
  --rayon-carte: 16px;
  --largeur: 76rem;
  --lecture: 40rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #121519;
    --fond-2: #181c21;
    --surface-3: #22272d;
    --sable: #23272c;
    --texte: #eceeea;
    --texte-2: #c2c6cb;
    --texte-3: #a3a8af;
    --titre: #f4f5f2;
    --ligne: #2e343b;
    --contour-champ: #737a83;
    --action: #6fcb98;
    --action-survol: #9adbb6;
    --action-doux: #18301f;
    --sur-action: #0e1a13;
    --succes: #6fcb98;
    --vigilance: #e9b562;
    --vigilance-fond: #2c2414;
    --erreur: #f2958b;
    --erreur-fond: #321a18;
    --negatif: #f2958b;
    --surligneur: #4d4211;
    --carte: #1d2126;
    --cadre-appareil: #2c3238;
    --barre-credit: #9aa7b5;
    --sur-barre: #121519;
    --barre-charges: #6f7b88;
    --barre-taxe: #4f5964;
    --carte-1: #f5e6c8;
    --carte-2: #edc28c;
    --carte-3: #db955c;
    --carte-4: #bb6141;
    --carte-5: #86392a;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #121519;
  --fond-2: #181c21;
  --surface-3: #22272d;
  --sable: #23272c;
  --texte: #eceeea;
  --texte-2: #c2c6cb;
  --texte-3: #a3a8af;
  --titre: #f4f5f2;
  --ligne: #2e343b;
  --contour-champ: #737a83;
  --action: #6fcb98;
  --action-survol: #9adbb6;
  --action-doux: #18301f;
  --sur-action: #0e1a13;
  --succes: #6fcb98;
  --vigilance: #e9b562;
  --vigilance-fond: #2c2414;
  --erreur: #f2958b;
  --erreur-fond: #321a18;
  --negatif: #f2958b;
  --surligneur: #4d4211;
  --carte: #1d2126;
  --cadre-appareil: #2c3238;
  --barre-credit: #9aa7b5;
  --sur-barre: #121519;
  --barre-charges: #6f7b88;
  --barre-taxe: #4f5964;
  --carte-1: #f5e6c8;
  --carte-2: #edc28c;
  --carte-3: #db955c;
  --carte-4: #bb6141;
  --carte-5: #86392a;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  /* Le bandeau du haut reste visible : un champ ou une ancre atteint au clavier n'est pas caché dessous. */
  scroll-padding-top: 5.5rem;
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--fond);
}
img,
svg {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  color: var(--titre);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
/* Échelle typographique (rapport 1,25) : 17 / 21 / 27 / 34 / 42 / 53 px. */
h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 760;
  letter-spacing: -0.018em;
}
h3 {
  font-size: 1.125rem;
  font-weight: 700;
}
p {
  margin: 0;
}
a {
  color: var(--action);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--action-survol);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}
strong {
  font-weight: 680;
}
sup {
  line-height: 0;
}
.icone {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Lien d'évitement : invisible jusqu'à ce qu'il reçoive le focus clavier, il mène directement au contenu. */
.lien-evitement {
  position: absolute;
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  top: -4rem;
  z-index: 20;
  background: var(--fond);
  color: var(--action);
  font-weight: 650;
  padding: 0.6rem 1rem;
  border: 2px solid var(--action);
  border-radius: var(--rayon);
}
.lien-evitement:focus {
  top: 0.5rem;
}
main:focus {
  outline: none;
}
a,
button,
label,
summary,
input,
select,
textarea {
  touch-action: manipulation;
}

/* Mise en page : une largeur de page, des sections aérées, des fonds alternés plutôt que des filets. */
.contenu {
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
.section {
  padding-block: 4.5rem;
}
.pile {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}
.lecture {
  max-width: var(--lecture);
}
.chapeau {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--texte-2);
  max-width: 36rem;
}
.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: start;
}
.entete-section {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.entete-section p {
  color: var(--texte-2);
  font-size: 1.1rem;
}
.mention {
  font-size: 0.92rem;
  color: var(--texte-3);
}

/* En-tête : le mot-marque, un menu en texte, « Se connecter » en vert. */
.entete {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--fond);
  border-bottom: 1px solid var(--ligne);
}
.entete .contenu {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.8rem;
}
.marque {
  display: inline-flex;
  align-items: center;
}
.marque img {
  display: block;
  width: auto;
  height: 28px;
}
.navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.6rem;
  font-size: 1rem;
}
.navigation a {
  color: var(--texte-2);
  text-decoration: none;
  font-weight: 550;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.navigation a:hover {
  color: var(--texte);
  border-bottom-color: var(--ligne);
}
.navigation a[aria-current="page"] {
  color: var(--texte);
  border-bottom-color: var(--texte);
}
/* Accès à l'application (lot SITE2) : /connexion, redirigé par Caddy vers le domaine de l'application. */
.navigation a.nav-connexion {
  color: var(--sur-action);
  background: var(--action);
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 650;
}
.navigation a.nav-connexion:hover {
  background: var(--action-survol);
  color: var(--sur-action);
}

/* Boutons : l'action principale est pleine ; sur la photo, la seconde est blanche. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border-radius: var(--rayon);
  border: 1px solid var(--action);
  background: var(--action);
  color: var(--sur-action);
  font: inherit;
  font-size: 1.03rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.bouton:hover {
  background: var(--action-survol);
  border-color: var(--action-survol);
  color: var(--sur-action);
}
.bouton:disabled {
  opacity: 0.6;
  cursor: progress;
}
.bouton-second {
  background: transparent;
  color: var(--action);
}
.bouton-second:hover {
  background: var(--action-doux);
  color: var(--action-survol);
}
.bouton-clair {
  background: #ffffff;
  border-color: #ffffff;
  color: #1b1e22;
}
.bouton-clair:hover {
  background: #eef0ec;
  border-color: #eef0ec;
  color: #1b1e22;
}
.lien-fort {
  font-weight: 650;
}

/* Bandeau des pages intérieures : Toulouse vue du ciel, le titre en blanc sur un voile. */
.bandeau {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 15rem;
  overflow: hidden;
  background: #2b2a28;
}
.bandeau-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 40%;
}
.bandeau-contact .bandeau-photo {
  object-position: 85% 70%;
}
.bandeau::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 14, 16, 0.72) 0%, rgba(12, 14, 16, 0.45) 55%, rgba(12, 14, 16, 0.15) 100%);
}
.bandeau-texte {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 0.75rem;
  padding-block: 3.5rem 2.75rem;
}
.bandeau h1 {
  color: #ffffff;
}
.bandeau-texte p {
  color: #e9ebe8;
  font-size: 1.15rem;
  max-width: 38rem;
}
.contenu-tarifs {
  padding-block: 2.5rem 0;
}
.offre-icone {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: var(--action-doux);
  color: var(--action);
}

/* Ouverture des pages intérieures. */
.ouverture {
  padding-block: 3.5rem 2rem;
}
.ouverture .pile {
  gap: 1rem;
}

/* Accueil : Toulouse vue du ciel, en plein écran ; le texte sur un voile sombre à gauche, un bien à droite. */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 80vh, 46rem);
  overflow: hidden;
  background: #2b2a28;
  color: #ffffff;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
/* Voile de lecture : sans lui, le titre blanc se perdrait dans les toits. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 14, 16, 0.7) 0%, rgba(12, 14, 16, 0.42) 40%, rgba(12, 14, 16, 0) 72%);
}
.hero-contenu {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  align-items: center;
  gap: 2.5rem 4rem;
  padding-block: 4rem;
}
.hero-texte {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}
.hero h1 {
  color: #ffffff;
}
.hero-texte p {
  font-size: 1.25rem;
  line-height: 1.45;
  color: #e9ebe8;
  max-width: 30rem;
}
.hero-texte .actions {
  margin-top: 0.5rem;
}
.hero .credit {
  position: absolute;
  z-index: 1;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  background: rgba(12, 14, 16, 0.62);
  font-size: 0.78rem;
  color: #ffffff;
}

/* Fiches de biens, comme sur un portail d'annonces : l'image d'abord, le prix en gros, les chiffres qui comptent. */
.grille-biens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}
.bien {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
  color: var(--texte);
  text-decoration: none;
}
.bien-photo {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sable);
}
.bien-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.pastille {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  color: #1b1e22;
  font-size: 0.9rem;
  font-weight: 680;
}
.pastille::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #80868e;
}
.pastille-bonne::before {
  background: #15653f;
}
.pastille-vigilance::before {
  background: #c27a12;
}
.bien-corps {
  display: grid;
  gap: 0.25rem;
}
.bien-prix {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.bien-lieu {
  font-weight: 600;
  color: var(--texte);
}
.bien-ecart {
  color: var(--texte-2);
  font-size: 0.98rem;
}
.bien-chiffres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.35rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.bien-chiffres > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.negatif {
  color: var(--negatif);
}
/* Le bien posé sur la photo de l'accueil. */
.bien-flottant {
  background: var(--carte);
  border-radius: var(--rayon-carte);
  padding: 0.6rem 0.6rem 1.1rem;
  box-shadow: var(--ombre);
}
.bien-flottant .bien-corps {
  padding-inline: 0.5rem;
}
.bien-meta {
  font-size: 0.86rem;
  color: var(--texte-3);
}
.bien-flottant:hover {
  color: var(--texte);
}
.bien-flottant:hover .bien-prix {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* La carte des prix réels (DVF), sur le plan IGN. */
.section-carte {
  background: var(--fond-2);
}
.disposition-carte {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: center;
}
.carte-texte {
  display: grid;
  gap: 1.25rem;
}
.carte-texte > p:first-of-type {
  color: var(--texte-2);
}
.legende {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.legende li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.pastille-couleur {
  width: 1.6rem;
  height: 1.05rem;
  border-radius: 4px;
  flex: none;
}
.pastille-couleur.c1 {
  background: var(--carte-1);
}
.pastille-couleur.c2 {
  background: var(--carte-2);
}
.pastille-couleur.c3 {
  background: var(--carte-3);
}
.pastille-couleur.c4 {
  background: var(--carte-4);
}
.pastille-couleur.c5 {
  background: var(--carte-5);
}
.source {
  font-size: 0.92rem;
  color: var(--texte-3);
}
.carte {
  margin: 0;
  border-radius: var(--rayon-carte);
  overflow: hidden;
  border: 1px solid var(--ligne);
  background: var(--sable);
}
.carte svg {
  display: block;
  width: 100%;
  height: auto;
}
.hexagones polygon {
  fill-opacity: 0.8;
  stroke: #ffffff;
  stroke-width: 1.5;
}
.hexagones polygon:hover {
  fill-opacity: 1;
  stroke: #1b1e22;
  stroke-width: 3;
}
.hexagones .c1 {
  fill: var(--carte-1);
}
.hexagones .c2 {
  fill: var(--carte-2);
}
.hexagones .c3 {
  fill: var(--carte-3);
}
.hexagones .c4 {
  fill: var(--carte-4);
}
.hexagones .c5 {
  fill: var(--carte-5);
}

/* Une annonce en détail : le bien à gauche, les graphiques à droite. */
.fiche {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 3rem;
  align-items: start;
}
.fiche > .mention {
  grid-column: 1 / -1;
}
.fiche-bien {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}
.fiche-bien img {
  display: block;
  width: 100%;
  border-radius: var(--rayon-carte);
  background: var(--sable);
}
.fiche-prix {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.caracteristiques {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
  color: var(--texte-2);
}
.caracteristiques li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.caracteristiques .icone {
  color: var(--texte);
}
.fiche-graphiques {
  display: grid;
  gap: 1.25rem;
}
.graphique {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.25rem 1.35rem 1.35rem;
  border: 1px solid var(--ligne);
  border-radius: 14px;
  background: var(--carte);
}
.graphique h3 {
  font-size: 1.05rem;
}
.graphique p {
  color: var(--texte-2);
}
.graphique p strong {
  color: var(--texte);
}
.graphique svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--police);
}
.graphiques-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
}
.graphique-score svg {
  max-width: 7.5rem;
}
.g-prix .axe {
  fill: var(--surface-3);
}
.g-prix .repere-marche {
  stroke: var(--texte);
  stroke-width: 3;
  stroke-linecap: round;
}
.g-prix .repere-annonce {
  fill: var(--vigilance);
  stroke: var(--carte);
  stroke-width: 3;
}
.t-annonce,
.t-marche,
.t-ligne,
.t-detail,
.t-valeur,
.t-reste,
.t-borne,
.t-score {
  fill: var(--texte);
  font-size: 15px;
  font-weight: 650;
}
.t-annonce {
  fill: var(--vigilance);
}
.t-borne {
  fill: var(--texte-3);
  font-weight: 500;
  font-size: 14px;
}
.t-detail {
  fill: var(--sur-barre);
  font-size: 14px;
}
.t-reste {
  fill: var(--negatif);
  font-size: 22px;
  font-weight: 800;
}
.t-score {
  font-size: 34px;
  font-weight: 800;
}
.barre-entree {
  fill: var(--action);
}
.barre-credit {
  fill: var(--barre-credit);
}
.barre-charges {
  fill: var(--barre-charges);
}
.barre-taxe {
  fill: var(--barre-taxe);
}
.barre-annonce {
  fill: var(--barre-charges);
}
.barre-realiste {
  fill: var(--action);
}
.anneau {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 12;
}
.anneau-plein {
  fill: none;
  stroke: var(--action);
  stroke-width: 12;
  stroke-linecap: round;
}
.decompte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  font-variant-numeric: tabular-nums;
}
.decompte li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--ligne);
  color: var(--texte-2);
}
.decompte .montant {
  font-weight: 650;
  color: var(--texte);
  white-space: nowrap;
}
.decompte .total {
  border-bottom: 0;
  font-weight: 700;
  color: var(--texte);
}
.decompte .total .montant {
  color: var(--negatif);
  font-weight: 800;
}
.precision {
  font-size: 0.93rem;
  color: var(--texte-3);
}

/* Ce que Rendimo vérifie : une icône, deux mots, une ligne. */
.section-fonctions {
  background: var(--fond-2);
}
.fonctions-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 3.5rem;
}
.fonctions-colonnes h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.fonctions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.fonctions li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.9rem;
  align-items: center;
}
.fonctions .icone {
  grid-row: span 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: var(--action-doux);
  color: var(--action);
}
.fonctions strong {
  font-size: 1.05rem;
}
.fonctions span {
  color: var(--texte-2);
  font-size: 0.98rem;
}

/* L'application sur ordinateur et sur téléphone. */
.disposition-appareils {
  display: grid;
  gap: 2rem;
}
.appareils-texte p {
  color: var(--texte-2);
  font-size: 1.1rem;
  margin-top: 0.4rem;
}
.appareils {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
  align-items: end;
  gap: 0;
}
.appareils figure {
  margin: 0;
}
.ecran-ordinateur {
  border: 10px solid var(--cadre-appareil);
  border-bottom-width: 18px;
  border-radius: 14px;
  overflow: hidden;
  max-height: 34rem;
  box-shadow: var(--ombre);
}
.ecran-ordinateur img,
.ecran-telephone img {
  display: block;
  width: 100%;
  height: auto;
}
.ecran-telephone {
  margin-left: -3rem !important;
  margin-bottom: -1.5rem !important;
  border: 8px solid var(--cadre-appareil);
  border-radius: 28px;
  overflow: hidden;
  max-height: 30rem;
  box-shadow: var(--ombre);
  background: var(--cadre-appareil);
}
.disposition-appareils > .mention {
  margin-top: 1.25rem;
}

/* Tableaux. */
.tableau-defilant {
  overflow-x: auto;
}
.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.tableau caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--titre);
  padding-bottom: 0.75rem;
}
.tableau th,
.tableau td {
  text-align: left;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--ligne);
  vertical-align: top;
}
.tableau thead th {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--texte-2);
}
.tableau tbody th {
  font-weight: 500;
}
.tableau .montant {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.tableau .groupe-lignes th {
  padding-top: 1.4rem;
  font-weight: 700;
  color: var(--titre);
}
.comparatif td {
  white-space: nowrap;
  color: var(--texte-3);
  width: 7rem;
}
.comparatif td.oui {
  color: var(--texte);
  font-weight: 600;
}
.section-prix .prix-resume > div {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.section-prix .prix-resume p {
  color: var(--texte-2);
  max-width: 30rem;
}
.prix-resume {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 2rem 4rem;
  align-items: start;
}
.tableau-prix {
  background: var(--carte);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.tableau-prix th,
.tableau-prix td {
  padding-inline: 1.1rem;
}
.tableau-prix tbody tr:last-child > * {
  border-bottom: 0;
}
.tableau-prix th {
  font-weight: 650;
}

/* Confiance : trois engagements, une icône chacun. */
.section-confiance {
  padding-block: 2.5rem;
  border-top: 1px solid var(--ligne);
}
.confiance {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
}
.confiance li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--texte-2);
  font-size: 0.98rem;
}
.confiance .icone {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--action);
  margin-top: 0.05rem;
}

/* Tarifs : chaque offre sur une fiche, comme un bien. */
.tarif {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: 2rem 3rem;
  align-items: start;
}
.periode {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.periode legend {
  font-weight: 650;
  margin-bottom: 0.4rem;
  padding: 0;
}
.periode label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  cursor: pointer;
}
.periode input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--action);
  margin: 0;
}
.offres {
  display: grid;
  gap: 1rem;
}
.offre {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: 0.75rem 2rem;
  align-items: start;
  padding: 1.5rem;
  border: 1px solid var(--ligne);
  border-radius: 14px;
  background: var(--carte);
}
.offre h2 {
  font-size: 1.35rem;
}
.offre-pour {
  color: var(--texte-2);
  margin-top: 0.2rem;
}
.offre ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--texte-2);
  font-size: 0.98rem;
  display: grid;
  gap: 0.2rem;
}
.prix-mois,
.prix-annee {
  font-variant-numeric: tabular-nums;
}
.prix-mois .prix-montant {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.prix-annee {
  color: var(--texte-2);
  margin-top: 0.15rem;
}
.prix-montant span {
  font-size: 0.95rem;
  font-weight: 450;
  color: var(--texte-3);
  letter-spacing: 0;
}
.offre .bouton {
  align-self: center;
}
.tarif .notes-tarif {
  display: grid;
  gap: 1rem;
  padding-top: 4.5rem;
}
/* Précisions et conseils : une fiche sable dans la marge. */
.note {
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--fond-2);
  color: var(--texte-2);
  font-size: 0.98rem;
}
.note h3,
.note strong {
  color: var(--texte);
}

/* Questions fréquentes. */
.questions details {
  border-top: 1px solid var(--ligne);
  padding: 0.25rem 0;
}
.questions details:last-child {
  border-bottom: 1px solid var(--ligne);
}
.questions summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--titre);
  padding: 0.7rem 0;
  min-height: 44px;
}
.questions details p {
  margin: 0 0 0.85rem;
  color: var(--texte-2);
  max-width: var(--lecture);
}

/* Formulaires. */
.formulaire {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
  min-width: 0;
}
.champ {
  display: grid;
  gap: 0.35rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.champ label,
.champ legend {
  font-weight: 650;
  color: var(--titre);
  padding: 0;
}
.champ .facultatif {
  font-weight: 400;
  color: var(--texte-3);
}
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  font: inherit;
  font-size: 1.03rem;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid var(--contour-champ);
  border-radius: var(--rayon);
  padding: 0.65rem 0.75rem;
  width: 100%;
  min-height: 48px;
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 1px;
  border-color: var(--action);
}
.champ [aria-invalid="true"] {
  border-color: var(--erreur);
  border-width: 2px;
}
.aide {
  font-size: 0.93rem;
  color: var(--texte-3);
}
.erreur-champ {
  font-size: 0.96rem;
  font-weight: 650;
  color: var(--erreur);
}
.erreur-champ::before {
  content: "Erreur : ";
}
.consentement {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--texte-2);
}
.consentement input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--action);
  flex: none;
}
.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.resultat {
  padding: 0.85rem 1rem;
  border-radius: var(--rayon);
  font-weight: 600;
}
.resultat-ok {
  background: var(--action-doux);
  color: var(--succes);
}
.resultat-erreur {
  background: var(--erreur-fond);
  color: var(--erreur);
}
.disposition-contact {
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

/* Pages longues (mentions légales, confidentialité, conditions générales) : une colonne de lecture, les champs
   encore à compléter surlignés. */
.texte-long {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.texte-long > * {
  max-width: 44rem;
}
.texte-long h1 {
  margin-bottom: 0.5rem;
}
.texte-long h2 {
  font-size: 1.3rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ligne);
}
.texte-long h3 {
  margin-top: 0.75rem;
  font-size: 1.1rem;
}
.texte-long ul {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.4rem;
}
.texte-long p,
.texte-long li {
  color: var(--texte-2);
}
.a-completer {
  color: var(--texte);
  background: var(--surligneur);
  padding: 0 0.25rem;
  font-weight: 600;
}
p.a-completer {
  padding: 0.6rem 0.8rem;
}

/* Pied de page. */
.pied {
  border-top: 1px solid var(--ligne);
  background: var(--fond-2);
}
.pied .contenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.96rem;
  color: var(--texte-2);
}
.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}
.pied a {
  color: var(--texte-2);
}
.pied a:hover {
  color: var(--action);
}
.pied .credits {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--texte-3);
}

@media (max-width: 1080px) {
  .grille-biens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .graphiques-duo {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .prix-resume,
  .tarif,
  .disposition-carte,
  .fiche {
    grid-template-columns: minmax(0, 1fr);
  }
  .tarif .notes-tarif {
    padding-top: 0;
  }
  .fiche-bien {
    position: static;
  }
  .graphiques-duo {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .hero-contenu {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3rem 3.5rem;
  }
  .bien-flottant {
    max-width: 22rem;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(12, 14, 16, 0.72) 0%, rgba(12, 14, 16, 0.5) 55%, rgba(12, 14, 16, 0.3) 100%);
  }
}
@media (max-width: 860px) {
  .deux-colonnes,
  .disposition-contact,
  .fonctions-colonnes,
  .confiance {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding-block: 3rem;
  }
  .ouverture {
    padding-block: 2.25rem 1rem;
  }
  .chapeau {
    font-size: 1.1rem;
  }
  .offre {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .offre .bouton {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .appareils {
    grid-template-columns: minmax(0, 1fr) minmax(0, 9rem);
  }
}
/* Téléphone : le logo et « Se connecter » sur la première ligne, les autres liens sur la seconde.
   « Accueil » est retiré de l'affichage (le logo mène à l'accueil). */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 7.5rem;
  }
  .entete .contenu {
    padding-block: 0.7rem 0.4rem;
    gap: 0.35rem;
  }
  .marque {
    min-height: 44px;
  }
  .marque img {
    height: 24px;
  }
  .navigation {
    width: 100%;
    gap: 0 1.25rem;
    font-size: 0.98rem;
  }
  .navigation a.nav-accueil {
    display: none;
  }
  .navigation a.nav-connexion {
    position: absolute;
    top: 0.75rem;
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .hero {
    min-height: 0;
  }
  .hero-texte p {
    font-size: 1.1rem;
  }
  .grille-biens {
    grid-template-columns: minmax(0, 1fr);
  }
  .graphiques-duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .caracteristiques {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Graphiques : sur un écran étroit, le dessin rétrécit ; ses textes sont agrandis d'autant. */
  .g-mois text,
  .g-prix text {
    font-size: 25px;
  }
  .g-mois .t-reste {
    font-size: 32px;
  }
  .offre {
    grid-template-columns: minmax(0, 1fr);
  }
  .appareils {
    grid-template-columns: minmax(0, 1fr) minmax(0, 7rem);
  }
  .ecran-telephone {
    margin-left: -2rem !important;
    border-width: 5px;
    border-radius: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
