.main-prom {
  margin-bottom: 3rem;
}

/* =========================================
   BANNER — FORMATIONS
========================================= */

.promotion-banner {
  position: relative;
  width: 100%;
  min-height: 350px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: url(../images/alumini-banner.png) center / cover no-repeat;
}

/* =========================================
   OVERLAY
========================================= */

.promotion-banner-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.55)
  );

  z-index: 1;
}

/* =========================================
   TITRE
========================================= */

.promotion-banner-content {
  position: relative;
  z-index: 2;

  text-align: center;
  color: #fff;
}

.promotion-banner h1 {
  margin: 0;

  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.header {
  padding: 40px 0;
  text-align: start;
}

.header h1 {
  margin: 0 0 1rem;

  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;

  color: #0f172a;
}

.header h1 span {
  background: linear-gradient(135deg, #00a8a8, #ff8a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header p {
  max-width: 700px;

  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;

  color: #64748b;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  font-size: 16px;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--on-surface-variant);
}

/* Promotion Grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 1rem 0 4rem;
}

.promo-card {
  background: var(--surface-container-lowest);
  border-radius: 1rem;
  border: 1px solid rgba(219, 194, 176, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

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

.promo-header {
  padding: 24px 20px 16px;
}

.promo-header h3 {
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 8px;
}

.badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 1rem;
  text-transform: uppercase;
}

.badge-ongoing {
  background: rgba(32, 201, 151, 0.3);
  color: #20c997;
}

.badge-finished {
  background: rgb(103, 5, 141, 0.3);
  color: #67058d;
}

.promo-count {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--gray-600);
}

.promo-image {
  height: 200px;
  margin: 0;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
}

.promo-footer {
  padding: 0 24px 24px;
  margin-top: auto;
}

.cta-banner {
  padding: 2rem;
  border-radius: 1rem;
}

.cta-banner h2 {
  font-size: 18px;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== HERO ===== */
.hero-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.header {
  flex: 1;
  min-width: 250px;
}

.hero-section p {
  font-size: 14px;
  color: var(--gray-500);
}

.search-container {
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 300px;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  background: var(--surface-container-lowest);
  font-size: 16px;
  outline: none;
}

/* ===== PROMOTION GRID ===== */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr; /* MOBILE: 1 colonne <640px */
  gap: 15px;
  padding: 1rem 0 4rem;
}

/* ===== PROMO CARD ===== */
.promo-card {
  background: var(--surface-container-lowest);
  border-radius: 1rem;
  border: 1px solid rgba(219, 194, 176, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.promo-header {
  padding: 24px 20px 16px;
  position: relative;
}

.badge {
  position: absolute;
  top: 24px;
  right: 20px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 1rem;
  text-transform: uppercase;
}

.badge-finished {
  background: rgba(103, 5, 141, 0.3);
  color: #67058d;
}

.promo-image {
  height: 200px;
  margin: 0;
  border-radius: 0 0 1rem 1rem;
  width: 100%;
  object-fit: cover;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--gradient-main);
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: white;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: 18px;
  font-weight: 800;
  flex: 1;
}

.btn-cta {
  background: white;
  color: var(--brand-dark);
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* =========================================================
   RESPONSIVE — REGROUPEMENT DES BREAKPOINTS
   ========================================================= */

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    align-items: flex-end;
  }

  .search-container {
    align-self: center;
    width: 300px;
    flex-shrink: 0;
  }
}

@media (max-width: 425px) {
  .search-container {
    flex: none;
  }
}

/* MINI TABLETTE: 2 colonnes 640px - 767px */

@media (min-width: 640px) and (max-width: 900px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TABLETTE + MINI DESKTOP: 3 colonnes 768px - 1199px */

@media (min-width: 901px) and (max-width: 1199px) {
  .promo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DESKTOP: 4 colonnes 1200px - 1919px */

@media (min-width: 1200px) and (max-width: 1919px) {
  .promo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .promo-card:not(:nth-child(4n + 1)) {
    border-left: 2px solid var(--gray-200);
  }
}

/* 4K: 5 colonnes >=1920px */

@media (min-width: 1920px) {
  .promo-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1800px; /* évite que ça fasse 5 cartes toutes fines */
    margin: 0 auto;
  }

  .promo-card:not(:nth-child(5n + 1)) {
    border-left: 2px solid var(--gray-200);
  }
}

/* ===== BORDURES ===== */
/* 2 COL: bordure sur colonne 2 */

@media (min-width: 640px) and (max-width: 767px) {
  .promo-card:not(:nth-child(2n + 1)) {
    border-left: 2px solid var(--gray-200);
  }
}

/* 3 COL: bordure sur colonne 2 et 3 */

@media (min-width: 768px) and (max-width: 1199px) {
  .promo-card:not(:nth-child(3n + 1)) {
    border-left: 2px solid var(--gray-200);
  }
}

@media (max-width: 640px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .promotion-banner {
    min-height: 250px;
  }

  .header h1 {
    font-size: 2.2rem;
  }

  .header p {
    font-size: 0.95rem;
  }

  .header p br {
    display: none;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.9rem;
  }

  .header p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}