/* ===== MÉDIATHÈQUE — styles complémentaires ===== */

/* Active nav link */
.active-nav {
  color: var(--blue-light) !important;
  font-weight: 700;
}

/* ===== HERO ===== */
.media-hero {
  position: relative;
  background: var(--blue-dark);
  padding: 100px 0 60px;
  overflow: hidden;
  text-align: center;
  color: white;
}
.media-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, #2358a8 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, #4a9fd4 0%, transparent 50%);
  opacity: .55;
}
.media-hero-content {
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(74,159,212,.25);
  border: 1px solid rgba(74,159,212,.5);
  color: #7ac3e8;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.media-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 12px;
}
.media-hero-content h1 .highlight {
  color: var(--blue-light);
}
.media-hero-content > p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  margin: 0 0 36px;
}

/* ISSANOU PARTNER BLOCK */
.issanou-partner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 16px 28px;
  margin-top: 8px;
}
.issanou-logo {
  height: 64px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 4px;
}
.issanou-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.issanou-text span { font-size: .75rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .8px; }
.issanou-text strong { font-size: 1rem; color: white; }
.issanou-text em { font-size: .78rem; color: var(--blue-light); font-style: italic; }

/* ===== TABS BAR ===== */
.tabs-bar {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: white;
  border-bottom: 2px solid #e8eef6;
  box-shadow: 0 2px 12px rgba(26,58,107,.08);
}
.tabs-nav {
  display: flex;
  gap: 4px;
  padding: 12px 0;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #555;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.tab-btn:hover {
  background: #f0f6ff;
  color: var(--blue-mid);
}
.tab-btn.active {
  background: var(--blue-dark);
  color: white;
}
.tab-count {
  background: rgba(255,255,255,.25);
  color: inherit;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}
.tab-btn:not(.active) .tab-count {
  background: #e8eef6;
  color: var(--blue-mid);
}
.tab-count.soon {
  background: rgba(192,57,43,.12);
  color: #c0392b;
  font-size: .68rem;
}
.tab-btn.active .tab-count.soon {
  background: rgba(255,255,255,.2);
  color: white;
}

/* ===== TAB CONTENT ===== */
.tab-content {
  display: none;
  padding: 48px 0 80px;
}
.tab-content.active {
  display: block;
}

/* ===== FICHES TOOLBAR ===== */
.fiches-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.fiches-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid #d0daea;
  border-radius: 10px;
  padding: 10px 16px;
  flex: 1;
  min-width: 220px;
  color: #888;
}
.fiches-search input {
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  flex: 1;
  color: #222;
}
.fiches-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border: 1.5px solid #d0daea;
  border-radius: 24px;
  background: white;
  color: #555;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.filter-btn.active { background: var(--blue-mid); border-color: var(--blue-mid); color: white; }

/* ===== FICHE LIST ===== */
.fiche-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fiche-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid #e2eaf6;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.fiche-card:hover {
  box-shadow: 0 4px 20px rgba(26,58,107,.1);
  border-color: #b5cef0;
}

/* FICHE HEADER */
.fiche-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.fiche-header:hover { background: #f7faff; }
.fiche-header.open { background: #f0f6ff; }
.fiche-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}
.fiche-tag {
  background: var(--blue-dark);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.fiche-session {
  color: #888;
  font-size: .75rem;
}
.fiche-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0;
  line-height: 1.4;
}
.fiche-toggle {
  font-size: 1rem;
  color: #aaa;
  transition: transform .25s;
  flex-shrink: 0;
}
.fiche-header.open .fiche-toggle { transform: rotate(180deg); color: var(--blue-mid); }

/* FICHE BODY */
.fiche-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1.5px solid #e2eaf6;
}
.fiche-body.open { display: block; }

/* SUB-SECTION titles */
.fiche-subsection {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
  color: white;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 8px;
  margin: 20px 0 12px;
}

/* Q&A BLOCKS */
.qa-block {
  border-left: 3px solid #d0e4f7;
  margin-bottom: 12px;
  border-radius: 0 10px 10px 0;
  overflow: hidden;
}
.qa-question {
  background: #f0f6ff;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 14px;
  line-height: 1.5;
}
.qa-answer {
  background: white;
  color: #333;
  font-size: .87rem;
  padding: 10px 14px;
  line-height: 1.7;
  border: 1px solid #e8f0fb;
  border-top: none;
  border-radius: 0 0 10px 10px;
}
.qa-answer ul { margin: 6px 0 0 18px; padding: 0; }
.qa-answer li { margin-bottom: 4px; }
.qa-answer strong { color: var(--blue-dark); }
.qa-answer em { color: #777; }

/* ===== COMING SOON BLOCK ===== */
.coming-soon-block {
  text-align: center;
  padding: 80px 24px;
  max-width: 700px;
  margin: 0 auto;
}
.cs-icon {
  margin-bottom: 24px;
  opacity: .6;
}
.coming-soon-block h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 0 0 16px;
}
.coming-soon-block > p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
}
.cs-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.cs-cat {
  background: white;
  border: 1.5px solid #e2eaf6;
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.cs-cat span { font-size: 1.8rem; }
.cs-cat strong { font-size: .85rem; font-weight: 700; color: var(--blue-dark); }
.cs-cat em { font-size: .75rem; color: #c0392b; font-style: normal; font-weight: 600; }

/* BTN */
.btn { display: inline-block; padding: 14px 32px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .95rem; transition: transform .15s, box-shadow .15s; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,58,107,.3); }

/* ===== MÉDIAS DYNAMIQUES ===== */
.medias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 32px 0;
}
.media-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,58,107,.08);
  border: 1px solid #e8eef8;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.media-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(26,58,107,.14); }
.media-card-img { width: 100%; height: 180px; overflow: hidden; }
.media-card-img img { width: 100%; height: 100%; object-fit: cover; }
.media-no-img { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: #f0f4fa; color: #4a9fd4; }
.media-video-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.media-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.media-card-body { padding: 16px; flex: 1; }
.media-cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--blue-mid); background: #e8f0fb; padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.media-card-body h4 { font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; line-height: 1.3; }
.media-card-body p { font-size: 13px; color: #6b7a95; line-height: 1.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .tabs-nav { flex-direction: column; gap: 6px; }
  .tab-btn { width: 100%; justify-content: center; }
  .fiche-header { grid-template-columns: 1fr auto; }
  .fiche-meta { display: none; }
  .issanou-partner { flex-direction: column; text-align: center; padding: 16px; }
  .issanou-text { align-items: center; }
  .fiches-toolbar { flex-direction: column; }
  .fiches-search { width: 100%; }
}
