:root {
  --bleu-royal: #044aaf;
  --rouge-ecarlate: #ff0000;
  --gris-clair: #f5f5f5;
  --gris-fonce: #1a1a1a;
  --primary-blue: #1b2f8a;
  --dark-text: #000000;
  --light-blue: #3d95f0;
  --white: #ffffff;
  --yellow: #ffff00;
  --green: #009245;
}

.text-accent {
  color: var(--rouge-ecarlate) !important;
}

.badge a {
  text-decoration: none !important;
  color: #fff !important;
}

.text-royal {
  color: var(--bleu-royal) !important;
}

.bg-actu-detail {
  background-color: var(--white) !important;
  color: var(--dark-text) !important;
}

.bg-local,
.bg-royal {
  background-color: var(--bleu-royal) !important;
}

--rouge-ecarlate * {
  font-family: 'Poppins', sans-serif;
}

.bg-bleu-dauphin {
  background-color: var(--bleu-royal);
}
.text-bleu-dauphin {
  color: var(--bleu-royal);
}
.bg-orange-vif {
  background-color: var(--rouge-ecarlate);
}
.text-orange-vif {
  color: var(--rouge-ecarlate);
}
.bg-gris-clair {
  background-color: var(--gris-clair);
}

.navbar-brand img {
  height: 50px;
}

.audio-player-prominent {
  background: linear-gradient(135deg, var(--rouge-ecarlate), #044aaf);
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.live-indicator {
  background: #ff0000;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.emission-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.emission-card:hover {
  transform: translateY(-10px);
  border-color: var(--rouge-ecarlate);
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.2);
}

.animateur-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--rouge-ecarlate);
  object-fit: cover;
}

.participation-section {
  background: linear-gradient(135deg, var(--rouge-ecarlate), #044aaf);
  color: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.participation-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-participation {
  background: white;
  color: var(--rouge-ecarlate);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  margin: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn-participation:hover {
  background: var(--bleu-royal);
  color: white;
  transform: scale(1.05);
}

.auditeur-message {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-left: 5px solid var(--bleu-royal);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.auditeur-message::before {
  content: '"';
  font-size: 60px;
  color: var(--bleu-royal);
  position: absolute;
  top: -10px;
  left: 15px;
  opacity: 0.3;
}

.conseil-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.conseil-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.conseil-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--rouge-ecarlate), #044aaf);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  margin: 0 auto 20px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.section-title-community {
  font-weight: 800;
  color: var(--rouge-ecarlate);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title-community::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--bleu-royal), var(--rouge-ecarlate));
  border-radius: 2px;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--bleu-royal) !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--rouge-ecarlate) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-item.active > a {
  color: var(--rouge-ecarlate) !important;
}

.social-icons a {
  color: var(--bleu-royal);
  font-size: 20px;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--rouge-ecarlate);
  transform: scale(1.2);
}

footer {
  background-color: var(--gris-fonce);
  color: white;
}

/* Bouton scroll to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--rouge-ecarlate);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.scroll-top:hover {
  background: var(--bleu-royal);
  transform: scale(1.1);
}

/**Emissions - Grille Hebdomadaire **/
.program-schedule {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.schedule-header {
  background: linear-gradient(135deg, var(--bleu-royal), var(--rouge-ecarlate));
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 600;
}

.schedule-row {
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.schedule-row:hover {
  background: var(--bg-light);
}

.schedule-time {
  background: var(--light-blue);
  color: white;
  padding: 15px 0;
  text-align: center;
  font-weight: 600;
  min-width: 120px;
}

.schedule-content {
  padding: 15px;
  flex-grow: 1;
}

.program-title {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 5px;
}

.program-language {
  background: var(--rouge-ecarlate);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-right: 5px;
}

.program-type {
  background: var(--yellow);
  color: var(--dark-text);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Cards programme vedette */
.featured-program {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
  margin-bottom: 20px;
}

.featured-program:hover {
  transform: translateY(-10px);
  border-color: var(--rouge-ecarlate);
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.2);
}

.featured-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--rouge-ecarlate), #044aaf);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 15px;
}

/* Actualités */
.news-card {
  border-left: 4px solid var(--rouge-ecarlate);
  transition: all 0.3s ease;
}

/* Fixer la hauteur de l'image et gérer le crop */
.news-card img {
  height: 200px; /* Tu peux ajuster cette valeur (ex: 220px) */
  width: 100%;
  object-fit: cover; /* Coupe l'image pour remplir la zone sans déformer */
}

/* Optionnel : Limiter le nombre de lignes du titre pour éviter de trop grands écarts */
.news-card .card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limite à 2 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover {
  border-left-color: var(--primary-blue);
  background: var(--bg-light);
}

.news-date {
  color: var(--light-gray);
  font-size: 0.9rem;
}

.news-title {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.news-title:hover {
  color: var(--rouge-ecarlate);
}

/* Événements */
.event-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-date {
  background: var(--rouge-ecarlate);
  color: var(--white);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  margin-right: 20px;
  min-width: 80px;
}

.event-day {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.event-month {
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Cards et sections */
.card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--bleu-royal), var(--rouge-ecarlate));
  color: var(--white) !important;
  border-radius: 10px 10px 0 0 !important;
  font-weight: 600;
}

/** Timeline Eveènement détail **/
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-blue);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rouge-ecarlate);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary-blue);
}

.timeline-time {
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.timeline-content h5 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

/* Cards équipe */
.team-member {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
  text-align: center;
  height: 100%;
}

.team-member:hover {
  transform: translateY(-10px);
  border-color: var(--rouge-ecarlate);
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.2);
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--rouge-ecarlate);
  margin: 0 auto 20px;
  display: block;
  transition: all 0.3s ease;
}

.team-member:hover .member-photo {
  transform: scale(1.1);
  border-color: var(--bleu-royal);
}

.member-name {
  color: var(--bleu-royal);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.member-role {
  color: var(--rouge-ecarlate);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-bio {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.member-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.member-contact a {
  color: var(--bleu-royal);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.member-contact a:hover {
  color: var(--rouge-ecarlate);
  transform: scale(1.3);
}

/* Section recrutement */
.recruitment-section {
  background: linear-gradient(135deg, var(--rouge-ecarlate), #044aaf);
  color: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 50px 0;
}

.recruitment-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-recruitment {
  background: white;
  color: var(--rouge-ecarlate);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn-recruitment:hover {
  background: var(--bleu-royal);
  color: white;
  transform: scale(1.05);
}

/* Placeholder pour futurs membres */
.placeholder-member {
  background: var(--gris-clair);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  border: 3px dashed #ccc;
  transition: all 0.3s ease;
  height: 100%;
}

.placeholder-member:hover {
  border-color: var(--rouge-ecarlate);
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.placeholder-icon {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* Actualités */
.news-card {
  border-left: 4px solid var(--rouge-ecarlate) !important;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-left-color: var(--primary-blue) !important;
  background: var(--bg-light);
}

.news-date {
  color: var(--light-gray);
  font-size: 0.9rem;
}

.news-title {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.news-title:hover {
  color: var(--rouge-ecarlate);
}

/* Formulaire de contact */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.contact-form:hover {
  border-color: var(--rouge-ecarlate);
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--rouge-ecarlate);
  box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.15);
}

.btn-contact {
  background: linear-gradient(135deg, var(--rouge-ecarlate), #044aaf);
  color: white !important;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: linear-gradient(135deg, var(--bleu-royal), #0066cc);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(4, 74, 175, 0.3);
}

/* Cards d'information de contact */
.contact-info-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
  text-align: center;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-10px);
  border-color: var(--rouge-ecarlate);
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.2);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--rouge-ecarlate), #044aaf);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 35px;
  margin: 0 auto 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Carte Google Maps */
.map-container {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.map-container:hover {
  border-color: var(--rouge-ecarlate);
}

.map-embed {
  border-radius: 10px;
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Design Page 404 Dauphin FM --- */

.error-page {
  padding: 80px 0 100px; /* Donne de l'espace en haut et en bas */
  background-color: #f9f9f9; /* Un fond très légèrement gris pour détacher du blanc */
  text-align: center; /* Centre tout le contenu */
}

/* Le grand titre 404 */
.error-page .header {
  font-size: 10rem; /* Très gros */
  font-weight: 900;
  line-height: 1;
  color: #ce1212; /* Le rouge de votre entête */
  position: relative;
  display: inline-block;
  margin-bottom: 10px;

  /* Petit effet d'ombre portée pour donner du volume */
  text-shadow: 4px 4px 0px #0d1e38; /* Le bleu foncé du footer */

  /* Animation subtile de "battement" pour attirer l'oeil */
  animation: heartbeat 3s infinite ease-in-out;
}

/* Le sous-titre "Oups..." */
.error-page h4 {
  font-size: 2rem;
  font-weight: 700;
  color: #0d1e38; /* Bleu foncé */
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Le paragraphe de texte */
.error-page p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px; /* Empêche le texte d'être trop large sur grand écran */
  margin: 0 auto 40px auto; /* Centre le bloc de texte */
  line-height: 1.6;
}

/* Les boutons */
.error-page .btns {
  display: flex;
  justify-content: center;
  gap: 20px; /* Espace entre les deux boutons */
  flex-wrap: wrap;
}

/* Style spécifique pour tes boutons (surchage bootstrap si nécessaire) */
.error-page .btn-mnbf-primary {
  background-color: #ce1212;
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 50px; /* Boutons arrondis plus modernes */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #ce1212;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-page .btn-mnbf-primary:hover {
  background-color: #0d1e38; /* Devient bleu au survol */
  border-color: #0d1e38;
  transform: translateY(-2px); /* Monte légèrement au survol */
}

/* Animation Heartbeat (optionnel, donne vie à la page) */
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Responsive pour mobile --- */
@media (max-width: 768px) {
  .error-page .header {
    font-size: 6rem; /* Plus petit sur mobile */
  }
  .error-page h4 {
    font-size: 1.5rem;
  }
  .error-page .btns {
    flex-direction: column;
    gap: 10px;
  }
}
