/**
 * MILLIOT JACQUEMART — Section Certifications
 * Fichier : child-theme/assets/css/home/mj-home-certifs.css
 * Bande transparente qui remonte sur le bas du hero
 */

/* ==========================================================
   BANDE CERTIFICATIONS
   ========================================================== */
.mj-certifs {
  position: relative;
  z-index: 3;
  background: rgba(8, 14, 24, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid #F5A623;
  margin-top: -80px; /* remonte sur le hero */
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  padding: 0 56px;
}

/* ==========================================================
   ITEM — Un élément de certification
   ========================================================== */
.mj-certif-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.mj-certif-item:last-child {
  border-right: none;
}

/* ==========================================================
   PICTO — Cercle avec SVG amber
   ========================================================== */
.mj-certif-picto {
  width: 44px;
  height: 44px;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  border: 1.5px solid rgba(245, 166, 35, 0.35);
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.06);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

/* Force le SVG à prendre la couleur amber */
.mj-certif-picto svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #F5A623;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* ==========================================================
   TEXTE
   ========================================================== */
.mj-certif-body {
  min-width: 0; /* empêche le débordement flex */
}

.mj-certif-titre {
  display: block;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #F5A623;
  line-height: 1.2;
  white-space: nowrap;
}

.mj-certif-desc {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
}

/* ==========================================================
   RESPONSIVE — Tablette (max 1024px)
   ========================================================== */
@media screen and (max-width: 1024px) {

  .mj-certifs {
    padding: 0 24px;
    margin-top: -60px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .mj-certif-item {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 33.333%;
    -ms-flex: 0 0 33.333%;
    flex: 0 0 33.333%;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 16px 12px;
  }

  .mj-certif-picto {
    width: 36px;
    height: 36px;
  }

  .mj-certif-picto svg {
    width: 16px;
    height: 16px;
  }

  .mj-certif-titre {
    font-size: 13px;
  }
}

/* ==========================================================
   RESPONSIVE — Mobile (max 768px)
   ========================================================== */
@media screen and (max-width: 768px) {

  .mj-certifs {
    margin-top: 0; /* plus de remontée sur mobile */
    padding: 0 16px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(8, 14, 24, 0.92);
  }

  .mj-certif-item {
    -webkit-box-flex: 0;
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 8px;
    gap: 12px;
  }

  .mj-certif-item:last-child {
    border-bottom: none;
  }

  .mj-certif-titre { font-size: 13px; }
  .mj-certif-desc  { font-size: 11px; white-space: normal; }
}