/* ================================================================
   LUCAS PORTFOLIO — style.css
   ================================================================

   ┌─────────────────────────────────────────────────────────────┐
   │  PERSONNALISATION RAPIDE                                    │
   │  Modifiez les variables dans :root ci-dessous pour changer  │
   │  couleurs, polices et espacements en quelques secondes.     │
   └─────────────────────────────────────────────────────────────┘

   ================================================================ */


/* ----------------------------------------------------------------
   POLICES PERSONNALISÉES
   Une fois que vous avez placé les fichiers .woff2 dans assets/fonts/,
   décommentez les blocs @font-face correspondants.
   ---------------------------------------------------------------- */

@font-face {
  font-family: 'Aalto Display';
  src: url('assets/fonts/aalto-display-personal-use.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rebeqa';
  src: url('assets/fonts/Rebeqa-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('assets/fonts/Nohemi-Light-BF6438cc5702321.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('assets/fonts/Nohemi-Regular-BF6438cc579d934.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ----------------------------------------------------------------
   VARIABLES DE THÈME — modifiez librement
   ---------------------------------------------------------------- */
:root {

  /* Couleurs */
  --color-bg:       #ffffff;
  --color-bg-alt:   #f5f5f3;
  --color-text:     #0f0f0f;
  --color-muted:    #8a8a8a;
  --color-border:   #e6e6e4;

  /* Typographie */
  --font-body:      'Nohemi', 'Inter', system-ui, sans-serif;
  --font-display:   'Rebeqa', 'Aalto Display', Georgia, serif;

  /* Navigation */
  --nav-height:     62px;
  --nav-bg:         rgba(255, 255, 255, 0.95);

  /* Mise en page */
  --max-width:      1440px;
  --page-padding:   52px;
  --grid-gap:       2px;

  /* Vitesse des transitions */
  --ease:           0.22s ease;
  --ease-slow:      0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--ease);
}

#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-right: auto;
  flex-shrink: 0;
  transition: opacity var(--ease);
}
.nav-logo:hover { opacity: 0.5; }

/* Liens */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-family: 'Satoshi', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-muted);
  transition: color var(--ease);
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}
.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Séparateur */
.nav-sep {
  width: 1px;
  height: 14px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-text);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ----------------------------------------------------------------
   ZONE PRINCIPALE
   ---------------------------------------------------------------- */
#app {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* Animation de transition entre les pages */
.page-enter {
  animation: pageEnter 0.3s ease forwards;
}

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

/* Conteneur standard (pages intérieures) */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px var(--page-padding) 100px;
}


/* ----------------------------------------------------------------
   PAGE D'ACCUEIL — One page scroll
   ---------------------------------------------------------------- */
.home-projects {
  display: flex;
  flex-direction: column;
}

/* Chaque projet = une section plein écran */
.home-project {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 55vh;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

/* Image / couleur de fond */
.home-project-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--ease-slow);
  will-change: transform;
}
.home-project:hover .home-project-bg {
  transform: scale(1.04);
}

/* Overlay sombre de base */
.home-project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

/* Fond derrière le texte — s'assombrit au hover pour meilleure lisibilité */
.home-project-text-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 55%, rgba(0,0,0,0.45) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.home-project:hover .home-project-text-bg {
  opacity: 1;
}

/* Contenu texte centré */
.home-project-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px clamp(24px, 8vw, 140px);
  color: #fff;
  pointer-events: none;
}

/* Grand titre */
.home-project-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 220px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0,0,0,0.2);
  transition: transform var(--ease-slow);
}
.home-project:hover .home-project-title {
  transform: translateY(-4px);
}

/* Description (3-4 lignes) */
.home-project-excerpt {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.72;
  max-width: 540px;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.32s ease 0.06s, transform 0.32s ease 0.06s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.home-project:hover .home-project-excerpt {
  opacity: 0.88;
  transform: translateY(0);
}

/* Catégorie — bas droite */
.home-project-category {
  position: absolute;
  bottom: 22px;
  right: 26px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  z-index: 1;
  transition: color var(--ease);
}
.home-project:hover .home-project-category {
  color: rgba(255, 255, 255, 0.85);
}

/* Numéro — bas gauche */
.home-project-num {
  position: absolute;
  bottom: 22px;
  left: 26px;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  z-index: 1;
  transition: color var(--ease);
}
.home-project:hover .home-project-num {
  color: rgba(255, 255, 255, 0.6);
}


/* ----------------------------------------------------------------
   CARTE PROJET  (catégories — mosaïque hauteur naturelle)
   ---------------------------------------------------------------- */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  outline: none;
  break-inside: avoid; /* pour le layout columns */
}

/* Image cover : pleine résolution, largeur contrainte par la colonne */
.project-card-cover {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--ease-slow);
  will-change: transform;
}

/* Photographie : ratio fixe 2500×1404 (≈16/9) pour uniformiser les cartes */
.category-grid--photo .project-card-cover {
  aspect-ratio: 625 / 351;
  object-fit: cover;
  height: auto;
}
.project-card:hover .project-card-cover,
.project-card:focus-visible .project-card-cover {
  transform: scale(1.05);
}

/* Fallback couleur (pas d'image) : ratio 16:9 par défaut */
.project-card-cover--color {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Dégradé overlay */
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.20) 40%,
    rgba(0, 0, 0, 0.02) 100%
  );
  transition: opacity var(--ease);
}
.project-card:hover .project-card-overlay {
  opacity: 0.85;
}

/* Texte sur la carte */
.project-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 26px 22px;
  color: #fff;
  transform: translateY(4px);
  transition: transform var(--ease-slow);
}
.project-card:hover .project-card-info {
  transform: translateY(0);
}

.project-card-category {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  margin-bottom: 6px;
  transition: opacity var(--ease);
  transform: translateY(4px);
}
.project-card:hover .project-card-category {
  opacity: 0.75;
  transform: translateY(0);
}

/* Sur la home, on affiche toujours la catégorie sur la grande carte */
.home-grid .project-card:first-child .project-card-category {
  opacity: 0.7;
  transform: none;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}

/* Like count overlay sur les cards */
.card-like-count {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  z-index: 3;
}
.project-card:hover .card-like-count:not(:empty),
.home-project:hover .card-like-count:not(:empty) {
  opacity: 1;
}

/* Petit indicateur "voir le projet" */
.project-card-arrow {
  position: absolute;
  top: 20px; right: 22px;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--ease), transform var(--ease);
}
.project-card-arrow svg {
  width: 12px; height: 12px;
  stroke: #fff; fill: none;
  stroke-width: 1.5;
}
.project-card:hover .project-card-arrow {
  opacity: 1;
  transform: scale(1);
}


/* ----------------------------------------------------------------
   PAGE CATÉGORIE
   ---------------------------------------------------------------- */
.category-header {
  padding-bottom: 30px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--color-border);
}

.category-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.category-title {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.category-count {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.category-grid {
  columns: 3;
  column-gap: 0;
}

.category-empty {
  font-size: 15px;
  color: var(--color-muted);
  padding: 60px 0;
  font-style: italic;
}

/* ── Comportement des cartes dans les pages catégorie ── */

/* Cacher la catégorie sur les cartes */
.category-grid .project-card-category {
  display: none;
}

/* Titre caché par défaut, apparaît au hover en grand */
.category-grid .project-card-title {
  font-size: clamp(20px, 2.8vw, 40px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.category-grid .project-card:hover .project-card-title {
  opacity: 1;
  transform: translateY(0);
}

/* Masquer la flèche aussi */
.category-grid .project-card-arrow {
  display: none;
}


/* ----------------------------------------------------------------
   PAGE PROJET — Layout ArtStation
   ---------------------------------------------------------------- */

/* Vidéo : plein écran de la colonne, sans bandes noires */
.project-video-block {
  width: 100%;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.project-video-block video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* YouTube / Vimeo : même hauteur plein écran */
.project-video-block--iframe {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
}
.project-video-block--iframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Layout 2 colonnes : médias + sidebar */
.project-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: start;
}

/* Colonne médias — grid 2 colonnes pour pairer les images portrait */
.project-media-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}
.project-media-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blocs pleine largeur */
.project-video-block,
.block-text,
.block-image-grid,
.block-video {
  grid-column: 1 / -1;
}

/* Images : pleine largeur par défaut, demi-largeur si portrait en paire */
.block-image {
  grid-column: 1 / -1;
}
.block-image.portrait {
  grid-column: auto;
}
/* Portrait seul : pleine largeur mais centré à 50% */
.block-image.portrait-solo {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}
.block-image.portrait-solo img {
  width: 50%;
}

/* ============================================================
   PAGE PROJET PHOTO — mosaïque pleine largeur
   ============================================================ */
.photo-project-page {
  padding: 0;
}

.photo-project-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 52px 48px 40px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.photo-project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-project-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.photo-project-excerpt {
  font-size: 14px;
  opacity: 0.6;
  max-width: 520px;
  margin: 0;
}

.photo-project-date {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
  margin: 0;
}

.project-breadcrumb-link {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
  text-decoration: none;
  transition: opacity var(--ease);
}
.project-breadcrumb-link:hover { opacity: 1; }

/* Mosaïque photos — CSS columns pour hauteurs naturelles */
.photo-mosaic {
  columns: 3;
  column-gap: 4px;
  padding: 4px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 4px;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-loading {
  column-span: all;
  text-align: center;
  opacity: 0.4;
  padding: 80px 0;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .photo-mosaic { columns: 2; }
  .photo-project-header { padding: 32px 24px 28px; }
}
@media (max-width: 540px) {
  .photo-mosaic { columns: 1; }
}

/* Sidebar info — reste visible pendant le scroll */
.project-info-sidebar {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  padding: 52px 40px;
  border-left: 1px solid var(--color-border);
}

/* Fil d'Ariane */
.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.project-breadcrumb a { transition: color var(--ease); }
.project-breadcrumb a:hover { color: var(--color-text); }
.project-breadcrumb span { opacity: 0.35; }

/* Titre dans la sidebar */
.project-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* Description dans la sidebar */
.project-excerpt {
  font-size: 14px;
  line-height: 1.80;
  color: #555;
  font-weight: 300;
}

/* Navigation prev / next */
.project-sibling-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.project-sibling-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--ease);
  text-decoration: none;
}
.project-sibling-btn:hover { color: var(--color-text); }

.project-sibling-arrow {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.project-sibling-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

/* ── Blocs dans la colonne médias ── */

/* Texte */
.block-text {
  padding: 40px;
}
.block-text p {
  font-size: 15px;
  line-height: 1.85;
  color: #3a3a3a;
  font-weight: 300;
}
.block-text p + p { margin-top: 16px; }

/* Image simple */
.block-image img { width: 100%; height: auto; display: block; }
.block-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--color-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
}
.block-caption {
  font-size: 11.5px;
  color: var(--color-muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
  font-style: italic;
  padding: 0 4px;
}

/* Vidéo secondaire (dans la colonne médias) */
.block-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.block-video iframe,
.block-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: contain;
}
.block-video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--color-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px dashed var(--color-border);
}

/* Grille 2 images */
.block-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}
.block-image-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.block-image-grid .block-image-placeholder {
  aspect-ratio: 4/3;
}


/* ----------------------------------------------------------------
   PAGE À PROPOS
   ---------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 88px;
  align-items: start;
}

.about-photo,
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.about-content h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.85;
  color: #444;
  max-width: 540px;
  font-weight: 300;
  margin-bottom: 22px;
}

.about-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}
.about-discipline-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}


/* ----------------------------------------------------------------
   PAGE CONTACT
   ---------------------------------------------------------------- */
.contact-wrap { max-width: 540px; }

.contact-wrap h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.contact-wrap > p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  font-weight: 300;
  margin-bottom: 40px;
}

.contact-email {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 3px;
  display: inline-block;
  letter-spacing: 0.01em;
  transition: opacity var(--ease);
}
.contact-email:hover { opacity: 0.4; }

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.contact-socials a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--ease);
}
.contact-socials a:hover { color: var(--color-text); }


/* ----------------------------------------------------------------
   404
   ---------------------------------------------------------------- */
.not-found {
  text-align: center;
  padding: 130px var(--page-padding) 100px;
}
.not-found h1 {
  font-family: var(--font-display);
  font-size: 110px;
  font-weight: 300;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found p {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 40px;
  font-weight: 300;
}


/* ----------------------------------------------------------------
   BOUTON GÉNÉRIQUE
   ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}


/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--color-border);
  padding: 30px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}
footer p {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}


/* ----------------------------------------------------------------
   RESPONSIVE — Tablette
   ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --page-padding: 36px; }
  .about-grid { grid-template-columns: 280px 1fr; gap: 56px; }
  .project-body { grid-template-columns: 1fr 260px; }
  .project-info-sidebar { padding: 40px 28px; }
  .project-title { font-size: 26px; }
  .category-grid { columns: 2; }
}


/* ----------------------------------------------------------------
   RESPONSIVE — Mobile
   ---------------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --page-padding: 18px; }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
  }
  .nav-links.open { display: flex; }
  .nav-link {
    display: block;
    width: 100%;
    padding: 13px var(--page-padding);
    font-size: 10.5px;
  }
  .nav-link::after { display: none; }
  .nav-sep { display: none; }
  .nav-burger { display: flex; }

  /* Grilles */
  .category-grid { columns: 1; }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-grid .project-card:first-child {
    grid-column: 1;
  }
  .home-grid .project-card:first-child::before { padding-top: 60%; }
  .home-grid .project-card:first-child .project-card-title { font-size: 28px; }

    /* Home mobile : réduire la hauteur min */
  .home-project { aspect-ratio: 4/3; min-height: 40vh; }
  .home-project-title { font-size: 28px; }
  .home-project-excerpt { opacity: 0.8; transform: none; } /* toujours visible sur mobile */

  /* Afficher la catégorie sur les cartes en mobile */
  .project-card-category { opacity: 0.7 !important; transform: none !important; }

  /* À propos */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo, .about-photo-placeholder { aspect-ratio: 4/3; }
  .about-content h1 { font-size: 36px; }

  /* Projet */
  .project-body { grid-template-columns: 1fr; }
  .project-info-sidebar {
    position: static;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 32px var(--page-padding) 48px;
  }
  .project-title { font-size: 26px; }
  .block-image-grid { grid-template-columns: 1fr; }

  /* Divers */
  .category-title { font-size: 34px; }
  .contact-wrap h1 { font-size: 36px; }
  .home-intro { flex-direction: column; gap: 6px; }
  .category-header-top { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ============================================================
   LECTEUR BANDE-DESSINÉE
   ============================================================ */
.bd-reader {
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Barre top fixe */
.bd-topbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 10;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 16px;
}

.bd-back {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
}
.bd-back:hover { color: #fff; }

.bd-topbar-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  flex: 1;
  text-align: center;
}

.bd-counter {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* Barre de chargement */
.bd-loading-bar {
  height: 2px;
  background: rgba(255,255,255,0.08);
  width: 100%;
}
.bd-loading-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.2s ease;
}

/* Zone de pages */
.bd-pages {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 24px 0 48px;
}

.bd-page {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation prev/next en bas */
.bd-sibling-nav {
  display: flex;
  justify-content: space-between;
  padding: 32px 24px 48px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.bd-sibling-btn {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--ease);
}
.bd-sibling-btn:hover { color: #fff; }

/* Carte BD dans la mosaïque catégorie */
.category-grid .project-card[data-category="bande-dessinee"] .project-card-cover--color {
  aspect-ratio: 3 / 4;
}


/* ================================================================
   MUSIQUE — Portail mot de passe
   ================================================================ */

.music-gate {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-gate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.music-gate-label {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.music-gate-box form {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
}

.music-gate-input {
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-text);
  width: 220px;
}

.music-gate-btn {
  padding: 10px 16px;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: opacity var(--ease);
}
.music-gate-btn:hover { opacity: 0.75; }

.music-gate-error {
  font-size: 12px;
  color: #c00;
  min-height: 16px;
}


/* ================================================================
   MUSIQUE — Page lecteur
   ================================================================ */

.music-page {
  padding-bottom: 80px;
}

.music-tracks {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.music-track {
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}
.music-track:first-child { border-top: 1px solid var(--color-border); }

.music-track-like {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.music-track-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.music-track-num {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.music-track-meta { flex: 1; }

.music-track-title {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.music-track-excerpt {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}

.music-track-date {
  font-size: 11px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.music-track-player {
  display: flex;
  align-items: center;
  gap: 14px;
}

.music-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}
.music-play-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.music-waveform {
  flex: 1;
  cursor: pointer;
}

.music-time {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
  text-align: right;
}

/* Barre de progression de secours (file:// ou si WaveSurfer échoue) */
.music-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.music-progress-fill {
  height: 100%;
  background: var(--color-text);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}


/* ================================================================
   LIKES — Bouton cœur dans la sidebar
   ================================================================ */

.project-like-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.like-heart {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--color-border);
  transition: color var(--ease), transform 0.15s ease;
  line-height: 1;
  padding: 0;
}
.like-heart:hover        { color: #e05; transform: scale(1.15); }
.like-heart.liked        { color: #e05; }
.like-heart.liked:hover  { color: #b00; transform: scale(1.15); }

.like-count {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  min-width: 16px;
}

/* Overlay like count sur les images au hover */
.block-image {
  position: relative;
}
.block-image-like-count {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.block-image:hover .block-image-like-count:not(:empty) {
  opacity: 1;
}


/* ================================================================
   STATS — Page statistiques
   ================================================================ */

.stats-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px var(--page-padding) 80px;
}

.stats-title {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.stats-card {
  background: var(--color-bg-alt);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-card-num {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats-card-label {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-section-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
  margin-top: 36px;
}

.stats-table-wrap { overflow-x: auto; }

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.stats-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}
.stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}
.stats-num {
  text-align: right;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.stats-loading {
  color: var(--color-muted);
  font-size: 13px;
  padding: 16px 0;
}
