:root {
  --bg-color: #0a0a0a;
  --text-color: #f0f0f0;
  --accent-color: #cfb586;
  --secondary-text: #888;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Space Grotesk', sans-serif;
}

/* RESET & CURSOR FIX */
* { margin: 0; padding: 0; box-sizing: border-box; }

@media (min-width: 992px) {
    body, a, button, input, textarea { cursor: none !important; }
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* LOADER */
.loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: #fff; color: #000;
  z-index: 10000;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  font-family: var(--font-serif);
}
.loader-text span { font-size: 3rem; display: inline-block; overflow: hidden; }
.loader-counter { margin-top: 20px; font-family: var(--font-sans); font-size: 1.2rem; }

/* CUSTOM CURSOR */
.cursor-dot, .cursor-outline {
  position: fixed; top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 9999;
  pointer-events: none; display: none;
}
@media (min-width: 992px) { .cursor-dot, .cursor-outline { display: block; } }
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-color); }
.cursor-outline {
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* HEADER */
.site-header {
  position: fixed; top: 0; width: 100%;
  padding: 2rem 0; z-index: 100;
  mix-blend-mode: difference;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
}
.logo {
  font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 700; text-decoration: none; color: #fff;
}
.nav { display: flex; align-items: center; }
.nav a {
  margin-left: 2rem; text-decoration: none; color: #fff;
  text-transform: uppercase; font-size: 0.8rem;
  letter-spacing: 1px; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; width: 0; height: 1px;
  bottom: -5px; left: 0; background-color: #fff;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.btn-contact {
  border: 1px solid #fff; padding: 0.5rem 1.5rem;
  border-radius: 50px; transition: all 0.3s ease;
}
.btn-contact:hover { background: #fff; color: #000; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.container { width: 90%; max-width: 1400px; margin: 0 auto; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.1; font-weight: 400;
  mix-blend-mode: exclusion; z-index: 2; position: relative;
}
.hero-title .line { overflow: hidden; }
.hero-title span { display: block; transform: translateY(100%); }
.italic { font-style: italic; font-weight: 300; color: var(--accent-color); }
/* Remplace .hero-bg-img et .hero-bg-img img par ça : */

.hero-bg-video {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%; /* On prend 100% pour être sûr de couvrir */
  height: 100%;
  z-index: 1;
  opacity: 0.4; /* Ajuste l'opacité selon la luminosité de ta vidéo */
  /* filter: grayscale(100%); Active ça si ta vidéo a des couleurs et que tu la veux en N&B */
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial : assure que la vidéo couvre tout l'espace sans être déformée */
  object-position: center;
}

/* Ajustement Mobile pour la vidéo */
@media screen and (max-width: 991px) {
    /* ... tes autres règles mobile ... */
    
    /* On s'assure que la vidéo prend bien toute la place sur mobile aussi */
    .hero-bg-video {
        width: 100%;
        opacity: 0.3; /* Peut-être un peu plus sombre sur mobile pour la lisibilité */
    }
}
.hero-footer {
  position: absolute; bottom: 2rem; left: 5%; width: 90%;
  display: flex; justify-content: space-between;
  text-transform: uppercase; font-size: 0.8rem;
  letter-spacing: 1px; color: var(--secondary-text);
}

/* SECTIONS & ABOUT */
.section { padding: 8rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.about-title h2, .section-header {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400; margin-bottom: 2rem;
}
.lead {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 2rem; color: #fff;
}
.about-content p { color: var(--secondary-text); margin-bottom: 2rem; max-width: 600px; }

/* New Skills Styling */
.skills-wrapper { margin-top: 3rem; }
.skills-label {
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9rem; margin-bottom: 1.5rem; color: var(--accent-color);
}
.tags-container { display: flex; gap: 1rem; flex-wrap: wrap; }
.tag {
  border: 1px solid #333; padding: 0.6rem 1.2rem;
  border-radius: 50px; font-size: 0.85rem;
  text-transform: uppercase; background: rgba(255,255,255,0.03);
  transition: all 0.3s;
}
.tag:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* PROJECTS */
.project-list { display: flex; flex-direction: column; gap: 10rem; margin-top: 5rem; }
.project-item { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.project-item.reverse { direction: rtl; }
.project-item.reverse .project-info { direction: ltr; }
.project-info h3 {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0;
}
.p-cat { color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }
.btn-link {
  display: inline-block; margin-top: 2rem; color: #fff;
  text-decoration: none; border-bottom: 1px solid var(--accent-color);
  padding-bottom: 5px; transition: color 0.3s;
}
.btn-link:hover { color: var(--accent-color); }
.project-visual {
  height: 60vh; width: 100%; overflow: hidden;
  position: relative; border-radius: 8px;
}
.project-visual img {
  width: 100%; height: 120%; object-fit: cover; object-position: center;
}

/* NEW TIMELINE LAYOUT */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
}
.timeline-header {
    font-family: var(--font-serif);
    font-size: 1.8rem; margin-bottom: 2rem;
    color: var(--accent-color); border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}
.t-item { margin-bottom: 3rem; padding-left: 1rem; border-left: 1px solid #333; }
.t-year { font-size: 0.9rem; color: var(--secondary-text); margin-bottom: 0.3rem; }
.t-content h4 { font-size: 1.2rem; font-weight: 500; color: #fff; margin-bottom: 0.2rem; }
.t-role { color: #fff; font-style: italic; font-size: 0.95rem; margin-bottom: 0.5rem; }
.t-content p:last-child { font-size: 0.9rem; color: var(--secondary-text); line-height: 1.4; }

.btn-primary-outline {
    display: inline-block; padding: 1rem 2rem;
    border: 1px solid var(--accent-color); color: var(--accent-color);
    text-decoration: none; text-transform: uppercase;
    font-size: 0.9rem; transition: all 0.3s;
}
.btn-primary-outline:hover { background: var(--accent-color); color: #000; }

/* FOOTER */
.footer { padding: 5rem 0; border-top: 1px solid #222; }
.email-huge {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 6vw, 5rem);
  color: #fff; text-decoration: none; display: block;
  margin: 2rem 0; transition: color 0.3s; word-break: break-all;
}
.email-huge:hover { color: var(--accent-color); }
.socials a { color: var(--secondary-text); margin-right: 2rem; text-decoration: none; font-size: 1.2rem; }
.socials a:hover { color: #fff; }

/* RESPONSIVE */
@media screen and (max-width: 991px) {
  .about-grid, .project-item, .timeline-container { grid-template-columns: 1fr; gap: 3rem; }
  .section, .project-list { padding: 4rem 0; gap: 5rem; }
  .project-item.reverse { direction: ltr; }
  .project-visual { height: 40vh; }
  .hero-bg-img { width: 100%; opacity: 0.2; }
  .nav { overflow-x: auto; white-space: nowrap; margin-left: 1rem; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { margin-left: 1.5rem; font-size: 0.85rem; }
}
@media screen and (max-width: 480px) {
  .hero-footer { display: none; }
  .project-item { display: flex; flex-direction: column-reverse; }
}