/* ============================================================
   rdv.css — Page rendez-vous Brannity
   Layout 2 colonnes : gauche navy · droite blanc
   Space Grotesk (display) + DM Sans (body)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:          #0B1B3D;
  --navy-80:       rgba(11, 27, 61, 0.80);
  --navy-50:       rgba(11, 27, 61, 0.50);
  --navy-20:       rgba(11, 27, 61, 0.12);
  --royal:         #1A53FF;
  --royal-mid:     rgba(26, 83, 255, 0.16);
  --royal-low:     rgba(26, 83, 255, 0.07);
  --success:       #22A76B;
  --error:         #E53935;
  --bg:            #F4F5F9;
  --surface:       #ffffff;
  --border:        #E5E7EF;
  --border-soft:   #EDEEF4;
  --font-display:  'Satoshi', sans-serif;
  --font-body:     'Satoshi', sans-serif;
  --left-width:    420px;
  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 2px 20px rgba(11, 27, 61, 0.08), 0 1px 4px rgba(11, 27, 61, 0.04);
  --shadow-lg:     0 8px 40px rgba(11, 27, 61, 0.12), 0 2px 8px rgba(11, 27, 61, 0.06);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--navy);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout 2 colonnes ─────────────────────────────────────── */
.rdv-layout {
  display: flex;
  min-height: 100dvh;
}

/* ══════════════════════════════════════════════════════════════
   PANNEAU GAUCHE
══════════════════════════════════════════════════════════════ */
.rdv-left {
  width: var(--left-width);
  flex-shrink: 0;
  background: var(--navy);
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dégradé subtil & effet Premium Aurora */
.rdv-left::before {
  content: '';
  position: absolute;
  inset: -20px; /* Expand slightly to avoid hard edges during animation */
  background:
    radial-gradient(circle at 10% 10%, rgba(26,83,255,0.25) 0%, transparent 60%),
    radial-gradient(circle at 90% 90%, rgba(34,167,107,0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(11,27,61,0.0) 0%, transparent 100%);
  filter: blur(30px);
  opacity: 0.9;
  pointer-events: none;
  animation: auroraPulse 12s infinite alternate ease-in-out;
}

@keyframes auroraPulse {
  0% { transform: scale(1) translate(0px, 0px); }
  100% { transform: scale(1.1) translate(15px, 20px); }
}

.rdv-left__inner {
  position: relative;
  z-index: 1;
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  overflow-y: auto;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.rdv-left__inner::-webkit-scrollbar {
  display: none; /* Hide scrollbar WebKit */
}

/* ── Nav (logo + retour) ────────────────────────────────────── */
.rdv-left__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.rdv-left__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.rdv-left__logoimg {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.rdv-left__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  padding: 5px 8px;
  border-radius: 8px;
}

.rdv-left__back:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
}

/* ── Badge ──────────────────────────────────────────────────── */
.rdv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  padding: 5px 12px;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  width: fit-content;
}

.rdv-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Titre & sous-titre ─────────────────────────────────────── */
.rdv-left__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
  min-height: 1.2em;
}

.rdv-left__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ── Récap sélection ────────────────────────────────────────── */
.rdv-recap {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 28px;
}

.rdv-recap__title {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
}

.rdv-recap__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rdv-recap__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.rdv-recap__name {
  color: rgba(255, 255, 255, 0.80);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rdv-recap__price {
  color: rgba(255, 255, 255, 0.50);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.rdv-recap__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.rdv-recap__total-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.rdv-recap__total-value {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.rdv-recap__devis-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.30);
  width: 100%;
}

/* ── Progression (horizontale, panneau droit) ───────────────── */
.rdv-progress {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  margin: 0 auto;
}

.rdv-progress__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rdv-progress__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(11, 27, 61, 0.25);
  flex-shrink: 0;
  transition: background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}

.rdv-progress__item--active .rdv-progress__dot {
  background: var(--royal);
  border-color: var(--royal);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(26, 83, 255, 0.12);
}

.rdv-progress__item--done .rdv-progress__dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
  box-shadow: none;
}

.rdv-progress__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rdv-progress__num {
  font-size: 10px;
  font-weight: 500;
  color: rgba(11, 27, 61, 0.30);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.rdv-progress__name {
  font-size: 15.5px;
  font-weight: 600;
  color: rgba(11, 27, 61, 0.30);
  font-family: var(--font-display);
  transition: color 0.3s;
  letter-spacing: -0.01em;
}

.rdv-progress__item--active .rdv-progress__num { color: var(--royal); }
.rdv-progress__item--active .rdv-progress__name { color: var(--navy); }

.rdv-progress__item--done .rdv-progress__num,
.rdv-progress__item--done .rdv-progress__name {
  color: rgba(11, 27, 61, 0.45);
}

/* Trait horizontal entre les deux étapes */
.rdv-progress__track {
  width: 64px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 20px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.rdv-progress__fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  right: 100%;
  background: var(--royal);
  border-radius: 2px;
  transition: right 0.45s ease;
}

.rdv-progress__track--filled .rdv-progress__fill {
  right: 0;
}

/* ── Trust indicators ───────────────────────────────────────── */
.rdv-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0;
}

.rdv-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
}

.rdv-trust__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.40);
}

/* ══════════════════════════════════════════════════════════════
   PANNEAU DROIT
══════════════════════════════════════════════════════════════ */
.rdv-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Déplacé vers inner pour garder le filigrane fixe */
  background: var(--bg);
  position: relative;
}

/* Filigrane géant du logo B en arrière-plan (monochrome) */
.rdv-right::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 900px;
  height: 900px;
  background-image: url('../images/logob.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.07; /* Opacité augmentée pour qu'il soit bien visible */
  transform: rotate(12deg); /* Changement de l'angle et position pour sortir derrière la carte */
  pointer-events: none;
  z-index: 0;
  filter: grayscale(100%);
}

.rdv-right__inner {
  flex: 1;
  padding: 52px 56px 44px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* ── Card ───────────────────────────────────────────────────── */
.rdv-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(11, 27, 61, 0.04), 0 2px 10px rgba(11, 27, 61, 0.02);
  border: 1px solid rgba(11, 27, 61, 0.03);
  overflow: hidden;
  animation: cardIn 0.30s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rdv-card__head {
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.rdv-card__heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.rdv-card__sub {
  font-size: 15.5px;
  color: var(--navy-50);
  line-height: 1.5;
}

/* ── Formulaire ─────────────────────────────────────────────── */
#rdv-form {
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.form-field:last-of-type { margin-bottom: 0; }

.form-field label {
  font-size: 15px;
  font-weight: 600;
  color: #3a3d4e;
}

.form-field .req { color: var(--error); }

.form-field__opt {
  font-weight: 400;
  color: #c0c2cc;
  font-size: 12px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--navy);
  background: #F7F8FB;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.015);
  outline: none;
  transition: all 0.2s ease;
}

.form-field input:hover,
.form-field textarea:hover {
  background: #F2F4F8;
}

.form-field input:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(26, 83, 255, 0.12), 0 4px 12px rgba(11, 27, 61, 0.04);
}

.form-field input.is-error,
.form-field textarea.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #c4c6d2;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  min-height: 15px;
  display: block;
  line-height: 1.3;
}

/* ── Sélecteur de services (CAS B) ─────────────────────────── */
.service-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: all 0.25s ease;
}

.service-chip:hover {
  border-color: rgba(26, 83, 255, 0.45);
  background: rgba(26, 83, 255, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 27, 61, 0.04);
}

.service-chip.is-selected {
  border-color: var(--royal);
  background: rgba(26, 83, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(26, 83, 255, 0.2);
}

.service-chip__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(11, 27, 61, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  transition: background 0.18s;
}

.service-chip.is-selected .service-chip__icon {
  background: rgba(26, 83, 255, 0.12);
}

.service-chip__text {
  flex: 1;
  min-width: 0;
}

.service-chip__name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  font-family: var(--font-display);
}

.service-chip.is-selected .service-chip__name {
  color: var(--royal);
}

.service-chip__desc {
  display: block;
  font-size: 11px;
  color: rgba(11, 27, 61, 0.45);
  margin-top: 2px;
  line-height: 1.3;
}

.service-chip__check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}

.service-chip.is-selected .service-chip__check {
  background: var(--royal);
  border-color: var(--royal);
}

.service-chip__check svg { display: block; }

/* ── CTA Button ─────────────────────────────────────────────── */
.rdv-btn-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, #17326D 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 20px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 15px rgba(11, 27, 61, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rdv-btn-cta:hover {
  background: linear-gradient(135deg, #17326D 0%, var(--navy) 100%);
  box-shadow: 0 8px 25px rgba(11, 27, 61, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.rdv-form__legal {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}

.rdv-btn-cta:active { transform: translateY(0); box-shadow: none; }

.rdv-btn-cta__arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.rdv-btn-cta:hover .rdv-btn-cta__arrow { transform: translateX(3px); }

/* ── Résumé condensé étape 1 ────────────────────────────────── */
.rdv-summary {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: cardIn 0.28s ease both;
}

.rdv-summary__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.rdv-summary__info {
  flex: 1;
  min-width: 0;
}

.rdv-summary__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdv-summary__detail {
  font-size: 12px;
  color: var(--navy-50);
  margin-top: 1px;
}

.rdv-summary__edit {
  font-size: 13px;
  font-weight: 500;
  color: var(--royal);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.rdv-summary__edit:hover { background: var(--royal-low); }

/* ── Cal.com embed ──────────────────────────────────────────── */
.rdv-card--cal .rdv-card__head {
  border-bottom: none;
  padding-bottom: 0;
}

#cal-embed {
  min-height: 540px;
  width: 100%;
}

.cal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 72px 24px;
  color: var(--navy-50);
  font-size: 14px;
}

.cal-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────────────────────────── */
.rdv-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  font-size: 12px;
  color: #bbb;
}

.rdv-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.rdv-footer a:hover { color: var(--navy); }
.rdv-footer__sep { color: #ddd; }

/* ══════════════════════════════════════════════════════════════
   MOBILE — colonne unique
══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .rdv-layout { flex-direction: column; }

  .rdv-left {
    width: 100%;
    height: auto;
    position: static;
  }

  .rdv-left__inner {
    padding: 20px 20px 28px;
    gap: 0;
  }

  .rdv-left__nav { margin-bottom: 24px; }

  .rdv-left__title { font-size: 22px; }

  .rdv-left__sub { margin-bottom: 20px; }

  /* Sur mobile : récap */
  .rdv-recap { margin-bottom: 20px; }

  .rdv-progress__text { display: none; }

  .rdv-trust { display: none; }

  .rdv-right__inner {
    padding: 24px 20px 32px;
  }

  .rdv-card__head { padding: 20px 20px 16px; }

  #rdv-form { padding: 18px 20px 22px; }

  .form-row-2 { grid-template-columns: 1fr; }
  .service-selector { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .rdv-right__inner { padding: 16px 12px 28px; }
  .rdv-card__heading { font-size: 16px; }
}
