.payment-method {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method:hover {
  border-color: #f97316;
}

.payment-method.selected {
  border-color: #f97316;
  background-color: #fff7ed;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.payment-method i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: #64748b;
}

.payment-method.selected i {
  color: #f97316;
}

.payment-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.payment-details.show {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}

/* Formulaires dans carte bancaire */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
  outline: none;
}

.card-icons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.card-icon {
  width: 40px;
  height: 25px;
  background-color: #f1f5f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
}


.progress-step .step-number {
  background-color: #e2e8f0;
  color: #64748b;
}

.progress-step.step-active .step-number {
  background-color: #f97316;
  color: white;
}

.progress-step.step-completed .step-number {
  background-color: #10b981;
  color: white;
}

.progress-step .step-text {
  font-size: 0.875rem;
  color: #64748b;
}

.progress-step.step-active .step-text {
  color: #334155;
  font-weight: 600;
}


.hero-btn-discover {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.25) !important;
  border: 4px solid rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease !important;
}

.hero-btn-discover:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border: 4px solid rgba(255, 255, 255, 1) !important;
  transform: scale(1.1) !important;
}


.hero-bg {
  background-image: url('../img/hero-bg.jpg?v=7'); /* ↻ forçage de cache */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}



@media (max-width: 639px) {
  .hero-bg {
	background-image: url('../img/hero-bg-mobile.jpg?v=7');
    background-position: 73% 0;
    background-size: auto 100%;
  }
  .hero-title-mobile {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 0.2px black;
  }
  .herotxt{
    margin-top: 0;
  }
  .hero-subtitle {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  }
  
  /* Cale le contenu en haut sur mobile */
  section.relative.min-h-screen {
    align-items: flex-start;
    padding-top: 4rem; /* Ajuste selon tes besoins (80px ici) */
  }
}



html {
  scroll-behavior: smooth;
}
.calendar {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header h2 {
  margin: 0;
  font-size: 1.5rem;
}
.days, .dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.day {
  text-align: center;
  font-weight: bold;
  background: #eee;
  padding: 0.25rem 0;
}
.date {
  text-align: center;
  background: #f0f0f0;
  border-radius: 8px;
  min-height: 80px;
  position: relative;
  padding: 0.25rem;
  font-size: 0.9rem;
}
.today {
  border: 2px solid #e5006e;
  background: #fff7fb;
}
.activity {
  display: block;
  font-size: 0.7rem;
  font-weight: bold;
  margin: 2px 0;
  padding: 2px;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}
.default { background: #FF9800; }
.yoga    { background: #f4e04d; color: black; }
.kayak   { background: #3498db; }
.rand, .hike { background: #2e8b57; }

.form-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
  outline: none;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
}

.modal-content {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}
.close-btn{
  position: absolute;
  font-size: 2rem;
  right: 10px;
}

/* --- Fix calendrier mobile : colonnes fixes + scroll horizontal --- */
@media (max-width: 768px) {
  /* le conteneur du calendrier peut scroller */
  #calendar-container {
    padding-bottom: 8px; /* petit espace sous le scroll */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* largeur minimale du calendrier = 7 colonnes * 120px */
  .calendar {
    min-width: 840px;
    /* S'adapte à la largeur réelle des 7 colonnes */
    display: inline-block;     /* empêche la prise de 100% et suit le contenu */
    width: max-content;        /* largeur = contenu (jours + dates) */
    max-width: none;           /* annule le max-width desktop */
    margin: 1rem;              /* petit marge interne au scroller */
  }

  /* même grille pour entêtes (.days) et cellules (.dates) */
  .days, .dates {
    grid-template-columns: repeat(7, 120px); /* ou 140px si besoin */
    gap: 4px;
  }

  /* Jours sur une seule ligne (évite la casse) */
  .day { 
    white-space: nowrap;
  }

  /* Les “vignettes activité” ne forcent pas l’élargissement */
  .activity {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
}

/* --- Hints de scroll horizontal pour le calendrier --- */
.scroll-hint { position: relative; }

@media (max-width: 768px) {
  /* Dégradés gauche/droite (non cliquables) */
  .scroll-hint.has-scroll::before,
  .scroll-hint.has-scroll::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 5;
    display: none; /* activé par .at-start / .at-end */
  }
  .scroll-hint.has-scroll.at-start::after,
  .scroll-hint.has-scroll.at-middle::after {
    display: block;
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0));
  }
  .scroll-hint.has-scroll.at-end::before,
  .scroll-hint.has-scroll.at-middle::before {
    display: block;
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0));
  }

  /* Pastille "⇆ Glissez" */
  .scroll-hint .drag-hint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 9999px;
    z-index: 6;
    display: none; /* activée par .show-hint */
    white-space: nowrap;
    backdrop-filter: blur(2px);
  }
  .scroll-hint.show-hint .drag-hint { display: inline-flex; gap: 6px; align-items: center; }

  /* Petite animation de va-et-vient des chevrons */
  @keyframes nudgeX { 
    0%,100% { transform: translate(-50%, 0); }
    50%     { transform: translate(-50%, -0.5px); }
  }
  .scroll-hint.show-hint .drag-hint { animation: nudgeX 2.5s ease-in-out infinite; }

  /* Masquer la pastille quand l’utilisateur a déjà scrollé */
  .scroll-hint.hint-hidden .drag-hint { display: none !important; }
}

