/* ===== Base & layout ===== */
#rdv-ata-web, #rdv-ata-web * { box-sizing: border-box; }
#rdv-ata-web { width: 100%; margin:0; margin-left: -10px; padding: 20px; background-color: #4da3ff; border-radius: 12px; min-height: 400px;}

/* Mobile overrides */
@media (max-width: 600px) {
  #rdv-ata-web {
    margin-left: 0;
    margin-right: 0;
    padding: 12px;
    border-radius: 10px;
    min-height: auto; 
  }
}

/* Reset au cas où le shortcode serait dans un bloc <pre>/<code> du thème */
pre #rdv-ata-web, code #rdv-ata-web, pre #rdv-ata-web *, code #rdv-ata-web * {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  font-family: Poppins !important;
}

/* Grille principale */
.rdv-grid {
  display: flex;
  flex-wrap: wrap;              /* évite le scroll horizontal si l’espace manque */
  gap: 1%;
  align-items: flex-start;
  width: 100%;
}

/* Colonnes 70% / 30% (fluide) */
.rdv-grid .left {
  flex: 0 1 69.5%;
  max-width: 70%;
  min-width: 0;                 /* autorise le shrink sans overflow */
}
.rdv-grid .right {
  flex: 0 1 29.5%;
  max-width: 30%;
  min-width: 0;
  padding: 12px;
  background-color: rgba(42, 188, 32, 0.11);
  border-radius: 8px;
  height: 100% !important;
}

/* ===== Calendrier ===== */
.rdv-cal {
  width: 100%;                  /* 100% de la colonne */
  background: #fff7f2;
  border-radius: 12px;
  padding: 12px;
}
.rdv-cal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.rdv-cal .month { font-weight: 600; }
.rdv-cal .nav {
  border: 0;
  background: #ff7f50;
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}
.rdv-cal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;          /* cellules stables en resize */
}
.rdv-cal th {
  font-size: 12px;
  color: #7a5d52;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.rdv-cal td { text-align: center; }

.rdv-day {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 34px;
  margin: auto;
}
.rdv-day.disabled { opacity: .35; cursor: not-allowed; }
.rdv-day.has { border-color: #ffbe9f; background: #fff; }
.rdv-day.selected { background: #ff7f50; color: #fff; border-color: #ff7f50; }

/* ===== Créneaux ===== */
.rdv-slots {
  display: grid;
  /* s’adapte automatiquement à la largeur de la colonne (100%) */
  grid-template-columns: repeat(auto-fit, minmax(110px, 1 fr));
  gap: 8px;
  width: 100%;
}
.rdv-slot-btn {
  border: 1px solid #ddd;
  color: #000000 !important;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  width: 100%;                  /* boutons = 100% de leur cellule */
}
.rdv-slot-btn:disabled { opacity: 1; cursor: not-allowed; }

#rdv-result {
    background: #ffffff;
    border-radius: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* masqué quand il est vraiment vide */
#rdv-result:empty {
    display: none;
}

.rdv-msg {
	margin-top: 8px; 
	font-size: 14px; 
	color: #000000 !important;
	font-family: "Poppins", sans-serif !important;
}

/* ===== Responsive tablette ===== */
@media (max-width: 900px) {
  .rdv-grid .left,
  .rdv-grid .right {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

/* ===== Responsive mobile + multi‑step (hooks côtés JS) ===== */
@media (max-width: 600px) {
  .rdv-cal { padding: 8px; }
  .rdv-day {
    width: 28px; height: 28px; line-height: 28px; font-size: 12px;
  }
  .rdv-slot-btn { padding: 6px; font-size: 13px; }

  /* par défaut en mobile : on prépare le mode multi‑step */
  .rdv-grid.mobile-step .right { display: none; }
  .rdv-grid.mobile-step.show-slots .rdv-cal { display: none; }
  .rdv-grid.mobile-step.show-slots .right { display: block; }

  /* bouton retour pour le multi‑step */
  .rdv-back-btn {
    display: inline-block;
	color: #000000 !important;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: #ffffff !important;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
	border: none;
  }
}

/* ===== Bloc d'erreur responsive ===== */
#rdv-ata-web p {
  color: #ffffff;
  font-size: 14px;
}
#rdv-ata-web .rdv-error-box {
  width: 60%;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #b00020;
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0;
  display: block;
  box-sizing: border-box;
  text-align: left;
}
#rdv-ata-web .rdv-error-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: #000000 !important;
  font-family: "Poppins", sans-serif;
}
#rdv-ata-web .rdv-error-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #000000 !important;
  font-family: "Poppins", sans-serif;
}
#rdv-ata-web .rdv-error-link {
  display: inline-block;
  margin-top: 6px;
  text-decoration: underline;
  color: #0b63b6;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: "Poppins", sans-serif;
}

/* Harmonise en mobile */
@media (max-width: 600px) {
  #rdv-ata-web .rdv-error-box { padding: 14px; }
  #rdv-ata-web .rdv-error-title,
  #rdv-ata-web .rdv-error-text { font-size: 15px; }
}



/* === Palette rapide (tu peux ajuster les hex si besoin) === */
:root {
  -rdv-accent: #ff7f50;      /* orange principal (coral) */
  -rdv-accent-700: #ff6a33;  /* orange foncé (selected/active) */
  -rdv-accent-200: #ffd9c8;  /* orange clair (hover/soft) */
  -rdv-blue-soft: #2a84ff1a; /* panneau droite léger, aligné à ton visuel */
  -rdv-text-dark: #2a2a2a;
  -rdv-border: #e6e6e6;
}

/* === Colonne droite : fond bleu doux, cohérent avec ton visuel === */
.rdv-grid .right {
  background-color: #4da4ff !important;
  border-radius: 12px;
  padding: 14px;
}

/* === Header calendrier : boutons nav orange + hover/focus === */
.rdv-cal .nav {
  background: #ff7f50 !important;
  color: #fff !important;
  border: 0 !important;
  transition: transform .08s ease, filter .15s ease;
}
.rdv-cal .nav:hover { filter: brightness(1.08); }
.rdv-cal .nav:active { transform: scale(.96); }
.rdv-cal .month { font-weight: 700; color: #2a2a2a; }

/* === Jours du calendrier === */
.rdv-day {
  width: 34px; height: 34px; line-height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, transform .08s ease;
}
.rdv-day.disabled { opacity: .35; cursor: not-allowed; }

/* 1) Dispo = fond plein orange + texte blanc */
.rdv-day.has {
  background: #ff7f50 !important;
  color: #fff !important;
  border-color: #ff7f50 !important;
}
.rdv-day.has:hover { filter: brightness(1.05); }

/* 2) Selected = orange plus foncé + léger “lift” */
.rdv-day.selected {
  background: #000000 !important;
  border-color: #ff6a33 !important;
  color: #fff !important;
  transform: translateY(-3px);
}

/* === Créneaux (slots) === */
/* corrige la coquille 1 fr -> 1fr et modernise */
.rdv-slots {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1 fr)) !important;
  gap: 10px !important;
}
.rdv-slot-btn {
  border: 1px solid #e6e6e6 !important;
  color: #000000 !important;
  background: #fff !important;
  border-radius: 4px !important;
  padding: 10px 12px !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
}
.rdv-slot-btn:hover {
  border-color: #ff7f50 !important;
}
.rdv-slot-btn:focus {
  outline: 2px solid #ffd9c8;
  outline-offset: 2px;
}
.rdv-slot-btn:active { transform: translateY(1px); }

/* === Bloc “date sélectionnée” à droite === */
.rdv-grid .right .rdv-msg strong {
  display:block;
  text-align:center;
  color: #ffffff;
  font-size: 15px;
  font-weight:700;
  margin-bottom:8px;
  font-family: "Poppins", sans-serif;
}

/* === Mobile : réduit visuellement le calendrier et supprime SAM/DIM pour gagner en place === */
@media (max-width: 600px) {
  .rdv-cal { padding: 10px !important; }
  .rdv-cal th { font-size: 11px; letter-spacing: .02em; }
  .rdv-day { width: 30px; height: 30px; line-height: 30px; font-size: 12px; }

  /* cache les colonnes samedi (6) et dimanche (7) */
  .rdv-cal thead th:nth-child(6),
  .rdv-cal thead th:nth-child(7),
  .rdv-cal tbody td:nth-child(6),
  .rdv-cal tbody td:nth-child(7) {
    display: none !important;
  }

  /* grille de créneaux plus dense */
  .rdv-slots { grid-template-columns: repeat(auto-fit, minmax(120px, 1 fr)) !important; gap: 8px !important; }
  .rdv-slot-btn { padding: 8px 10px !important; font-size: 14px; }
}

/* === Boîte d’erreur : harmonise un peu avec ta charte === */
#rdv-ata-web .rdv-error-box {
  width: 100% !important;
  height: 325px;
  border-radius: 12px;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #000000 !important;
  font-family: "Poppins", sans-serif;
}

