/* BOUBZCAR v2 — intégration des maquettes (octobre 2026)
   Chargé après app.css sur les pages publiques et l'espace membre. */

@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ivory: #F6F4EE;
  --paper: #FBFAF6;
  --line: #E5E1D7;
  --line-2: #D9D4C7;
  --sage: #DCE6DE;
  --sage-3: #E8EFE9;
  --gold: #8A6A3D;
  --ink-soft: #3F4743;
  --grey: #6E756F;
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(17,23,21,.04), 0 10px 30px rgba(17,23,21,.07);
}

body { background: var(--ivory); color: var(--ink); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow-line { display: inline-flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 500; color: var(--gold); margin-bottom: 18px; }
.eyebrow-line::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-line.ink { color: var(--ink-soft); }
.link-u { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 6px; text-decoration-thickness: 1px; font-weight: 500; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; font-size: .95rem; }

/* En-tête */
.site-header { background: rgba(251,250,246,.94); border-bottom: 1px solid var(--line); }
.nav { height: 58px; gap: 40px; }
.wordmark { font-family: var(--serif); font-size: 1.85rem; letter-spacing: -0.005em; text-decoration: none; line-height: 1; color: var(--ink); }
.nav-links { margin: 0 auto; gap: 18px; }
.nav-links a { color: var(--ink); font-size: .93rem; padding: 8px 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: transparent; text-decoration: underline; text-underline-offset: 6px; }
.nav-right { margin-left: 0; gap: 14px; }
.nav-right .btn-text { display: none; text-decoration: none; font-size: .93rem; padding: 8px 4px; }
@media (min-width: 960px) { .nav-right .btn-text { display: inline-flex; align-items: center; gap: 6px; } }
.btn { border-radius: 4px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--paper); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

/* Héros */
.hero2 { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero2-grid { display: grid; min-height: 280px; }
@media (min-width: 960px) { .hero2-grid { grid-template-columns: 47% 53%; } }
.hero2-copy { padding: 44px 16px 36px; padding-right: 24px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
@media (min-width: 768px) { .hero2-copy { padding: 56px 32px 48px; } }
@media (min-width: 1200px) { .hero2-copy { padding-left: calc((100vw - var(--max)) / 2 + 32px); } }
.hero2 h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 4.3vw, 3.65rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 22px; }
.hero2 .sub { font-size: 1.12rem; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 32ch; }
.hero2-media { position: relative; min-height: 240px; }
.hero2-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .hero2-media::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; background: linear-gradient(90deg, var(--paper) 8%, rgba(251,250,246,0)); z-index: 1; } }
.hero2-actions { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; margin-top: 34px; }

.hero-home .hero2-grid { min-height: 610px; }
@media (min-width: 960px) { .hero-home .hero2-copy { padding-bottom: 150px; } }
@media (max-width: 959px) { .hero-home .trust-float { display: none; } .hero-home .hero2-media { min-height: 260px; } }
.hero-home .hero2-media::before { display: none; }
.trust-float { position: absolute; z-index: 2; top: 26px; right: 24px; width: 238px; min-height: 276px; display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 14px 18px 12px; }
.trust-float h3 { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; margin: 0 0 6px; }
.trust-float li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.trust-float ul { list-style: none; margin: 0 0 10px; padding: 0; flex: 1; }
.trust-float a { font-size: .7rem; color: var(--grey); text-decoration: none; }

.search2 { position: relative; z-index: 3; margin: -96px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 10px; display: grid; gap: 8px; }
@media (min-width: 860px) { .search2 { grid-template-columns: 1fr 1fr 1fr auto; padding: 10px 14px 10px 0; gap: 0; } }
.search2 .sfield { display: flex; align-items: center; gap: 16px; padding: 6px 18px; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .search2 .sfield { border-bottom: 0; border-right: 1px solid var(--line); padding: 6px 24px; } .search2 .sfield:nth-child(3) { border-right: 0; } }
.search2 label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink); }
.search2 select { border: 0; padding: 0; background: transparent; font-size: .85rem; color: var(--grey); box-shadow: none; width: 100%; cursor: pointer; }
.search2 select:focus { box-shadow: none; }
.search2 .sfield > div { flex: 1; min-width: 0; }
.search2 .btn { padding: 15px 30px; font-size: 1rem; margin: 6px 0 6px 8px; }

/* Sections */
.sec { padding: 56px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.sec-sage { background: var(--sage); }
.approach { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 860px) { .approach { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } .approach > div + div { border-left: 1px solid rgba(17,23,21,.18); } .approach > div { padding: 0 28px; } .approach > div:first-child { padding-left: 0; } }
.approach > div { display: flex; gap: 24px; align-items: flex-start; }
.round-ic { flex: none; width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.approach h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 6px 0 8px; }
.approach p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* Cartes véhicule v2 */
.vcard { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, border-color .2s; }
.vcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.vcard-media { display: block; aspect-ratio: 1.95; background: #e9e7e1; position: relative; overflow: hidden; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pill { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 8px; background: rgba(232,239,233,.96); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 500; }
.pill.warn { background: #F8E6CC; }
.pill.alert { background: #F6DEDA; color: #8B2A20; }
.pill.demo { background: rgba(255,255,255,.92); }
.heart-btn { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 0; color: #fff; cursor: pointer; padding: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.heart-btn.on svg { fill: #fff; }
.heart-btn.solid { background: #fff; color: var(--ink); filter: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); width: 46px; height: 46px; top: 16px; right: 18px; }
.heart-btn.solid.on svg { fill: var(--ink); }
.vcard-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.vcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vcard-title { font-family: var(--serif); font-weight: 400; font-size: 1.28rem; margin: 0; letter-spacing: -0.01em; }
.vcard-title a { text-decoration: none; }
.vcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vcard .heart-btn, .vcard form { position: absolute; z-index: 2; }
.vcard form { top: 0; right: 0; }
.vcard-price { font-family: var(--serif); font-size: 1.28rem; white-space: nowrap; }
.vcard-sub { font-size: .87rem; color: var(--ink-soft); }
.meta-sep { display: flex; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--ink-soft); margin-top: 6px; row-gap: 4px; }
.meta-sep span + span::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--line-2); margin: 0 12px; vertical-align: -1px; }
.vgrid { display: grid; gap: 18px; }
@media (min-width: 700px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Liste + filtres */
.list2 { display: grid; gap: 28px; padding: 22px 0 64px; }
@media (min-width: 1000px) { .list2 { grid-template-columns: 268px minmax(0, 1fr); } }
.filters2 { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 20px 20px 6px; align-self: start; }
.filters2 .fhead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters2 .fhead h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0; }
.filters2 a.reset { font-size: .78rem; color: var(--ink-soft); text-underline-offset: 3px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 1.05rem; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); margin: -4px 4px 0 0; }
.fgroup[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.fgroup .fbody { padding-top: 12px; display: grid; gap: 8px; }
.fgroup .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unit { position: relative; }
.unit input { padding-right: 34px; }
.unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .82rem; color: var(--ink-soft); }
.filters2 input, .filters2 select { border-radius: 4px; padding: 10px 12px; font-size: .85rem; background: #fff; }
.fcheck { display: flex; align-items: center; gap: 12px; font-size: .87rem; cursor: pointer; padding: 3px 0; }
.fcheck input { width: 17px; height: 17px; accent-color: var(--ink); margin: 0; }
.fcheck .n { margin-left: auto; font-size: .78rem; color: var(--grey); }
.rbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rbar .count { font-size: 1rem; }
.rbar .count strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-right: 6px; }
.rbar label { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--ink-soft); }
.rbar select { width: 168px; border-radius: 4px; padding: 10px 12px; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.chip2 { display: inline-flex; align-items: center; gap: 10px; background: var(--sage); border-radius: 999px; padding: 6px 12px 6px 16px; font-size: .82rem; text-decoration: none; color: var(--ink); }
.chip2 span { font-size: 1rem; line-height: 1; }
.chips .reset { margin-left: auto; font-size: .84rem; }
.pager2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.pager2 .nums { display: flex; gap: 8px; align-items: center; }
.pager2 .nums a, .pager2 .nums span { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 4px; text-decoration: none; font-size: .85rem; }
.pager2 .nums .cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager2 .nums .gap { border: 0; background: none; }
.pager2 .pbtn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; text-decoration: none; font-size: .88rem; }
.pager2 .pbtn.off { color: #A8ADA8; border-color: var(--line); pointer-events: none; }

/* Fiche véhicule v2 */
.crumbs { font-size: .78rem; color: var(--ink-soft); padding: 22px 0 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs i { font-style: normal; color: var(--grey); }
.detail2 { display: grid; gap: 18px; padding-bottom: 64px; }
@media (min-width: 1000px) { .detail2 { grid-template-columns: minmax(0, 1fr) 360px; } }
.gal { position: relative; border-radius: 6px; overflow: hidden; background: #e7e6e1; aspect-ratio: 1.68; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal .pill { top: 18px; left: 18px; padding: 7px 14px; }
.gal .counter { position: absolute; right: 14px; bottom: 14px; background: rgba(17,23,21,.82); color: #fff; border-radius: 4px; padding: 6px 10px; font-size: .78rem; display: inline-flex; gap: 8px; align-items: center; }
.thumbs2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.thumbs2 button { aspect-ratio: 1.64; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; cursor: pointer; background: #e7e6e1; }
.thumbs2 button.active { border-color: var(--ink); }
.thumbs2 img { width: 100%; height: 100%; object-fit: cover; }
.dtitle { margin-top: 30px; }
.dtitle h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 12px; }
.dtitle p { font-size: 1.02rem; color: var(--ink-soft); max-width: 66ch; white-space: pre-line; }
.specline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; margin: 26px 0 28px; }
@media (min-width: 640px) { .specline { grid-template-columns: repeat(3, minmax(0, 1fr)); } .specline > div:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); } }
@media (min-width: 1440px) { .specline { grid-template-columns: repeat(6, minmax(0, 1fr)); } .specline > div + div { border-left: 1px solid var(--line); } }
.specline > div { display: flex; gap: 10px; align-items: center; padding: 0 10px; min-width: 0; }
.specline .ic { width: 24px; height: 24px; }
.specline strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1rem; }
.specline small { font-size: .74rem; color: var(--grey); }
.twocards { display: grid; gap: 16px; }
@media (min-width: 860px) { .twocards { grid-template-columns: 1fr 1fr; } }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px 26px; }
.pcard h2, .pcard h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 16px; }
.kv { width: 100%; border-collapse: collapse; font-size: .84rem; }
.kv td { padding: 6px 0; border-bottom: 1px solid #EEEBE4; vertical-align: top; }
.kv td:first-child { color: var(--ink-soft); width: 46%; }
.kv tr:last-child td { border-bottom: 0; }
.defect2 { margin-top: 14px; background: #FDF1EF; border: 1px solid #F1D3CE; border-radius: 4px; padding: 12px; display: flex; gap: 16px; }
.defect2 img { width: 38%; max-width: 152px; aspect-ratio: .87; height: auto; object-fit: cover; border-radius: 3px; flex: none; align-self: flex-start; }
.defect2 .lab { display: inline-flex; align-items: center; gap: 8px; color: #A23B2E; font-size: .78rem; font-weight: 500; }
.defect2 h4 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 8px 0 6px; }
.defect2 p { font-size: .83rem; color: var(--ink-soft); margin: 0 0 12px; }
.defect2.warn { background: #FCF3E6; border-color: #EFD9B5; }
.defect2.warn .lab { color: #8A5A12; }
@media (max-width: 560px) { .defect2 { flex-direction: column; } .defect2 img { width: 100%; height: 160px; } }

.buybox { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 26px 24px 22px; }
.buybox h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; margin: 0; }
.buybox .ver { font-family: var(--serif); font-size: 1.35rem; margin: 4px 0 14px; }
.buybox .price { font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.buybox .pricerow { display: flex; justify-content: space-between; align-items: flex-end; margin: 22px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.buybox .btn { width: 100%; justify-content: center; padding: 16px; font-size: .98rem; position: relative; }
.buybox .btn .ic:first-child { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); }
.buybox .btn + .btn { margin-top: 12px; }
.passbox { background: var(--sage); border-radius: 4px; padding: 26px 24px 18px; margin-top: 16px; }
.passbox h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 10px; }
.passbox a.row { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(17,23,21,.12); text-decoration: none; font-size: .9rem; }
.passbox a.row:last-of-type { border-bottom: 0; }
.passbox .st { margin-left: auto; font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: #C9DCCD; }
.passbox .st.declare { background: #E4E9EE; }
.passbox .st.none { background: #ECEAE4; color: var(--grey); }
.passbox .st.warn { background: #F5E2C2; }
.passbox .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); transform: rotate(45deg); margin: 0 4px 0 22px; }

/* Passeport v2 */
.vsum { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 14px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.vsum img { width: 164px; height: 76px; object-fit: cover; border-radius: 3px; }
.vsum .t { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; }
.vsum .p { margin-left: auto; font-family: var(--serif); font-size: 1.3rem; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cats6 { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .cats6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat6 { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px 18px 16px; }
.cat6 h3 { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; margin: 12px 0 10px; }
.cat6 p { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; }
.stp { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: .78rem; background: var(--sage-3); }
.stp .d { width: 18px; height: 18px; border-radius: 50%; background: #4F8A6A; display: grid; place-items: center; color: #fff; }
.stp.warn { background: #FBE5C8; } .stp.warn .d { background: #B36B12; }
.stp.alert { background: #F6DEDA; } .stp.alert .d { background: #A23B2E; }
.stp.info { background: #ECEAE4; } .stp.info .d { background: #7E8580; }
.stp.muted { background: #F1EFE9; color: var(--grey); } .stp.muted .d { background: #B9BDB8; }
.ppgrid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 1000px) { .ppgrid { grid-template-columns: minmax(0, 1fr) 340px; } }
.alertbar { background: #FBE7CF; border-radius: 4px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.alertbar.critical { background: #F6DEDA; }
.alertbar strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; display: block; }
.alertbar span { font-size: .82rem; color: var(--ink-soft); }
.alertbar .btn { margin-left: auto; padding: 8px 14px; font-size: .82rem; background: transparent; border-color: rgba(17,23,21,.3); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 96px 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:first-child::before { top: 50%; } .timeline li:last-child::before { bottom: 50%; }
.timeline .date { font-size: .78rem; color: var(--ink-soft); padding-left: 22px; position: relative; }
.timeline .date::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -6px; border: 1.5px solid #8FB29C; border-radius: 50%; background: var(--paper); }
.timeline .tic { width: 40px; height: 40px; border-radius: 6px; background: var(--sage-3); display: grid; place-items: center; }
.timeline strong { font-family: var(--serif); font-weight: 400; font-size: 1rem; display: block; }
.timeline small { font-size: .78rem; color: var(--ink-soft); }
.docbtn { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: .76rem; color: var(--ink-soft); background: #fff; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } .timeline li::before { display: none; } }
.ring { --v: 0; width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(#3F6E55 calc(var(--v) * 1%), #DCE6DE 0); display: grid; place-items: center; flex: none; }
.ring span { width: 124px; height: 124px; border-radius: 50%; background: #fff; display: flex; align-items: baseline; justify-content: center; padding-top: 44px; box-sizing: border-box; gap: 2px; font-family: var(--serif); font-size: 2.1rem; line-height: 1; }
.ring span small { font-family: var(--font); font-size: .85rem; color: var(--ink-soft); }
.bars { display: grid; gap: 9px; margin: 20px 0; }
.bars div { display: grid; grid-template-columns: 96px minmax(0, 1fr) 56px; align-items: center; gap: 12px; font-size: .78rem; }
.bars i { height: 5px; border-radius: 4px; background: #ECEAE4; position: relative; overflow: hidden; display: block; }
.bars i b { position: absolute; inset: 0 auto 0 0; background: #7FA58D; border-radius: 4px; }
.bars i b.mid { background: #D7A24A; }
.bars i b.low { background: #B9BDB8; }
.bars span:last-child { text-align: right; color: var(--ink-soft); }
.docs6 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .docs6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.docc { border: 1px solid var(--line); border-radius: 4px; padding: 8px 8px 12px; background: #fff; }
.docc .th { aspect-ratio: 1.6; border-radius: 3px; background: #F1EFE9; display: grid; place-items: center; position: relative; color: var(--ink-soft); }
.docc .th .ok { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #4F8A6A; color: #fff; display: grid; place-items: center; }
.docc strong { display: block; font-size: .82rem; font-weight: 500; margin: 10px 4px 2px; }
.docc small { font-size: .72rem; color: var(--grey); margin: 0 4px; display: flex; justify-content: space-between; }

/* Espace vendeur v2 */
.dash { display: grid; gap: 28px; padding: 26px 0 64px; }
@media (min-width: 1000px) { .dash { grid-template-columns: 206px minmax(0, 1fr); } }
.dside { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); padding: 14px 10px; align-self: start; }
@media (min-width: 1000px) { .dside { min-height: 1240px; } .dside.compact { min-height: 0; } }
.dside .who { display: flex; gap: 12px; align-items: center; padding: 0 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-size: .95rem; flex: none; }
.dside .who strong { display: block; font-size: .88rem; font-weight: 500; }
.dside .who small { font-size: .74rem; color: var(--grey); }
.dside nav { display: flex; flex-wrap: wrap; gap: 2px; }
@media (min-width: 1000px) { .dside nav { flex-direction: column; } }
.dside nav a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 4px; text-decoration: none; font-size: .9rem; }
.dside nav a.active { background: var(--sage); }
.dside nav a .badge { margin-left: auto; font-size: .7rem; background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 7px; }
.dmain h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.1rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 8px; }
.dmain > .lead2 { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 24px; }
.stats3 { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 720px) { .stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat2 { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; display: flex; align-items: center; gap: 20px; text-decoration: none; }
.stat2 .round-ic { width: 56px; height: 56px; background: var(--sage-3); }
.stat2 strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.stat2 span { font-size: .92rem; color: var(--ink-soft); }
.stat2 .chev { margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); transform: rotate(45deg); }
.block2 { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px 20px; margin-bottom: 18px; }
.block2 .bh { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.block2 h2 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin: 0; }
.block2 .bh a.more { font-size: .82rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.mylisting { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .mylisting { grid-template-columns: 320px minmax(0, 1fr); } }
.mylisting .ph { position: relative; aspect-ratio: 1.73; border-radius: 3px; overflow: hidden; background: #e7e6e1; }
.mylisting .ph img { width: 100%; height: 100%; object-fit: cover; }
.mylisting .topl { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-soft); }
.mylisting .topl .on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3F8A5E; margin-right: 8px; vertical-align: 1px; }
.mylisting h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; margin: 10px 0 4px; letter-spacing: -0.01em; }
.mylisting .rowp { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.mylisting .rowp .price { font-family: var(--serif); font-size: 2rem; margin-right: auto; }
.squarebtn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; text-decoration: none; }
.complete { background: var(--sage); border-radius: 4px; padding: 20px 20px 16px; margin-bottom: 18px; }
.complete .ch { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.complete h2 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin: 0 0 4px; }
.complete p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.prog { min-width: 220px; font-size: .74rem; color: var(--ink-soft); }
.prog .pb { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.prog i { flex: 1; height: 7px; background: rgba(255,255,255,.75); border-radius: 4px; overflow: hidden; display: block; }
.prog i b { display: block; height: 100%; background: #2F6247; border-radius: 4px; }
.tasks { background: #fff; border-radius: 4px; padding: 0 16px; }
.tasks .task { display: flex; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tasks .task:last-child { border-bottom: 0; }
.tasks strong { display: block; font-weight: 500; font-size: .92rem; }
.tasks small { font-size: .8rem; color: var(--ink-soft); }
.tasks .btn { margin-left: auto; padding: 8px 26px; font-size: .84rem; border-color: var(--line-2); }
.tasks .done { margin-left: auto; font-size: .8rem; color: #2F6247; }
.two2 { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 900px) { .two2 { grid-template-columns: 1fr 1.1fr; } }
.two2 .block2 { margin: 0; }
.appt { display: flex; gap: 20px; align-items: flex-start; }
.cal { width: 76px; border: 1px solid var(--line); border-radius: 4px; text-align: center; padding: 8px 0; font-size: .78rem; color: var(--ink-soft); flex: none; }
.cal strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.1rem; color: var(--ink); line-height: 1.1; }
.appt h4 { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; margin: 0 0 6px; display: flex; justify-content: space-between; gap: 10px; }
.appt .ok { font-family: var(--font); font-size: .74rem; background: var(--sage-3); border-radius: 999px; padding: 3px 12px; }
.appt p { margin: 0 0 4px; font-size: .86rem; display: flex; gap: 10px; align-items: center; }
.convs a { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.convs a:last-child { border-bottom: 0; }
.convs .avatar { width: 40px; height: 40px; font-size: .8rem; background: #ECEAE4; }
.convs strong { display: block; font-size: .87rem; font-weight: 500; }
.convs small { font-size: .8rem; color: var(--ink-soft); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convs .when { margin-left: auto; font-size: .74rem; color: var(--grey); white-space: nowrap; align-self: flex-start; padding-top: 2px; }
.convs .when b { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-left: 6px; vertical-align: 1px; }
.convs > div { min-width: 0; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 20px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.activity li:last-child { border-bottom: 0; }
.activity .dot2 { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); justify-self: center; }
.activity .tic { width: 38px; height: 38px; border-radius: 50%; background: var(--sage-3); display: grid; place-items: center; }
.activity strong { display: block; font-size: .88rem; font-weight: 500; }
.activity small { font-size: .8rem; color: var(--ink-soft); }
.activity time { font-size: .78rem; color: var(--grey); }
@media (max-width: 640px) { .activity li { grid-template-columns: 44px minmax(0, 1fr); } .activity .dot2, .activity time { display: none; } }

/* Pied de page */
.site-footer { background: var(--ink); }
.site-footer .wordmark { color: #fff; font-size: 1.6rem; }

@media print {
  .site-header, .site-footer, .no-print, .flashes { display: none !important; }
  body { background: #fff; }
  .hero2-media { display: none; }
  .pcard, .cat6, .docc, .vsum { break-inside: avoid; }
}

/* Logo officiel */
.logo-link { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; }
.logo-svg { height: 46px; width: auto; display: block; }
@media (max-width: 480px) { .logo-svg { height: 38px; } }
.nav { height: 74px; }
.footer-logo, .admin-logo { color: #fff; }
.footer-logo .logo-svg { height: 44px; }
.admin-logo { margin: 4px 8px 0; }
.admin-logo .logo-svg { height: 30px; }
.admin-shell { font-family: var(--font); }

.dside + .dmain .ring span, .stat2 .ring span { padding-top: 0; align-items: center; }

@media (max-width: 959px) { .search2 { margin-top: 16px; } }

/* Lot 1 — recherche, comparateur */
.vcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #EEEBE4; }
.vcard .vcard-foot form.cmp { position: relative; top: auto; right: auto; z-index: 2; }
.cmp-btn { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .76rem; cursor: pointer; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.cmp-btn.on { background: var(--sage); border-color: var(--sage); }
.cmpbar { position: sticky; top: 74px; z-index: 40; background: var(--ink); color: #fff; }
.cmpbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; font-size: .9rem; }
.cmpbar .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.savebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cmp-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .88rem; table-layout: fixed; min-width: 640px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 10px 14px; vertical-align: top; text-align: left; }
.cmp-table th[scope=row] { width: 190px; background: var(--paper); text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--ink-soft); font-weight: 500; }
.cmp-table thead td { padding: 0; }
.cmp-table .best { background: #EEF5EF; font-weight: 600; }
.cmp-head img { width: 100%; aspect-ratio: 1.9; object-fit: cover; display: block; }
.cmp-head div { padding: 12px 14px; }
.cmp-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin: 0; }

.photo-guide { background: var(--sage-3); border-radius: 6px; padding: 14px 16px; margin: 6px 0 14px; }
.photo-guide ol { margin: 8px 0 6px; padding-left: 1.2em; columns: 2; column-gap: 24px; }
.photo-guide li { margin-bottom: 4px; }
@media (max-width: 560px) { .photo-guide ol { columns: 1; } }
.mobile-only { display: none; }
@media (hover: none) and (pointer: coarse) { .mobile-only { display: inline-flex; } }

/* Carte des résultats */
.viewtoggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; margin-left: auto; }
.viewtoggle a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: .84rem; text-decoration: none; background: #fff; }
.viewtoggle a[aria-current] { background: var(--ink); color: #fff; }
.resultmap { height: 620px; border: 1px solid var(--line); border-radius: 4px; background: #e9e7e1; }
@media (max-width: 700px) { .resultmap { height: 70vh; } }
.mpop { display: grid; gap: 4px; min-width: 200px; font-family: var(--font); }
.mpop img { width: 100%; height: 100px; object-fit: cover; border-radius: 3px; }
.mpop strong { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.mpop span, .mpop em { font-size: .78rem; color: var(--ink-soft); }
.mpop a { font-size: .82rem; }
.mk { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.mk-v { background: var(--ink); } .mk-g { background: #DCE6DE; border: 2px solid #2F6B4F; }

/* Carte des défauts */
.defmap { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 24px 26px; margin-top: 16px; }
.defmap h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0 0 12px; }
.defmap-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .defmap-grid { grid-template-columns: 220px minmax(0, 1fr); } }
.defmap-car { width: 100%; max-width: 220px; margin: 0 auto; }
.defmap-car a { cursor: pointer; }
.spot { stroke: #fff; stroke-width: 3; }
.spot-0 { fill: #4F8A6A; } .spot-1 { fill: #7E8580; } .spot-2 { fill: #B36B12; } .spot-3 { fill: #A23B2E; }
.defmap-car a:hover .spot, .defmap-car a:focus .spot { stroke: var(--ink); }
.defmap-list .zone { border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; margin-bottom: 10px; scroll-margin-top: 90px; }
.defmap-list .zone:target, .defmap-list .zone.hl { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sage); }
.defmap-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; margin: 0 0 8px; }
.zitem { display: flex; gap: 14px; padding: 8px 0; border-top: 1px dashed var(--line); }
.zitem:first-of-type { border-top: 0; }
.zitem img { width: 96px; height: 96px; object-fit: cover; border-radius: 3px; flex: none; }
.zitem strong { display: block; font-weight: 500; font-size: .92rem; margin: 6px 0 2px; }
.zitem p { margin: 0 0 4px; font-size: .84rem; color: var(--ink-soft); }
.zitem small { font-size: .76rem; color: var(--grey); }

@media (min-width: 720px) { .defect-row { grid-template-columns: 1fr 2fr 1fr 1fr; } }

/* Galerie immersive */
.gal-tools { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 3; }
.galbtn { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.94); border: 0; border-radius: 4px; padding: 7px 12px; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink); }
.galbtn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.spin { position: absolute; inset: 0; background: #e7e6e1; cursor: ew-resize; touch-action: pan-y; z-index: 2; }
.spin img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.thumbs2 .extra { display: none; }
.thumbs2 button { position: relative; }
.thumbs2 .more { position: absolute; inset: 0; background: rgba(17,23,21,.55); color: #fff; display: grid; place-items: center; font-size: 1.2rem; font-weight: 600; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,13,12,.94); display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; }
.lb[hidden] { display: none; }
.lb-stage { grid-column: 2; display: grid; place-items: center; overflow: hidden; padding: 24px 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; cursor: zoom-in; transition: transform .2s; }
.lb-stage img.zoomed { transform: scale(2.2); cursor: zoom-out; }
.lb-prev, .lb-next, .lb-close { background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 10px; right: 18px; font-size: 2.2rem; z-index: 2; }
.lb-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px 18px; color: rgba(255,255,255,.8); font-size: .85rem; }
@media (max-width: 640px) { .lb { grid-template-columns: 36px 1fr 36px; } .lb-hint { display: none; } }

/* Navigation mobile façon application */
.tabbar { display: none; }
@media (max-width: 959px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(251,250,246,.98); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: .68rem; color: var(--ink-soft); padding: 4px 0; position: relative; min-height: 48px; justify-content: center; }
  .tabbar a[aria-current] { color: var(--ink); font-weight: 600; }
  .tabbar .plus { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
  .tb-badge { position: absolute; top: 0; left: 55%; background: var(--ink); color: #fff; font-size: .62rem; border-radius: 999px; padding: 1px 6px; }
  .mcontact { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 55; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(17,23,21,.08); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; }
  .mcontact strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
  .mcontact span { font-size: .78rem; color: var(--ink-soft); }
  .detail2 { padding-bottom: 90px; }
  .cmpbar { top: 0; }
}
@media print { .tabbar, .mcontact { display: none !important; } }

/* ---------- Espaces de connexion ---------- */
.login-page { max-width: 1040px; padding: 48px 16px 80px; }
.login-head { max-width: 620px; margin-bottom: 26px; }
.login-head h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); margin: 0 0 8px; }
.login-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 880px) { .login-grid { grid-template-columns: 1.1fr 1fr; } }
.spaces { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.space-opt { display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.space-opt input { position: absolute; opacity: 0; pointer-events: none; }
.space-opt strong { display: block; font-weight: 600; font-size: .98rem; }
.space-opt small { display: block; color: var(--grey); font-size: .84rem; line-height: 1.45; margin-top: 3px; }
.space-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sage-3); display: grid; place-items: center; }
.space-dot { flex: none; margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.space-opt:hover { border-color: var(--line-2); }
.space-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.space-opt:has(input:checked) .space-ic { background: var(--sage); }
.space-opt:has(input:checked) .space-dot { border: 6px solid var(--ink); }
.space-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.login-card { padding: 26px; }
.space-links { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.space-links p { margin: 0; }
.space-links [data-for="pro"], .space-links [data-for="garage"] { display: none; }
.login-grid:has(#sp-pro:checked) [data-for="particulier"], .login-grid:has(#sp-garage:checked) [data-for="particulier"] { display: none; }
.login-grid:has(#sp-pro:checked) [data-for="pro"], .login-grid:has(#sp-garage:checked) [data-for="garage"] { display: block; }

.space-switch { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.space-switch .label { margin: 0 12px 8px; }
.space-switch form { display: grid; gap: 2px; }
.space-switch button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 4px; font: inherit; font-size: .86rem; cursor: pointer; color: inherit; }
.space-switch button small { display: block; color: var(--grey); font-size: .74rem; }
.space-switch button:hover { background: var(--sage-3); }
.space-switch button.on { background: var(--sage-3); font-weight: 500; }

.pending-banner { display: flex; gap: 12px; align-items: flex-start; background: #F7EEDC; border: 1px solid #EBD9B4; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; font-size: .9rem; }
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; text-decoration: none; display: block; }
.stat-tile strong { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1.1; }
.stat-tile span { font-size: .84rem; color: var(--grey); }
.dtable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dtable th { text-align: left; font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.dtable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable .thumbc { width: 74px; }
.dtable .thumbc img, .dtable .thumbc .ph0 { width: 64px; height: 44px; object-fit: cover; border-radius: 3px; display: block; background: var(--sage-3); }
.table-scroll { overflow-x: auto; }
.perm-list { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-list span { font-size: .74rem; background: var(--sage-3); border-radius: 999px; padding: 2px 9px; }
.dayblock { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 10px; }
.dayblock:first-child { border-top: 0; padding-top: 0; }
.dayblock h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin: 0; font-family: var(--font); font-weight: 500; }
.slot { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
.slot time { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 52px; }
.slot .grow { flex: 1; min-width: 0; }
.slot small { display: block; color: var(--grey); font-size: .8rem; }
.checkgrid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.checkrow { display: grid; gap: 8px 14px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.checkrow:first-child { border-top: 0; }
@media (min-width: 800px) { .checkrow { grid-template-columns: 1.1fr auto 1.4fr; } }
.checkrow strong { font-weight: 500; font-size: .9rem; }
.checkrow small { display: block; color: var(--grey); font-size: .78rem; }
.tri { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.tri label { cursor: pointer; }
.tri input { position: absolute; opacity: 0; }
.tri span { display: block; padding: 6px 12px; font-size: .8rem; }
.tri label + label span { border-left: 1px solid var(--line-2); }
.tri input:checked + span.ok { background: #DCE6DE; font-weight: 600; }
.tri input:checked + span.watch { background: #F5E2C2; font-weight: 600; }
.tri input:checked + span.bad { background: #F2D3CC; font-weight: 600; }
.tri input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -2px; }
.res-ok { color: #2F6B4F; } .res-watch { color: #8A5A12; } .res-bad { color: #A33A2B; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-strip img { width: 120px; height: 84px; object-fit: cover; border-radius: 4px; }
.totp-qr { width: 200px; height: 200px; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.totp-qr svg { width: 100%; height: 100%; display: block; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; word-break: break-all; background: var(--paper); border: 1px solid var(--line); padding: 8px 10px; border-radius: 4px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-family: ui-monospace, Menlo, monospace; }
.staff-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: #111715; }
.staff-card { width: 100%; max-width: 460px; background: var(--paper); border-radius: var(--radius-lg); padding: 30px; }
@media print { .dside, .no-print, .site-header, .site-footer, .tabbar { display: none !important; } .dash { display: block; } }
.checkrow:not(:has(input[value="bad"]:checked)) .def-extra { display: none; }

/* ---------- Carte moderne (MapLibre) ---------- */
.resultmap .maplibregl-canvas { outline: none; }
.mk3 { border: 0; cursor: pointer; font: 600 .78rem/1 var(--font); padding: 0; }
.mk3-car { background: #111715; color: #fff; padding: 7px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.28); position: relative; white-space: nowrap; transition: transform .12s; }
.mk3-car::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: #111715; border-bottom: 0; }
.mk3-car:hover, .mk3-car:focus-visible { transform: scale(1.08); z-index: 3; outline: none; }
.mk3-partner, .mk3-dir { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.mk3-partner { background: #2F6B4F; border: 3px solid #fff; }
.mk3-partner span { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.mk3-dir { width: 14px; height: 14px; background: #fff; border: 2px solid #6E756F; }
.mk3-modes { display: inline-flex; background: #fff; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.18); overflow: hidden; }
.mk3-modes button { border: 0; background: transparent; font: 500 .8rem var(--font); padding: 8px 14px; cursor: pointer; color: var(--ink); }
.mk3-modes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.maplibregl-popup-content { border-radius: 8px; padding: 12px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.2); }
@media (prefers-reduced-motion: reduce) { .mk3-car { transition: none; } }
.flag { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.flag.o { background: #D99A2B; } .flag.r { background: #B5483A; } .flag.g { background: #2F6B4F; }
.is-busy { opacity: .6; pointer-events: none; }
.admin-side .count { align-self: center; line-height: 1.6; }

/* ---------- Livraison et dépannage : dossier de mission, devis, photos de preuve, signature ---------- */
.mission-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:22px;align-items:start}
.mission-main{display:grid;gap:16px;min-width:0}
.mission-side{min-width:0;position:sticky;top:84px}
@media (max-width:900px){.mission-grid{grid-template-columns:1fr}.mission-side{position:static}}
.quote-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.proof-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px}
.proof-grid a{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:6px;background:var(--sage,#E8EFE9);border:1px solid var(--line)}
.proof-grid img{width:100%;height:100%;object-fit:cover;display:block}
.proof-grid .sig-thumb{background:#fff}.proof-grid .sig-thumb img{object-fit:contain}
.beforeafter{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px;border:1px solid var(--line);border-radius:8px;margin-bottom:14px;background:#fff}
@media (max-width:560px){.beforeafter{grid-template-columns:1fr}}
.beforeafter .proof-grid{grid-template-columns:repeat(2,1fr)}
.report{padding:14px 0;border-top:1px solid var(--line)}
.report:first-of-type{border-top:0}
.proof-preview{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}
.proof-preview img{width:64px;height:48px;object-fit:cover;border-radius:4px;border:1px solid var(--line)}
.sigpad{position:relative;border:1px dashed var(--ink);border-radius:8px;background:#fff;max-width:600px}
.sigpad canvas{display:block;width:100%;height:auto;aspect-ratio:600/180;touch-action:none;cursor:crosshair;border-radius:8px}
.sigpad [data-sig-clear]{position:absolute;top:6px;right:6px}
.tl{border-left:2px solid var(--line);margin-left:6px;padding-left:18px;display:grid;gap:12px}
.tl>div{position:relative}
.tl>div::before{content:"";position:absolute;left:-25px;top:5px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--ink)}
.tl>div:first-child::before{background:var(--ink)}
/* ---------- Estimateur ---------- */
.val-bar{position:relative;height:10px;border-radius:999px;background:linear-gradient(90deg,var(--sage,#E8EFE9),var(--ink));margin:20px 0 22px;opacity:.85}
.val-bar span{position:absolute;top:-6px;width:4px;height:22px;background:var(--ink);border-radius:2px;transform:translateX(-50%)}
.val-three{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.val-three>div{border:1px solid var(--line);border-radius:8px;padding:12px 14px;background:#fff}
.val-three .label{margin:0 0 4px}.val-three strong{font-size:1.15rem;display:block}.val-three small{color:var(--muted,#6E756F);display:block;margin-top:4px;line-height:1.35}
/* ---------- Ventes (espace professionnel) ---------- */
.sales-bars{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;align-items:end;min-height:170px}
.sales-bars>div{display:flex;flex-direction:column;align-items:center;gap:4px}
.sales-bars span{display:block;width:100%;max-width:56px;background:var(--ink);border-radius:4px 4px 0 0}
.sales-bars small{color:var(--muted,#6E756F)}

/* Données ouvertes : bloc « Au quotidien » et suggestions d'adresses */
.od-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:4px}
.od-card{border:1px solid var(--line,#E5E1D7);border-radius:12px;padding:14px 16px;background:var(--paper,#fff)}
.od-card .label{margin:0 0 8px}
.od-big{font-size:1.45rem;font-weight:700;margin:0 0 4px;line-height:1.2}
.od-big small{font-size:.8rem;font-weight:500;color:var(--muted,#6E756F)}
.od-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:7px 0;border-top:1px solid var(--line,#E5E1D7);font-size:.9rem}
.od-row:first-of-type{border-top:0}
.od-row strong{white-space:nowrap}
.addr-wrap{position:relative}
.addr-list{position:absolute;left:0;right:0;top:100%;z-index:40;margin:2px 0 0;padding:4px 0;list-style:none;background:var(--paper,#fff);border:1px solid var(--line,#E5E1D7);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-height:260px;overflow:auto}
.addr-list li{padding:8px 12px;cursor:pointer;font-size:.9rem}
.addr-list li.on,.addr-list li:hover{background:var(--sage-3,#EEF3EE)}
