/* ============================================================================
   style.css — Portfolio Louise Orione
   ============================================================================ */


/* ─────────────────────────────────────────────────────────────────────────────
   POLICES LOCALES
───────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'PlusJakartaSans';
  src: url('../fonts/PlusJakartaSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlusJakartaSans';
  src: url('../fonts/PlusJakartaSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlusJakartaSans';
  src: url('../fonts/PlusJakartaSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ─────────────────────────────────────────────────────────────────────────────
   1. VARIABLES CSS — THÈME CLAIR
───────────────────────────────────────────────────────────────────────────── */
:root {
  --color-bg:           #ffffff;
  --color-text:         #111111;
  --color-text-muted:   #999992;
  --color-text-faint:   #bbbbb4;
  --color-playhead:     #e63223;
  --color-clip-light:   #d8d6d0;
  --color-clip-mid:     #b0aeab;
  --color-clip-dark:    #7a7975;
  --color-ruler-line:   #d0cec9;
  --color-overlay:      rgba(14, 14, 14, 0.84);
  --color-cursor:       #ff8400;

  --color-topbar-text:  #aaaaaa;
  --color-topbar-hover: #555555;

  --font-mono:   'PlusJakartaSans', monospace;
  --font-serif:  'PlusJakartaSans', serif;

  --header-h:    180px;
  --ruler-top:   82vh;
  --nav-h:       80px;

  --playhead-w:        2px;
  --playhead-left:     80px;
  --canvas-w:    3200px;
  --cursor-size:     22px;

  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 160ms;
  --transition-med:  300ms;
}


/* ─────────────────────────────────────────────────────────────────────────────
   2. THÈME SOMBRE
───────────────────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --color-bg:           #0f0f0f;
  --color-text:         #ececec;
  --color-text-muted:   #666660;
  --color-text-faint:   #444440;
  --color-clip-light:   #2a2a28;
  --color-clip-mid:     #3d3d3a;
  --color-clip-dark:    #545450;
  --color-ruler-line:   #2e2e2c;
  --color-overlay:      rgba(0, 0, 0, 0.88);
  --color-topbar-text:  #444440;
  --color-topbar-hover: #888880;
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. RESET & BASE
───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
  background-color: var(--color-bg);
  height: 100%;
  overflow: hidden;
  cursor: none;
  transition: background-color var(--transition-med), color var(--transition-med);
}

/* Page d'accueil : scroll vertical libre */
body.home-page {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
}

*, a, button { cursor: none !important; }

a {
  color: inherit;
  text-decoration: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. CURSEUR SOLEIL
───────────────────────────────────────────────────────────────────────────── */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width:  var(--cursor-size);
  height: var(--cursor-size);
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity  0.2s,
    width    0.2s var(--ease-out),
    height   0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.custom-cursor svg {
  width: 100%;
  height: 100%;
  animation: sunRotate 8s linear infinite;
}

@keyframes sunRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.custom-cursor.is-visible  { opacity: 1; }
.custom-cursor.is-hovering {
  width:  calc(var(--cursor-size) * 1.6);
  height: calc(var(--cursor-size) * 1.6);
}


/* ─────────────────────────────────────────────────────────────────────────────
   5. HEADER — Logo à gauche + nav + toggles à droite
   La navigation (projets / à propos / archives) est maintenant dans le header,
   regroupée avec les boutons dark mode et langue.
───────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;

  background: transparent;
  pointer-events: none;
}

/* Logo */
.logo {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: auto;
  color: var(--color-text);
}

.logo-svg {
  height: clamp(60px, 18vw, 300px); /* Fluide : 60px sur mobile, 300px sur desktop */
  width: auto;
  display: block;
}

[data-theme="light"] .logo-svg { filter: none; }
[data-theme="dark"]  .logo-svg { filter: invert(1); }


/* ── Groupe haut droite : nav + toggles ──
   Tous les éléments interactifs du header sont regroupés ici. */
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;         /* Espace entre la nav et les toggles */
  pointer-events: auto;
}

/* Navigation en ligne dans le header */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Liens de navigation */
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition-fast);
}

/* Soulignement au hover ou lien actif */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition-med) var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Séparateur visuel entre la nav et les toggles */
.header-sep {
  width: 1px;
  height: 14px;
  background-color: var(--color-ruler-line);
  flex-shrink: 0;
}

/* Groupe des boutons toggle (dark mode + langue) */
.header-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Boutons toggle */
.top-bar-toggle {
  background: none;
  border: none;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--color-topbar-text);
  letter-spacing: 0.06em;
  transition: color var(--transition-fast);
  line-height: 1;
}

.top-bar-toggle:hover {
  color: var(--color-topbar-hover);
}

/* Icônes thème */
.theme-icon { display: none; font-size: 14px; }
[data-theme="light"] .theme-icon--light { display: inline; }
[data-theme="light"] .theme-icon--dark  { display: none;   }
[data-theme="dark"]  .theme-icon--dark  { display: inline; }
[data-theme="dark"]  .theme-icon--light { display: none;   }


/* ─────────────────────────────────────────────────────────────────────────────
   6. CONTACTS EN BAS À GAUCHE
   Positionnés en fixed, sous la règle de la timeline, côté gauche.
   Remplace l'ancienne barre d'outils du header.
───────────────────────────────────────────────────────────────────────────── */
.bottom-contacts {
  position: fixed;
  bottom:16px; /* Collé en bas de l'écran */
  /* Se place juste en dessous de la règle (--ruler-top) */
  top: auto;      /* Annule le top */
  left: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 85;
  pointer-events: none; /* Zone transparente */
}

/* Chaque lien de contact */
.contact-link {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-decoration: none;
  pointer-events: auto;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.contact-link:hover {
  color: var(--color-text);
}

/* Petit point séparateur entre les liens */
.contact-sep {
  font-size: 9px;
  color: var(--color-text-faint);
  user-select: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. PLAYHEAD
───────────────────────────────────────────────────────────────────────────── */
.playhead {
  position: fixed;
  top: 0;
  left: var(--playhead-left, 80px);
  height: var(--ruler-top);
  width: var(--playhead-w);
  background-color: var(--color-playhead);
  z-index: 90;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(230, 50, 35, 0.3);
  transform-origin: top center;
  animation: playheadDrop 0.9s var(--ease-out) 0.1s both;
}

@keyframes playheadDrop {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.playhead-head {
  position: absolute;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 8px;
  border-left:  5px solid transparent;
  border-right: 5px solid transparent;
  border-top:   8px solid var(--color-playhead);
}

.playhead.is-hidden { display: none; }


/* ─────────────────────────────────────────────────────────────────────────────
   8. TIMELINE CANVAS
───────────────────────────────────────────────────────────────────────────── */
.timeline-canvas {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: calc(var(--ruler-top) - var(--header-h) - var(--nav-h));
  width: var(--canvas-w);
  transform: translateX(var(--offset, 0px));
  transition: transform 0.55s var(--ease-out);
  overflow: visible;
}


/* ─────────────────────────────────────────────────────────────────────────────
   9. CLIPS PROJETS
───────────────────────────────────────────────────────────────────────────── */
.project-clip {
  position: absolute;
  left: var(--x);
  top:  var(--y);
  width:  var(--w);
  height: var(--h);
  z-index: var(--z, 1);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
  outline: 1px solid rgba(128, 128, 120, 0.12);
  transition:
    box-shadow var(--transition-med) var(--ease-out),
    transform  var(--transition-med) var(--ease-out),
    outline    var(--transition-fast);
  animation: clipAppear 0.65s var(--ease-out) both;
}

@keyframes clipAppear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.project-clip:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.12);
  outline: 1px solid rgba(128, 128, 120, 0.25);
  z-index: 50 !important;
}

.project-clip:focus-visible {
  outline: 2px solid var(--color-playhead);
  outline-offset: 3px;
}

.clip-media {
  width: 100%;
  height: 100%;
  background-color: var(--color-clip-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out), background-color var(--transition-med);
}

.project-clip:hover .clip-media { transform: scale(1.04); }

.clip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-placeholder {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  pointer-events: none;
}

.clip-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  color: #f0eeeb;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity   var(--transition-med) var(--ease-out),
    transform var(--transition-med) var(--ease-out);
}

.project-clip:hover .clip-overlay { opacity: 1; transform: translateY(0); }

.clip-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 5px;
}

.clip-year {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  opacity: 0.55;
  letter-spacing: 0.08em;
}

.project-clip.mid  .clip-media { background-color: var(--color-clip-mid); }
.project-clip.dark .clip-media { background-color: var(--color-clip-dark); }


/* ─────────────────────────────────────────────────────────────────────────────
   10. RÈGLE TEMPORELLE
───────────────────────────────────────────────────────────────────────────── */
.timeline-ruler {
  position: fixed;
  top: var(--ruler-top);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background-color: transparent;
  overflow: hidden;
}

.timeline-ruler.is-hidden { display: none; }

.ruler-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--canvas-w);
  transform: translateX(var(--offset, 0px));
  transition: transform 0.55s var(--ease-out);
}

.ruler-tick {
  position: absolute;
  top: 0;
  width: 1px;
  background-color: var(--color-ruler-line);
  transition: background-color var(--transition-med);
}

.ruler-tick.major {
  height: 16px;
  background-color: var(--color-text-muted);
  opacity: 0.4;
}

.ruler-tick.minor { height: 9px; }

.ruler-label {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  transition: color var(--transition-med);
}

.ruler-current-year {
  position: absolute;
  top: 3px;
  left: var(--playhead-left, 80px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--color-playhead);
  letter-spacing: 0.06em;
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   11. PAGE À PROPOS
───────────────────────────────────────────────────────────────────────────── */
body.about-page { overflow: auto; }

.about-layout {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: calc(100vh - var(--ruler-top) + var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  padding: 40px 40px 20px 28px;
  overflow: hidden;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 40px;
  border-right: 1px solid var(--color-ruler-line);
}

.about-bio {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text);
  transition: color var(--transition-med);
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  transition: color var(--transition-med);
}

.about-contact-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.about-contact-link:hover { color: var(--color-text); }

.cv-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.cv-intro { color: var(--color-text-muted); font-weight: 300; }

.cv-link {
  color: var(--color-text);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-text-faint);
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.cv-link:hover { text-decoration-color: var(--color-text); }
.cv-sep { color: var(--color-text-faint); font-size: 10px; }

.about-showreel {
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showreel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: var(--color-clip-light);
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: background-color var(--transition-med);
}

.showreel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   12. SCROLLBAR masquée
───────────────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }



/* ─────────────────────────────────────────────────────────────────────────────
   FILTRES TIMELINE — archives.html
───────────────────────────────────────────────────────────────────────────── */
.timeline-filters {
  position: fixed;
  top: calc(var(--header-h) - 36px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 88;
  pointer-events: auto;
}
 
.filter-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid var(--color-ruler-line);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
  transition:
    color        var(--transition-fast),
    border-color var(--transition-fast),
    background   var(--transition-fast);
}
 
.filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}
 
/* Bouton actif — fond rouge discret */
.filter-btn.is-active {
  color: var(--color-playhead);
  border-color: var(--color-playhead);
  background: rgba(230, 50, 35, 0.06);
}


/* ─────────────────────────────────────────────────────────────────────────────
   13. RESPONSIVE
───────────────────────────────────────────────────────────────────────────── */

/* ── Tablette ── */
@media (max-width: 900px) {
  :root {
    --ruler-top:   78vh;
    --cursor-size: 18px;
    --header-h:    120px; /* Header plus compact sur tablette */
  }

  .header-nav { gap: 16px; }

  .about-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
    padding: 24px 20px;
    gap: 32px;
    bottom: calc(100vh - var(--ruler-top));
  }

  .about-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--color-ruler-line);
    padding-bottom: 24px;
  }

  .about-showreel { padding-left: 0; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  :root {
    --header-h:    80px;  /* Header très compact sur mobile */
    --ruler-top:   72vh;
    --nav-h:       100px;
    --cursor-size: 16px;
  }

  /* Header : logo petit à gauche, nav à droite sur une seule ligne */
  .site-header {
    padding: 0 16px;
    align-items: center;
    height: var(--header-h);
  }

  /* Logo SVG réduit — déjà géré par clamp() sur .logo-svg */

  /* Nav compacte */
  .header-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  /* Séparateur et toggles plus compacts */
  .header-sep { display: none; } /* Masque le séparateur sur mobile */

  .header-toggles { gap: 6px; }

  .top-bar-toggle {
    font-size: 9px;
    padding: 0 2px;
  }

  /* Filtres timeline — plus petits et sur plusieurs lignes si besoin */
  .timeline-filters {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 12px;
    top: calc(var(--header-h) - 28px);
  }

  .filter-btn {
    font-size: 8px;
    padding: 3px 9px;
  }

  /* Contacts bas de page */
  .bottom-contacts {
    gap: 8px;
    flex-wrap: wrap;
    font-size: 8px;
    left: 12px;
    bottom: 10px;
  }

  .contact-link { font-size: 8px; }

  /* Footer */
  .home-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }

  .home-footer-contacts { gap: 8px; flex-wrap: wrap; }
  .home-footer-right    { flex-wrap: wrap; gap: 6px; }
  .home-footer-link,
  .home-footer-copy     { font-size: 8px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER COMMUN — utilisé sur archives.html et pages projet
───────────────────────────────────────────────────────────────────────────── */
.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px clamp(24px, 4vw, 60px);
  margin-top: clamp(32px, 5vw, 60px);
  border-top: 1px solid var(--color-ruler-line);
  transition: border-color var(--transition-med);
}

.home-footer-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-footer-link {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-footer-link:hover { color: var(--color-text); }

.home-footer-copy {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color var(--transition-med);
}

.home-footer-sep {
  font-size: 9px;
  color: var(--color-text-faint);
  user-select: none;
}

/* Footer sur la page archives — poussé tout en bas */
body:not(.home-page) .home-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
  background-color: var(--color-bg);
  z-index: 95;
  border-top: 1px solid var(--color-ruler-line);
  padding: 12px clamp(24px, 4vw, 60px);
  transition: background-color var(--transition-med), border-color var(--transition-med);
}

.header-sun {
  color: var(--color-playhead);
  display: flex;
  align-items: center;
}