/* =====================================================================
   Page contact : prise de rendez-vous (présentation reprise de Calendly)
   et messages du formulaire de contact
   ===================================================================== */

#rdv {
  scroll-margin-top: 100px;
}

.booking {
  --booking-blue: #006bff;
  --booking-blue-text: #0060e6;
  --booking-blue-soft: rgba(0, 105, 255, 0.065);
  --booking-blue-hover: rgba(0, 105, 255, 0.15);
  --booking-text: #1a1a1a;
  --booking-muted: rgba(26, 26, 26, 0.61);
  --booking-line: rgba(26, 26, 26, 0.1);

  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  max-width: 1060px;
  margin: 30px auto 0;
  background-color: #fff;
  border: 1px solid var(--booking-line);
  border-radius: 8px;
  box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.08);
  color: var(--booking-text);
  font-family: Inter-Regular, sans-serif;
  text-align: left;
}
.booking [hidden] {
  display: none !important;
}
.booking button {
  font-family: inherit;
  cursor: pointer;
}
.booking button:disabled {
  cursor: default;
}

/* ---------- Panneau gauche : l'événement ---------- */
.booking-info {
  border-bottom: 1px solid var(--booking-line);
}
.booking-info--head {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--booking-line);
}
.booking-logo {
  width: 75px;
  height: auto;
  filter: invert(1);
}
.booking-back {
  position: absolute;
  top: 24px;
  left: 24px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--booking-line);
  border-radius: 50%;
  background: #fff;
  color: var(--booking-blue);
  transition: background-color 0.15s ease;
}
.booking-back:hover {
  background-color: var(--booking-blue-soft);
}
.booking-info--body {
  padding: 24px;
}
.booking-organizer {
  margin: 0 0 6px;
  font-family: Inter-SemiBold, sans-serif;
  font-size: 16px;
  color: var(--booking-muted);
}
.booking-event {
  margin: 0 0 24px;
  font-family: Inter-Bold, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--booking-text);
}
.booking-meta {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.booking-meta li {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-family: Inter-SemiBold, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--booking-muted);
}
.booking-meta svg {
  flex-shrink: 0;
  color: var(--booking-text);
}
.booking-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--booking-text);
}
.booking-description p {
  margin: 0 0 14px;
}
.booking-description--title {
  font-family: Inter-SemiBold, sans-serif;
}
.booking-description ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.booking-description li {
  margin-bottom: 4px;
}

/* ---------- Panneau droit ---------- */
.booking-main {
  -ms-flex: 1;
  flex: 1;
  padding: 28px 24px 32px;
}
.booking-title {
  margin: 0 0 24px;
  font-family: Inter-Bold, sans-serif;
  font-size: 20px;
  line-height: 1.3;
  color: var(--booking-text);
}
.booking-alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 6px;
  background-color: #fdecec;
  color: #b3261e;
  font-size: 14px;
}
.booking-hint {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--booking-muted);
  text-align: center;
}

/* Étape 1 : calendrier + heures */
.booking-picker {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 32px;
}
.booking-calendar {
  -ms-flex: 1;
  flex: 1;
}
.booking-calendar.is-loading .booking-days {
  opacity: 0.4;
}
.booking-month {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.booking-month--label {
  min-width: 140px;
  font-family: Inter-SemiBold, sans-serif;
  font-size: 16px;
  text-align: center;
}
.booking-nav {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent center / 10px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M8.5 1.5 2 8l6.5 6.5' fill='none' stroke='%230060e6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: background-color 0.15s ease;
}
.booking-nav--next {
  transform: scaleX(-1);
}
.booking-nav:not(:disabled):hover {
  background-color: var(--booking-blue-soft);
}
.booking-nav:disabled {
  opacity: 0.35;
  filter: grayscale(1);
}
.booking-weekdays,
.booking-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
}
.booking-weekdays {
  margin-bottom: 10px;
}
.booking-weekdays span {
  font-family: Inter-Medium, sans-serif;
  font-size: 12px;
  color: var(--booking-text);
}
html[lang="en"] .booking-weekdays span {
  text-transform: uppercase;
}
.booking-days {
  row-gap: 6px;
}
.booking-day {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-family: Inter-Regular, sans-serif;
  font-size: 16px;
  color: var(--booking-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.booking-day--empty {
  display: block;
}
.booking-day.is-available {
  background-color: var(--booking-blue-soft);
  font-family: Inter-Bold, sans-serif;
  color: var(--booking-blue-text);
}
.booking-day.is-available:hover {
  background-color: var(--booking-blue-hover);
}
.booking-day.is-selected,
.booking-day.is-selected:hover {
  background-color: var(--booking-blue);
  color: #fff;
}
.booking-day.is-today:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background-color: currentColor;
}
.booking-day:focus-visible,
.booking-time--btn:focus-visible,
.booking-time--next:focus-visible,
.booking-submit:focus-visible,
.booking-back:focus-visible {
  outline: 2px solid var(--booking-blue);
  outline-offset: 2px;
}

.booking-times {
  width: 100%;
}
.booking-times--date {
  margin: 6px 0 22px;
  font-size: 16px;
  color: var(--booking-text);
}
.booking-times--date:first-letter {
  text-transform: uppercase;
}
.booking-times--list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 2px 6px 2px 2px;
}
.booking-time {
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
}
.booking-time--btn,
.booking-time--next {
  -ms-flex: 1;
  flex: 1;
  height: 52px;
  border-radius: 4px;
  font-family: Inter-Bold, sans-serif;
  font-size: 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.booking-time--btn {
  border: 1px solid rgba(0, 105, 255, 0.5);
  background: #fff;
  color: var(--booking-blue);
}
.booking-time--btn:hover {
  border: 2px solid var(--booking-blue);
}
.booking-time.is-selected .booking-time--btn {
  border-color: #666;
  background-color: #666;
  color: #fff;
}
.booking-time--next {
  border: 1px solid var(--booking-blue);
  background-color: var(--booking-blue);
  color: #fff;
}

/* Étape 2 : informations */
.booking-form {
  max-width: 480px;
}
.booking-form--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}
.booking-field {
  display: block;
  margin-bottom: 20px;
}
.booking-field--label {
  display: block;
  margin-bottom: 8px;
  font-family: Inter-SemiBold, sans-serif;
  font-size: 14px;
  color: var(--booking-text);
}
.booking-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #b2b2b2;
  border-radius: 8px;
  background: #fff;
  font-family: Inter-Regular, sans-serif;
  font-size: 16px;
  color: var(--booking-text);
}
.booking-input:focus {
  border-color: var(--booking-blue);
  outline: 0;
  box-shadow: 0 0 0 1px var(--booking-blue);
}
/* Téléphone : drapeau + indicatif dans le champ, comme Calendly */
.booking-phone {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  height: 46px;
  border: 1px solid #b2b2b2;
  border-radius: 8px;
  background: #fff;
}
.booking-phone:focus-within {
  border-color: var(--booking-blue);
  box-shadow: 0 0 0 1px var(--booking-blue);
}
.booking-phone--country {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 6px 0 14px;
  border-radius: 8px 0 0 8px;
}
.booking-phone--country:hover {
  background-color: var(--booking-blue-soft);
}
.booking-phone--flag {
  font-size: 20px;
  line-height: 1;
}
.booking-phone--caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--booking-muted);
}
.booking-phone--select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.booking-phone .booking-input,
.booking-phone .booking-input:focus {
  height: 100%;
  padding-left: 8px;
  border: 0;
  box-shadow: none;
}

.booking-submit {
  height: 44px;
  margin-top: 4px;
  padding: 0 24px;
  border: 0;
  border-radius: 40px;
  background-color: var(--booking-blue);
  font-family: Inter-SemiBold, sans-serif;
  font-size: 15px;
  color: #fff;
  transition: background-color 0.15s ease;
}
.booking-submit:hover {
  background-color: #0058d6;
}
.booking-submit:disabled {
  opacity: 0.7;
}

/* Étape 3 : confirmation */
.booking-done {
  padding: 24px 0;
  text-align: center;
}
.booking-done--icon {
  display: inline-block;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #1a8a3f center / 26px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17.5 19 7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.booking-done .booking-title {
  margin-bottom: 10px;
}
.booking-done--text {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--booking-muted);
}
.booking-done--summary {
  display: inline-block;
  margin: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--booking-line);
  border-bottom: 1px solid var(--booking-line);
  list-style: none;
  text-align: left;
}
.booking-done--summary li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--booking-muted);
}
.booking-done--summary li:first-letter {
  text-transform: uppercase;
}
.booking-done--event {
  font-family: Inter-Bold, sans-serif;
  color: var(--booking-text) !important;
}

@media (min-width: 768px) {
  .booking-form--row {
    grid-template-columns: 1fr 1fr;
  }
  .booking-picker.has-times {
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .booking-picker.has-times .booking-times {
    width: 220px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
  }
}

@media (min-width: 992px) {
  .booking {
    -ms-flex-direction: row;
    flex-direction: row;
    min-height: 600px;
  }
  .booking-info {
    width: 34%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-bottom: 0;
    border-right: 1px solid var(--booking-line);
  }
  .booking-main {
    padding: 28px 32px 32px;
  }
}

/* ---------- Formulaire de contact ---------- */

/* Masqué une fois le message envoyé */
.contact-form--wrapper[hidden] {
  display: none !important;
}
/* Le remerciement prend la place du formulaire, centré dans l'espace libéré */
.contact-form--left.is-sent {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
}
.contact-form--left.is-sent .form-sent {
  margin: 32px 0;
  padding: 20px 24px;
  font-size: 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .contact-form--left.is-sent .form-sent {
    margin: auto 0;
  }
}

/* Champ piège pour les robots : hors écran, ignoré par les lecteurs d'écran */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: Inter-Regular, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.form-status.is-success {
  background-color: #e8f5ec;
  color: #1a6b35;
}
.form-status.is-error {
  background-color: #fdecec;
  color: #b3261e;
}

/* Vérification anti-robot Cloudflare Turnstile */
.form-captcha,
.booking-captcha {
  margin: 0 0 16px;
}
.form-captcha:empty,
.booking-captcha:empty {
  margin: 0;
}
