/* FYProd — front public. Reproduit la maquette FYPROD.dc.html */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #CFCFCF;
  background-image:
    radial-gradient(1400px 700px at 50% -8%, #E0E0E0, rgba(224,224,224,0) 70%),
    linear-gradient(#D6D6D6, #C9C9C9);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-family: Archivo, system-ui, sans-serif;
  color: #1A1A1A;
}
/* Pousse le pied de page en bas de l'écran quand le contenu est court. */
.gallery { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

::selection { background: #1A1A1A; color: #F6F6F6; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 48px; border-bottom: 1px solid #BDBDBD;
}
.logo { height: 55px; width: auto; display: block; }
.site-nav {
  display: flex; gap: 30px; align-items: baseline;
  font: 500 11.5px Archivo, sans-serif;
  letter-spacing: 0.14em; text-transform: uppercase; color: #6F6F6F;
}
.nav-filter { cursor: pointer; transition: color .15s; }
.nav-filter:hover { color: #1A1A1A; }
.nav-contact {
  color: #1A1A1A; text-decoration: none;
  border-bottom: 1px solid #1A1A1A; padding-bottom: 2px;
}

/* ---------- Hero ---------- */
.hero { padding: 40px 48px 44px; border-bottom: 1px solid #BDBDBD; }
.hero h1 {
  margin: 0; color: #1A1A1A;
  font: 800 clamp(23px, 3.2vw, 44px)/0.98 Archivo, sans-serif;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.hero-serif {
  margin-top: 2px; color: #1A1A1A;
  font: italic 400 clamp(18px, 2.6vw, 35px)/1.05 'Instrument Serif', serif;
}
.hero p {
  max-width: none; margin: 22px 0 0;
  font: 400 15px/1.6 Archivo, sans-serif; color: #575757;
}
.hero strong { color: #1A1A1A; font-weight: 600; }

/* ---------- Barre de filtres collante ---------- */
.filterbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 15px 48px;
  background: rgba(250,250,250,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid #C6C6C6;
  box-shadow: 0 12px 28px -14px rgba(0,0,0,0.28);
}
.filter-label {
  font: 600 10.5px Archivo, sans-serif; letter-spacing: 0.16em;
  color: #7E7E7E; text-transform: uppercase; margin-right: 4px;
}
.chips { display: flex; gap: 8px; }
.sep { width: 1px; height: 22px; background: #CFCFCF; margin: 0 16px; }
.chip {
  appearance: none; border: 1px solid #C9C9C9; background: #FFFFFF;
  color: #454545; box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  border-radius: 999px; padding: 8px 16px;
  font: 600 11px Archivo, sans-serif; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip.is-active {
  border-color: #1A1A1A; background: #1A1A1A; color: #F6F6F6;
  box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}
.count {
  margin-left: auto; font: 400 12.5px Archivo, sans-serif; color: #7E7E7E;
}

/* ---------- Page article ---------- */
.article-head { padding: 40px 48px 8px; border-bottom: 1px solid #BDBDBD; }
.backlink {
  display: inline-block; margin-bottom: 20px;
  font: 500 11.5px Archivo, sans-serif; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6F6F6F; text-decoration: none;
}
.backlink:hover { color: #1A1A1A; }
.article-head h1 {
  margin: 0; color: #1A1A1A;
  font: 800 clamp(32px, 4.4vw, 60px)/1.0 Archivo, sans-serif;
  letter-spacing: -0.03em;
}
.article-meta {
  margin-top: 10px; font: 400 13px Archivo, sans-serif; color: #7E7E7E;
}
.article-intro {
  max-width: 620px; margin: 22px 0 30px;
  font: 400 16px/1.7 Archivo, sans-serif; color: #454545;
}

/* ---------- Grille mosaïque ---------- */
.gallery { padding: 46px 48px 16px; }
.masonry { column-width: 340px; column-gap: 36px; }
.card {
  /* inline-block + width:100% : évite l'ombre "fantôme" de WebKit en multicol */
  display: inline-block; width: 100%;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 40px; padding: 12px;
  background: #FDFDFD; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 18px 36px -16px rgba(0,0,0,0.30);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fadeUp .45s ease both;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 30px 50px -18px rgba(0,0,0,0.38);
}
.card-link { text-decoration: none; color: inherit; }
.card-media { position: relative; cursor: pointer; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(20,20,20,0.85); color: #fff;
  padding: 7px 12px; border-radius: 999px;
  font: 600 10.5px Archivo, sans-serif; letter-spacing: 0.12em;
  pointer-events: none;
}
.card figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; margin: 12px 2px 2px;
}
.card-title { font: 600 14px Archivo, sans-serif; color: #1A1A1A; cursor: pointer; }
.card-meta { font: 400 12px Archivo, sans-serif; color: #7E7E7E; white-space: nowrap; }
.empty { text-align: center; color: #7E7E7E; padding: 60px 0; font-size: 15px; }

/* Bouton « Charger plus » */
.load-more-wrap { text-align: center; padding: 4px 0 44px; }
.load-more {
  appearance: none; border: 1px solid #1A1A1A; background: #1A1A1A; color: #F6F6F6;
  border-radius: 999px; padding: 12px 30px;
  font: 600 12px Archivo, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: background .15s;
}
.load-more:hover { background: #000; }
.load-more[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px 48px 40px; border-top: 1px solid #BDBDBD;
  font: 400 12px Archivo, sans-serif; color: #7E7E7E;
}
.site-footer a { color: #575757; text-decoration: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(211,211,211,0.95); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; animation: fadeUp .22s ease both;
}
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; }
.lb-counter { font: 500 12px Archivo, sans-serif; letter-spacing: 0.16em; color: #7E7E7E; }
.lb-close {
  appearance: none; border: 1px solid #C6C6C6; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12); border-radius: 999px;
  padding: 9px 18px; font: 600 11px Archivo, sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase; color: #1A1A1A; cursor: pointer;
}
.lb-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 26px; padding: 0 40px; min-height: 0;
}
.lb-nav {
  appearance: none; border: 1px solid #C6C6C6; background: #fff;
  border-radius: 999px; width: 46px; height: 46px;
  font: 400 18px Archivo, sans-serif; color: #1A1A1A; cursor: pointer;
  flex: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.lb-frame {
  position: relative; background: #FDFDFD; padding: 14px; border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), 0 40px 90px -25px rgba(0,0,0,0.45);
  max-height: 100%;
}
.lb-frame img, .lb-frame video {
  display: block; max-width: min(1100px, 82vw); max-height: 72vh;
  width: auto; height: auto;
}
.lb-caption { text-align: center; padding: 18px 40px 32px; }
.lb-title { font: italic 400 30px 'Instrument Serif', serif; color: #1A1A1A; }
.lb-meta { font: 400 13px Archivo, sans-serif; color: #575757; margin-top: 7px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header { padding: 16px 20px; }
  .logo { height: 40px; }
  .site-nav { gap: 18px; font-size: 10.5px; }

  .hero { padding: 30px 20px; }

  .filterbar { padding: 12px 20px; gap: 8px 6px; }
  .filter-label { margin-right: 2px; }
  .sep { margin: 0 8px; }
  .count { margin-left: 0; width: 100%; order: 9; }

  .gallery { padding: 28px 20px 8px; }
  .masonry { column-gap: 18px; }
  .card { margin-bottom: 24px; }

  .article-head { padding: 28px 20px 6px; }
  .article-intro { margin: 18px 0 24px; }

  .site-footer {
    flex-direction: column; gap: 6px; align-items: flex-start;
    padding: 22px 20px 28px;
  }

  .lb-top { padding: 14px 18px; }
  .lb-stage { gap: 8px; padding: 0 8px; }
  .lb-nav { width: 38px; height: 38px; font-size: 16px; }
  .lb-frame { padding: 8px; }
  .lb-frame img, .lb-frame video { max-width: 86vw; max-height: 60vh; }
  .lb-title { font-size: 24px; }
  .lb-caption { padding: 14px 18px 26px; }
}

@media (max-width: 480px) {
  /* Le menu passe sous le logo, aligné à gauche */
  .site-header { flex-wrap: wrap; gap: 10px; }
  .site-nav { width: 100%; justify-content: flex-start; gap: 16px; }
  .masonry { column-width: 250px; }
}
