.hero {
  position: relative;
  min-height: 85vh;
  background-image: url('/images/home-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 140px;
  background: #fff;
  clip-path: polygon(0 0, 100% 55%, 100% 100%, 0 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.hero-content h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-content p {
  color: #fff;
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.6;
  opacity: 0.92;
}

.hero .btn {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: background-color 0.3s, border-radius 0.3s;
}

.hero .btn:hover {
  border-radius: 30px;
  background-color: #c2185b;
}

.hero .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.4s;
}

.hero .btn:hover::after {
  left: 0;
}

.categories-section {
  position: relative;
  padding: 80px 0 60px;
  margin-top: -20px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: var(--color-cta);
  transform: rotate(45deg);
  margin: 16px auto 0;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin-inline: auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
  border-radius: 8px;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-cta);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border: 2px solid var(--color-brand);
  transform: rotate(45deg);
}

.category-icon svg {
  transform: rotate(-45deg);
  width: 24px;
  height: 24px;
}

.category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.articles-section {
  padding: 40px 0 80px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.article-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.article-card.featured .article-card-img {
  height: 100%;
  min-height: 320px;
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.article-card-body {
  padding: 24px;
}

.article-card-cat {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-cta);
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-card-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-card-body h3 a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card-body h3 a:hover {
  color: var(--color-cta);
}

.article-card-excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-card-time {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tendances-section {
  padding: 80px 0;
  background: var(--color-brand);
  position: relative;
  color: #fff;
}

.tendances-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-brand);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.tendances-section h2,
.tendances-section p,
.tendances-section td,
.tendances-section th,
.tendances-section span,
.tendances-section strong {
  color: #fff;
}

.tendances-section .section-header::after {
  background: var(--color-cta);
}

.tendances-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.tendances-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tendances-table td {
  padding: 14px 16px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tendances-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.tendances-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 24px;
  line-height: 1.6;
}

.gallery-section {
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 16px;
}

.gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-item:nth-child(4) {
  grid-column: 2 / 4;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: box-shadow 0.2s;
}

.gallery-img:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.budget-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.budget-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.budget-item:hover {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.budget-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 4px;
}

.budget-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1.6;
  margin-bottom: 8px;
}

.budget-tip {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.newsletter-section {
  padding: 80px 0;
  background: var(--color-brand);
  position: relative;
  color: #fff;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-brand);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.newsletter-section h2,
.newsletter-section p,
.newsletter-section span,
.newsletter-section strong,
.newsletter-section label {
  color: #fff;
}

.newsletter-section .section-header::after {
  background: var(--color-cta);
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  border-color: var(--color-cta);
}

.newsletter-btn {
  background: var(--color-cta);
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: var(--font-main);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.newsletter-btn:hover {
  background: #c2185b;
}

.newsletter-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.newsletter-btn.loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  animation: diamond-pulse 0.8s ease-in-out infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes diamond-pulse {
  0% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(225deg) scale(0.6); }
  100% { transform: rotate(405deg) scale(1); }
}

.newsletter-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  line-height: 1.6;
  margin-bottom: 0;
}

.newsletter-feedback {
  margin-top: 16px;
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
  min-height: 24px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }

  .hero::after {
    height: 80px;
    clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .categories-section,
  .articles-section,
  .gallery-section,
  .budget-section {
    padding: 50px 0;
  }

  .tendances-section,
  .newsletter-section {
    padding: 60px 0;
  }

  .tendances-section::before,
  .newsletter-section::before {
    height: 50px;
    top: -50px;
  }

  .categories-grid,
  .articles-grid,
  .budget-grid {
    grid-template-columns: 1fr;
  }

  .article-card.featured {
    grid-template-columns: 1fr;
  }

  .article-card.featured .article-card-img {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }

  .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .gallery-item:nth-child(4) {
    grid-column: auto;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }

  .tendances-table th,
  .tendances-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
  }

  .hero::after {
    height: 60px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:first-child {
    grid-column: auto;
  }

  .gallery-item:nth-child(4) {
    grid-column: auto;
  }

  .gallery-img {
    height: 220px;
  }
}