/* ==========================================================================
   Dar Flores Bookings — Front-end design system (v4)
   Esthétique : hôtellerie de luxe, minimalisme premium, blancs généreux,
   ombres douces, coins arrondis, dégradés subtils. Tout est préfixé .dfx
   pour éviter tout conflit avec le thème, Elementor ou WooCommerce.
   ========================================================================== */

.dfx,
.dfx *,
.dfx *::before,
.dfx *::after { box-sizing: border-box; }

.dfx {
  /* ---- Design tokens ---- */
  --dfx-white: #FFFFFF;
  --dfx-off: #FAF9F6;
  --dfx-gray-50: #F4F4F2;
  --dfx-gray-100: #E9E8E4;
  --dfx-gray-300: #C9C7C1;
  --dfx-ink: #101418;
  --dfx-ink-soft: #3A4149;
  --dfx-muted: #6B7280;
  --dfx-gold: #B8912B;
  --dfx-gold-soft: #F6EFDD;
  --dfx-accent: #AB6034;        /* terracotta — couleur officielle des boutons */
  --dfx-accent-light: #C1794E;
  --dfx-accent-dark: #8E4E28;
  --dfx-cal-accent: #0071E3;      /* bleu du calendrier (sélection, aujourd'hui) */
  --dfx-cal-accent-soft: #EAF3FF; /* plage de séjour */
  --dfx-cal-accent-dark: #005BB5;
  --dfx-emerald: #166A4E;
  --dfx-emerald-soft: #EBF6F0;
  --dfx-blue: #14324F;
  --dfx-ok: #1F8A5B;
  --dfx-booked: #C0392B;
  --dfx-pending: #D97706;
  --dfx-maint: #6B7280;

  --dfx-r-sm: 12px;
  --dfx-r-md: 18px;
  --dfx-r-lg: 28px;
  --dfx-shadow-sm: 0 2px 10px rgba(16, 20, 24, .05);
  --dfx-shadow-md: 0 12px 40px rgba(16, 20, 24, .09);
  --dfx-shadow-lg: 0 28px 80px rgba(16, 20, 24, .14);
  --dfx-ease: cubic-bezier(.22, .61, .21, 1);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  color: var(--dfx-ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Resets défensifs contre les styles du thème / Elementor (puces, marqueurs) */
.dfx ul, .dfx ol { list-style: none; }
.dfx li::marker { content: none; }
.dfx figure { margin: 0; }

.dfx h1, .dfx h2, .dfx h3, .dfx h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--dfx-ink);
  margin: 0;
}

.dfx .dfx-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dfx-gold);
  margin-bottom: 14px;
}

.dfx .dfx-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}

.dfx .dfx-section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.dfx .dfx-section-head h2 { font-size: clamp(30px, 4.6vw, 46px); }
.dfx .dfx-section-head p { color: var(--dfx-muted); font-size: 17px; margin: 16px 0 0; }

/* --------------------------------------------------------------------------
   Boutons — avec effet « ripple » (span injecté en JS)
   -------------------------------------------------------------------------- */
.dfx .dfx-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border: 0;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--dfx-ease), box-shadow .25s var(--dfx-ease), background .25s;
  will-change: transform;
}
.dfx .dfx-btn-primary { background: var(--dfx-accent); color: #fff; box-shadow: 0 10px 30px rgba(171, 96, 52, .32); }
.dfx .dfx-btn-primary:hover { transform: translateY(-2px); background: var(--dfx-accent-dark); box-shadow: 0 16px 44px rgba(171, 96, 52, .4); color: #fff; }
.dfx .dfx-btn-gold { background: linear-gradient(135deg, var(--dfx-accent-light), var(--dfx-accent)); color: #fff; box-shadow: 0 10px 30px rgba(171, 96, 52, .35); }
.dfx .dfx-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(171, 96, 52, .45); color: #fff; }
.dfx .dfx-btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.dfx .dfx-btn-ghost:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); color: #fff; }
.dfx .dfx-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.dfx .dfx-ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .35); transform: scale(0);
  animation: dfx-ripple .6s var(--dfx-ease) forwards;
}
@keyframes dfx-ripple { to { transform: scale(2.6); opacity: 0; } }

/* --------------------------------------------------------------------------
   Animations au défilement (classes posées par darflores-frontend.js)
   -------------------------------------------------------------------------- */
.dfx [data-dfx-reveal] { opacity: 0; will-change: transform, opacity; }
.dfx [data-dfx-reveal="fade"] { transition: opacity .9s var(--dfx-ease); }
.dfx [data-dfx-reveal="up"] { transform: translateY(46px); transition: opacity .9s var(--dfx-ease), transform .9s var(--dfx-ease); }
.dfx [data-dfx-reveal="scale"] { transform: scale(.94); transition: opacity .9s var(--dfx-ease), transform .9s var(--dfx-ease); }
.dfx [data-dfx-reveal="zoom"] { transform: scale(1.08); transition: opacity 1.1s var(--dfx-ease), transform 1.4s var(--dfx-ease); }
.dfx [data-dfx-reveal].dfx-in { opacity: 1; transform: none; }
.dfx .dfx-stagger > * { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--dfx-ease), transform .8s var(--dfx-ease); }
.dfx .dfx-stagger.dfx-in > * { opacity: 1; transform: none; }
.dfx .dfx-stagger.dfx-in > *:nth-child(2) { transition-delay: .1s; }
.dfx .dfx-stagger.dfx-in > *:nth-child(3) { transition-delay: .2s; }
.dfx .dfx-stagger.dfx-in > *:nth-child(4) { transition-delay: .3s; }
.dfx .dfx-stagger.dfx-in > *:nth-child(5) { transition-delay: .4s; }
.dfx .dfx-stagger.dfx-in > *:nth-child(6) { transition-delay: .5s; }

/* Révélation d'image : voile qui glisse */
.dfx .dfx-img-reveal { position: relative; overflow: hidden; border-radius: var(--dfx-r-md); }
.dfx .dfx-img-reveal::after {
  content: ''; position: absolute; inset: 0; background: var(--dfx-off);
  transform: translateX(0); transition: transform 1.1s var(--dfx-ease);
}
.dfx .dfx-img-reveal.dfx-in::after { transform: translateX(101%); }

/* Révélation de texte ligne par ligne */
.dfx .dfx-text-reveal .dfx-line { display: block; overflow: hidden; }
.dfx .dfx-text-reveal .dfx-line > span { display: block; transform: translateY(110%); transition: transform .9s var(--dfx-ease); }
.dfx .dfx-text-reveal.dfx-in .dfx-line > span { transform: none; }
.dfx .dfx-text-reveal.dfx-in .dfx-line:nth-child(2) > span { transition-delay: .12s; }
.dfx .dfx-text-reveal.dfx-in .dfx-line:nth-child(3) > span { transition-delay: .24s; }

/* Parallaxe (déplacé en JS via transform, 60 fps) */
.dfx .dfx-parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .dfx [data-dfx-reveal], .dfx .dfx-stagger > *, .dfx .dfx-text-reveal .dfx-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dfx .dfx-img-reveal::after { display: none; }
  .dfx .dfx-parallax { transform: none !important; }
}

/* --------------------------------------------------------------------------
   HÉRO plein écran
   -------------------------------------------------------------------------- */
.dfx .dfx-hero {
  position: relative;
  min-height: var(--dfx-hero-h, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
}
.dfx .dfx-hero-media, .dfx .dfx-hero-media video, .dfx .dfx-hero-media img {
  position: absolute; inset: -12% 0; width: 100%; height: 124%;
  object-fit: cover; z-index: -2;
}
.dfx .dfx-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 16, .34) 0%, rgba(10, 12, 16, .18) 45%, rgba(10, 12, 16, .55) 100%);
}
.dfx .dfx-hero-inner { padding: 40px 24px; max-width: 880px; }
.dfx .dfx-hero .dfx-kicker { color: #E9D9A8; }
.dfx .dfx-hero h1 {
  color: #fff; font-size: clamp(44px, 7.5vw, 92px); font-weight: 800;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .25);
}
.dfx .dfx-hero p { color: rgba(255, 255, 255, .88); font-size: clamp(17px, 2vw, 21px); margin: 22px auto 38px; max-width: 560px; }
.dfx .dfx-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dfx .dfx-hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px;
}
.dfx .dfx-hero-scroll::before {
  content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: #fff; animation: dfx-scrollcue 1.8s var(--dfx-ease) infinite;
}
@keyframes dfx-scrollcue { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* Entrée du héro (fade + up en cascade au chargement) */
.dfx .dfx-hero .dfx-hero-inner > * { opacity: 0; transform: translateY(26px); animation: dfx-hero-in 1s var(--dfx-ease) forwards; }
.dfx .dfx-hero .dfx-hero-inner > *:nth-child(1) { animation-delay: .15s; }
.dfx .dfx-hero .dfx-hero-inner > *:nth-child(2) { animation-delay: .3s; }
.dfx .dfx-hero .dfx-hero-inner > *:nth-child(3) { animation-delay: .5s; }
.dfx .dfx-hero .dfx-hero-inner > *:nth-child(4) { animation-delay: .7s; }
@keyframes dfx-hero-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dfx .dfx-hero .dfx-hero-inner > * { animation: none; opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Cartes chambres (grille)
   -------------------------------------------------------------------------- */
.dfx .dfx-rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.dfx .dfx-room-card {
  background: var(--dfx-white); border-radius: var(--dfx-r-lg); overflow: hidden;
  box-shadow: var(--dfx-shadow-sm); display: flex; flex-direction: column;
  transition: transform .45s var(--dfx-ease), box-shadow .45s var(--dfx-ease);
}
.dfx .dfx-room-card:hover { transform: translateY(-8px); box-shadow: var(--dfx-shadow-lg); }
.dfx .dfx-room-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dfx-gray-50); }
.dfx .dfx-room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--dfx-ease); }
.dfx .dfx-room-card:hover .dfx-room-media img { transform: scale(1.06); }
.dfx .dfx-room-price {
  position: absolute; bottom: 16px; right: 16px; z-index: 2;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 9px 18px; font-family: 'Manrope', sans-serif;
  font-weight: 800; font-size: 15px; color: var(--dfx-ink); box-shadow: var(--dfx-shadow-sm);
}
.dfx .dfx-room-price small { font-weight: 500; color: var(--dfx-muted); }
.dfx .dfx-room-body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.dfx .dfx-room-sub { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dfx-gold); margin-bottom: 8px; }
.dfx .dfx-room-name { font-size: 25px; margin-bottom: 12px; }
.dfx .dfx-room-cap { display: flex; gap: 16px; flex-wrap: wrap; color: var(--dfx-muted); font-size: 13.5px; margin-bottom: 14px; }
.dfx .dfx-room-cap span { display: inline-flex; align-items: center; gap: 7px; }
.dfx .dfx-room-cap svg { width: 17px; height: 17px; stroke: var(--dfx-gold); }
.dfx .dfx-room-desc { color: var(--dfx-ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.dfx .dfx-room-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 26px; }
.dfx .dfx-room-feats li { background: var(--dfx-gray-50); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--dfx-ink-soft); }
.dfx .dfx-room-card .dfx-btn { margin-top: auto; width: 100%; }

/* --------------------------------------------------------------------------
   Page chambre (détail)
   -------------------------------------------------------------------------- */
.dfx .dfx-rs { max-width: 1180px; margin: 0 auto; padding: 0 24px 96px; }
.dfx .dfx-rs-hero {
  position: relative; border-radius: var(--dfx-r-lg); overflow: hidden;
  aspect-ratio: 21 / 9; min-height: 340px; box-shadow: var(--dfx-shadow-md); margin-bottom: 28px;
}
.dfx .dfx-rs-hero img { width: 100%; height: 100%; object-fit: cover; }
.dfx .dfx-rs-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 16, .5)); }
.dfx .dfx-rs-hero-cap { position: absolute; left: 40px; bottom: 34px; z-index: 2; color: #fff; }
.dfx .dfx-rs-hero-cap .dfx-kicker { color: #E9D9A8; margin-bottom: 8px; }
.dfx .dfx-rs-hero-cap h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); }
.dfx .dfx-rs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: start; }
.dfx .dfx-rs-main h2 { font-size: 26px; margin: 44px 0 20px; }
.dfx .dfx-rs-main h2:first-child { margin-top: 8px; }
.dfx .dfx-rs-desc { color: var(--dfx-ink-soft); font-size: 16px; line-height: 1.85; }
.dfx .dfx-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.dfx .dfx-amenity {
  background: var(--dfx-white); border: 1px solid var(--dfx-gray-100); border-radius: var(--dfx-r-md);
  padding: 20px 16px; text-align: center; transition: transform .3s var(--dfx-ease), box-shadow .3s var(--dfx-ease);
}
.dfx .dfx-amenity:hover { transform: translateY(-4px); box-shadow: var(--dfx-shadow-md); }
.dfx .dfx-amenity .ic {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 16px;
  background: var(--dfx-gold-soft); display: flex; align-items: center; justify-content: center;
}
.dfx .dfx-amenity svg { width: 24px; height: 24px; fill: none; stroke: var(--dfx-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dfx .dfx-amenity .lbl { font-size: 13px; color: var(--dfx-ink-soft); font-weight: 500; }
.dfx .dfx-rs-side { position: sticky; top: 32px; }
.dfx .dfx-video { border-radius: var(--dfx-r-md); overflow: hidden; box-shadow: var(--dfx-shadow-md); }
.dfx .dfx-video video, .dfx .dfx-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.dfx .dfx-similar { margin-top: 72px; }
.dfx .dfx-similar h2 { font-size: 26px; margin-bottom: 26px; }

/* --------------------------------------------------------------------------
   Galerie maçonnerie + lightbox
   -------------------------------------------------------------------------- */
/* Galerie : grille UNIFORME (finies les colonnes déséquilibrées).
   Toutes les vignettes ont le même ratio ; quand le nombre d'images est
   impair, la dernière reçoit .dfx-wide (posée par PHP) et occupe toute la
   largeur — aucune case vide, jamais. */
.dfx .dfx-masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dfx .dfx-masonry a {
  display: block; border-radius: var(--dfx-r-md); overflow: hidden;
  position: relative; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--dfx-gray-50);
}
.dfx .dfx-masonry a.dfx-wide { grid-column: 1 / -1; aspect-ratio: 21 / 10; }
.dfx .dfx-masonry img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s var(--dfx-ease), filter .9s var(--dfx-ease);
}
.dfx .dfx-masonry a:hover img { transform: scale(1.05); filter: brightness(1.05); }
.dfx .dfx-lightbox {
  position: fixed; inset: 0; z-index: 999999; background: rgba(10, 12, 16, .94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--dfx-ease);
}
.dfx .dfx-lightbox.open { opacity: 1; pointer-events: auto; }
.dfx .dfx-lightbox img {
  max-width: 92vw; max-height: 88vh; border-radius: var(--dfx-r-sm);
  transform: scale(.94); transition: transform .35s var(--dfx-ease);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5); user-select: none;
}
.dfx .dfx-lightbox.open img { transform: scale(1); }
.dfx .dfx-lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px;
  backdrop-filter: blur(6px); transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.dfx .dfx-lb-btn:hover { background: rgba(255, 255, 255, .24); }
.dfx .dfx-lb-prev { left: 22px; }
.dfx .dfx-lb-next { right: 22px; }
.dfx .dfx-lb-close { position: absolute; top: 22px; right: 22px; transform: none; }
.dfx .dfx-lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   FORMULAIRE DE RÉSERVATION — carte flottante
   -------------------------------------------------------------------------- */
.dfx .dfx-bk {
  position: relative; max-width: 1080px; margin: 0 auto;
  background: var(--dfx-white); border-radius: var(--dfx-r-lg);
  box-shadow: var(--dfx-shadow-lg); overflow: hidden;
  scroll-margin-top: 40px;
  container: dfx-booking / inline-size;
}
.dfx .dfx-bk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 30px 40px; border-bottom: 1px solid var(--dfx-gray-100);
  background: linear-gradient(160deg, #FFFFFF 60%, #FBF8F0 100%);
}
.dfx .dfx-bk-head h2 { font-size: 24px; }
.dfx .dfx-bk-head .dfx-kicker { margin-bottom: 6px; }
.dfx .dfx-bk-badge {
  background: var(--dfx-emerald-soft); color: var(--dfx-emerald);
  font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.dfx .dfx-bk-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.dfx .dfx-bk-main { padding: 36px 40px 44px; min-width: 0; }
.dfx .dfx-bk-step { margin-bottom: 36px; }
.dfx .dfx-bk-step:last-child { margin-bottom: 0; }
.dfx .dfx-bk-step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dfx .dfx-bk-step-n {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--dfx-ink); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif;
}
.dfx .dfx-bk-step-t { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.dfx .dfx-lbl { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dfx-muted); margin-bottom: 8px; }
.dfx .dfx-inp {
  width: 100%; padding: 15px 18px; border: 1.5px solid var(--dfx-gray-100); border-radius: var(--dfx-r-sm);
  background: var(--dfx-white); font-family: 'Inter', sans-serif; font-size: 15px; color: var(--dfx-ink);
  outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.dfx .dfx-inp:focus { border-color: var(--dfx-gold); box-shadow: 0 0 0 4px rgba(184, 145, 43, .12); }
.dfx .dfx-inp.error { border-color: var(--dfx-booked); box-shadow: 0 0 0 4px rgba(192, 57, 43, .1); }
.dfx .dfx-err { display: none; font-size: 12.5px; color: var(--dfx-booked); margin-top: 6px; }
.dfx .dfx-err.show { display: block; }
.dfx .dfx-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dfx-muted); margin-top: 10px; }
.dfx .dfx-hint .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dfx-booked); flex-shrink: 0; }

/* ---- Calendrier de disponibilités (custom, double mois) ---- */
.dfx .dfx-cal {
  border: 1.5px solid var(--dfx-gray-100); border-radius: var(--dfx-r-md);
  background: var(--dfx-white); padding: 20px; user-select: none;
  overflow: hidden; /* jamais de débordement hors de la colonne */
}
.dfx .dfx-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dfx .dfx-cal-nav {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--dfx-gray-100);
  background: #fff; cursor: pointer; font-size: 16px; color: var(--dfx-ink);
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.dfx .dfx-cal-nav:hover:not(:disabled) { border-color: var(--dfx-cal-accent); color: var(--dfx-cal-accent); transform: scale(1.06); }
.dfx .dfx-cal-nav:disabled { opacity: .3; cursor: not-allowed; }
/* UN SEUL mois, centré : lisible, zéro risque de chevauchement. */
.dfx .dfx-cal-months { display: block !important; max-width: 430px; margin: 0 auto; }
.dfx .dfx-cal-months > div { width: 100%; min-width: 0; overflow: hidden; position: static; float: none; }
.dfx .dfx-cal-month-name { text-align: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 12px; text-transform: capitalize; }
.dfx .dfx-cal-grid { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; width: 100%; }
.dfx .dfx-cal-dow { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dfx-muted); padding: 6px 0; }
.dfx .dfx-day {
  position: relative; aspect-ratio: 1; border: 0; background: transparent; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 500; color: var(--dfx-ink);
  cursor: pointer; transition: background .15s, color .15s, transform .15s;
  display: flex; align-items: center; justify-content: center;
  min-width: 0; width: 100%; padding: 0;
}
.dfx .dfx-day:hover:not(:disabled):not(.sel):not(.range) { background: var(--dfx-gray-50); transform: scale(1.08); }
.dfx .dfx-day:disabled { color: var(--dfx-gray-300); cursor: not-allowed; }
.dfx .dfx-day.booked { color: var(--dfx-booked); text-decoration: line-through; background: #FBEFED; cursor: not-allowed; font-weight: 600; }
.dfx .dfx-day.booked.checkout-only { cursor: pointer; box-shadow: inset 0 0 0 1px var(--dfx-cal-accent); }
.dfx .dfx-day.today { box-shadow: inset 0 0 0 1.5px var(--dfx-cal-accent); color: var(--dfx-cal-accent); font-weight: 700; }
.dfx .dfx-day.range { background: var(--dfx-cal-accent-soft); color: var(--dfx-cal-accent-dark); border-radius: 0; }
.dfx .dfx-day.sel { background: var(--dfx-cal-accent); color: #fff; font-weight: 700; }
.dfx .dfx-day.sel.start { border-radius: 10px 0 0 10px; }
.dfx .dfx-day.sel.end { border-radius: 0 10px 10px 0; }
.dfx .dfx-day.sel.start.end { border-radius: 10px; }
.dfx .dfx-cal-foot { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--dfx-gray-100); font-size: 12px; color: var(--dfx-muted); flex-wrap: wrap; }
.dfx .dfx-cal-foot span { display: inline-flex; align-items: center; gap: 6px; }
.dfx .dfx-cal-foot[hidden], .dfx .dfx-availability-retry[hidden] { display: none; }
.dfx .dfx-availability-state { margin-top: 14px; font-size: 12px; color: var(--dfx-muted); }
.dfx .dfx-availability-retry { display: block; margin-top: 8px; padding: 8px 14px; border: 1px solid var(--dfx-gray-100); border-radius: 8px; background: var(--dfx-off); color: var(--dfx-ink); cursor: pointer; }

/* ---- Tarifs saisonniers dans le calendrier + code promo (v4.7.0) ---- */
.dfx .dfx-day-n { line-height: 1; }
.dfx .dfx-day-p { font-size: 9px; font-weight: 600; opacity: .72; line-height: 1; margin-top: 1px; }
.dfx-has-seasons .dfx-day { flex-direction: column; gap: 1px; aspect-ratio: auto; min-height: 42px; padding: 4px 0; font-size: 13px; }
.dfx-has-seasons .dfx-day.booked .dfx-day-p { display: none; }
.dfx .dfx-day.hi { box-shadow: inset 0 2px 0 var(--dfx-accent, #ab6034); }
.dfx .dfx-day.lo { box-shadow: inset 0 2px 0 #1f8a5b; }
.dfx .dfx-day.hi .dfx-day-p { color: var(--dfx-accent, #ab6034); }
.dfx .dfx-day.lo .dfx-day-p { color: #1f8a5b; }
.dfx .dfx-day.sel .dfx-day-p, .dfx .dfx-day.range .dfx-day-p { color: inherit; opacity: .85; }
.dfx .dfx-day.sel.hi, .dfx .dfx-day.sel.lo, .dfx .dfx-day.range.hi, .dfx .dfx-day.range.lo { box-shadow: none; }

.dfx .dfx-promo { display: flex; gap: 8px; align-items: stretch; }
.dfx .dfx-promo .dfx-inp { flex: 1; }
.dfx .dfx-promo-apply { white-space: nowrap; padding: 0 18px; }
.dfx .dfx-promo-msg { font-size: 12.5px; margin-top: 6px; min-height: 16px; }
.dfx .dfx-promo-msg.ok { color: #1f8a5b; font-weight: 600; }
.dfx .dfx-promo-msg.ko { color: var(--dfx-booked, #c0392b); }
.dfx .dfx-sr b.dfx-disc { color: #1f8a5b; }
.dfx .dfx-cal-foot i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }

/* ---- Cartes chambres dans le formulaire ---- */
.dfx .dfx-bk-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dfx .dfx-bk-room {
  position: relative; border: 2px solid var(--dfx-gray-100); border-radius: var(--dfx-r-md);
  background: var(--dfx-white); overflow: hidden; cursor: pointer;
  transition: border-color .25s, transform .25s var(--dfx-ease), box-shadow .25s var(--dfx-ease);
}
.dfx .dfx-bk-room:hover { transform: translateY(-3px); box-shadow: var(--dfx-shadow-md); }
.dfx .dfx-bk-room.sel { border-color: var(--dfx-gold); box-shadow: 0 0 0 4px rgba(184, 145, 43, .14); }
.dfx .dfx-bk-room input { position: absolute; opacity: 0; pointer-events: none; }
.dfx .dfx-bk-room-img { aspect-ratio: 3 / 2; background: var(--dfx-gray-50); position: relative; overflow: hidden; }
.dfx .dfx-bk-room-img img { width: 100%; height: 100%; object-fit: cover; }
.dfx .dfx-bk-avail {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
}
.dfx .dfx-bk-avail.ok { color: var(--dfx-ok); }
.dfx .dfx-bk-avail.ko { color: var(--dfx-booked); }
.dfx .dfx-bk-room.ko-state { opacity: .55; }
.dfx .dfx-bk-room-check {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--dfx-gold); color: #fff; font-size: 13px;
  display: none; align-items: center; justify-content: center;
}
.dfx .dfx-bk-room.sel .dfx-bk-room-check { display: flex; }
.dfx .dfx-bk-room-body { padding: 14px 16px 16px; }
.dfx .dfx-bk-room-name { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; }
.dfx .dfx-bk-room-sub { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dfx-gold); margin: 3px 0 8px; }
.dfx .dfx-bk-room-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--dfx-muted); }
.dfx .dfx-bk-room-price { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; color: var(--dfx-ink); }
.dfx .dfx-bk-room-price small { font-weight: 500; color: var(--dfx-muted); }

/* ---- Sélecteur de voyageurs ---- */
.dfx .dfx-guests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dfx .dfx-guest { background: var(--dfx-white); border: 1.5px solid var(--dfx-gray-100); border-radius: var(--dfx-r-md); padding: 16px 18px; }
.dfx .dfx-guest-l { font-size: 13px; font-weight: 600; color: var(--dfx-muted); margin-bottom: 12px; }
.dfx .dfx-guest-row { display: flex; align-items: center; justify-content: space-between; }
.dfx .dfx-guest-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--dfx-gray-100);
  background: var(--dfx-off); font-size: 18px; font-weight: 600; color: var(--dfx-ink);
  cursor: pointer; line-height: 1; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.dfx .dfx-guest-btn:hover:not(:disabled) { border-color: var(--dfx-gold); color: var(--dfx-gold); transform: scale(1.08); }
.dfx .dfx-guest-btn:disabled { opacity: .35; cursor: not-allowed; }
.dfx .dfx-guest-v { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; min-width: 26px; text-align: center; }
.dfx .dfx-cap-note { font-size: 13px; color: var(--dfx-gold); font-weight: 600; margin-top: 12px; }

/* ---- Récapitulatif flottant ---- */
.dfx .dfx-bk-side {
  background: linear-gradient(175deg, #14181D 0%, #101418 100%);
  padding: 36px 28px 40px; display: flex; flex-direction: column;
}
.dfx .dfx-bk-sum {
  background: var(--dfx-white); border-radius: var(--dfx-r-md); padding: 28px 24px 24px;
  position: static; top: 28px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.dfx .dfx-bk-sum-k { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--dfx-gold); margin-bottom: 4px; }
.dfx .dfx-bk-sum-t { text-align: center; font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 800; margin-bottom: 20px; }
.dfx .dfx-bk-sum-rows { border-top: 1px dashed var(--dfx-gray-100); padding-top: 8px; font-size: 14px; }
.dfx .dfx-sr { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 2px; color: var(--dfx-muted); border-bottom: 1px solid var(--dfx-gray-50); }
.dfx .dfx-sr > span:first-child { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dfx .dfx-sr b { color: var(--dfx-ink); font-weight: 600; text-align: right; margin-left: auto; }
.dfx .dfx-sr.tot { border-bottom: 0; border-top: 2px solid var(--dfx-gold-soft); margin-top: 8px; padding-top: 14px; font-size: 15px; }
.dfx .dfx-sr.tot b { font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800; color: var(--dfx-gold); }
.dfx .dfx-old { text-decoration: line-through; color: var(--dfx-muted); font-weight: 500 !important; }
.dfx .dfx-save { display: inline-block; background: var(--dfx-emerald-soft); color: var(--dfx-emerald); font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-top: 8px; }
.dfx .dfx-bk-sum-empty { text-align: center; color: var(--dfx-muted); font-size: 14px; padding: 10px 0 6px; line-height: 1.7; }
.dfx .dfx-bk-submit { width: 100%; margin-top: 20px; }
.dfx .dfx-bk-trust { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .7); text-align: center; line-height: 2.1; }
.dfx .dfx-spin {
  display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: dfx-spin .7s linear infinite; vertical-align: middle; margin-right: 8px;
}
@keyframes dfx-spin { to { transform: rotate(360deg); } }

/* ---- Confirmation & toast ---- */
.dfx .dfx-bk-ok {
  display: none; position: absolute; inset: 0; z-index: 30; background: var(--dfx-off);
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px 30px; overflow-y: auto;
}
.dfx .dfx-bk-ok.show { display: flex; animation: dfx-pop .4s var(--dfx-ease); }
@keyframes dfx-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.dfx .dfx-bk-ok-ic {
  width: 84px; height: 84px; border-radius: 50%; margin-bottom: 22px;
  background: var(--dfx-emerald-soft); color: var(--dfx-emerald);
  display: flex; align-items: center; justify-content: center;
}
.dfx .dfx-bk-ok-ic svg { width: 38px; height: 38px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dfx .dfx-bk-ok-ic svg path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: dfx-check .6s .3s var(--dfx-ease) forwards; }
@keyframes dfx-check { to { stroke-dashoffset: 0; } }
.dfx .dfx-bk-ok-t { font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.dfx .dfx-bk-ok-s { font-size: 15px; color: var(--dfx-muted); line-height: 1.8; margin-bottom: 24px; max-width: 460px; }
.dfx .dfx-bk-ok-det {
  background: var(--dfx-white); border: 1px solid var(--dfx-gray-100); border-radius: var(--dfx-r-md);
  padding: 20px 24px; text-align: left; font-size: 14px; line-height: 2.1; color: var(--dfx-muted);
  width: 100%; max-width: 460px; margin-bottom: 20px; box-shadow: var(--dfx-shadow-sm);
}
.dfx .dfx-bk-ok-det strong { color: var(--dfx-ink); }
.dfx .dfx-bk-ok-back { font-size: 13px; color: var(--dfx-muted); text-decoration: underline; cursor: pointer; margin-top: 12px; }
.dfx .dfx-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 16px); z-index: 999999;
  background: var(--dfx-ink); color: #fff; font-size: 14px; padding: 14px 26px; border-radius: 14px;
  box-shadow: var(--dfx-shadow-lg); max-width: 90vw; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--dfx-ease), transform .3s var(--dfx-ease);
}
.dfx .dfx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */
.dfx .dfx-testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.dfx .dfx-testi {
  background: var(--dfx-white); border-radius: var(--dfx-r-lg); padding: 34px 32px;
  box-shadow: var(--dfx-shadow-sm); display: flex; flex-direction: column;
  transition: transform .4s var(--dfx-ease), box-shadow .4s var(--dfx-ease);
}
.dfx .dfx-testi:hover { transform: translateY(-6px); box-shadow: var(--dfx-shadow-md); }
.dfx .dfx-testi-stars { color: var(--dfx-gold); font-size: 15px; letter-spacing: 3px; margin-bottom: 16px; }
.dfx .dfx-testi-text { font-size: 15.5px; line-height: 1.8; color: var(--dfx-ink-soft); flex: 1; }
.dfx .dfx-testi-who { margin-top: 22px; display: flex; align-items: center; gap: 13px; }
.dfx .dfx-testi-av {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--dfx-gold-soft); color: var(--dfx-gold);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.dfx .dfx-testi-name { font-weight: 700; font-size: 14.5px; }
.dfx .dfx-testi-origin { font-size: 12.5px; color: var(--dfx-muted); }

/* --------------------------------------------------------------------------
   Statistiques animées
   -------------------------------------------------------------------------- */
.dfx .dfx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.dfx .dfx-stat {
  background: var(--dfx-white); border-radius: var(--dfx-r-lg); padding: 38px 24px; text-align: center;
  box-shadow: var(--dfx-shadow-sm);
}
.dfx .dfx-stat-num {
  font-family: 'Manrope', sans-serif; font-size: clamp(38px, 4.4vw, 52px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(135deg, #C9A344, #8F6E1B); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dfx .dfx-stat-lbl { margin-top: 12px; font-size: 13.5px; color: var(--dfx-muted); font-weight: 500; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.dfx .dfx-cta {
  position: relative; border-radius: var(--dfx-r-lg); overflow: hidden;
  background: linear-gradient(150deg, #14181D, #1E2833 65%, #14324F); color: #fff;
  padding: clamp(56px, 8vw, 110px) 24px; text-align: center; isolation: isolate;
}
.dfx .dfx-cta-media { position: absolute; inset: 0; z-index: -2; }
.dfx .dfx-cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.dfx .dfx-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 50% 0%, rgba(184, 145, 43, .16), transparent 60%); }
.dfx .dfx-cta h2 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); }
.dfx .dfx-cta p { color: rgba(255, 255, 255, .78); font-size: 17px; margin: 18px auto 34px; max-width: 520px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Le seuil dépend de la largeur réelle du formulaire, pas de celle de l'écran.
   Les navigateurs sans container queries conservent le repli sûr sur une colonne. */
@container dfx-booking (min-width: 960px) {
  .dfx .dfx-bk-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .dfx .dfx-bk-sum { position: sticky; }
}
@container dfx-booking (max-width: 680px) {
  .dfx .dfx-bk-main { padding: 26px 20px 12px; }
  .dfx .dfx-bk-head { padding: 22px 20px; }
  .dfx .dfx-bk-rooms, .dfx .dfx-guests { grid-template-columns: minmax(0, 1fr); }
  .dfx .dfx-bk-side { padding: 26px 22px 34px; }
}
@media (max-width: 960px) {
  .dfx .dfx-bk-grid { grid-template-columns: 1fr; }
  .dfx .dfx-bk-side { padding: 26px 22px 34px; }
  .dfx .dfx-bk-sum { position: static; }
  .dfx .dfx-rs-grid { grid-template-columns: 1fr; }
  .dfx .dfx-rs-side { position: static; }
}
@media (max-width: 680px) {
  .dfx .dfx-section { padding: 64px 18px; }
  .dfx .dfx-bk-main { padding: 26px 20px 12px; }
  .dfx .dfx-bk-head { padding: 22px 20px; }
  .dfx .dfx-bk-rooms, .dfx .dfx-guests { grid-template-columns: 1fr; }
  .dfx .dfx-rs-hero-cap { left: 22px; bottom: 20px; }
  .dfx .dfx-masonry { gap: 10px; }
  .dfx .dfx-masonry a { aspect-ratio: 1 / 1; }
  .dfx .dfx-masonry a.dfx-wide { aspect-ratio: 16 / 9; }
}
