/* Moteur de réservation Villa Didon Carthage — charte du site :
   papier clair, Noto Serif Display pour les titres, Montserrat pour le reste,
   bleu Didon pour l'action, angles droits. */
:root {
  --blue: #3664af; --blue-deep: #274f8a; --blue-pale: #a8b8d8;
  --ink: #1a2332; --mute: #7f8c8d; --mute-2: #6d7d90;
  --paper: #fafaf7; --bone: #f3f1ec; --border: #e8e4dc;
  --night: #0a0e1a; --gold: #d7a94e;
  --serif: 'Noto Serif Display', Georgia, serif;
  --sans: 'Montserrat', -apple-system, sans-serif;
  --accent: var(--blue);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.nav-langs { display: flex; gap: 12px; font-size: 11px; letter-spacing: .18em; font-weight: 600; }
.nav-langs button { color: rgba(255,255,255,.65); padding: 6px 2px; letter-spacing: .18em; font-size: 11px; font-weight: 600; }
.nav-langs button.active { color: #fff; }
.nav.scrolled .nav-langs button { color: var(--mute-2); }
.nav.scrolled .nav-langs button.active { color: var(--blue); }

/* ---------- HERO ---------- */
.bk-hero { position: relative; height: 58svh; min-height: 440px; overflow: hidden; background: var(--night); }
.bk-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.bk-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,.45) 0%, rgba(10,14,26,.08) 35%, rgba(10,14,26,.72) 100%); }
.bk-hero-inner { position: relative; height: 100%; max-width: 1300px; margin: 0 auto; padding: 0 24px 64px; display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 768px) { .bk-hero-inner { padding: 0 64px 80px; } }
.bk-eyebrow { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.bk-eyebrow-line { display: inline-block; width: 32px; height: 1px; background: rgba(255,255,255,.7); vertical-align: middle; margin-right: 12px; }
.bk-hero-title { font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(42px, 7vw, 96px); line-height: 1; letter-spacing: -.01em; }
.bk-hero-title em { font-style: italic; color: var(--blue-pale); }
.bk-hero-line { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.88); font-size: clamp(16px, 1.8vw, 20px); max-width: 34rem; margin-top: 20px; line-height: 1.55; }

/* ---------- STRUCTURE ---------- */
.bk { background: var(--paper); padding: 56px 24px 100px; scroll-margin-top: 60px; }
@media (min-width: 768px) { .bk { padding: 72px 64px 120px; } }
.bk-inner { max-width: 1240px; margin: 0 auto; }
.bk-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .bk-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } }
.bk-aside { position: sticky; top: 96px; }
@media (max-width: 999px) { .bk-aside { position: static; order: -1; } }

/* ---------- ÉTAPES ---------- */
.bk-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); margin-bottom: 48px; }
.bk-step { padding: 16px 0 0; border-top: 2px solid transparent; margin-top: -1px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.bk-step b { font-family: var(--serif); font-size: 18px; letter-spacing: 0; font-weight: 400; color: var(--border); }
.bk-step.done { color: var(--ink); cursor: pointer; }
.bk-step.done b { color: var(--blue-pale); }
.bk-step.current { border-top-color: var(--blue); color: var(--blue); }
.bk-step.current b { color: var(--blue); }
@media (max-width: 640px) { .bk-step span { display: none; } .bk-step { justify-content: center; } }

/* ---------- TITRES ---------- */
.bk-kicker { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 14px; }
.bk-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 14px; }
.bk-title em { font-style: italic; color: var(--blue); }
.bk-lead { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--mute); max-width: 36rem; margin-bottom: 36px; line-height: 1.65; }

/* ---------- CALENDRIER ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-nav { width: 40px; height: 40px; border: 1px solid var(--border); display: grid; place-items: center; transition: border-color .2s, color .2s; }
.cal-nav:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 720px) { .cal-months { grid-template-columns: 1fr 1fr; } }
.cal-month-name { font-family: var(--serif); font-size: 20px; text-align: center; margin-bottom: 14px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); text-align: center; padding: 6px 0; font-weight: 600; }
.cal-day { aspect-ratio: 1 / 1.02; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: #fff; border: 1px solid transparent; font-size: 14px; transition: background .15s, border-color .15s; position: relative; }
.cal-day small { font-size: 9px; color: var(--mute); letter-spacing: .02em; font-weight: 500; }
.cal-day:hover:not(:disabled) { border-color: var(--blue); }
.cal-day:disabled { background: transparent; color: #c9c4b8; cursor: default; }
.cal-day.full { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(26,35,50,.05) 4px 8px); color: #b9b3a6; text-decoration: line-through; }
.cal-day.in { background: rgba(54,100,175,.12); }
.cal-day.start, .cal-day.end { background: var(--blue); color: #fff; }
.cal-day.start small, .cal-day.end small { color: rgba(255,255,255,.8); }
.cal-day.empty { background: transparent; }
.cal-legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 11px; color: var(--mute); margin-top: 18px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -2px; border: 1px solid var(--border); }

/* ---------- CHAMPS ---------- */
.bk-row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
@media (min-width: 640px) { .bk-row.two { grid-template-columns: 1fr 1fr; } .bk-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.bk-field { display: flex; flex-direction: column; gap: 8px; }
.bk-field.full { grid-column: 1 / -1; }
.bk-label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute-2); font-weight: 600; }
.bk-input { background: #fff; border: 1px solid var(--border); padding: 14px 16px; font-size: 14px; outline: none; width: 100%; transition: border-color .2s; }
.bk-input:focus { border-color: var(--blue); }
.bk-input.err { border-color: #c0553f; }
textarea.bk-input { min-height: 110px; resize: vertical; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--border); background: #fff; }
.stepper button { width: 48px; font-size: 18px; color: var(--blue); }
.stepper button:disabled { color: #ccc; cursor: default; }
.stepper span { flex: 1; text-align: center; padding: 13px 0; font-size: 14px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.bk-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.55; cursor: pointer; }
.bk-check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 1px; flex-shrink: 0; }
.bk-link { color: var(--blue); border-bottom: 1px solid rgba(54,100,175,.35); }
.bk-hint { font-size: 12px; color: var(--mute); }

/* ---------- BOUTONS ---------- */
.bk-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 44px; }
.bk-btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 36px; background: var(--blue); color: #fff; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; transition: background .35s; }
.bk-btn:hover:not(:disabled) { background: var(--blue-deep); }
.bk-btn:disabled { background: #b8c2d3; cursor: not-allowed; }
.bk-btn svg { transition: transform .3s; }
.bk-btn:hover:not(:disabled) svg { transform: translateX(4px); }
.bk-back { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--mute-2); font-weight: 600; padding: 10px 0; }
.bk-back:hover { color: var(--ink); }
.bk-btn.ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.bk-btn.ghost:hover { background: var(--blue); color: #fff; }

/* ---------- SUITES ---------- */
.suite { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--border); margin-bottom: 24px; transition: border-color .25s, box-shadow .25s; }
@media (min-width: 760px) { .suite { grid-template-columns: 300px 1fr; } }
.suite:hover { box-shadow: 0 30px 60px -40px rgba(26,35,50,.35); }
.suite.selected { border-color: var(--blue); }
.suite.off { opacity: .55; }
.suite-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
@media (min-width: 760px) { .suite-img { aspect-ratio: auto; min-height: 260px; } }
.suite-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.suite:hover .suite-img img { transform: scale(1.04); }
.suite-tag { position: absolute; top: 14px; left: 14px; background: var(--paper); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; }
.suite-body { padding: 28px 30px; display: flex; flex-direction: column; }
.suite-name { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.suite-view { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute-2); margin-top: 8px; font-weight: 600; }
.suite-desc { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 15px; line-height: 1.65; margin-top: 14px; }
.suite-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 12px; color: var(--ink); }
.suite-feats li::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--blue); margin-right: 8px; vertical-align: 2px; }
.suite-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: auto; padding-top: 24px; flex-wrap: wrap; }
.suite-price { font-family: var(--serif); font-size: 30px; line-height: 1; }
.suite-price small { display: block; font-family: var(--sans); font-size: 11px; color: var(--mute); margin-top: 6px; letter-spacing: .02em; }
.suite .bk-btn { padding: 15px 26px; }

/* ---------- RÉSUMÉ ---------- */
.sum { background: #fff; border: 1px solid var(--border); }
.sum-img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--bone); }
.sum-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sum-body { padding: 24px 26px; }
.sum-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.sum-sub { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute-2); margin-top: 6px; font-weight: 600; }
.sum-rows { margin-top: 20px; border-top: 1px solid var(--border); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sum-row span:first-child { color: var(--mute-2); }
.sum-row.total { font-weight: 600; font-size: 15px; border-bottom: 0; padding-top: 16px; }
.sum-row.total span:first-child { color: var(--ink); }
.sum-row.deposit { background: rgba(54,100,175,.07); margin: 0 -26px; padding: 13px 26px; border: 0; color: var(--blue); font-weight: 600; }
.sum-row.deposit span:first-child { color: var(--blue); }
.sum-empty { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 15px; line-height: 1.6; }
.sum-note { font-size: 12px; color: var(--mute); margin-top: 16px; line-height: 1.6; display: flex; gap: 10px; }
.sum-note svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.sum-help { margin-top: 18px; padding: 18px 26px; border: 1px solid var(--border); border-top: 0; background: var(--bone); font-size: 12px; color: var(--mute-2); line-height: 1.6; }
.sum-help a { color: var(--ink); font-weight: 600; }

/* ---------- PAIEMENT ---------- */
.pay-opts { display: grid; gap: 14px; }
.pay-opt { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); padding: 22px 24px; cursor: pointer; transition: border-color .2s; }
.pay-opt:has(input:checked) { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.pay-opt-title { font-weight: 600; font-size: 14px; }
.pay-opt-desc { font-size: 12px; color: var(--mute); margin-top: 4px; line-height: 1.6; }
.pay-opt-amount { margin-left: auto; font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.cards { display: flex; gap: 6px; margin-top: 10px; }
.cards span { font-size: 9px; font-weight: 600; letter-spacing: .1em; border: 1px solid var(--border); padding: 3px 7px; color: var(--mute-2); }
.secure { display: flex; gap: 12px; align-items: center; margin-top: 28px; padding: 16px 18px; background: var(--bone); font-size: 12px; color: var(--mute-2); line-height: 1.55; }
.secure svg { color: var(--blue); flex-shrink: 0; }

/* ---------- CONFIRMATION ---------- */
.conf-mark { width: 56px; height: 56px; border: 1px solid var(--blue); display: grid; place-items: center; color: var(--blue); margin-bottom: 28px; }
.conf-ref { display: inline-block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; border: 1px solid var(--border); padding: 10px 16px; background: #fff; margin-bottom: 28px; }
.conf-list { list-style: none; border-top: 1px solid var(--border); margin-top: 8px; }
.conf-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.55; }
.conf-list b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--blue); width: 28px; flex-shrink: 0; line-height: 1.2; }

/* ---------- ENGAGEMENTS ---------- */
.bk-trust { background: var(--bone); padding: 64px 24px; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .bk-trust { padding: 72px 64px; } }
.bk-trust-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .bk-trust-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .bk-trust-inner { grid-template-columns: repeat(4, 1fr); } }
.trust-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; margin: 14px 0 8px; }
.trust-desc { font-size: 13px; color: var(--mute-2); line-height: 1.65; }
.trust-icon { color: var(--blue); }

/* ---------- MODALE ---------- */
.bk-modal-bg { position: fixed; inset: 0; background: rgba(10,14,26,.55); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.bk-modal-bg.open { opacity: 1; pointer-events: auto; }
.bk-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 64px); overflow-y: auto; background: var(--paper); z-index: 90; padding: 40px 36px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.bk-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.bk-modal h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 18px; line-height: 1.15; }
.bk-modal p, .bk-modal li { font-size: 13px; line-height: 1.7; color: var(--mute-2); margin-bottom: 10px; }
.bk-modal ul { padding-left: 18px; }
.bk-modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; }
.bank { border: 1px solid var(--border); background: #fff; }
.bank-head { background: #eef1f5; padding: 14px 20px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #3b4a5c; display: flex; justify-content: space-between; }
.bank-body { padding: 24px 20px; font-size: 13px; color: var(--mute-2); line-height: 1.65; }
.spinner { width: 28px; height: 28px; border: 2px solid var(--border); border-top-color: var(--blue); animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.bk-proto { position: fixed; left: 16px; bottom: 16px; z-index: 40; background: var(--night); color: rgba(255,255,255,.85); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 8px 12px; border-left: 3px solid var(--gold); }
@media (max-width: 640px) { .bk-proto { left: 0; right: 0; bottom: 0; text-align: center; } }

.fade { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }

/* ---------- BAIGNOIRE / SURCLASSEMENT ---------- */
.bath-filter { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: -8px 0 28px; }
.seg { display: flex; flex-wrap: wrap; }
.seg button { border: 1px solid var(--border); background: #fff; padding: 10px 16px; font-size: 12px; margin-left: -1px; transition: border-color .2s, color .2s; }
.seg button:first-child { margin-left: 0; }
.seg button.on { border-color: var(--blue); color: var(--blue); position: relative; z-index: 1; font-weight: 600; }
.up-img { aspect-ratio: 16 / 9; overflow: hidden; margin: -40px -36px 0; position: relative; }
.up-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.up-badge { display: inline-block; vertical-align: middle; font-family: var(--sans); font-size: 9px; letter-spacing: .25em; text-transform: uppercase; font-weight: 600; color: var(--blue); border: 1px solid var(--blue); padding: 3px 7px; margin-left: 6px; }
.suite-left { font-size: 11px; color: #a9742a; font-weight: 600; margin-top: 10px; letter-spacing: .04em; }

/* ---------- Module 0 : ajouts au parcours de la démo ---------- */
/* Pages sans bandeau photo (retour de la banque, banque simulée). */
.bk-page .nav { position: fixed; }
.bk-seul { padding-top: 140px; min-height: 80svh; }
.bk-seul .bk-main { max-width: 720px; }
.conf-rows { margin: 28px 0 8px; max-width: 520px; }
.bk-help-foot { text-align: center; font-size: 12px; color: var(--mute-2); padding: 40px 24px 60px; }
.bk-help-foot a { color: var(--blue); }
/* Nuits passées ou au-delà de l'horizon : grisées, jamais vendables (C-6). */
.cal-day.hors { color: #d5d0c4; }
/* Nuit complète ou fermée : marquée, mais choisissable pour une demande (DV-8). */
.cal-day.full:not(:disabled) { cursor: pointer; }
/* Deux choix côte à côte : la règle de base et l'offre (3.3, RA-04). */
.suite-offres { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .suite-offres.deux { grid-template-columns: 1fr 1fr; } }
.suite-offre { border: 1px solid var(--border); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.suite-offre-titre { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute-2); }
.suite-offre-detail { font-size: 12px; color: var(--mute); line-height: 1.55; }
.bk-message { margin-top: 20px; padding: 14px 18px; border-left: 3px solid var(--gold); background: #fff; font-size: 13px; line-height: 1.6; }
.bk-message.erreur { border-left-color: #c0553f; color: #8c3a29; }
.bk-ferme { text-align: center; padding: 40px 0; }
.bk-ferme p { margin-top: 12px; }
.bk-ferme a { color: var(--blue); }
.cal-day small.etat { font-size: 8px; letter-spacing: .04em; text-transform: lowercase; }
.bk-legal { font-size: 12px; color: var(--mute); margin-top: 14px; line-height: 1.6; }
/* Lot, point 7 (relais 2k) : le sejour d'une demande, en clair, juste avant l'envoi. */
.bk-recap { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--blue); border-left-width: 4px; background: #fff; }
.bk-recap-k { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute-2); }
.bk-recap-txt { font-size: 17px; line-height: 1.5; margin: 6px 0 4px; color: var(--ink, inherit); }
.bk-recap-long { margin-top: 12px; font-weight: 600; }
