/* ==========================================================================
   Wedia — page rendez-vous
   Même page que l'ancien site, lisible dès l'arrivée.
   Les bases (couleurs, police, en-tête en verre, fondus) viennent de style.css.
   ========================================================================== */
:root {
  --cw-surface: #111214;
  --cw-line: rgba(39, 229, 255, 0.16);
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
}

/* ---------- Intro : titre, fondateur, coordonnées ---------- */
.rdv-main {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 6rem);
}

.rdv-intro {
  position: relative;
  text-align: center;
}

.rdv-title {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.rdv-title__accent {
  color: var(--azur);
}

.rdv-lead {
  max-width: 52ch;
  margin: 1.25rem auto 0;
  color: rgba(253, 243, 224, 0.85);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
}

.rdv-founder {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  text-align: left;
}

/* la photo du fondateur, ronde, avec un fin liseré Azur */
.rdv-founder img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(39, 229, 255, 0.5); /* liseré de la photo, taste-skill-ignore */
}

.rdv-founder strong {
  display: block;
  font-size: 0.95rem;
}

.rdv-founder small {
  color: rgba(253, 243, 224, 0.75);
  font-size: 0.8rem;
}

/* Bouton WhatsApp centré sous le fondateur */
.rdv-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: fit-content;
  min-height: 48px;
  margin: 1.1rem auto 0;
  padding: 0 1.4rem;
  border-radius: 14px;
  background: #25d366;
  color: #0a0a0a;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase; /* comme sur l'ancienne page, taste-skill-ignore */
  transition: transform var(--ease), box-shadow var(--ease);
}

.rdv-whatsapp:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3); /* halo au survol, taste-skill-ignore */
  transform: translateY(-2px);
}

/* ---------- Cadre du calendrier, en pointillés comme une zone de sélection ---------- */
.rdv-frame {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(10px, 1.5vw, 16px);
  border-radius: 32px;
  background: var(--cw-surface);
  box-shadow: inset 0 0 0 1px var(--cw-line); /* liseré du cadre, taste-skill-ignore */
}

.rdv-frame-inner {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  border: 2px dashed rgba(39, 229, 255, 0.45); /* zone de sélection, taste-skill-ignore */
  border-radius: 22px;
  background: #0a0a0a;
}

/* pendant que Cal.com charge (rdv.js) */
.rdv-frame-inner.is-loading > :not(.rdv-fallback) {
  visibility: hidden;
}

/* Cal.com règle lui-même la hauteur du calendrier */
.rdv-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Affiché tant que le lien Cal.com n'est pas configuré */
.rdv-fallback {
  display: grid;
  place-content: center;
  gap: 1rem;
  min-height: 700px;
  padding: 2rem;
  text-align: center;
}

.rdv-fallback p {
  max-width: 42ch;
  margin: 0 auto;
  color: rgba(253, 243, 224, 0.8);
  line-height: 1.6;
}

.rdv-fallback a {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 14px;
  background: var(--azur);
  color: #0a0a0a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase; /* comme sur l'ancienne page, taste-skill-ignore */
}

[hidden] {
  display: none !important;
}

a:focus-visible {
  outline: 2px solid var(--azur);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .rdv-main {
    padding-top: 110px;
  }

  .rdv-frame-inner,
  .rdv-fallback {
    min-height: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
