*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nav:     #1E1A17;
  --accent:  #C17A56;
  --accent-dim: rgba(193, 122, 86, 0.1);
  --offwhite: #FAF8F4;
  --text:    #1E1A17;
  --muted:   #8C7D70;
  --gap: 3px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--offwhite);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

a { color: inherit; }

/* ─── NAV (toutes pages) ───────────────────────────── */

nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 36px;
  background: var(--nav);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-back {
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s;
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.18);
}

.nav-back:hover { color: #fff; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-social a {
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-social a:hover { color: #fff; }

.nav-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
}

.nav-name span {
  display: block;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover { color: #fff; }

.nav-links a.active {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.7);
}

/* ─── HOMEPAGE ──────────────────────────────────────── */

.is-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #E8E3DC;
}

.home-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 36px;
}

/* ─── TUILES HOMEPAGE ───────────────────────────────── */

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: min(1280px, calc((100vh - 120px) * 16 / 9));
}

.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #0c0205;
  aspect-ratio: 16 / 9;
}

.tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  transition: transform 0.6s ease, opacity 0.3s;
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 2, 5, 0.3);
  transition: background 0.3s;
}

.tile:hover .tile-bg {
  transform: scale(1.05);
  opacity: 0.75;
}

.tile:hover::after {
  background: rgba(193, 122, 86, 0.35);
}

.tile-label {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}

.tile-label h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tile-label p {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 8px;
}

/* ─── MOODBOARD GALLERY (sketchs) ──────────────────── */

.gallery {
  columns: 3;
  gap: 16px;
  padding: 24px;
}

.gallery-item {
  break-inside: avoid;
  display: block;
  margin-bottom: 16px;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s;
}

.gallery-item:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

/* ─── LIGHTBOX (pure CSS :target) ─────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 2, 5, 0.90);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox:target {
  display: flex;
}

.lightbox-bg {
  position: absolute;
  inset: 0;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 8px 64px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  opacity: 0.55;
  line-height: 1;
  font-weight: 300;
  transition: opacity 0.15s;
}

.lightbox-close:hover { opacity: 1; }

/* ─── ANIMATION PAGE ──────────────────────────────── */

.media-grid {
  columns: 3;
  gap: 16px;
  padding: 24px;
}

.media-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: #111;
}

.media-item video,
.media-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.media-item:hover video,
.media-item:hover img {
  transform: scale(1.02);
}

.media-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(12,2,5,0.72));
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}

.media-item:hover .caption {
  opacity: 1;
}

/* ─── CONTACT PAGE ─────────────────────────────────── */

.contact-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 40px 32px;
}

.contact-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  max-width: 860px;
  width: 100%;
  align-items: center;
}

.contact-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-header {
  margin-bottom: 32px;
}

.contact-header h1 {
  font-size: 52px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.contact-header .tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-location {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.contact-bio {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-email {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s;
}

.contact-email:hover { color: var(--accent); }

.contact-icon {
  color: var(--muted);
  display: flex;
  transition: color 0.15s;
}

.contact-icon:hover { color: var(--accent); }

/* ─── BOUTON PLAY (touch uniquement) ───────────────── */

.play-btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: rgba(12, 2, 5, 0.60);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.play-btn svg { margin-left: 3px; }

.play-btn:active { background: rgba(193, 122, 86, 0.65); }

@media (hover: none) {
  .play-btn { display: flex; }
}

/* ─── BURGER (caché sur desktop) ───────────────────── */

.nav-toggle-input { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.65);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s;
  transform-origin: center;
}

/* ─── RESPONSIVE ───────────────────────────────────── */

@media (max-width: 960px) {
  .gallery { columns: 2; }
  .media-grid { columns: 2; }
}

@media (max-width: 640px) {

  /* Navigation — 1 ligne + dropdown burger */
  nav {
    grid-template-columns: auto 1fr auto;
    padding: 14px 16px;
  }
  .nav-left   { grid-column: 1; grid-row: 1; }
  .nav-name   { grid-column: 2; grid-row: 1; text-align: center; font-size: 13px; }
  .nav-name span { display: none; }
  .nav-burger { grid-column: 3; grid-row: 1; display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav);
    flex-direction: column;
    list-style: none;
    padding: 4px 0 12px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links li + li { border-top: 1px solid rgba(255,255,255,0.05); }
  .nav-links a {
    display: block;
    padding: 13px 20px;
    font-size: 12px;
    letter-spacing: 0.12em;
    border-bottom: none;
  }
  .nav-links a.active {
    color: #fff;
    border-bottom: none;
    border-left: 2px solid rgba(255,255,255,0.6);
    padding-left: 18px;
  }
  .nav-social { gap: 12px; }

  /* Ouverture du menu */
  .nav-toggle-input:checked ~ nav .nav-links { display: flex; }

  /* Burger → X */
  .nav-toggle-input:checked ~ nav .nav-burger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    background: #fff;
  }
  .nav-toggle-input:checked ~ nav .nav-burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle-input:checked ~ nav .nav-burger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    background: #fff;
  }

  /* Galeries */
  .gallery { columns: 1; padding: 12px; gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .media-grid { columns: 1; padding: 12px; }
  .media-item { margin-bottom: 12px; }

  /* Page d'accueil */
  .home-wrap { padding: 12px; }
  .home-grid { grid-template-columns: 1fr; gap: 3px; }
  .tile-label h2 { font-size: 11px; letter-spacing: 0.18em; }
  .tile-label p  { font-size: 9px; }

  /* Contact */
  .contact-wrap  { padding: 20px 16px; }
  .contact-card  { grid-template-columns: 1fr; gap: 24px; }
  .contact-photo { aspect-ratio: 3 / 2; }
  .contact-header { margin-bottom: 20px; }
  .contact-header h1 { font-size: 32px; }
  .contact-bio   { font-size: 14px; margin-bottom: 24px; }
  .contact-links { flex-wrap: wrap; gap: 14px; }
  .contact-email { font-size: 12px; }
}

@media (max-width: 380px) {
  nav { padding: 12px; }
  .gallery { padding: 8px; }
  .media-grid { padding: 8px; }
  .contact-header h1 { font-size: 26px; }
  .home-wrap { padding: 8px; }
}
