/* =============================================
   ESPACES.CSS — Styles spécifiques à espaces.html
   ============================================= */

/* ===== HERO ===== */
.page-hero-espaces {
  background: linear-gradient(135deg, #0A1F5E 0%, #1B3C8C 50%, #C9941A 100%);
  padding: 8rem 0 4rem;
}

.breadcrumb-hero { display: flex; align-items: center; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.breadcrumb-hero a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 0.2s; }
.breadcrumb-hero a:hover { color: white; }
.breadcrumb-hero .bc-sep  { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.breadcrumb-hero .bc-active { color: rgba(255,255,255,0.85); font-size: 0.85rem; }

.espaces-hero-title {
  color: white; font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem); margin: 1rem 0 1.5rem; line-height: 1.1;
}
.espaces-hero-title em { color: #F2B93B; font-style: italic; }
.espaces-hero-desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }

/* Stats hero row */
.hero-stats-row { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-stat { text-align: center; }
.hero-stat-number { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 800; color: #F2B93B; line-height: 1; }
.hero-stat-label { color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.25rem; }
.hero-stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.2); align-self: center; }

/* ===== INTRO ===== */
.espaces-intro-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--gradient-blue); box-shadow: 0 8px 30px rgba(27,60,140,0.25);
  display: flex; align-items: center; justify-content: center;
  color: white; margin: 0 auto 1.5rem;
}
.espaces-intro-icon svg.lucide { width: 36px; height: 36px; }

/* ===== ÉTABLISSEMENTS ===== */
.espace-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid; border-radius: 50px;
  padding: 0.35rem 1rem; font-size: 0.8rem; font-weight: 700; margin-bottom: 1.25rem;
}
.espace-badge--blue { color: var(--primary); background: rgba(27,60,140,0.06); border-color: rgba(27,60,140,0.2); }
.espace-badge--gold { color: var(--gold); background: rgba(201,148,26,0.06); border-color: rgba(201,148,26,0.25); }

.espace-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1.2; margin-bottom: 1rem; }
.espace-title em { color: var(--gold); font-style: italic; }
.espace-desc { color: var(--text-secondary); line-height: 1.75; }

.espace-img { width: 100%; height: 380px; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 60px rgba(27,60,140,0.15); display: block; }

.espace-features { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; }
.espace-feature { display: flex; align-items: flex-start; gap: 0.75rem; }
.ef-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ef-icon--blue { background: rgba(27,60,140,0.08); color: var(--primary); }
.ef-icon--gold { background: rgba(201,148,26,0.08); color: var(--gold); }
.ef-icon svg.lucide { width: 18px; height: 18px; }
.ef-text strong { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); display: block; }
.ef-text span { font-size: 0.82rem; color: var(--text-muted); }

.espace-contact-box { margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: 16px; border: 1px solid var(--border); background: var(--offwhite); }
.ecb-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.75rem; display: block; }
.ecb-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ecb-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.ecb-link--primary { background: rgba(27,60,140,0.08); color: var(--primary); }
.ecb-link--primary:hover { background: rgba(27,60,140,0.15); }
.ecb-link--gold { background: rgba(201,148,26,0.08); color: var(--gold); }
.ecb-link--gold:hover { background: rgba(201,148,26,0.15); }
.ecb-link--green { background: rgba(16,185,129,0.08); color: #059669; }
.ecb-link--green:hover { background: rgba(16,185,129,0.15); }
.ecb-link svg.lucide { width: 14px; height: 14px; }

/* ===== GALERIE ===== */
.galerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.galerie-item { overflow: hidden; border-radius: 16px; }
.galerie-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.galerie-item:hover .galerie-img { transform: scale(1.05); }
.galerie-caption { padding: 0.75rem 1rem; font-size: 0.82rem; color: var(--text-secondary); }

/* ===== CTA ===== */
.section-cta-espaces { background: var(--gradient-section); }
.cta-espaces-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta-espaces-inner h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.cta-espaces-inner h2 em { color: var(--gold); font-style: italic; }
.cta-espaces-inner p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 2rem; }
.cta-espaces-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hero */
  .page-hero-espaces { padding: 6rem 0 3rem; }
  .espaces-hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .espaces-hero-desc { font-size: 0.95rem; margin-bottom: 2rem; }

  /* Stats hero */
  .hero-stat-divider { display: none; }
  .hero-stats-row { gap: 1.5rem; }
  .hero-stat-number { font-size: 2rem; }

  /* Établissements */
  .espace-img { height: 280px; }
  .espace-title { font-size: 1.6rem; }
  .espace-desc { font-size: 0.92rem; }

  /* Contact box */
  .espace-contact-box { padding: 1rem 1.25rem; }
  .ecb-links { gap: 0.5rem; }

  /* Galerie */
  .galerie-img { height: 180px; }

  /* CTA */
  .cta-espaces-btns { flex-direction: column; align-items: center; }
  .cta-espaces-btns a { width: 100%; max-width: 300px; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  /* Stats hero — colonne sur très petit */
  .hero-stats-row { gap: 1rem; }
  .hero-stat-number { font-size: 1.7rem; }
  .hero-stat-label { font-size: 0.7rem; }

  /* Établissements */
  .espace-img { height: 220px; }
  .espace-title { font-size: 1.4rem; }
  .espace-badge { font-size: 0.72rem; }

  /* Galerie — 1 col sur très petit */
  .galerie-grid { grid-template-columns: 1fr; }
  .galerie-img { height: 200px; }

  /* Features */
  .ef-text strong { font-size: 0.82rem; }
  .ef-text span { font-size: 0.76rem; }
}
