/* ============================================================
   Costanza Nyembo Joyce — Portfolio
   Style : Outfit + accents #ff9800, noir/blanc, boutons pilule
   Animations : GSAP / ScrollTrigger / Lenis
   ============================================================ */

@font-face {
  font-family: "Rosalinda Signature";
  src: url("fonts/Rosalinda Signature.woff2") format("woff2"),
       url("fonts/Rosalinda Signature.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --card: #101010;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f2;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-soft: rgba(255, 255, 255, 0.32);
  --accent: #ff9800;
  --accent-soft: rgba(255, 152, 0, 0.12);
  --radius: 18px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-h: 76px;
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 768px) {
  body { font-size: 15px; }
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Charte typographique (Ashley) : titres ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text);
  font-weight: 500;
  line-height: 120%;
}

h1 { font-size: 86px; }
@media (max-width: 1400px) { h1 { font-size: 74px; } }
@media (max-width: 1200px) { h1 { font-size: 72px; } }
@media (max-width: 992px)  { h1 { font-size: 58px; } }
@media (max-width: 768px)  { h1 { font-size: 34px; } }

h2 { font-size: 68px; }
@media (max-width: 1200px) { h2 { font-size: 56px; } }
@media (max-width: 992px)  { h2 { font-size: 44px; } }
@media (max-width: 768px)  { h2 { font-size: 36px; } }

h3 { font-size: 42px; }
@media (max-width: 1200px) { h3 { font-size: 39px; } }
@media (max-width: 992px)  { h3 { font-size: 36px; } }
@media (max-width: 768px)  { h3 { font-size: 30px; } }

h4 { font-size: 28px; }
@media (max-width: 1200px) { h4 { font-size: 26px; } }
@media (max-width: 992px)  { h4 { font-size: 24px; } }
@media (max-width: 768px)  { h4 { font-size: 22px; } }

h5 { font-size: 20px; line-height: 150%; }
@media (max-width: 768px)  { h5 { font-size: 18px; } }

h6 { font-size: 18px; line-height: 150%; }
@media (max-width: 1200px) { h6 { font-size: 17px; } }
@media (max-width: 992px)  { h6 { font-size: 16px; } }
@media (max-width: 768px)  { h6 { font-size: 21px; } }

/* ---- Charte typographique (Ashley) : tailles de texte ---- */
.text-sm { font-size: 15px; }
.text-lg { font-size: 18px; line-height: 170%; }
.text-xl { font-size: 22px; line-height: 180%; }
@media (max-width: 768px) { .text-xl { font-size: 20px; } }

.mil-upper, .upper {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ============================ GRAIN ============================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  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='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================ CURSEUR ============================ */
.cursor { position: fixed; inset: 0; z-index: 2100; pointer-events: none; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
  z-index: 2101;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transform: translate(-50%, -50%);
  z-index: 2100;
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.2s;
}

.cursor.is-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: var(--accent);
}
.cursor.is-hover .cursor-dot { opacity: 0; }

.cursor.is-hidden { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot, .cursor-ring { display: none; }
}

/* ============================ PROGRESS ============================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 2200;
}

/* ============================ PRELOADER ============================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-center { text-align: center; }

.preloader-sig {
  width: min(88vw, 660px);
  height: auto;
  overflow: visible;
}

.preloader-sig path {
  fill: var(--text);
  fill-opacity: 0;
  stroke: var(--text);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 1;
}

/* ============================ HEADER / NAV ============================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled::after {
  opacity: 1;
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 22px;
  font-weight: 500;
}
.brand span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 34px; }

.nav-link {
  position: relative;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  transition: color 0.3s;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 152, 0, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 38px; height: 38px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  position: absolute;
  left: 7px;
  transition: 0.3s;
}
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 22px; }
.nav-toggle.is-open span:first-child { top: 18px; transform: rotate(45deg); }
.nav-toggle.is-open span:last-child { top: 18px; transform: rotate(-45deg); }

/* ============================ BOUTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0 15px 0 50px;
  border-radius: 70px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: 0.4s cubic-bezier(0, 0, 0.3642, 1);
  will-change: transform;
}

.btn-arrow {
  width: 40px; height: 40px;
  flex-shrink: 0;
  margin-left: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.btn-primary { background: var(--accent); color: #000; }
.btn-primary .btn-arrow { background: #000; color: var(--accent); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(255, 152, 0, 0.35); transform: translateY(-2px); }
.btn-primary:hover .btn-arrow { transform: rotate(45deg); }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost .btn-arrow { background: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.btn-ghost:hover .btn-arrow { background: var(--text); color: #000; transform: rotate(45deg); }

.btn-lg { height: 80px; padding: 0 20px 0 60px; }
.btn-lg .btn-arrow { width: 48px; height: 48px; }

/* ============================ EYEBROW / LABELS ============================ */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}

.index {
  color: var(--accent);
  font-weight: 600;
}

.eyebrow::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--line-strong);
}

/* ============================ SECTIONS ============================ */
.section { padding: 130px 0; position: relative; overflow: hidden; }

.section-dark { background: var(--bg-soft); }

.section-head { margin-bottom: 64px; }

.section-head .eyebrow { margin-bottom: 26px; }

.section-title { font-weight: 500; }

.section-title em, .hero-title em, .gallery-title em, .contact-title em {
  font-style: normal;
  font-weight: 200;
  color: var(--accent);
}

/* Mots animés via split */
.split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split .word > .char,
.split .word > .wr {
  display: inline-block;
  will-change: transform;
}

/* ============================ GHOST ============================ */
.ghost {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(90px, 18vw, 260px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.g1 {
  width: 480px; height: 480px;
  background: rgba(255, 152, 0, 0.16);
  top: -120px; right: 8%;
}
.g2 {
  width: 380px; height: 380px;
  background: rgba(255, 152, 0, 0.08);
  bottom: -80px; left: -100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 120px;
}

.hero-eyebrow { margin-bottom: 26px; }

.hero-title {
  font-weight: 500;
}

.hero-roles {
  margin-top: 26px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
}

.hero-roles .sep {
  margin: 0 10px;
  color: var(--accent);
}

.hero-tagline {
  margin-top: 26px;
  max-width: 560px;
  font-size: 18px;
  line-height: 170%;
  font-weight: 300;
  color: var(--muted);
}

.hero-actions { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 44px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted-soft);
}

.meta-item { display: inline-flex; align-items: center; gap: 8px; }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 152, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

/* --- Visual --- */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.hero-comp-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  line-height: 190%;
  max-width: 460px;
  margin-top: 16px;
}
.comp-sep {
  color: var(--accent);
  margin: 0 9px;
  font-weight: 500;
}

.portrait-frame {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
}

.portrait-img { width: 100%; height: 100%; object-fit: cover; }

.portrait-ring {
  position: absolute;
  inset: -16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  animation: spin 30s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lusanzo-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 340px;
  z-index: 2;
}

.lusanzo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.lusanzo-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.lusanzo-poster {
  width: 64px; height: 88px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.lusanzo-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.lusanzo-tag {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.lusanzo-info strong { font-size: 18px; font-weight: 500; letter-spacing: 2px; color: var(--text); }
.lusanzo-sub { font-size: 13px; font-weight: 300; color: var(--muted); }
.lusanzo-arrow { color: var(--accent); font-size: 18px; }

.award-stack {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.award-chip {
  width: 84px;
  height: 84px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.award-chip img { width: 100%; height: 100%; object-fit: contain; }

.marquee-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text);
}
.marquee-track i {
  font-style: normal;
  color: var(--accent);
  font-size: 12px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================ À PROPOS ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.about-visual, .project-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-visual img, .project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-visual:hover img, .project-visual:hover img { transform: scale(1.05); }

.img-reveal img { clip-path: inset(0); }

.section-portrait { padding: 40px 0 0; }
.portrait-showcase {
  position: relative;
  width: min(520px, 82vw);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.portrait-showcase img { width: 100%; height: 100%; object-fit: cover; }
.portrait-showcase .portrait-ring { inset: -22px; }
.portrait-showcase .frame-tag { bottom: 20px; left: 50%; transform: translateX(-50%); }

.frame-tag {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
}

.about-copy .lead { font-size: 22px; line-height: 180%; font-weight: 300; color: var(--text); margin-bottom: 22px; }
.about-copy p:not(.lead) { color: var(--muted); margin-bottom: 18px; font-weight: 300; }

.quote {
  padding: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent);
  margin: 40px 0;
  position: relative;
}
.quote p { font-size: 18px; font-style: normal; font-weight: 300; color: var(--text); margin: 0; line-height: 170%; }
.quote-mark { display: none; }
@media (max-width: 768px) {
  .quote { padding: 30px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.stats li { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: 40px; font-weight: 300; color: var(--text); line-height: 1; }
.stat-num::after { content: "+"; color: var(--accent); font-size: 22px; vertical-align: top; }
.stats span { text-transform: uppercase; font-size: 12px; font-weight: 500; letter-spacing: 2px; color: var(--muted-soft); }

/* --- Cosplay (lié à la page Facebook) --- */
.cosplay-row {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cosplay-media {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.cosplay-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cosplay-media:hover img { transform: scale(1.06); }

.cosplay-tag { color: var(--accent); }
.cosplay-text { flex: 1 1 320px; min-width: 260px; }
.cosplay-text p {
  color: var(--muted);
  max-width: 520px;
  margin: 10px 0 16px;
  font-size: 15px;
}
.cosplay-text .text-link { white-space: nowrap; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.3s;
}
.text-link:hover { color: var(--accent); }
.text-link-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: 0.3s;
}
.text-link:hover .text-link-icon {
  background: var(--accent);
  color: #000;
  transform: rotate(45deg);
}

/* ============================ FORMATION / TIMELINE ============================ */
.formation-grid {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 70px;
  align-items: start;
}

.formation-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.formation-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.formation-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.formation-visual:hover img { transform: scale(1.05); }

.timeline { position: relative; margin-top: 20px; }

.timeline-progress {
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 100%;
  background: var(--line);
  overflow: hidden;
}
.timeline-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  padding: 26px 0 26px 60px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -5px; top: 36px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid var(--line-strong);
  transition: 0.3s;
}
.tl-item.is-visible::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 152, 0, 0.15);
}

.tl-year {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  padding-top: 4px;
}

.tl-content h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.tl-content p { color: var(--muted); max-width: 620px; font-size: 15px; }

/* ============================ COMPÉTENCES ============================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: border-color 0.3s, transform 0.3s;
  will-change: transform;
}
.skill-card:hover { border-color: rgba(255, 152, 0, 0.5); }

.skill-num { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--accent); }

.skill-card h3 { font-size: 28px; margin: 20px 0 12px; }
.skill-card p { font-size: 15px; color: var(--muted); font-weight: 300; }

/* ============================ EXPÉRIENCES ============================ */
.exp-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 70px;
  align-items: start;
}

.exp-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.exp-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.exp-visual:hover img { transform: scale(1.05); }

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

.exp-row {
  display: grid;
  grid-template-columns: 130px 1.2fr 1fr 44px;
  gap: 30px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: 0.3s;
}

.exp-row:hover { padding-left: 14px; }

.exp-year {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.exp-main h3 { font-size: 28px; font-weight: 500; }
.exp-role {
  display: inline-block;
  margin-top: 8px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

.exp-desc { font-size: 15px; color: var(--muted); font-weight: 300; }

.film-thumb {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.film-row:hover .film-thumb { transform: scale(1.05); }

.exp-arrow, .film-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: 0.3s;
}
.exp-row:hover .exp-arrow,
.film-row:hover .film-arrow {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: rotate(-45deg);
}

/* ============================ FILMOGRAPHIE ============================ */
.film-list { border-top: 1px solid var(--line); }

.film-row {
  display: grid;
  grid-template-columns: 70px 1.3fr 1fr 150px 44px;
  gap: 26px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: 0.3s;
}
.film-row:hover { padding-left: 14px; }

.film-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.film-name h3 {
  font-weight: 500;
  line-height: 120%;
}
.film-name h3::after { content: " ↗"; font-size: 0.5em; color: var(--accent); opacity: 0; transition: 0.3s; }
.film-row:hover .film-name h3::after { opacity: 1; }

.film-tag {
  display: inline-block;
  margin-top: 10px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.film-role { font-size: 15px; color: var(--muted); font-weight: 300; }

.awards-marquee {
  margin: 50px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
}
.awards-marquee .marquee-track span { text-transform: uppercase; font-size: 12px; font-weight: 500; letter-spacing: 2px; color: var(--muted); }
.awards-marquee .marquee-track i { color: var(--accent); }

/* ============================ GALERIE ============================ */
.gallery { margin-top: 100px; }

.gallery-title { font-size: 28px; font-weight: 500; margin-bottom: 40px; }

.gallery-strip-wrap { position: relative; }

.gallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
  cursor: grab;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip:active { cursor: grabbing; }

.masonry-item {
  position: relative;
  flex: 0 0 auto;
  width: min(280px, 66vw);
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%);
  opacity: 0;
  transition: 0.4s;
}
.masonry-item:hover::after { opacity: 1; }
.masonry-item:hover img { transform: scale(1.06); }

.masonry-item figcaption {
  position: absolute;
  bottom: 14px; left: 18px;
  z-index: 2;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.4s;
}
.masonry-item:hover figcaption { opacity: 1; transform: translateY(0); }

.gallery-hint {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  transition: opacity 0.5s, transform 0.5s;
}
.gallery-hint i {
  color: var(--accent);
  animation: hint-nudge 1.6s ease-in-out infinite;
}
.gallery-hint.is-hidden { opacity: 0; transform: translateY(6px); }
@keyframes hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* ============================ PROJET ============================ */
.project-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.project-copy .lead { font-size: 22px; line-height: 180%; font-weight: 300; margin-bottom: 20px; }
.project-copy p:not(.lead) { color: var(--muted); margin-bottom: 18px; }
.project-title { margin: 90px 0 54px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badges span {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 8px 16px;
  border-radius: 999px;
  transition: 0.3s;
}
.badges span:hover { border-color: var(--accent); color: var(--accent); }

/* ============================ CONTACT ============================ */
.section-contact { padding-bottom: 120px; }

.section-contact .eyebrow { margin-bottom: 26px; }

.contact-title { font-weight: 500; margin-bottom: 70px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
  will-change: transform;
  position: relative;
}
.contact-card:hover { border-color: rgba(255, 152, 0, 0.5); }

.contact-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted-soft);
}

.contact-value { font-size: 22px; line-height: 180%; font-weight: 300; }

.contact-icon {
  position: absolute;
  top: 26px; right: 26px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: 0.3s;
}
.contact-card:hover .contact-icon { background: var(--accent); color: #000; transform: rotate(45deg); }

.contact-cta { margin-top: 50px; }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 60px;
}
.socials a {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: 0.3s;
}
.socials a:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-4px);
}

/* ============================ FOOTER ============================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-marquee { overflow: hidden; padding: 34px 0; border-bottom: 1px solid var(--line); }
.footer-marquee .marquee-track span {
  font-size: clamp(40px, 8vw, 110px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}
.footer-marquee .marquee-track i { font-size: 30px; color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-note, .footer-meta {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted-soft);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 80px; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .project-grid { grid-template-columns: 1fr; gap: 50px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr; gap: 50px; }
  .film-row { grid-template-columns: 50px 1fr 130px 44px; }
  .film-role { grid-column: 2 / 3; }
  .exp-row { grid-template-columns: 110px 1fr 44px; }
  .exp-desc { grid-column: 2 / 3; }
}

@media (max-width: 720px) {
  .section { padding: 90px 0; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: -1;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-link { font-size: 26px; letter-spacing: 2px; color: var(--text); }
  .nav-toggle { display: block; z-index: 10; }

  .skills-grid { grid-template-columns: 1fr; }
  .masonry-item { width: min(240px, 72vw); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }

  .hero {
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + 10px);
    overflow: visible;
  }
  .hero-grid {
    gap: 40px;
    padding: 0 0 40px;
    text-align: center;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-title { font-size: 30px; }
  .hero-roles { margin-top: 12px; font-size: 11px; letter-spacing: 1.5px; }
  .hero-tagline { margin-top: 14px; font-size: 15px; line-height: 160%; }
  .hero-actions {
    margin-top: 24px;
    width: 100%;
    max-width: 320px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    height: 56px;
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 14px;
  }
  .hero-actions .btn span:not(.btn-arrow) { flex: 1; text-align: center; }
  .hero-actions .btn-arrow { margin-left: auto; }
  .hero-meta { margin-top: 20px; font-size: 11px; letter-spacing: 1.5px; }
  .hero-comp-text { display: none; }
  .hero-visual { order: 0; }

  .formation-grid { grid-template-columns: 1fr; gap: 44px; }

  .film-row {
    grid-template-columns: 36px 1fr 120px;
    grid-template-rows: auto auto;
    padding: 26px 0;
  }
  .film-num { grid-column: 1; grid-row: 1; align-self: start; padding-top: 6px; }
  .film-name { grid-column: 2; grid-row: 1; }
  .film-thumb { grid-column: 3; grid-row: 1; width: 120px; height: 88px; }
  .film-role { grid-column: 1 / 3; grid-row: 2; }
  .film-arrow { display: none; }

  .exp-row {
    grid-template-columns: 1fr 44px;
    padding: 26px 0;
  }
  .exp-year { grid-column: 1; }
  .exp-main { grid-column: 1; }
  .exp-desc { grid-column: 1 / -1; }
  .exp-arrow { display: none; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .portrait-ring, .dot { animation: none !important; }
}

/* ============================ CHARTE : sous-titres h4/h5 ============================ */
@media (max-width: 1200px) {
  .skill-card h3, .exp-main h3, .gallery-title { font-size: 26px; }
}
@media (max-width: 992px) {
  .skill-card h3, .exp-main h3, .gallery-title { font-size: 24px; }
}
@media (max-width: 768px) {
  .skill-card h3, .exp-main h3, .gallery-title { font-size: 22px; }
  .tl-content h3 { font-size: 18px; }
}

/* ============================ IMPRESSION / PDF ============================ */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  html, body {
    background: #0a0a0a !important;
    overflow: visible !important;
  }
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .preloader,
  .grain,
  .cursor, .cursor-dot, .cursor-ring,
  .progress,
  .nav-toggle {
    display: none !important;
  }
  .site-header {
    position: static !important;
    background: none !important;
  }
  .site-header::after { display: none; }
  .hero {
    min-height: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
  }
  .hero-grid { padding: 30px 0 40px; }
  .hero-visual { break-inside: avoid; }
  h1 { font-size: 44px !important; }
  h2 { font-size: 34px !important; }
  h3 { font-size: 24px !important; }
  .ghost { font-size: 70px !important; opacity: 0.08 !important; }
  .section { padding: 30px 0 !important; }
  .section-head { margin-bottom: 18px !important; }
  h1, h2, h3, h4, h5, h6, .section-head { break-inside: avoid; break-after: avoid; }
  .gallery-strip {
    overflow: visible !important;
    flex-wrap: wrap;
    scroll-snap-type: none;
  }
  .masonry-item {
    flex: 0 0 32% !important;
    width: auto !important;
    aspect-ratio: 3/2;
  }
  .img-reveal img {
    clip-path: inset(0) !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .skill-card, .tl-item, .exp-row, .film-row,
  .contact-card, .project-card, .media-card,
  .about-copy p, .badges span {
    break-inside: avoid;
  }
  .ghost { opacity: 0.08 !important; }
  .scroll-hint, .gallery-hint, .footer-marquee { display: none !important; }
}
