/* ============================================================
   FUSION — HOME.CSS
============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
}
.home-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Desktop : vidéo réduite (~86 %), calée en haut à droite comme sur la maquette ; fondu sur le bord gauche et le bas */
@media (min-width: 992px) {
  .home-hero-video {
    transform: translateX(12%) scale(.86); transform-origin: right top;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, #000 90%, transparent 100%);
    mask-composite: intersect;
  }
}
.home-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 62%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 70%, rgba(0,0,0,.85) 94%, #000 100%);
}
.home-hero-content { position: relative; z-index: 2; padding-top: 6vh; }
.home-hero-title {
  font-family: var(--f-font-title); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 3.95vw, 82px); line-height: .88; letter-spacing: .005em;
}
.home-hero-sub {
  font-family: var(--f-font-title); font-weight: 700; text-transform: uppercase; color: var(--f-blue);
  font-size: clamp(12px, 1.12vw, 24px); letter-spacing: .03em; margin: .85em 0 0;
}
.home-hero-text {
  font-family: var(--f-font-body); font-weight: 300; color: var(--f-white);
  font-size: clamp(13px, .8vw, 16px); line-height: 1.6;
  max-width: clamp(300px, 26.5vw, 520px); margin: 2.2em 0 0;
}
.home-hero-btn { margin-top: 2.6em; }

/* ── CHIFFRES CLÉS ────────────────────────────────────────── */
.home-stats { padding: 40px 0 120px; }
.home-stats-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin-left: auto; }
.home-stats .stat-card { min-width: 0; padding: 40px 12px 26px; text-align: center; border-left: 1px solid var(--f-line); }
.home-stats .stat-card:first-child { border-left: 0; }
.home-stats .f-num { font-size: clamp(40px, 3.4vw, 64px); }

/* ── NOTRE EXPERTISE ──────────────────────────────────────── */
.home-expertise { padding: 40px 0 120px; }
.home-expertise-row { margin-top: 64px; align-items: flex-start; }
.exp-cards .owl-stage { display: flex; }
/* Marge de dessin : le décalage fractionnaire d'Owl ne rogne plus la bordure gauche/droite des cartes */
.exp-cards .owl-stage-outer { padding: 3px; margin: -3px; }
.exp-cards .owl-item { display: flex; }
.exp-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; min-height: clamp(270px, 17.8vw, 340px);
  border: 1px solid #4a4a4a; border-radius: 6px;
  padding: 24px 22px;
  background: #000;
  transition: border-color .3s ease, background .3s ease;
}
.exp-card-num {
  position: absolute; top: 14px; right: 24px;
  font-family: var(--f-font-ui); font-weight: 300; font-size: 54px; line-height: 1;
  color: #5a5a5a; transition: color .3s ease;
}
.exp-card-icon { position: absolute; top: 30px; left: 22px; width: 54px; height: 54px; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.exp-card-title { font-family: var(--f-font-body); font-weight: 300; text-transform: uppercase; font-size: 15px; color: var(--f-white); transition: color .3s ease, transform .35s ease; }
.exp-card-tags {
  font-family: var(--f-font-body); font-size: 13px; line-height: 1.45; color: var(--f-white);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, margin .3s ease;
}
.exp-card.is-active { border-color: var(--f-blue); }
.exp-card.is-active .exp-card-icon { opacity: 1; transform: none; }
.exp-card.is-active .exp-card-title { color: var(--f-blue); }
.exp-card.is-active .exp-card-tags { max-height: 120px; opacity: 1; margin-top: 40px; }
.exp-card.is-active .exp-card-num { color: #333; }
/* Survol seulement avec une souris (sur mobile le :hover reste "collé" après un tap) */
@media (hover: hover) {
  .exp-card:hover { border-color: var(--f-blue); }
  .exp-card:hover .exp-card-icon { opacity: 1; transform: none; }
  .exp-card:hover .exp-card-title { color: var(--f-blue); }
  .exp-card:hover .exp-card-tags { max-height: 120px; opacity: 1; margin-top: 40px; }
  .exp-card:hover .exp-card-num { color: #333; }
}
/* Tactile : le navigateur garde le scroll vertical, Owl ne gère que le glissé horizontal */
.exp-cards .owl-stage { touch-action: pan-y; }

.home-expertise-aside { text-align: left; }
.home-expertise-aside .sec-sub { margin-top: 0; }
.home-expertise-aside .sec-text { margin-top: 36px; }
.aside-line { display: block; width: 160px; height: 1px; background: #4a4a4a; margin: 60px 0 0; }

/* ── ILS NOUS FONT CONFIANCE ──────────────────────────────── */
.home-trust { background: var(--f-grey-bg); padding: 56px 0 40px; }
.home-trust .sec-text { margin-top: 12px; }
#clientsCarousel { margin-top: 24px; }

/* ── CASE STUDIES ─────────────────────────────────────────── */
.home-cases { padding: 130px 0 120px; }
.home-cases-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 70px;
  border-top: 1px solid #262626;
}
.home-case { display: block; padding: 36px 6% 60px; position: relative; }
.home-case:nth-child(odd) { border-right: 1px solid #262626; }
.home-case:nth-child(-n+2) { border-bottom: 1px solid #262626; }
.home-case-tags { display: block; font-family: var(--f-font-body); font-size: 12px; color: var(--f-silver); }
.home-case-title { display: block; font-family: var(--f-font-body); font-size: 17px; color: var(--f-white); margin: 6px 0 22px; transition: color .25s; }
.home-case-img { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 1400 / 1061; background: #111; }
.home-case-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.75); transition: filter .5s ease, transform .6s ease; }
.home-case:hover .home-case-title { color: var(--f-blue); }
.home-case:hover .home-case-img img { filter: none; transform: scale(1.03); }
.home-cases-cta { margin-top: 70px; }
