/*
Theme Name: Emma Portfolio
Theme URI: https://art.letopo.info
Description: Portfolio artistique sur mesure — Emma Wendel STD2A
Version: 1.0
Author: CD
*/

/* ── Fonts ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/BodoniModa.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/BodoniModa-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/BebasNeue.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playpen Sans';
  src: url('fonts/PlaypenSans.ttf') format('truetype');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:        #0D0D0D;
  --bg-card:   #181818;
  --bg-hover:  #202020;
  --text:      #E8E2D8;
  --muted:     #7A7570;
  --accent:    #C9A96E;
  --accent-dk: #A07840;
  --border:    #2A2A2A;
  --font-disp: 'Bebas Neue', 'Impact', sans-serif;
  --font-head: 'Bodoni Moda', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --max-w:     1440px;
  --gap:       1px;
  --radius:    0px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Site Layout ────────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* ── Navigation ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0) 100%);
  transition: background var(--transition);
}
.site-header.scrolled { background: rgba(13,13,13,0.97); }
.site-logo {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: color var(--transition);
}
.site-logo:hover { color: var(--accent); }
.site-logo .logo-dot { color: var(--accent); }
.site-nav ul { display: flex; gap: 2.5rem; align-items: center; }
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: var(--accent);
  border: 1px solid rgba(201,169,110,0.4);
  padding: 0.45rem 1.1rem;
  letter-spacing: 0.1em;
}
.site-nav .nav-cta:hover { background: rgba(201,169,110,0.1); }

/* Menu mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: var(--transition); }

/* ── HERO — Accueil ─────────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a1510 0%, #0D0D0D 70%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.15;
  transform: translateY(-60px);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}
.hero-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero-label::before,
.hero-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.hero-subtitle {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Section intro ──────────────────────────────────────── */
.section-intro {
  padding: 5rem 2.5rem 3rem;
  text-align: center;
}
.section-intro h2 {
  font-family: var(--font-disp);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.section-intro p {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Filtres catégories ─────────────────────────────────── */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 2.5rem 2.5rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1.2rem;
  transition: all var(--transition);
  background: transparent;
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--accent);
  border-color: rgba(201,169,110,0.5);
  background: rgba(201,169,110,0.05);
}

/* ── Grille projets ─────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: 0;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.75) saturate(0.8);
}
.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.55) saturate(0.6);
}
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.8rem;
  transition: opacity var(--transition);
}
.project-card-cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.project-card-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}
.project-card-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201,169,110,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  transition: all var(--transition);
}
.project-card:hover .project-card-arrow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Card sans image ────────────────────────────────────── */
.project-card.no-image {
  background: linear-gradient(135deg, #181818 0%, #222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card.no-image .project-card-overlay {
  background: none;
  position: relative;
  inset: auto;
  text-align: center;
  padding: 2rem;
}

/* ── SINGLE POST ────────────────────────────────────────── */
.single-hero {
  height: 75vh;
  min-height: 450px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,1) 0%, rgba(13,13,13,0.3) 60%, transparent 100%);
}
.single-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 4rem;
}
.single-hero.no-image {
  height: 35vh;
  background: linear-gradient(135deg, #181818, #0D0D0D);
  display: flex;
  align-items: flex-end;
}
.single-cat {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.single-cat::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}
.single-title {
  font-family: var(--font-disp);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--text);
}

/* ── Contenu projet ─────────────────────────────────────── */
.single-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 4rem 6rem;
}
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.meta-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
}
.single-description {
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(232, 226, 216, 0.85);
  max-width: 720px;
  margin-bottom: 4rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

/* ── Galerie images ─────────────────────────────────────── */
.gallery-section h3,
.pdfs-section h3 {
  font-family: var(--font-disp);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gallery-section h3::after,
.pdfs-section h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3px;
  margin-bottom: 4rem;
}
.gallery-item {
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.tall img { height: 380px; }

/* ── PDFs ───────────────────────────────────────────────── */
.pdfs-section { margin-bottom: 4rem; }
.pdf-list { display: flex; flex-direction: column; gap: 0.6rem; }
.pdf-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.pdf-item:hover {
  border-color: rgba(201,169,110,0.4);
  background: var(--bg-hover);
}
.pdf-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.75rem;
  font-family: var(--font-disp);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.pdf-name {
  font-size: 0.88rem;
  color: var(--text);
  flex: 1;
}
.pdf-dl {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.pdf-item:hover .pdf-dl { opacity: 1; }

/* ── Navigation entre projets ───────────────────────────── */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 6rem;
  border-top: 1px solid var(--border);
}
.nav-previous a,
.nav-next a {
  display: block;
  padding: 2.5rem;
  background: var(--bg-card);
  transition: background var(--transition);
}
.nav-previous a:hover,
.nav-next a:hover { background: var(--bg-hover); }
.nav-next a { text-align: right; }
.nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.nav-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
}

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--text); }

/* ── ARCHIVE ────────────────────────────────────────────── */
.archive-header {
  padding: 8rem 2.5rem 3rem;
  text-align: center;
}
.archive-header h1 {
  font-family: var(--font-disp);
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: 0.1em;
  color: var(--text);
}
.archive-header p {
  color: var(--muted);
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-name {
  font-family: var(--font-disp);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-credits {
  font-size: 0.72rem;
  color: var(--border);
  letter-spacing: 0.08em;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open { display: flex; flex-direction: column; position: fixed; inset: 0; background: var(--bg); align-items: center; justify-content: center; gap: 2rem; z-index: 99; }
  .site-nav.open ul { flex-direction: column; text-align: center; gap: 1.5rem; }
  .site-nav.open a { font-size: 1.2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .single-hero-content { padding: 2rem; }
  .single-body { padding: 2.5rem 1.5rem 4rem; }
  .single-title { font-size: clamp(2rem, 10vw, 4rem); }
  .post-navigation { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
}

/* ── 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; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }

/* ── WordPress blocks ───────────────────────────────────── */
.wp-block-gallery { margin: 0; gap: 3px; }
.wp-block-image img { width: 100%; height: auto; }
.alignwide { margin-left: -2rem; margin-right: -2rem; }
.alignfull { margin-left: calc(-4rem); margin-right: calc(-4rem); }
