/* ===================================================================
   CATALOGUE FORMATIONS - PAGE FORMATIONS VIDÉO
   Ce CSS gère UNIQUEMENT les sections à partir de HERO
   Le header est géré par edumanga_page_accueil_v7.css et activites.css
   =================================================================== */

:root {
  --primary: #1DD6D1;
  --dark: #333;
  --gray: #666;
  --light-gray: #888;
  --bg: #fff;
}

/* Reset spécifique pour les sections de contenu (pas le header) */
.hero, .filters, .catalogue, .pagination, .footer {
  box-sizing: border-box;
}

.hero *, .filters *, .catalogue *, .pagination *, .footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Surcharge des styles globaux d'activites.css pour le contenu */
.hero, .filters, .catalogue, .pagination, .footer {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
}

/* UTIL */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Liens spécifiques au contenu (pas le header) */
.hero a, .filters a, .catalogue a, .pagination a, .footer a {
  text-decoration: none;
  color: inherit;
}

/* ===================================================================
   HERO SECTION - Début du contenu géré par ce CSS
   =================================================================== */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: var(--bg);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--dark);
}

.hero p {
  font-size: 20px;
  margin: 20px 0;
  color: var(--gray);
}

.search-box {
  max-width: 500px;
  margin: 30px auto;
  position: relative;
}

.search-box input {
  width: 100% !important;
  padding: 14px 45px !important;
  margin-bottom: 0 !important;
  border-radius: 30px !important;
  border: 1px solid #ddd !important;
  font-size: 16px;
  outline: none;
  box-shadow: none !important;
}

.search-box input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(29, 214, 209, 0.1) !important;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 25px;
  display: inline-block;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #17b8b3;
}

/* FILTERS */
.filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding: 20px 0;
}

/* Surcharge des styles activites.css pour les select */
.filters select {
  width: auto !important;
  max-width: 250px;
  padding: 10px 15px !important;
  margin-bottom: 0 !important;
  border-radius: 20px;
  border: 2px solid var(--primary) !important;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.filters button.reset {
  width: auto !important;
  padding: 10px 15px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0 !important;
}

/* GRID */
.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* CARD */
.video-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

/* THUMB */
.thumbnail {
  position: relative;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-card:hover .thumbnail img {
  transform: scale(1.04);
}

.thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.video-card:hover .thumbnail::after {
  background: rgba(0,0,0,0.28);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FF4B4B;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.play-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(29, 214, 209, 0.65);
  border-radius: 999px;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* CONTENT */
.content {
  padding: 20px;
}

.category {
  font-size: 14px;
  color: var(--light-gray);
}

.content h3 {
  font-size: 24px;
  margin: 10px 0;
  color: var(--dark);
  font-weight: 700;
}

.content p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.4;
}

.meta {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  font-size: 14px;
}

.meta span {
  color: var(--gray);
}

.price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

/* ACTIONS */
.actions {
  display: flex;
  gap: 10px;
}

.btn-outline,
.btn-filled {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fff;
}

.btn-filled {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-filled:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 60px;
}

.pagination a {
  padding: 10px 15px;
  border-radius: 10px;
  color: var(--primary);
}

.pagination a.active {
  background: var(--primary);
  color: #fff;
}

/* FOOTER */
.footer {
  border-top: 2px solid var(--primary);
  padding: 40px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
}

.socials a {
  margin-right: 10px;
  font-size: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .actions {
    flex-direction: column;
  }
}
