/* ═══════════════════════════════════════
   EYLIR VISUALS v5 — global.css
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  background: #fff;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══ NAV — logo left · brand center · links right ══ */
.nav {
  position: sticky;
  top: 0; z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  height: 110px;
  background: #fff;
  border-bottom: 1px solid #E8E8E8;
}

.nav-logo-img img {
  height: 68px;
  width: auto;
}

.nav-brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 40px;
  justify-content: flex-end;
  align-items: center;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d7c7c;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: #000;
  transition: width 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: #000; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  justify-content: flex-end;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: #000;
  transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #000;
}
.mobile-menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  font-size: 28px; cursor: pointer;
  color: #7d7c7c;
}

/* ══ PAGE TITLE — centré Lundani ══ */
.page-title {
  padding: 80px 48px 64px;
  text-align: center;
  border-bottom: 1px solid #E8E8E8;
}
.page-title .label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #7d7c7c; display: block; margin-bottom: 16px;
}
.page-title h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400; line-height: 1.06;
  letter-spacing: -0.02em;
}
.page-title h1 span { color: #7d7c7c; }
.page-title p {
  font-size: 15px; color: #7d7c7c;
  max-width: 600px; margin: 20px auto 0;
  line-height: 1.75;
}

/* ══ AUTO-SCROLL STRIP ══ */
.strip-outer {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  border-bottom: 1px solid #E8E8E8;
  user-select: none;
}
.strip-outer:active { cursor: grabbing; }

.strip-track {
  display: flex;
  gap: 3px;
  will-change: transform;
}

.strip-item {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Homepage: alternating narrow/wide */
.strip-item.narrow { width: 260px; }
.strip-item.wide   { width: 355px; }

/* Portfolio pages: 2:3 portrait */
.strip-item.port {
  width: 280px;
}
.strip-item.port .strip-ph,
.strip-item.port .strip-img {
  height: 420px;
}

/* Portfolio pages: 3:2 landscape — même hauteur que port */
.strip-item.land {
  width: 630px;
}
.strip-item.land .strip-ph,
.strip-item.land .strip-img {
  height: 420px;
}

/* Forcer la hauteur identique sur tous les strip-img */
.strip-track .strip-img {
  height: 420px !important;
  object-fit: cover;
  object-position: center;
}

.strip-img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.45s ease;
}
.strip-item:hover .strip-img { transform: scale(0.93); }

.strip-ph {
  width: 100%;
  background: #F0F0F0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  transition: transform 0.45s ease;
}
/* Homepage strip height */
.strip-item.narrow .strip-ph,
.strip-item.wide   .strip-ph { height: 520px; }

.strip-item:hover .strip-ph { transform: scale(0.93); }

.strip-ph .ph-num {
  font-size: 20px; font-weight: 300; color: #CCCCCC;
}
.strip-ph .ph-label {
  font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #BBBBBB;
  text-align: center; padding: 0 8px;
}

.strip-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.strip-item:hover .strip-label { opacity: 1; transform: translateY(0); }
.strip-label span { font-size: 13px; font-weight: 500; color: #fff; }

/* ══ FOOTER ══ */
.footer-nav-row {
  padding: 28px 48px;
  border-top: 1px solid #E8E8E8;
  display: flex; align-items: center;
  justify-content: center;
  flex-wrap: wrap; gap: 40px;
}
.footer-nav-row a {
  font-size: 13px; color: #000;
  transition: opacity 0.2s;
}
.footer-nav-row a:hover { opacity: 0.45; }
.footer-nav-row .left  { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.footer-nav-row .right { display: none; }

.footer-cta-row {
  padding: 56px 48px;
  border-top: 1px solid #E8E8E8;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-cta-row h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 400; letter-spacing: -0.01em;
}

.site-footer {
  padding: 22px 48px;
  border-top: 1px solid #E8E8E8;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.site-footer-left { font-size: 12px; color: #7d7c7c; }
.site-footer-center a {
  display: flex; align-items: center;
}
.site-footer-center svg {
  width: 20px; height: 20px; color: #000;
  transition: opacity 0.2s;
}
.site-footer-center a:hover svg { opacity: 0.5; }
.legal-links { display: flex; gap: 20px; }
.legal-links a {
  font-size: 12px; color: #7d7c7c; text-decoration: underline;
  transition: color 0.2s;
}
.legal-links a:hover { color: #000; }

/* ══ BUTTONS ══ */
.btn-outline {
  display: inline-block; padding: 12px 28px;
  border: 1px solid #000; font-size: 11px;
  font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #000;
  transition: background 0.2s, color 0.2s; cursor: pointer;
}
.btn-outline:hover { background: #000; color: #fff; }

.btn-dark {
  display: inline-block; padding: 12px 28px;
  background: #000; color: #fff; font-size: 11px;
  font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; transition: opacity 0.2s;
}
.btn-dark:hover { opacity: 0.7; }

/* ══ SECTION LABEL ══ */
.label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #7d7c7c; display: block; margin-bottom: 16px;
}

/* ══ PLACEHOLDER ══ */
.ph-box {
  background: #F0F0F0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #AAAAAA;
}

/* ══ FADE UP ══ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ══ FORM ══ */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #7d7c7c; font-weight: 600; margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: none;
  border-bottom: 1px solid #E8E8E8;
  background: transparent; font-family: 'Inter', sans-serif;
  font-size: 15px; color: #000; padding: 10px 0;
  outline: none; transition: border-color 0.2s; appearance: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-bottom-color: #000;
}
.form-field textarea { resize: none; height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ══ MOBILE RESPONSIVE ══ */
@media (max-width: 768px) {

  /* ── NAV ── */
  .nav {
    padding: 0 20px;
    height: 64px;
    grid-template-columns: auto 1fr auto;
  }
  .nav-logo-img img { height: 40px; }
  .nav-brand { font-size: 10px; letter-spacing: 0.14em; text-align: center; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* ── PAGE TITLES ── */
  .page-title { padding: 48px 20px 40px; }
  .page-title h1 { font-size: 2.4rem; }

  /* ── HERO ── */
  .hero { height: calc(100vh - 64px); }

  /* ── STRIP — ratio 2:3 sur mobile ── */
  .strip-item.port { width: 160px; }
  .strip-item.port .strip-ph,
  .strip-item.port .strip-img { height: 240px; } /* 160 × 1.5 = 240 → 2:3 */
  .strip-item.land { width: 360px; }
  .strip-item.land .strip-ph,
  .strip-item.land .strip-img { height: 240px; } /* même hauteur alignée */
  .strip-item.narrow { width: 160px; }
  .strip-item.wide   { width: 220px; }
  .strip-item.narrow .strip-ph,
  .strip-item.wide   .strip-ph,
  .strip-item.narrow .strip-img,
  .strip-item.wide   .strip-img { height: 300px; }

  /* Force 2:3 on all strip images mobile */
  .strip-track .strip-img { height: 240px !important; }
  .strip-item.narrow .strip-img,
  .strip-item.wide   .strip-img { height: 300px !important; }

  /* ── FOOTER ── */
  .footer-nav-row {
    padding: 24px 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .footer-nav-row .left { justify-content: center; gap: 20px; }
  .footer-nav-row .right { display: none; }

  .footer-cta-row {
    padding: 48px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-cta-row h2 { font-size: 1.8rem; }

  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .site-footer-center {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
    justify-content: center;
  }
  .site-footer-center svg { width: 32px; height: 32px; }
  .site-footer-center a svg { width: 32px; height: 32px; }
  .legal-links { justify-content: center; flex-wrap: wrap; gap: 12px; }

  /* ── FORMS ── */
  .form-row { grid-template-columns: 1fr; }

  /* ── MOBILE MENU ── */
  .mobile-menu a { font-size: 2rem; }

  /* ── WORK HEADER ── */
  .work-header { padding: 48px 20px 36px; }
  .work-nav { padding: 28px 20px; }
}

/* ══ LOADING SHIMMER ══ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.strip-img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.strip-img.img-loaded {
  background: none;
  animation: none;
}
