/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

:root {
  --primary-color: #cf5300;    /* Orange principal des boutons */
  --primary-hover: #b84800;    /* Orange foncé au survol */
  --text-dark: #2c3e50;        /* Texte sombre */
  --text-light: #666;          /* Texte secondaire */
  --bg-light: #f9f9f9;         /* Fond clair */
  --section-padding: 4rem 0;
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

/* Carrousel modernisé */
.carousel-container {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 1400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding-top: 10;
}

.slide {
  flex: 0 0 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center 30%;
  padding-top: 1vh;
}

.subscribe-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white !important;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 20;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(207, 83, 0, 0.3);
}

/* Section articles */
.hot-articles-intro {
  text-align: center;
  padding: var(--section-padding);
  background: linear-gradient(to bottom right, #fef8f5, #fff);
}

.hot-articles-intro h2 {
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hot-articles-intro p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-thumbnail {
  height: 220px;
  overflow: hidden;
}

.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  color: var(--text-dark);
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.read-more {
  color: var(--primary-color) !important;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .slide img {
    height: 450px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .hot-articles-intro h2 {
    font-size: 2rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .subscribe-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
  }
}