/* ============================================================
   Classes Page — G.S. Le Serval
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────── */
.page-header-classes {
  background-image: url('../images/ecole/_ALI6321.jpg');
  background-size: cover; background-position: center;
  padding: 9rem 0 4rem; position: relative;
}
.page-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,40,18,0.88), rgba(15,70,30,0.72));
}
.page-header-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--blanc); margin-bottom: 0.8rem;
}
.breadcrumb-item a { color: var(--or2); text-decoration: none; font-size: 0.9rem; }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── Onglets Maternelle / Primaire ───────────────────────── */
.niveau-tabs-section {
  background: var(--blanc);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  position: sticky; top: 68px; z-index: 100;
}
.niveau-tabs {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 0;
}
.niveau-tab {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1.2rem 3rem;
  border: none; background: transparent;
  font-family: var(--font); font-weight: 600;
  font-size: 1rem; color: #999;
  cursor: pointer; transition: all 0.3s;
  border-bottom: 3px solid transparent;
  position: relative;
}
.niveau-tab:hover { color: var(--vert2); }
.niveau-tab.active {
  color: var(--vert); border-bottom-color: var(--or);
}
.tab-icon { font-size: 1.3rem; }
.tabs-divider {
  width: 1px; height: 30px;
  background: #e0e0e0;
}

/* ── Intro niveau ────────────────────────────────────────── */
.niveau-intro-img {
  position: relative; border-radius: 20px;
  overflow: visible;
}
.niveau-intro-img img {
  width: 100%; border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  display: block; max-height: 420px; object-fit: cover;
}
.niveau-intro-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  border-radius: 16px; padding: 1rem 1.4rem;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border: 3px solid var(--blanc);
}
.maternelle-badge { background: var(--vert2); }
.primaire-badge   { background: var(--vert); }
.badge-icon { font-size: 1.8rem; }
.badge-text { font-size: 1.1rem; font-weight: 800; color: var(--or2); }

/* Mini stats */
.mini-stat {
  background: var(--blanc); border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.88rem; color: var(--vert);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  border: 1px solid rgba(15,70,30,0.1);
}
.mini-stat i { color: var(--or); font-size: 1.1rem; }

/* ── Cartes classes ──────────────────────────────────────── */
.classe-detail-card {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  background: var(--blanc); height: 100%;
  position: relative; transition: all 0.35s;
}
.classe-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15,70,30,0.15);
}
.classe-detail-card.featured {
  box-shadow: 0 12px 40px rgba(15,70,30,0.18);
  border: 2px solid var(--or);
}
.featured-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--or); color: var(--vert);
  font-size: 0.72rem; font-weight: 800;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  z-index: 2;
}
.special-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--or); color: var(--vert);
  font-size: 0.72rem; font-weight: 800;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  z-index: 2;
}

/* Headers couleurs */
.classe-card-header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}
.tps-header { background: linear-gradient(135deg, #7b1fa2, #4a148c); }
.ps-header  { background: linear-gradient(135deg, #e91e8c, #c2185b); }
.ms-header  { background: linear-gradient(135deg, #ff9800, #f57c00); }
.gs-header  { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.cp-header  { background: linear-gradient(135deg, var(--vert3), var(--vert2)); }
.ce1-header { background: linear-gradient(135deg, #2196f3, #1565c0); }
.ce2-header { background: linear-gradient(135deg, #9c27b0, #6a1b9a); }
.cm1-header { background: linear-gradient(135deg, #ff5722, #bf360c); }
.cm2-header { background: linear-gradient(135deg, var(--vert), #0a2810); }

.classe-emoji { font-size: 2.5rem; margin-bottom: 0.6rem; display: block; }
.classe-card-header h3 {
  color: var(--blanc); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.3rem;
}
.classe-age {
  background: rgba(255,255,255,0.2); color: var(--blanc);
  padding: 0.2rem 0.8rem; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  display: inline-block;
}

.classe-card-body { padding: 1.4rem; }
.classe-card-body > p {
  font-size: 0.88rem; color: #666; line-height: 1.7;
  margin-bottom: 1.1rem;
}
.classe-card-body h6 {
  font-weight: 700; color: var(--vert);
  font-size: 0.85rem; margin-bottom: 0.6rem;
}

.classe-objectifs { list-style: none; padding: 0; margin: 0; }
.classe-objectifs li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.84rem; color: #555;
  padding: 0.3rem 0; border-bottom: 1px solid #f5f5f5;
}
.classe-objectifs li:last-child { border-bottom: none; }
.classe-objectifs li i { color: var(--vert3); font-size: 0.95rem; margin-top: 2px; min-width: 16px; }

.activite-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.activite-tags span {
  background: var(--vert-clair); color: var(--vert2);
  padding: 0.25rem 0.7rem; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid rgba(15,70,30,0.12);
}

/* CM2 spécial */
.cm2-special { border: 2px solid var(--or); }
.efee-note {
  background: linear-gradient(135deg, rgba(15,70,30,0.06), rgba(200,155,0,0.08));
  border-left: 3px solid var(--or);
  border-radius: 0 10px 10px 0;
  padding: 0.7rem 1rem;
  font-size: 0.8rem; color: #555;
  margin-top: 1rem; line-height: 1.6;
}
.efee-note strong { color: var(--vert); }

/* Badge garderie TPS */
.garderie-badge {
  display: inline-flex; align-items: center;
  background: rgba(123,31,162,0.1);
  color: #7b1fa2; border: 1px solid rgba(123,31,162,0.3);
  border-radius: 20px; padding: 0.3rem 0.9rem;
  font-size: 0.78rem; font-weight: 700;
}

/* ── Matières ────────────────────────────────────────────── */
/* Légende matières */
.matieres-legende {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem;
}
.legende-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: #555;
}
.legende-item i { font-size: 0.7rem; }
.legende-item.all i     { color: var(--vert3); }
.legende-item.ce1plus i { color: var(--or); }

/* Cartes matières */
.matiere-card {
  background: var(--blanc); border-radius: 16px;
  padding: 1.4rem 1rem; text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  border: 1px solid rgba(15,70,30,0.08);
  transition: all 0.3s; height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.matiere-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,70,30,0.13);
  border-color: var(--vert3);
}
.matiere-card.niveau-all  { border-top: 3px solid var(--vert3); }
.matiere-card.niveau-ce1  { border-top: 3px solid var(--or); }

.matiere-icon { font-size: 2.2rem; }
.matiere-nom  { font-weight: 800; color: var(--vert); font-size: 0.95rem; }
.matiere-detail { font-size: 0.75rem; color: #888; line-height: 1.5; text-align: center; }

.niveau-badge-tag {
  background: rgba(200,155,0,0.12);
  color: var(--or);
  border: 1px solid rgba(200,155,0,0.3);
  border-radius: 20px; padding: 0.15rem 0.6rem;
  font-size: 0.68rem; font-weight: 700;
  margin-bottom: 0.2rem;
}

/* ── CTA Inscription ─────────────────────────────────────── */
.cta-inscription { background: var(--blanc); }
.cta-card {
  background: linear-gradient(135deg, var(--vert), var(--vert2));
  border-radius: 24px; padding: 3rem;
  border: 2px solid var(--or);
  box-shadow: 0 20px 60px rgba(15,70,30,0.2);
}
.cta-card h3 { color: var(--or2); font-weight: 800; font-size: 1.5rem; margin-bottom: 0.6rem; }
.cta-card p  { color: rgba(255,255,255,0.82); font-size: 0.95rem; margin: 0; }

.btn-cta-primary {
  background: var(--or); color: var(--vert);
  font-weight: 700; padding: 0.85rem 1.8rem;
  border-radius: 25px; text-decoration: none;
  display: inline-flex; align-items: center;
  font-size: 0.92rem; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(200,155,0,0.4);
}
.btn-cta-primary:hover {
  background: var(--or2); color: var(--vert);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,155,0,0.5);
}
.btn-cta-secondary {
  background: rgba(255,255,255,0.12); color: var(--blanc);
  font-weight: 600; padding: 0.85rem 1.8rem;
  border-radius: 25px; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  display: inline-flex; align-items: center;
  font-size: 0.92rem; transition: all 0.3s;
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.2); color: var(--blanc);
  border-color: var(--blanc); transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .niveau-tab { padding: 1rem 1.5rem; font-size: 0.9rem; }
  .cta-card { padding: 2rem 1.5rem; }
  .niveau-intro-badge { bottom: -0.5rem; right: -0.5rem; }
}
