/* Pages de pré-vente : pas de menu, une colonne de lecture, des boutons vers le quiz. */

body.prevente { background: #fff; padding-bottom: 0; }
.bandeau-pub { background: var(--encre); color: #DDE3EC; font-size: 12.5px; text-align: center; padding: 7px 14px; line-height: 1.4; }
.bandeau-pub strong { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; margin-right: 2px; }

.pv-entete { border-bottom: 1px solid var(--filet); background: #fff; }
.pv-entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; max-width: 760px; }
.pv-logo { flex-direction: row; cursor: default; }
.pv-logo .logo-nom { font-size: 22px; }
.pv-logo .logo-icone { width: 28px; height: 28px; }
.pv-entete-cta { font-size: 14px; padding: 9px 14px; white-space: nowrap; }

.pv .conteneur { max-width: 760px; }
.pv-tete { padding-top: 24px; }
.pv h1 { font-size: 38px; line-height: 1.12; margin: 6px 0 12px; }
.pv-signature { font-size: 14px; color: var(--gris); margin: 0 0 14px; }
.pv-signature strong { color: var(--encre); }
.pv-chapo { font-size: 19px; line-height: 1.5; color: #2D3748; margin: 0 0 18px; }
.pv-une { margin: 0 0 18px; }
.pv-une img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.pv-une figcaption { margin-top: 4px; }

.pv-points { background: var(--teinte); border-radius: 10px; padding: 16px 20px 6px; margin: 0 0 20px; }
.pv-points-titre { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0 0 8px; color: var(--accent-texte); }
.pv-points ul { margin: 0; padding-left: 0; list-style: none; }
.pv-points li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 17px; line-height: 1.5; }
.pv-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 4px var(--teinte); border: 2px solid var(--accent); box-sizing: border-box; }

.pv sup a { color: var(--accent-texte); font-weight: 700; font-size: 11.5px; text-decoration: none; padding: 0 1px; }
.pv-cta { display: flex; width: 100%; justify-content: center; text-align: center; font-size: 17px; padding: 16px 18px; border-radius: 10px; margin-top: 18px; }
.pv-rassure { text-align: center; font-size: 13.5px; color: var(--gris); margin: 8px 0 0; }
.bouton-contour { background: #fff; color: var(--encre); border: 2px solid var(--encre); line-height: 1.3; }
.bouton-contour:hover { background: var(--clair); }

.pv-texte, .pv-calcul, .pv-liste, .pv-regions, .pv-etapes { padding-top: 30px; }
.pv h2 { font-size: 27px; line-height: 1.2; margin: 0 0 12px; }
.pv-texte p, .profil p { font-size: 18px; line-height: 1.6; margin: 0 0 14px; }

/* Calculateur à onglets */
.pv-calcul { border-top: 1px solid var(--filet); margin-top: 30px; }
.pv-calcul-intro { color: var(--gris); margin: 0 0 14px; }
.onglets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.onglets button { font: inherit; font-weight: 800; font-size: 16px; padding: 10px 8px; border-radius: 10px; border: 2px solid var(--filet); background: #fff; color: var(--encre); cursor: pointer; line-height: 1.2; }
.onglets button span { display: block; font-weight: 500; font-size: 13px; color: var(--gris); }
.onglets button[aria-selected="true"] { border-color: var(--encre); background: var(--encre); color: #fff; }
.onglets button[aria-selected="true"] span { color: #CBD5E1; }
.calcul-lignes { display: grid; gap: 12px; }
.calcul-ligne { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--clair); border-radius: 10px; padding: 12px 14px; }
.calcul-profil { font-size: 15.5px; line-height: 1.3; }
.calcul-barre { height: 10px; background: var(--filet); border-radius: 6px; overflow: hidden; }
.calcul-barre i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--accent); border-radius: 6px; transition: width .4s ease; }
.calcul-val { font-family: var(--sans); font-weight: 800; font-size: 22px; min-width: 64px; text-align: right; }
.calcul-val::after { content: " /an"; font-size: 12px; font-weight: 600; color: var(--gris); }
.calcul-ligne.fort { background: var(--teinte); }
.pv-note { font-size: 13.5px; color: var(--gris); margin: 12px 0 0; line-height: 1.5; }

/* Profils */
.pv-sous-titre { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 800; color: var(--accent-texte); border-top: 3px solid var(--encre); padding-top: 12px; margin: 10px 0 6px; }
.profil { padding: 22px 0 28px; border-bottom: 1px solid var(--filet); scroll-margin-top: 20px; }
.profil:last-child { border-bottom: 0; }
.profil-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.profil .credit { margin: 4px 0 14px; }
.profil h2 { display: flex; gap: 12px; align-items: flex-start; }
.profil h2 .num { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--encre); font-family: var(--sans); font-weight: 800; font-size: 19px; margin-top: 1px; }
.profil-chiffre { background: var(--clair); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 12px 14px; }
.pv-perdants .pv-sous-titre { color: #9F1239; }
.pv-intro-perdants { font-size: 17px; color: var(--gris); margin: 0 0 4px; }
.profil-perdant h2 .num { background: var(--encre); color: #fff; }
.profil-perdant .profil-chiffre { border-left-color: var(--encre); }
.profil-perdant .profil-photo { filter: saturate(.75); }

/* Régions */
.pv-regions { border-top: 3px solid var(--encre); margin-top: 10px; }
.pv-regions p { color: var(--gris); margin: 0 0 14px; }
.regions-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.regions-grille a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px; border-radius: 10px; border: 1.5px solid var(--filet); font-weight: 700; font-size: 14.5px; line-height: 1.2; background: #fff; }
.regions-grille a:hover { border-color: var(--encre); background: var(--teinte); }

/* Étapes */
.pv-etapes ol { counter-reset: e; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.pv-etapes li { counter-increment: e; position: relative; padding: 14px 14px 14px 56px; background: var(--clair); border-radius: 10px; font-size: 16.5px; line-height: 1.5; }
.pv-etapes li::before { content: counter(e); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.pv-conseil { font-size: 15px; color: var(--gris); border-left: 3px solid var(--filet); padding-left: 12px; }

.pv-sources { margin-top: 36px; }
.pv-sources ol { font-size: 13.5px; }

/* Information France Rénov' (texte imposé, annexe I) */
.pv-france-renov { max-width: 760px; margin: 28px auto 0; padding: 0 20px; }

.pv-pied { background: var(--clair); border-top: 1px solid var(--filet); margin-top: 30px; padding: 22px 0 90px; font-size: 13.5px; color: var(--gris); }
.pv-pied .conteneur { max-width: 760px; }
.pv-pied p { margin: 0 0 10px; }
.pv-pied-bas { color: #8A94A6; }

/* Barre fixe : téléphone seulement */
.barre-fixe { display: none; }
@media (max-width: 680px) {
  .barre-fixe { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--filet); box-shadow: 0 -4px 18px rgba(11, 20, 38, .08); transform: translateY(110%); transition: transform .25s ease; }
  .barre-fixe.visible { transform: none; }
  .barre-fixe .bouton { display: flex; justify-content: center; width: 100%; font-size: 16.5px; padding: 14px; border-radius: 10px; }
  .bandeau-pub { font-size: 11.5px; }
  .pv-entete-ligne { padding-top: 10px; padding-bottom: 10px; }
  .pv-logo .logo-nom { font-size: 19px; }
  .pv-logo .logo-icone { width: 24px; height: 24px; }
  .pv-entete-cta { font-size: 13px; padding: 8px 11px; }
  .pv h1 { font-size: 28px; }
  .pv-chapo { font-size: 17.5px; }
  .pv h2 { font-size: 23px; }
  .pv-texte p, .profil p { font-size: 17px; }
  .pv-points li { font-size: 16px; }
  .calcul-ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .calcul-barre { grid-column: 1 / -1; order: 3; }
  .calcul-val { font-size: 20px; }
  .regions-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profil h2 .num { width: 32px; height: 32px; font-size: 16px; }
}
.pv-logo .logo-nom { white-space: nowrap; }
@media (max-width: 680px) { .pv-logo .logo-nom { font-size: 17px; } .pv-logo .logo-ligne { gap: 6px; } }
@media (max-width: 360px) { .pv-logo .logo-nom { font-size: 15px; } }
.profil-photo, .pv-une img { height: auto; }
html:has(body.prevente) { scroll-padding-top: 0; }
.profil { scroll-margin-top: 8px; }

/* Ce qui change en 2027 */
.pv-2027 { border-top: 3px solid var(--encre); margin-top: 10px; }
.pv-2027-date { font-size: 14px !important; color: var(--gris); }
.tableau-2027 { display: grid; gap: 10px; }
.ligne-2027 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; background: var(--clair); border-radius: 10px; padding: 14px 16px; }
.ligne-2027 .sujet { font-weight: 800; font-size: 16px; }
.ligne-2027 .etat { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.ligne-2027 .etat.stable { background: #E6FAF4; color: #087A63; }
.ligne-2027 .etat.attendu { background: #EEF2FF; color: #3730A3; }
.ligne-2027 .etat.change { background: #FEF3C7; color: #92400E; }
.ligne-2027 p { grid-column: 1 / -1; font-size: 16px !important; margin: 4px 0 0 !important; line-height: 1.5; }
@media (max-width: 680px) { .ligne-2027 { grid-template-columns: 1fr; } .ligne-2027 .etat { justify-self: start; } }
.pv-france-renov .france-renov { border: 1px solid var(--filet); }

/* Encadré final (28/11/2026, « mettre mieux les boutons ») */
.pv-final { margin-top: 22px; padding: 22px 18px; border: 2px solid var(--cta-fonce); border-radius: 12px; background: #F0FBF7; text-align: center; }
.pv-final-titre { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.pv-final > p { margin: 0 0 4px; }
.pv-final .pv-cta { margin-top: 12px; }
