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

img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── UTILITAIRES ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1.2rem;
  border-radius: 0 0 4px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 0; }

:root {
  --bg: #111111;
  --bg-section: #161616;
  --bg-card: #1c1c1c;
  --text: #ffffff;
  --text-muted: #c5bfb8;
  --accent: #c8a46e;
  --accent-light: #dfc090;
  --border: #2a2a2a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s;
}

nav .logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

nav .nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }

nav .nav-links li { display: flex; }

nav .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  font-weight: 400;
  white-space: nowrap;
}

nav .nav-links a:hover { color: var(--accent); }

/* ── NAV BURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero .scroll-hint .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── SECTIONS ── */
section { padding: 7rem 3rem; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-divider {
  width: 50px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* ── ABOUT ── */
.about {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  font-weight: 300;
}

.about-quote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.3;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
}

/* ── GALLERY ── */
.gallery-section { background: var(--bg-section); }

.gallery-container {
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-header {
  margin-bottom: 3.5rem;
}

.gallery-header .description {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 550px;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-grid.mixed { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.5s ease, filter 0.5s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.gallery-image-wrapper {
  margin-top: 3rem;
}

.gallery-full-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── PACKSHOT ── */
.packshot-section {
  background: var(--bg);
  position: relative;
}

.packshot-container {
  max-width: 1200px;
  margin: 0 auto;
}

.packshot-intro {
  max-width: 600px;
  margin-bottom: 4rem;
}

.packshot-intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 300;
}

.packshot-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.packshot-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #0a0a0a;
  aspect-ratio: 3 / 2;
  cursor: pointer;
}

.packshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.packshot-card:hover img {
  transform: scale(1.03);
}

.packshot-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.packshot-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.packshot-note {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
}

.packshot-note p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

.packshot-note .highlight {
  color: var(--accent);
  font-weight: 500;
}

/* ── DESIGN ── */
.design-section { background: var(--bg-section); }

.design-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* ── SKILLS ── */
.skills-section {
  background: var(--bg);
}

.skills-container {
  max-width: 1000px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ── CONTACT ── */
.contact-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-section);
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.contact-content .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.contact-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.contact-content .section-divider {
  margin: 0 auto 2rem auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: color 0.3s;
}

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

.contact-link .label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-link .value {
  font-size: 0.95rem;
  font-weight: 300;
}

/* ── FOOTER ── */
footer {
  padding: 2rem 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  animation: fadeIn 0.3s;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.4rem;
  transition: color 0.2s;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #fff;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 0.9rem 1.5rem;
  }

  /* Quand le menu est ouvert : la nav s'étend en plein écran via grid
     (évite le bug backdrop-filter qui casse position:fixed des enfants) */
  nav.nav-open {
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    background: rgba(17,17,17,0.98);
    align-items: start;
  }

  .nav-toggle { display: flex; }

  nav .nav-links {
    display: none;
    list-style: none;
  }

  nav.nav-open .nav-links {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 0 3rem;
  }

  nav .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  section { padding: 4rem 1.2rem; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-quote { font-size: 1.8rem; }
  .packshot-showcase { grid-template-columns: 1fr; }
  .packshot-card { aspect-ratio: 4 / 3; }
  .contact-links { gap: 2rem; }

  .gallery-image-wrapper {
    position: relative;
    cursor: zoom-in;
  }

  .gallery-full-image {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #0a0a0a;
  }

  .gallery-image-wrapper::after {
    content: 'Agrandir';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0,0,0,0.7);
    padding: 4px 10px;
    border-radius: 3px;
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .packshot-card { aspect-ratio: 3 / 2; }
}

/* ── ANIMATION ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PRÉFÉRENCE MOUVEMENT RÉDUIT ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
