:root {
  --ink: #1c1c1c;
  --ink-2: #555;
  --ink-3: #8a8a8a;
  --gold: #c49a55;
  --gold-dark: #a37c3a;
  --gold-soft: #f6efe2;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #e8e3da;
  --ok: #2e7d4f;
  --ok-bg: #e7f4ec;
  --watch: #b7791f;
  --watch-bg: #fdf3e1;
  --issue: #c0392b;
  --issue-bg: #fbe9e7;
  --na: #6b6b6b;
  --na-bg: #efefef;
  --nap: #5b6b7a;
  --nap-bg: #e8edf2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.05);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: "Raleway", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 6px) 16px 6px;
  background: #fff; color: var(--ink);
  border-bottom: 2px solid var(--gold);
}
.brand { text-decoration: none; display: flex; flex: 1; justify-content: center; }
.brand img { height: 58px; width: auto; display: block; }
body.home .topbar .brand { visibility: hidden; height: 0; }
body.home .topbar { padding-top: calc(env(safe-area-inset-top) + 0px); padding-bottom: 0; }
.icon-btn { background: none; border: 0; color: var(--ink); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.icon-btn[hidden] { display: none; }
.icon-btn:active { background: rgba(0,0,0,.06); }
.topbar-spacer { width: 40px; }
.topbar .icon-btn[hidden] + .brand { margin-left: 48px; }

main { max-width: 680px; margin: 0 auto; padding: 16px 16px 120px; }

/* Typo */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 4px; }
h1 { font-size: 26px; font-weight: 800; line-height: 1.15; margin: 0 0 8px; text-transform: uppercase; }
h1 .gold { color: var(--gold); display: block; }
h2 { font-size: 18px; font-weight: 800; margin: 24px 0 10px; }
.lead { color: var(--ink-2); margin: 0 0 16px; }
.muted { color: var(--ink-3); font-size: 14px; }
.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 12px 0 18px; }

/* Cartes et boutons */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 700; font-size: 15px;
  background: var(--ink); color: #fff; text-decoration: none; min-height: 48px;
}
.btn.gold { background: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: transparent; color: var(--issue); border: 1.5px solid #f0c8c2; }
.btn.block { width: 100%; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1; }

/* Accueil */
.hero { padding: 8px 0 4px; }
.hero-logo { display: block; width: min(240px, 64%); margin: 4px auto 6px; }
.app-name { text-align: center; font-size: 34px; font-weight: 800; letter-spacing: .5px; line-height: 1; }
.app-name span { color: var(--gold); }
.app-tag { text-align: center; color: var(--ink-3); font-size: 14px; margin: 6px 0 22px; }
.hero-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.hero-row img { width: 72px; height: 72px; flex: none; }
.disclaimer { font-size: 13px; color: var(--ink-2); background: var(--gold-soft); border-left: 3px solid var(--gold); padding: 12px 14px; border-radius: 8px; margin: 16px 0; }
.visit-card { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.visit-card .meta { flex: 1; min-width: 0; }
.visit-card .addr { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--gold) calc(var(--p) * 1%), var(--line) 0); }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-3); }

/* Formulaire */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=date], input[type=tel], select, textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 84px; resize: vertical; }
.field-info { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* Vue d'ensemble de la visite */
.progress-head { display: flex; align-items: center; gap: 14px; }
.bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); }
.section-link { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; }
.section-link .num { font-size: 28px; font-weight: 800; color: var(--gold); width: 36px; text-align: center; flex: none; }
.section-link .t { flex: 1; font-weight: 700; font-size: 15px; }
.section-link .sub { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.chev { color: var(--ink-3); }
.pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.watch { background: var(--watch-bg); color: var(--watch); }
.pill.issue { background: var(--issue-bg); color: var(--issue); }
.pill.na { background: var(--na-bg); color: var(--na); }
.pill.nap { background: var(--nap-bg); color: var(--nap); }
.pill.todo { background: #f2f2f2; color: var(--ink-3); }

/* Section */
.sec-head { display: flex; gap: 12px; align-items: flex-start; }
.sec-head .big { font-size: 46px; font-weight: 800; color: var(--gold); line-height: .9; }
.sec-head h1 { font-size: 21px; margin-top: 4px; }
.tip { background: #fff; color: var(--ink); border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 10px 14px; margin: 14px 0; font-size: 14px; }
.tip summary { list-style: none; font-weight: 800; color: var(--gold-dark); letter-spacing: .6px; font-size: 13px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.tip summary img { width: 64px; height: 64px; flex: none; }
.tip summary .lbl { flex: 1; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--gold); }
.tip[open] summary::after { content: "–"; }
.tip ul { margin: 6px 0 4px; padding-left: 18px; }
.tip li::marker { color: var(--gold); }
.tip li { margin-bottom: 8px; }
.group-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-dark); margin: 22px 0 8px; }

.item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; border-left: 4px solid transparent; }
.item.s-ok { border-left-color: var(--ok); }
.item.s-watch { border-left-color: var(--watch); }
.item.s-issue { border-left-color: var(--issue); }
.item.s-na { border-left-color: #bbb; }
.item.s-nap { border-left-color: var(--nap); }
.item-label { font-weight: 700; font-size: 15px; }
.item-hint { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.status-row { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 5px; margin-top: 12px; }
.status-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 2px; font-size: 11.5px; line-height: 1.15; text-align: center; font-weight: 700; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; }
.status-btn .ic { font-size: 16px; line-height: 1; }
.status-btn[aria-pressed=true].ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.status-btn[aria-pressed=true].watch { background: var(--watch-bg); border-color: var(--watch); color: var(--watch); }
.status-btn[aria-pressed=true].issue { background: var(--issue-bg); border-color: var(--issue); color: var(--issue); }
.status-btn[aria-pressed=true].na { background: var(--na-bg); border-color: #aaa; color: var(--na); }
.status-btn[aria-pressed=true].nap { background: var(--nap-bg); border-color: var(--nap); color: var(--nap); }
.item-tools { display: flex; gap: 8px; margin-top: 10px; }
.mini-btn { border: 0; background: #f4f1eb; border-radius: 9px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.mini-btn.has { background: var(--gold-soft); color: var(--gold-dark); }
.item-extra { margin-top: 10px; }
.item-extra[hidden] { display: none; }

.note-wrap { position: relative; }
.note-wrap textarea { padding-right: 56px; }
.mic { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.mic.on { background: var(--issue); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(192,57,43,.5);} 70% { box-shadow: 0 0 0 12px rgba(192,57,43,0);} 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0);} }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eee; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 1; }
.add-photo { aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--gold); background: var(--gold-soft); color: var(--gold-dark); font-weight: 700; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }

.sec-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(250,248,244,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sec-nav .inner { max-width: 680px; margin: 0 auto; display: flex; gap: 10px; }
.sec-nav .btn { flex: 1; }

/* Rapport */
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { text-align: center; border-radius: 12px; padding: 10px 4px; }
.stat b { display: block; font-size: 24px; font-weight: 800; }
.stat span { font-size: 11px; font-weight: 700; }
.stat.ok { background: var(--ok-bg); color: var(--ok); }
.stat.watch { background: var(--watch-bg); color: var(--watch); }
.stat.issue { background: var(--issue-bg); color: var(--issue); }
.stat.na { background: var(--na-bg); color: var(--na); }
.r-item { padding: 10px 0; border-top: 1px solid var(--line); }
.r-item:first-child { border-top: 0; }
.r-item .top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.r-item .note { font-size: 14px; color: var(--ink-2); margin-top: 4px; white-space: pre-wrap; }
.r-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.r-photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 700px) {
  h1 { font-size: 30px; }
}

/* Bouton « i » et explications */
.item-head { display: flex; gap: 10px; align-items: flex-start; }
.help-btn { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); background: #fff; color: var(--gold-dark); font: italic 700 14px/1 Georgia, serif; display: inline-grid; place-items: center; padding: 0; margin-top: 1px; }
.help-btn.on { background: var(--gold); color: #fff; }
.help-btn.sm { width: 20px; height: 20px; font-size: 12px; vertical-align: -4px; margin: 0 4px 0 0; }
.help-legend { font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.item-help { margin-top: 10px; background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink); line-height: 1.45; }
.item-help[hidden] { display: none; }
.item-select { margin-top: 10px; }

/* Choix multiples */
.field-lbl { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 20px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip[aria-pressed=true] { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-dark); }
.chip[aria-pressed=true]::before { content: "✓ "; }

/* Rubrique « Autres » */
.other-head { display: flex; gap: 8px; align-items: center; }
.other-label { flex: 1; font-weight: 700; }
.other-del { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f4f1eb; color: var(--ink-3); }
[data-others] + .btn { margin-bottom: 8px; }

/* Recherche d'adresse */
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1.5px solid var(--gold); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; }
.ac-list[hidden] { display: none; }
.ac-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 12px; font-size: 15px; }
.ac-item:active, .ac-item:hover { background: var(--gold-soft); }
.ac-credit { font-size: 10px; color: var(--ink-3); padding: 4px 10px; text-align: right; }

/* Aperçu du rapport (identique au PDF) */
.rp { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 18px 16px 22px; font-family: Helvetica, Arial, sans-serif; color: var(--ink); font-size: 13px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 2px solid var(--gold); padding-bottom: 10px; }
.rp-head img { width: 96px; height: auto; }
.rp-head-r { text-align: right; }
.rp-app { font-size: 20px; font-weight: 800; } .rp-app span { color: var(--gold); }
.rp-kicker { color: var(--gold); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.rp-sub { color: #6e6e6e; font-size: 10px; }
.rp-addr { font-size: 18px; margin: 16px 0 8px; }
.rp-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; }
.rp-facts dt { color: #6e6e6e; font-weight: 700; font-size: 11.5px; }
.rp-facts dd { margin: 0; }
.rp-fields { margin-bottom: 8px; }
.rp-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 16px 0; }
.rp-box { border-radius: 6px; color: #fff; text-align: center; padding: 8px 2px; }
.rp-box b { display: block; font-size: 19px; } .rp-box span { font-size: 9px; font-weight: 700; display: block; line-height: 1.15; }
.rp-box.issue, .rp-badge.issue { background: rgb(192,57,43); } .rp-box.watch, .rp-badge.watch { background: rgb(183,121,31); }
.rp-box.ok, .rp-badge.ok { background: rgb(46,125,79); } .rp-box.na, .rp-badge.na { background: rgb(120,120,120); } .rp-box.nap, .rp-badge.nap { background: rgb(91,107,122); }
.rp-h { color: var(--gold); font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px; margin: 16px 0 6px; }
.rp-msg { margin: 0; white-space: pre-wrap; }
.rp-flag { list-style: none; padding: 0; margin: 0; }
.rp-flag li { position: relative; padding: 3px 0 3px 14px; }
.rp-flag li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: rgb(183,121,31); }
.rp-flag li.issue::before { background: rgb(192,57,43); }
.rp-flag i { color: #6e6e6e; font-style: normal; }
.rp-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rp-badge { flex: none; font-style: normal; color: #fff; font-weight: 700; font-size: 10px; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.rp-none { flex: none; font-style: normal; color: #aaa; font-size: 10px; white-space: nowrap; }
.rp-note { color: #6e6e6e; font-size: 12px; margin: 2px 0 0 10px; white-space: pre-wrap; }
.rp-muted { color: #6e6e6e; margin: 0; }
.rp-sec { margin-top: 20px; }
.rp-sec-h { display: flex; align-items: baseline; gap: 10px; border-top: 2px solid var(--gold); padding-top: 6px; margin-bottom: 8px; width: 100%; }
.rp-sec-h span { color: var(--gold); font-size: 22px; font-weight: 800; }
.rp-sec-h h4 { margin: 0; font-size: 13px; text-transform: uppercase; }
.rp-group { color: var(--gold); font-weight: 700; font-size: 10.5px; text-transform: uppercase; margin: 10px 0 2px; }
.rp-item { border-top: 1px solid #e6e1d7; padding: 5px 0; }
.rp-photos { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px 10px; }
.rp-photos img { width: calc(33% - 6px); max-width: 160px; border-radius: 3px; }
.rp-general { margin-top: 8px; } .rp-general b { color: #6e6e6e; font-size: 11.5px; }
.rp-disc { background: #f6efe2; border-radius: 6px; padding: 10px 12px; margin-top: 22px; font-size: 11.5px; }
.rp-disc b { display: block; color: var(--gold); text-transform: uppercase; font-size: 10.5px; margin-bottom: 4px; }

/* Champ « Autre » des choix multiples */
.chip-other { margin-top: 10px; }
.chip-other[hidden] { display: none; }

/* Guide photo */
.guide-cta { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; background: #fff; border: 1.5px solid var(--gold); border-radius: var(--radius); text-decoration: none; }
.guide-cta-ic { font-size: 30px; flex: none; }
.guide-cta .muted { font-size: 13px; }
.g-list { margin: 0; padding-left: 20px; }
.g-list li { margin-bottom: 8px; }
.g-list li:last-child { margin-bottom: 0; }
.g-list li::marker { color: var(--gold); font-weight: 700; }
.g-gestures { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
@media (min-width: 560px) { .g-gestures { grid-template-columns: 1fr 1fr; } }
.g-gesture { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px; }
.g-gesture .muted { font-size: 13px; margin-top: 2px; }
.g-emoji { font-size: 32px; line-height: 1; flex: none; width: 40px; text-align: center; }
.g-note p { margin: 0 0 8px; font-size: 14px; } .g-note p:last-child { margin: 0; }
.g-step-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.g-num { color: var(--gold); font-size: 24px; font-weight: 800; min-width: 28px; }
.g-none { margin: 0; font-style: italic; }
.section-link .num { font-size: 26px; }

.g-steps { padding: 6px 16px; }
.g-row { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.g-row:first-child { border-top: 0; }
.g-row .muted { font-size: 14px; }

.inst-h { margin: 0 0 10px; font-size: 16px; }
.inst-ic { display: inline-block; border: 1.5px solid var(--ink-3); border-radius: 5px; padding: 0 5px; font-size: 13px; }

/* Profil et consentement */
.consent { border: 1.5px solid var(--gold); }
.consent-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.consent-row input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--gold); }
.consent-more { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.consent-more summary { color: var(--gold-dark); font-weight: 700; cursor: pointer; }
.consent-more ul { padding-left: 18px; margin: 8px 0 0; }
.consent-more li { margin-bottom: 6px; }

/* Logos My Visite */
.hero-logo.mv { width: min(300px, 78%); margin: 0 auto 10px; }
.hero-logo.mv.sm { width: min(220px, 60%); }
.brand img { height: 50px; }

/* Page d'accueil à deux choix */
body { background: #fbf7f1; }
.landing { text-align: center; padding-top: 4px; }
.landing-logo { display: block; width: min(320px, 80%); margin: 0 auto 22px; }
.landing-lead { font-size: 18px; color: var(--ink-2); margin: 4px auto 22px; max-width: 30ch; }
.choices { display: grid; gap: 14px; text-align: left; }
@media (min-width: 720px) { main:has(.landing) { max-width: 960px; } .choices { grid-template-columns: 1fr 1fr; } }
.choice { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px 20px 20px; border-top: 4px solid var(--gold); display: flex; flex-direction: column; }
.choice h2 { margin: 2px 0 8px; font-size: 22px; }
.choice p { color: var(--ink-2); margin: 0 0 12px; }
.choice-ic { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.choice .btn { margin-top: 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: 7px; font-size: 14.5px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-weight: 800; }
.price { font-size: 20px; font-weight: 800; margin: auto 0 4px; padding-top: 6px; }
.price span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.price.center { text-align: center; margin: 18px 0; }
.btn.dark { background: var(--ink); color: #fff; }
.landing-foot { font-size: 13px; color: var(--ink-3); margin: 22px auto 8px; max-width: 40ch; }

/* Accueil à deux boutons */
.landing { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; }
.landing-btns { display: grid; gap: 14px; max-width: 460px; width: 100%; margin: 0 auto; }
.big-choice { display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; background: #fff; border: 2px solid var(--gold); border-radius: 18px; padding: 18px 18px; box-shadow: var(--shadow); color: var(--ink); }
.big-choice b { display: block; font-size: 19px; }
.big-choice small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.big-choice > span:nth-child(2) { flex: 1; }
.big-choice .bc-ic { font-size: 30px; }
.big-choice.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.big-choice.dark small, .big-choice.dark .chev { color: #c9c9c9; }
.big-choice:active { transform: scale(.99); }

/* Fenêtre d'ajout à l'écran d'accueil */
.install-sheet { position: fixed; inset: 0; z-index: 100; }
.inst-backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.45); opacity: 0; transition: opacity .25s; }
.inst-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 22px 22px 0 0; padding: 20px 20px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease-out; box-shadow: 0 -10px 30px rgba(0,0,0,.15); }
.install-sheet.open .inst-backdrop { opacity: 1; }
.install-sheet.open .inst-panel { transform: none; }
.inst-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.inst-head img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.inst-head b { display: block; font-size: 17px; line-height: 1.25; }
.inst-head small { color: var(--ink-3); }
.inst-panel p { margin: 0 0 12px; color: var(--ink-2); }
.inst-panel .btn + .btn { margin-top: 10px; }
.inst-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 14px; }
.inst-steps li { counter-increment: s; position: relative; padding: 10px 10px 10px 44px; background: var(--gold-soft); border-radius: 12px; margin-bottom: 8px; font-size: 15px; }
.inst-steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.inst-steps small { color: var(--ink-3); }
.inst-ico { display: inline-flex; vertical-align: -6px; color: #0a84ff; margin-right: 2px; }
.inst-arrow { text-align: center; font-size: 28px; color: var(--gold); animation: bob 1.2s ease-in-out infinite; margin: -4px 0 4px; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* Avertissement très visible (avant l'achat) */
.warn-box { background: #fff4e5; border: 2px solid #d97706; border-left-width: 8px; border-radius: 12px; padding: 14px 16px; margin: 18px 0 6px; color: #5a3a00; }
.warn-box .warn-title { font-weight: 800; font-size: 16.5px; color: #9a4b00; margin-bottom: 6px; line-height: 1.3; }
.warn-box p { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* Page admin */
body.admin-mode main { max-width: 1100px; }
.adm-login { max-width: 420px; margin: 30px auto; text-align: center; }
.adm-logo { width: 260px; max-width: 80%; margin: 0 auto 6px; display: block; }
.adm-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.adm-head h1 { margin: 0; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-actions .btn { min-height: 42px; padding: 10px 14px; }
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
@media (max-width: 640px) { .adm-stats { grid-template-columns: repeat(2, 1fr); } }
.adm-stat { border: 0; border-radius: 12px; padding: 10px; background: #fff; box-shadow: var(--shadow); text-align: left; font-size: 13px; color: var(--ink-2); }
.adm-stat b { display: block; font-size: 22px; color: var(--ink); }
.adm-stat.ok b { color: var(--ok); } .adm-stat.no b { color: var(--issue); } .adm-stat.warn b { color: var(--watch); }
.adm-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .adm-filters { grid-template-columns: 1fr; } }
.adm-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.adm-check input { width: 20px; height: 20px; accent-color: var(--gold); }
.adm-list { display: grid; gap: 6px; }
.adm-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: left; border: 0; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); width: 100%; }
.adm-row:hover { outline: 2px solid var(--gold-soft); }
.adm-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-main small, .adm-side small { color: var(--ink-3); font-size: 12.5px; }
.adm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: right; }
.adm-pill { font-size: 12px; font-weight: 700; border-radius: 20px; padding: 2px 10px; background: #f2f2f2; color: var(--ink-2); white-space: nowrap; }
.adm-pill.abonne { background: var(--ok-bg); color: var(--ok); } .adm-pill.exclu { background: var(--issue-bg); color: var(--issue); }
.adm-pager { margin: 14px 0 30px; }
.adm-sim { margin: 0; padding-left: 18px; } .adm-sim li { margin-bottom: 6px; font-size: 14px; }

/* Demande d'offres de service */
.quote-card { border: 1.5px solid var(--gold); }
.q-test { background: #eef4ff; border: 1.5px solid #6b8fd6; color: #1f3a73; border-radius: 10px; padding: 10px 12px; margin: 14px 0 10px; font-size: 14px; }
.q-ok { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 12px; margin-top: 14px; font-weight: 700; }
.q-prev { margin-top: 10px; } .q-prev summary { cursor: pointer; color: var(--gold-dark); font-weight: 700; font-size: 14px; }
.q-prev iframe { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; background: #fff; }

/* Espace inspecteur */
.insp-status.on { border-left: 6px solid var(--ok); }
.insp-status.off { border-left: 6px solid var(--gold); }
.warn-inline { background: var(--watch-bg); color: var(--watch); border-radius: 8px; padding: 8px 10px; margin: 12px 0 0; font-size: 14px; }
.insp-req { list-style: none; padding: 0; margin: 0; }
.insp-req li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.insp-req li:first-child { border-top: 0; }

/* Accueil : image de présentation + deux boutons */
.landing-hero { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 10px 30px rgba(120, 90, 40, .16); }
@media (min-width: 900px) {
  main:has(.landing) { max-width: 1080px; }
  .landing { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - 120px); }
  .landing-hero { margin: 0; max-width: none; }
  .landing-btns { margin: 0; max-width: none; }
}
