/* ============================================================
   FUSION — COMPONENTS.CSS (composants partagés entre pages)
============================================================ */

/* ── Logos clients sombres (home) ─────────────────────────── */
.clients-dark .item { display: flex; align-items: center; justify-content: center; height: 130px; }
.clients-dark.owl-carousel .item img { width: auto; max-width: 92%; max-height: 74px; height: auto; opacity: .95; transition: opacity .3s ease, filter .3s ease; }
.clients-dark.owl-carousel .item img:hover { filter: brightness(1.6); }

/* ── Logos clients clairs (à propos) ──────────────────────── */
.clients-light-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 54px; }
.clients-light-grid .tile {
  background: #fff; border-radius: 6px;
  aspect-ratio: 260 / 114;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.clients-light-grid .tile:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,155,243,.25); }
.clients-light-grid .tile img { width: 100%; height: 100%; object-fit: contain; }

/* ── Badge "CASE STUDIES" ─────────────────────────────────── */
.case-badge {
  display: inline-block;
  font-family: var(--f-font-title);
  font-weight: 700; text-transform: uppercase;
  font-size: 11px; letter-spacing: .03em;
  color: var(--f-blue);
  border: 1px solid #3a3a3a; border-radius: 4px;
  padding: 4px 9px 3px;
}

/* ── Carte réalisation (grille) ───────────────────────────── */
.real-card { display: block; cursor: pointer; }
.real-card-img {
  display: block;
  border-radius: 6px; overflow: hidden;
  border: 1px solid #2a2a2a;
  aspect-ratio: 1400 / 1030;
  background: #111;
}
.real-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.8);
  transition: filter .5s ease, transform .6s ease;
}
.real-card:hover .real-card-img img,
.real-card:focus-visible .real-card-img img { filter: none; transform: scale(1.03); }
.real-card .case-badge { margin-top: 22px; }
.real-card-title {
  display: block;
  font-family: var(--f-font-body); font-weight: 300; text-transform: uppercase;
  font-size: clamp(16px, 1.1vw, 20px); color: var(--f-white);
  margin-top: 12px;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.f-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.f-lightbox.is-open { opacity: 1; visibility: visible; }
.f-lightbox figure { margin: 0; max-width: 1200px; width: 100%; text-align: center; }
.f-lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; }
.f-lightbox figcaption { margin-top: 18px; text-transform: uppercase; font-size: 20px; }
.f-lightbox-close, .f-lightbox-nav {
  position: absolute; background: none; border: 1px solid #444; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px; line-height: 1;
  transition: border-color .2s, color .2s;
}
.f-lightbox-close:hover, .f-lightbox-nav:hover { border-color: var(--f-blue); color: var(--f-blue); }
.f-lightbox-close { top: 24px; right: 24px; }
.f-lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.f-lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ── Icon badge (icônes d'expertise) ──────────────────────── */
.icon-badge { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; }
.icon-badge img { width: 100%; height: 100%; }

/* ── Owl carousel : reset ─────────────────────────────────── */
.owl-carousel .owl-dots { display: flex; justify-content: flex-end; gap: 8px; margin-top: 34px; }
.owl-carousel .owl-dot span { display: block; width: 14px; height: 14px; margin: 0 !important; border-radius: 50%; background: #333 !important; transition: background .2s; }
.owl-carousel .owl-dot.active span, .owl-carousel .owl-dot:hover span { background: #6a6a6a !important; }
