/* =========================================
   HOME.CSS — index.html uniquement
   Grille deux colonnes scroll-driven
   ========================================= */

/* ── SECTIONS FANTÔMES ──────────────────── */
.scroll-section,
.scroll-section-last {
  pointer-events: none;
}

/* ── CONTAINER PRINCIPAL — deux colonnes ── */
.home-container {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 60px;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  gap: var(--gap);
  padding: var(--gap) var(--pad-x);
  pointer-events: none;
}

.col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  pointer-events: auto;
  overflow: hidden;
  justify-content: flex-start;
}

/* ── PROJETS — hauteur pilotée par JS ───── */
.container-test {
  width: 100%;
  overflow: hidden;
  transition: height 0.05s linear;
}

.container-home-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-home-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  transition: border-radius 0.5s ease;
}
.container-home-inner:hover { border-radius: 0; }

.container-home-inner img,
.container-home-inner video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  transition: border-radius 0.5s ease, transform 0.4s ease;
}
.container-home-inner:hover img,
.container-home-inner:hover video {
  border-radius: 0;
  transform: scale(0.98);
}

/* Titre superposé */
.project-title {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

/* ── FOOTER FIXE — spécifique home ──────── */
body.home footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 16px var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: none;
}

.all-works {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.all-works:hover { opacity: 0.5; }

/* ── RESPONSIVE TABLET ──────────────────── */
@media (max-width: 1024px) {
  :root { --radius: 24px; }
}

/* ── RESPONSIVE MOBILE ──────────────────── */
@media (max-width: 720px) {
  :root { --radius: 16px; }

  .scroll-section,
  .scroll-section-last { display: none; }

  .home-container {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 80px var(--pad-x) 80px;
  }
  .col { overflow: visible; }

  .container-test { height: auto !important; }
  .container-home-inner img,
  .container-home-inner video { height: auto; }

  body.home footer {
    position: static;
    padding: 24px var(--pad-x);
    flex-direction: column;
    align-items: flex-start;
  }
}
