/* ===== Variables locales de secours (harmonie avec styles.css) ===== */
:root{
  --radius: var(--radius, 14px);
  --accent: var(--green-khaki, #A7B68C);
  --ink: var(--text, #1D1D1B);
  --paper: var(--white, #fff);
  --cream: var(--cream, #F7F6F3);
}

/* ===== HERO centré ===== */
.hero--center .hero__content{ text-align:center }
.hero--center .hero__lead{ max-width: 760px; margin-inline: auto }

/* ===== Sous-nav sticky (si utilisée) ===== */
.subnav{
  position: sticky;
  top: 72px;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.subnav__inner{
  display:flex; gap:10px; justify-content:center; align-items:center;
  padding: 12px 0; flex-wrap: wrap;
}
.chip{
  display:inline-flex; align-items:center; gap:.5ch;
  padding:8px 14px; border-radius:999px; font-weight:600;
  border:1px solid color-mix(in oklab, var(--accent), #000 12%);
  color: color-mix(in oklab, var(--accent), #000 18%);
  background: color-mix(in oklab, var(--accent), #fff 85%);
  transition: transform .15s ease, background .25s ease;
}
.chip:hover{ transform: translateY(-1px) }
.chip.is-active{ background: var(--accent); color:#fff }

/* ===== Sections Portfolio ===== */
.section.pf{ padding-block: 72px; background: var(--cream) }
.section.pf:nth-of-type(even){ background: var(--paper) }
.pf__container{ max-width: 1200px }

/* Entête de section */
.kicker{ font-family:"Dancing Script",cursive; font-size:1.35rem; color:var(--accent); margin:0 0 8px }
.pf__h2{ margin:0 0 8px; font-weight:800; color: #1F3A34 }
.pf__lead{ margin:0 0 26px; opacity:.9 }

/* ===== Grille images : 3 × 2 ===== */
.pf__grid{
  display:grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

/* Vignettes */
.pf__img{
  position:relative; display:block; overflow:hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow, 0 10px 24px rgba(0,0,0,.10));
  background:#ececec;
  cursor: zoom-in;                   /* ✅ feedback pour le clic lightbox */
}
.pf__img img{
  width:100%; height:100%; object-fit:cover; display:block;
  aspect-ratio: 4 / 3;               /* ratio uniforme = grille bien alignée */
  transform: scale(1.02);
  transition: transform .45s ease, filter .25s ease;
}
.pf__img:hover img{ transform: scale(1.06); filter: contrast(105%) saturate(102%) }
/* Focus clavier accessible */
.pf__img:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

/* Responsive */
@media (max-width: 990px){
  .pf__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .pf__grid{ grid-template-columns: 1fr; }
}

/* ===== Reveal on scroll ===== */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease }
.reveal.is-in{ opacity:1; transform:none }

/* ===== Lightbox ===== */
.lightbox[hidden]{ display:none !important }
.lightbox{
  position:fixed; inset:0; z-index:99999; /* ✅ toujours au-dessus */
  display:grid; place-items:center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(2px);
}
.lightbox__figure{ position:relative; margin:0 }
.lightbox__img{
  max-width: min(92vw, 1400px);
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  background:#111;
}
.lightbox__caption{
  margin-top:10px; font-size:14px; color:#fff; opacity:.9;
  display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap;
}
.lightbox__caption [data-lb-count]{ font-weight:700; opacity:.85 }

.lightbox__close,
.lightbox__nav{
  position:absolute; border:none; border-radius:100px; cursor:pointer;
  background:#fff; color:#000; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.lightbox__close{ top:16px; right:18px; width:42px; height:42px; font-size:28px; line-height:1 }
.lightbox__nav{
  top:50%; transform:translateY(-50%);
  width:48px; height:48px; font-size:26px; line-height:1;
}
.lightbox__nav--prev{ left:16px }
.lightbox__nav--next{ right:16px }
.lightbox__nav:focus-visible, .lightbox__close:focus-visible{ outline: 3px solid var(--accent) }

/* Fallback si le JS n’est pas chargé */
.reveal{ opacity:1 !important; transform:none !important; }

/* === Hero avec logo à gauche du titre (page portfolio résidentiel) === */
/* Hero alignment + logo sizing for Portfolio pages */
.hero--center .hero__heading{
  display: flex;
  align-items: center;     
  justify-content: center;
  gap: 14px;               /* spacing between icon and text (from screenshot 11) */
}

.hero--center .hero__heading .hero__logo{
  height: 150px !important;  /* big size like screenshot 22 */
  width: auto;
  margin: -10px 0 0 0;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.22));
}



@media (max-width: 680px){
  .hero--center .hero__heading .hero__logo{ height: 48px; }
}

/* Si tu veux masquer totalement la sous-nav : */
/* .subnav{ display:none !important; } */
