/* ── certifications.css — styles spécifiques à /certifications/ ── */

/* Cert gallery */
.cert-gallery {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:26px;
}

.cert-shot {
  background:var(--raised);
  border:1px solid var(--br);
  border-radius:12px;
  overflow:hidden;
}

.cert-shot img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  background:#0d0f12;
}

.cert-shot-body {
  padding:14px 16px 16px;
}

.cert-shot-body h3 {
  font-family:var(--ffd);
  font-size:.95rem;
  color:var(--t1);
  margin-bottom:6px;
}

.cert-shot-body p {
  font-size:.83rem;
  color:var(--t2);
  line-height:1.65;
  margin:0;
}

.cert-open {
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:none;
  cursor:pointer;
  text-align:inherit;
}

.cert-open img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  background:#0d0f12;
  transition:transform .25s ease, opacity .25s ease;
}

.cert-open:hover img {
  transform:scale(1.02);
  opacity:.96;
}

/* Lightbox */
.lightbox {
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}

.lightbox.is-open {
  display:block;
}

.lightbox-backdrop {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.82);
  backdrop-filter:blur(4px);
}

.lightbox-dialog {
  position:relative;
  z-index:2;
  width:min(96vw,1200px);
  max-height:92vh;
  margin:4vh auto;
  padding:18px;
  background:#11151b;
  border:1px solid var(--br);
  border-radius:16px;
  box-shadow:0 20px 80px rgba(0,0,0,.45);
}

.lightbox-dialog img {
  display:block;
  width:100%;
  max-height:calc(92vh - 36px);
  object-fit:contain;
  border-radius:10px;
  background:#0b0d10;
}

.lightbox-close {
  position:absolute;
  top:10px;
  right:10px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--br);
  background:rgba(8,10,12,.82);
  color:var(--t1);
  font-size:1.4rem;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-close:hover {
  border-color:rgba(200,145,42,.35);
  color:var(--amber);
}

/* Cert slider maison */
.cert-slider {
  background: var(--raised);
  border: 1px solid var(--br);
  border-radius: 14px;
  overflow: hidden;
}

.cs-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1650 / 1275;
  background: #f8f6f2;
  overflow: hidden;
}

.cs-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity .3s ease;
}

.cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8,10,12,.7);
  border: 1px solid var(--br);
  color: var(--t1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
  z-index: 2;
}
.cs-arrow:hover { background: var(--amber); color: #000; border-color: var(--amber); }
.cs-prev { left: 12px; }
.cs-next { right: 12px; }

.cs-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: .15s;
}
.cs-dot.on {
  background: var(--amber);
  transform: scale(1.3);
}

.cs-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--b0);
  background: var(--base);
}
.cs-counter {
  font-family: var(--ffm);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--amber);
  min-width: 3.5ch;
  text-align: center;
  grid-row: 1 / 3;
  align-self: center;
}
#cs-title {
  font-family: var(--ffd);
  font-size: 1rem;
  font-weight: 700;
  color: var(--t1);
  margin: 0;
  line-height: 1.2;
}
#cs-desc {
  font-size: .84rem;
  color: var(--t2);
  line-height: 1.6;
  margin: 3px 0 0;
  max-width: none;
}

/* Bloc preuve BMD */
.bmd-proof-section {
  padding:60px 0;
}

.bmd-proof-card {
  margin-top:24px;
  background:var(--raised);
  border:1px solid var(--br);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.bmd-proof-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px 20px;
  border-bottom:1px solid var(--b0);
  flex-wrap:wrap;
}

.bmd-proof-kicker {
  font-family:var(--ffm);
  font-size:.62rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--amber);
}

.bmd-proof-link {
  font-family:var(--ffm);
  font-size:.62rem;
  letter-spacing:.06em;
  text-decoration:none;
  color:var(--amber);
}

.bmd-proof-link:hover {
  text-decoration:underline;
}

.bmd-proof-figure {
  margin:0;
  padding:20px;
  border-bottom:1px solid var(--b0);
}

.bmd-proof-figure img {
  display:block;
  width:100%;
  border-radius:10px;
  border:1px solid var(--br);
  background:#0b0d10;
}

.bmd-proof-figure figcaption {
  margin-top:10px;
  font-family:var(--ffm);
  font-size:.62rem;
  color:var(--t3);
  line-height:1.5;
}

.bmd-proof-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--b0);
}

.bmd-proof-stat {
  background:var(--raised);
  padding:20px 16px;
  text-align:center;
}

.bmd-proof-stat strong {
  display:block;
  font-family:var(--ffd);
  font-size:1.8rem;
  line-height:1;
  color:var(--t1);
  margin-bottom:8px;
}

.bmd-proof-stat span {
  display:block;
  font-family:var(--ffm);
  font-size:.62rem;
  line-height:1.5;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--t3);
}

.bmd-proof-note {
  margin:0;
  padding:14px 20px 18px;
  font-size:.8rem;
  line-height:1.65;
  color:var(--t3);
  border-top:1px solid var(--b0);
}

.bmd-proof-note a {
  color:var(--amber);
  text-decoration:none;
}

.bmd-proof-note a:hover {
  text-decoration:underline;
}

/* Responsive */
@media (max-width: 600px) {
  main { padding-top:52px; }
  section[style*="padding:90px"] { padding:60px 0 40px !important; }
  h1 { font-size:clamp(1.6rem, 6vw, 2.4rem) !important; }
  .sub { font-size:.85rem !important; }
  .cert-modules-grid, .offer-grid, .cert-gallery { grid-template-columns:1fr; }
  .faq-item summary { padding:14px 16px; font-size:.85rem; }
  .faq-body { padding:0 16px 14px; font-size:.83rem; }

  .lightbox-dialog {
    width:min(96vw,96vw);
    margin:2vh auto;
    padding:12px;
    border-radius:12px;
  }

  .lightbox-dialog img {
    max-height:86vh;
  }

  .lightbox-close {
    top:8px;
    right:8px;
    width:38px;
    height:38px;
  }
}

@media (max-width: 600px) {
  .cs-meta {
    grid-template-columns: 1fr;
    padding: 10px 14px 14px;
    gap: 3px;
  }
  .cs-counter {
    grid-row: 1;
    font-size: 1rem;
    text-align: left;
  }
  .cs-arrow { width: 32px; height: 32px; font-size: .85rem; }
}

@media (max-width:800px) {
  .bmd-proof-stats {
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:560px) {
  .bmd-proof-stats {
    grid-template-columns:1fr;
  }
  .bmd-proof-top {
    align-items:flex-start;
  }
}
