/* Perfect Residence — design inspiré de StayBooker (licence MIT, voir LICENSE-staybooker.txt) */
:root {
  --brand: #074498;
  --brand-d: #053679;
  --brand-h: #1e3a8a;
  --gold: #cbae37;
  --gold-h: #ca8a04;
  --ink: #334155;
  --ink2: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --slate: #f8fafc;
  --bg2: #f1f5f9;
  --green: #166534;
  --green-s: #dcfce7;
  --red: #b91c1c;
  --red-s: #fee2e2;
  --amber: #a16207;
  --amber-s: #fef9c3;
  --soft: #dbeafe;
  --shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.5 Jost, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.ic { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
.ic-s { width: 12px; height: 12px; }
.ok-t { color: var(--green); font-weight: 500; }

/* ---------- Barre de navigation ---------- */
.nav-bar { position: relative; z-index: 30; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 16px; min-height: 64px;
  background: var(--brand); border-bottom: 1px solid var(--brand-d); box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); }
@media (min-width: 768px) { .nav-bar { padding: 0 48px; } }
.logo { display: flex; flex-direction: column; justify-content: center; height: 54px; text-decoration: none; color: #fff; line-height: 1; }
.logo-1 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.logo-2 { font-size: 11px; font-weight: 600; letter-spacing: 6px; color: var(--gold); margin-top: 3px; }
.nav-tog { display: block; border: 0; background: none; padding: 4px; cursor: pointer; }
.nav-list { list-style: none; margin: 0; padding: 0; display: none; }
.nav-list.open { display: block; position: absolute; right: 0; top: 100%; width: 260px; background: var(--brand); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); padding: 8px 0; }
.nav-list li { position: relative; }
.nav-a { position: relative; display: inline-block; padding: 16px; text-transform: uppercase; font-weight: 500; color: #f1f5f9; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 16px; }
.nav-list.open li:hover { background: var(--brand-h); }
.nav-list.open .nav-a { display: block; width: 100%; text-align: left; }
.nav-a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: bottom right; transition: transform .3s ease-in; }
.nav-a:hover::after, .nav-a.active::after { transform: scaleX(1); transform-origin: bottom left; }
@media (min-width: 768px) {
  .nav-tog { display: none; }
  .nav-list { display: flex !important; position: static !important; width: auto !important; box-shadow: none !important; padding: 0 !important; }
}
.menu { position: absolute; right: 0; top: 100%; z-index: 40; background: #fff; border-radius: 8px; box-shadow: var(--shadow); min-width: 220px; padding: 8px 0; color: #374151; font-size: 14px; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 16px; border: 0; background: none; text-decoration: none; cursor: pointer; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--brand); color: #fff; }
.menu-who { padding: 8px 16px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-who div { color: var(--muted); font-size: 13px; }
#bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 100; opacity: 0; pointer-events: none; }

/* ---------- Recherche (bandeau) ---------- */
.hero { background: var(--brand); min-height: 400px; color: #f1f5f9; padding-bottom: 28px; }
@media (min-width: 768px) { .hero { min-height: 288px; } }
@media (min-width: 1024px) { .hero { min-height: 240px; } }
.hero-in { display: flex; flex-direction: column; align-items: center; padding-top: 18px; }
.hero-tabs { display: flex; gap: 4px; }
.hero-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: #cbd5e1; padding: 8px 14px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; font-size: 15px; }
.hero-tabs button:hover { color: #fff; }
.hero-tabs button.on { color: #fff; border-color: var(--gold); }
.hero-txt { padding: 16px 0; text-align: center; }
.hero-txt h3 { font-size: 36px; line-height: 40px; font-weight: 500; }
.hero-txt p { margin: 4px 0 0; }
.hero-box { width: 100%; display: flex; justify-content: center; }
.band { background: var(--brand); padding: 16px 8px; display: flex; align-items: center; justify-content: center; min-height: 220px; }
@media (min-width: 1024px) { .band { min-height: 120px; } }
.band-t { min-height: 140px !important; color: #f1f5f9; }
.band-t h1 { font-size: 34px; font-weight: 500; text-align: center; }
.sbx { display: flex; flex-direction: column; flex-wrap: wrap; width: 100%; max-width: 100%; }
@media (min-width: 1024px) { .sbx { flex-direction: row; width: auto; } }
.sbx-f { position: relative; width: 100%; }
@media (min-width: 768px) { .sbx-f { width: auto; } }
.sbx-f > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #475569; pointer-events: none; }
.sbx-i { width: 100%; padding: 8px 32px; border: 2px solid var(--gold); background: #fff; color: #868585; outline: none; min-width: 0; border-radius: 0; }
@media (min-width: 1024px) { .sbx-i { width: 220px; } .sbx-city .sbx-i { width: 220px; } }
.sbx-i::placeholder { color: #9b9a9a; }
.sbx-i:focus { color: #334155; }
.sbx-i[readonly] { cursor: pointer; }
.sbx-i2 { padding-left: 16px; }
.sbx-dates { position: relative; display: flex; }
.sbx-dates .sbx-f { flex: 1; }
.sbx-ta { position: absolute; left: 0; top: 100%; width: 100%; z-index: 10; background: #fff; max-height: 260px; overflow: auto; box-shadow: var(--shadow); }
.sbx-ta div { font-size: 16px; color: var(--ink2); padding: 8px; cursor: pointer; border-bottom: 2px solid var(--line); }
.sbx-ta div:hover { background: var(--bg2); }
.sbx-cal { position: absolute; z-index: 20; left: 0; top: 100%; background: #fff; color: var(--ink); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); width: max(100%, 320px); }
@media (min-width: 760px) { .sbx-cal { width: 640px; } }
.sbx-go { width: 100%; background: var(--gold); color: #fff; border: 0; padding: 8px 16px; cursor: pointer; font-weight: 500; letter-spacing: .5px; }
@media (min-width: 768px) { .sbx-go { width: auto; } }
.sbx-go:hover { background: var(--gold-h); }

/* ---------- Accueil ---------- */
.h2c { font-size: 30px; line-height: 36px; font-weight: 500; color: var(--ink); text-align: center; }
.pop-sec { margin: 16px 0; }
.pop { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px; margin: 16px 0; }
.pc { padding: 16px; border: 1px solid var(--line); text-decoration: none; cursor: pointer; transition: background .15s; }
.pc:hover { background: var(--bg2); }
.pc-img { display: grid; place-items: center; width: 120px; height: 75px; border-radius: 4px; overflow: hidden; color: #fff; font-size: 28px; font-weight: 700; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc h4 { text-align: center; font-weight: 400; margin-top: 2px; }
.k0 { background: linear-gradient(135deg, #074498, #3b82f6); }
.k1 { background: linear-gradient(135deg, #b45309, #cbae37); }
.k2 { background: linear-gradient(135deg, #166534, #4ade80); }
.k3 { background: linear-gradient(135deg, #7c2d12, #f97316); }
.k4 { background: linear-gradient(135deg, #581c87, #a855f7); }
.lst-sec { margin: 32px 0; }
.lst-sec .h2c { margin: 8px 0; }
.more { display: flex; justify-content: center; margin-top: 16px; }
.btn-out { display: inline-block; border: 2px solid var(--brand); color: var(--brand); padding: 8px 20px; text-decoration: none; font-weight: 500; background: #fff; cursor: pointer; }
.btn-out:hover { background: var(--brand); color: #fff; }

/* Carte de résultat (hôtel / voiture) */
.hv-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.hv { display: flex; flex-direction: column; gap: 8px; width: 100%; border: 1px solid var(--line); padding: 16px; background: #fff; }
@media (min-width: 768px) { .hv { flex-direction: row; } }
.hv-img { display: block; flex-shrink: 0; background: var(--bg2); overflow: hidden; aspect-ratio: 220 / 140; }
@media (min-width: 768px) { .hv-img { width: 220px; height: 140px; } }
.hv-img img { width: 100%; height: 100%; object-fit: cover; }
.hv-img .noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #94a3b8; font-size: 44px; }
.hv-mid { display: flex; flex-direction: column; flex: 1; min-width: 0; }
@media (min-width: 768px) { .hv-mid { margin-left: 8px; } }
.hv-t { text-decoration: none; color: var(--ink2); transition: color .3s; }
.hv-t:hover { color: var(--brand); }
.hv-t h4 { font-size: 24px; line-height: 32px; font-weight: 700; color: inherit; }
.hv-sub { margin: 0; color: var(--ink2); font-size: 14px; }
.hv-ben { list-style: none; padding: 0; margin: 12px 0 0; }
.hv-ben li { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 500; font-size: 14px; }
.hv-side { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; }
@media (min-width: 768px) { .hv-side { margin-left: auto; border-left: 2px solid var(--line); padding-left: 16px; min-width: 170px; } }
.hv-top { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; height: 100%; }
@media (min-width: 768px) { .hv-top { flex-direction: column; margin: 0; align-items: flex-end; } }
.hv-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: #fff; background: var(--brand); padding: 8px; }
.hv-price { margin: 0; color: var(--ink2); font-weight: 700; white-space: nowrap; text-align: right; }
.hv-price small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.hv-btn { display: block; text-align: center; background: var(--gold); color: #fff; padding: 8px 16px; text-decoration: none; white-space: nowrap; }
.hv-btn:hover { background: var(--gold-h); }
.hv-sk .hv-img { width: 220px; height: 140px; }

/* ---------- Pages de résultats ---------- */
.lst { padding: 16px 8px 40px; }
.lst-row { display: flex; align-items: flex-start; gap: 0; }
@media (min-width: 768px) { .lst-row { gap: 16px; } }
.flt { width: 240px; flex-shrink: 0; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; display: none; }
@media (min-width: 768px) { .flt { display: block; } }
.flt.open { display: block; position: absolute; z-index: 20; }
.flt-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; border-bottom: 2px solid var(--line); }
.flt-h h4 { font-size: 16px; font-weight: 700; color: var(--ink2); text-transform: uppercase; }
.flt-h button, .flt-tog { font-size: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-weight: 500; color: #374151; background: #fff; cursor: pointer; }
.flt-h button:disabled { opacity: .5; cursor: default; }
.flt-tog { display: inline-flex; }
@media (min-width: 768px) { .flt-tog { display: none; } }
.flt-g { border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.flt-g h4 { font-size: 16px; font-weight: 700; color: var(--ink2); margin: 4px 0; padding: 0 8px; }
.cb { display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 15px; color: var(--ink2); cursor: pointer; }
.cb input { width: 16px; height: 16px; accent-color: var(--brand); }
.lst-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lst-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.lst-sub { margin: 0; color: var(--ink2); flex: 1; }
.sel { width: 210px; font-size: 14px; padding: 8px; border: 1px solid #ccc; background: #fff; border-radius: 4px; }
.pager { display: flex; justify-content: center; gap: 4px; margin: 24px 0 0; flex-wrap: wrap; }
.pager button { min-width: 40px; padding: 8px 12px; border: 1px solid #d1d5db; background: #fff; color: #6b7280; cursor: pointer; }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button:disabled { opacity: .5; cursor: default; }
.empty-state { text-align: center; padding: 48px 16px; border: 1px solid var(--line); width: 100%; }
.empty-state > .ic { width: 48px; height: 48px; color: #94a3b8; }
.empty-state h3 { margin: 8px 0 4px; font-weight: 600; }
.empty-state .btn-out { margin-top: 14px; }

/* ---------- Fiche résidence / agence ---------- */
.dt { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 40px; }
@media (min-width: 960px) { .dt { flex-wrap: nowrap; } }
.dt-main { width: 100%; max-width: 800px; background: #fff; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.gal { background: #fff; }
.gal-main { position: relative; aspect-ratio: 16 / 10; background: #0f172a; display: grid; place-items: center; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-main .noimg { color: #94a3b8; text-align: center; font-size: 15px; }
.gal-main .noimg .ic { width: 56px; height: 56px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #fff; font-size: 60px; line-height: 1; padding: 20px 10px; cursor: pointer; filter: drop-shadow(0 2px 2px #1a1a1a); }
.gal-nav:hover { color: #337ab7; }
.gal-nav.prev { left: 0; }
.gal-nav.next { right: 0; }
.gal-th { display: flex; gap: 4px; justify-content: center; padding: 6px; overflow-x: auto; }
.gal-th button { border: 4px solid transparent; padding: 0; background: none; cursor: pointer; flex-shrink: 0; }
.gal-th button.on, .gal-th button:hover { border-color: #337ab7; }
.gal-th img { width: 92px; height: 60px; object-fit: cover; }
.dt-body { padding: 16px; }
.dt-title { font-size: 30px; line-height: 36px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
.dt-sub { font-size: 14px; color: #4b5563; margin: 0 0 16px; }
.dt-specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.dt-specs span { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 500; font-size: 14px; }
.dt-desc p { color: #374151; margin: 0 0 8px; }
.dt-ben { font-size: 14px; color: #4b5563; margin: 16px 0 0; }
.dt-sec { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.dt-sec h3 { font-size: 18px; font-weight: 700; color: #374151; margin-bottom: 10px; }
.dt-sec p { margin: 0 0 6px; }
.units { display: grid; gap: 8px; }
.unit { border: 1px solid var(--line); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; background: #fff; text-align: left; width: 100%; }
.unit:hover { border-color: var(--brand); }
.unit.on { border: 2px solid var(--brand); padding: 11px 13px; background: #eff6ff; }
.unit.off { opacity: .55; cursor: not-allowed; }
.rv { display: flex; flex-direction: column; padding: 16px; border-top: 1px solid var(--line); }
.rv h1 { font-size: 20px; font-weight: 700; color: #374151; }
.rv-row { display: flex; flex-direction: column; gap: 24px; padding: 16px 0; }
@media (min-width: 768px) { .rv-row { flex-direction: row; } }
.rv-ov { width: 100%; }
@media (min-width: 768px) { .rv-ov { width: 60%; } }
.rv-l { font-size: 18px; font-weight: 600; color: #374151; }
.rv-big { font-size: 30px; font-weight: 700; color: #374151; }
.rv-s { font-size: 14px; }
.rv-bar { display: flex; align-items: center; gap: 16px; margin: 4px 0; }
.rv-bar span { display: inline-flex; align-items: center; gap: 4px; width: 32px; flex-shrink: 0; }
.rv-bar .ic { color: #facc15; }
.rv-bar div { flex: 1; background: #e5e7eb; border-radius: 999px; height: 10px; overflow: hidden; }
.rv-bar i { display: block; height: 100%; background: #facc15; border-radius: 999px; }
.rv-it { padding: 12px 0; border-top: 1px solid var(--line); }
.rv-top { display: flex; justify-content: space-between; align-items: center; }
.rv-who { display: flex; align-items: center; gap: 8px; }
.rv-who .ic { width: 24px; height: 24px; color: #d1d5db; }
.rv-who h4 { font-weight: 600; color: #374151; }
.rv-n { display: flex; align-items: center; gap: 4px; color: #eab308; margin: 0; }
.rv-it p { margin: 4px 0 0; }

/* Carte « Détails de la réservation » */
.dt-side { width: 100%; }
@media (min-width: 768px) { .dt-side { width: 380px; flex-shrink: 0; } }
.book { position: sticky; top: 16px; background: #fff; box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); border-radius: 12px; overflow: hidden; }
.book-h { padding: 16px 24px; background: var(--brand); color: #fff; }
.book-h h2 { font-size: 20px; font-weight: 700; }
.book-b { padding: 24px; font-size: 15px; }
.book-price { font-size: 20px; font-weight: 700; color: #4f46e5; }
.book-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.book-box { border: 1px solid rgb(204, 204, 204); margin: 16px 0 12px; }
.book-dates { display: grid; grid-template-columns: 1fr 1fr; }
.book-dates button, .book-guests { text-align: left; border: 0; background: none; padding: 10px 12px; cursor: pointer; }
.book-dates button + button { border-left: 1px solid rgb(204, 204, 204); }
.book-guests { border-top: 1px solid rgb(204, 204, 204); width: 100%; display: flex; justify-content: space-between; align-items: center; cursor: default; }
.bk-t { display: block; font-size: 13px; font-weight: 600; color: #1f2937; }
.bk-v { font-size: 14px; color: #4b5563; }
.step { display: flex; align-items: center; gap: 10px; }
.step button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.step button:disabled { opacity: .3; cursor: not-allowed; }
.book-b h3 { font-size: 16px; font-weight: 600; color: #1f2937; margin: 12px 0 8px; }
.sum { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; color: #4b5563; }
.sum.tot { font-weight: 700; color: #1f2937; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.opt { display: block; border: 1px solid var(--line); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.opt.on { border: 2px solid var(--brand); padding: 9px 11px; background: #eff6ff; }
.opt input { margin-right: 8px; accent-color: var(--brand); }
.opt .muted { margin: 4px 0 0 24px; font-size: 13px; }
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .book { position: static; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; z-index: 15; }
  .mobile-bar .btn { min-height: 44px; }
  body.has-bar { padding-bottom: 76px; }
}

/* ---------- Boutons, champs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; background: var(--gold); color: #fff; font-weight: 500; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--gold-h); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.sec { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn.sec:hover { background: var(--brand); color: #fff; }
.btn.ghost { background: none; color: var(--brand); text-decoration: underline; padding: 0; min-height: 0; font-weight: 500; border: 0; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #fca5a5; }
.btn.wa { background: #1faf5a; }
label.l { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: #1f2937; }
.in { width: 100%; padding: 10px 12px; border: 1px solid rgb(204, 204, 204); background: #fff; }
.in:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
textarea.in { min-height: 80px; resize: vertical; }
.err { color: var(--red); font-size: 14px; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 7px 14px; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; background: #e2e8f0; color: var(--ink2); }
.b-green { background: var(--green-s); color: var(--green); }
.b-amber { background: var(--amber-s); color: var(--amber); }
.b-red { background: var(--red-s); color: var(--red); }
.b-brand { background: var(--soft); color: var(--brand); }
.skel { background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.noimg { display: grid; place-items: center; color: var(--muted); font-size: 14px; background: var(--bg2); }

/* ---------- Calendrier ---------- */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 700px) { .cal-wrap.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.cal-nav { width: 34px; height: 34px; border: 0; background: #eff2f7; cursor: pointer; font-size: 18px; border-radius: 5px; }
.cal-nav:hover { background: #dee7f7; }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; row-gap: 2px; }
.cal .wd { font-size: 12px; color: rgb(132, 144, 149); padding-bottom: 6px; }
.cal button { aspect-ratio: 1; width: 100%; min-width: 0; padding: 0; border: 0; background: none; font-size: 14px; cursor: pointer; position: relative; border-radius: 6px; }
.cal button:hover:not(:disabled) { outline: 1.5px solid var(--brand); }
.cal button:disabled { color: #d5dce0; cursor: default; }
.cal button.d-off { text-decoration: line-through; }
.cal button.d-in { background: #dbeafe; border-radius: 0; }
.cal button.d-sel { background: var(--brand); color: #fff; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* ---------- Dialogue ---------- */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow); color: var(--ink); }
dialog.wide { width: min(860px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 1; }
.dlg-h b { font-size: 18px; font-weight: 600; }
.x { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 26px; line-height: 1; color: #fff; }
.dlg-b { padding: 20px; }
.gallery { display: grid; gap: 10px; }

/* ---------- Réservations ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 60px; }
.page h1 { font-size: 30px; font-weight: 500; }
.page h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.empty { text-align: center; padding: 60px 16px; }
.empty h2, .empty h3 { margin-bottom: 8px; }
.bk-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.bk { display: flex; gap: 14px; border: 1px solid var(--line); padding: 12px; text-decoration: none; background: #fff; }
.bk:hover { box-shadow: var(--shadow); }
.bk img, .bk .noimg { width: 110px; height: 90px; object-fit: cover; flex-shrink: 0; }
.panel { border: 1px solid var(--line); padding: 20px; margin-bottom: 16px; background: #fff; }
.panel p { margin: 0 0 8px; }
.panel.ok { background: var(--green-s); border-color: #bbf7d0; }
.panel.warn { background: var(--amber-s); border-color: #fde68a; }
.panel.bad { background: var(--red-s); border-color: #fecaca; }
.detail-grid { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 1040px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.3fr 1fr; } }
.num { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.num b { font-size: 18px; }
.ref { font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--brand); }

/* ---------- À propos ---------- */
.about { max-width: 960px; padding-top: 28px; padding-bottom: 40px; font-size: 17px; }
.about-g { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 768px) { .about-g { grid-template-columns: repeat(3, 1fr); } }
.about-g > div { border: 1px solid var(--line); padding: 18px; }
.about-g h3 { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.about-g p { margin: 0; font-size: 15px; color: var(--ink2); }
.about a { color: var(--brand); font-weight: 500; }

/* ---------- Pied de page ---------- */
.foot { background: var(--slate); color: var(--ink); margin-top: 24px; }
.foot-in { padding: 24px 24px; }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; }
.foot-col { width: 100%; margin-bottom: 24px; }
@media (min-width: 768px) { .foot-col { width: 33.333%; margin-bottom: 0; } }
.foot-col h4 { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.foot-col a { display: block; color: var(--ink); text-decoration: none; transition: color .3s; }
.foot-col a:hover { color: var(--brand); }
.foot-col p { margin: 0 0 8px; }
.foot-btn { padding: 8px 14px; background: var(--brand); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
.foot-base { text-align: center; margin-top: 40px; }
.foot-base p { margin: 0; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 12px 18px; z-index: 50; font-size: 15px; }

/* ---------- Connexion : Google, Apple, GitHub ---------- */
.soc { display: grid; gap: 8px; }
.soc-b { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid #cbd5e1; background: #fff; color: #1f2937; text-decoration: none; font-weight: 500; }
.soc-b:hover { background: var(--bg2); }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Double authentification */
.code-in { font-size: 24px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.btn.sec-off { background: #fff; color: #b42318; border: 1px solid #b42318; }
