/* ============================================
   APPSM - PAGE ACTUALITÉS PREMIUM
   Fichier: css/actualites.css
============================================ */

/* ============================================
   1. SECTIONS
============================================ */
.act-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 120px;
}

.act-section-white {
  background: var(--white);
}

.act-section-gray {
  background: linear-gradient(135deg, #ede7f2 0%, #e4daee 100%);
}

.act-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.act-section-gray::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 45, 142, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.act-intro-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.act-intro-header .section-desc strong {
  color: var(--purple);
  font-weight: 700;
}

/* ============================================
   2. LOADER
============================================ */
.act-loader {
  text-align: center;
  padding: 80px 20px;
  color: var(--purple);
}

.loader-spinner {
  display: inline-block;
  width: 60px;
  height: 60px;
  border: 5px solid rgba(91, 45, 142, 0.1);
  border-left-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.act-loader p {
  font-size: 15px;
  color: var(--gray-500);
  margin: 0;
  font-weight: 500;
}

/* ============================================
   3. GRILLE 3 CARTES
============================================ */
.actualites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.actualite-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 30, 92, 0.12);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(91, 45, 142, 0.05);
  position: relative;
}

.actualite-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(74, 30, 92, 0.25);
  border-color: transparent;
}

/* ============================================
   4. PHOTO
============================================ */
.actualite-photo-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, #4a1e5c 100%);
}

.actualite-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.actualite-card:hover .actualite-photo-wrapper img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.actualite-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(74, 30, 92, 0) 0%,
    rgba(74, 30, 92, 0.3) 60%,
    rgba(74, 30, 92, 0.9) 100%
  );
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.actualite-card:hover .actualite-overlay {
  opacity: 1;
}

/* Badge catégorie */
.actualite-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  z-index: 3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  font-family: "Poppins", sans-serif;
}

.actualite-badge i {
  font-size: 12px;
}

.actualite-badge-activites {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
}

.actualite-badge-campagnes {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
}

.actualite-badge-journees {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* Icône flottante décorative */
.actualite-icon-float {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px) rotate(-10deg);
}

.actualite-card:hover .actualite-icon-float {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.actualite-card[data-category="activites"]:hover .actualite-icon-float {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 8px 20px rgba(91, 45, 142, 0.5);
}

.actualite-card[data-category="campagnes"]:hover .actualite-icon-float {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 8px 20px rgba(232, 103, 42, 0.5);
}

.actualite-card[data-category="journees"]:hover .actualite-icon-float {
  background: #3498db;
  border-color: #3498db;
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
}

/* ============================================
   5. CONTENU
============================================ */
.actualite-content {
  padding: 25px 25px 30px;
  border-top: 4px solid var(--orange);
  transition: border-color 0.4s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.actualite-content::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--purple);
  transition: width 0.6s ease;
}

.actualite-card:hover .actualite-content::before {
  width: 100%;
}

/* Label catégorie */
.actualite-category-label {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 3px 12px;
  background: rgba(232, 103, 42, 0.1);
  border-radius: 50px;
  align-self: flex-start;
}

.actualite-card[data-category="activites"] .actualite-category-label {
  color: var(--purple);
  background: rgba(91, 45, 142, 0.1);
}

.actualite-card[data-category="journees"] .actualite-category-label {
  color: #2980b9;
  background: rgba(52, 152, 219, 0.1);
}

.actualite-title {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.4s ease;
}

.actualite-card:hover .actualite-title {
  color: var(--purple);
}

.actualite-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.actualite-date i {
  color: var(--orange);
  font-size: 12px;
}

.actualite-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
}

/* ============================================
   6. BOUTON ACTION
============================================ */
.actualite-action {
  margin-top: auto;
}

.actualite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(232, 103, 42, 0.4);
  font-family: "Poppins", sans-serif;
}

.actualite-btn:hover {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(91, 45, 142, 0.5);
}

.actualite-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.actualite-btn:hover i {
  transform: translateX(5px);
}

/* Bouton désactivé */
.actualite-btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: rgba(91, 45, 142, 0.1);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: not-allowed;
  border: 2px dashed rgba(91, 45, 142, 0.3);
  font-family: "Poppins", sans-serif;
}

.actualite-btn-disabled i {
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================
   7. NOTE ARCHIVES
============================================ */
.act-archives-note {
  max-width: 1000px;
  margin: 50px auto 0;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px 35px;
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.08) 0%,
    rgba(232, 103, 42, 0.05) 100%
  );
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(91, 45, 142, 0.2);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.act-archives-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(91, 45, 142, 0.3);
  transition: all 0.4s ease;
}

.act-archives-note:hover .act-archives-icon {
  transform: rotate(-10deg) scale(1.1);
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
}

.act-archives-text {
  flex: 1;
  min-width: 250px;
}

.act-archives-text h4 {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 5px 0;
}

.act-archives-text p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

.act-archives-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 25px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(232, 103, 42, 0.4);
  font-family: "Poppins", sans-serif;
  flex-shrink: 0;
}

.act-archives-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(232, 103, 42, 0.5);
}

/* ============================================
   8. RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .actualites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .act-section {
    padding: 60px 0;
  }

  .actualites-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .actualite-photo-wrapper {
    height: 220px;
  }

  .act-archives-note {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .act-archives-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .actualite-title {
    font-size: 16px;
  }

  .actualite-photo-wrapper {
    height: 200px;
  }
}
