/* Styles personnalisés pour CFP WHITE */
/* Couleurs générales */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --white-color: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
}
/* Ajustement pour la navbar fixe */
body {
  padding-top: 70px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Style du navbar */
.navbar-dark.bg-primary {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navbar-brand img {
  transition: transform 0.3s ease;
}
.navbar-brand:hover img {
  transform: scale(1.05);
}
/* Style des cartes */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.card-title {
  color: var(--primary-color);
  font-weight: 600;
}
.card-img-top {
  height: 180px;
  object-fit: cover;
}
/* Style des boutons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}
/* Style du jumbotron */
.jumbotron {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 0.3rem;
  margin-bottom: 2rem;
}
.jumbotron h1 {
  color: var(--primary-color);
}
/* Style des sections */
section {
  margin-bottom: 3rem;
}
section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}
/* Style du footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white-color);
  padding: 2rem 0;
}
footer h5 {
  color: var(--white-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  display: inline-block;
}
footer a.text-white {
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a.text-white:hover {
  color: #ccc !important;
  text-decoration: underline;
}
/* Style des formulaires */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}
.form-label {
  font-weight: 500;
}
/* Style des badges */
.badge.bg-primary {
  background-color: var(--primary-color) !important;
}
/* Style des tableaux */
.table th {
  background-color: var(--light-gray);
  color: var(--primary-color);
}
/* Style des alertes */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}
/* Style des étiquettes de langue */
.fi {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}
/* Style pour les tableaux de bord */
.dashboard-card {
  text-align: center;
  border-radius: 10px;
  padding: 20px;
  background-color: var(--light-gray);
  margin-bottom: 20px;
}
.dashboard-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.dashboard-card h3 {
  font-size: 1.5rem;
  color: var(--dark-gray);
}
.dashboard-card p {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
}
/* Style pour les profils */
.profile-header {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Media queries */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  .jumbotron {
    padding: 1rem;
  }
  
  .card-img-top {
    height: 150px;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
}

/* Styles pour la section "À la une" */
.breaking-news {
    overflow: hidden;
}

.breaking-news-label {
    white-space: nowrap;
    border-radius: 4px;
}

.marquee-container {
    width: 100%;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.news-item {
    display: inline-block;
    color: #343a40;
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Mettre en pause l'animation au survol */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Styles pour la section "À la une" */
.breaking-news {
    overflow: hidden;
}

.breaking-news-label {
    white-space: nowrap;
    border-radius: 4px;
}

.marquee-container {
    width: 100%;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.news-item {
    display: inline-block;
    color: #343a40;
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Mettre en pause l'animation au survol */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Style pour la banderole */
.banner-container {
    margin-bottom: 20px;
}