/* Header styles (reprise de la home) */
.header {
  background: white;
  border-bottom: 1px solid #E2DBD1;
  padding: 17px 0 11px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header .container {
  padding: 0 60px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #87735C;
  font-size: 15px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0.15px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #642D0E;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Footer section (reprise de la home) */
.footer {
  background: #642D0E;
  padding: 40px 0 15px 0;
  color: white;
}

.footer .container {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-column-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 7px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0.14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}

/* Mobile menu styles (reprise de la home) */
.nav-mobile {
  display: none;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #642D0E;
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid #E2DBD1;
  margin-bottom: 30px;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  width: 40px;
  height: 40px;
}

.close-line {
  position: absolute;
  width: 24px;
  height: 2px;
  background: #642D0E;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  color: #642D0E;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 15px 0;
  border-bottom: 1px solid #F9F7F4;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #C49D5C;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
}

/* Hero section */
.mediatheque-hero-section {
  padding: 87px 0 0 0;
}

.mediatheque-hero-section .container {
  max-width: 1300px;
  margin: 0 auto;
}

.mediatheque-hero-content {
  background: #642D0E;
  text-align: center;
  color: white;
  width: 100%;
  animation: fadeInUp 1s ease-out;
  padding: 46px 40px 64px 40px;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 8px 25px rgba(100, 45, 14, 0.3);
}

.mediatheque-hero-badge {
  display: inline-block;
  background-color: #C49D5C;
  color: white;
  padding: 8px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mediatheque-hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}

.mediatheque-hero-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  max-width: 700px;
  margin: 0 auto;
}

/* Main section */
.mediatheque-section {
  padding: 50px 0 60px 0;
}

.mediatheque-section .container {
  max-width: 1300px;
  margin: 0 auto;
}

.mediatheque-layout {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}

.mediatheque-section-title {
  text-align: left;
  margin-bottom: 20px;
}

.featured-video-wrapper {
  background: #FFF;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
  padding: 20px 20px 24px 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.featured-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

.featured-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-video-info {
  margin-top: 18px;
}

.featured-video-title {
  color: #1F2937;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 8px;
}

.featured-video-description {
  color: #6B7280;
  font-size: 14px;
  line-height: 24px;
  margin: 0;
}

/* Videos list */
.mediatheque-list-title {
  color: #1F2937;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 26px;
}

.mediatheque-videos-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-video-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  background: #FFF;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.media-video-card:hover {
  border-color: #C49D5C;
  box-shadow: 0 4px 12px rgba(196, 157, 92, 0.15);
  transform: translateY(-1px);
}

.media-video-card.active {
  border-color: #C49D5C;
  background: rgba(196, 157, 92, 0.04);
}

.media-video-thumbnail {
  width: 96px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, #642D0E 0%, #C49D5C 100%);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-video-thumbnail::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #FFF;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.media-video-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #642D0E;
  font-size: 10px;
  font-weight: 600;
}

.media-video-badge.secondary {
  color: #1F2937;
}

.media-video-badge.tertiary {
  color: #047857;
}

.media-video-content {
  flex: 1;
}

.media-video-title {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.media-video-meta {
  color: #6B7280;
  font-size: 12px;
  margin: 0;
}

/* Animations reuse */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    padding: 0 20px;
  }

  .nav {
    justify-content: space-between;
  }

  .nav-right {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .mediatheque-hero-section {
    padding: 120px 0 30px 0;
  }

  .mediatheque-hero-section .container {
    padding: 0 20px;
  }

  .mediatheque-hero-content {
    padding: 30px 18px 36px 18px;
    border-radius: 0 0 20px 20px;
  }

  .mediatheque-hero-title {
    font-size: 26px;
    line-height: 32px;
  }

  .mediatheque-hero-description {
    font-size: 14px;
    line-height: 22px;
  }

  .mediatheque-section {
    padding: 30px 0 40px 0;
  }

  .mediatheque-section .container {
    padding: 0 20px;
  }

  .mediatheque-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured-video-wrapper {
    padding: 16px;
  }

  .featured-video-title {
    font-size: 18px;
  }

  .featured-video-description {
    font-size: 13px;
  }

  .media-video-card {
    padding: 12px 12px;
  }
}


