/* =========================================================
   Imm'@gile — Page d'accueil (maquette Figma « 01 — Accueil »)
   ========================================================= */

:root {
  --principale: #133b5b;
  --secondaire: #2672b8;
  --texte: #122332;
  --fond-principal: #f7f9fc;
  --fond-teinte: #eef3f9;          /* secondaire à 6 % sur fond principal */
  --fond-teinte-leger: #f0f4fa;    /* secondaire à 4 % */
  --bordure: rgba(19, 59, 91, 0.16);
  --score-positif: #2ea36b;
  --attention: #e7a523;
  --erreur: #d85b57;
  --coche: #1baa9a;
  --largeur: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte);
  background: var(--fond-principal);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * 120px);
  margin: 0 auto;
  padding: 0 120px;
}

.section { padding: 96px 0; }
.section--teinte { background: var(--fond-teinte); }
.section--teinte-leger { background: var(--fond-teinte-leger); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, filter .15s;
}
.bouton--principal { background: var(--principale); color: var(--fond-principal); border-color: var(--principale); }
.bouton--principal:hover { filter: brightness(1.2); }
.bouton--secondaire { background: var(--secondaire); color: var(--fond-principal); border-color: var(--secondaire); }
.bouton--secondaire:hover { filter: brightness(1.1); }
.bouton--contour { background: var(--fond-principal); color: var(--texte); border-color: var(--principale); }
.bouton--contour:hover { background: var(--principale); color: var(--fond-principal); }
.bouton--contour-clair { background: transparent; color: var(--fond-principal); border-color: var(--fond-principal); }
.bouton--contour-clair:hover { background: var(--fond-principal); color: var(--principale); }

.groupe-boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--principale);
  color: var(--fond-principal);
}
.entete__barre {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.entete__logo img { width: 118px; height: 44px; }
.entete__nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.entete__nav a:hover { opacity: .75; }
.entete__actions { display: flex; align-items: center; gap: 12px; }
.entete__menu {
  display: none;
  background: none;
  border: 1px solid var(--fond-principal);
  border-radius: 8px;
  color: var(--fond-principal);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Typo communes ---------- */
.surtitre {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.04px;
  color: var(--secondaire);
  text-transform: uppercase;
}
.titre-section {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.titre-section h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.titre-section p:last-child { font-size: 18px; line-height: 1.5; }

.empile { display: flex; flex-direction: column; align-items: center; gap: 48px; }

/* ---------- Liste à coches ---------- */
.liste-cochee { display: flex; flex-direction: column; gap: 16px; }
.liste-cochee li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.liste-cochee svg { flex: 0 0 22px; width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0; }
.hero__grille { display: flex; align-items: center; gap: 64px; }
.hero__texte { flex: 1 1 568px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__texte h1 { font-size: 52px; font-weight: 700; line-height: 1.15; }
.hero__texte p { font-size: 18px; line-height: 1.5; }
.hero__image { flex: 1 1 568px; aspect-ratio: 568 / 440; border-radius: 8px; overflow: hidden; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Double cible ---------- */
.double-cible { padding: 0 0 96px; }
.double-cible__rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.carte-audience {
  background: var(--fond-principal);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.carte-audience__cible { font-size: 13px; font-weight: 600; }
.carte-audience h2 { font-size: 28px; font-weight: 700; line-height: normal; }
.carte-audience .liste-cochee { gap: 20px; }

/* ---------- Projet pilote ---------- */
.objectifs {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border: 1px solid var(--texte);
  border-radius: 12px;
  padding: 20px 24px;
}
.paragraphe-central { max-width: 800px; text-align: center; font-size: 18px; line-height: 1.6; }

/* ---------- Étapes ---------- */
.etapes { display: grid; gap: 24px; width: 100%; }
.etapes--3 { grid-template-columns: repeat(3, 1fr); }
.etapes--4 { grid-template-columns: repeat(4, 1fr); }
.etape { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.etape__pastille {
  width: 48px; height: 48px;
  border-radius: 24px;
  background: var(--principale);
  color: var(--fond-principal);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.etape h3 { font-size: 18px; font-weight: 600; line-height: normal; }
.etape p { font-size: 15px; line-height: 1.5; }

/* ---------- Schéma Panorama ---------- */
.schema-defilement { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.schema-defilement:not(.est-defilant) .schema { transform-origin: top left; }
.schema-defilement:not(.est-defilant) { overflow-x: hidden; }
.schema-indication { display: none; font-size: 13px; margin-top: -32px; opacity: .7; }
.est-defilant + .schema-indication { display: block; }
.schema {
  position: relative;
  width: 1200px;
  height: 500px;
  margin: 0 auto;
}
.schema__zone {
  position: absolute;
  top: 0;
  height: 456px;
  background: var(--fond-principal);
  border: 1px solid var(--principale);
  border-radius: 16px;
}
.schema__zone-titre {
  position: absolute;
  top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .72px;
  white-space: nowrap;
}
.schema__fleches { position: absolute; inset: 0; width: 1200px; height: 456px; overflow: visible; pointer-events: none; }
.noeud {
  position: absolute;
  width: 130px;
  height: 88px;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  line-height: 1.25;
  background: var(--fond-principal);
  border: 1px solid var(--principale);
  color: var(--texte);
}
.noeud strong { font-size: 14px; font-weight: 600; }
.noeud span { font-size: 12px; opacity: .85; }
.noeud--plein { background: var(--principale); border: 0; color: var(--fond-principal); }
.noeud--eligible { background: var(--score-positif); border: 0; color: var(--fond-principal); }
.noeud--attente { background: var(--attention); border: 0; color: var(--texte); }
.noeud--non-eligible { background: var(--erreur); border: 0; color: var(--fond-principal); }
.schema__etiquette { position: absolute; left: 603px; top: 166px; font-size: 12px; font-weight: 500; color: var(--score-positif); }
.schema__note { position: absolute; left: 0; top: 476px; font-size: 13px; white-space: nowrap; }

/* ---------- Annonces ---------- */
.annonces .empile { gap: 24px; }

/* ---------- Avantages ---------- */
.avantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; align-items: start; }
.carte-avantage {
  background: var(--fond-principal);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.carte-avantage__icone {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--secondaire);
  color: var(--fond-principal);
  display: flex; align-items: center; justify-content: center;
}
.carte-avantage__icone svg { width: 24px; height: 24px; }
.carte-avantage h3 { font-size: 20px; font-weight: 600; line-height: normal; }
.carte-avantage p { font-size: 15px; line-height: 1.5; }

/* ---------- Chiffres clés ---------- */
.chiffres { background: var(--fond-teinte-leger); padding: 64px 0; }
.chiffres__rangee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.chiffre { display: flex; flex-direction: column; gap: 4px; }
.chiffre strong { font-size: 48px; font-weight: 700; line-height: normal; }
.chiffre span { font-size: 15px; line-height: normal; }

/* ---------- Bandeau CTA ---------- */
.cta-section { background: var(--fond-teinte-leger); padding: 0 0 96px; }
.cta {
  position: relative;
  overflow: hidden;
  background: var(--secondaire);
  color: var(--fond-principal);
  border-radius: 16px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.cta__deco { position: absolute; right: 0; top: 0; width: 250px; height: 295px; opacity: .1; pointer-events: none; }
.cta h2 { position: relative; font-size: 36px; font-weight: 700; line-height: normal; }
.cta p { position: relative; font-size: 18px; line-height: 1.5; }
.cta .groupe-boutons { position: relative; justify-content: center; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--principale);
  color: var(--fond-principal);
  padding: 64px 0 32px;
  font-size: 14px;
}
.pied .conteneur { display: flex; flex-direction: column; gap: 40px; }
.pied__colonnes { display: flex; gap: 64px; align-items: flex-start; }
.pied__marque { flex: 0 0 340px; display: flex; flex-direction: column; gap: 16px; }
.pied__marque img { width: 129px; height: 48px; }
.pied__reseaux { display: flex; gap: 12px; }
.pied__reseaux a {
  width: 36px; height: 36px;
  border: 1px solid var(--fond-principal);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s, color .15s;
}
.pied__reseaux a:hover { background: var(--fond-principal); color: var(--principale); }
.pied__reseaux svg { width: 18px; height: 18px; }
.pied__colonne { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; white-space: nowrap; }
.pied__colonne h3 { font-size: 14px; font-weight: 600; }
.pied__colonne a:hover { text-decoration: underline; }
.pied__partenaires { display: flex; align-items: center; gap: 24px; }
.pied__partenaires > p { font-weight: 500; white-space: nowrap; }
.logos-partenaires {
  background: var(--fond-principal);
  border-radius: 10px;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.logos-partenaires img { height: auto; }
.pied__separateur { height: 1px; background: var(--fond-principal); border: 0; margin: 0; }
.pied__bas { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.pied__legal { display: flex; flex-wrap: wrap; gap: 10px; }
.pied__legal a:hover { text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1360px) {
  .conteneur { padding: 0 48px; }
  .entete__nav { gap: 18px; }
}

@media (max-width: 1200px) {
  /* Menu repliable */
  .entete__menu { display: inline-flex; }
  .entete__nav, .entete__actions { display: none; }
  .entete.est-ouvert .entete__barre { flex-wrap: wrap; height: auto; padding: 18px 0; }
  .entete.est-ouvert .entete__nav,
  .entete.est-ouvert .entete__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
  }
  .entete.est-ouvert .entete__nav { gap: 16px; padding: 16px 0 8px; font-size: 16px; }
  .entete.est-ouvert .entete__actions { order: 4; align-items: stretch; padding-bottom: 8px; }
  .pied__partenaires { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1024px) {
  .hero__grille { flex-direction: column; align-items: stretch; gap: 48px; }
  .hero__texte h1 { font-size: 44px; }
  .hero__image { flex: none; }
  .double-cible__rangee { grid-template-columns: 1fr; }
  .etapes--4 { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .avantages { grid-template-columns: 1fr; }
  .chiffres__rangee { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .pied__colonnes { flex-wrap: wrap; gap: 40px; }
  .pied__marque { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .conteneur { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .double-cible, .cta-section { padding-bottom: 64px; }
  .hero__texte h1 { font-size: 34px; }
  .hero__texte p, .titre-section p:last-child, .paragraphe-central { font-size: 16px; }
  .titre-section h2 { font-size: 30px; }
  .carte-audience { padding: 28px 24px; }
  .carte-audience h2 { font-size: 24px; }
  .etapes--3, .etapes--4 { grid-template-columns: 1fr; }
  .chiffre strong { font-size: 40px; }
  .cta { padding: 48px 24px; }
  .cta h2 { font-size: 28px; }
  .groupe-boutons { flex-direction: column; align-items: stretch; width: 100%; }
  .groupe-boutons .bouton { white-space: normal; text-align: center; }
  .pied__colonne { flex: 1 1 40%; }
  .pied__bas { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Page « Pourquoi Imm'@gile »
   ========================================================= */
.entete__nav a[aria-current="page"] { cursor: default; opacity: 1; }

.hero-centre { padding: 96px 0 64px; }
.hero-centre .conteneur {
  max-width: calc(800px + 2 * 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.hero-centre h1 { font-size: 52px; font-weight: 700; line-height: 1.15; }
.hero-centre p:not(.surtitre) { font-size: 18px; line-height: 1.5; }
.hero-centre .groupe-boutons { justify-content: center; }

.carte-audience__cible--attenue { color: rgba(18, 35, 50, .7); }
.carte-audience--souple { align-self: stretch; }

.chiffres__rangee--section { width: 100%; }

.tableau-gains {
  width: 100%;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  overflow: hidden;
  background: var(--fond-principal);
}
.tableau-gains table { width: 100%; border-collapse: collapse; }
.tableau-gains th,
.tableau-gains td { padding: 16px 0; vertical-align: middle; }
.tableau-gains th:first-child,
.tableau-gains td:first-child { padding-left: 24px; padding-right: 15px; text-align: left; }
.tableau-gains th:not(:first-child),
.tableau-gains td:not(:first-child) { width: 310px; padding-left: 15px; padding-right: 15px; text-align: center; }
.tableau-gains th:last-child,
.tableau-gains td:last-child { padding-right: 24px; width: 319px; }
.tableau-gains thead th {
  background: var(--principale);
  color: var(--fond-principal);
  font-size: 18px;
  font-weight: 600;
  padding-top: 18px;
  padding-bottom: 18px;
}
.tableau-gains tbody td { font-size: 15px; line-height: normal; font-weight: 500; }
.tableau-gains tbody td:last-child { font-weight: 400; }
.tableau-gains tbody tr + tr td { border-top: 1px solid var(--bordure); }
.tableau-gains thead + tbody tr:first-child td { border-top: 0; }
.tableau-gains tbody tr:last-child td { border-bottom: 1px solid var(--bordure); }

.cta-section--clair { background: var(--fond-principal); padding: 96px 0; }

@media (max-width: 1024px) {
  .hero-centre h1 { font-size: 44px; }
}

@media (max-width: 860px) {
  /* Tableau en cartes empilées */
  .tableau-gains { border: 0; background: none; overflow: visible; }
  .tableau-gains thead { display: none; }
  .tableau-gains table, .tableau-gains tbody, .tableau-gains tr, .tableau-gains td { display: block; width: 100% !important; }
  .tableau-gains tbody { display: flex; flex-direction: column; gap: 16px; }
  .tableau-gains tr {
    background: var(--fond-principal);
    border: 1px solid var(--bordure);
    border-radius: 12px;
    overflow: hidden;
  }
  .tableau-gains tbody td,
  .tableau-gains tbody td:first-child,
  .tableau-gains tbody td:not(:first-child) {
    text-align: left;
    padding: 6px 20px;
    border: 0 !important;
  }
  .tableau-gains tbody td:first-child {
    background: var(--principale);
    color: var(--fond-principal);
    font-weight: 600;
    padding: 14px 20px;
    margin-bottom: 8px;
  }
  .tableau-gains tbody td:last-child { padding-bottom: 18px; }
  .tableau-gains tbody td[data-titre]::before {
    content: attr(data-titre);
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--secondaire);
    margin-bottom: 2px;
  }
}

@media (max-width: 720px) {
  .hero-centre { padding: 56px 0 48px; }
  .hero-centre h1 { font-size: 34px; }
  .hero-centre p:not(.surtitre) { font-size: 16px; }
  .cta-section--clair { padding: 64px 0; }
}

/* =========================================================
   Page « La solution »
   ========================================================= */
.empile--large { gap: 96px; }

.illustration {
  flex: 1 1 568px;
  min-height: 400px;
  border-radius: 8px;
  background: rgba(38, 114, 184, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.illustration--hero { min-height: 440px; align-self: stretch; }
.illustration--hero .schema-ajuste { width: 536px; max-width: 100%; }

/* Schéma réduit (mis à l'échelle par script) */
.schema-ajuste { overflow: hidden; }
.schema-ajuste .schema { transform-origin: top left; }

/* Blocs fonctionnalité */
.bloc-fonction { width: 100%; display: flex; align-items: center; gap: 64px; }
.bloc-fonction > *, .bloc-fonction > .illustration { flex: 1 1 0; min-width: 0; }
.bloc-fonction__texte { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.bloc-fonction__texte h2 { font-size: 32px; font-weight: 700; line-height: 1.2; }
.bloc-fonction__texte > p:not(.surtitre) { font-size: 16px; line-height: 1.5; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondaire);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lien-fleche svg { width: 16px; height: 16px; transition: transform .15s; }
.lien-fleche:hover svg { transform: translateX(3px); }

/* Illustration : annonce */
.illus-annonce { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.illus-pastille {
  background: rgba(27, 170, 154, .14);
  color: var(--principale);
  font-size: 11px;
  font-weight: 600;
  padding: 5.5px 11px;
  border-radius: 999px;
}
.carte-annonce {
  width: 247px;
  background: var(--fond-principal);
  border: 0.65px solid var(--principale);
  border-radius: 7.7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.carte-annonce__image {
  height: 142px;
  background: linear-gradient(to right, rgba(38, 114, 184, .35), rgba(27, 170, 154, .35));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--texte);
}
.carte-annonce__image svg { width: 26px; height: 26px; }
.carte-annonce__image span { font-size: 8.4px; font-weight: 500; color: #6b7280; }
.carte-annonce__contenu { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px; line-height: normal; }
.carte-annonce__badge { background: var(--secondaire); font-size: 7.7px; font-weight: 500; padding: 2.6px 6.4px; border-radius: 999px; }
.carte-annonce__prix { font-size: 12.9px; font-weight: 700; }
.carte-annonce__type { font-size: 10.3px; font-weight: 600; }
.carte-annonce__lieu { display: flex; align-items: center; gap: 3.9px; font-size: 9px; }
.carte-annonce__lieu svg { width: 9px; height: 9px; }
.carte-annonce__details { font-size: 9px; }
.carte-annonce__sep { width: 100%; height: .65px; border: 0; margin: 0; background: var(--secondaire); }
.carte-annonce__pied { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 8.4px; }
.carte-annonce__compteur { background: var(--secondaire); color: var(--principale); font-size: 7.7px; font-weight: 500; padding: 2.6px 5.2px; border-radius: 3.9px; }
.carte-annonce__actions { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-top: 2.6px; }
.carte-annonce__lien { font-size: 9.7px; font-weight: 600; color: var(--secondaire); text-decoration: underline; }
.carte-annonce__lien--petit { font-size: 8.4px; }

/* Illustration : cartes (candidature, scoring) */
.illus-carte {
  width: 350px;
  max-width: 100%;
  background: var(--fond-principal);
  border: .92px solid rgba(19, 59, 91, .12);
  border-radius: 14.7px;
  box-shadow: 0 7.4px 22px rgba(18, 36, 51, .1);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  line-height: normal;
}
.illus-carte__titre { font-size: 18.4px; font-weight: 700; color: var(--principale); }
.illus-carte__titre--petit { font-size: 15.6px; }
.illus-carte__sous-titre { font-size: 12px; color: rgba(18, 35, 50, .7); }
.illus-carte__entete { display: flex; justify-content: space-between; align-items: center; }
.illus-carte__sep { height: .92px; border: 0; margin: 0; background: rgba(19, 59, 91, .12); }
.illus-champ { display: flex; flex-direction: column; gap: 3.7px; }
.illus-champ > span:first-child { font-size: 11px; font-weight: 500; color: rgba(18, 35, 50, .8); }
.illus-champ > span:last-child {
  background: #fff;
  border: .92px solid rgba(19, 59, 91, .18);
  border-radius: 7.4px;
  padding: 8.3px 11px;
  font-size: 12px;
}
.illus-bouton {
  background: var(--principale);
  color: var(--fond-principal);
  border-radius: 7.4px;
  padding: 10px;
  text-align: center;
  font-size: 12.9px;
  font-weight: 600;
}
.illus-pdf { background: rgba(216, 91, 87, .12); color: var(--erreur); font-size: 10px; font-weight: 700; padding: 2.8px 7.4px; border-radius: 5.5px; }
.illus-libelle { font-size: 12px; font-weight: 500; color: rgba(18, 35, 50, .8); }
.illus-cles { display: flex; align-items: center; gap: 7.4px; }
.illus-cles i { width: 20px; height: 20px; border-radius: 50%; background: #d8e5f2; }
.illus-cles i.plein { background: var(--secondaire); }
.illus-cles strong { font-size: 20px; font-weight: 700; color: var(--principale); }
.illus-feux { display: flex; flex-wrap: wrap; gap: 7.4px; }
.feu { display: inline-flex; align-items: center; gap: 5.5px; padding: 5.5px 9.2px; border-radius: 999px; font-size: 11px; color: rgba(18, 35, 50, .5); }
.feu i { width: 9.2px; height: 9.2px; border-radius: 50%; }
.feu--eligible { background: rgba(46, 163, 107, .16); color: var(--texte); font-weight: 600; }
.feu--eligible i { background: var(--score-positif); }
.feu--attente { background: rgba(231, 165, 35, .06); }
.feu--attente i { background: #f1d9a7; }
.feu--non { background: rgba(216, 91, 87, .06); }
.feu--non i { background: #ebbbbb; }
.illus-note { font-size: 11px; color: rgba(18, 35, 50, .6); }

/* Illustration : logos garanties */
.illus-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14.7px; max-width: 480px; }
.illus-logos span {
  width: 147px;
  height: 88px;
  background: #fff;
  border: .92px solid rgba(19, 59, 91, .12);
  border-radius: 14.7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .bloc-fonction, .bloc-fonction--inverse { flex-direction: column; align-items: stretch; gap: 32px; }
  .bloc-fonction--inverse .bloc-fonction__texte { order: 2; }
  .bloc-fonction > *, .bloc-fonction > .illustration, .hero__texte, .illustration { flex: none; }
  .illustration { min-height: 360px; }
  .illustration--hero { min-height: 0; padding: 32px 16px; }
  .empile--large { gap: 72px; }
}

@media (max-width: 720px) {
  .bloc-fonction__texte h2 { font-size: 26px; }
  .illustration { min-height: 0; padding: 32px 16px; }
  .empile--large { gap: 56px; }
}

/* =========================================================
   Page « Locataires »
   ========================================================= */
.hero__image--cadre { border: 1px solid #000; }

.pieces { display: flex; gap: 64px; align-items: flex-start; }
.pieces > * { flex: 1 1 0; min-width: 0; }
.pieces__titre { display: flex; flex-direction: column; gap: 12px; }
.pieces__titre h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.pieces__titre p:last-child { font-size: 18px; line-height: 1.5; }
.pieces__liste { background: var(--fond-teinte); border-radius: 16px; padding: 32px; }

@media (max-width: 1024px) {
  .pieces { flex-direction: column; gap: 32px; }
  .pieces > * { flex: none; width: 100%; }
}
@media (max-width: 720px) {
  .pieces__titre h2 { font-size: 30px; }
  .pieces__titre p:last-child { font-size: 16px; }
  .pieces__liste { padding: 24px 20px; }
}

/* =========================================================
   Page « Tarifs »
   ========================================================= */
.offre-section { padding: 0 0 96px; }
.carte-tarif {
  width: 384px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--fond-teinte);
  border: 2px solid var(--principale);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  line-height: normal;
}
.carte-tarif__badge {
  background: var(--principale);
  color: var(--fond-principal);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.carte-tarif__nom { font-size: 18px; font-weight: 600; }
.carte-tarif__prix { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.carte-tarif__prix strong { font-size: 40px; font-weight: 700; }
.carte-tarif__prix span { font-size: 16px; }
.carte-tarif__description { font-size: 15px; line-height: 1.5; }
.carte-tarif__sep { width: 100%; height: 1px; border: 0; margin: 0; background: var(--secondaire); }
.carte-tarif__inclus { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.carte-tarif__inclus li { padding-left: 1.4em; text-indent: -1.4em; }
.carte-tarif__inclus li::before { content: "✓"; display: inline-block; width: 1.4em; text-indent: 0; }
.carte-tarif__bouton { width: 100%; }

.etapes--centre { grid-template-columns: repeat(3, 282px); justify-content: center; }

.empile--faq { gap: 40px; }
.faq { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--fond-principal);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 20px 24px;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: normal;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: 0 0 20px; width: 20px; height: 20px; margin-left: auto; transition: transform .2s; }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--secondaire); outline-offset: 6px; border-radius: 4px; }
.faq__item p { margin-top: 12px; font-size: 15px; line-height: 1.5; }

@media (max-width: 1024px) {
  .etapes--centre { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .offre-section { padding-bottom: 64px; }
  .carte-tarif { padding: 28px 24px; }
  .etapes--centre { grid-template-columns: 1fr; }
  .faq__item { padding: 18px 20px; }
  .faq__item summary { font-size: 16px; }
}
.cta-section--bas { background: var(--fond-principal); padding: 0 0 96px; }
@media (max-width: 720px) { .cta-section--bas { padding-bottom: 64px; } }

/* =========================================================
   Page « Qui sommes-nous »
   ========================================================= */
.garanties { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.garanties__rangee { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.garanties__rangee--2 { grid-template-columns: repeat(2, 1fr); }
.garanties .carte-avantage { min-height: 239px; }

.empile--partenaires { gap: 32px; }
.grille-partenaires { width: 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 24px; }
.grille-partenaires li {
  height: 96px;
  padding: 16px;
  background: var(--fond-principal);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grille-partenaires img { max-height: 100%; width: auto; object-fit: contain; }

.contact { display: flex; gap: 64px; align-items: flex-start; }
.contact > * { flex: 1 1 0; min-width: 0; }
.contact__texte { display: flex; flex-direction: column; gap: 24px; }
.contact__mail { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; }
.contact__mail svg { width: 24px; height: 24px; }
.contact__mail:hover { text-decoration: underline; }

.formulaire {
  background: var(--fond-principal);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.formulaire__ligne { display: flex; gap: 16px; }
.formulaire__ligne > * { flex: 1 1 0; min-width: 0; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ > span:first-child { font-size: 14px; font-weight: 500; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: normal;
  color: var(--texte);
  background: var(--fond-principal);
  border: 1px solid var(--principale);
  border-radius: 8px;
  padding: 14px 16px;
  appearance: none;
  -webkit-appearance: none;
}
.champ textarea { min-height: 50px; resize: vertical; display: block; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte); opacity: 1; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--secondaire); outline-offset: 1px; }
.champ__select { position: relative; display: block; }
.champ__select select { padding-right: 44px; cursor: pointer; }
.champ__select svg { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.formulaire__erreur { font-size: 14px; color: var(--erreur); }
.formulaire__bouton { width: 100%; }

@media (max-width: 1200px) {
  .grille-partenaires { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .garanties__rangee { grid-template-columns: 1fr; }
  .garanties__rangee--2 { grid-template-columns: 1fr; }
  .garanties .carte-avantage { min-height: 0; }
  .contact { flex-direction: column; gap: 40px; }
  .contact > * { flex: none; width: 100%; }
}
@media (max-width: 720px) {
  .grille-partenaires { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .formulaire { padding: 24px 20px; }
  .formulaire__ligne { flex-direction: column; gap: 20px; }
}

/* =========================================================
   Page « Mentions légales »
   ========================================================= */
.page-legale__titre { background: var(--fond-teinte); padding: 72px 0 48px; }
.page-legale__titre .conteneur { display: flex; flex-direction: column; gap: 16px; }
.page-legale__surtitre { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--secondaire); }
.page-legale__titre h1 { font-size: 48px; font-weight: 700; line-height: 1.15; color: var(--principale); }
.page-legale__intro { max-width: 800px; font-size: 18px; line-height: 1.5; color: rgba(18, 35, 50, .7); }
.page-legale__version { font-size: 14px; font-weight: 500; line-height: 1.5; color: rgba(18, 35, 50, .6); }

.page-legale__corps { padding: 56px 0 96px; }
.page-legale__grille { display: flex; gap: 80px; align-items: flex-start; }

.sommaire {
  flex: 0 0 300px;
  position: sticky;
  top: 104px;
  background: var(--fond-teinte);
  border: 1px solid rgba(19, 59, 91, .12);
  border-radius: 12px;
  padding: 24px;
}
.sommaire__titre { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--principale); margin-bottom: 12px; }
.sommaire ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sommaire a { font-size: 14px; line-height: 1.6; color: rgba(18, 35, 50, .85); }
.sommaire a:hover { color: var(--secondaire); text-decoration: underline; }

.texte-legal { flex: 1 1 0; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 40px; }
.texte-legal section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 104px; }
.texte-legal h2 { font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--principale); }
.texte-legal p, .texte-legal li { font-size: 16px; line-height: 1.6; color: rgba(18, 35, 50, .85); }
.texte-legal ul { list-style: none; margin: 0; padding: 0 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.texte-legal li { padding-left: 22px; position: relative; }
.texte-legal li::before { content: "•"; position: absolute; left: 0; }
.texte-legal a { color: var(--secondaire); text-decoration: underline; }

@media (max-width: 1024px) {
  .page-legale__grille { flex-direction: column; gap: 40px; }
  .sommaire { position: static; flex: none; width: 100%; }
}
@media (max-width: 720px) {
  .page-legale__titre { padding: 48px 0 36px; }
  .page-legale__titre h1 { font-size: 36px; }
  .page-legale__intro { font-size: 16px; }
  .page-legale__corps { padding: 40px 0 64px; }
  .texte-legal h2 { font-size: 21px; }
  .texte-legal p, .texte-legal li { font-size: 15px; }
}

/* =========================================================
   Pages légales : compléments (CGV)
   ========================================================= */
.texte-legal h3 { font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--principale); }
.texte-legal li.sans-puce { padding-left: 0; }
.texte-legal li.sans-puce::before { content: none; }

.tableau-legal { width: 100%; border: 1px solid rgba(19, 59, 91, .14); border-radius: 10px; overflow: hidden; }
.tableau-legal table { width: 100%; border-collapse: collapse; line-height: 1.6; }
.tableau-legal th, .tableau-legal td { padding: 12px 16px; text-align: left; vertical-align: top; }
.tableau-legal th + th, .tableau-legal td + td { width: 276px; padding-left: 0; }
.tableau-legal thead th { background: var(--principale); color: var(--fond-principal); font-size: 14px; font-weight: 600; }
.tableau-legal tbody td { font-size: 15px; color: rgba(18, 35, 50, .85); }
.tableau-legal tbody td + td { font-weight: 500; color: var(--principale); }
.tableau-legal tbody tr:nth-child(even) { background: rgba(38, 114, 184, .05); }

.alerte-legale {
  background: rgba(216, 91, 87, .08);
  border: 1px solid rgba(216, 91, 87, .4);
  border-radius: 10px;
  padding: 12px 16px;
}
.texte-legal .alerte-legale { font-size: 14px; font-weight: 500; color: var(--texte); }
.texte-legal .a-rediger { font-weight: 600; color: var(--secondaire); }

@media (max-width: 720px) {
  .tableau-legal thead { display: none; }
  .tableau-legal tr, .tableau-legal td { display: block; width: 100% !important; }
  .tableau-legal td + td { padding: 0 16px 12px !important; }
  .tableau-legal td + td::before { content: "Facturation : "; font-weight: 600; }
  .tableau-legal tbody td { font-size: 14px; }
}

/* =========================================================
   Page « Plan du site »
   ========================================================= */
.page-legale__titre--plan h1 { line-height: 1.5; }
.page-legale__titre--plan .page-legale__surtitre { line-height: 1.5; }

.plan-site { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.plan-groupe {
  background: var(--fond-principal);
  border: 1px solid rgba(19, 59, 91, .12);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-groupe h2 { font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--principale); }
.plan-groupe > p { font-size: 14px; line-height: 1.5; color: rgba(18, 35, 50, .7); padding-bottom: 16px; border-bottom: 1px solid rgba(19, 59, 91, .12); }
.plan-groupe ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.plan-groupe a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(18, 35, 50, .85);
}
.plan-groupe a::after { content: "→"; color: var(--secondaire); flex: none; transition: transform .15s; }
.plan-groupe a:hover { color: var(--secondaire); }
.plan-groupe a:hover::after { transform: translateX(3px); }
.plan-groupe a[aria-current="page"] { cursor: default; }
.plan-groupe a[aria-current="page"]:hover { color: rgba(18, 35, 50, .85); }
.plan-groupe a[aria-current="page"]:hover::after { transform: none; }

@media (max-width: 1024px) {
  .plan-site { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .plan-site { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================================================
   Page 404
   ========================================================= */
.erreur-404 { padding: 120px 0 144px; }
.erreur-404 .conteneur { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.erreur-404__code { display: flex; align-items: center; gap: 12px; font-size: 200px; font-weight: 700; line-height: 1; color: var(--principale); }
.erreur-404__code img { width: 170px; height: 180px; }
.erreur-404 h1 { max-width: 620px; font-size: 40px; font-weight: 700; line-height: 1.4; color: var(--principale); }
.erreur-404__texte { max-width: 620px; font-size: 18px; line-height: 1.4; color: rgba(18, 35, 50, .7); }
.erreur-404 .groupe-boutons { justify-content: center; }

.recherche-404 { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0 12px; }
.recherche-404 > label { font-size: 15px; font-weight: 500; line-height: 1.4; color: rgba(18, 35, 50, .75); }
.recherche-404__ligne { width: 100%; height: 64px; display: flex; gap: 12px; }
.recherche-404__champ, .recherche-404__filtres {
  background: var(--fond-principal);
  border: 1px solid var(--principale);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(19, 59, 91, .1);
}
.recherche-404__champ { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 24px; }
.recherche-404__champ:focus-within { outline: 2px solid var(--secondaire); outline-offset: 2px; }
.recherche-404__pin { flex: 0 0 22px; width: 22px; height: 22px; color: var(--texte); }
.recherche-404__saisie { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.recherche-404__saisie > span { font-size: 13px; font-weight: 600; }
.recherche-404__saisie input { border: 0; background: transparent; padding: 0; font: inherit; font-size: 16px; color: var(--texte); width: 100%; outline: none; }
.recherche-404__saisie input::placeholder { color: var(--texte); opacity: 1; }
.recherche-404__go {
  flex: 0 0 48px; width: 48px; height: 48px; border: 0; border-radius: 24px;
  background: var(--principale); color: var(--fond-principal);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.recherche-404__go:hover { filter: brightness(1.2); }
.recherche-404__go svg { width: 20px; height: 20px; }
.recherche-404__filtres { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 20px; font-size: 15px; font-weight: 600; }
.recherche-404__filtres svg { width: 20px; height: 20px; }
.recherche-404__pastille { width: 20px; height: 20px; border-radius: 10px; background: var(--secondaire); color: var(--fond-principal); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.erreur-404__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding-top: 16px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--secondaire); }
.erreur-404__liens a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .erreur-404 { padding: 64px 0 80px; }
  .erreur-404 .conteneur { gap: 22px; }
  .erreur-404__code { font-size: 110px; gap: 6px; }
  .erreur-404__code img { width: 94px; height: 100px; }
  .erreur-404 h1 { font-size: 28px; }
  .erreur-404__texte { font-size: 16px; }
  .recherche-404__ligne { height: auto; flex-direction: column; }
  .recherche-404__filtres { height: 52px; justify-content: center; }
  .erreur-404__liens { flex-direction: column; gap: 12px; }
}
