/* ── Typos Barbara de Limburg ── */
/* Familles nommées (fidèles au CSS du site source) */
@font-face {
  font-family: 'barbara-light';
  src: url('/fonts/bb2a9556fb66dad90959e677a34c555d.woff2') format('woff2'),
       url('/fonts/bb2a9556fb66dad90959e677a34c555d.woff')  format('woff'),
       url('/fonts/bb2a9556fb66dad90959e677a34c555d.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'barbara-bold';
  src: url('/fonts/barbara-bold.woff2') format('woff2'),
       url('/fonts/barbara-bold.woff')  format('woff'),
       url('/fonts/barbara-bold.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Famille unifiée 'barbara' avec mapping par font-weight :
   - tout poids ≤ 400  → barbara-light (corps de texte)
   - tout poids ≥ 500  → barbara-bold  (gras automatique sans avoir à cibler chaque sélecteur)
   Cela permet à n'importe quel élément du site (font-weight: 500/600/700/bold) d'utiliser
   automatiquement la barbara-bold au lieu d'une graisse synthétique du navigateur. */
@font-face {
  font-family: 'barbara';
  src: url('/fonts/bb2a9556fb66dad90959e677a34c555d.woff2') format('woff2'),
       url('/fonts/bb2a9556fb66dad90959e677a34c555d.woff')  format('woff'),
       url('/fonts/bb2a9556fb66dad90959e677a34c555d.ttf')   format('truetype');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'barbara';
  src: url('/fonts/barbara-bold.woff2') format('woff2'),
       url('/fonts/barbara-bold.woff')  format('woff'),
       url('/fonts/barbara-bold.ttf')   format('truetype');
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F4F1EB;
  --fg: #111;
  --mid: #888;
  --line: #DDD9CE;
  --accent: #9B8060;
  --header-h: 110px;
  --color-nav: var(--bg);
  --color-subnav: var(--bg);
  --color-home: var(--bg);
  --color-designs: var(--bg);
  --color-biography: var(--bg);
  --color-press: var(--bg);
  --color-current: var(--bg);
  --color-contact: var(--bg);
  --color-project: var(--bg);
  font-size: 20px;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
::selection { background: #FE57A2; color: white; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'barbara', 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── HEADER ── */
#site-header {
  position: relative;
  top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s;
}
#site-header.on-hero {
  position: fixed;
  background: transparent;
  border-color: transparent;
}

.site-logo {
  font-weight: 300; font-style: italic;
  font-size: 1.05rem; letter-spacing: 0.12em;
  cursor: pointer; transition: opacity 0.2s;
  padding: 15px 0 15px 28px;
  display: block;
  background: #fff;
}
#site-header.on-hero #nav { display: none; }

.site-logo .logo-img { max-height:36px; width:auto; object-fit:contain; }

#nav {
  position: relative;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 15px 0 15px 28px;
}
.nav-bg {
  position: absolute;
  z-index: -1;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-nav, var(--bg));
  opacity: .5;
}
.nav-links { display:flex; gap:32px; list-style:none; }
.nav-links li a {
  font-size: 15px; font-family: 'barbara-light', sans-serif; font-weight: normal;
  letter-spacing: 0; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.2s; opacity: 0.8;
}
.nav-links li a:hover, .nav-links li a.active {
  font-family: 'barbara-bold', sans-serif; font-weight: normal;
  opacity: 1;
}
.hamburger { display:none; flex-direction:column; gap:6px; cursor:pointer; padding:4px; }
.hamburger span { display:block; width:22px; height:1px; background:currentColor; transition: all 0.3s; }

/* ── MOBILE MENU ── */
#mob-menu {
  display:none; position:fixed; inset:0; z-index:90;
  background:var(--color-nav, var(--bg));
  flex-direction:column; align-items:center; justify-content:center; gap:28px;
}
#mob-menu.open { display:flex; }
#mob-menu a {
  font-size:2rem; font-weight:300; letter-spacing:0.08em;
  cursor:pointer; transition:opacity 0.2s;
}
#mob-menu a:hover { opacity:0.5; }

/* ── CONTENEUR UNIQUE ── */
#page-content {
  min-height: calc(100vh - var(--header-h));
  transition: background 0.3s;
}

body[data-page="home"]      { background: var(--color-home); }
body[data-page="designs"]   { background: var(--color-designs); }
body[data-page="project"]   { background: var(--color-project); }
body[data-page="biography"] { background: var(--color-biography); }
body[data-page="press"]     { background: var(--color-press); }
body[data-page="current"]   { background: var(--color-current); }
body[data-page="contact"]   { background: var(--color-contact); }

/* ── HERO ── */
#hero {
  position:relative; width:100%; height:100vh; overflow:hidden; cursor:pointer;
  background: #1a1a1a;
}
#hero-img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform: scale(1);
  transition: transform 9s ease, opacity 0.6s ease;
  will-change: transform;
}
#hero:hover #hero-img { transform: scale(1.04); }
.hero-overlay {
  position:absolute; inset:0; z-index: 10;
  background: linear-gradient(160deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
/* Label en haut-gauche, titre en bas-gauche (au-dessus des slides + overlay) */
.hero-sup {
  position: absolute; top: 110px; left: 60px; z-index: 20;
  color: white;
  font-size: 0.65rem; font-weight: 400; letter-spacing: 0.35em;
  text-transform: uppercase; opacity: 0.85;
  pointer-events: none;
}
.hero-title {
  position: absolute; bottom: 72px; left: 60px; z-index: 20;
  color: white;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  line-height: 1.25; max-width: 70%;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}

/* ── BANDEAU SCROLL-TO-TOP ── */
#scroll-top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 45px;
  background: var(--color-nav, var(--bg));
  display: flex; align-items: center;
  padding: 0 28px; gap: 24px;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
#scroll-top-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'barbara', sans-serif;
  font-size: 18px; line-height: 1;
  color: var(--fg);
  padding: 4px 8px;
  transition: opacity 0.2s; flex-shrink: 0;
}
#scroll-top-btn:hover { opacity: 0.5; }


/* ── SUBNAV ── */
.subnav {
  padding: 15px 0 15px 28px;
  display:flex; gap:28px; align-items:center; height:48px;
  background: var(--color-subnav, var(--bg));
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  transition: background 0.4s;
}
.subnav a {
  font-size: 15px; font-family: 'barbara-light', sans-serif; font-weight: normal;
  letter-spacing: 0; text-transform: uppercase;
  cursor: pointer; opacity: 0.8;
  transition: opacity 0.2s; white-space: nowrap;
}
.subnav a:hover, .subnav a.active {
  font-family: 'barbara-bold', sans-serif; font-weight: normal;
  opacity: 1;
}

/* ── PAGE HEAD (titre harmonisé) ── */
.page-head { padding: 28px 28px 28px; }
.page-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1rem;
}

/* ── GRILLE PROJETS ── */
.projects-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:3px; padding:3px 28px;
}
.project-card {
  position:relative; overflow:hidden; aspect-ratio:4/3;
  cursor:pointer; background:var(--line);
}
.project-card img { width:100%; height:100%; object-fit:cover; transition:transform 0.7s ease; }
.project-card:hover img { transform:scale(1.06); }
.card-info {
  position:absolute; inset:0;
  background:linear-gradient(transparent 50%, rgba(0,0,0,0.72) 100%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:24px 20px;
}
.card-title { font-size:1.05rem; font-weight:300; color:white; line-height:1.2; }
.card-sub {
  font-size:0.6rem; letter-spacing:0.15em; text-transform:uppercase;
  color:rgba(255,255,255,0.7); margin-top:5px;
}

/* ── PROJET DETAIL ── */
.detail-head { padding:50px 28px 36px; }
.back {
  display:inline-block; margin-bottom:28px; font-size:0.65rem;
  letter-spacing:0.2em; text-transform:uppercase; opacity:0.4;
  cursor:pointer; transition:opacity 0.2s;
}
.back:hover { opacity:1; }
.detail-title { font-weight:300; font-size:0.95rem; line-height:1.4; text-transform:uppercase; }
.detail-sub {
  font-size:0.68rem; letter-spacing:0.22em; text-transform:uppercase;
  opacity:0.7; margin-top:10px;
}
.gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:3px; }
.gallery img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.gallery img:first-child { grid-column:1/-1; aspect-ratio:21/9; }
.detail-desc { padding:50px 28px; max-width:720px; font-size:0.85rem; line-height:1.9; }

/* ── BIOGRAPHIE ── */
.bio-hero { max-width:855px; padding:0 28px; }
.bio-hero img { width:100%; max-height:82vh; object-fit:cover; object-position:center top; }
.bio-credit { padding:10px 28px; text-align:left; font-size:0.6rem; letter-spacing:0.12em; }
.bio-body { padding:26px 28px; max-width:855px; }
.bio-body p { line-height:1.4; font-size:0.92rem; margin-bottom:1.5em; }

/* ── PRESSE ── */
#press-list { padding:28px; max-width:855px; }
.press-row {
  padding:22px 0;
}
.press-row:last-child { border-bottom:none; }
.press-t      { font-size:1rem;    font-weight:700; line-height:1.4; }
.press-text   { font-size:0.95rem; font-weight:300; line-height:1.55; margin-top:6px; }
.press-source { font-size:0.85rem; font-weight:300; opacity:0.8; margin-top:6px; }
.press-readmore {
  display:inline-block; margin-top:10px;
  font-size:0.85rem; font-weight:300; letter-spacing:0.06em;
  color:#000000; text-decoration:none;
  transition:opacity 0.2s;
}
.press-readmore:hover { opacity:0.65; text-decoration:underline; text-underline-offset:3px; }

/* ── ACTUELLEMENT ── */
.current-body { padding:28px; max-width:855px; line-height:1.5; font-size:0.95rem; }
.current-row {
  padding:14px 0;
}
.current-t       { font-size:1rem; font-weight:700; line-height:1.4; }
.current-caption { font-size:0.95rem; font-weight:300; margin-top:2px; line-height:1.4; }

/* ── CONTACT ── */
.contact-inner { padding:28px 28px; max-width:855px; }
.contact-intro { font-size:0.95rem; margin-bottom:28px; line-height:1.4; }
.contact-intro p  { margin-bottom: 0.8em; line-height: 1.4; }
.contact-intro a  { text-decoration: underline; text-underline-offset: 3px; }
.contact-intro ul,
.contact-intro ol { padding-left: 1.4em; margin-bottom: 0.8em; }
.contact-credits {
  margin-top: 48px; padding-top: 28px;
  font-size: 0.95rem; letter-spacing: 0.05em; line-height: 1.4;
}
.contact-credits h3 {
  font-size: 0.85rem; font-weight: normal; text-transform: uppercase;
}
.contact-credits p {
  margin: 0 0 20px; display: block;
  font-size: 0.75rem; line-height: 1.4; letter-spacing: 0; color: #000;
}
.contact-credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ── LOGO IMAGE ── */
.logo-img { max-height: 36px; width: auto; max-width: 180px; display: block; object-fit: contain; }

/* ── HERO GALLERY ── */
/* Dots — centrés en bas */
.hero-dots-nav {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: row; gap: 12px; z-index: 30;
}
.hero-dot-nav {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer; padding: 0;
  transition: background .4s, transform .35s;
}
.hero-dot-nav.is-active {
  background: white;
  transform: scale(1.3);
}
.hero-dot-nav:hover { background: rgba(255,255,255,0.75); }
@media (max-width: 700px) {
  .hero-dots-nav { bottom: 24px; gap: 10px; }
}

/* ── PROJECT SLIDER ── */
.proj-slider { width:100%; overflow:hidden; user-select:none; }
.proj-slider-track { display:flex; transition:transform 0.55s cubic-bezier(.16,1,.3,1); will-change:transform; cursor:grab; }
.proj-slider-track:active { cursor:grabbing; }
.proj-slide { min-width:100%; height:clamp(260px, 54vw, 600px); display:flex; align-items:center; justify-content:center; background:#f4f2ee; }
.proj-slide img { display:block; width:100%; height:100%; object-fit:contain; cursor:zoom-in; }
.proj-slide-video { position:relative; width:100%; height:100%; }
.proj-slide-video iframe, .proj-slide-video video { position:absolute; inset:0; width:100%; height:100%; border:none; }
.proj-slider-footer {
  display:grid; grid-template-columns:52px 1fr 52px;
  align-items:center; min-height:52px;
  border-top:1px solid var(--line); background:var(--bg);
}
.proj-arrow {
  display:flex; align-items:center; justify-content:center;
  height:52px; background:none; border:none; cursor:pointer;
  color:var(--fg); opacity:.22; transition:opacity .2s;
}
.proj-arrow:hover { opacity:.85; }
.proj-arrow svg { width:15px; height:15px; stroke-width:1.2; }
.proj-slider-mid {
  display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 0;
}
.proj-slider-dots  { display:flex; gap:5px; align-items:center; }
.proj-sdot { width:18px; height:1.5px; border-radius:1px; background:var(--fg); opacity:.18; transition:opacity .25s, width .3s ease; }
.proj-sdot.active  { opacity:.6; width:30px; }
.proj-slider-meta  { display:flex; gap:10px; align-items:center; }
.proj-slider-copy  { font-size:.58rem; letter-spacing:.1em; opacity:.4; }
.proj-slider-count { font-size:.58rem; letter-spacing:.12em; opacity:.28; font-variant-numeric:tabular-nums; }

/* ── LIGHTBOX ── */
#lightbox { display:none; position:fixed; inset:0; z-index:500; background:rgba(247,247,247,.97); align-items:center; justify-content:center; }
#lightbox.open { display:flex; }
.lb-inner { max-width:90vw; max-height:92vh; display:flex; flex-direction:column; align-items:center; }
#lb-img { max-width:100%; max-height:82vh; object-fit:contain; display:block; box-shadow:0 8px 40px rgba(0,0,0,.12); }
.lb-footer { display:flex; justify-content:space-between; align-items:center; width:100%; padding:12px 4px 0; }
.lb-copy  { font-size:.62rem; letter-spacing:.1em; color:rgba(0,0,0,.4); }
.lb-count { font-size:.62rem; letter-spacing:.1em; color:rgba(0,0,0,.25); }
.lb-close { position:fixed; top:20px; right:28px; background:none; border:none; color:var(--fg); font-size:1.8rem; cursor:pointer; line-height:1; opacity:.4; transition:opacity .2s; }
.lb-close:hover { opacity:1; }
.lb-arrow { position:fixed; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.06); border:none; color:var(--fg); width:52px; height:52px; font-size:1.3rem; cursor:pointer; transition:background .2s; display:flex; align-items:center; justify-content:center; }
.lb-arrow:hover { background:rgba(0,0,0,.12); }
.lb-prev { left:20px; }
.lb-next { right:20px; }

/* ── Quill HTML content ── */
.bio-body p, .current-body p { margin-bottom:1.2em; }
.bio-body ul, .current-body ul, .detail-desc ul,
.bio-body ol,  .current-body ol,  .detail-desc ol  { padding-left:1.6em; margin-bottom:1.2em; }
.bio-body li, .current-body li, .detail-desc li { margin-bottom:0.3em; }
.bio-body a, .current-body a, .detail-desc a { text-decoration:underline; text-underline-offset:3px; }
.bio-body strong, .current-body strong, .detail-desc strong { font-weight:500; }
.bio-body em, .current-body em, .detail-desc em { font-style:italic; }

/* ── RESPONSIVE ── */
@media (max-width:960px) {
  :root { --header-h: 88px; }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .site-logo { padding: 14px 28px 0; }
  #nav { padding: 6px 28px 10px; }
  .subnav { padding:0 20px; }
  .projects-grid { grid-template-columns:repeat(2,1fr); }
  .gallery { grid-template-columns:1fr; }
  .gallery img:first-child { aspect-ratio:16/9; }
  .detail-head, .bio-body, .page-head,
  .contact-inner, .current-body, .detail-desc { padding-left:24px; padding-right:24px; }
  .bio-credit, .press-row, .current-row { padding-left:24px; padding-right:24px; }
  .hero-sup { top: 90px; left: 28px; }
  .hero-title { bottom: 56px; left: 28px; max-width: calc(100% - 56px); }
  .lb-arrow { width:36px; height:36px; font-size:1rem; }
  .lb-prev { left:4px; }
  .lb-next { right:4px; }
  .proj-slider-footer { grid-template-columns:44px 1fr 44px; }
  .proj-arrow { height:44px; }
}
@media (max-width:560px) {
  :root { --header-h: 80px; }
  .projects-grid { grid-template-columns:1fr; }
}

/* ── 404 ── */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}
.page-404-inner { max-width: 400px; }
.page-404-num {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.12;
}
.page-404-msg {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-top: -8px;
  margin-bottom: 40px;
}
.page-404-back {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.2s;
  cursor: pointer;
}
.page-404-back:hover { opacity: 1; }

/* ── FEATHER ICONS sur le front ── */
/* Inline SVG via JS — pas de CDN nécessaire */
.hero-chevron, .proj-chevron {
  pointer-events: none;
  display: block;
}

/* ── HERO GALLERY — fondu CSS pur ── */

/* Slides empilés, fondu géré par opacity + transition */
.hero-slide {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  overflow: hidden;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Ken Burns : zoom lent et subtil sur l'image active */
.hero-slide img {
  transform: scale(1);
  transition: transform 8s ease;
}
.hero-slide.is-active img {
  transform: scale(1.06);
}

/* Transitions textes (fade + glissement vertical) */
.hero-sup,
.hero-title {
  transition: opacity 0.38s ease, transform 0.38s ease;
}

/* Mode gallery actif → on cache le <img id="hero-img"> SSR statique */
#hero.is-gallery > #hero-img { display: none; }
