/* Résidences Exemple : surcouche de Bootstrap 5.3.9 (aucun fichier de Bootstrap n'est modifié).
   Tout est piloté par des variables CSS : couleur de marque, typographie, liens, boutons. */

:root {
  --brand: #fab758;
  --brand-rgb: 250, 183, 88;
  --brand-ink: #2a1c00;                 /* texte sur fond de marque : contraste AA */
  --night: #12202c;                     /* bleu nuit des superpositions et du pied de page */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: #8a4f00;
  --bs-link-color-rgb: 138, 79, 0;
  --bs-link-hover-color: #5e3500;
  --bs-link-hover-color-rgb: 94, 53, 0;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.5rem;
  --bs-body-line-height: 1.7;
}
[data-bs-theme="dark"] {
  --bs-link-color: #fab758;
  --bs-link-color-rgb: 250, 183, 88;
  --bs-link-hover-color: #ffd28f;
  --bs-link-hover-color-rgb: 255, 210, 143;
}

html { scroll-padding-top: 5rem; }        /* les ancres (#reservation, #logements) et le focus clavier ne passent pas sous le menu collant */
.site-header { box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; text-rendering: optimizeLegibility; overflow-x: clip; /* clip (et non hidden) garde la barre collante fonctionnelle */ }
h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .navbar-brand .brand-name {
  font-family: var(--font-display); letter-spacing: -.01em;
}
h1, .display-4 { font-weight: 700; }
h2 { font-weight: 700; }
.lead { font-weight: 400; }

/* ---------- Boutons et formulaires aux couleurs de la marque ---------- */
.btn-primary {
  --bs-btn-color: var(--brand-ink); --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--brand-ink); --bs-btn-hover-bg: #f6a53a; --bs-btn-hover-border-color: #f6a53a;
  --bs-btn-focus-shadow-rgb: var(--brand-rgb);
  --bs-btn-active-color: var(--brand-ink); --bs-btn-active-bg: #e8962a; --bs-btn-active-border-color: #e8962a;
  --bs-btn-disabled-color: var(--brand-ink); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  font-weight: 600; box-shadow: 0 .35rem .9rem rgba(var(--brand-rgb), .35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-outline-primary {
  --bs-btn-color: var(--bs-link-color); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--brand-ink); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: var(--brand-ink); --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
}
.btn-light-outline { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .7); --bs-btn-hover-color: var(--night); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-active-bg: #fff; --bs-btn-active-color: var(--night); }
.text-bg-primary { color: var(--brand-ink) !important; }
.text-primary { color: var(--brand) !important; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(var(--brand-rgb), .35); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Barre de démonstration et navigation ---------- */
.demo-banner { background: rgba(var(--brand-rgb), .28); font-size: .82rem; }
.navbar { transition: box-shadow .2s ease, background-color .2s ease; background-color: color-mix(in srgb, var(--bs-body-bg) 90%, transparent); backdrop-filter: blur(10px); }
.navbar.is-scrolled { box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08); }
.navbar-brand { font-weight: 700; }
.navbar-brand .brand-name { font-size: 1.25rem; }
.navbar .nav-link { font-weight: 500; position: relative; }
.navbar .nav-link.active { color: var(--bs-link-color); }
@media (min-width: 992px) {
  .navbar .nav-link { padding-inline: .9rem; }
  .navbar .nav-link.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 3px; border-radius: 3px; background: var(--brand); }
}

/* ---------- Titres de section ---------- */
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--bs-link-color); }
.section-heading { position: relative; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.section-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--brand); }
.text-center .section-heading::after, .section-heading.text-center::after { left: 50%; transform: translateX(-50%); }
.bg-soft { background: var(--bs-tertiary-bg); }

/* ---------- Héros de l'accueil ---------- */
.hero {
  position: relative; display: flex; align-items: center; min-height: min(82vh, 46rem); color: #fff; padding: 5rem 0 8rem;
  background: var(--night) url("../img/hero.svg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 26, 40, .82) 0%, rgba(10, 26, 40, .5) 48%, rgba(10, 26, 40, .08) 100%); }
.hero > .container { position: relative; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.08; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .lead { max-width: 38rem; color: rgba(255, 255, 255, .92); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero .kicker { color: var(--brand); }

/* ---------- Bandeau de chiffres (chevauche le héros) ---------- */
.stats { position: relative; z-index: 2; margin-top: -4rem; }
.stat-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: var(--bs-border-radius-xl); box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .12); padding: 1.5rem 1rem; }
.stat { text-align: center; padding: .25rem 1rem; }
.stat + .stat { border-left: 1px solid var(--bs-border-color-translucent); }
@media (max-width: 767.98px) { .stat + .stat { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--bs-border-color-translucent); margin-top: .75rem; padding-top: 1rem; } }
.stat .bi { font-size: 1.6rem; color: var(--bs-link-color); }
.stat-value { font: 700 1.9rem/1.1 var(--font-display); display: block; }
.stat-label { color: var(--bs-secondary-color); font-size: .9rem; }

/* ---------- Cartes de logements ---------- */
.property-card { border: 0; border-radius: var(--bs-border-radius-xl); overflow: hidden; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08); transition: transform .2s ease, box-shadow .2s ease; }
.property-card:hover { transform: translateY(-6px); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .16); }
.property-card .media { position: relative; overflow: hidden; }
.property-card .media img { aspect-ratio: 10 / 7; object-fit: cover; width: 100%; height: auto; display: block; transition: transform .5s ease; }
.property-card:hover .media img { transform: scale(1.06); }
.property-card .badge-float { position: absolute; top: 1rem; left: 1rem; z-index: 1; box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .2); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 1rem; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; padding: .25rem .65rem; border-radius: 2rem; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.chips .bi { color: var(--bs-link-color); }
.card-link { font-weight: 600; text-decoration: none; }
.card-link .bi { transition: transform .2s ease; display: inline-block; }
.property-card:hover .card-link .bi { transform: translateX(4px); }

/* ---------- Bannière d'ambiance (emplacement de la vidéo du site d'origine) ---------- */
.hero-banner {
  position: relative; display: grid; place-items: center; min-height: 26rem; color: #fff;
  background: var(--night) url("../img/banner.svg") center 30% / cover no-repeat;
}
.hero-banner::before { content: ""; position: absolute; inset: 0; background: rgba(8, 24, 38, .5); }
.hero-banner > * { position: relative; }

/* ---------- Pourquoi nous choisir ---------- */
.icon-circle { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(var(--brand-rgb), .22); color: var(--bs-link-color); font-size: 1.7rem; }

/* ---------- Avis ---------- */
.review-card { max-width: 46rem; margin-inline: auto; border-radius: var(--bs-border-radius-xl); position: relative; }
.review-card::before { content: "\201C"; position: absolute; top: -.2rem; left: 1.4rem; font: 700 5rem/1 var(--font-display); color: rgba(var(--brand-rgb), .6); }
.review-card blockquote { font-size: 1.1rem; font-style: italic; }
.avatar { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(1) grayscale(1); }
[data-bs-theme="dark"] .carousel-control-prev-icon, [data-bs-theme="dark"] .carousel-control-next-icon { filter: none; }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { position: relative; color: #fff; padding: 4.5rem 0 5.5rem; background: var(--night) center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 40, .72), rgba(10, 26, 40, .5)); }
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.page-hero .lead { color: rgba(255, 255, 255, .92); max-width: 44rem; }
.page-hero .kicker { color: var(--brand); }
.page-hero.plain .kicker { color: var(--bs-link-color); }
.page-hero.plain { background: linear-gradient(135deg, rgba(var(--brand-rgb), .3), rgba(var(--brand-rgb), .06)), var(--bs-tertiary-bg); color: var(--bs-body-color); padding: 3.5rem 0; }
.page-hero.plain::before { display: none; }
.page-hero.plain .lead { color: var(--bs-secondary-color); }
.page-hero.plain h1 { text-shadow: none; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .9); font-size: .9rem; }
.breadcrumb a { color: #fff; }
.plain .breadcrumb { --bs-breadcrumb-divider-color: var(--bs-secondary-color); --bs-breadcrumb-item-active-color: var(--bs-secondary-color); }
.plain .breadcrumb a { color: var(--bs-link-color); }

/* ---------- Fiches logement ---------- */
.facts { position: relative; z-index: 2; margin-top: -3rem; }
.fact { display: flex; align-items: center; gap: .9rem; padding: .5rem 1rem; }
.fact + .fact { border-left: 1px solid var(--bs-border-color-translucent); }
@media (max-width: 767.98px) { .fact + .fact { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--bs-border-color-translucent); } }
.fact .bi { font-size: 1.5rem; color: var(--bs-link-color); }
.fact-label { display: block; font-size: .8rem; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .06em; }
.fact-value { font-weight: 700; }
.aside-sticky { position: sticky; top: 5.5rem; }
.booking-card .card-img-top { aspect-ratio: 10 / 7; object-fit: cover; width: 100%; height: auto; }
.booking-card { border: 0; border-radius: var(--bs-border-radius-xl); overflow: hidden; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .14); }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: .6rem; margin: .5rem 0; break-inside: avoid; }
.check-list .bi { color: #2f8f5b; flex: none; margin-top: .25rem; }
@media (min-width: 768px) { .check-list.two-col { columns: 2; column-gap: 2rem; } }

/* ---------- Galerie en mosaïque ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery-grid > div { min-height: 0; }
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 11rem; }
  .gallery-grid .g-large { grid-column: span 2; grid-row: span 2; }
}
.gallery-thumb { padding: 0; border: 0; background: none; border-radius: var(--bs-border-radius-lg); overflow: hidden; display: block; width: 100%; height: 100%; position: relative; }
.gallery-thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: 100%; transition: transform .35s ease; }
@media (min-width: 768px) { .gallery-thumb img { aspect-ratio: auto; } }
.gallery-thumb::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; right: .75rem; bottom: .75rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; opacity: 0; transition: opacity .2s ease; }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.06); }
.gallery-thumb:hover::after, .gallery-thumb:focus-visible::after { opacity: 1; }

/* ---------- Formulaires ---------- */
.form-card { border: 0; border-radius: var(--bs-border-radius-xl); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .1); }
.captcha-code {
  font: 700 1.5rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .35em;
  padding: .55rem .9rem .55rem 1.2rem; border-radius: .5rem; user-select: none;
  background: repeating-linear-gradient(135deg, rgba(var(--brand-rgb), .35) 0 6px, transparent 6px 12px), var(--bs-tertiary-bg);
  text-decoration: line-through; text-decoration-color: rgba(120, 120, 120, .5);
}

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band { background: linear-gradient(120deg, #fab758, #f59e3b); color: var(--brand-ink); }
.cta-band h2 { color: var(--brand-ink); }
.cta-band .btn-dark { --bs-btn-bg: var(--night); --bs-btn-border-color: var(--night); --bs-btn-hover-bg: #000; --bs-btn-hover-border-color: #000; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .78); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer .footer-title { color: #fff; font-weight: 700; }
.site-footer hr { border-color: rgba(255, 255, 255, .15); opacity: 1; }
.site-footer .text-body-secondary { color: rgba(255, 255, 255, .6) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .property-card, .property-card .media img, .gallery-thumb img, .card-link .bi, .navbar { transition: none; }
  .property-card:hover, .btn-primary:hover { transform: none; }
}
@media print {
  .navbar, .demo-banner, .hero-banner, .cta-band, form, .site-footer .btn { display: none !important; }
  .hero, .page-hero { background: none !important; color: #000; min-height: 0; padding: 1rem 0; }
}
