/* ===================================== */
/* 📰 Fonts */
/* ===================================== */
/* 🎨 Declaration des polices personnalisees utilisees pour les titres et textes de news */@font-face {
  font-family: 'LazyDog';
  src: url('/assets/fonts/lazy_dog.ttf') format('truetype');
}

/* 🎨 Declaration des polices personnalisees utilisees pour les titres et textes de news */@font-face {
  font-family: 'OctoberCrow';
  src: url('/assets/fonts/October_Crow.ttf') format('truetype');

}


/* ===================================== */
/* 📰 Base Layout */
/* ===================================== */
/* 📰 Conteneur principal de la page news avec fond fixe et centrage du contenu */.news-container {
  margin: 5rem auto 0rem;
  padding: 0 20vw;
  color: #f1f1f1;
  text-align: center;

  z-index: 0;
  padding-bottom: 50px;
}

.news-bg {
  position: fixed;
  inset: 0;
background: url('/assets/images/FONDECRAN4.webp') no-repeat center center;
  background-size: cover;
  z-index: -1;
  animation: fantomeFloat 10s ease-in-out infinite;
  will-change: transform, background-position;
  pointer-events: none;
}

@keyframes fantomeFloat {
  0%   { transform: scale(1); background-position: 50% 50%; }
  50%  { transform: scale(1.05); background-position: 48% 52%; }
  100% { transform: scale(1); background-position: 50% 50%; }
}


/* ===================================== */
/* 📰 Headings */
/* ===================================== */
/* 📰 Conteneur principal de la page news avec fond fixe et centrage du contenu */.news-container h1 {
  text-align: center;
  color: #1cce5b;
  font-size: 3rem;
  padding-top: 50px;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 3px #000;
  font-weight: lighter;
  font-family: OctoberCrow, sans-serif;
  text-shadow: 0 0 10px #1cce5b;
}


/* ===================================== */
/* 📰 News Cards */
/* ===================================== */
/* 🃏 Carte de nouvelle avec bordure et ombre portee */.news-card {
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  background: #110024d9;
  overflow: hidden;
  padding: 2rem;
  margin-bottom: 3rem;
}

/* 🃏 Carte de nouvelle avec bordure et ombre portee */.news-card:hover {
  transform: scale(1.05);
  transition: ease-in-out 1s;
  box-shadow: 0 10px 25px #090013;
}

/* 🃏 Carte de nouvelle avec bordure et ombre portee */.news-card img {
  width: 70%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

/* 🃏 Carte de nouvelle avec bordure et ombre portee */.news-card h2 {
  font-size: 1.3rem;
  font-weight: lighter;
  color: #1cce5b;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 2px #000;
}

/* 🃏 Carte de nouvelle avec bordure et ombre portee */.news-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ddd;
  margin-bottom: 0.7rem;
  text-align: center;
}


/* ===================================== */
/* 📰 Social Media Icons */
/* ===================================== */
/* 📢 Section des icones vers reseaux sociaux sous chaque news */.news-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* 📢 Section des icones vers reseaux sociaux sous chaque news */.news-socials a img {
  height: 70px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

/* 📢 Section des icones vers reseaux sociaux sous chaque news */.news-socials a img:hover {
  transform: scale(1.15);
}


/* ===================================== */
/* 📰 Animations */
/* ===================================== */
/* 🎞️ Animation pour faire apparaitre les elements en douceur vers le haut */@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===================================== */
/* 🧲 Animations slide-in */
/* ===================================== */

/* 🧲 Animation de glissement depuis la gauche */.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

/* 🧲 Animation de glissement depuis la droite */.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

/* 🧲 Animation de glissement depuis le bas */.slide-in-bottom {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* ✅ Classe active qui ramene les elements a l’etat normal (visible) */.slide-in-active {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) !important;
}
/* Transition delay dynamique */
/* 🃏 Carte de nouvelle avec bordure et ombre portee */.news-card {
  transition-delay: var(--delay, 0ms);
}





/* 🔼 Bouton retour en haut specifique a la page news */#back-to-top {
  position: fixed;
      bottom: 40px;
      right: 60px;
  background: #1cce5b;
  color: #090013;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  transition: opacity 0.3s ease;
}

/* 🔼 Bouton retour en haut specifique a la page news */#back-to-top:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* ===================================== */
/* 📱 Responsive Design pour Mobile */
/* ===================================== */

@media screen and (max-width: 1024px) {
  .news-container {
    padding: 0 8vw;
  }

  .news-card {
    padding: 1.5rem;
  }

  .news-card img {
    width: 80%;
    max-height: 280px;
  }
}

@media screen and (max-width: 768px) {
  .news-container {
    padding: 0 5vw;
  }

  .news-container h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .news-card {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .news-card h2 {
    font-size: 1.1rem;
  }

  .news-card p {
    font-size: 1rem;
  }

  .news-card img {
    width: 100%;
    max-height: 200px;
  }

  .news-socials a img {
    height: 50px;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .news-container {
    padding: 0 1rem;
  }

  .news-container h1 {
    font-size: 1.8rem;
    padding-top: 40px;
  }

  .news-card h2 {
    font-size: 1rem;
  }

  .news-card p {
    font-size: 0.95rem;
  }

  .news-card img {
    max-height: 180px;
  }

  .news-socials {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .news-socials a img {
    height: 40px;
  }
}
