/* TDB Réservation directe 0.5.1 : carte de réservation et fiche logement, d'après la maquette du 18 novembre 2026. */
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('manrope-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.tdbr, .tdbr-fiche {
	--tdb-ink: #222222;
	--tdb-black: #242424;
	--tdb-muted: #5F6368;
	--tdb-line: #E3E5E8;
	--tdb-yellow: #FCC054;
	--tdb-coral: #FC5460;
	--tdb-grey: #A8A8A8;
	--tdb-busy: #F5F6F7;
	--tdb-busy-ink: #5B6270;
	--tdb-stay: #FEF3DA;
	--tdb-green: #1F7A4D;
	font-family: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--tdb-ink);
}

/* ---------- Carte de réservation ---------- */
.tdbr { box-sizing: border-box; container-type: inline-size; width: 100%; max-width: 760px; margin: 1.5rem auto; padding: 24px; border: 1px solid var(--tdb-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(20, 20, 30, .08); font-size: 15px; line-height: 1.4; text-align: left; }
.tdbr *, .tdbr *::before, .tdbr *::after { box-sizing: border-box; }
.tdbr [hidden] { display: none !important; }
.tdbr p, .tdbr ul, .tdbr h2 { margin: 0; padding: 0; }
.tdbr-fiche-aside .tdbr { margin: 0; max-width: none; }

.tdbr-bar { display: flex; height: 5px; border-radius: 5px; overflow: hidden; margin-bottom: 18px; }
.tdbr-bar span { flex: 1; }
.tdbr-bar span:nth-child(1) { background: var(--tdb-coral); }
.tdbr-bar span:nth-child(2) { background: var(--tdb-grey); }
.tdbr-bar span:nth-child(3) { background: var(--tdb-yellow); }

.tdbr-main { display: flex; flex-direction: column; gap: 18px; }
.tdbr-head { display: flex; flex-direction: column; gap: 4px; }
.tdbr .tdbr-title { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: 0; color: var(--tdb-ink); }
.tdbr-sub { font-size: 14px; color: var(--tdb-muted); }

.tdbr-cols { display: flex; flex-direction: column; gap: 18px; }
.tdbr-cal { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tdbr-sum { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.tdbr-cal-nav { display: flex; align-items: center; justify-content: space-between; }
.tdbr-month { font-size: 16px; font-weight: 700; }
.tdbr .tdbr-nav { width: 44px; height: 44px; padding: 0; border: 1px solid var(--tdb-line); border-radius: 10px; background: #fff; color: var(--tdb-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tdbr .tdbr-nav[disabled] { opacity: .35; cursor: default; }

.tdbr-dow, .tdbr-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tdbr-dow span { text-align: center; font-size: 12px; font-weight: 600; color: var(--tdb-muted); }
.tdbr-days { min-height: 276px; align-content: start; transition: opacity .15s; }
.tdbr-loading .tdbr-days { opacity: .45; }

.tdbr .tdbr-day { height: 52px; min-width: 0; margin: 0; padding: 0; border: 1px solid var(--tdb-line); border-radius: 10px; background: #fff; color: var(--tdb-ink); font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; line-height: 1.1; }
.tdbr .tdbr-day-pad { border: 0; background: none; cursor: default; }
.tdbr-day-n { font-size: 15px; font-weight: 600; }
.tdbr-day-s { font-size: 11px; color: var(--tdb-muted); white-space: nowrap; }
.tdbr .tdbr-day:hover:not([disabled]):not(.tdbr-day-pad) { border-color: var(--tdb-black); }
.tdbr .tdbr-day-busy { border-color: var(--tdb-busy); background: var(--tdb-busy); color: var(--tdb-busy-ink); cursor: default; }
.tdbr-day-busy .tdbr-day-n { font-weight: 500; text-decoration: line-through; }
.tdbr-day-busy .tdbr-day-s { font-size: 10px; color: var(--tdb-busy-ink); }
.tdbr .tdbr-day-co { border-style: dashed; border-color: var(--tdb-black); background: #fff; }
.tdbr .tdbr-day-in { border-color: var(--tdb-stay); background: var(--tdb-stay); }
.tdbr-day-in .tdbr-day-n { font-weight: 700; }
.tdbr-day-in .tdbr-day-s { color: var(--tdb-ink); }
.tdbr .tdbr-day-sel { border-color: var(--tdb-black); background: var(--tdb-black); color: #fff; }
.tdbr-day-sel .tdbr-day-n { font-weight: 700; }
.tdbr-day-sel .tdbr-day-s { color: #fff; }
.tdbr-hint-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; min-height: 1.4em; }
.tdbr-hint { font-size: 13px; color: var(--tdb-muted); }
.tdbr .tdbr-clear { margin: 0; padding: 0; min-height: 24px; border: 0; background: none; color: var(--tdb-black); font-family: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.tdbr-dates { display: flex; gap: 8px; align-items: stretch; }
.tdbr-dates > div { flex: 1; min-width: 0; border: 1px solid var(--tdb-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tdbr-dates span, .tdbr-guests label, .tdbr-grid label { font-size: 12px; font-weight: 600; color: var(--tdb-muted); }
.tdbr-dates strong { font-size: 15px; font-weight: 700; }
.tdbr-guests { display: flex; gap: 8px; }
.tdbr-guests label { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tdbr select, .tdbr input[type=text], .tdbr input[type=email], .tdbr input[type=tel] { display: block; width: 100%; height: 46px; margin: 0; padding: 0 12px; border: 1px solid var(--tdb-line); border-radius: 10px; background: #fff; color: var(--tdb-ink); font-family: inherit; font-size: 16px; font-weight: 600; }
.tdbr input:focus-visible, .tdbr select:focus-visible, .tdbr button:focus-visible, .tdbr a:focus-visible { outline: 3px solid var(--tdb-black); outline-offset: 2px; }

.tdbr-quote { display: flex; flex-direction: column; gap: 8px; }
.tdbr-lines { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tdbr-lines li, .tdbr-total { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; }
.tdbr .tdbr-total { padding-top: 10px; border-top: 1px solid var(--tdb-line); font-size: 17px; font-weight: 800; }
.tdbr-vat { font-size: 12px; color: var(--tdb-muted); }
.tdbr .tdbr-msg { padding: 10px 12px; border-radius: 10px; background: #FDECEA; color: #8A1C13; font-size: 14px; font-weight: 600; }

.tdbr-cmp { border: 1px solid #BFE3CD; background: #F1F8F4; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.tdbr-cmp svg { flex: none; margin-top: 2px; color: var(--tdb-green); }
.tdbr-cmp div { display: flex; flex-direction: column; gap: 3px; }
.tdbr-cmp strong { font-size: 14px; font-weight: 800; }
.tdbr-cmp-line { font-size: 13px; }
.tdbr-cmp-note { font-size: 12px; color: var(--tdb-muted); }

.tdbr-cta { display: flex; flex-direction: column; gap: 10px; }
.tdbr-cta-price { display: none; }
.tdbr .tdbr-btn { display: block; width: 100%; min-height: 54px; margin: 0; padding: 0 16px; border: 0; border-radius: 12px; background: var(--tdb-yellow); color: var(--tdb-ink); font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.tdbr .tdbr-btn[disabled] { background: #F1F2F4; color: var(--tdb-muted); cursor: default; }
.tdbr .tdbr-btn:hover:not([disabled]) { background: #F9B63A; }
.tdbr-go-short { display: none; }

.tdbr-step2 { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.tdbr-step2-title { font-size: 17px; font-weight: 800; }
.tdbr-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tdbr-grid label { display: flex; flex-direction: column; gap: 4px; }
.tdbr-cgv { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--tdb-ink); }
.tdbr-cgv input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--tdb-black); }
.tdbr-cot { padding: 12px 14px; border: 1px solid #e6e6e6; border-radius: 12px; background: #fffaf0; }
.tdbr-cot[hidden] { display: none; }
.tdbr a { color: var(--tdb-black); text-underline-offset: 3px; }
/* Version 0.5.0 : bloc « Facture » (particulier ou entreprise). */
.tdbr-inv { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--tdb-line); }
.tdbr-inv-title { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 15px; font-weight: 800; color: var(--tdb-ink); }
.tdbr-inv-title + * { clear: both; }
.tdbr-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tdbr-seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 10px; border: 1px solid var(--tdb-line); border-radius: 10px; background: #fff; color: var(--tdb-ink); font-size: 15px; font-weight: 700; text-align: center; cursor: pointer; }
.tdbr-seg input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.tdbr-seg label:has(input:checked) { border: 2px solid var(--tdb-black); background: var(--tdb-stay); }
.tdbr-seg label:has(input:focus-visible) { outline: 3px solid var(--tdb-black); outline-offset: 2px; }
.tdbr .tdbr-help { font-size: 12px; font-weight: 500; color: var(--tdb-muted); }
.tdbr-inv[data-type=person] .tdbr-inv-country { grid-column: 1 / -1; }
.tdbr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tdbr-secure { font-size: 12px; color: var(--tdb-muted); text-align: center; }

.tdbr-points { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tdbr-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.tdbr-points svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--tdb-green); }

.tdbr-status { margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; background: #EEF2F7; color: var(--tdb-ink); font-weight: 700; }
.tdbr-status-confirmed, .tdbr-status-attention { background: #F1F8F4; border: 1px solid #BFE3CD; }
.tdbr-status-failed, .tdbr-status-canceled, .tdbr-status-expired { background: #FDECEA; color: #8A1C13; }
.tdbr .tdbr-test { margin: 0 0 14px; padding: 8px 12px; border: 1px dashed #B26A00; border-radius: 10px; background: #FFF8E1; color: #7A4A00; font-size: 13px; }
.tdbr-offline { text-align: center; }

/* Carte large (tablette, pleine largeur) : calendrier à gauche, dates et prix à droite. */
@container (min-width: 600px) {
	.tdbr-cols { flex-direction: row; gap: 24px; align-items: flex-start; }
	.tdbr-cal, .tdbr-sum { flex: 1 1 0; }
	.tdbr .tdbr-day { height: 48px; }
	.tdbr-day-n { font-size: 14px; }
	.tdbr-day-s { font-size: 10px; }
	.tdbr-days { min-height: 256px; }
	.tdbr-grid { grid-template-columns: 1fr 1fr; }
	.tdbr-wide { grid-column: 1 / -1; }
}

/* Carte étroite (téléphone) : cases plus basses, prix et bouton collés en bas de l'écran. */
@container (max-width: 345px) {
	.tdbr .tdbr-day { height: 44px; }
	.tdbr-day-n { font-size: 14px; }
	.tdbr-day-s { font-size: 9px; }
	.tdbr-days { min-height: 236px; }
	.tdbr-dates strong { font-size: 14px; }
}
@media (max-width: 600px) {
	.tdbr { padding: 12px; border-radius: 14px; scroll-margin-top: 12px; }
	.tdbr-cta { position: sticky; bottom: 0; z-index: 5; flex-direction: row; align-items: center; gap: 12px; margin: 0 -12px; padding: 12px; border-top: 1px solid var(--tdb-line); background: #fff; }
	.tdbr-cta-price { display: flex; flex-direction: column; flex: none; max-width: 46%; }
	.tdbr-cta-price strong { font-size: 18px; font-weight: 800; line-height: 1.2; }
	.tdbr-cta-price span { font-size: 12px; color: var(--tdb-muted); }
	.tdbr-cta .tdbr-btn { flex: 1; padding: 0 10px; }
	.tdbr-go-long { display: none; }
	.tdbr-go-short { display: inline; }
}

/* ---------- Fiche logement ---------- */
.tdbr-fiche { box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; margin-top: 1.5rem; margin-bottom: 2rem; text-align: left; }
.tdbr-fiche *, .tdbr-fiche *::before, .tdbr-fiche *::after { box-sizing: border-box; }
.tdbr-fiche-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tdbr-fiche-main > * { margin: 0; }
.tdbr-fiche-aside { flex: 0 1 420px; min-width: 300px; scroll-margin-top: 24px; }
.tdbr { scroll-margin-top: 24px; }
@media (min-width: 1040px) { .tdbr-fiche-aside { position: sticky; top: 24px; } }
@media (max-width: 1039px) { .tdbr-fiche { gap: 24px; } .tdbr-fiche-aside { flex: 1 1 100%; min-width: 0; } }

.tdbr-photos { display: grid; gap: 8px; }
.tdbr-photo { overflow: hidden; border-radius: 14px; background: #E9EBEE; }
.tdbr-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tdbr-photos-1 .tdbr-photo-1, .tdbr-photos-2 .tdbr-photo { aspect-ratio: 16 / 9; }
.tdbr-photos-2 { grid-template-columns: 1fr 1fr; }
.tdbr-photos-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 190px 190px; }
.tdbr-photos-3 .tdbr-photo-1 { grid-row: 1 / span 2; }
@media (max-width: 1039px) {
	.tdbr-photos-3, .tdbr-photos-2 { grid-template-columns: 1fr; grid-template-rows: none; }
	.tdbr-photos .tdbr-photo-1 { grid-row: auto; aspect-ratio: 16 / 7; }
	.tdbr-photos .tdbr-photo-2, .tdbr-photos .tdbr-photo-3 { display: none; }
}
@media (max-width: 600px) { .tdbr-photos .tdbr-photo-1 { aspect-ratio: 16 / 10; } }

.tdbr-fiche .tdbr-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--tdb-line); border-radius: 999px; padding: 6px 12px; }
.tdbr-fiche .tdbr-h1 { font-family: inherit; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--tdb-ink); }
.tdbr-fiche .tdbr-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.tdbr-facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.tdbr-facts svg { flex: none; }
.tdbr-notes-wrap { display: flex; flex-direction: column; gap: 8px; }
.tdbr-notes { display: flex; flex-wrap: wrap; gap: 12px; }
.tdbr-note { border: 1px solid var(--tdb-line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.tdbr-note strong { font-size: 20px; font-weight: 800; }
.tdbr-note span { font-size: 13px; color: var(--tdb-muted); }
.tdbr-fiche .tdbr-notes-date { margin: 0; font-size: 12px; color: var(--tdb-muted); }
.tdbr-intro { font-size: 17px; line-height: 1.6; max-width: 62ch; }
.tdbr-intro p { margin: 0 0 .8em; }
.tdbr-intro p:last-child { margin-bottom: 0; }
.tdbr-fiche .tdbr-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--tdb-line); }
.tdbr-links a { font-size: 15px; font-weight: 700; color: var(--tdb-ink); text-underline-offset: 4px; min-height: 24px; }
.tdbr-fiche .tdbr-contact { font-size: 15px; line-height: 1.6; color: var(--tdb-muted); }
.tdbr-contact a { color: var(--tdb-black); }

/* Version 0.4.3 : prix « dès … € la nuit » */
.tdbr-from { margin: 8px 0 12px; font-size: 15px; font-weight: 700; line-height: 1.4; color: #242424; }

/* Version 0.5.1 : confirmation de réservation, à l'écran et à l'impression. */
.tdbr-conf { display: flex; flex-direction: column; gap: 16px; outline: none; }
.tdbr-conf-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--tdb-line); }
.tdbr-conf-brand { font-size: 13px; font-weight: 700; color: var(--tdb-muted); }
.tdbr-conf-doc { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tdb-muted); }
.tdbr .tdbr-conf-title { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--tdb-ink); }
.tdbr-conf-title svg { flex: none; width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: #E6F4EC; color: var(--tdb-green); }
.tdbr-conf-ref { font-size: 14px; font-weight: 700; }
.tdbr-conf-hello { font-size: 15px; }
.tdbr-conf-rows { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.tdbr-conf-row { display: grid; grid-template-columns: 1fr; gap: 2px; }
.tdbr-conf-row dt { font-size: 12px; font-weight: 600; color: var(--tdb-muted); }
.tdbr-conf-row dd { margin: 0; font-size: 15px; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.tdbr-conf-money { padding: 14px 16px; border: 1px solid var(--tdb-line); border-radius: 12px; }
.tdbr-conf-money .tdbr-lines { margin: 0 0 10px; }
.tdbr .tdbr-conf-sub { margin: 4px 0 0; font-size: 17px; font-weight: 800; color: var(--tdb-ink); }
.tdbr-conf-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: tdbr-step; }
.tdbr-conf-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 36px; font-size: 14px; line-height: 1.45; counter-increment: tdbr-step; }
.tdbr-conf-steps li::before { content: counter(tdbr-step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tdb-yellow); color: var(--tdb-ink); font-size: 12px; font-weight: 800; }
.tdbr-conf-steps strong { font-size: 14px; font-weight: 800; }
.tdbr-conf-small { font-size: 13px; color: var(--tdb-muted); }
.tdbr-conf-printed { display: none; font-size: 12px; color: var(--tdb-muted); }
@container (min-width: 600px) {
	.tdbr-conf-row { grid-template-columns: 170px 1fr; gap: 16px; }
	.tdbr-conf-row dt { font-size: 13px; padding-top: 1px; }
}
@media screen { .tdbr-print-root { display: none !important; } }
@media print {
	html.tdbr-printing body > *:not(.tdbr-print-root) { display: none !important; }
	html.tdbr-printing body { margin: 0; background: #fff; }
	html.tdbr-printing .tdbr-print-root { display: block !important; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; color: #000; }
	html.tdbr-printing .tdbr-print-root .tdbr-conf { gap: 10px; }
	html.tdbr-printing .tdbr-print-root .tdbr-conf-title { font-size: 20px; }
	html.tdbr-printing .tdbr-conf-head { padding-bottom: 10px; }
	html.tdbr-printing .tdbr-conf-rows { gap: 5px; }
	html.tdbr-printing .tdbr-conf-row dd { font-size: 13.5px; }
	html.tdbr-printing .tdbr-conf-money { padding: 8px 12px; }
	html.tdbr-printing .tdbr-conf-money .tdbr-lines li { font-size: 13.5px; }
	html.tdbr-printing .tdbr-conf-steps { gap: 6px; }
	html.tdbr-printing .tdbr-conf-steps li, html.tdbr-printing .tdbr-conf-steps strong { font-size: 12.5px; line-height: 1.35; }
	html.tdbr-printing .tdbr-conf-small { font-size: 11.5px; }
	html.tdbr-printing .tdbr-conf-actions { display: none !important; }
	html.tdbr-printing .tdbr-conf-printed { display: block; }
	html.tdbr-printing .tdbr-conf-row { grid-template-columns: 170px 1fr; gap: 16px; }
	html.tdbr-printing .tdbr-conf-steps li::before { border: 1px solid #000; background: #fff; }
	html.tdbr-printing .tdbr-conf-steps li, html.tdbr-printing .tdbr-conf-money, html.tdbr-printing .tdbr-conf-row { break-inside: avoid; }
	@page { margin: 12mm; }
}
