:root {
    --pine: #1f3a34;
    --pine-dark: #14221e;
    --cream: #f7f3ec;
    --sand: #ebe3d6;
    --copper: #b5622f;
    --copper-dark: #974f24;
    --ink: #22282a;
    --muted: #5f6a68;
    --line: #ddd5c8;
    --busy: #c9c2b6;
    --bs-body-color: var(--ink);
    --bs-body-bg: #fffdfa;
    --bs-link-color-rgb: 31, 58, 52;
    --bs-link-hover-color-rgb: 181, 98, 47;
}

body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
h1, h2, h3, .navbar-brand, .footer-brand { font-family: Georgia, "Times New Roman", serif; color: var(--pine); }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.2; text-wrap: balance; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Boutons */
.btn-primary { --bs-btn-bg: var(--pine); --bs-btn-border-color: var(--pine); --bs-btn-hover-bg: var(--pine-dark); --bs-btn-hover-border-color: var(--pine-dark); --bs-btn-active-bg: var(--pine-dark); --bs-btn-active-border-color: var(--pine-dark); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--copper); --bs-btn-border-color: var(--copper); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--copper-dark); --bs-btn-hover-border-color: var(--copper-dark); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--copper-dark); font-weight: 600; }

/* En-tête / pied */
.site-header { border-bottom: 1px solid var(--line); background: #fffdfa; }
.navbar-brand { font-size: 1.35rem; font-weight: 700; color: var(--pine); }
.site-header .nav-link { color: var(--ink); }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .8rem !important; font-size: .9rem; }
.site-footer { background: var(--pine); color: #dfe7e3; padding: 2.5rem 0 1.5rem; margin-top: 4rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-brand { color: #fff; font-size: 1.2rem; }
.footer-title { color: #fff; font-weight: 600; }
.footer-copy { margin: 2rem 0 0; font-size: .85rem; opacity: .7; }

/* Accueil */
.hero { background: var(--pine) center / cover no-repeat; color: #fff; padding: clamp(4rem, 12vw, 8rem) 0; }
.hero h1 { color: #fff; max-width: 18em; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero-text { max-width: 36em; font-size: 1.15rem; margin-bottom: 1.75rem; }
.section { padding: 3.5rem 0; }
.section .container, .container.section { padding-top: 0; padding-bottom: 0; }
.container.section { padding: 3.5rem .75rem; }
.section-alt { background: var(--cream); }

.apt-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; height: 100%; display: flex; flex-direction: column; }
.apt-card-media { display: block; aspect-ratio: 3 / 2; background: var(--sand); }
.apt-card-media img { width: 100%; height: 100%; object-fit: cover; }
.apt-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.apt-card-body h3 { font-size: 1.3rem; margin: 0; }
.apt-card-body h3 a { text-decoration: none; }
.apt-card-body p { margin: 0; }
.apt-card-body .btn { margin-top: auto; align-self: flex-start; }
.apt-card-place { color: var(--copper-dark); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.apt-card-facts { color: var(--muted); font-size: .9rem; }
.apt-card-price { font-weight: 600; padding-bottom: .6rem; }

.photo-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); background: repeating-linear-gradient(135deg, var(--sand), var(--sand) 14px, var(--cream) 14px, var(--cream) 28px); }
.photo-placeholder-lg { height: 320px; border-radius: 14px; margin-bottom: 2rem; }

/* Page appartement */
.apt-page { padding-top: 2rem; }
.apt-header { margin-bottom: 1.25rem; }
.apt-facts { color: var(--muted); margin: 0; }
.apt-section { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.lead { font-size: 1.15rem; margin-bottom: 1.75rem; }

.gallery { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; border-radius: 14px; overflow: hidden; margin-bottom: 2rem; }
.gallery-item { padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-1 { grid-template-columns: 1fr; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
.gallery-2 .gallery-item { grid-row: 1 / 3; }
.gallery-3 { grid-template-columns: 2fr 1fr; }
.gallery-4 .gallery-item:last-of-type { grid-column: 2 / 4; }
.gallery-all { position: absolute; right: 12px; bottom: 12px; font-size: .9rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.gallery-item { position: relative; }
.gallery-label { position: absolute; left: 10px; top: 10px; background: rgba(20, 34, 30, .78); color: #fff; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; }
.gallery-full { background: #fffdfa; padding: 0 1rem 2rem; }
.gallery-rooms { position: sticky; top: 0; z-index: 2; display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0; background: #fffdfa; border-bottom: 1px solid var(--line); max-width: 1400px; margin: 0 auto; }
.gallery-rooms a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .85rem; font-size: .9rem; text-decoration: none; color: var(--ink); background: #fff; }
.gallery-rooms a:hover { border-color: var(--copper); }
.gallery-rooms small { color: var(--muted); }
.gallery-room { max-width: 1400px; margin: 0 auto; padding-top: 1.5rem; scroll-margin-top: 3.5rem; }
.gallery-room h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.gallery-room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.gallery-room-grid img { width: 100%; height: auto; border-radius: 8px; scroll-margin-top: 4rem; }

.highlight { display: flex; gap: .85rem; }
.highlight-icon { font-size: 1.6rem; line-height: 1.2; }
.highlight h3 { font-size: 1.05rem; margin: 0 0 .15rem; font-family: inherit; font-weight: 600; }
.highlight p { margin: 0; color: var(--muted); font-size: .95rem; }

.def-list { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .45rem 1.25rem; margin: 0; }
.def-list dt { font-weight: 600; }
.def-list dd { margin: 0; color: var(--muted); }
.amenities { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.amenities li { padding: .25rem 0 .25rem 1.4rem; position: relative; break-inside: avoid; }
.amenities li::before { content: "✓"; position: absolute; left: 0; color: var(--copper); font-weight: 700; }
.faq-item { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item p { margin: .5rem 0 0; color: var(--muted); }

/* Carte de réservation */
.booking-card { position: sticky; top: 1.25rem; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; background: #fff; box-shadow: 0 6px 24px rgba(31, 58, 52, .08); scroll-margin-top: 1rem; }
.booking-card h2 { margin-bottom: .25rem; }
.booking-price { font-weight: 600; color: var(--copper-dark); }
.booking-hint, .booking-note { font-size: .85rem; color: var(--muted); }
.booking-note { margin: .6rem 0 0; text-align: center; }
.booking-dates { margin: 1rem 0; }
.booking-dates output { display: block; font-weight: 600; }
.form-label { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cal-nav { display: flex; justify-content: space-between; margin-bottom: -2rem; position: relative; z-index: 1; }
.cal-arrow { border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 2rem; height: 2rem; line-height: 1; font-size: 1.2rem; color: var(--pine); }
.cal-arrow:disabled { opacity: .35; }
.cal-months { display: grid; gap: 1.25rem; }
.cal-title { text-align: center; font-weight: 600; text-transform: capitalize; margin-bottom: .5rem; line-height: 2rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border: 0; background: var(--cream); border-radius: 6px; font-size: .9rem; color: var(--ink); }
.cal-day:hover:not(:disabled) { outline: 2px solid var(--copper); }
.cal-day:disabled { cursor: not-allowed; }
.cal-day.is-past { background: transparent; color: #b9b9b9; }
.cal-day.is-busy { background: var(--busy); color: #7a756c; text-decoration: line-through; }
.cal-day.is-in { background: #dfe9e5; }
.cal-day.is-start, .cal-day.is-end { background: var(--pine); color: #fff; text-decoration: none; font-weight: 700; }
.calendar-legend { display: flex; align-items: center; gap: 1rem; font-size: .8rem; color: var(--muted); margin-top: .75rem; }
.dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.dot-free { background: var(--cream); border: 1px solid var(--line); }
.dot-busy { background: var(--busy); }

.quote { margin: 1rem 0; padding: .9rem 1rem; background: var(--cream); border-radius: 10px; font-size: .95rem; }
.quote-line { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; }
.quote-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .5rem; font-weight: 700; font-size: 1.05rem; }
.quote-error { color: #a12b1e; font-size: .9rem; }

/* Pages simples (paiement, confirmation, légal) */
.page-narrow { max-width: 760px; padding-top: 3rem; padding-bottom: 1rem; }
.page-narrow h1 { margin-bottom: 1.25rem; }
.summary-card { border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; background: #fff; margin: 1.5rem 0; }
.summary-apt { font-family: Georgia, serif; font-size: 1.2rem; color: var(--pine); }
.summary-amount { font-size: 1.15rem; margin: 1.25rem 0 0; }
.legal h2 { font-size: 1.2rem; margin-top: 1.75rem; }
#paypal-buttons { max-width: 480px; }
.pay-option { border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.5rem; background: #fff; margin: 1rem 0; }
.pay-option h3 { font-size: 1.15rem; font-family: inherit; font-weight: 600; margin-bottom: .5rem; }
.transfer-steps { padding-left: 1.2rem; }
.transfer-steps li { margin-bottom: .5rem; }

@media (max-width: 767px) {
    .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 110px 110px; }
    .gallery-item:first-child { grid-row: auto; grid-column: 1 / 3; }
    .gallery-1, .gallery-2, .gallery-3 { grid-template-rows: 220px 110px; }
    .gallery-2 .gallery-item { grid-row: auto; grid-column: 1 / 3; }
    .gallery-4 .gallery-item:last-of-type { grid-column: auto; }
    .amenities { columns: 1; }
    .booking-card { position: static; }
}

/* Administration */
.admin-main { padding-top: 1.75rem; padding-bottom: 3rem; }
.admin-section { margin: 1.75rem 0; }
.admin-table { font-size: .92rem; }
.admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin-filtres { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.admin-login { max-width: 380px; margin: 3rem auto; border: 1px solid var(--line); border-radius: 14px; padding: 2rem; background: #fff; }
.admin .site-header .nav-link { font-size: .95rem; }
