/* Styles modernisés pour le dashboard */

.dashboard-container {
  padding: 30px 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Section d'en-tête */
.dashboard-header {
  margin-bottom: 40px;
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.dashboard-title {
  font-size: 32px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.dashboard-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background: #5cb85c;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.dashboard-subtitle {
  font-size: 20px;
  color: #555;
  max-width: 800px;
  margin: 25px auto 25px;
}

.date-badge {
  background-color: #5cb85c;
  color: white;
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 500;
  margin: 10px 0 25px;
  box-shadow: 0 3px 10px rgba(92, 184, 92, 0.3);
  transition: all 0.3s ease;
}

.date-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(92, 184, 92, 0.4);
}

.date-badge-text {
  letter-spacing: 0.5px;
}

.deadline-badge {
  background-color: #f0ad4e;
  color: white;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 15px;
  font-weight: 500;
}

.section-title {
  font-size: 26px;
  font-weight: 500;
  color: #333;
  margin: 0 0 30px;
  text-align: center;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background: #5cb85c;
  bottom: -10px;
  left: 50%;
  margin-left: -30px;
}

.p-0 {
  padding: 0 !important;
}

.equal-height-row {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dashboard-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  background-color: rgba(92, 184, 92, 0.1);
  border-left: 3px solid #5cb85c;
  padding: 20px;
  border-radius: 4px;
  margin: 25px auto 10px;
  max-width: 900px;
}

/* Nouvelles sections pour la structure linéaire */
.info-cards-row {
  margin-bottom: 40px;
}

.gallery-section {
  margin-bottom: 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  padding: 30px 15px;
}

.videos-section, .location-section {
  margin: 40px 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  padding: 30px 15px;
}

/* Style des sections */
.section-title {
  margin-bottom: 30px;
}

/* Carrousel amélioré */
.carousel-modern-container {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.carousel-modern {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-modern .carousel-inner {
  border-radius: 8px;
  background-color: #000;
  overflow: hidden;
  position: relative;
}

/* Styles pour améliorer l'animation du carousel */
.carousel-modern .carousel-inner .item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

.carousel-modern .carousel-inner .item.active {
  opacity: 1;
  z-index: 2;
}

.carousel-modern .carousel-inner .item.active.left,
.carousel-modern .carousel-inner .item.active.right {
  opacity: 0;
  z-index: 1;
  -webkit-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}

.carousel-modern .carousel-inner .item.next.left,
.carousel-modern .carousel-inner .item.prev.right {
  opacity: 1;
  z-index: 2;
}

/* Style de base pour tous les carousels */
.carousel-modern .carousel-inner .item img {
  max-width: 100%;
  margin: 0 auto;
  object-fit: cover;
}

/* Style spécifique pour le carousel du dashboard (galerie) */
.gallery-section .carousel-modern {
  background-color: #000;
}

.gallery-section .carousel-modern .carousel-inner {
  height: 500px;
}

.gallery-section .carousel-modern .carousel-inner .item {
  text-align: center;
  padding: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-section .carousel-modern .carousel-inner .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
}

.carousel-modern .carousel-control {
  background-image: none;
  opacity: 0;
  transition: all 0.3s ease;
  width: 10%;
  z-index: 10;
}

.carousel-modern:hover .carousel-control {
  opacity: 0.7;
}

.carousel-modern .carousel-control:hover {
  opacity: 0.9;
}

.carousel-modern .carousel-control .glyphicon {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  font-size: 20px;
  color: white;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-thumbnails {
  position: relative;
  margin-bottom: 10px;
}

.thumbnails-container {
  display: flex;
  overflow-x: auto;
  padding: 5px 0;
  gap: 5px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
}

.thumbnails-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 20px;
}

.thumbnail-item {
  flex: 0 0 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.thumbnail-item:hover {
  opacity: 0.8;
}

.thumbnail-item.active {
  opacity: 1;
  border-color: #5cb85c;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cartes d'information */
.info-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
}

.info-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.info-card-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  background-color: #f8f8f8;
  position: relative;
}

.highlight-header {
  background-color: #5cb85c;
  color: white;
  border-bottom: none;
}

.highlight-header h3 {
  color: white !important;
}

.info-card-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: 500;
  text-align: center;
}

.info-card-body {
  padding: 20px;
}

/* Carte de téléchargement */
.download-card {
  text-align: center;
  padding: 25px 15px;
}

.download-icon {
  max-width: 80px;
  margin-bottom: 15px;
}

.download-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #5cb85c;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.download-button:hover {
  background-color: #4cae4c;
  text-decoration: none;
  color: white;
}

.download-text {
  margin-top: 15px;
  color: #555;
}

/* Liste d'horaires */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-item {
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
}

.schedule-item-info {
  background-color: #5bc0de;
}

.schedule-item-warning {
  background-color: #f0ad4e;
}

.schedule-item-success {
  background-color: #5cb85c;
}

.schedule-item-primary {
  background-color: #337ab7;
}

/* Section adresse et carte */
.location-section {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.location-title {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
}

.location-address {
  margin-bottom: 20px;
}

.location-map {
  width: 100%;
  height: 700px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Section vidéos améliorée */
.videos-section {
  margin: 40px 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  padding: 30px 15px;
}

.dashboard-video-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
}

.dashboard-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dashboard-video-card .video-card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f8f8f8;
}

.dashboard-video-card .video-card-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.video-wrapper {
  position: relative;
}

.dashboard-video-card .embed-responsive {
  border-radius: 0;
}

.dashboard-video-card .video-card-footer {
  padding: 15px 20px;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.dashboard-video-card .video-card-footer p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.video-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-controls {
  opacity: 1;
}

.video-control-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.video-control-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.expand-btn {
  min-width: 100px;
}

@media (max-width: 991px) {
  .dashboard-title {
    font-size: 28px;
  }
  
  .dashboard-subtitle {
    font-size: 18px;
  }
  
  .info-card {
    margin-bottom: 20px;
  }
  
  .gallery-section .carousel-modern .carousel-inner {
    height: 450px;
  }
  
  .location-map {
    height: 550px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .dashboard-container {
    padding: 15px;
  }
  
  .dashboard-header {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
  
  .dashboard-title {
    font-size: 24px;
  }
  
  .dashboard-subtitle {
    font-size: 16px;
  }
  
  .dashboard-description {
    font-size: 14px;
  }
  
  .date-badge {
    padding: 8px 18px;
    font-size: 16px;
  }
  
  .location-map {
    height: 550px;
    margin-top: 20px;
  }
  
  .info-card-header h3 {
    font-size: 16px;
  }
  
  .schedule-item {
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 8px;
  }
  
  .gallery-section, .videos-section, .location-section {
    padding: 20px 15px;
    margin: 20px 0;
  }
  
  .info-cards-row {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-section .carousel-modern .carousel-inner {
    height: 350px;
  }
  
  .location-map {
    height: 450px;
  }
  
  .thumbnail-item {
    flex: 0 0 50px;
    height: 40px;
  }
}