/* ============================================================
   home.css — Collège Alphonse Karr v2
   Styles spécifiques à la page d'accueil
   ============================================================ */

/* ── Hero Slider ────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(320px, 55vh, 580px);
  overflow: hidden;
  background: var(--blue-dark);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Overlay titre ──────────────────────────────────────────── */
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 0 32px;
  background: linear-gradient(to top, rgba(18,40,80,.85) 0%, transparent 100%);
  color: var(--white);
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}

.hero-overlay h1,
[data-theme="dark"] .hero-overlay h1 {
  color: #ffffff;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

[data-theme="dark"] .hero-eyebrow {
  color: rgba(255,255,255,.7);
}

.hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
  margin-bottom: 0;
}

/* ── Boutons slider ─────────────────────────────────────────── */
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.slider-btn:hover { background: rgba(255,255,255,.3); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

/* ── Dots ───────────────────────────────────────────────────── */
.slider-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}

.slider-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* ── Quick links ────────────────────────────────────────────── */
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 20px;
  text-decoration: none;
  color: var(--black);
}

.quick-link:hover { color: var(--blue); }

.quick-icon {
  font-size: 3rem !important;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.quick-link strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--blue-dark);
  transition: color var(--transition);
}

.quick-link span {
  font-size: .8rem;
  color: var(--grey-mid);
  line-height: 1.4;
}

.quick-link:hover strong { color: var(--blue-light); }

/* ── Nav cards ──────────────────────────────────────────────── */
.nav-card {
  display: block;
  text-decoration: none;
  color: var(--black);
}

.nav-card:hover { color: var(--blue); }

.nav-card-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 12px;
}

.nav-card h3 {
  margin-bottom: 8px;
  color: var(--blue-dark);
  transition: color var(--transition);
}

.nav-card p { font-size: .875rem; margin-bottom: 0; }
.nav-card:hover h3 { color: var(--blue-light); }

/* ── Skeleton loader actualités ─────────────────────────────── */
.actu-skeleton {
  height: 180px;
  background: linear-gradient(90deg, var(--grey-light) 25%, var(--grey-bg) 50%, var(--grey-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Card actualité (générée par actus.js) ──────────────────── */
.actu-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.actu-date {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.actu-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.actu-card p {
  font-size: .875rem;
  color: var(--grey-mid);
  flex: 1;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-overlay { padding: 32px 0 24px; }
}