/* ════════════════════════════════════════════════════════════════
   PAGES INTERNES — projets / apropos / contact / projet-detail
   ════════════════════════════════════════════════════════════════ */

/* ─── EN-TÊTE DE PAGE ─────────────────────────────────────────── */
.page-head {
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--line);
}

.page-head__crumb {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.page-head__title {
  font-family: var(--f-display);
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.page-head__lede {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: clamp(13px, 1.2vw, 16px);
  max-width: 560px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ─── PROJETS — INDEX ─────────────────────────────────────────── */
.projects-filter {
  display: flex;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.projects-filter::-webkit-scrollbar { display: none; }

.projects-filter button {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  padding: 16px 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.projects-filter button:first-child { padding-left: 0; border-left: none; }
.projects-filter button:hover  { color: var(--ink); }
.projects-filter button.is-active {
  color: var(--ink);
  background: transparent;
  position: relative;
}
.projects-filter button.is-active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}

/* ─── GRILLE PROJETS ──────────────────────────────────────────── */
.projects-grid-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  display: block;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

.project-card:nth-child(2n) { border-right: none; }

/* Overlay blanc au hover */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.project-card:hover::after { opacity: 1; }
.project-card:hover { color: var(--bg); }

/* ── Visuel ── */
.project-card__visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

/* Inversion du visuel au hover (z-index au dessus de l'overlay) */
.project-card__visual,
.project-card__body { position: relative; z-index: 3; }

.project-card:hover .project-card__visual {
  filter: invert(1);
}

/* ════ 8 COMPOSITIONS VISUELLES UNIQUES ════ */

/* 01 — SONIC : Grande croix sigil centrée sur fond blanc */
.v-sonic {
  background: var(--ink);
}
.v-sonic::before {
  content: "†";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 12vw, 160px);
  font-family: var(--f-display);
  color: var(--bg);
  line-height: 1;
  opacity: 0.12;
}
.v-sonic::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.08;
}

/* 02 — STAGE : Lignes obliques agressives, sombre */
.v-stage {
  background: var(--bg);
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent 0px,
      transparent 18px,
      #1e1e1e 18px,
      #1e1e1e 19px
    );
}
.v-stage::before {
  content: "";
  position: absolute;
  top: 50%; left: 10%;
  width: 80%; height: 1px;
  background: var(--ink);
  opacity: 0.15;
  box-shadow: 0 -28px 0 #fff1, 0 28px 0 #fff1;
}

/* 03 — FILM : Scanlines + vignette cinéma */
.v-film {
  background: #0a0a0a;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(255,255,255,0.018) 3px,
      rgba(255,255,255,0.018) 4px
    );
}
.v-film::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.75) 100%);
}
.v-film::after {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: var(--ink);
  opacity: 0.12;
}

/* 04 — GEAR : Croix textile, grille dense */
.v-gear {
  background: var(--ink);
  background-image:
    linear-gradient(var(--bg) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}
.v-gear::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 45%; height: 45%;
  border: 2px solid rgba(0,0,0,0.25);
  clip-path: polygon(50% 0%, 55% 45%, 100% 50%, 55% 55%, 50% 100%, 45% 55%, 0% 50%, 45% 45%);
  background: rgba(0,0,0,0.15);
}

/* 05 — SIGIL : Étoile radiale sur fond noir */
.v-sigil {
  background: var(--bg);
}
.v-sigil::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      #1a1a1a 0deg 5deg,
      transparent 5deg 45deg
    );
  opacity: 0.9;
}
.v-sigil::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px solid rgba(240,240,240,0.08);
  box-shadow: 0 0 0 20px rgba(240,240,240,0.03), 0 0 0 40px rgba(240,240,240,0.02);
}

/* 06 — OBJET : Cercles concentriques métalliques */
.v-objet {
  background: #0d0d0d;
  background-image:
    radial-gradient(circle at 50% 50%, #222 0%, #0d0d0d 60%);
}
.v-objet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0px,
      transparent 18px,
      rgba(240,240,240,0.05) 18px,
      rgba(240,240,240,0.05) 19px
    );
}
.v-objet::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 30%; height: 30%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a, #0a0a0a);
  border: 1px solid rgba(240,240,240,0.1);
}

/* 07 — PROD : Grille technique, repères d'impression */
.v-prod {
  background: var(--ink);
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.v-prod::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
}
.v-prod::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 60%; height: 1px;
  background: rgba(0,0,0,0.15);
  transform: translate(-50%, -50%);
  box-shadow: 0 -15px 0 rgba(0,0,0,0.1), 0 15px 0 rgba(0,0,0,0.1);
}

/* 08 — REEL : Glitch barres horizontales */
.v-reel {
  background: var(--bg);
  overflow: hidden;
}
.v-reel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      180deg,
      transparent 0px, transparent 6px,
      rgba(240,240,240,0.03) 6px, rgba(240,240,240,0.03) 7px
    );
}
.v-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 15%, rgba(240,240,240,0.06) 15%, rgba(240,240,240,0.06) 16%, transparent 16%),
    linear-gradient(transparent 42%, rgba(240,240,240,0.04) 42%, rgba(240,240,240,0.04) 43%, transparent 43%),
    linear-gradient(transparent 68%, rgba(240,240,240,0.08) 68%, rgba(240,240,240,0.08) 70%, transparent 70%),
    linear-gradient(transparent 85%, rgba(240,240,240,0.03) 85%, rgba(240,240,240,0.03) 86%, transparent 86%);
  animation: glitch 6s steps(1) infinite;
}
@keyframes glitch {
  0%, 90%, 100% { transform: translateX(0); opacity: 1; }
  92% { transform: translateX(-3px); opacity: 0.9; }
  94% { transform: translateX(3px); opacity: 1; }
  96% { transform: translateX(-1px); opacity: 0.95; }
}

/* ── Stamp badge ── */
.project-card__visual .stamp {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(5,5,5,0.85);
  color: rgba(240,240,240,0.6);
  padding: 4px 8px;
  backdrop-filter: blur(4px);
  z-index: 4;
  transition: color 0.2s, background 0.2s;
}
.project-card:hover .stamp {
  background: rgba(5,5,5,0.9);
  color: var(--ink);
}

/* ── Body de la carte ── */
.project-card__body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  transition: background 0.3s;
}

.project-card__name {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.project-card__meta {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
  transition: color 0.3s;
}

.project-card:hover .project-card__meta { color: rgba(5,5,5,0.55); }

.project-card__year {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  opacity: 0.25;
  transition: opacity 0.3s;
}

.project-card:hover .project-card__year { opacity: 0.4; }

/* ─── PROJET DETAIL ───────────────────────────────────────────── */
.detail-hero {
  padding: 60px 24px 40px;
  border-bottom: 1px solid var(--line);
}

.detail-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.detail-hero__meta div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-hero__meta .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.detail-hero__meta .value {
  font-family: var(--f-mono);
  font-size: 14px;
}

.detail-hero__title {
  font-family: var(--f-display);
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* Visual pleine largeur */
.detail-visual {
  aspect-ratio: 16 / 7;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

/* Composition atmosphérique par défaut */
.detail-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, var(--bg) 100%);
}

.detail-visual--photo {
  aspect-ratio: 16 / 5;
  background-image: none;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-visual__img {
  max-height: 100%;
  max-width: 60%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(15%) contrast(1.08);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.detail-visual--photo:hover .detail-visual__img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.04);
}

/* Corps du détail */
.detail-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding: 80px 24px;
  border-bottom: 1px solid var(--line);
  max-width: 1300px;
  margin: 0 auto;
}

.detail-body__aside .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  display: block;
  margin-top: 28px;
}

.detail-body__aside .label:first-child { margin-top: 0; }

.detail-body__aside li {
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.detail-body__main h3 {
  font-family: var(--f-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  margin-top: 36px;
}

.detail-body__main h3:first-child { margin-top: 0; }

.detail-body__main p {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.detail-body__main blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 20px;
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.3;
  margin: 36px 0;
  color: var(--ink);
}

/* Galerie */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.detail-gallery > div {
  aspect-ratio: 1;
  border-right: 1px solid var(--line);
  background: var(--bg);
  background-image: repeating-linear-gradient(
    90deg, var(--line) 0 1px, transparent 1px 20px
  );
}

.detail-gallery > div:last-child { border-right: none; }

.detail-gallery > div:nth-child(2) {
  background-image: repeating-linear-gradient(
    0deg, var(--line) 0 1px, transparent 1px 16px
  );
}

.detail-gallery > div:nth-child(3) {
  background-image: repeating-linear-gradient(
    45deg, var(--line) 0 1px, transparent 1px 18px
  );
}

/* Nav projet */
.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.project-nav a {
  padding: 36px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: background 0.2s, color 0.2s;
  color: var(--ink);
}

.project-nav a:first-child { border-right: 1px solid var(--line); }
.project-nav a:hover { background: var(--ink); color: var(--bg); }

.project-nav .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 4px;
}

.project-nav a:hover .label { color: var(--bg); }
.project-nav a:last-child { justify-content: flex-end; text-align: right; }

/* ─── À PROPOS ────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 24px;
  border-bottom: 1px solid var(--line);
  max-width: 1300px;
  margin: 0 auto;
}

.about__portrait {
  aspect-ratio: 3 / 4;
  background: var(--bg);
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s ease;
}

.about__portrait:hover .about__photo {
  filter: grayscale(0%) contrast(1.1);
}

.about__portrait .tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink-soft);
  padding: 6px 10px;
  border: 1px solid var(--line);
  z-index: 1;
}

.about__bio h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about__bio p {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.about__bio strong { color: var(--ink); font-weight: 700; }

/* Timeline */
.timeline {
  padding: 80px 24px;
  border-bottom: 1px solid var(--line);
}

.timeline__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 72px);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
}

.timeline__list {
  border-top: 1px solid var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 100px 160px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.timeline__year {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.02em;
}

.timeline__role {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.timeline__desc {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Compétences */
.skills {
  padding: 80px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
}

.skills .section-num { color: var(--bg); opacity: 0.5; }
.skills .section-title { color: var(--bg); }
.skills .period { background: var(--bg); }

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.skills__list li {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--bg);
  color: var(--bg);
  transition: background 0.2s, color 0.2s;
  cursor: default;
}

.skills__list li:hover { background: var(--bg); color: var(--ink); }

/* ─── CONTACT ─────────────────────────────────────────────────── */
.contact {
  padding: 80px 24px;
  border-bottom: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.contact__big {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 100px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.contact__big a {
  display: block;
  position: relative;
  transition: opacity 0.2s;
}

.contact__big a:hover { opacity: 0.6; }

.contact__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.contact__info > div { display: flex; flex-direction: column; gap: 6px; }

.contact__info .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__info .value {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
}

/* Formulaire */
.contact__form {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact__form .label-text {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__form input,
.contact__form textarea,
.contact__form select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--ink);
  padding: 0;
  resize: vertical;
  width: 100%;
}

.contact__form select option { background: var(--bg); color: var(--ink); }
.contact__form textarea { min-height: 100px; }

.contact__submit {
  margin-top: 20px;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.2s;
}

.contact__submit:hover { opacity: 0.8; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-head { padding: 48px 16px 40px; }
  .projects-grid-large { grid-template-columns: 1fr; }
  .project-card { border-right: none; }
  .detail-body { grid-template-columns: 1fr; gap: 40px; padding: 40px 16px; }
  .detail-hero__meta { grid-template-columns: 1fr 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery > div { border-right: none; border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; gap: 40px; padding: 48px 16px; }
  .timeline { padding: 48px 16px; }
  .timeline__item { grid-template-columns: 80px 1fr; gap: 12px; }
  .timeline__desc { grid-column: 1 / -1; }
  .skills { padding: 48px 16px; }
  .contact { padding: 48px 16px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__info { grid-template-columns: 1fr; }
  .project-nav a { font-size: 16px; padding: 24px 16px; }
}
