/* ════════════════════════════════════════════════════════
   LAWRENCE GIRARD-HODGES — Portfolio CSS
   ════════════════════════════════════════════════════════ */

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

/* ─── Reset liens — supprime le violet/souligné du navigateur ─── */
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

/* ─── Fix liseret blanc sous les images (baseline gap) ─── */
img { display: block; vertical-align: bottom; }
figure { margin: 0; font-size: 0; line-height: 0; }
figure img { display: block; width: 100%; height: 100%; object-fit: cover; }

:root {
  --bg-deep: #08070b;
  --bg-surface: #0e0d13;
  --bg-card: #13121a;
  --bg-elevated: #1a1924;
  --text-primary: #e8e4db;
  --text-secondary: #8a8494;
  --text-muted: #5a5565;
  --accent: #c9a84c;
  --accent-dim: #8a7333;
  --accent-glow: rgba(201, 168, 76, 0.15);
  --red-dark: #6b2020;
  --teal-deep: #1a3a3a;
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-mono: 'Space Mono', monospace;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ═══ NAVIGATION ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(8,7,11,0.95), transparent);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(8,7,11,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.3em; color: var(--accent);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-secondary);
  text-decoration: none; position: relative;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent); }
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-lang {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.6rem;
  padding: 0.3rem 0.8rem; border: 1px solid var(--text-muted);
  color: var(--text-muted); cursor: pointer;
  transition: var(--transition); background: none;
}
.nav-lang img { width: 14px; height: 10px; object-fit: cover; }
.nav-lang:hover { border-color: var(--accent); color: var(--accent); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 1px; background: var(--text-secondary); transition: var(--transition); }

/* ═══ SECTIONS COMMUNES ═══ */
section { padding: 8rem 3rem; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent-dim); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; letter-spacing: 0.03em;
  line-height: 1.2; margin-bottom: 1.5rem;
}
.section-desc { max-width: 550px; color: var(--text-secondary); font-size: 1.1rem; font-weight: 300; }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26,58,58,0.25), transparent),
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(107,32,32,0.12), transparent);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow { 0% { opacity: 0.6; } 100% { opacity: 1; } }
.hero-noise {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-line {
  position: absolute; top: 20%; left: 50%;
  width: 1px; height: 15vh;
  background: linear-gradient(to bottom, transparent, var(--accent-dim), transparent);
  animation: linePulse 3s ease-in-out infinite;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleY(0.8); }
  50% { opacity: 0.7; transform: translateX(-50%) scaleY(1); }
}
.hero-content { position: relative; z-index: 2; padding: 0 1rem; }
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 1s 0.6s forwards;
}
.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% center; } 50% { background-position: 200% center; } }
.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.3rem; font-weight: 300;
  font-style: italic; color: var(--text-secondary);
  margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 1s 0.9s forwards;
}
.hero-tags {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}
.hero-scroll {
  position: absolute; bottom: 3rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fadeUp 1s 1.5s forwards;
}
.hero-scroll span {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.2em; color: var(--text-muted);
  writing-mode: vertical-lr;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: var(--accent-dim);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ FEATURED PROJECT ═══ */
.featured { padding: 0 3rem 8rem; }
.featured-card {
  position: relative; border-radius: 2px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid rgba(201,168,76,0.08);
  transition: border-color 0.4s;
  color: var(--text-primary);
  text-decoration: none;
}
.featured-card:hover { border-color: rgba(201,168,76,0.2); }
.featured-img { position: relative; overflow: hidden; min-height: 500px; font-size: 0; line-height: 0; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.featured-card:hover .featured-img img { transform: scale(1.03); }
.featured-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg-card));
}
.featured-info {
  padding: 4rem;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-card);
}
.featured-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.3rem 0.8rem; margin-bottom: 1.5rem;
}
.featured-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 1.5rem;
}
.featured-desc { color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem; line-height: 1.8; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.featured-tags span {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem; background: var(--accent-glow);
  border: 1px solid rgba(201,168,76,0.25); color: var(--accent-dim);
  text-transform: uppercase;
}
.btn-view {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-primary);
  border: 1px solid var(--text-muted);
  padding: 0.8rem 2rem; text-decoration: none;
  transition: var(--transition); align-self: flex-start;
}
.btn-view:hover { border-color: var(--accent); color: var(--accent); }

/* ═══ WORKS GRID ═══ */
.works { background: var(--bg-surface); }
.works-filters { display: flex; gap: 1rem; flex-wrap: wrap; margin: 3rem 0 2rem; }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  background: none; border: 1px solid transparent;
  padding: 0.5rem 1.2rem; cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { color: var(--accent); border-color: rgba(201,168,76,0.3); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.work-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  font-size: 0; line-height: 0;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.work-item:hover img { transform: scale(1.05); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,7,11,0.9) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-overlay span {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem;
}
.work-overlay h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }

/* ═══ ABOUT ═══ */
.about {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.about-portrait { position: relative; }
.about-portrait img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
}
.about-portrait::before {
  content: ''; position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid rgba(201,168,76,0.2);
  pointer-events: none;
}
.about-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600; margin-bottom: 1.5rem;
}
.about-text p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.1rem; }
.about-text strong { color: var(--text-primary); }
.tools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-top: 2.5rem;
}
.tool {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem 0.5rem; background: var(--bg-card);
  border: 1px solid rgba(201,168,76,0.06);
  transition: border-color 0.3s;
  font-size: 0; line-height: 0;
}
.tool span { font-size: 0.5rem; line-height: 1.2; }
.tool:hover { border-color: rgba(201,168,76,0.2); }
.tool img { width: 32px; height: 32px; object-fit: contain; filter: brightness(0.8); transition: filter 0.3s; display: block; margin: 0 auto; }
.tool:hover img { filter: brightness(1); }
.tool span { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }

/* ═══ CV ═══ */
.cv-section { background: var(--bg-surface); }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 4rem; }
.cv-column h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--accent); margin-bottom: 2rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(201,168,76,0.15);
}
.cv-entry {
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 1.5rem; position: relative;
}
.cv-entry::before {
  content: ''; position: absolute; left: -4px; top: 1.8rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--accent);
}
.cv-date {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em;
  color: var(--accent-dim); text-transform: uppercase;
}
.cv-role { font-family: var(--font-display); font-size: 1.1rem; margin: 0.3rem 0; }
.cv-place { font-family: var(--font-body); color: var(--text-secondary); font-size: 0.95rem; font-style: italic; }
.cv-download {
  display: inline-block; margin-top: 3rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 1rem 2.5rem; text-decoration: none;
  transition: var(--transition);
}
.cv-download:hover { background: var(--accent-glow); border-color: var(--accent); }

/* ═══ CONTACT ═══ */
.contact { text-align: center; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.contact-desc { color: var(--text-secondary); font-size: 1.2rem; max-width: 500px; margin: 0 auto 3rem; }
.contact-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.contact-link {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-secondary);
  text-decoration: none; transition: color 0.3s;
}
.contact-link:hover { color: var(--accent); }
.contact-email {
  display: block;
  font-family: var(--font-body); font-size: 1.2rem; font-weight: 300;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.3s; margin-top: 1rem;
}
.contact-email:hover { color: var(--accent); }

/* ═══ FOOTER ═══ */
footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.1em; color: var(--text-muted);
}
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent); }

/* ═══ STATUS BADGE ═══ */
.status-badge {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0.5rem 1rem;
  background: rgba(8,7,11,0.8); border: 1px solid rgba(201,168,76,0.1);
  backdrop-filter: blur(4px);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4caf50; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══ PAGE PROJET ═══ */
.project-hero {
  min-height: 70vh; position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.project-hero-img { position: absolute; inset: 0; font-size: 0; line-height: 0; }
.project-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-deep) 0%, rgba(8,7,11,0.3) 60%, transparent);
}
.project-hero-content {
  position: relative; z-index: 2;
  padding: 6rem 3rem 4rem; width: 100%;
}
.project-breadcrumb {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em;
  color: var(--text-muted); margin-bottom: 1rem;
}
.project-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.project-breadcrumb a:hover { color: var(--accent); }
.project-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1.1;
}
.project-gallery {
  display: grid; gap: 3px;
  grid-template-columns: repeat(2, 1fr);
}
.gallery-item { overflow: hidden; cursor: pointer; font-size: 0; line-height: 0; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.03); }
.project-info {
  display: grid; grid-template-columns: 2fr 1fr; gap: 6rem;
  padding: 6rem 3rem;
}
.project-desc { font-size: 1.15rem; color: var(--text-secondary); line-height: 2; }
.project-meta { }
.project-meta-item { margin-bottom: 2rem; }
.project-meta-label {
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.3em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 0.5rem;
}
.project-meta-value { font-family: var(--font-display); font-size: 1rem; }
.project-nav {
  display: flex; justify-content: space-between; padding: 3rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.project-nav a {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-secondary);
  text-decoration: none; transition: color 0.3s;
}
.project-nav a:hover { color: var(--accent); }

/* ═══ LIGHTBOX ═══ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,7,11,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--text-muted); cursor: pointer; background: none; border: none;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--text-muted); cursor: pointer;
  background: none; border: none; transition: color 0.3s; padding: 1rem;
}
.lightbox-nav:hover { color: var(--accent); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; gap: 1.5rem; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,7,11,0.98); justify-content: center; align-items: center;
    z-index: 999; gap: 2.5rem;
  }
  .nav-links.open a { font-size: 1rem; }
  .nav-burger { display: flex; z-index: 1000; }
  section { padding: 5rem 1.5rem; }
  .featured { padding: 0 1.5rem 5rem; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 300px; }
  .featured-img::after { background: linear-gradient(to top, var(--bg-card), transparent); }
  .featured-info { padding: 2.5rem 2rem; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .cv-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .project-info { grid-template-columns: 1fr; gap: 3rem; }
  .project-gallery { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .works-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
}
