/* =====================
   Scroll automatique
   ===================== */
.scroll-wrapper {
  overflow: hidden;
  padding-top: 20px; /* espace avant le scroll */
}

.scroll-container {
  display: flex;
  flex-direction: column;
  animation: scroll-up 40s linear infinite;
}

.scroll-item {
  margin-bottom: 1rem;
}

@keyframes scroll-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); } 
}

/* =====================
   Titre principal du hero
   ===================== */
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  text-align: center;

  background: linear-gradient(90deg, #114d8a, #3a5e91);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* lisibilité sur mobile */
  transition: transform 0.3s ease;
}

/* Effet léger au survol desktop */
.hero-title:hover {
  transform: scale(1.05);
}

/* Ligne décorative animée sous le titre */
.hero-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #a15e5e, #739dc7);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  animation: slide-line 1.5s infinite alternate;
}

@keyframes slide-line {
  0% { transform: translateX(-20%); }
  100% { transform: translateX(20%); }
}

/* =====================
   Hero image
   ===================== */
.hero-img {
  width: 100%;
  min-height: 400px; /* augmente la hauteur */
  object-fit: cover; /* l'image remplit tout le conteneur */
  border-radius: 0.3rem;
  transition: transform 0.3s ease;
}

.hero-card {
  display: flex;
  flex-direction: column;
  min-height: 400px; /* plus d’espace pour image + texte */
}

@media (max-width: 768px) {
  .hero-img { height: 400px; }
  .hero-card { min-height: auto; }
}

@media (max-width: 480px) {
  .hero-img { height: 300px; }
  .hero-card { min-height: auto; }
}



/* =====================
   Cartes d’actualités
   ===================== */
.card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-radius: 0.3rem;
  
}

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

.actualite-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.3rem;
  transition: transform 0.3s ease;
}

/* =====================
   Titres et textes
   ===================== */
.card-title {
  font-size: 1.2rem;
  color: #114d8a;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}

.text-muted.small {
  font-size: 0.8rem;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-img { height: 200px; }
  .actualite-img { height: 150px; }
  .card-title { font-size: 1rem; }
  .card-text { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-img { height: 180px; }
  .actualite-img { height: 120px; }
  .card-title { font-size: 0.95rem; }
  .card-text { font-size: 0.85rem; }
}

.left-border-column {
  border-right: 1.5px solid #4578c0;
  height: 100%; /* prend toute la hauteur disponible dans la row */
  display: flex;
  flex-direction: column;
}
.col-12.col-md-9 {
  display: flex;
  flex-direction: column;
}
.row.full-height {
  display: flex;
  align-items: stretch; /* force toutes les colonnes à avoir la même hauteur */
}

.left-border-column {
  border-right: 1.5px solid #4578c0;
  height: 100%; /* prend toute la hauteur disponible dans la row */
  display: flex;
  flex-direction: column;
}
