 #popupOverlay{
        position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;}

        .form-sidepanel,
.form-sidepanel label,
.form-sidepanel .btn,
.form-sidepanel input,
.form-sidepanel textarea {
  font-family:  sans-serif !important;
  font-weight: 300 !important;
}

 .form-sidepanel{position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 50vw;
        min-width: 320px;
        max-width: 760px;
        background: var(--bg-cream);
        box-shadow: -4px 0 16px rgba(0,0,0,0.10);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 9999;
        overflow-y: auto; /* ✅ permet de scroller le contenu */
        -webkit-overflow-scrolling: touch; /* ✅ défilement fluide sur iPhone */}

@media (max-width: 768px) {
  .form-sidepanel {
    width: 90vw !important; /* ✅ prend presque tout l’écran sur mobile */
    max-width: none !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .form-sidepanel {
    height: 100vh;
    overflow-y: scroll; /* ✅ assure que tout le contenu est visible même en paysage */
  }
}


/* --- Liste prestige --- */
#step8 .offer-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 480px;
  text-align: left;
  font-size: 1.05rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

#step8 .offer-list li {
  margin-bottom: 1em;
  position: relative;
  padding-left: 2em;
}

#step8 .offer-list li i.bi-check-circle {
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1.2rem;
}

#step8 .offer-list li strong {
  font-weight: 600;
  color: #222;
  font-family: 'Georgia', serif;
}

#step8 .offer-list li .subnote {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.3em;
}

/* --- Planning compact --- */
#step8 .planning {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: center;
  width: 100%;
}

#step8 .day {
  background: #f9f9fb;
  border-radius: 10px;
  padding: 0.5em 0.8em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  width: 95%;
  max-width: 420px;
  text-align: center;
}

#step8 .day h3 {
  font-size: 1rem;
  margin-bottom: 0.4em;
  color: var(--primary-dark);
  font-weight: 500;
}

#step8 .day h3 span {
  font-weight: normal;
  color: #888;
  font-size: 0.85rem;
}

#step8 .hours {
  display: flex;
  justify-content: center;
  gap: 0.4em;
  flex-wrap: nowrap; /* ✅ reste sur une seule ligne */
  overflow-x: auto;  /* ✅ défilement horizontal si besoin */
  padding-bottom: 0.2em;
  scrollbar-width: none; /* cache la barre sur mobile */
}
#step8 .hours::-webkit-scrollbar {
  display: none;
}

/* ✅ Boutons horaires élégants et légers */
#step8 button.agenda {
  background: #e6ecf4;
  color: var(--primary-dark);
  border: 1px solid #c6d1e0;
  border-radius: 6px;
  padding: 0.4em 0.8em;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap; /* évite la coupure */
  transition: all 0.2s ease;
  flex-shrink: 0; /* empêche le rétrécissement */
}

#step8 button.agenda:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

#step8 button.agenda.selected {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px #fff inset, 0 0 4px rgba(0,0,0,0.1);
}

/* ✅ Responsive */
@media (max-width: 480px) {
  #step8 h2 {
    font-size: 1.15rem;
  }
  #step8 .offer-list {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  #step8 .day {
    width: 96%;
  }
}

 

  .offer-content {
  padding: 2rem 2.5rem 0 2.5rem; /* haut | droite | bas | gauche */
}

.offer-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  max-width: 500px;
  margin: 2rem auto 3rem;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
  text-transform: none;
}

.teacher-photo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 1rem;
}

.intro {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  text-align: left;
}

.offer-list {
  padding-left: 1.2em;
  margin: 0 0 1.5rem;
}

.offer-list li {list-style: none;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0rem;
}

/*.cta-button {
  background: #9f8266;  
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
}

.cta-button:hover {
  background: #7e6652; 
  transform: translateY(-2px);
}*/


.guarantee {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
  text-align: center;
  font-style: italic;
}