/* ============================================
   ACTUALITÉS PAGE STYLES
   News/blog listing page
   ============================================ */

/* Hero Section */
.actualites-hero {
  padding: 160px 24px 80px;
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid background */
.actualites-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(115, 115, 115, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 115, 115, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.actualites-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;

  /* Gradient shimmer effect */
  background: linear-gradient(
    110deg,
    var(--grey-900) 0%,
    var(--grey-900) 40%,
    rgba(255, 107, 74, 0.4) 45%,
    rgba(255, 107, 74, 0.6) 50%,
    rgba(255, 107, 74, 0.4) 55%,
    var(--grey-900) 60%,
    var(--grey-900) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 200% center;
  }
  50% {
    background-position: 0% center;
  }
}

.actualites-hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--grey-600);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Actualités Container */
.actualites-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

/* Actualité Item - Card Style */
.actualite-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.actualite-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.actualite-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(23, 23, 23, 0.08);
  border-color: var(--grey-300);
}

.actualite-item:hover::before {
  transform: scaleX(1);
}

.actualite-date {
  font-size: 14px;
  color: var(--orange-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.actualite-date::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--orange-500);
  border-radius: 50%;
}

.actualite-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.actualite-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.actualite-item:hover .actualite-title,
.actualite-title a:hover {
  color: var(--orange-600);
}

.actualite-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-600);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Card Footer - Category and Read More */
.actualite-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
}

/* Category Tags */
.actualite-category {
  display: inline-block;
  font-size: 12px;
  color: var(--grey-600);
  background: var(--grey-100);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.category-reparations {
  background: rgba(255, 107, 74, 0.1);
  color: var(--orange-600);
}

.category-tech {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.category-entreprise {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.category-conseils {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
}

/* Read More Link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-500);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.read-more:hover {
  color: var(--orange-600);
  gap: 12px;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* Empty State (for future use) */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--grey-500);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
  color: var(--grey-500);
}

/* Category - Métiers */
.category-metiers {
  background: rgba(251, 146, 60, 0.1);
  color: #ea580c;
}

/* Category - Guide */
.category-guide {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

/* ============================================
   THUMBNAIL IMAGE SUPPORT
   ============================================ */

/* Card with thumbnail image */
.actualite-item.has-image {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.actualite-item.has-image .actualite-content {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Thumbnail image container */
.actualite-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: var(--grey-100);
}

.actualite-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.actualite-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.actualite-item:hover .actualite-image img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .actualites-hero {
    padding: 140px 24px 60px;
  }

  .actualites-container {
    padding: 60px 24px 80px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .actualite-item {
    padding: 24px;
  }

  .actualite-item.has-image {
    padding: 0;
  }

  .actualite-item.has-image .actualite-content {
    padding: 20px 24px 24px;
  }

  .actualite-image {
    height: 180px;
  }

  .actualite-item:hover {
    transform: translateY(-2px);
  }
}
