/* ============================================
   PAGE RETRAITES — /retraites (FR + EN + ES)
   ============================================ */

/* Compensation header + breadcrumb fixes lors du scroll vers une ancre */
#dates,
#programme,
#securite,
#faq {
  scroll-margin-top: calc(var(--sticky-offset) + 1rem);
}

/* === PROGRAMME RETRAITE (3 colonnes) === */

.programme-retraite {
  text-align: center;
}

.programme-retraite h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--color8);
}

.programme-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
  padding: 2.5rem 0;
}

.programme-col {
  background: var(--color9);
  border-radius: 14px;
  box-shadow: 0 6px 20px var(--shadow-medium);
  padding: 2.5rem 3rem;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  flex: 1 1 0;
  margin: 0 0.5rem;
  font-family: 'Inter Tight', sans-serif;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programme-col:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.programme-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.programme-col li {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--color2);
}

.programme-col li strong {
  font-weight: bold;
  color: var(--color2);
}

.programme-retraite .programme-col li {
  text-align: left;
}

.programme-retraite .facultatif {
  color: var(--color3);
  font-style: italic;
  font-size: 0.9em;
}

/* === LISTE DES PROCHAINES RETRAITES (format compact, 1 ligne = 1 retraite) === */

.retraites-liste-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.retraites-liste-section h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--color8);
}

.retraites-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.retraites-liste__item {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 2fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 12px;
  box-shadow: 0 1px 3px var(--shadow-very-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-align: left;
  position: relative;
}

.retraites-liste__item:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.1);
  transform: translateY(-1px);
}

/* "Prochaine retraite" : liseré gauche en couleur principale, légèrement surélevée */
.retraites-liste__item--prochaine {
  border-color: rgba(13, 148, 136, 0.35);
  border-left: 4px solid var(--color3);
  padding-left: calc(1.25rem - 3px);
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.1);
}

/* Retraite complète : aspect plus discret, non interactive */
.retraites-liste__item--complete {
  opacity: 0.65;
}

.retraites-liste__item--complete:hover {
  transform: none;
  border-color: rgba(13, 148, 136, 0.1);
  box-shadow: 0 1px 3px var(--shadow-very-light);
}

/* === Colonne 1 : dates + compte à rebours === */
.retraites-liste__dates {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.retraites-liste__date-range {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color2);
  letter-spacing: -0.01em;
}

.retraites-liste__countdown {
  font-size: 0.8rem;
  color: var(--color3);
  font-weight: 500;
}

/* === Colonne 2 : titre + méta === */
.retraites-liste__infos {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.retraites-liste__titre {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color2);
  line-height: 1.3;
}

.retraites-liste__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--gray-medium);
}

.retraites-liste__separateur {
  color: var(--gray-medium);
  opacity: 0.5;
}

.retraites-liste__lieu {
  color: var(--color3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.retraites-liste__duree {
  font-weight: 500;
}

.retraites-liste__tag-prochaine {
  color: var(--color3);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Colonne 3 : CTA === */
.retraites-liste__cta {
  justify-self: end;
}

.retraites-liste__btn {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  background: linear-gradient(135deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.retraites-liste__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.retraites-liste__statut {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  white-space: nowrap;
}

.retraites-liste__statut--complete {
  background: #f3f4f6;
  color: #6b7280;
}

.retraites-liste-empty {
  text-align: center;
  color: var(--color2);
  padding: 2rem;
  font-size: 1.05rem;
  font-style: italic;
}

/* === Mobile : les colonnes passent en stack empilé === */
@media (max-width: 700px) {
  .retraites-liste__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .retraites-liste__item--prochaine {
    padding-left: calc(1rem - 3px);
  }

  .retraites-liste__cta {
    justify-self: stretch;
  }

  .retraites-liste__btn,
  .retraites-liste__statut {
    display: block;
    text-align: center;
  }
}

/* === Image pleine largeur (fond hors container) === */

.fullwidth-image {
  margin-top: 2.5rem;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
}

.fullwidth-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 50vh;
}

@media (min-width: 1024px) {
  .fullwidth-image img {
    max-height: 65vh;
  }
}

/* ========================================================
   PAGE /retraites/notre-lieu — lieu, atouts, carrousel, CTA
   ======================================================== */

/* === Pourquoi le Montseny (3 atouts) === */

.lieu-pourquoi {
  padding: 3rem 1.5rem;
  background: var(--color9);
}

.lieu-pourquoi-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.lieu-pourquoi-wrapper h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color8);
  margin: 0 0 1rem;
}

.lieu-pourquoi-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--color2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.lieu-pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

/* Tablet : 3 cards ne rentrent pas a l'aise en 768px → stack en 1 colonne
   pour eviter l'orphan 2+1. Repasse en 3 colonnes a partir de 900px. */
@media (max-width: 899px) {
  .lieu-pourquoi-grid {
    grid-template-columns: 1fr;
  }
}

.lieu-atout {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 18px var(--shadow-very-light);
  border-top: 3px solid var(--color3);
}

.lieu-atout__icone {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.lieu-atout h3 {
  color: var(--color3);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.lieu-atout p {
  margin: 0;
  color: var(--color2);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* === Galerie / Carrousel === */

.lieu-galerie {
  padding: 3rem 1.5rem;
  background: var(--white);
}

.lieu-galerie-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.lieu-galerie-wrapper h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color8);
  margin: 0 0 1.5rem;
  text-align: center;
}

.lieu-galerie-empty {
  text-align: center;
  color: var(--gray-medium);
  font-style: italic;
  padding: 2rem;
}

.carrousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin: 0 auto;
  gap: 0.75rem;
}

.carrousel__piste {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 14px;
}

.carrousel__piste::-webkit-scrollbar {
  display: none;
}

.carrousel__item {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color9);
}

.carrousel__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carrousel__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: var(--white);
  color: var(--color3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.carrousel__nav:hover:not(:disabled) {
  background: var(--color3);
  color: var(--white);
  transform: translateY(-1px);
}

.carrousel__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carrousel__indicateurs {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.carrousel__indicateur {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carrousel__indicateur:hover {
  background: rgba(13, 148, 136, 0.3);
}

.carrousel__indicateur--actif {
  background: var(--color3);
  border-color: var(--color3);
  transform: scale(1.2);
}

@media (max-width: 700px) {
  .carrousel__nav {
    display: none;
  }

  .carrousel {
    grid-template-columns: 1fr;
  }
}

/* Desktop : carrousel réduit de ~30% par rapport au wrapper, centré */
@media (min-width: 1024px) {
  .carrousel {
    max-width: 70%;
  }
}

/* === Venir à la retraite (modes de transport détaillés) === */

.lieu-transport {
  padding: 3rem 1.5rem;
  background: var(--color9);
}

.lieu-transport-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.lieu-transport-wrapper h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color8);
  margin: 0 0 1.5rem;
  text-align: center;
}

.lieu-transport-intro {
  max-width: 780px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.lieu-transport-intro p {
  margin: 0 0 0.75rem;
  color: var(--color2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.lieu-transport-intro p:last-child {
  margin: 0;
}

.lieu-transport-note {
  font-style: italic;
  color: var(--gray-medium);
  font-size: 0.9rem !important;
}

.lieu-transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Desktop / 15" : forcer les 4 cards sur une seule ligne */
@media (min-width: 1024px) {
  .lieu-transport-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lieu-transport-card {
  background: var(--white);
  padding: 1.25rem 1.1rem;
  border-radius: 12px;
  border-top: 3px solid var(--color3);
  box-shadow: 0 2px 10px var(--shadow-very-light);
}

.lieu-transport-card h3 {
  color: var(--color3);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.lieu-transport-card p {
  margin: 0 0 0.75rem;
  color: var(--color2);
  line-height: 1.55;
  font-size: 0.95rem;
}

.lieu-transport-card ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.lieu-transport-card ol li {
  color: var(--color2);
  line-height: 1.55;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.lieu-transport-card ol li::marker {
  color: var(--color3);
  font-weight: 700;
}

.lieu-transport-duree {
  font-size: 0.85rem !important;
  color: var(--color8) !important;
  font-weight: 600 !important;
  margin-top: 0.5rem !important;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(13, 148, 136, 0.2);
}

/* Bloc "horaires clés" — accent visible pour l'info essentielle */
.lieu-transport-horaires {
  background: linear-gradient(135deg, var(--color3) 0%, var(--color8) 100%);
  color: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

.lieu-transport-horaires h3 {
  color: var(--white);
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.lieu-transport-horaires ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lieu-transport-horaires li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.lieu-transport-horaires li:last-child {
  border-bottom: none;
}

.lieu-transport-horaires strong {
  color: var(--white);
  font-weight: 700;
}

/* Bloc d'avertissement — horaires stricts à respecter pour les billets */
.lieu-transport-alerte {
  background: #fff7ed;
  border: 1px solid #fbbf24;
  border-left: 4px solid #d97706;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.lieu-transport-alerte h3 {
  color: #b45309;
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.lieu-transport-alerte ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lieu-transport-alerte li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--color2);
  line-height: 1.55;
  font-size: 0.95rem;
}

.lieu-transport-alerte li::before {
  content: '•';
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  color: #d97706;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.lieu-transport-alerte strong {
  color: #b45309;
}

/* Bloc "sur place" — info pratique complémentaire */
.lieu-transport-sur-place {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--color3);
  box-shadow: 0 2px 10px var(--shadow-very-light);
}

.lieu-transport-sur-place h3 {
  color: var(--color3);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.lieu-transport-sur-place p {
  margin: 0;
  color: var(--color2);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* === CTA final === */

.lieu-cta {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--color3) 0%, var(--color8) 100%);
  color: var(--white);
  text-align: center;
}

.lieu-cta-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.lieu-cta-wrapper h2 {
  color: var(--white);
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.lieu-cta-wrapper p {
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.lieu-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.lieu-cta .btn-primary {
  background: var(--white);
  color: var(--color3);
}

.lieu-cta .btn-primary:hover {
  background: var(--color1);
  color: var(--color8);
}

.lieu-cta .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lieu-cta .btn-secondary:hover {
  background: var(--white);
  color: var(--color3);
}

/* === RESPONSIVE PROGRAMME === */

@media (max-width: 900px) {
  .programme-col {
    width: 100%;
    max-width: 230px;
    min-width: 230px;
    margin: 0 auto 1.2rem auto;
    padding: 1.2rem 0.5rem;
    box-sizing: border-box;
    flex: unset !important;
  }
  .programme-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: unset !important;
    overflow-x: unset !important;
    gap: 1.2rem;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    align-items: center !important;
    width: 100%;
    max-width: none !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .programme-col {
    width: 70% !important;
    max-width: 70% !important;
    margin: 0 auto 1.2rem auto !important;
  }
}

@media (max-width: 700px) {
  .programme-col {
    width: 300px;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto 1.2rem auto;
    padding: 1.2rem 0.5rem;
    box-sizing: border-box;
    flex: unset !important;
  }
}

@media (max-width: 768px) {
  .programme-col {
    width: 90% !important;
    max-width: 90% !important;
    min-width: 0 !important;
    margin: 0 auto 1.2rem auto !important;
    padding: 1.5rem 1rem !important;
    box-sizing: border-box !important;
    flex: unset !important;
  }
}
