/* ==============================================================
   PROMO FETE DU TRAVAIL 1er MAI 2026 - CN Business Solution
   Fichier: css/promo-fete-travail.css
   ============================================================== */

/* --- BANNIERE FIXE EN HAUT DE PAGE --- */
.promo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, #9E1E1E 0%, #CC2828 50%, #B52020 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 5%;
  height: 48px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(150,20,20,0.55);
  /* PAS de transition au chargement pour eviter la disparition */
}
.promo-banner.is-hiding {
  transition: transform 0.35s ease;
  transform: translateY(-100%);
}

.promo-banner-left {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}
.promo-banner-icon {
  font-size: 1rem; flex-shrink: 0; opacity: 0.9;
  color: #ffd080;
}
.promo-banner-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-banner-text strong { font-weight: 700; color: #ffd080; }

/* Compte a rebours */
.promo-banner-center {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: rgba(0,0,0,0.28); border-radius: 8px; padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.12);
}
.countdown-label {
  font-size: 0.7rem; opacity: 0.80; text-transform: uppercase; letter-spacing: 0.07em;
  white-space: nowrap;
}
.promo-countdown { display: flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.cd-unit { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cd-val { font-size: 0.95rem; font-weight: 800; min-width: 22px; text-align: center; }
.cd-lbl { font-size: 0.52rem; opacity: 0.72; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1px; }
.cd-sep { font-size: 0.95rem; font-weight: 700; opacity: 0.55; margin-bottom: 8px; }

/* Bouton CTA + fermer */
.promo-banner-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.promo-cta-btn {
  background: #fff; color: #9E1E1E; font-weight: 700; font-size: 0.78rem;
  padding: 6px 16px; border-radius: 20px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.promo-cta-btn:hover { background: #ffd080; color: #7a1515; transform: scale(1.04); }
.promo-banner-close {
  background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1rem;
  cursor: pointer; padding: 4px 6px; line-height: 1; flex-shrink: 0;
  transition: color 0.2s, transform 0.2s; display: flex; align-items: center;
}
.promo-banner-close:hover { color: #fff; transform: rotate(90deg); }

/* Decale body + navbar */
body.promo-active { padding-top: 48px; }
body.promo-active .navbar { top: 48px; }


/* --- SECTION PROMO FETE DU TRAVAIL (index.html) --- */
.promo-ft-section {
  background: linear-gradient(160deg, #0a1a0e 0%, #140404 50%, #1a0808 100%);
  position: relative; overflow: hidden; padding: 90px 5% 80px;
}
.promo-ft-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 45%, rgba(204,40,40,0.24) 0%, transparent 55%),
    radial-gradient(ellipse at 5%  85%, rgba(30,140,58,0.10) 0%, transparent 50%);
}
.promo-ft-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px,
    transparent 1px, transparent 38px
  );
}
.promo-ft-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }

/* En-tete */
.promo-ft-header { text-align: center; margin-bottom: 52px; }

.promo-ft-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(204,40,40,0.25), rgba(204,40,40,0.1));
  border: 1px solid rgba(204,40,40,0.35);
  color: #ff9090; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 20px; border-radius: 30px; margin-bottom: 20px;
  animation: pulseBadge 2.5s ease-in-out infinite;
}
.promo-ft-eyebrow i { color: #ff7070; font-size: 0.7rem; }
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,40,40,0.35); }
  50%       { box-shadow: 0 0 0 10px rgba(204,40,40,0); }
}

.promo-ft-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 900; color: #fff; line-height: 1.12; margin-bottom: 18px;
}
.promo-ft-title .accent-red   { color: #ff5a5a; }
.promo-ft-title .accent-gold  { color: #ffd080; }

.promo-ft-subtitle {
  color: rgba(255,255,255,0.68); font-size: 1.05rem;
  max-width: 620px; margin: 0 auto 28px; line-height: 1.65;
}

/* Deadline ribbon */
.promo-deadline-ribbon {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,208,128,0.08);
  border: 1px solid rgba(255,208,128,0.22);
  border-left: 4px solid #ffd080;
  border-radius: 10px; padding: 11px 22px;
  color: rgba(255,255,255,0.85); font-size: 0.9rem; line-height: 1.5;
}
.promo-deadline-ribbon i { color: #ffd080; font-size: 1.05rem; flex-shrink: 0; }
.promo-deadline-ribbon strong { color: #ffd080; }

/* Grille de 3 cartes produits */
.promo-ft-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin: 48px 0;
}

.promo-product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px; overflow: hidden; position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex; flex-direction: column;
}
.promo-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(150,20,20,0.35);
  border-color: rgba(204,40,40,0.45);
}

.promo-product-img { position: relative; height: 220px; overflow: hidden; flex-shrink: 0; }
.promo-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.promo-product-card:hover .promo-product-img img { transform: scale(1.08); }

.promo-product-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, #CC2828, #9E1E1E);
  color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
  display: inline-flex; align-items: center; gap: 5px;
}
.promo-product-badge.gold { background: linear-gradient(135deg, #c8860a, #a06808); }
.promo-product-badge.green { background: linear-gradient(135deg, #1E8C3A, #145C26); }

.promo-product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.promo-product-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.25;
}
.promo-product-body p {
  color: rgba(255,255,255,0.58); font-size: 0.875rem;
  line-height: 1.58; margin-bottom: 18px; flex: 1;
}

/* Bouton WhatsApp sur chaque carte */
.promo-product-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366;
  color: #fff; font-size: 0.85rem; font-weight: 700;
  padding: 11px 18px; border-radius: 10px; text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.28);
}
.promo-product-wa:hover { background: #1fb85a; transform: scale(1.03); box-shadow: 0 6px 22px rgba(37,211,102,0.42); }

/* Barre CTA finale */
.promo-ft-cta-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-top: 4px;
}
.btn-promo-wa-main {
  display: inline-flex; align-items: center; gap: 12px;
  background: #25D366; color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 16px 36px; border-radius: 50px; text-decoration: none;
  box-shadow: 0 8px 30px rgba(37,211,102,0.42);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s;
}
.btn-promo-wa-main:hover { background: #1fb85a; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37,211,102,0.55); }
.btn-promo-devis {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: rgba(255,255,255,0.75); font-weight: 600; font-size: 0.9rem;
  padding: 15px 28px; border-radius: 50px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-promo-devis:hover { border-color: rgba(255,255,255,0.55); color: #fff; transform: translateY(-2px); }

/* Note deadline sous les CTA */
.promo-ft-note {
  margin-top: 22px; text-align: center;
  color: rgba(255,255,255,0.45); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.promo-ft-note i { color: rgba(255,208,128,0.6); }


/* --- Responsive --- */
@media (max-width: 960px) {
  .promo-ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .promo-banner {
    height: auto;
    min-height: 64px;
    padding: 8px 4%;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    row-gap: 4px;
  }
  body.promo-active { padding-top: 64px; }
  body.promo-active .navbar { top: 64px; }

  /* Ligne 1 : texte + bouton fermer */
  .promo-banner-left {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    min-width: 0;
    position: relative;
    padding-right: 24px;
  }
  .promo-banner-text {
    font-size: 0.72rem;
    white-space: normal;
    text-align: center;
    overflow: visible;
    text-overflow: unset;
  }
  .promo-banner-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 4px;
  }

  /* Ligne 2 : compte a rebours + bouton commander */
  .promo-banner-center {
    display: flex;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
  }
  .countdown-label { display: none; }
  .cd-val { font-size: 0.82rem; min-width: 18px; }
  .cd-lbl { font-size: 0.46rem; }
  .cd-sep { font-size: 0.82rem; margin-bottom: 6px; }

  .promo-banner-right { flex-shrink: 0; }
  .promo-cta-btn {
    display: inline-flex;
    font-size: 0.68rem;
    padding: 5px 12px;
    border-radius: 16px;
  }
  .promo-cta-btn i { display: none; }
}
@media (max-width: 600px) {
  .promo-ft-grid { grid-template-columns: 1fr; }
  .promo-ft-section { padding: 64px 5% 56px; }
  .promo-ft-grid { gap: 16px; margin: 36px 0; }
  .btn-promo-wa-main { font-size: 0.95rem; padding: 14px 26px; }

  /* Banniere tres petit ecran */
  .promo-banner { min-height: 72px; padding: 8px 3%; }
  body.promo-active { padding-top: 72px; }
  body.promo-active .navbar { top: 72px; }
  .promo-banner-text { font-size: 0.68rem; }
}
