/* ═══════════════════════════════════════════════════════════════════════════
   GROUP CONFIGURATOR — La Palme d'Azur
   Styles pour le configurateur de réservation groupe (10-80 personnes)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Sélecteur de taille groupe (visible sur la page) ───────────────────── */
.be-group-entry {
  text-align: center;
  padding: 28px 24px 20px;
  border-top: 1px solid var(--be-border, #e8e3dc);
  margin-top: 32px;
}
.be-group-entry__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--be-ink-muted, #8a8279);
  margin-bottom: 16px;
}
.be-group-entry__label strong { color: var(--be-ink, #1a1614); }
.be-group-entry__form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.be-group-entry__input {
  width: 80px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: 1.5px solid var(--be-border, #e8e3dc);
  border-radius: 8px;
  background: #fff;
  color: var(--be-ink, #1a1614);
  -moz-appearance: textfield;
}
.be-group-entry__input::-webkit-outer-spin-button,
.be-group-entry__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.be-group-entry__input:focus { outline: none; border-color: var(--be-cta, #e8623d); }
.be-group-entry__btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--be-cta, #e8623d);
  background: var(--be-cta, #e8623d);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.be-group-entry__btn:hover { opacity: 0.88; }
.be-group-entry__error {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #c0392b;
  margin-top: 8px;
  text-align: center;
}

/* ── Conteneur principal vue groupe ─────────────────────────────────────── */
#be-group-view { display: none; }
#be-group-view.active { display: block; }

/* ── Header groupe ──────────────────────────────────────────────────────── */
.be-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--be-border, #e8e3dc);
}
.be-group-header__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--be-ink, #1a1614);
  margin: 0;
}
.be-group-header__back {
  font-size: 14px;
  color: var(--be-cta, #e8623d);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
}

/* ── Titre section configs ──────────────────────────────────────────────── */
.be-group-configs__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--be-ink-muted, #8a8279);
  margin: 0 0 16px;
}

/* ── Carte configuration ────────────────────────────────────────────────── */
.be-cfg-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.be-cfg-card--recommended { border-color: var(--be-cta, #e8623d); }
/* Carte « coup de cœur » (duplex premium) — bordure renforcée */
.be-cfg-card--coup { border-color: var(--be-cta, #e8623d); border-width: 2px; }

/* Badge premium « Coup de cœur » — incrusté sur la photo (coin opposé à la promo) */
.be-cfg-card__coup {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.96);
  color: var(--be-ink, #1a1614);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  pointer-events: none;
}
.be-cfg-card__coup svg { width: 12.5px; height: 12.5px; color: var(--be-cta, #e8623d); flex-shrink: 0; }
.be-cfg-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.11); }
.be-cfg-card--unavailable { opacity: 0.5; }
.be-cfg-card--unavailable .be-cfg-card__cta-book { pointer-events: none; opacity: 0.4; }
.be-cfg-card__unavailable-msg { color: #c0392b; font-size: 14px; font-weight: 600; }

/* Badge "Recommandé" */
.be-cfg-card__badge {
  background: var(--be-cta, #e8623d);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 16px;
}
.be-cfg-card__badge--alt {
  background: var(--be-bg, #f5f0e8);
  color: var(--be-ink-muted, #8a8279);
}

/* Corps de la carte */
.be-cfg-card__body {
  padding: 0 24px 4px;
}

/* Ligne par type d'appartement — style carte arrondie Expedia */
.be-cfg-card__apt-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid var(--be-border, #e8e3dc);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.be-cfg-card__apt-row:first-child { margin-top: 16px; }
.be-cfg-card__apt-row:last-child { margin-bottom: 8px; }
.be-cfg-card__apt-row:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.09); }

/* Photo proportionnelle — largeur/hauteur fixes, ratio 4:3 */
.be-cfg-card__apt-photo {
  width: 280px;
  min-width: 280px;
  height: 220px;
  flex-shrink: 0;
  background: var(--be-bg, #f5f0e8);
  position: relative;
}
.be-cfg-card__apt-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback si pas de photo */
.be-cfg-card__apt-photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--be-cta, #e8623d);
}
.be-cfg-card__apt-photo--fallback svg { width: 32px; height: 32px; }

/* ── Carousel ──────────────────────────────────────────────────────────── */
.be-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.be-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}
.be-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.be-carousel__slide img {
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.be-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--be-ink, #1a1614);
  box-shadow: 0 1px 5px rgba(0,0,0,0.18);
  transition: background 0.15s;
  z-index: 2;
  padding: 0;
  opacity: 0;
  transition: background 0.15s, opacity 0.2s;
}
.be-cfg-card__apt-row:hover .be-carousel__btn { opacity: 1; }
.be-carousel__btn:hover { background: #fff; }
.be-carousel__btn--prev { left: 6px; }
.be-carousel__btn--next { right: 6px; }
.be-carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.be-carousel__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background 0.15s;
}
.be-carousel__dot--active { background: #fff; }

.be-cfg-card__apt-info { flex: 1; min-width: 0; padding: 16px; }

.be-cfg-card__apt-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.be-cfg-card__apt-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--be-cta, #e8623d);
}
.be-cfg-card__apt-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--be-ink, #1a1614);
  transition: color 0.2s;
}
.be-cfg-card__apt-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: var(--be-ink-muted, #8a8279);
  margin-bottom: 10px;
}

/* Carte appartement entièrement cliquable → page détail (nouvel onglet) */
.be-cfg-card__apt-row--link { cursor: pointer; }
.be-cfg-card__apt-row--link:focus-visible { outline: 2px solid var(--be-cta, #e8623d); outline-offset: 2px; }
.be-cfg-card__apt-row--link:hover .be-cfg-card__apt-name { color: var(--be-cta, #e8623d); }
/* Flèche d'affordance « ouvrir » en bout de ligne de titre */
.be-cfg-card__apt-go { margin-left: auto; align-self: center; display: inline-flex; align-items: center; color: var(--be-ink-muted, #8a8279); transition: color 0.2s, transform 0.2s; }
.be-cfg-card__apt-go svg { width: 18px; height: 18px; }
.be-cfg-card__apt-row--link:hover .be-cfg-card__apt-go { color: var(--be-cta, #e8623d); transform: translateX(3px); }

/* Sous-label "Chaque appartement comprend:" */
.be-cfg-card__beds-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--be-ink, #1a1614);
  margin-bottom: 6px;
}
/* Lignes de couchage */
.be-cfg-card__bed-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--be-ink, #1a1614);
  margin-bottom: 3px;
}
.be-cfg-card__bed-line svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--be-ink-muted, #8a8279); }
.be-cfg-card__bed-space {
  font-weight: 600;
  margin-right: 2px;
}

/* ── Bloc « pourquoi le duplex » + perk parking (carte coup de cœur, duplex seul) ── */
.be-cfg-card__why {
  margin: 2px 24px 14px;
  padding: 14px 16px;
  background: rgba(232,98,61,0.05);
  border: 1px solid rgba(232,98,61,0.18);
  border-radius: 12px;
}
.be-cfg-card__why-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--be-ink, #1a1614);
  margin-bottom: 9px;
}
.be-cfg-card__why-list { list-style: none; margin: 0 0 11px; padding: 0; display: grid; gap: 6px; }
.be-cfg-card__why-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--be-ink, #1a1614);
}
.be-cfg-card__why-list li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--be-cta, #e8623d); }
.be-cfg-card__perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px dashed var(--be-cta, #e8623d);
  border-radius: 8px;
  padding: 8px 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--be-ink, #1a1614);
}
.be-cfg-card__perk svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--be-cta, #e8623d); }
@media (max-width: 640px) { .be-cfg-card__why { margin: 2px 16px 12px; } }

/* Pied de carte — prix + CTAs */
.be-cfg-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--be-bg, #f5f0e8);
  border-top: 1px solid var(--be-border, #e8e3dc);
}
.be-cfg-card__summary {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: var(--be-ink-muted, #8a8279);
  margin-bottom: 4px;
}
.be-cfg-card__price-orig {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--be-ink-muted, #8a8279);
  text-decoration: line-through;
  margin-bottom: 1px;
}
.be-cfg-card__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--be-ink, #1a1614);
}
.be-cfg-card__price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--be-ink-muted, #8a8279);
  margin-left: 4px;
}
.be-cfg-card__price-per-pax {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--be-ink-muted, #8a8279);
}
/* Badge promo sur la photo d'un appartement dans la carte groupe */
.be-cfg-card__promo-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--be-cta, #E8623D);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.be-cfg-card__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.be-cfg-card__cta-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--be-cta, #e8623d);
  background: transparent;
  color: var(--be-cta, #e8623d);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.be-cfg-card__cta-quote:hover { background: var(--be-cta, #e8623d); color: #fff; }
.be-cfg-card__cta-book {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--be-cta, #e8623d);
  background: var(--be-cta, #e8623d);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.be-cfg-card__cta-book:hover { opacity: 0.88; }

/* ── Bouton « Voir les N autres configurations » ────────────────────────── */
.be-cfg-more-wrap { text-align: center; margin: 6px 0 14px; }
.be-cfg-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1.5px solid var(--be-cta, #e8623d);
  background: transparent;
  color: var(--be-cta, #e8623d);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.be-cfg-more-btn:hover { background: var(--be-cta, #e8623d); color: #fff; }

/* ── Footer groupe — section B2B premium ────────────────────────────────── */
.be-group-footer {
  margin-top: 16px;
  background: var(--be-bg, #f5f0e8);
  border-radius: 14px;
  overflow: hidden;
}
.be-group-footer__inner {
  padding: 40px 32px;
  text-align: center;
}
.be-group-footer__eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--be-cta, #e8623d);
  margin-bottom: 12px;
}
.be-group-footer__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--be-ink, #1a1614);
  margin: 0 0 10px;
  line-height: 1.25;
}
.be-group-footer__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--be-ink-muted, #8a8279);
  margin: 0 auto 28px;
  max-width: 500px;
  line-height: 1.6;
}
/* Profils clients */
.be-group-footer__profiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.be-group-footer__profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,98,61,0.07);
  border: 1px solid rgba(232,98,61,0.18);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--be-ink, #1a1614);
}
.be-group-footer__profile svg {
  width: 13px;
  height: 13px;
  color: var(--be-cta, #e8623d);
  flex-shrink: 0;
}
/* Avantages services */
.be-group-footer__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 20px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--be-border, #e8e3dc);
  border-bottom: 1px solid var(--be-border, #e8e3dc);
}
.be-group-footer__service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--be-ink, #1a1614);
}
.be-group-footer__service svg {
  width: 14px;
  height: 14px;
  color: var(--be-cta, #e8623d);
  flex-shrink: 0;
}
/* Contact row */
.be-group-footer__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.be-group-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--be-ink, #1a1614);
  text-decoration: none;
  transition: color 0.15s;
}
.be-group-footer__phone svg {
  width: 20px;
  height: 20px;
  color: var(--be-cta, #e8623d);
}
.be-group-footer__phone:hover { color: var(--be-cta, #e8623d); }
.be-group-footer__cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--be-cta, #e8623d);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}
.be-group-footer__cta-contact svg { width: 14px; height: 14px; }
.be-group-footer__cta-contact:hover { opacity: 0.88; }
.be-group-footer__note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--be-ink-muted, #8a8279);
  margin: 0;
}

/* ── Responsive mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .be-cfg-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .be-cfg-card__ctas { width: 100%; }
  .be-cfg-card__cta-quote,
  .be-cfg-card__cta-book { flex: 1; text-align: center; }
  .be-group-header { flex-direction: column; align-items: flex-start; }
  .be-group-footer__inner { padding: 28px 20px; }
  .be-group-footer__title { font-size: 18px; }
  .be-group-footer__contact { flex-direction: column; gap: 12px; }
  .be-group-footer__cta-contact { width: 100%; justify-content: center; }
  /* Photo mobile : bannière full-width au-dessus du contenu */
  .be-cfg-card__apt-row { flex-direction: column; align-items: stretch; margin: 10px 0; }
  .be-cfg-card__apt-photo { width: 100%; min-width: unset; height: 220px; }
  .be-cfg-card__apt-info { padding: 14px; }
}
