/* ============================================================
   Dossimmo — feuille de style
   Direction : luxe éditorial. Encre profonde, ivoire chaud,
   or patiné. Cormorant Garamond (display) + Jost (corps).
   ============================================================ */

:root {
  --bg: #F8F5EF;
  --surface: #FFFFFF;
  --ink: #0F1A22;
  --ink-2: #1A2833;
  --ink-soft: #4C5A64;
  --ink-faint: #8B959D;
  --gold: #B08D3F;
  --gold-bright: #C9A85C;
  --gold-soft: #F3ECDC;
  --gold-line: #D9C79E;
  --good: #3E7257;
  --good-soft: #E6EFE9;
  --warn: #A96B2C;
  --warn-soft: #F6ECDD;
  --bad: #9E4232;
  --bad-soft: #F5E6E2;
  --line: #E5DFD2;
  --shadow: 0 10px 40px rgba(15, 26, 34, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; }

a { color: var(--gold); }
strong { font-weight: 500; }

.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Structure ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header.site {
  background: var(--ink);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(201, 168, 92, 0.25);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  letter-spacing: 0.04em; color: #F5F1E8; text-decoration: none;
}
.logo span { color: var(--gold-bright); font-style: italic; }
nav.top { display: flex; gap: 30px; }
nav.top a {
  color: #B9C1C7; text-decoration: none; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400;
}
nav.top a:hover, nav.top a:focus-visible { color: var(--gold-bright); }
@media (max-width: 720px) { nav.top { display: none; } }

/* ---------- Héros ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(13, 22, 29, 0.96) 0%, rgba(13, 22, 29, 0.88) 45%, rgba(13, 22, 29, 0.62) 100%),
    url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=2000&q=80&auto=format&fit=crop") center 40%/cover no-repeat,
    linear-gradient(175deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #EDE8DD;
  padding: 84px 0 96px;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-bright); font-weight: 500; margin-bottom: 18px;
}
.eyebrow::before { content: "— "; }

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-bottom: 22px; color: #F7F3EA; }
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero p.lead { color: #C4CBD1; font-size: 1.1rem; max-width: 32em; margin-bottom: 14px; font-weight: 300; }
.hero p.lead strong { color: #EDE8DD; font-weight: 400; }
.hero p.lead-discret { color: #98A3AB; font-size: 0.98rem; margin-bottom: 38px; }
.hero p.lead-discret strong { color: var(--gold-bright); font-weight: 400; }

.hero-marks { display: flex; gap: 36px; flex-wrap: wrap; border-top: 1px solid rgba(201,168,92,0.25); padding-top: 26px; }
.mark { display: flex; flex-direction: column; gap: 2px; }
.mk-n { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--gold-bright); }
.mk-t { font-size: 0.75rem; color: #98A3AB; letter-spacing: 0.04em; }

/* ---------- Carte formulaire ---------- */
.card {
  background: var(--surface);
  border-radius: 3px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 34px 36px 30px;
  color: var(--ink);
}
.card h2 { font-size: 1.55rem; margin-bottom: 4px; }
.card .sub { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 18px; letter-spacing: 0.02em; }

.steps { display: flex; gap: 6px; margin-bottom: 24px; }
.steps .dot { flex: 1; height: 2px; background: var(--line); }
.steps .dot.on { background: var(--gold); }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 0.72rem; font-weight: 500; margin-bottom: 7px;
  color: var(--ink-soft); letter-spacing: 0.12em; text-transform: uppercase;
}
.field label .opt { font-weight: 400; color: var(--ink-faint); text-transform: none; letter-spacing: 0.02em; }
.field input[type="text"], .field input[type="number"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; padding: 11px 13px; font-size: 0.98rem;
  border: 1px solid var(--line); border-radius: 2px;
  background: #FCFBF8; color: var(--ink); font-family: inherit; font-weight: 300;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 63, 0.15);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* Segmented control */
.seg { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.seg button {
  flex: 1; padding: 10px 6px; background: #FCFBF8; border: none; cursor: pointer;
  font-size: 0.88rem; color: var(--ink-soft); font-family: inherit; font-weight: 400;
  border-right: 1px solid var(--line); transition: background 0.15s, color 0.15s;
}
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--ink); color: var(--gold-bright); font-weight: 500; }
.seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* Autocomplétion adresse */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-top: none;
  box-shadow: var(--shadow); max-height: 250px; overflow-y: auto;
}
.ac-list button {
  display: block; width: 100%; text-align: left; padding: 10px 13px;
  background: none; border: none; cursor: pointer; font-size: 0.92rem; font-family: inherit;
  color: var(--ink); font-weight: 300;
}
.ac-list button:hover, .ac-list button:focus-visible { background: var(--gold-soft); outline: none; }
.ac-list .ctx { color: var(--ink-faint); font-size: 0.8rem; }

/* Photos */
.photo-zone {
  border: 1px dashed var(--gold-line); border-radius: 2px; padding: 20px;
  text-align: center; color: var(--ink-faint); font-size: 0.88rem; cursor: pointer;
  background: #FCFBF8; transition: border-color 0.15s;
}
.photo-zone:hover { border-color: var(--gold); color: var(--gold); }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-thumbs .ph { position: relative; width: 76px; height: 58px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumbs .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumbs .ph button {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  border-radius: 50%; border: none; background: rgba(15,26,34,0.8); color: #fff;
  font-size: 11px; line-height: 1; cursor: pointer;
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 2px; border: none; cursor: pointer;
  font-size: 0.82rem; font-weight: 500; font-family: inherit; text-decoration: none;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: var(--gold-bright); width: 100%; }
.btn-primary:hover { background: var(--ink-2); }
.btn-brass { background: var(--gold); color: #FFF; }
.btn-brass:hover { background: var(--gold-bright); color: var(--ink); }
.btn-ghost { background: none; border: 1px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: 0.5; cursor: wait; }

/* ---------- Galerie ---------- */
.gallery-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .gallery-band { grid-template-columns: repeat(2, 1fr); } }
.gallery-band figure { position: relative; margin: 0; overflow: hidden; height: 240px; }
.gallery-band img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-band figure:hover img { transform: scale(1.05); }
.gallery-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(13,22,29,0.75));
  color: #F5F1E8; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Exemple avec visuel ---------- */
.exemple-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: center; max-width: none; }
@media (max-width: 860px) { .exemple-grid { grid-template-columns: 1fr; } }
.exemple-visuel { margin: 0; position: relative; }
.exemple-visuel img { width: 100%; height: 360px; object-fit: cover; display: block; box-shadow: var(--shadow); }
.exemple-visuel::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold-line); z-index: -1;
}
.exemple-visuel figcaption {
  margin-top: 14px; font-size: 0.8rem; color: var(--ink-faint);
  font-style: italic; font-family: var(--font-display); font-size: 1rem;
}

/* ---------- Retour dans le formulaire ---------- */
.back-link {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--ink-faint); font-size: 0.82rem; padding: 0; margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.back-link:hover, .back-link:focus-visible { color: var(--gold); outline: none; text-decoration: underline; }

/* ---------- Sections ---------- */
section.band { padding: 76px 0; }
section.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2.title { font-size: 2.1rem; margin-bottom: 12px; }
.band p.intro { color: var(--ink-soft); max-width: 42em; margin-bottom: 36px; font-size: 1.02rem; }

/* Plan du rapport */
.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: toc; }
.toc-item {
  background: var(--surface); padding: 26px 24px 22px; position: relative; counter-increment: toc;
}
section.band.alt .toc-item { background: var(--bg); }
.toc-item::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1rem; color: var(--gold); font-weight: 600;
  display: block; margin-bottom: 8px; font-style: italic;
}
.toc-item h3 { font-size: 1.18rem; margin-bottom: 6px; }
.toc-item p { font-size: 0.87rem; color: var(--ink-soft); }
.toc-item .free-tag, .toc-item .paid-tag, .toc-item .private-tag {
  position: absolute; top: 22px; right: 20px; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 1px;
}
.toc-item .free-tag { background: var(--good-soft); color: var(--good); }
.toc-item .paid-tag { background: var(--gold-soft); color: var(--gold); }
.toc-item .private-tag { background: var(--ink); color: var(--gold-bright); }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1100px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 480px; } }
.price-card { background: var(--bg); border: 1px solid var(--line); padding: 34px 32px; }
.price-card.featured { background: var(--ink); color: #E7E2D6; border: 1px solid var(--gold); position: relative; }
.price-card.featured::before {
  content: "Recommandé"; position: absolute; top: -12px; left: 28px;
  background: var(--gold); color: #fff; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 12px;
}
.price-card h3 { font-size: 1.35rem; }
.price-card.featured h3 { color: #F5F1E8; }
.price-card .amount { font-family: var(--font-display); font-size: 2.7rem; font-weight: 600; margin: 10px 0 4px; }
.price-card.featured .amount { color: var(--gold-bright); }
.price-card .amount small { font-size: 0.95rem; color: var(--ink-faint); font-family: var(--font-body); font-weight: 300; }
.price-card.featured .amount small { color: #98A3AB; }
.price-card ul { list-style: none; margin: 18px 0 24px; }
.price-card li { padding: 6px 0 6px 26px; position: relative; font-size: 0.92rem; color: var(--ink-soft); }
.price-card.featured li { color: #C4CBD1; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.price-card li.no { opacity: 0.5; }
.price-card li.no::before { content: "·"; color: var(--ink-faint); }

/* Exemple */
.exemple-grid { max-width: 720px; }

/* ---------- Résultats ---------- */
#resultat { scroll-margin-top: 90px; }
.result-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.result-addr { color: var(--ink-soft); font-size: 0.95rem; font-style: italic; font-family: var(--font-display); font-size: 1.1rem; }

.estimate-hero {
  background: var(--ink); color: #EDE8DD; border-top: 3px solid var(--gold);
  padding: 40px 30px; text-align: center; margin-bottom: 26px;
}
.estimate-hero .label { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 10px; }
.estimate-hero .value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 3.4rem); color: #F7F3EA; }
.estimate-hero .range { color: #98A3AB; font-size: 0.98rem; margin-top: 8px; }
.estimate-hero .m2 { display: inline-block; margin-top: 16px; border: 1px solid rgba(201,168,92,0.4); padding: 6px 18px; font-size: 0.82rem; color: var(--gold-bright); letter-spacing: 0.06em; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 24px; }
.kpi { background: var(--surface); padding: 18px 20px; }
.kpi .k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-bottom: 5px; }
.kpi .v { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.kpi .d { font-size: 0.78rem; color: var(--ink-soft); }

.note-source { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 30px; }
.note-source button.link { background: none; border: none; color: var(--gold); cursor: pointer; font-size: 0.82rem; text-decoration: underline; padding: 0; font-family: inherit; }

/* Zone verrouillée */
.locked { position: relative; border: 1px solid var(--line); overflow: hidden; margin-bottom: 26px; background: var(--surface); }
.locked .preview { filter: blur(6px); pointer-events: none; user-select: none; padding: 28px; }
.locked .preview h3 { font-size: 1.2rem; margin: 10px 0 4px; }
.locked .veil {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(248,245,239,0.3), rgba(248,245,239,0.95));
  padding: 28px;
}
.locked .veil h3 { font-size: 1.7rem; }
.locked .veil p { color: var(--ink-soft); max-width: 34em; font-size: 0.95rem; }

/* Chips risques */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; font-size: 0.82rem; font-weight: 400; border-radius: 1px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.na { background: #EEECE5; color: var(--ink-faint); }

/* Spinner */
.loading { display: flex; align-items: center; gap: 14px; padding: 28px; color: var(--ink-soft); font-style: italic; }
.spin { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Progression dans le formulaire */
.loading-inline {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  color: var(--ink-soft); font-size: 0.9rem; font-style: italic;
}
.loading-inline .spin { width: 18px; height: 18px; flex-shrink: 0; }

/* Espace pro */
.pro-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 26, 34, 0.65); padding: 20px;
}
.pro-box {
  background: var(--surface); border-top: 3px solid var(--gold); box-shadow: var(--shadow);
  padding: 32px 34px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.pro-box h3 { font-size: 1.5rem; margin-bottom: 4px; }
.pro-box .sub { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 18px; }
#pro-logo-apercu img { max-height: 60px; max-width: 220px; border: 1px solid var(--line); padding: 6px; background: #fff; }

/* Bandeau professionnel dans les rapports */
.report .pro-bar {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--gold-line); padding-bottom: 12px; margin-bottom: 22px;
  font-size: 0.9rem; color: var(--ink-soft);
}
.report .pro-bar img { height: 38px; max-width: 140px; object-fit: contain; }
.report .pro-bar strong { color: var(--ink); }

/* ---------- FAQ / footer ---------- */
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { font-weight: 400; cursor: pointer; font-size: 1.05rem; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
details.faq summary::marker { color: var(--gold); }
details.faq p { margin-top: 10px; color: var(--ink-soft); font-size: 0.94rem; max-width: 48em; }

footer.site { background: var(--ink); color: #98A3AB; padding: 44px 0; font-size: 0.85rem; margin-top: 80px; border-top: 1px solid rgba(201,168,92,0.25); }
footer.site .flogo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #F5F1E8; }
footer.site .flogo span { color: var(--gold-bright); font-style: italic; }
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ============================================================
   RAPPORT (vue dossier + impression)
   ============================================================ */
#rapport-vue { background: #E8E4DA; padding: 40px 0 70px; }
.report-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }

/* Onglets dossier / rapport confidentiel */
.doc-switch { display: flex; border: 1px solid var(--gold-line); background: #fff; }
.doc-switch button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 10px 20px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft);
  border-right: 1px solid var(--gold-line);
}
.doc-switch button:last-child { border-right: none; }
.doc-switch button small { font-size: 0.68rem; font-weight: 300; color: var(--ink-faint); }
.doc-switch button.on { background: var(--ink); color: var(--gold-bright); }
.doc-switch button.on small { color: #98A3AB; }
.doc-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.report { background: #fff; max-width: 900px; margin: 0 auto; box-shadow: 0 6px 40px rgba(15,26,34,0.16); color: #16222C; }
.report .page { padding: 56px 62px; border-bottom: 1px dashed var(--line); }
@media (max-width: 640px) { .report .page { padding: 30px 24px; } }

.report .rhead {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 30px;
}
.report .rhead .rlogo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.report .rhead .rlogo span { color: var(--gold); font-style: italic; }
.report .rhead .rref { font-size: 0.75rem; color: var(--ink-faint); text-align: right; line-height: 1.5; }

.report h2.rtitle { font-size: 1.8rem; margin-bottom: 4px; }
.report .rsub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 24px; font-style: italic; font-family: var(--font-display); font-size: 1.1rem; }
.report h3.rsec {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  margin: 30px 0 12px; padding-bottom: 7px;
  border-bottom: 1px solid var(--gold-line); color: var(--ink);
}
.report h3.rsec .rn { color: var(--gold); font-style: italic; margin-right: 8px; }
.report table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.report table th, .report table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #F0EDE5; }
.report table th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); font-weight: 500; }
.report table td.num, .report table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.report .big-estimate {
  background: var(--gold-soft); border-left: 3px solid var(--gold);
  padding: 22px 26px; margin: 16px 0 10px; display: flex; flex-wrap: wrap; gap: 30px;
}
.report .big-estimate div .k { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.report .big-estimate div .v { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; }

.report .photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.report .photos-grid img { width: 100%; height: 160px; object-fit: cover; }
@media (max-width: 560px) { .report .photos-grid { grid-template-columns: repeat(2, 1fr); } }

.report .desc-box { background: #FAF8F3; border: 1px solid var(--line); border-left: 3px solid var(--gold-line); padding: 18px 22px; font-size: 0.93rem; white-space: pre-line; }

.report .score-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.report .score-badge {
  width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display);
}
.report .score-badge .n { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.report .score-badge .t { font-size: 0.6rem; font-family: var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }

/* Résumé façon expertise */
.report .resume-table td:first-child { width: 34%; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); font-weight: 500; }
.report .resume-table td { vertical-align: top; }

/* Points forts / points d'attention */
.report .apprec { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .report .apprec { grid-template-columns: 1fr; } }
.report .apprec h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.report .apprec ul { list-style: none; }
.report .apprec li { padding: 5px 0 5px 22px; position: relative; font-size: 0.9rem; color: var(--ink-soft); }
.report .apprec .plus li::before { content: "+"; position: absolute; left: 0; color: var(--good); font-weight: 600; }
.report .apprec .minus li::before { content: "–"; position: absolute; left: 0; color: var(--warn); font-weight: 600; }

/* Localisation / quartier */
.report .poi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: #F0EDE5; border: 1px solid #F0EDE5; }
.report .poi { background: #fff; padding: 14px 16px; }
.report .poi .p-t { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); font-weight: 500; margin-bottom: 4px; }
.report .poi .p-v { font-size: 0.92rem; font-weight: 400; }
.report .poi .p-d { font-size: 0.78rem; color: var(--ink-faint); }

.report .lever { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid #F0EDE5; }
.report .lever .gain { font-family: var(--font-display); font-weight: 600; color: var(--good); white-space: nowrap; font-size: 1.1rem; min-width: 110px; }
.report .lever p { font-size: 0.9rem; color: var(--ink-soft); }
.report .lever h4 { font-size: 0.98rem; font-weight: 500; }

.report .risk-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F0EDE5; font-size: 0.9rem; align-items: center; }
.report .risk-line .lvl { font-weight: 500; font-size: 0.76rem; padding: 3px 12px; border-radius: 1px; white-space: nowrap; letter-spacing: 0.04em; }
.report .risk-line .lvl.ok { background: var(--good-soft); color: var(--good); }
.report .risk-line .lvl.warn { background: var(--warn-soft); color: var(--warn); }
.report .risk-line .lvl.bad { background: var(--bad-soft); color: var(--bad); }
.report .risk-line .lvl.na { background: #EEECE5; color: var(--ink-faint); }

.report .check { display: flex; gap: 10px; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid #F0EDE5; }
.report .check .m { font-weight: 600; width: 20px; flex-shrink: 0; text-align: center; }
.report .check.req .m { color: var(--bad); }
.report .check.noreq .m { color: var(--ink-faint); }
.report .check small { color: var(--ink-faint); display: block; }

.report .dpe-scale { display: flex; gap: 3px; margin: 14px 0; }
.report .dpe-cell { flex: 1; text-align: center; padding: 9px 2px; color: #fff; font-weight: 600; font-size: 0.85rem; opacity: 0.3; }
.report .dpe-cell.on { opacity: 1; outline: 2px solid var(--ink); outline-offset: 1px; }
.dpe-A { background: #009444; } .dpe-B { background: #52A747; } .dpe-C { background: #A5C13A; }
.dpe-D { background: #F4E32C; color: #665F00 !important; } .dpe-E { background: #F0A143; }
.dpe-F { background: #E9622A; } .dpe-G { background: #D01F26; }

.report .foot-note { font-size: 0.7rem; color: var(--ink-faint); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.6; }

/* Rapport confidentiel : bandeau */
.report .confid-banner {
  background: var(--ink); color: var(--gold-bright);
  text-align: center; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 10px; margin-bottom: 26px;
}

.watermark-demo { position: relative; }
.watermark-demo::after {
  content: "EXEMPLE"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 7.5rem; font-weight: 700; color: rgba(176,141,63,0.09);
  transform: rotate(-28deg); pointer-events: none; letter-spacing: 0.12em;
}

/* ---------- Carte de situation ---------- */
.carte-scale {
  position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  border: 1px solid var(--line); margin: 6px 0 2px; background: #EDEAE2;
}
.carte-scale img { display: block; }
.carte-pin {
  position: absolute; transform: translate(-50%, -50%); width: 18px; height: 18px;
  background: var(--gold); border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 2px 8px rgba(15,26,34,0.45); z-index: 2;
}

/* ---------- Impression : seul le rapport sort, contenu compact ---------- */
@media print {
  body * { visibility: hidden; }
  #rapport-vue, #rapport-vue * { visibility: visible; }
  #rapport-vue { position: absolute; top: 0; left: 0; width: 100%; background: #fff; padding: 0; }
  .report { box-shadow: none; max-width: none; font-size: 12.5px; }
  /* Le contenu s'enchaîne sans pages à moitié vides ; seuls les blocs restent insécables */
  .report .page { border-bottom: none; page-break-after: auto; padding: 4mm 10mm; }
  .report .page:first-child { padding-top: 2mm; }
  .report h3.rsec { break-after: avoid; page-break-after: avoid; margin-top: 16px; }
  .report table, .report .apprec, .report .big-estimate, .report .poi-grid,
  .report .photos-grid, .report .desc-box, .report .score-wrap, .report .dpe-scale,
  .report .lever, .report .resume-table, .carte-scale, .report .rhead, .report .pro-bar {
    break-inside: avoid; page-break-inside: avoid;
  }
  .report .photos-grid img { height: 120px; }
  .report .rhead { margin-bottom: 16px; }
  .report .big-estimate { padding: 14px 18px; margin: 10px 0 6px; }
  .report .foot-note { margin-top: 14px; }
  .report-toolbar { display: none !important; }
  .watermark-demo::after { color: rgba(176,141,63,0.12); }
}
