/* ============================================================
   MATCHNRENT — PAGES PUBLIQUES (aiguillage, accueil locataire,
   accueil propriétaire). Complète css/style.css.
   ============================================================ */

/* ── Écran de verrouillage (bêta privée) ───────────────── */
.verrou {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(155deg, #EB4A22 0%, #D89A4E 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.verrou-carte {
  background: var(--creme); border-radius: var(--rayon-xl);
  padding: 44px 36px; max-width: 420px; width: 100%; text-align: center;
  box-shadow: var(--ombre-forte);
}

/* ── Aiguillage ─────────────────────────────────────────── */
.aiguillage {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 20px; text-align: center;
  background:
    radial-gradient(ellipse at 15% 10%, var(--ocre-clair) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, var(--sauge-clair) 0%, transparent 50%);
}
.aiguillage-logo { width: min(300px, 72%); height: auto; }
.aiguillage h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; margin: 30px 0 8px; letter-spacing: -0.015em; }
.aiguillage > p { color: var(--encre-douce); margin-bottom: 30px; font-size: 1.05rem; }
.aiguillage > p.aiguillage-sur { margin: 26px 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--terracotta-fonce); }
.aiguillage > p.aiguillage-sur + h1 { margin-top: 8px; }
.aiguillage > p.aiguillage-promesse { margin: 0 auto 8px; max-width: 30em; font-size: 1.1rem; font-weight: 500; color: var(--encre); line-height: 1.45; }
.champ-oeil { position: relative; }
.champ-oeil .champ { padding-right: 52px; }
.champ-oeil button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--encre-douce); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 12px; }
.champ-oeil button .icone { width: 22px; height: 22px; }
.choix {
  display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 18px;
  width: 100%; justify-content: center;
}
.choix a {
  background: var(--blanc); border: 2px solid var(--bordure); border-radius: var(--rayon-xl);
  padding: 28px 24px; text-align: left; color: var(--encre);
  display: grid; gap: 10px; box-shadow: var(--ombre);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
/* Le survol ne vaut que pour une souris : sur un écran tactile, la carte restait orange après un toucher. */
@media (hover: hover) { .choix a:hover { border-color: var(--terracotta); transform: translateY(-2px); box-shadow: var(--ombre-forte); color: var(--encre); } }
.choix a:active { border-color: var(--terracotta); }
.choix a { position: relative; padding-right: 56px; }
.choix-fleche { position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--terracotta); }
.choix-icone {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--terracotta-clair); color: var(--terracotta-fonce);
  display: flex; align-items: center; justify-content: center;
}
.choix-icone .icone { width: 26px; height: 26px; }
.choix a.proprio .choix-icone { background: var(--sauge-clair); color: #4F6146; }
.choix strong { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 600; }
.choix span { color: var(--encre-douce); font-size: 0.95rem; line-height: 1.45; }
.aiguillage-pied { margin-top: 30px; color: var(--encre-douce); font-size: 0.95rem; }

/* ── Barre de navigation publique ───────────────────────── */
.vitrine-nav .conteneur { height: 72px; }
.vitrine-nav .nav-liens { gap: 6px; }
.vitrine-nav .nav-lien { font-weight: 500; }
@media (max-width: 700px) { .vitrine-nav .nav-cache-mobile { display: none; } }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse at top right, var(--ocre-clair) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, var(--sauge-clair) 0%, transparent 50%);
}
.hero-grille { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.6rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.06; margin-bottom: 22px;
}
.hero-douleur { font-size: 1.14rem; line-height: 1.55; color: var(--encre-douce); margin-bottom: 14px; max-width: 50ch; }
.hero-solution { font-size: 1.14rem; line-height: 1.55; color: var(--encre); margin-bottom: 28px; max-width: 50ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--encre-douce); }
.hero-note a { font-weight: 600; }

/* ── Démo « ta part du loyer » ──────────────────────────── */
.demo {
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--rayon-xl); padding: 26px; box-shadow: var(--ombre-forte);
}
.demo-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.demo-entete strong { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; }
.demo-entete span { color: var(--encre-douce); font-size: 0.9rem; white-space: nowrap; }
.demo-loyer { margin-top: 2px; color: var(--encre-douce); font-size: 0.95rem; }
.segment {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--creme-fonce); border-radius: 999px; padding: 4px; margin: 20px 0 22px;
}
.segment button {
  border: 0; background: transparent; padding: 10px 8px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--encre-douce); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.segment button[aria-pressed="true"] { background: var(--blanc); color: var(--encre); box-shadow: var(--ombre); }
.demo-libelle { font-size: 0.88rem; font-weight: 600; color: var(--encre-douce); }
.demo-part {
  font-family: 'Poppins', sans-serif; font-size: clamp(2.7rem, 6vw, 3.6rem);
  font-weight: 700; color: var(--terracotta); line-height: 1.05; letter-spacing: -0.03em;
}
.demo-part small { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500; color: var(--encre-douce); letter-spacing: 0; }
.demo-compare { color: var(--encre-douce); font-size: 0.95rem; margin-top: 4px; min-height: 1.4em; }
.demo-barre { display: flex; gap: 4px; height: 14px; margin: 18px 0 10px; }
.demo-barre span { flex: 1; border-radius: 4px; background: var(--creme-fonce); transition: flex 0.2s; }
.demo-barre span.toi { background: var(--terracotta); }
.demo-note { font-size: 0.82rem; color: var(--gris); line-height: 1.45; }

/* ── Aperçu d'un groupe (page propriétaire) ─────────────── */
.apercu {
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--rayon-xl); padding: 24px; box-shadow: var(--ombre-forte);
}
.apercu-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.apercu-entete strong { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; }
.apercu-membres { display: grid; gap: 10px; }
.apercu-membre { display: flex; align-items: center; gap: 12px; }
.apercu-avatar {
  width: 42px; height: 42px; border-radius: 12px; background: var(--creme);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.apercu-membre b { font-weight: 600; }
.apercu-membre .badge { margin-left: auto; }
.apercu-lignes { margin: 18px 0; display: grid; gap: 8px; font-size: 0.93rem; color: var(--encre-douce); }
.apercu-lignes div { display: flex; align-items: center; gap: 10px; }
.apercu-lignes .icone { width: 18px; height: 18px; color: var(--succes); }
.apercu-prix {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--creme); border-radius: var(--rayon); padding: 14px 16px;
}
.apercu-prix strong { font-family: 'Poppins', sans-serif; font-size: 1.4rem; }
.apercu-prix small { color: var(--encre-douce); display: block; font-size: 0.82rem; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--creme-fonce); }
.section-titre { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-titre h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-titre p { color: var(--encre-douce); font-size: 1.08rem; line-height: 1.5; }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--rayon-lg); padding: 34px 24px; text-align: center;
}
.stat-chiffre {
  font-family: 'Poppins', sans-serif; font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 700; color: var(--terracotta); line-height: 1; letter-spacing: -0.03em;
}
.stat-label { margin-top: 12px; color: var(--encre-douce); font-size: 0.98rem; line-height: 1.45; }
.stats-source { text-align: center; font-size: 0.8rem; color: var(--gris); margin-top: 20px; }

/* Étapes (vraie séquence) */
.etapes { max-width: 680px; margin: 0 auto; }
.etape { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-bottom: 36px; position: relative; }
.etape::before { content: ''; position: absolute; left: 21px; top: 48px; bottom: 0; width: 2px; background: var(--bordure); }
.etape:last-child { padding-bottom: 0; }
.etape:last-child::before { display: none; }
.etape-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--terracotta); color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem;
}
.etape h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.etape p { color: var(--encre-douce); max-width: 56ch; line-height: 1.55; }
.etape-note {
  max-width: 680px; margin: 36px auto 0; padding: 16px 20px;
  background: var(--sauge-clair); border-radius: var(--rayon); color: #3F4F37;
  display: flex; gap: 12px; align-items: flex-start; line-height: 1.5;
}
.etape-note .icone { color: #4F6146; margin-top: 2px; }

/* Atouts (liste, pas de cartes) */
.atouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 44px; max-width: 940px; margin: 0 auto; }
.atout { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.atout-icone {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--terracotta-clair); color: var(--terracotta-fonce);
  display: flex; align-items: center; justify-content: center;
}
.atout h3 { font-size: 1.1rem; margin-bottom: 4px; }
.atout p { color: var(--encre-douce); font-size: 0.95rem; line-height: 1.5; }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tarif { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon-lg); padding: 28px 24px; }
.tarif.vedette { border-color: var(--terracotta); box-shadow: var(--ombre-forte); }
.tarif-niveau { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.tarif-prix { font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 14px 0 6px; }
.tarif-prix small { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--encre-douce); letter-spacing: 0; }
.tarif p { color: var(--encre-douce); font-size: 0.95rem; line-height: 1.5; }
.tarifs-note { text-align: center; color: var(--encre-douce); font-size: 0.92rem; margin-top: 20px; }

/* Comparaison avec un courtier */
.comparatif { max-width: 680px; margin: 40px auto 0; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon-lg); padding: 24px; }
.comparatif-titre { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-douce); margin-bottom: 6px; }
.comparatif-ligne { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--bordure); }
.comparatif-ligne:first-child { border-top: 0; }
.comparatif-ligne strong { display: block; font-weight: 600; }
.comparatif-ligne span { display: block; color: var(--encre-douce); font-size: 0.93rem; line-height: 1.45; margin-top: 2px; }
.comparatif-prix { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; white-space: nowrap; color: var(--encre-douce); }
.comparatif-ligne.nous .comparatif-prix { color: var(--terracotta); font-size: 2.1rem; }
.comparatif-note { font-size: 0.8rem; color: var(--gris); line-height: 1.45; margin-top: 8px; }

/* Garanties */
.garanties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.garantie { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.garantie-icone { width: 44px; height: 44px; border-radius: 12px; background: var(--sauge-clair); color: #4F6146; display: flex; align-items: center; justify-content: center; }
.garantie h3 { font-size: 1.05rem; margin-bottom: 4px; }
.garantie p { color: var(--encre-douce); font-size: 0.93rem; line-height: 1.5; }

/* Appel final */
.cta-final {
  background: var(--encre); border-radius: var(--rayon-xl);
  padding: 56px 40px; text-align: center; color: var(--creme);
}
.cta-final h2 { color: var(--creme); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-final p { color: rgba(248, 244, 237, 0.78); margin: 0 auto 28px; max-width: 46ch; line-height: 1.55; }

/* Pied */
.pied { margin-top: 0; }
.pied-liens { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.pied-liens a { color: var(--encre-douce); font-weight: 500; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 44px 0 48px; }
  .hero-grille { grid-template-columns: 1fr; gap: 36px; }
  .stats, .tarifs, .garanties { grid-template-columns: 1fr; }
  .atouts { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .choix { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-final { padding: 44px 24px; }
  .demo { padding: 22px 18px; }
}

/* Ajustements aperçu de groupe (mobile) */
.apercu .badge { white-space: nowrap; }
@media (max-width: 600px) {
  .apercu-prix { flex-direction: column; align-items: stretch; }
  .apercu-prix .btn { width: 100%; }
}

/* Zones à toucher d'au moins 44 px sur les pages publiques (tournée finale, 20 novembre 2026). L'apparence ne change pas. */
.vitrine-nav .nav-lien, .vitrine-nav .btn { min-height: 44px; display: inline-flex; align-items: center; }
.vitrine-nav .nav-lien.nav-cache-mobile { display: inline-flex; }
@media (max-width: 860px) { .vitrine-nav .nav-lien.nav-cache-mobile { display: none; } }
.hero-note a, .pied-liens a { display: inline-block; padding: 12px 6px; margin: -12px 0; }
/* Sur deux lignes (téléphone), les zones à toucher ne doivent pas se recouvrir : pas de marge négative, lignes collées. */
.pied-liens { gap: 0 10px; }
.pied-liens a { margin: 0; }

/* Initiales à la place des emojis dans l'exemple de groupe ; boutons du haut sur une seule ligne, même sur un petit téléphone. */
.apercu-avatar { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--terracotta-fonce); }
.vitrine-nav .nav-lien, .vitrine-nav .btn { white-space: nowrap; }
@media (max-width: 380px) {
  .vitrine-nav .logo img { height: 22px; }
  .vitrine-nav .nav-lien { padding-left: 4px; padding-right: 4px; }
  .vitrine-nav .btn-primaire { padding: 7px 10px !important; }
}
