:root {
  --bleu-marial: #1e3f8b;
  --bleu-vierge: #4b8bff;
  --bleu-clair: #e6f0ff;
  --jaune-or: #ffd700;
  --jaune-dore: #ffc72c;
  --blanc-pur: #cec9c4;
  --gris-fonce: #333333;
  --gris-clair: #f8f9fa;
  --gris-moyen: #d8dadbff;
  --blanc: #ffffff;
  --brun-basilique: #8b4513;
  --brun-clair: #a0522d;
  --brun-fonce: #654321;
  --amber-principal: #f59e0b;
  --amber-clair: #fbbf24;
}

/* ===========================================
   STYLES POUR LES VIDÉOS DES ACTUALITÉS
   =========================================== */

.news-video,
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.15);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transition: all 0.4s ease;
}

.news-video:hover,
.video-container:hover {
  box-shadow: 0 20px 50px rgba(139, 69, 19, 0.25);
  transform: translateY(-2px);
}

.news-video video,
.video-container video {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
  transition: all 0.3s ease;
}

.news-video video:focus,
.video-container video:focus {
  outline: 3px solid var(--amber-principal);
  outline-offset: 3px;
}

/* Overlay personnalisé pour les actualités */
.news-video-overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.8),
    rgba(101, 67, 33, 0.6)
  ) !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.news-video-overlay:hover {
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.9),
    rgba(101, 67, 33, 0.7)
  ) !important;
}

.news-play-button {
  font-size: 3.5rem !important;
  margin-bottom: 1rem !important;
  background: rgba(245, 158, 11, 0.9) !important;
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4) !important;
}

.news-play-button:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6) !important;
}

.news-video-info {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  opacity: 0.95 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.news-video-info i {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: var(--amber-principal);
}

/* Indicateur de chargement pour les actualités */
.news-video-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 69, 19, 0.8);
  border-radius: 12px;
  z-index: 15;
}

/* Message d'erreur pour les actualités */
.news-video-error {
  padding: 2rem !important;
  text-align: center !important;
  background: linear-gradient(135deg, #fee, #fdd) !important;
  border: 2px solid #f5c6cb !important;
  border-radius: 12px !important;
  color: #721c24 !important;
  font-family: "Inter", sans-serif !important;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.1);
}

.news-video-error i {
  font-size: 3rem !important;
  margin-bottom: 1rem !important;
  color: #dc3545 !important;
}

.news-video-error h4 {
  margin-bottom: 1rem !important;
  color: #721c24 !important;
  font-size: 1.5rem;
  font-weight: 600;
}

.news-video-error p {
  margin-bottom: 1.5rem !important;
  line-height: 1.6 !important;
  font-size: 1rem;
  opacity: 0.9;
}

.news-video-error button {
  padding: 12px 24px !important;
  background: #dc3545 !important;
  color: white !important;
  border: none !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.news-video-error button:hover {
  background: #c82333 !important;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
  transform: translateY(-2px);
}

/* Responsive pour les vidéos d'actualités */
@media (max-width: 768px) {
  .news-video,
  .video-container {
    margin: 1rem;
    border-radius: 12px;
  }

  .news-video video,
  .video-container video {
    min-height: 220px;
    max-height: 300px;
  }

  .news-play-button {
    font-size: 2.5rem !important;
    width: 70px !important;
    height: 70px !important;
  }

  .news-video-info {
    font-size: 1rem !important;
  }

  .news-video-error {
    margin: 1rem !important;
    padding: 1.5rem !important;
  }

  .news-video-error i {
    font-size: 2.5rem !important;
  }

  .news-video-error h4 {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 480px) {
  .news-video video,
  .video-container video {
    min-height: 180px;
    max-height: 250px;
  }

  .news-play-button {
    font-size: 2rem !important;
    width: 60px !important;
    height: 60px !important;
  }

  .news-video-info {
    font-size: 0.9rem !important;
  }

  .news-video-info i {
    font-size: 1.2rem;
  }
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--gris-fonce);
  background-color: var(--blanc-pur);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar minimaliste */
.navbar {
  /* background: url("assets/images/35.jpg") center/cover no-repeat,
    linear-gradient(135deg, #ffffff4f, #3f3f3f63); */
  background-position: center;
  color: var(--blanc-pur);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gris-moyen);
  font-size: 3rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
  margin-top: 5%;
}

.navbar i {
  color: var(--jaune-or);
  font-size: 80px;
}

.navbar p {
  font-size: 70px;
  margin: 5px;
  color: #ffffff; /* Nouvelle couleur de texte - blanc */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Ombre pour meilleure lisibilité */
  font-family: "Playfair Display", serif;
  font-style: oblique;
  font-weight: 600;
}
/* Contenu principal */
main {
  flex: 1;
  padding-bottom: 3rem;
}

.section-title {
  align-items: center;
  text-align: center;
  font-family: American Typewriter, serif;
  font-weight: 600;
  color: var(--bleu-marial);
  font-size: 3rem;
  font-weight: 700;
  color: var(--bleu-marial);
  margin-bottom: 15px;
  margin-top: 15px;
}

/* Cartes d'actualités améliorées */
.news-card {
  border: 1px solid var(--gris-moyen);
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
  background-color: var(--blanc-pur);
  position: relative;
}

.news-card:hover {
  border-color: var(--bleu-marial);
  box-shadow: 0 0 0 4px var(--bleu-clair);
}

.news-card img {
  transition: transform 0.5s ease;
}

.news-card:hover img {
  transform: scale(1.03);
}

.card-body {
  padding: 2rem;
}

.news-date {
  color: var(--gris-fonce);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.news-category {
  color: var(--bleu-marial);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.card-title {
  color: var(--bleu-marial);
  font-weight: 700;
  margin: 1rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.card-text {
  color: var(--gris-fonce);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Boutons améliorés */
.btn-marian {
  background-color: var(--bleu-marial);
  color: var(--blanc);
  border: none;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-marian:hover {
  background-color: var(--bleu-vierge);
  color: var(--blanc-pur);
}

.btn-marian i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-marian:hover i {
  transform: translateX(3px);
}

/* Titres section */
.col-12 h2 {
  text-align: center;
  align-items: center;
  color: var(--bleu-marial);
  font-weight: 700;
  font-size: 40px;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.gold-accent {
  color: #ffbb00af;
}

/* Grille d'actualités */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Pagination améliorée */
.pagination .page-item .page-link {
  color: var(--bleu-marial);
  border: 1px solid var(--gris-moyen);
  margin: 0 5px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
  background-color: var(--bleu-marial);
  border-color: var(--bleu-marial);
  color: var(--jaune-or);
}

.pagination .page-item:hover .page-link {
  border-color: var(--bleu-marial);
  color: var(--bleu-marial);
}

/* Pied de page amélioré */
.marian-footer {
  background-color: #1f2937;
  color: var(--blanc-pur);
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--bleu-vierge);
}

.marian-footer h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.marian-footer h5 i {
  color: var(--jaune-or);
  margin-right: 10px;
}

.marian-footer a {
  color: var(--blanc-pur);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.marian-footer a:hover {
  color: var(--jaune-or);
  transform: translateX(5px);
}

.marian-footer address {
  font-style: normal;
}

.marian-footer hr {
  border-color: rgba(255, 215, 0, 0.3);
  margin: 2rem 0;
}

/* Responsive */

@media (max-width: 768px) {
  .navbar {
    align-items: center;
    text-align: center;
    height: 400px;
    margin-top: 6rem;
  }

  .col-12 h2 {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadein {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/* Délais d'animation pour chaque carte */
.news-card:nth-child(1) {
  animation-delay: 0.1s;
}
.news-card:nth-child(2) {
  animation-delay: 0.3s;
}
.news-card:nth-child(3) {
  animation-delay: 0.5s;
}
.news-card:nth-child(4) {
  animation-delay: 0.7s;
}
.news-card:nth-child(5) {
  animation-delay: 0.9s;
}

/* Styles pour les vidéos dans les actualités */
.video-container {
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-video {
  width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 12px;
  background-color: #000;
  border: none;
  outline: none;
}

.news-video:focus {
  box-shadow: 0 0 0 3px var(--bleu-vierge);
}

/* ===========================================
   STYLES POUR LES VIDÉOS DES ACTUALITÉS
   (Identiques aux événements)
   =========================================== */

.news-video-container {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #000;
}

.news-video-container video {
  width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
  background: #000;
}

/* Overlay de lecture (identique aux événements) */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  border-radius: 8px;
}

.video-play-overlay:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.play-button {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: rgba(245, 158, 11, 0.9);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
}

.video-info {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-info i {
  font-size: 1.2rem;
}

/* Indicateur de chargement */
.video-loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Responsive pour les vidéos */
@media (max-width: 768px) {
  .video-container {
    margin: 0.8rem 0;
  }

  .news-video {
    max-height: 200px;
  }

  .news-video-container {
    margin: 0.5rem 0;
  }

  .news-video-container video {
    max-height: 250px;
  }

  .play-button {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
  }

  .video-info {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .news-video-container video {
    max-height: 200px;
  }

  .play-button {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .video-info {
    font-size: 0.9rem;
  }
}
