/* ============================================================
   ECOMSYSTEM — reserver.css
   Page "Réserver un appel" — design sombre anthracite
   ============================================================ */

/* ── Variables locales ───────────────────────────────────────── */
:root {
  --accent:       #4F7EF7;
  --accent-hover: #3A63E8;
  --bg-primary:   #FAF8F5;
  --text-primary: #2C2C2C;
  --text-muted:   rgba(255, 255, 255, 0.55);
  --border:       #E8E6E1;
  --badge-bg:     #EEF2FF;
  --white:        #FFFFFF;
  --card-bg:      #111111;
  --radius-btn:   12px;
}

/* ── Page wrapper ───────────────────────────────────────────── */
.booking-page {
  background: var(--bg-primary);
  min-height: 100vh;
}

/* ── Layout principal ───────────────────────────────────────── */
.booking-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 32px 80px;
}

/* ── Grande carte sombre centrale ───────────────────────────── */
.booking-card {
  width: 100%;
  max-width: 1160px;
  background: var(--card-bg);
  border-radius: 32px;
  box-shadow:
    0 24px 100px rgba(0, 0, 0, 0.28),
    0 4px 24px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ── Colonnes ───────────────────────────────────────────────── */
.bcol {
  padding: 56px 52px;
}

.bcol--left {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.bcol--right {
  position: relative;
  display: flex;
  align-items: flex-start;
}

/* ── Preuve sociale ─────────────────────────────────────────── */
.bproof {
  margin-bottom: 10px;
}

.bproof-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bproof-avatars {
  display: flex;
  align-items: center;
}

.bproof-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #111111;
  object-fit: cover;
  display: block;
}

.bproof-av + .bproof-av {
  margin-left: -8px;
}

/* Étoiles bleues */
.bproof-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--accent);
}

.bproof-label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
}

/* ── Titre ──────────────────────────────────────────────────── */
.btitle {
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 22px 0 16px;
}

.btitle-accent {
  color: var(--accent);
}

/* ── Sous-label ─────────────────────────────────────────────── */
.bsub {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 14px;
}

/* ── Grille de badges bénéfices ─────────────────────────────── */
.bbadges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  flex: 1;
}

.bbcol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Badge translucide ──────────────────────────────────────── */
.bbadge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 40px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  cursor: default;
  user-select: none;
  /* Entrée animée via JS */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity   0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s ease;
}

/* Colonne gauche : rotation organique (JS injecte --rot) */
.bbcol--tilt .bbadge.visible {
  opacity: 1;
  transform: rotate(var(--rot, 0deg));
}

/* Colonne droite : droite, pas de rotation */
.bbcol--straight .bbadge.visible {
  opacity: 1;
  transform: none;
}

.bbadge:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(0deg) translateY(-1px) !important;
}

.bbadge-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(79, 126, 247, 0.40);
  flex-shrink: 0;
}

/* ── Séparateur ─────────────────────────────────────────────── */
.bsep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin: 26px 0 20px;
}

/* ── Fondateur ──────────────────────────────────────────────── */
.bfounder {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bfounder-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79, 126, 247, 0.40);
  letter-spacing: -0.02em;
}

.bfounder-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bfounder-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.bfounder-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
}

/* ── Logos ──────────────────────────────────────────────────── */
.blogos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.blogo {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.20);
}

.blogo-dot {
  color: rgba(255, 255, 255, 0.15);
  font-size: 14px;
}

/* ── Boîte calendrier ───────────────────────────────────────── */
.cal-box {
  position: relative;
  width: 100%;
  border: 2px dashed var(--accent);
  border-radius: 22px;
  padding: 36px 32px 28px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cal-box.visible {
  opacity: 1;
  transform: none;
}

/* ── Ruban coin "Alimenté par Calendly" ─────────────────────── */
.cal-corner-ribbon {
  position: absolute;
  top: 26px;
  right: -38px;
  background: var(--accent);
  color: var(--white);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 56px;
  transform: rotate(45deg);
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

/* ── Titre calendrier ───────────────────────────────────────── */
.cal-h {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* ── Widget calendrier ──────────────────────────────────────── */
.cal-widget {}

/* ── Navigation mois ────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cal-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79, 126, 247, 0.12);
}

.cal-nav-btn:disabled {
  opacity: 0.30;
  cursor: not-allowed;
}

.cal-month {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-transform: capitalize;
}

/* ── En-têtes des jours ─────────────────────────────────────── */
.cal-heads {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.cal-heads span {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  padding: 4px 0;
  letter-spacing: 0.04em;
}

/* ── Grille des dates ───────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: default;
  font-family: 'Poppins', sans-serif;
  color: rgba(255, 255, 255, 0.25);
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.cal-day--empty {
  visibility: hidden;
  pointer-events: none;
}

.cal-day--past {
  color: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
}

.cal-day--today {
  color: var(--accent);
  font-weight: 700;
  background: rgba(79, 126, 247, 0.14);
}

.cal-day--available {
  color: rgba(255, 255, 255, 0.90);
  font-weight: 600;
  cursor: pointer;
}

.cal-day--available:hover {
  background: rgba(79, 126, 247, 0.18);
  color: var(--accent);
}

.cal-day--selected {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(79, 126, 247, 0.50);
}

/* ── Fuseau horaire ─────────────────────────────────────────── */
.cal-tz {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.cal-tz:hover .cal-tz-label {
  color: rgba(255, 255, 255, 0.70);
}

.cal-tz-label {
  flex: 1;
  transition: color 0.2s ease;
}

.cal-tz-arrow {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* ── Bouton confirmer ───────────────────────────────────────── */
.cal-confirm {
  width: 100%;
  padding: 14px 24px;
  margin-top: 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform  0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(79, 126, 247, 0.40);
}

.cal-confirm:disabled {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.30);
  box-shadow: none;
  cursor: not-allowed;
}

.cal-confirm:not(:disabled):hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 126, 247, 0.52);
}

/* ── Paramètres cookies ─────────────────────────────────────── */
.cal-cookies {
  text-align: center;
  margin-top: 12px;
}

.cal-cookies-link {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cal-cookies-link:hover {
  color: var(--accent);
}

/* ── WhatsApp bouton navbar ─────────────────────────────────── */
.wa-nav-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}

.wa-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
}

@keyframes wa-nav-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  60%       { box-shadow: 0 0 0 10px transparent; }
}

.wa-nav-btn.pulsing {
  animation: wa-nav-pulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ── Responsive tablette ────────────────────────────────────── */
@media (max-width: 1024px) {
  .booking-card {
    grid-template-columns: 1fr;
  }

  .bcol--left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 44px;
  }

  .bcol--right {
    padding: 44px;
  }
}

/* ── Responsive mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  .booking-main {
    padding: 100px 16px 56px;
  }

  .booking-card {
    border-radius: 20px;
  }

  .bcol--left,
  .bcol--right {
    padding: 36px 24px;
  }

  .btitle {
    font-size: 28px;
    margin: 16px 0 12px;
  }

  .bbadges {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bbcol {
    gap: 8px;
  }

  .bbadge {
    font-size: 11px;
  }

  .cal-box {
    padding: 28px 20px 22px;
  }

  .cal-h {
    font-size: 16px;
  }

  .blogos {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bbadge,
  .cal-box {
    transition: none;
    opacity: 1;
    transform: none !important;
  }

  .cal-confirm {
    transition: none;
  }

  .wa-nav-btn.pulsing {
    animation: none;
  }
}
