/* prixdemonlogement.fr — feuille de style unique, mobile d'abord */
:root {
  --bleu: #2F5BEA; --bleu-fonce: #1F45C4; --bleu-clair: #EDF1FE; --bleu-ligne: #B9C8FA;
  --nuit: #1D1D1F; --texte-2: #3A3A3F; --gris: #6E6E73; --gris-clair: #C7C7CC;
  --brume: #F5F5F7; --ligne: #E3E3E8; --blanc: #FFFFFF;
  --vert: #1E7D4F; --vert-clair: #E8F4EE; --rouge: #B3261E; --rouge-clair: #FCECEA; --orange: #B4560B; --orange-clair: #FDF1E6;
  --rayon: 18px; --rayon-petit: 12px;
  --ombre: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --largeur: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); color: var(--nuit); background: var(--brume); line-height: 1.5;
  font-size: 16px; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu-ligne); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.discret { color: var(--gris); }
.petit { font-size: 13px; }
.hausse { color: var(--vert); }
.baisse { color: var(--rouge); }
[hidden] { display: none !important; }

/* ------------------------------------------------ en-tête et pied */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(0,0,0,.06); }
.entete-in { max-width: var(--largeur); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.marque { display: inline-flex; align-items: center; gap: 9px; color: var(--nuit); font-weight: 650; letter-spacing: -0.01em; font-size: 15px; }
.marque:hover { text-decoration: none; }
.marque svg { flex: none; }
.tld { color: var(--gris); font-weight: 500; }
.entete-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.entete-nav a:not(.btn) { color: var(--texte-2); }
@media (max-width: 720px) { .entete-nav a:not(.btn) { display: none; } .marque span { font-size: 14px; } }
@media (max-width: 380px) { .marque .tld { display: none; } }
.pied { background: var(--blanc); border-top: 1px solid var(--ligne); margin-top: 64px; }
.pied-in { max-width: var(--largeur); margin: 0 auto; padding: 32px 16px 40px; display: grid; gap: 20px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.pied nav a { color: var(--texte-2); }
@media (min-width: 800px) { .pied-in { grid-template-columns: 1.2fr 1fr; } .pied-in > .petit { grid-column: 1 / -1; } }

/* ------------------------------------------------ boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0;
  border-radius: 999px; background: var(--bleu); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--bleu-fonce); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.charge { opacity: .45; pointer-events: none; }
.btn-petit { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-second { background: var(--blanc); color: var(--nuit); border: 1px solid var(--ligne); }
.btn-second:hover { background: var(--brume); }
.btn-texte { background: none; color: var(--bleu); padding: 0 8px; min-height: 40px; }
.btn-texte:hover { background: var(--bleu-clair); }
.btn-large { width: 100%; }
.btn-nuit { background: var(--nuit); } .btn-nuit:hover { background: #000; }
.champ { display: block; margin-bottom: 14px; }
.champ > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.entree { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--ligne); border-radius: var(--rayon-petit);
  background: var(--blanc); font-size: 17px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.entree:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px var(--bleu-clair); }
.entree-unite { position: relative; }
.entree-unite .entree { padding-right: 52px; }
.entree-unite::after { content: attr(data-unite); position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gris); pointer-events: none; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--texte-2); cursor: pointer; margin: 12px 0; }
.case input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bleu); flex: none; }

/* ------------------------------------------------ mise en page */
.page { max-width: var(--largeur); margin: 0 auto; padding: 24px 16px 0; }
.page-etroite { max-width: 680px; margin: 0 auto; padding: 24px 16px 0; }
.carte { background: var(--blanc); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.section { margin-top: 44px; }
.grille-2 { display: grid; gap: 16px; }
.grille-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grille-2 { grid-template-columns: 1fr 1fr; } .grille-3 { grid-template-columns: repeat(3, 1fr); } }
.sur-titre { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--gris); text-transform: uppercase; margin-bottom: 6px; }
.chapeau { font-size: clamp(17px, 2.2vw, 21px); color: var(--gris); max-width: 720px; }
.fil { font-size: 13px; color: var(--gris); margin-bottom: 18px; }
.fil a { color: var(--gris); }
.titre-page { margin-bottom: 24px; }
.vide { text-align: center; padding-top: 80px; }
.vide .chapeau { margin: 0 auto 24px; }
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--brume); color: var(--texte-2); }
.pastille-excellente, .pastille-bonne { background: var(--vert-clair); color: var(--vert); }
.pastille-moyenne { background: var(--orange-clair); color: var(--orange); }
.pastille-faible { background: var(--rouge-clair); color: var(--rouge); }
.alerte { padding: 14px 16px; border-radius: var(--rayon-petit); background: var(--bleu-clair); color: var(--bleu-fonce); font-size: 14px; margin: 12px 0; }
.alerte-erreur { background: var(--rouge-clair); color: var(--rouge); }

/* ------------------------------------------------ accueil */
.heros { max-width: 760px; margin: 0 auto; padding: 48px 16px 8px; text-align: center; }
.heros h1 { margin-bottom: 14px; }
.heros h1 em { font-style: normal; color: var(--bleu); }
.heros .chapeau { margin: 0 auto 28px; }
.profil { display: inline-flex; background: #E9E9EE; border-radius: 999px; padding: 3px; margin-bottom: 16px; }
.profil button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--texte-2); cursor: pointer; }
.profil button[aria-pressed="true"] { background: var(--blanc); color: var(--nuit); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.recherche { position: relative; text-align: left; }
.recherche .entree { min-height: 60px; padding-left: 50px; border-radius: 999px; font-size: 17px; box-shadow: var(--ombre); border-color: transparent; }
.recherche .loupe { position: absolute; left: 18px; top: 19px; color: var(--gris); pointer-events: none; }
.suggestions { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 8px); background: var(--blanc); border-radius: var(--rayon);
  box-shadow: 0 12px 40px rgba(0,0,0,.14); list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; }
.suggestions li { padding: 12px 14px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; }
.suggestions li small { color: var(--gris); }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--brume); }
.garanties { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 20px; font-size: 14px; color: var(--gris); }
.garanties span::before { content: "✓"; color: var(--vert); font-weight: 700; margin-right: 6px; }
.etapes-accueil { counter-reset: e; }
.etapes-accueil .carte { position: relative; padding-top: 58px; }
.etapes-accueil .carte::before { counter-increment: e; content: counter(e); position: absolute; top: 20px; left: 22px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bleu-clair); color: var(--bleu); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.apercu { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .apercu { grid-template-columns: 1fr 1fr; gap: 48px; } }
.liste-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-coches li { padding-left: 28px; position: relative; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--vert-clair)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%231E7D4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gris); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--texte-2); }

/* ------------------------------------------------ pages ville */
.kpi-valeur { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 4px; }
.kpi-valeur span { font-size: 18px; color: var(--gris); font-weight: 500; margin-left: 4px; }
.kpi-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--ligne); }
.kpi-details dt { font-size: 12px; color: var(--gris); }
.kpi-details dd { margin: 0; font-weight: 600; }
.cta-carte { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; background: var(--nuit); color: #fff; }
.cta-carte:hover { text-decoration: none; }
.cta-carte .discret { color: #A1A1A6; margin: 0; }
.cta-titre { font-size: 21px; font-weight: 650; margin-bottom: 4px; letter-spacing: -0.01em; }
.cta-titre em { font-style: normal; color: #8FA9FF; }
@media (min-width: 760px) { .cta-carte { flex-direction: row; align-items: center; justify-content: space-between; } }
.graphique { margin: 16px 0 0; }
.graphique figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.graphique h2 { font-size: 20px; }
.graphique svg { width: 100%; height: auto; margin: 8px 0; }
.legende { display: flex; gap: 14px; font-size: 13px; color: var(--gris); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.g-grille { stroke: var(--ligne); stroke-dasharray: 3 4; }
.g-axe { font-size: 11px; fill: var(--gris); }
.g-etiquette { font-size: 12px; font-weight: 700; }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; font-size: 12px; color: var(--gris); font-weight: 600; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--ligne); }
.tableau td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--ligne); font-variant-numeric: tabular-nums; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau th:not(:first-child), .tableau td:not(:first-child) { text-align: right; }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.champ-recherche input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--rayon-petit); border: 1px solid var(--ligne); background: var(--blanc); font-size: 16px; }
.liste-communes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; }
.liste-communes a { color: var(--texte-2); display: block; padding: 6px 0; }

/* ------------------------------------------------ questionnaire */
.q-cadre { max-width: 1080px; margin: 0 auto; padding: 16px 16px 120px; display: grid; gap: 20px; }
@media (min-width: 960px) { .q-cadre { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; padding-top: 28px; } }
.q-progression { height: 4px; background: var(--ligne); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.q-progression i { display: block; height: 100%; background: var(--bleu); border-radius: 4px; transition: width .35s ease; }
.q-etape-num { font-size: 13px; color: var(--gris); font-weight: 600; margin-bottom: 6px; }
.q-titre { font-size: clamp(26px, 5vw, 34px); margin-bottom: 6px; }
.q-intro { color: var(--gris); margin-bottom: 20px; }
.q-question { padding: 20px 0; border-top: 1px solid var(--ligne); }
.q-question:first-of-type { border-top: 0; padding-top: 4px; }
.q-libelle { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.q-aide { font-size: 14px; color: var(--gris); margin-bottom: 12px; }
.q-pourquoi { border: 0; background: none; color: var(--bleu); font-size: 13px; font-weight: 500; cursor: pointer; padding: 0; white-space: nowrap; }
.q-explication { font-size: 14px; background: var(--brume); border-radius: var(--rayon-petit); padding: 12px 14px; color: var(--texte-2); margin-bottom: 12px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--blanc); cursor: pointer;
  font-size: 15px; font-weight: 500; transition: all .12s; text-align: left; color: var(--nuit); }
.choix button:hover { border-color: var(--gris-clair); }
.choix button[aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.choix button.nsp { color: var(--gris); border-style: dashed; }
.choix button.nsp[aria-pressed="true"] { background: var(--gris); border-color: var(--gris); color: #fff; border-style: solid; }
.choix-grand button { border-radius: var(--rayon-petit); padding: 14px 16px; flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; }
.choix-grand button small { font-weight: 400; opacity: .75; font-size: 13px; }
.choix-dpe button { min-width: 48px; text-align: center; font-weight: 700; border-radius: 10px; padding: 10px 0; flex: 1; }
.choix-dpe button[data-v="A"] { --c: #009C6D; } .choix-dpe button[data-v="B"] { --c: #52B153; } .choix-dpe button[data-v="C"] { --c: #A5CC74; }
.choix-dpe button[data-v="D"] { --c: #F2D03B; } .choix-dpe button[data-v="E"] { --c: #F0A331; } .choix-dpe button[data-v="F"] { --c: #E8692A; } .choix-dpe button[data-v="G"] { --c: #D7262B; }
.choix-dpe button[data-v]:not(.nsp) { border-left: 5px solid var(--c); }
.choix-dpe button[data-v][aria-pressed="true"]:not(.nsp) { background: var(--c); border-color: var(--c); color: var(--nuit); }
.choix-dpe .nsp { flex-basis: 100%; }
.compteur { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: 999px; background: var(--blanc); }
.compteur button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--bleu); border-radius: 50%; }
.compteur button:disabled { color: var(--gris-clair); }
.compteur output { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.compteurs { display: grid; gap: 10px; }
.compteurs > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.suggestion-donnee { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--vert-clair); color: var(--vert);
  padding: 12px 14px; border-radius: var(--rayon-petit); font-size: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.suggestion-donnee button { background: var(--vert); color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; font-size: 13px; }
.q-sous { margin-top: 12px; padding: 14px; border-radius: var(--rayon-petit); background: var(--brume); }
.q-sous .q-libelle { font-size: 15px; }
.q-actions { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--ligne); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.q-actions-in { max-width: 1080px; margin: 0 auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.q-actions .btn { flex: 1; max-width: 360px; margin-left: auto; }
/* jauge latérale */
.jauge { position: sticky; top: 76px; }
.jauge .carte { padding: 20px; }
.jauge-prix { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; filter: blur(9px); user-select: none; margin: 4px 0; color: var(--nuit); }
.jauge-ligne { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--ligne); font-size: 14px; }
.jauge-ligne strong { font-variant-numeric: tabular-nums; }
.barre { height: 6px; border-radius: 6px; background: var(--ligne); overflow: hidden; margin-top: 6px; }
.barre i { display: block; height: 100%; background: var(--vert); border-radius: 6px; transition: width .4s ease; }
.jauge-mobile { position: sticky; top: 57px; z-index: 12; margin: -16px -16px 12px; padding: 10px 16px; background: rgba(245,245,247,.92); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: 1px solid var(--ligne); }
.jauge-mobile strong { font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .jauge-mobile { display: none; } }
@media (max-width: 959px) { .jauge { display: none; } }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; background: var(--nuit); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: all .25s; pointer-events: none; white-space: nowrap; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sommaire { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.sommaire li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--gris); cursor: pointer; }
.sommaire li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--gris-clair); flex: none; }
.sommaire li.faite { color: var(--texte-2); } .sommaire li.faite::before { background: var(--vert); border-color: var(--vert); }
.sommaire li.active { color: var(--nuit); font-weight: 600; } .sommaire li.active::before { border-color: var(--bleu); background: var(--bleu); }
.adresse-rappel { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--texte-2); margin-bottom: 14px; }
.adresse-rappel a { font-size: 13px; }
.recap dl { margin: 0; }
.recap dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); font-size: 15px; }
.recap dt { color: var(--gris); } .recap dd { margin: 0; text-align: right; font-weight: 500; }

/* ------------------------------------------------ résultat */
.verrou { text-align: center; }
.prix-flou { font-size: clamp(40px, 9vw, 60px); font-weight: 700; letter-spacing: -0.03em; filter: blur(14px); user-select: none; margin: 8px 0; }
.prix-grand { font-size: clamp(44px, 10vw, 68px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.fourchette { margin: 22px 0 6px; }
.fourchette-barre { position: relative; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--bleu-clair), var(--bleu-ligne), var(--bleu-clair)); }
.fourchette-barre i { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transform: translate(-50%, -50%); }
.fourchette-bornes { display: flex; justify-content: space-between; font-size: 14px; color: var(--gris); margin-top: 8px; font-variant-numeric: tabular-nums; }
.fourchette-bornes strong { color: var(--nuit); display: block; font-size: 16px; }
.criteres { list-style: none; padding: 0; margin: 0; }
.criteres li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--ligne); }
.criteres li:last-child { border-bottom: 0; }
.fleche { font-weight: 600; font-size: 14px; }
.offre { border: 2px solid var(--bleu); position: relative; }
.offre-prix { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.offre-prix small { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--gris); letter-spacing: 0; }
.etiquette-offre { position: absolute; top: -12px; left: 22px; background: var(--bleu); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.annonce { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--rayon-petit); background: var(--brume); margin-top: 14px; }
.annonce strong { font-size: 22px; }
.chargement { display: grid; place-items: center; min-height: 50vh; color: var(--gris); text-align: center; gap: 14px; }
.roue { width: 34px; height: 34px; border: 3px solid var(--ligne); border-top-color: var(--bleu); border-radius: 50%; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ------------------------------------------------ rapport (écran et impression) */
.rapport { max-width: 860px; margin: 0 auto; padding: 24px 16px 0; }
.rapport-barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.feuille { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: clamp(20px, 5vw, 48px); }
.feuille + .feuille { margin-top: 20px; }
.feuille h2 { font-size: 22px; margin-top: 8px; }
.feuille-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--nuit); padding-bottom: 16px; margin-bottom: 24px; }
.feuille-entete .petit { text-align: right; }
.synthese { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 700px) { .synthese { grid-template-columns: repeat(3, 1fr); } }
.synthese > div { background: var(--brume); border-radius: var(--rayon-petit); padding: 14px 16px; }
.synthese strong { display: block; font-size: 22px; letter-spacing: -0.02em; }
.cascade td:last-child { font-weight: 600; }
.cascade .total td { border-top: 2px solid var(--nuit); font-weight: 700; font-size: 17px; }
.avertissement { font-size: 12px; color: var(--gris); border-top: 1px solid var(--ligne); padding-top: 14px; margin-top: 24px; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .entete, .pied, .rapport-barre, .non-imprime { display: none !important; }
  .rapport { padding: 0; max-width: none; }
  .feuille { box-shadow: none; border-radius: 0; padding: 0; break-after: page; }
  .feuille:last-child { break-after: auto; }
  .tableau { font-size: 9.5pt; }
  .tableau tr { break-inside: avoid; }
  a { color: inherit; }
}

/* ------------------------------------------------ textes longs (légal, méthode) */
.texte h2 { margin-top: 36px; font-size: 22px; }
.texte h3 { margin-top: 24px; }
.texte p, .texte li { color: var(--texte-2); }
.texte .a-completer { background: #FFF6D6; color: #6B5300; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ------------------------------------------------ tableau de bord */
.stats-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 860px) { .stats-kpis { grid-template-columns: repeat(5, 1fr); } }
.stats-kpis .carte { padding: 16px; }
.stats-kpis strong { display: block; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats-kpis span { font-size: 13px; color: var(--gris); }
.entonnoir { display: grid; gap: 10px; }
.entonnoir > div { display: grid; grid-template-columns: 170px 1fr 110px; gap: 12px; align-items: center; font-size: 14px; }
.entonnoir .barre { height: 22px; border-radius: 6px; margin: 0; background: var(--brume); }
.entonnoir .barre i { background: var(--bleu); border-radius: 6px; }
@media (max-width: 600px) { .entonnoir > div { grid-template-columns: 1fr 80px; } .entonnoir .barre { grid-column: 1 / -1; grid-row: 2; } }
.histo { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 10px; }
.histo i { flex: 1; background: var(--bleu); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.histo i:hover { background: var(--bleu-fonce); }

/* Tableaux du rapport sur mobile : défilement horizontal plutôt que des cellules écrasées */
@media screen and (max-width: 640px) {
  .defile .tableau { min-width: 560px; }
  .defile .tableau td, .defile .tableau th { white-space: nowrap; }
  .defile .tableau.cascade { min-width: 0; }
  .defile .tableau.cascade td, .defile .tableau.cascade th { white-space: normal; }
  .defile .tableau.cascade td:last-child { white-space: nowrap; }
}

/* Offre : aperçu flouté du rapport et gain chiffré */
.apercu-rapport { position: relative; background: var(--brume, #F5F5F7); border-radius: 14px; padding: 12px 14px; margin-top: 14px; overflow: hidden; }
.apercu-rapport .tableau { filter: blur(3px); user-select: none; font-size: 14px; margin: 0; }
.apercu-cadenas { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); background: #1D1D1F; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.gain { background: #EAF5EE; color: #14532D; border-radius: 12px; padding: 10px 14px; font-size: 15px; }

/* Rapport enrichi */
.sommaire-rapport { columns: 2; column-gap: 28px; padding-left: 20px; }
.sommaire-rapport li { margin: 4px 0; break-inside: avoid; }
.ligne-vous td { font-weight: 700; color: var(--bleu); }
.cases-rapport { list-style: none; padding: 0; }
.cases-rapport li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--ligne); }
.cases-rapport li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border: 2px solid var(--nuit); border-radius: 5px; }
@media (max-width: 640px) { .sommaire-rapport { columns: 1; } }
.tableau.strategie td, .tableau.strategie th { white-space: normal; }
.tableau.strategie td:nth-child(2), .tableau.strategie th:nth-child(2) { white-space: nowrap; padding-right: 16px; }
.tableau.strategie td:last-child, .tableau.strategie th:last-child { text-align: left; }
.defile .tableau.strategie { min-width: 0; }
@media screen and (max-width: 640px) { .defile .tableau.strategie td, .defile .tableau.strategie th { white-space: normal; } .defile .tableau.strategie td:nth-child(2) { white-space: nowrap; } }
.defile .tableau.compact { min-width: 0; }
