/* CSS pour la page @actualites.php */

/* ===== VARIABLES CSS AVEC DÉGRADÉS PARTOUT ===== */
:root {
  --bleu-nuit: #1a237e;
  --rouge-nuit: #b71c1c;
  --blanc: #ffffff;
  --gris-clair: #f5f5f5;
  --gris-fonce: #424242;
  --bleu-clair: #3f51b5;
  --rouge-clair: #e53935;
  --bleu-gradient: linear-gradient(
    135deg,
    var(--bleu-nuit) 0%,
    var(--bleu-clair) 100%
  );
  --rouge-gradient: linear-gradient(
    135deg,
    var(--rouge-nuit) 0%,
    var(--rouge-clair) 100%
  );
  --mixte-gradient: linear-gradient(
    135deg,
    var(--bleu-nuit) 0%,
    var(--rouge-nuit) 100%
  );
  --mixte-inverse: linear-gradient(
    135deg,
    var(--rouge-nuit) 0%,
    var(--bleu-nuit) 100%
  );
  --bleu-light: linear-gradient(135deg, #e8eaf6 0%, #f5f5f5 100%);
  --rouge-light: linear-gradient(135deg, #ffebee 0%, #f5f5f5 100%);
  --blanc-gradient: linear-gradient(135deg, var(--blanc) 0%, #fafafa 100%);
  --shadow: 0 5px 15px rgba(26, 35, 126, 0.1);
  --shadow-rouge: 0 5px 15px rgba(183, 28, 28, 0.1);
  --shadow-hover: 0 15px 30px rgba(26, 35, 126, 0.2);
  --shadow-rouge-hover: 0 15px 30px rgba(183, 28, 28, 0.2);
  --shadow-xl: 0 25px 50px rgba(26, 35, 126, 0.3);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --border-radius: 12px;
}

/* Bannière principale */
.page-banner {
  background: linear-gradient(
      135deg,
      rgba(26, 35, 126, 0.9) 0%,
      rgba(183, 28, 28, 0.8) 100%
    ),
    url("../media/slide2.png")
      center/cover;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--blanc);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.banner-content p {
  font-size: 1.5rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Contenu principal des actualités */
.actualites-main {
  padding: 80px 0;
  background: var(--gris-clair);
}

/* ===== CARROUSEL FEATURED ARTICLES ===== */
.featured-carousel-section {
  margin-bottom: 60px;
  background: var(--blanc);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.carousel-title {
  font-size: 2.2rem;
  color: var(--bleu-nuit);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.carousel-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--rouge-gradient);
  border-radius: 2px;
}

.carousel-controls {
  display: flex;
  gap: 15px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bleu-gradient);
  color: var(--blanc);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.featured-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  width: 100%;
}

.featured-article {
  min-width: 100%;
  display: none;
  position: relative;
  height: 500px;
  border-radius: 15px;
  overflow: hidden;
}

.featured-article.active {
  display: block;
}

.featured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-article:hover .featured-image img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(26, 35, 126, 0.95) 0%,
    rgba(26, 35, 126, 0.7) 50%,
    transparent 100%
  );
  z-index: 2;
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px;
  z-index: 3;
  color: var(--blanc);
}

.featured-category {
  display: inline-block;
  padding: 8px 20px;
  background: var(--rouge-gradient);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--blanc);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.featured-excerpt {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 25px;
  line-height: 1.6;
  max-width: 700px;
}

.featured-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  font-size: 1rem;
  opacity: 0.9;
}

.featured-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: var(--blanc);
  color: var(--bleu-nuit);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.featured-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
  background: var(--gris-clair);
}

.featured-btn i {
  transition: transform 0.3s ease;
}

.featured-btn:hover i {
  transform: translateX(5px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--bleu-gradient);
  width: 40px;
  border-radius: 6px;
}

.dot:hover {
  background: var(--rouge-gradient);
}

/* ===== SECTION TOUTES LES ACTUALITÉS ===== */
.all-actualites-section {
  background: var(--blanc);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.actualites-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Bloc listant les actualités */
.all-actualites {
  background: var(--blanc);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.section-title {
  font-size: 2.2rem;
  color: var(--bleu-nuit);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--rouge-gradient);
  border-radius: 2px;
}

/* Filtres */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.filter-btn {
  background: var(--gris-clair);
  color: var(--gris-fonce);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.filter-btn:hover {
  background: var(--bleu-nuit);
  color: var(--blanc);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: var(--rouge-gradient);
  color: var(--blanc);
  box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}

/* Grille d’actualités */
.actualite-card {
  background: var(--blanc);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}
/* Grille 3x3 desktop, mobile: seulement les actualités récentes */
.actualites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
/* Masquer la sidebar sur mobile */
.sidebar {
  display: block;
}
/* Afficher la grille et masquer la sidebar ET afficher uniquement les actualités récentes en mobile */
@media (max-width: 900px) {
  .actualites-layout {
    flex-direction: column;
  }
  .sidebar {
    display: none;
  }
  .actualites-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .actualite-card {
    display: none;
  }
  /* Afficher seulement les 4 plus récentes actus en mobile */
  .actualite-card.recente {
    display: block;
  }
}
.actualite-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.actualite-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.actualite-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.actualite-card:hover .actualite-image img {
  transform: scale(1.1);
}
.actualite-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--rouge-gradient);
  color: var(--blanc);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(183, 28, 28, 0.3);
}
.actualite-content {
  padding: 25px;
}
.actualite-category {
  display: inline-block;
  background: var(--bleu-nuit);
  color: var(--blanc);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.actualite-title {
  font-size: 1.3rem;
  color: var(--bleu-nuit);
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}
.actualite-excerpt {
  color: var(--gris-fonce);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.actualite-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--gris-fonce);
}
.actualite-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.actualite-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rouge-nuit);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.actualite-link:hover {
  color: var(--bleu-nuit);
  gap: 12px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.pagination-btn {
  background: var(--gris-clair);
  color: var(--gris-fonce);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}
.pagination-btn:hover {
  background: var(--bleu-nuit);
  color: var(--blanc);
  transform: translateY(-2px);
}
.pagination-btn.active {
  background: var(--rouge-gradient);
  color: var(--blanc);
  box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}
.pagination-btn.next {
  width: auto;
  padding: 0 20px;
  border-radius: 25px;
  gap: 8px;
}

/* Barre latérale */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-title {
  font-size: 1.4rem;
  color: var(--bleu-nuit);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 600;
}
.sidebar-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--rouge-gradient);
  border-radius: 2px;
}

/* Actualités récentes */
.recent-actualites {
  background: var(--blanc);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.recent-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}
.recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recent-item:hover {
  transform: translateX(5px);
}
.recent-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
}
.recent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.recent-item:hover .recent-image img {
  transform: scale(1.1);
}
.recent-content h4 {
  font-size: 0.95rem;
  color: var(--bleu-nuit);
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 600;
}
.recent-date {
  font-size: 0.8rem;
  color: var(--rouge-nuit);
  font-weight: 500;
}

/* Bloc catégories */
.categories-sidebar {
  background: var(--blanc);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.categories-list {
  list-style: none;
}
.categories-list li {
  margin-bottom: 12px;
}
.categories-list li:last-child {
  margin-bottom: 0;
}
.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gris-fonce);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.categories-list li:last-child a {
  border-bottom: none;
}
.categories-list a:hover {
  color: var(--rouge-nuit);
  transform: translateX(5px);
}
.categories-list span {
  background: var(--gris-clair);
  color: var(--gris-fonce);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Section d'inscription newsletter */
.newsletter-section {
  padding: 100px 0;
  background: var(--mixte-gradient);
  color: var(--blanc);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: gradientShift 6s ease infinite;
  background-size: 200% 200%;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--blanc) 0%, #e3f2fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.cta-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.9;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  padding: 15px 30px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.newsletter-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}
.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}
.newsletter-form button {
  background: var(--rouge-gradient);
  color: var(--blanc);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.newsletter-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Animation pour apparitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive pour @actualites.php */
@media (max-width: 1100px) {
  .actualites-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sidebar {
    order: -1;
  }
  .recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .recent-item {
    flex-direction: column;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
  }
  .recent-image {
    width: 100%;
    height: 150px;
  }
}
@media (max-width: 768px) {
  .page-banner {
    padding: 100px 0 60px;
  }
  .banner-content h1 {
    font-size: 2.5rem;
  }
  .banner-content p {
    font-size: 1.2rem;
  }
  .actualites-main {
    padding: 60px 0;
  }
  .all-actualites {
    padding: 25px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .actualites-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    justify-content: center;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  /* Carrousel responsive */
  .featured-article {
    height: 400px;
  }
  
  .featured-title {
    font-size: 2rem;
  }
  
  .featured-excerpt {
    font-size: 1rem;
  }
  
  .featured-content {
    padding: 30px;
  }
  
  .carousel-controls {
    display: none; /* Masquer sur mobile, utiliser swipe */
  }
  
  .carousel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 576px) {
  .page-banner {
    padding: 80px 0 40px;
  }
  .banner-content h1 {
    font-size: 2rem;
  }
  .banner-content p {
    font-size: 1rem;
  }
  .all-actualites {
    padding: 20px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .actualite-content {
    padding: 20px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  
  /* Carrousel mobile */
  .featured-article {
    height: 350px;
  }
  
  .featured-title {
    font-size: 1.5rem;
  }
  
  .featured-excerpt {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .featured-content {
    padding: 20px;
  }
  
  .featured-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .featured-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .carousel-dots {
    gap: 8px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
  
  .dot.active {
    width: 30px;
  }
}

