/* ── Focus global ───────────────────────────────────────── */
button:focus { background: var(--color); }

/* ── Calendrier ─────────────────────────────────────────── */
.calendar { width: 100%; }

.calendar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar hgroup { display: flex; gap: 0.85em; }

.calendar hgroup button {
  width: 2em; height: 2em;
  border: none;
  border-radius: 0.5em;
  color: white;
  background: var(--color);
  cursor: pointer; position: relative; flex-shrink: 0;
  -webkit-appearance: none; appearance: none; padding: 0;
}

.calendar hgroup #prev::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: .5em; height: .5em;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
}
.calendar hgroup #next::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: .5em; height: .5em;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
}
.calendar hgroup #prev::before { transform: translate(-30%,-50%) rotate(-135deg); }
.calendar hgroup #next::before { transform: translate(-70%,-50%) rotate(45deg); }

.calendar hgroup button:disabled { background: #ccc; cursor: not-allowed; }
.calendar hgroup button:disabled::before { border-color: #666; }


.calendar hgroup button.stepbtn {
	border-radius: 50%;
}

.calendar ul.days,
.calendar ul.dates {
  display: grid; grid-template-columns: repeat(7, 1fr);
  list-style: none; margin: 0; padding: 0; text-align: center;
}

.calendar ul.days li {
  font-size: .75em; color: #333; font-weight: 400;
  padding-bottom: 8px; text-transform: uppercase;
}

.calendar ul.dates li {
  padding: 0; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}

/* ── Boutons de date ────────────────────────────────────── */
.date-btn {
  width: 100%; height: 100%;
  max-width: 2.2em; max-height: 2.2em;
  border: none; border-radius: 50%;
  font-size: .85em; cursor: pointer;
  background: transparent; color: #333;
  -webkit-appearance: none; appearance: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

li.inactive { color: #ddd; font-size: .85em; }

.calendar .date-btn.disponible   { background: var(--color); color: #fff; }
.calendar .date-btn.passe              { background: transparent; color: #ccc; cursor: not-allowed; }
.calendar .date-btn.ferme-hebdo        { background: #ccc; color: #666; cursor: not-allowed; }
.calendar .date-btn.ferme { background: #D32F2F; color: #fff; cursor: not-allowed; }
.calendar .date-btn.complet            { background: var(--color-light); color: var(--color); cursor: not-allowed; }
.calendar .date-btn.aujourdhui         { border: 0.2rem solid #333; }
.calendar .date-btn.selected           { background: var(--color) !important; color: #fff !important; }


.form-helper {
	line-height: 1.2;
	color: var(--color-form);
	font-style: italic;
	font-size: 75%;
}

.form-helper i {
	font-style: normal;
}

/* ── Animation d'entrée ─────────────────────────────────── */
@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tunnel : container ─────────────────────────────────── */
#resa-steps:not(.resa-active) { display: none; }
#resa-steps.resa-active       { min-height: 0; }

.step-bloc { animation: stepIn .22s ease; padding: 0; margin: 0; }
.step-title { margin: 10px 0 12px; font-weight: 600; }


/* ── Boutons de choix ───────────────────────────────────── */
.step-choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

.step-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85em;
  padding: 0.5em 0.85em;
  border: none;
  border-radius: 1rem;
  color: #fff;
  background: var(--color);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
  border: 0.2rem solid var(--color);
}

.step-btn:hover {
  border: 0.2rem solid #333;
}

.step-btn.complet {
	background: var(--color-light);
	border-color: var(--color-light);
	color: var(--color);
	cursor: not-allowed;
}

.step-btn .material-icons {
  font-size: 1.4em;
  flex-shrink: 0;
  grid-column: 1; /* Force l'icône dans la 1ère colonne */
}

.step-btn-label {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  grid-column: 2; /* Force le texte dans la 2ème colonne */
}

.step-btn-prix {
  font-style: normal;
  font-weight: 600;
  grid-column: 3; /* Force le prix dans la 3ème colonne */
  justify-self: end; /* Aligne le prix à droite */
}

@media (max-width: 600px) {
  .step-btn {
    grid-template-columns: auto 1fr; /* 2 colonnes : icône | texte + prix */
  }
  .step-btn-prix {
    grid-column: 2; /* Le prix passe sous le texte */
    justify-self: start;
  }
}

/* affichage des boutons pour l'heure */
.step-choices-grid { flex-direction: row; flex-wrap: wrap; }
.step-choices-grid .step-btn { display: flex; }

/* ── Formulaire infos ───────────────────────────────────── */
.step-form { display: flex; flex-direction: column; }

/* ── Erreur ─────────────────────────────────────────────── */
.step-error {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: #c62828; padding: 20px; text-align: center;
}
.step-error .material-icons { font-size: 2em; }

/* ── Confirmation ───────────────────────────────────────── */
.step-confirmation {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 20px 0; text-align: center;
}

/* Evenement */
.grid_evt {
  display: grid;
  grid-template-columns: 10rem 1fr;
  grid-gap: 1rem;
  align-items: center;
}

.grid_evt a {
	font-weight: 400;
}

.grid_evt .icon {
	height: 24px;
	line-height: 24px;
	font-size: 1rem;
	margin-top: 0.5rem;
}

.img_evt {
  aspect-ratio: 1/1;
}

.img_evt img {
  border-radius: .5rem;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

/* ── Récap sidebar ──────────────────────────────────────── */
#recap-container { 
transition: max-height .3s ease, opacity .5s ease;
}

.hidden {
  max-height: 0; overflow: hidden; opacity: 0;
}

.resa-sidebar-pills {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.85em;
}

.resa-sidebar-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  
  
  background: var(--color-light);
  color: #333;
  border: 0.2rem solid var(--color-light);
  border-radius: 0.85rem;
  padding: 5px 12px;
  font-size: 0.85em;
  cursor: pointer;
  text-align: left;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: background .15s, color .15s;
  animation: stepIn .2s ease;
}


.resa-sidebar-pill:hover { border: 0.2rem solid #333; }

.resa-sidebar-pill-edit { margin-left: auto; opacity: 0; transition: opacity .15s; align-self: center;}

.resa-sidebar-pill:hover                    { background: var(--color); color: #fff; }
.resa-sidebar-pill:hover .material-icons    { color: #fff; }
.resa-sidebar-pill:hover .resa-sidebar-pill-edit { opacity: 1; }

.resa-sidebar-pill[disabled], .resa-sidebar-pill[disabled]:hover {
	background: var(--color-light);
	color: #333;
	border: 0.2rem solid var(--color-light);
}

.resa-sidebar-pill[disabled]:hover .material-icons    { color: #333; }