/* ==========================================
   PAGE CENTRE DE LOISIRS — ASSOCIATION BEAUFIEF
   Styles spécifiques à la page  centre.html uniquement.
   Les styles globaux (variables, reset, topbar, header,
   nav, footer, boutons, .container) sont dans style.css
========================================== */

/* ==========================================
   HERO PLEIN ÉCRAN
   Bandeau avec photo du centre de loisirs en fond
========================================== */
.page-hero {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #1e3a2f, #5c6f5c 50%, #d8b24a); /* Dégradé de secours */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/centre/coloriage.webp') center/cover no-repeat;
  opacity: 0.35;
}

.page-hero .hero-inner {
  position: relative;
  z-index: 1;
  padding: 60px 0 50px;
  width: 100%;
}

.page-hero h2 {
  font-family: var(--font-title);
  font-size: 3rem;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 680px;
}

/* ==========================================
   INTRODUCTION EN 2 COLONNES
   Photo à gauche, texte descriptif à droite
========================================== */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr; /* Texte légèrement plus large */
  gap: 50px;
  align-items: center;
  margin-bottom: 40px;
}

.intro-split-img {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
  max-height: 320px;
}

.intro-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-split-text h3 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  color: var(--terre-cuite);
  margin-bottom: 16px;
}

.intro-split-text p {
  color: var(--gris);
  margin-bottom: 14px;
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  background: var(--beige-lin);
  color: var(--vert-sauge);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--vert-sauge);
}

/* ==========================================
   BLOCS D'INFORMATION
   3 cartes avec infos pratiques (horaires, bus, repas)
========================================== */
.info-blocks {
  padding: 70px 0;
  background: var(--beige-lin);
}

.info-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-block {
  background: var(--blanc);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--vert-sauge);
  transition: 0.3s;
}

.info-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.info-block:nth-child(2) {
  border-top-color: var(--terre-cuite);
}

.info-block:nth-child(3) {
  border-top-color: var(--jaune-moutarde);
}

.info-block-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--vert-sauge);
  margin-bottom: 10px;
}

.info-block:nth-child(2) .info-block-label {
  color: var(--terre-cuite);
}

.info-block:nth-child(3) .info-block-label {
  color: #b08a00;
}

.info-block h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--texte);
  margin-bottom: 12px;
}

.info-block p,
.info-block li {
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.65;
}

.info-block ul {
  padding-left: 16px;
}

.info-block li {
  margin-bottom: 6px;
}

/* ==========================================
   TIMELINE "UNE JOURNÉE TYPE"
   Frise chronologique de gauche à droite
========================================== */
.journee-section {
  padding: 70px 0;
  background: #fff;
}

.journee-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--terre-cuite);
  margin-bottom: 40px;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--vert-sauge));
}

.tl-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  margin-bottom: 24px;
  position: relative;
}

.tl-row::before {
  content: '';
  position: absolute;
  left: 83px;
  top: 16px;
  width: 16px;
  height: 16px;
  background: var(--jaune-moutarde);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--jaune-moutarde);
}

.tl-row.repas::before {
  background: var(--terre-cuite);
  box-shadow: 0 0 0 2px var(--terre-cuite);
}

.tl-time {
  text-align: right;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--jaune-moutarde);
  padding-top: 12px;
  padding-right: 14px;
}

.tl-row.repas .tl-time {
  color: var(--terre-cuite);
}

.tl-content {
  background: var(--beige-lin);
  border-radius: 14px;
  padding: 14px 20px;
}

.tl-content strong {
  display: block;
  font-family: var(--font-title);
  color: var(--texte);
  margin-bottom: 4px;
}

.tl-content p {
  color: var(--gris);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================
   SECTION BUS
   Bandeau vert avec horaires et arrêts de bus
========================================== */
.bus-section {
  background: linear-gradient(135deg, var(--vert-sauge), #3d5a3d);
  color: #fff;
  padding: 60px 0;
}

.bus-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.bus-text h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--jaune-moutarde);
  margin-bottom: 14px;
}

.bus-text p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  margin-bottom: 12px;
}

.bus-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bus-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.bus-card .time {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--jaune-moutarde);
}

.bus-card .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

/* ==========================================
   SECTION TARIFS
   Tableaux de prix par tranche de quotient familial
========================================== */
.pricing-section {
  padding: 70px 0;
  background: var(--beige-lin);
}

.pricing-table {
  background: var(--blanc);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0;
  width: 100%;
}

.price-header {
  display: flex;
  background: var(--vert-sauge);
  color: var(--blanc);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
}

.price-header .col,
.price-row .col {
  padding: 14px 12px;
  flex: 1;
  text-align: center;
}

.price-header .col:first-child,
.price-row .col:first-child {
  flex: 1.8;
  text-align: left;
  padding-left: 20px;
}

.price-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--beige-lin);
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:nth-child(even) {
  background: rgba(246, 240, 230, 0.5);
}

.price-row .col:first-child {
  color: var(--gris);
  font-weight: 600;
  font-size: 0.9rem;
}

.price-row .col:not(:first-child) {
  color: var(--terre-cuite);
  font-weight: 700;
  font-size: 0.92rem;
}

.note-tarif {
  background: rgba(216, 178, 74, 0.13);
  border-left: 4px solid var(--jaune-moutarde);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--gris);
  margin: 10px 0 24px;
}

.note-tarif strong {
  color: var(--terre-cuite);
}

.inscription-banner {
  background: var(--terre-cuite);
  color: #fff;
  padding: 55px 0;
  text-align: center;
}

.inscription-banner h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 10px;
}

.inscription-banner p {
  max-width: 650px;
  margin: 0 auto 22px;
  opacity: 0.9;
}

.btn-white {
  background: #fff;
  color: var(--terre-cuite);
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 700;
  display: inline-block;
  transition: 0.25s;
  font-family: var(--font-title);
}

.btn-white:hover {
  background: var(--jaune-moutarde);
  color: var(--texte);
  transform: translateY(-2px);
}


/* Responsive */
@media (max-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr;
  }
  
  .intro-split-img {
    min-height: 250px;
  }
  
  .info-blocks-grid {
    grid-template-columns: 1fr;
  }
  
  .bus-inner {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 70px;
  }
  
  .tl-row {
    grid-template-columns: 70px 1fr;
  }
  
  .tl-row::before {
    left: 63px;
  }
  
  .page-hero h2 {
    font-size: 2rem;
  }
}

/* ==========================================
   DIAPORAMA (Carrousel de photos)
   Slides glissantes avec boutons précédent/suivant
   JavaScript dans main.js gère la navigation
========================================== */

/* Chaque diapositive du carrousel */
.cslide {
  min-width: 380px;
  height: 260px;
  margin: 0 10px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13);
  flex-shrink: 0;   /* Empêche le rétrécissement dans le conteneur flex */
  background: #222; /* Fond sombre pendant le chargement de l'image */
}

.cslide img,
.cslide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

/* Légère mise à l'échelle au survol */
.cslide:hover img,
.cslide:hover video { transform: scale(1.04); }

/* Boutons précédent/suivant positionnés en absolu sur le carrousel */
.cbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terre-cuite);
  transition: 0.25s;
  line-height: 1;
}

.cbtn:hover { background: var(--jaune-moutarde); color: #fff; transform: translateY(-50%) scale(1.1); }
.cbtn-prev { left: 12px; }
.cbtn-next { right: 12px; }

/* Points indicateurs de position dans le carrousel */
.cdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

/* Point actif (slide courante) mis en évidence */
.cdot.active { background: var(--terre-cuite); transform: scale(1.3); }

/* Carrousel plus petit sur mobile */
@media (max-width: 700px) {
  .cslide { min-width: 280px; height: 190px; }
}
