/* ════════════════════════════════════════════════════════════
   SECTIONS MARKETING : méthode (bento), parcours, DPE, prix, FAQ
   ════════════════════════════════════════════════════════════ */

/* ── Méthode : grille bento ───────────────────────── */
.bento {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 1rem;
  /* 7 cases, 12 cellules, aucune vide */
  grid-template-areas: "a a b c" "d e e f" "d g g g";
}
.bento__case:nth-child(1) { grid-area: a; }
.bento__case:nth-child(2) { grid-area: b; }
.bento__case:nth-child(3) { grid-area: c; }
.bento__case:nth-child(4) { grid-area: d; }
.bento__case:nth-child(5) { grid-area: e; }
.bento__case:nth-child(6) { grid-area: f; }
.bento__case:nth-child(7) { grid-area: g; }
.bento__case {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.6rem 1.5rem; border-radius: var(--rayon-l); overflow: hidden;
  background: var(--blanc); border: 1px solid var(--sable-200); box-shadow: var(--ombre-1);
}
.bento__case p { margin: 0; color: var(--encre-700); font-size: 0.96rem; }
.bento__case--haute { justify-content: flex-end; }
.bento__case--terracotta { background: radial-gradient(26rem 20rem at 100% 0%, rgba(226, 182, 110, 0.3), transparent 60%), var(--terracotta-800); border-color: transparent; }
.bento__case--terracotta .bento__titre, .bento__case--terracotta p { color: var(--sable-50); }
.bento__case--terracotta .bento__icone { background: rgba(251, 247, 240, 0.12); }
.bento__case--terracotta .bento__icone svg { stroke: var(--or-400); }
.bento__case--sable { background: var(--sable-100); }
.bento__icone { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--terracotta-100); margin-bottom: 0.6rem; }
.bento__icone svg { width: 28px; height: 28px; fill: none; stroke: var(--terracotta-600); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bento__titre { font-size: var(--taille-h3); }
.bento__case .bento__chiffre {
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); margin: 0;
  font: 500 clamp(3rem, 2rem + 2.6vw, 5rem)/1 var(--police-titre); font-style: italic;
  color: transparent; -webkit-text-stroke: 1.5px rgba(201, 146, 63, 0.45); pointer-events: none;
}
.bento__case--large:first-child { padding-right: 12rem; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "d e" "d f" "g g"; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; grid-template-areas: "a" "b" "c" "d" "e" "f" "g"; }
  .bento__case--large:first-child { padding-right: 1.5rem; }
  .bento__case .bento__chiffre { display: none; }
}

/* ── Parcours vendeur ─────────────────────────────── */
.parcours { background: var(--sable-100); }
.parcours__grille { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.parcours__intro { position: sticky; top: 120px; }
.parcours__intro p:last-child { color: var(--encre-700); max-width: 28rem; }
.parcours__frise { position: relative; padding-left: 4.25rem; }
.parcours__ligne { position: absolute; left: 1.35rem; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px; background: var(--sable-300); overflow: hidden; }
.parcours__remplissage { display: block; width: 100%; height: 100%; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--or-400), var(--terracotta-600)); }
.parcours__etapes { list-style: none; display: flex; flex-direction: column; gap: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.parcours__etape { position: relative; }
.parcours__etape h3 { font-size: var(--taille-h3); margin-bottom: 0.4rem; }
.parcours__etape p { margin: 0; color: var(--encre-700); max-width: 32rem; }
.parcours__puce {
  position: absolute; left: -4.25rem; top: -0.3rem; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 500 1.15rem var(--police-titre); color: var(--encre-500); background: var(--sable-50); border: 2px solid var(--sable-300);
  transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease, transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.parcours__etape.est-atteinte .parcours__puce { background: var(--terracotta-600); border-color: var(--terracotta-600); color: var(--blanc); transform: scale(1.08); }
@media (max-width: 860px) {
  .parcours__grille { grid-template-columns: 1fr; }
  .parcours__intro { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .parcours__remplissage { transform: none; }
  .parcours__puce { background: var(--terracotta-600); border-color: var(--terracotta-600); color: var(--blanc); }
}

/* ── Mini-simulateur DPE ──────────────────────────── */
.dpe-cout__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.dpe-cout__texte > p { color: var(--encre-700); max-width: 32rem; }
.dpe-cout__calendrier { margin-top: 1.75rem; padding: 1.4rem 1.5rem; border-radius: var(--rayon-m); background: var(--sable-100); }
.dpe-cout__calendrier-titre { font-weight: 700; margin-bottom: 0.9rem; }
.dpe-cout__calendrier ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.dpe-cout__calendrier li { display: flex; align-items: center; gap: 0.75rem; }
.dpe-cout__source { margin: 1rem 0 0; font-size: 0.8rem; color: var(--encre-500); }
.dpe-lettre { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 8px; font-weight: 800; color: #1B1B1B; flex: none; }
.dpe-lettre--E { background: #FBBA00; }
.dpe-lettre--F { background: #EB6909; }
.dpe-lettre--G { background: #E2001A; color: #FFFFFF; }

.dpe-calc { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); border-radius: var(--rayon-l); background: var(--blanc); border: 1px solid var(--sable-200); box-shadow: var(--ombre-3); }
.dpe-calc__titre { font: 500 var(--taille-h3) var(--police-titre); margin-bottom: 1.25rem; }
.dpe-calc__champ label, .dpe-calc__groupe legend { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.5rem; padding: 0; }
.dpe-calc__saisie { position: relative; max-width: 260px; }
.dpe-calc__saisie input {
  width: 100%; min-height: 52px; padding: 0.6rem 2.4rem 0.6rem 1rem; font: 600 1.1rem var(--police-texte); color: var(--encre-900);
  background: var(--sable-50); border: 1.5px solid var(--sable-300); border-radius: var(--rayon-m); -moz-appearance: textfield;
}
.dpe-calc__saisie input::-webkit-outer-spin-button, .dpe-calc__saisie input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dpe-calc__saisie input:focus { border-color: var(--terracotta-600); background: var(--blanc); }
.dpe-calc__saisie span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--encre-500); }
.dpe-calc__groupe { border: 0; margin: 1.25rem 0 0; padding: 0; min-width: 0; }
.dpe-calc__lettres { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.dpe-choix { position: relative; cursor: pointer; }
.dpe-choix input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.dpe-choix span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px;
  font-weight: 800; font-size: 1.05rem; color: #1B1B1B; opacity: 0.45;
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.dpe-choix:hover span { opacity: 0.8; }
.dpe-choix input:checked + span { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 3px var(--blanc), 0 0 0 5px var(--encre-900); }
.dpe-choix input:focus-visible + span { box-shadow: var(--focus); opacity: 1; }
.dpe-choix--A span { background: #009036; }
.dpe-choix--B span { background: #55AB26; }
.dpe-choix--C span { background: #C8D200; }
.dpe-choix--D span { background: #FFED00; }
.dpe-choix--E span { background: #FBBA00; }
.dpe-choix--F span { background: #EB6909; }
.dpe-choix--G span { background: #E2001A; color: #FFFFFF; }
.dpe-calc__resultat { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-radius: var(--rayon-m); background: var(--sable-50); border: 1px solid var(--sable-200); }
.dpe-calc__libelle { margin: 0; font-size: 0.86rem; color: var(--encre-500); }
.dpe-calc__montant { margin: 0.15rem 0 0.35rem; font: 500 clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem)/1.1 var(--police-titre); }
.dpe-calc__ecart { margin: 0; font-weight: 700; }
.dpe-calc__ecart--gain { color: #2E6B1F; }
.dpe-calc__ecart--perte { color: #B3261E; }
.dpe-calc__alerte { margin: 0.75rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--terracotta-800); }
.dpe-calc__info { margin: 0; }
.dpe-calc__note { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--encre-500); }
@media (max-width: 860px) { .dpe-cout__grille { grid-template-columns: 1fr; } }

/* ── Prix au m² par commune ───────────────────────── */
.prix-communes { background: var(--sable-100); }
.prix-communes__onglets { display: inline-flex; padding: 0.3rem; gap: 0.3rem; border-radius: var(--rayon-pilule); background: var(--blanc); border: 1px solid var(--sable-200); margin-bottom: 1.75rem; }
.prix-communes__onglet {
  min-height: 44px; padding: 0.5rem 1.3rem; border: 0; border-radius: var(--rayon-pilule); cursor: pointer;
  background: transparent; font: 700 0.95rem var(--police-texte); color: var(--encre-700);
  transition: background-color var(--transition), color var(--transition);
}
.prix-communes__onglet[aria-selected="true"] { background: var(--terracotta-600); color: var(--blanc); }
.prix-communes__panneau:focus-visible { border-radius: var(--rayon-m); }
.prix-communes__liste { list-style: none; columns: 2; column-gap: clamp(2rem, 1rem + 3vw, 4rem); }
.prix-commune { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 5.5rem; align-items: center; gap: 0.75rem; padding: 0.42rem 0; break-inside: avoid; font-size: 0.92rem; }
.prix-commune__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prix-commune__piste { height: 9px; border-radius: 9px; background: rgba(216, 198, 168, 0.45); overflow: hidden; }
.prix-commune__barre { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--or-400), var(--terracotta-500)); transition: width 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.prix-commune__valeur { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.prix-commune--chelles { font-weight: 700; color: var(--terracotta-800); }
.prix-commune--chelles .prix-commune__barre { background: linear-gradient(90deg, var(--terracotta-500), var(--terracotta-800)); }
.prix-communes__legende { margin: 1.5rem 0 0; font-size: 0.86rem; color: var(--encre-500); max-width: 52rem; }
@media (max-width: 860px) { .prix-communes__liste { columns: 1; } }
@media (max-width: 480px) { .prix-commune { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 4.9rem; font-size: 0.86rem; gap: 0.5rem; } }

/* ── FAQ ──────────────────────────────────────────── */
.faq__grille { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq__liste { display: flex; flex-direction: column; gap: 0.75rem; }
.faq__question { background: var(--blanc); border: 1px solid var(--sable-200); border-radius: var(--rayon-m); transition: box-shadow var(--transition), border-color var(--transition); }
.faq__question[open] { border-color: var(--sable-300); box-shadow: var(--ombre-2); }
.faq__intitule {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer;
  padding: 1.15rem 1.3rem; font-weight: 700; font-size: 1.02rem; border-radius: var(--rayon-m);
}
.faq__intitule::-webkit-details-marker { display: none; }
.faq__signe { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--terracotta-100); }
.faq__signe::before, .faq__signe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--terracotta-700); transition: transform var(--transition); }
.faq__signe::after { transform: rotate(90deg); }
.faq__question[open] .faq__signe::after { transform: rotate(0deg); }
.faq__reponse { padding: 0 1.3rem 1.2rem; color: var(--encre-700); }
.faq__reponse p { margin: 0; }
.faq__question[open] .faq__reponse { animation: faq-ouvre 300ms ease; }
@keyframes faq-ouvre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .faq__grille { grid-template-columns: 1fr; } }
