/* ============================================================
   SpotFrame · Design system
   Blanc épuré, accent bleu confiance. Public pro audiovisuel.
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff4ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e9ef;
  --line-2: #f1f3f7;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 6px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 18px 50px rgba(15,23,42,.14);
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px;
  padding: 12px 18px; font-weight: 600; font-size: .95rem;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--bg-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: .85rem; border-radius: 9px; }
.btn-lg { padding: 15px 24px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--blue); color: #fff;
}
.logo .mark svg { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a.link { padding: 9px 12px; border-radius: 9px; font-weight: 500; color: var(--ink-2); font-size: .93rem; }
.nav a.link:hover { background: var(--bg-soft); color: var(--ink); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-weight: 700; border: 1px solid var(--line);
}
.menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 72px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.site-footer a { display: block; color: var(--ink-2); padding: 5px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--blue); }
.site-footer .bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blue-soft); color: var(--blue-dark);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .82rem; margin-bottom: 20px;
}
.hero h1 { max-width: 15ch; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; margin-top: 18px; }

/* ---------- Search bar ---------- */
.searchbar {
  display: flex; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow); padding: 6px; max-width: 720px; margin-top: 28px;
}
.searchbar .field { flex: 1; display: flex; flex-direction: column; padding: 8px 20px; border-radius: 999px; cursor: text; }
.searchbar .field + .field { border-left: 1px solid var(--line); }
.searchbar .field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.searchbar .field input, .searchbar .field select {
  border: none; outline: none; font-size: .95rem; background: transparent; color: var(--ink); padding: 2px 0; width: 100%;
}
.searchbar .go { border-radius: 999px; padding: 0 22px; }

/* ---------- Role split (accueil) ---------- */
.role-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.role-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: #fff;
  position: relative; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s;
}
.role-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #dbe3ef; }
.role-card.searcher { background: linear-gradient(180deg,#fff, #fbfdff); }
.role-card .role-ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.role-card.owner .role-ico { background: var(--ink); color: #fff; }
.role-card.searcher .role-ico { background: var(--blue); color: #fff; }
.role-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.role-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.role-card li { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-2); font-size: .95rem; }
.role-card li svg { flex: none; margin-top: 3px; color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); margin-top: 10px; font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature .fi { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .93rem; }

/* ---------- Listing cards ---------- */
.cards-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.lcard { border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.lcard .thumb { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--line-2); }
.lcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lcard:hover .thumb img { transform: scale(1.04); }
.lcard .badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--ink);
  padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; box-shadow: var(--shadow-sm);
  display: inline-flex; gap: 6px; align-items: center;
}
.lcard .badge.studio { background: var(--ink); color: #fff; }
.lcard .fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; display: grid; place-items: center; }
.lcard .meta { padding: 12px 4px 4px; }
.lcard .meta .row1 { display: flex; justify-content: space-between; gap: 10px; }
.lcard .title { font-weight: 600; font-size: .98rem; }
.lcard .loc { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.lcard .price { margin-top: 8px; font-weight: 700; font-size: .95rem; }
.lcard .price span { font-weight: 500; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; }
.rating svg { color: var(--warn); }

/* ---------- Search page layout ---------- */
.search-shell { display: grid; grid-template-columns: 1fr 44%; height: calc(100vh - var(--header-h)); }
.search-list { overflow-y: auto; padding: 20px 24px 60px; }
.search-map { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); }
#map { width: 100%; height: 100%; }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 0 18px; position: sticky; top: 0; background: #fff; z-index: 5; border-bottom: 1px solid var(--line-2); }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: #cbd5e1; }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip .n { background: var(--blue); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; }
.search-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.search-cards .lcard.active .thumb { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Map markers */
.marker {
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px;
  padding: 6px 11px; font-weight: 700; font-size: .8rem; color: var(--ink); white-space: nowrap; transform: translate(-50%,-50%);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.marker.studio { background: var(--ink); color: #fff; border-color: var(--ink); }
.marker.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.marker .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }

/* ---------- Detail page ---------- */
.detail-head { padding: 24px 0 8px; }
.detail-head h1 { font-size: 1.7rem; }
.detail-sub { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .92rem; margin-top: 8px; flex-wrap: wrap; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 440px; border-radius: var(--radius-lg); overflow: hidden; margin: 12px 0 8px; }
.gallery-all { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow); cursor: pointer; }
.gallery-all:hover { background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery .g0 { grid-row: 1 / 3; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; padding-top: 28px; }
.spec-groups { display: grid; gap: 8px; }
.spec-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-group summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.spec-group summary::-webkit-details-marker { display: none; }
.spec-group[open] summary { border-bottom: 1px solid var(--line-2); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 16px 18px; }
.spec { display: flex; gap: 9px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.spec svg { flex: none; }
.spec.yes svg { color: var(--ok); }
.spec.no { color: #94a3b8; }
.spec.no svg { color: #cbd5e1; }
.spec .k { color: var(--muted); }
.spec .v { color: var(--ink); font-weight: 600; margin-left: auto; }

/* Booking box */
.booking {
  position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); background: #fff;
}
.booking .price-lead { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.booking .price-lead b { font-size: 1.4rem; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.date-row .d { padding: 10px 12px; }
.date-row .d + .d { border-left: 1px solid var(--line); }
.date-row label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.date-row input { border: none; outline: none; font-size: .92rem; width: 100%; background: transparent; }
.calc { margin-top: 16px; display: grid; gap: 9px; }
.calc .line { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-2); }
.calc .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 1.02rem; color: var(--ink); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 780px; margin: 0 auto; padding: 40px 0 80px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: #fff; box-shadow: var(--shadow-sm); }
.field-group { margin-bottom: 22px; }
.field-group > label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.field-group .hint { color: var(--muted); font-size: .84rem; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; font-size: .95rem; font-family: inherit; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: .9rem; cursor: pointer; transition: border-color .12s, background .12s;
}
.check:hover { border-color: #cbd5e1; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.check.on { border-color: var(--blue); background: var(--blue-soft); }
.fieldset-title { font-weight: 700; font-size: 1.05rem; margin: 6px 0 14px; display: flex; align-items: center; gap: 10px; }
.fieldset-title .num { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.divider { height: 1px; background: var(--line); margin: 28px 0; }

/* Type chooser */
.type-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.type-opt { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 26px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.type-opt:hover { border-color: #cbd5e1; }
.type-opt.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.type-opt .ti { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.type-opt h3 { font-size: 1.15rem; }
.type-opt p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* Uploader */
.uploader { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.uploader:hover { border-color: var(--blue); background: var(--blue-soft); }
.thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 14px; }
.thumbs .t { aspect-ratio: 1; border-radius: 10px; background: var(--line-2); position: relative; overflow: hidden; }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 24px; }
.auth-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); background: #fff; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.oauth-btn { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.oauth-btn:hover { background: var(--bg-soft); }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .84rem; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.role-toggle { display: flex; gap: 10px; margin: 10px 0 4px; }
.role-toggle .rt { flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 12px; text-align: center; cursor: pointer; font-size: .88rem; font-weight: 600; }
.role-toggle .rt.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- Dashboard ---------- */
.dash { padding: 32px 0 80px; }
.dash-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 20px 0 28px; }
.dash-tabs .t { padding: 12px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.dash-tabs .t.on { color: var(--ink); border-color: var(--ink); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .n { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.stat .l { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.stat .delta { font-size: .8rem; font-weight: 600; margin-top: 8px; display: inline-flex; gap: 4px; }
.stat .delta.up { color: var(--ok); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); }
.pill { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.pending { background: #fef3c7; color: #92400e; }
.pill.confirmed { background: #dcfce7; color: #166534; }
.pill.refused { background: #fee2e2; color: #991b1b; }
.dash-listing { display: flex; gap: 14px; align-items: center; }
.dash-listing img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }

/* ---------- Calendrier ---------- */
.cal { max-width: 420px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; line-height: 1; color: var(--ink); }
.cal-nav:hover { background: var(--bg-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { margin-bottom: 4px; }
.dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell { aspect-ratio: 1; display: grid; place-items: center; font-size: .86rem; border-radius: 9px; cursor: pointer; user-select: none; }
.cal-cell:not(.empty):not(.off):hover { background: var(--blue-soft); }
.cal-cell.off { color: #cbd5e1; text-decoration: line-through; cursor: not-allowed; }
.cal-cell.empty { cursor: default; }
.cal-cell.sel { background: var(--ink); color: #fff; font-weight: 700; }
.cal-cell.range { background: var(--blue-soft); border-radius: 0; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: grid; place-items: center; z-index: 100; padding: 24px; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal .mhead { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal .mbody { padding: 24px; }
.modal .mfoot { padding: 18px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.pay-row { display: flex; gap: 10px; }
.pay-badge { display: inline-flex; align-items: center; gap: 8px; background: #fef9c3; color: #854d0e; padding: 8px 12px; border-radius: 10px; font-size: .82rem; font-weight: 600; margin-bottom: 16px; }
.success-check { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 0 72px; color: var(--ink-2); }
.legal h1 { font-size: 1.9rem; color: var(--ink); margin-bottom: 6px; }
.legal h2 { font-size: 1.15rem; color: var(--ink); margin: 28px 0 8px; }
.legal p { margin: 10px 0; line-height: 1.7; }
.legal ul { margin: 10px 0; padding-left: 22px; }
.legal li { margin: 6px 0; line-height: 1.6; }
.legal a { color: var(--blue); }
.legal .legal-version { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.legal-modal { max-width: 720px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; }
.legal-modal .mbody { overflow: auto; }
.legal-modal .legal { padding: 4px 4px 8px; }
.legal-modal .legal h1 { font-size: 1.3rem; }
.legal-modal .legal h2 { font-size: 1.02rem; }

/* ---------- Bandeau cookies ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; align-items: center; gap: 18px; max-width: 900px; margin: 0 auto; }
.cookie-bar .cookie-txt { font-size: .88rem; color: var(--ink-2); flex: 1; }
.cookie-bar .cookie-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-bar .cookie-actions { justify-content: stretch; } .cookie-bar .cookie-actions .btn { flex: 1; } }

/* ---------- Acceptation / assurance (réservation) ---------- */
.accept-box { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-top: 4px; }
.accept-check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.5; cursor: pointer; }
.accept-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.accept-check a { color: var(--blue); font-weight: 600; }
.upload-mini { border: 1.5px dashed var(--line); border-radius: 11px; padding: 14px; text-align: center; color: var(--muted); cursor: pointer; font-size: .86rem; transition: border-color .15s, background .15s; }
.upload-mini:hover { border-color: var(--blue); background: var(--blue-soft); }
.upload-mini.ok { border-color: var(--ok); background: #f0fdf4; color: #166534; border-style: solid; }

/* ---------- Messagerie ---------- */
.msg-shell { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: calc(100vh - var(--header-h) - 120px); min-height: 460px; }
.msg-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg-soft); }
.msg-list .conv { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.msg-list .conv:hover { background: #fff; }
.msg-list .conv.active { background: #fff; box-shadow: inset 3px 0 0 var(--blue); }
.msg-list .conv img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.msg-list .conv .c-title { font-weight: 600; font-size: .92rem; }
.msg-list .conv .c-last { color: var(--muted); font-size: .82rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.msg-main { display: flex; flex-direction: column; background: #fff; }
.msg-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.msg-head img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.msg-thread { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble .t { display: block; font-size: .68rem; opacity: .7; margin-top: 4px; }
.msg-composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 10px; }
.msg-composer input { flex: 1; }
.msg-empty { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; padding: 40px; }
@media (max-width: 760px) {
  .msg-shell { grid-template-columns: 1fr; height: auto; }
  .msg-shell.show-thread .msg-list { display: none; }
  .msg-shell:not(.show-thread) .msg-main { display: none; }
  .msg-main { min-height: 60vh; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; font-weight: 500; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .role-split, .grid-3, .cards-row, .search-cards { grid-template-columns: 1fr; }
  .cards-row { grid-template-columns: 1fr 1fr; }
  .search-shell { grid-template-columns: 1fr; height: auto; }
  .search-map { display: none; }
  .search-map.mobile-on { display: block; position: fixed; inset: var(--header-h) 0 0; height: auto; z-index: 30; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .booking { position: static; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery img { height: 240px; }
  .gallery .g0 { grid-row: auto; }
  .gallery img:nth-child(n+3) { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav .link.desktop { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .grid-2, .check-grid, .type-choose { grid-template-columns: 1fr; }
  .searchbar { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .searchbar .field + .field { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .cards-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}
.floating-map-btn { display: none; }
@media (max-width: 960px) {
  .floating-map-btn { display: inline-flex; position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 40; box-shadow: var(--shadow-lg); }
}
