/* =========================================
   SECTION MARQUES — VERSION COMPACTE
========================================= */

.brands-section {
  width: 100%;
  padding: 60px  20px 35px;
  background: #fff;
  padding-bottom:20px;
}

.brands-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* En-tête */
.brands-header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.brands-eyebrow {
  display: inline-block;
  margin-bottom: 14px;

  color: #005de5;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.brands-title {
  color: #007bff;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.05;
  font-weight: 900;
  margin: 0 0 26px;
  letter-spacing: -0.5px;
}

.brands-description {
  margin: 0;

  color: color-mix(in srgb, #14201c, transparent 20%);
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================================
   GRAPHIQUE ET LÉGENDE
========================================= */

.brands-content {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 65px;

  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

.brands-chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Conteneur Chart.js */
.brands-chart-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
  cursor: pointer;
}

.brands-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Information affichée après clic */
.brand-chart-info {
  width: 100%;
  max-width: 320px;
  min-height: 58px;

  margin: 18px auto 0;
  padding: 11px 16px;

  background: #f5f7fb;
  border: 1px solid #e1e7ef;
  border-radius: 10px;

  color: #526075;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.brand-chart-info strong,
.brand-chart-info span {
  display: block;
}

.brand-chart-info strong {
  color: #07142e;
  font-size: 0.95rem;
  font-weight: 900;
}

.brand-chart-info span {
  margin-top: 3px;
}

/* =========================================
   COLONNE DROITE
========================================= */

.brands-details {
  width: 100%;
  min-width: 0;
}

.brands-details h3 {
  margin: 0 0 22px;

  color: #07142e;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.4px;
}

/* Légende compacte */
.brands-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  color: #26344a;
  font-size: 0.84rem;
  line-height: 1.15;
}

.brand-name {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-legend-item strong {
  flex-shrink: 0;

  color: #07142e;
  font-size: 0.84rem;
  font-weight: 900;
}

.brand-dot {
  width: 11px;
  height: 11px;

  margin-right: 8px;
  flex-shrink: 0;

  border-radius: 50%;
}

.brand-muted {
  margin-left: 3px;
  color: #9aa4b3;
}

/* Couleurs de la légende */
.dot-sinotruk {
  background: #2566a3;
}

.dot-toyota {
  background: #2c9cdf;
}

.dot-mercedes {
  background: #f45124;
}

.dot-mitsubishi {
  background: #17a34a;
}

.dot-renault {
  background: #f2b705;
}

.dot-shacman {
  background: #7437ed;
}

.dot-suzuki {
  background: #159486;
}

.dot-jac {
  background: #1290ad;
}

.dot-fiat {
  background: #b8520e;
}

.dot-nissan {
  background: #db2c24;
}

.dot-other {
  background: #cbd6e4;
}

/* Texte partenaires */
.brands-partners-text {
  max-width: 600px;
  margin: 26px 0 0;

  color: #667085;
  font-size: 0.82rem;
  line-height: 1.65;
}

.brands-partners-text i {
  margin-right: 6px;
  color: #0069d9;
}


/* =========================================
   TABLETTE
========================================= */

@media (max-width: 991px) {
  .brands-section {
    padding: 60px 24px 40px;
    padding-bottom: 20px;
  }

  .brands-content {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
  }

  .brands-chart-wrapper {
    width: 290px;
    height: 290px;
  }

  .brand-chart-info {
    max-width: 280px;
  }

  .brands-details h3 {
    font-size: 1.2rem;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
  .brands-section {
    padding: 60px 18px 35px;
    padding-bottom: 20px;
  }

  .brands-header {
    margin-bottom: 28px;
  }

  .brands-title {
    font-size: 2rem;
  }

  .brands-description {
    font-size: 0.88rem;
  }

  .brands-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .brands-chart-wrapper {
    width: 260px;
    height: 260px;
  }

  .brand-chart-info {
    max-width: 270px;
    min-height: 54px;
    font-size: 0.78rem;
  }

  .brands-details {
    width: 100%;
  }

  .brands-details h3 {
    margin-bottom: 18px;

    font-size: 1.15rem;
    text-align: left;
  }

  .brand-legend-item,
  .brand-legend-item strong {
    font-size: 0.82rem;
  }

  .brands-partners-text {
    margin-top: 24px;

    font-size: 0.8rem;
    text-align: left;
  }

  .brands-logos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .brand-logo-card {
    height: 48px;
  }

  .brand-logo-card img {
    max-width: 70%;
    max-height: 30px;
  }
}

/* =========================================
   TRÈS PETITS ÉCRANS
========================================= */

@media (max-width: 400px) {
  .brands-section {
    padding-inline: 15px;
    padding-bottom: 10px;
  }

  .brands-chart-wrapper {
    width: 235px;
    height: 235px;
  }

  .brand-chart-info {
    max-width: 245px;
  }

  .brands-title {
    font-size: 1.8rem;
  }

  .brand-legend-item,
  .brand-legend-item strong {
    font-size: 0.78rem;
  }
}