/* =========================================================
   PAGE MARQUES — VERSION PRODUCTION LIKE FINAL
========================================================= */

.page-brands {
  padding: 20px 0 40px;
}

/* SUPPRIMER TEXTE AU-DESSUS */
.page-brands .page-content > p:first-child {
  display: none;
}

/* =========================================================
   HERO BANNIÈRE — VERSION ANIMÉE PROPRE
========================================================= */

.page-brands .brands-hero {
  position: relative;
  overflow: hidden;

  background: url('/img/cms/BANNIERES/brands-banner.webp') center / cover no-repeat;

  padding: 40px;
  border-radius: 15px;
  margin-bottom: 25px;
}

/* OVERLAY LÉGER */
.page-brands .brands-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124,192,216,0.30),
    rgba(233,221,208,0.30)
  );
  z-index: 1;
}

/* =========================================================
   ANIMATION SHIMMER EXACTE (IPHONE LIKE)
========================================================= */

@keyframes shimmerBanner {
  0% { transform: translateX(-150%) skewX(-25deg); }
  100% { transform: translateX(150%) skewX(-25deg); }
}

.page-brands .brands-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* 🔥 IMPORTANT */
  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.45),
    transparent
  );

  animation: shimmerBanner 4s infinite;

  z-index: 2;
}

/* TEXTE AU-DESSUS */
.page-brands .brands-hero * {
  position: relative;
  z-index: 3;
}

/* ANIMATION */
@keyframes floatBubbles {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, -15px);
  }
}

/* =========================================================
   TOP BLOCK (ALIGNÉ À GAUCHE)
========================================================= */

.brands-top {
  margin-bottom: 25px;
  text-align: left;
}

/* =========================================================
   INDEX A → Z (GAUCHE + TAILLE AUGMENTÉE)
========================================================= */

.brand-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* 🔥 étire sur toute la largeur */
  align-items: center;

  width: 100%;

  background: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.06);

  margin-bottom: 20px;
}

/* Pour éviter que ça colle trop sur les grands écrans */
.brand-index-link {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: #555;
  text-decoration: none;
  transition: 0.2s;
}

/* =========================================================
   SEARCH BAR (COULEUR CORRIGÉE)
========================================================= */

.brand-search-bar-wrapper {
  position: relative;
  max-width: 450px;
  margin: 0; /* 🔥 aligné à gauche */
}

#brand-search {
  width: 100%;
  padding: 14px 40px 14px 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f8f9fc; /* 🔥 couleur demandée */
}

#brand-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

/* =========================================================
   LETTRES
========================================================= */

.brand-letter-section {
  margin: 35px 0 15px;
}

.brand-letter-section span {
  font-size: 26px;
  font-weight: 700;
  position: relative;
}

.brand-letter-section span::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 6px;
  background: #9fd4ef;
  border-radius: 2px;
}

/* =========================================================
   GRID
========================================================= */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* =========================================================
   CARTES
========================================================= */

.brand-card {
  display: block;
  text-decoration: none;
}

.brand-card-inner {
  background: #fff;
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;

  border: 1px solid #eee;

  box-shadow: 0 6px 18px rgba(0,0,0,0.06);

  transition: all 0.25s ease;
}

.brand-card:hover .brand-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: #9fd4ef;
}

.brand-logo {
  max-height: 50px;
  margin-bottom: 10px;
}

.brand-name {
  font-weight: 600;
  color: #2bbcd3;
}

.brand-count {
  font-size: 13px;
  color: #888;
}

/* =========================================================
   SEO
========================================================= */

.brand-seo-box {
  margin-top: 40px;
  color: #555;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

}
/* MASQUER TEXTE DESCRIPTION MARQUES */
.page-brands #main > p {
  display: none !important;
}

/* =========================================================
   BANNIÈRE — TYPO
========================================================= */

.page-brands .brands-hero h2 {
  font-size: 40px !important;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: #ffffff; 
}

.page-brands .brands-hero p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.5;
  color: #555555; 
}
/* =========================================================
   TOP PROMO BANNER — VERSION PREMIUM FX
========================================================= */

.top-promo-banner {
  width: 100%;
  text-align: center;
  padding: 6px 0;
  position: relative;
  z-index: 999;

  background: #0a2f3a; /* 🔥 propre */
}

/* LIEN */
.top-promo-banner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.1;
}

/* 🔥 PROMOTIONS — EFFET HEARTBEAT */
.top-promo-banner span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;

  animation: promoPulse 2.5s ease-in-out infinite;
}

/* TEXTE */
.top-promo-banner small {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

/* 💓 ANIMATION HEARTBEAT */
@keyframes promoPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  50% {
    transform: scale(1.08);
    text-shadow: 0 0 12px rgba(255,255,255,0.35);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
}
.page-brands .brand-name {
  color: #000 !important;
  transition: 0.2s;
}

.page-brands .brand-card:hover .brand-name {
  color: #2bbcd3; /* ton bleu actuel */
}