.elementor-3568 .elementor-element.elementor-element-07748ed{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}@media(min-width:768px){.elementor-3568 .elementor-element.elementor-element-07748ed{--width:90%;}}/* Start custom CSS for html, class: .elementor-element-0da2e87 */.brands-page {
  --brands-primary: #51afe3;
  --brands-text: #111111;
  --brands-muted: #666666;
  --brands-bg: #ffffff;
  --brands-side-space: 40px; /* même valeur que l'espace entre colonnes */

  background: var(--brands-bg);
  color: var(--brands-text);
}

.brands-page * {
  box-sizing: border-box;
}

.brands-page a {
  text-decoration: none;
  color: inherit;
}

.brands-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTAINER GÉNÉRAL : ne touche pas au centrage du haut */
.brands-container {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

/* HERO */

.brands-page__hero {
  padding: 90px 0 50px;
  margin-bottom: 50px;
  text-align: center;
}

.brands-page__hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.brands-page__badge {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brands-primary);
  font-weight: 700;
}

.brands-page__hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.brands-page__hero p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--brands-muted);
}

/* CONTENT */

.brands-page__content {
  padding-bottom: 80px;
}

.brands-page__heading {
  margin-bottom: 40px;
}

/* IMPORTANT :
   on applique la marge uniquement à la grille */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--brands-side-space);
  row-gap: 60px;
  padding-left: var(--brands-side-space);
  padding-right: var(--brands-side-space);
}

/* CARD */

.brand-card {
  display: block;
}

/* IMAGE : verticale */
.brand-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* plus haute que large */
  overflow: hidden;
  background: #f4f4f4;
}

.brand-card__image img {
  transition: transform 1s ease, filter 0.6s ease;
}

/* FILTRE HOVER PLUS VISIBLE */

.brand-card__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.22)),
    linear-gradient(135deg, rgba(81,175,227,0.48), rgba(81,175,227,0.18));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

/* CADRE */

.brand-card__image::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,0.88);
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.4s ease;
  z-index: 4;
  pointer-events: none;
}

/* TEXTE HOVER */

.brand-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(25px) scale(0.96);
  transition: all 0.4s ease;
  z-index: 5;
  pointer-events: none;
}

.brand-card__overlay span {
  color: white;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

/* TEXTE SOUS IMAGE */

.brand-card__content {
  padding-top: 18px;
  text-align: center;
  transition: opacity 0.35s ease;
}

.brand-card__content h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.brand-card__content span {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brands-muted);
}

/* HOVER */

.brand-card:hover .brand-card__image img {
  transform: scale(1.14);
  filter: brightness(0.72) contrast(1.08) saturate(1.08);
}

.brand-card:hover .brand-card__image::before {
  opacity: 1;
}

.brand-card:hover .brand-card__image::after {
  opacity: 1;
  transform: scale(1);
}

.brand-card:hover .brand-card__overlay {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.brand-card:hover .brand-card__content {
  opacity: 0.12;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .brands-page {
    --brands-side-space: 30px;
  }

  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 50px;
  }
}

@media (max-width: 900px) {
  .brands-page {
    --brands-side-space: 24px;
  }

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (max-width: 600px) {
  .brands-page {
    --brands-side-space: 20px;
  }

  .brands-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .brand-card__overlay span {
    font-size: 1.2rem;
  }
}/* End custom CSS */