
/* CALENDRIER MODERNE V5 - rendez-vous */
:root{
  --cal-rose:#C7A027;
  --cal-rose-dark:#A17810;
  --cal-red:#ef4444;
  --cal-green:#10b981;
  --cal-cream:#fbf7f2;
  --cal-line:rgba(47,125,115,.18);
  --cal-shadow:0 18px 45px rgba(23,37,42,.08);
}

.rdv-calendar-label{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--cal-rose-dark);
  font-weight:900;
  margin:18px 0 12px;
  font-size:17px;
}
.rdv-calendar-label::before{
  content:"📅";
  font-size:18px;
}

.rdv-modern-calendar{
  margin:0 0 22px;
  padding:18px;
  border-radius:28px;
  background:linear-gradient(145deg,#ffffff 0%,#f0f7f4 100%);
  border:1px solid var(--cal-line);
  box-shadow:var(--cal-shadow);
  overflow:hidden;
}

.rdv-modern-calendar *{
  box-sizing:border-box;
}

.rdv-cal-head{
  display:grid;
  grid-template-columns:46px 1fr 46px;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.rdv-cal-title{
  margin:0;
  text-align:center;
  font-size:25px;
  font-weight:900;
  color:#2f2530;
  letter-spacing:-.02em;
}

.rdv-cal-btn{
  width:44px;
  height:44px;
  border:1.5px solid var(--cal-line);
  background:#fff;
  color:var(--cal-rose-dark);
  border-radius:14px;
  font-size:26px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(23,37,42,.06);
  display:flex;
  align-items:center;
  justify-content:center;
}
.rdv-cal-btn:hover{
  background:#f0f7f4;
  transform:translateY(-1px);
}

.rdv-cal-weekdays{
  display:grid !important;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  margin-bottom:8px;
}

.rdv-cal-weekdays span{
  text-align:center;
  font-size:12px;
  color:#77616d;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.04em;
  padding:4px 0;
}

.rdv-cal-days{
  display:grid !important;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.rdv-day{
  appearance:none;
  border:1.5px solid rgba(47,125,115,.11);
  background:#fff;
  border-radius:15px;
  min-height:48px;
  padding:7px 4px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:2px;
  cursor:pointer;
  font-weight:900;
  color:#2f2530;
  transition:.16s ease;
  box-shadow:0 8px 20px rgba(23,37,42,.03);
  font-family:inherit;
}
.rdv-day strong{
  font-size:15px;
  line-height:1;
}
.rdv-day small{
  font-size:9.5px;
  line-height:1;
  font-weight:900;
  opacity:.9;
}

.rdv-day.empty{
  opacity:0;
  pointer-events:none;
}

.rdv-day.past,
.rdv-day.closed{
  color:#b8aab1;
  background:#f7f3ef;
  cursor:not-allowed;
  box-shadow:none;
}

.rdv-day.available{
  border-color:rgba(16,185,129,.35);
  background:linear-gradient(180deg,#ecfdf5 0%,#fff 100%);
  color:#047857;
}
.rdv-day.available small{
  color:#047857;
}

.rdv-day.full{
  border-color:rgba(239,68,68,.32);
  background:linear-gradient(180deg,#fef2f2 0%,#fff 100%);
  color:#dc2626;
}
.rdv-day.full small{
  color:#dc2626;
}

.rdv-day.selected{
  border-color:transparent;
  color:#fff;
  background:linear-gradient(100deg,#d86c75 0%,#C7A027 52%,#A17810 100%);
  box-shadow:0 14px 24px rgba(47,125,115,.24);
  transform:translateY(-2px);
}
.rdv-day.selected small{
  color:#fff;
}

.rdv-time-zone{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(47,125,115,.12);
}

.rdv-time-title{
  margin:0 0 12px;
  color:#2f2530;
  font-weight:900;
  font-size:17px;
}

.rdv-time-title span{
  color:var(--cal-rose-dark);
}

.rdv-time-grid{
  display:grid !important;
  grid-template-columns:repeat(5, minmax(82px, 1fr));
  gap:10px;
  align-items:stretch;
}

.rdv-time{
  appearance:none;
  border:1.5px solid rgba(47,125,115,.16);
  background:#fff;
  border-radius:14px;
  min-height:44px;
  padding:10px 12px;
  font-family:inherit;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
  transition:.16s ease;
  box-shadow:0 8px 18px rgba(23,37,42,.04);
}

.rdv-time.available{
  color:#047857;
  background:linear-gradient(180deg,#ecfdf5,#fff);
  border-color:rgba(16,185,129,.45);
}

.rdv-time.booked{
  color:#dc2626;
  background:linear-gradient(180deg,#fef2f2,#fff);
  border-color:rgba(239,68,68,.42);
  cursor:not-allowed;
  opacity:.72;
}

.rdv-time.selected{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(100deg,#d86c75 0%,#C7A027 52%,#A17810 100%);
  box-shadow:0 14px 24px rgba(47,125,115,.24);
  transform:translateY(-1px);
}

.rdv-legend{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(47,125,115,.12);
  color:#75616c;
  font-size:12px;
  font-weight:800;
}

.rdv-legend span{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}

.rdv-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-flex;
}
.rdv-dot.green{background:var(--cal-green)}
.rdv-dot.red{background:var(--cal-red)}
.rdv-dot.pink{background:var(--cal-rose)}

.rdv-selected-summary{
  display:none;
  margin-top:16px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(90deg,#f0f7f4 0%,#fbf7f2 100%);
  color:var(--cal-rose-dark);
  border:1px solid rgba(47,125,115,.16);
  font-weight:900;
  box-shadow:0 12px 22px rgba(23,37,42,.05);
}
.rdv-selected-summary.show{
  display:flex;
  align-items:center;
  gap:10px;
}
.rdv-selected-summary::before{
  content:"✓";
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(100deg,#d86c75,#C7A027,#A17810);
  color:#fff;
  flex:none;
}

.rdv-calendar-message{
  grid-column:1/-1;
  padding:14px 16px;
  border-radius:16px;
  background:#f0f7f4;
  color:#A17810;
  border:1px solid rgba(47,125,115,.14);
  font-weight:800;
}

.rdv-modern-calendar.loading{
  opacity:.66;
  pointer-events:none;
}

@media(max-width:760px){
  .rdv-modern-calendar{padding:14px;border-radius:22px}
  .rdv-cal-head{grid-template-columns:40px 1fr 40px}
  .rdv-cal-btn{width:40px;height:40px}
  .rdv-cal-weekdays,.rdv-cal-days{gap:5px}
  .rdv-day{min-height:43px;border-radius:12px}
  .rdv-time-grid{grid-template-columns:repeat(2,1fr)}
  .rdv-legend{grid-template-columns:1fr}
}
