/* Variables globales */
:root {
  --primary-gold: #ca8a10;
  --secondary-color: #2e7d32;
  --text-dark: #1f2937;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --border-radius: 12px;
}

/* Général */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

h1.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ca8a10;
}

.page-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #4b5563;
}

/* Layout vidéos */
.videos-layout {
  display: flex;
  gap: 1rem;
}

/* Colonne principale vidéos */
.videos-main {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* deux colonnes */
  gap: 1rem; /* espace entre les vidéos */
  overflow-y: auto; /* scroll si plus de 5 vidéos */
  padding-right: 0.5rem;
   max-height: 600px; /* hauteur fixe pour le scroll */
}
.video-item {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 300px;
  border: 1px solid rgba(202, 138, 16, 0.08);
}

.video-item:hover {
  box-shadow: 0 8px 28px rgba(202, 138, 16, 0.18);
  transform: translateY(-4px);
  border-color: rgba(202, 138, 16, 0.2);
}

.video-summary {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
}

.video-summary:hover {
  background-color: #e3f2fd;
}

.video-meta {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.875rem;
}

.video-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.video-content iframe {
  width: 100%;
  height: 360px;
  border-radius: 8px;
}

/* Sidebar */
.videos-sidebar {
  flex: 1;
  min-width: 280px; /* largeur minimale pour ne pas être trop petit */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
}

/* Recherche */
.search-box {
  background-color: white;
  padding: 1.5rem; /* plus de padding */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.search-box h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.search-box input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.search-box button {
  width: 100%;
  background-color: var(--primary-gold);
  color: var(--text-light);
  padding: 0.5rem 0;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background-color: #1565c0;
}

/* Vidéos récentes */
.recent-videos {
  background-color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.recent-videos h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.recent-videos ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-videos li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.recent-videos li img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}

.recent-videos li span {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.recent-videos li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.recent-videos li a:hover span {
  color: var(--primary-gold);
}

/* Responsive */
@media (max-width: 1024px) {
  .videos-layout {
    flex-direction: column;
  }
  
  .videos-sidebar {
    flex: none;
  }
  
  .video-content iframe {
    height: 240px;
  }
}

@media (max-width: 640px) {
  h1.page-title {
    font-size: 2rem;
  }
  .page-subtitle {
    font-size: 1rem;
  }
  .video-content iframe {
    height: 200px;
  }
}

.videos-section {
  padding: 2rem 0 5rem;
}

.videos-container {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #f9fafb;
}

/* Style des détails/vidéos à l'intérieur */
.videos-container details {
  margin-bottom: 1rem;
}

.videos-container iframe {
  width: 100%;
  height: 250px; /* taille fixe pour uniformité */
  border-radius: 8px;
  margin-top: 0.5rem;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff9ec, #fffdf5);
  border-bottom: 2px solid rgba(202,138,16,0.12);
}

.video-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.video-meta {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
  white-space: nowrap; /* empêche le texte de passer à la ligne */
}


