/* ═══════════════════════════════════════════
   BENOIT BRISSART DESIGN — Design System
   ═══════════════════════════════════════════ */

:root {
  --c1:     #fdfefc;   /* blanc insecte (intro) */
  --c2:     #f3f5f4;   /* blanc branche (contenu) */
  --dark:   #1c1a17;   /* texte sombre */
  --text:   #2e2b26;   /* texte principal */
  --muted:  #8a8279;   /* texte secondaire */
  --line:   rgba(0,0,0,.08);
  --nav-h:  68px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
html, body { width:100%; }
body {
  background: var(--c2);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  overflow-x: clip;
}
img { display:block; max-width:100%; }
a  { color: inherit; text-decoration: none; }

/* ── Navigation ── */
#nav {
  position: fixed; top:0; left:0; right:0; z-index:500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  transition: background .4s ease, backdrop-filter .4s ease;
}
#nav.scrolled {
  background: rgba(253,254,252,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
#nav-logo {
  display: flex; align-items: center; gap: 10px;
}
#nav-logo img { width: 36px; height: 36px; object-fit: contain; }
#nav-logo span {
  font-family: Georgia, serif;
  font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dark);
}
#nav-links {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  list-style: none;
}
#nav-links a {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
  transition: color .25s;
  position: relative;
}
#nav-links a::after {
  content:''; position:absolute; bottom:-3px; left:0; right:0;
  height: 1px; background: var(--dark);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
#nav-links a:hover { color: var(--dark); }
#nav-links a:hover::after, #nav-links a.active::after { transform: scaleX(1); }
#nav-links a.active { color: var(--dark); }

/* ── Hero section page ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 60px;
  padding-left: clamp(24px, 6vw, 120px);
  background: var(--c1);
}
.page-hero-label {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.page-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 400; line-height: 1.05;
  color: var(--dark); letter-spacing: -.01em;
}
.page-hero p {
  margin-top: 20px;
  font-style: italic; font-size: clamp(15px, 1.6vw, 20px);
  color: var(--muted); max-width: 480px; line-height: 1.7;
}

/* ── Fade-in scroll ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity:1; transform: none; }

/* ── Grid projets ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
  background: var(--line);
}
.project-card {
  background: var(--c1);
  overflow: hidden;
  cursor: pointer;
  display: block; /* pour les <a> */
  text-decoration: none;
}
.project-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c2);
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, opacity .4s ease;
}
.project-card:hover .project-card-img img {
  transform: scale(1.04);
}
.project-card-info {
  padding: 20px 24px 28px;
}
.project-card-info h3 {
  font-family: Georgia, serif;
  font-size: 15px; font-weight: 400;
  color: var(--dark); letter-spacing: .04em;
}
.project-card-info p {
  margin-top: 5px;
  font-style: italic; font-size: 12px;
  color: var(--muted); line-height: 1.5;
}

/* ── Section titre intermédiaire ── */
.section-label {
  padding: 72px clamp(24px, 6vw, 120px) 48px;
  background: var(--c2);
}
.section-label h2 {
  font-family: Georgia, serif;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 400; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted);
}
.section-label hr {
  margin-top: 16px; border: none;
  border-top: 1px solid var(--line);
}

/* ── Footer ── */
#footer {
  background: var(--dark);
  padding: 64px clamp(24px, 6vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
#footer img { width: 44px; opacity: .7; filter: invert(1) brightness(2); }
#footer p, #footer a {
  font-size: 11px; letter-spacing: .15em;
  color: rgba(255,255,255,.4);
  line-height: 2; text-transform: uppercase;
}
#footer a:hover { color: rgba(255,255,255,.85); }
#footer-copy {
  font-family: Georgia, serif;
  font-style: italic; font-size: 11px;
  color: rgba(255,255,255,.25); text-transform: none;
  letter-spacing: .05em; text-align: right;
  align-self: end;
}

/* ── Hamburger button ── */
#nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; cursor: pointer;
  background: none; border: none; padding: 0;
}
#nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--dark);
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
#nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#nav-burger.open span:nth-child(2) { opacity: 0; }
#nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 768px) {
  #nav { padding: 0 20px; }
  #nav-logo span { display: none; }
  #nav-burger { display: flex; }

  #nav-links {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(253,254,252,.97);
    backdrop-filter: blur(16px);
    flex-direction: column; align-items: center;
    gap: 0; padding: 20px 0 32px;
    border-bottom: 1px solid var(--line);
    z-index: 499;
  }
  #nav-links.open { display: flex; }
  #nav-links li { width: 100%; text-align: center; }
  #nav-links a {
    display: block; padding: 14px 0;
    font-size: 11px; letter-spacing: .3em;
  }
  #nav-links a::after { display: none; }

  .projects-grid { grid-template-columns: 1fr; gap: 1px; }
  #footer { grid-template-columns: 1fr; }
  #footer-copy { text-align: left; }
}
