/* =========================================================
   Modern layer — additive enhancements over style.css
   Touche de modernité sans toucher l'original.
   ========================================================= */

:root {
  --m-ease: cubic-bezier(.22,1,.36,1);
  --m-font-italic: 'Fraunces', Georgia, serif;
}

/* ---------- SCROLL PROGRESS ---------- */
.m-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 10000;
  pointer-events: none;
  background: transparent;
}
.m-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent, #c44d2b);
  transition: width .1s linear;
}
/* Cacher la barre de progression tant que l'intro est visible */
body:has(#intro:not(.gone)) .m-progress { opacity: 0; }

/* ---------- PULSE DOT on nav (availability) ---------- */
.m-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light, #5a5549);
  padding: 6px 12px;
  border: 1px solid rgba(26,26,26,.12);
  border-radius: 999px;
  background: rgba(255,252,247,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.m-availability::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3fa15d;
  box-shadow: 0 0 0 3px rgba(63,161,93,.22);
  animation: m-pulse 2.2s var(--m-ease) infinite;
}
@keyframes m-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(63,161,93,.22); }
  50% { box-shadow: 0 0 0 7px rgba(63,161,93,0); }
}

/* ---------- TITRE HERO — accent italique moderne ---------- */
/* On fait de la 2e ligne du titre un italic serif terracotta
   sans toucher au HTML existant */
.hero-title .line:nth-child(2) {
  font-family: var(--m-font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent, #c44d2b);
  letter-spacing: -0.02em;
}

/* Petit dot après le nom, façon éditorial */
.hero-title .line:nth-child(2)::after {
  content: ".";
  color: var(--text, #1a1a1a);
  font-style: normal;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
}

/* ---------- SECTION TITLE — accent italic ---------- */
.section-title .accent {
  font-family: var(--m-font-italic);
  font-style: italic;
  font-weight: 400;
}

/* ---------- TICKER (marquee horizontal) ---------- */
.m-ticker {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(26,26,26,.12);
  border-bottom: 1px solid rgba(26,26,26,.12);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.m-ticker-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  padding-right: 36px;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: -.01em;
  color: var(--text, #1a1a1a);
  animation: m-ticker 38s linear infinite;
  will-change: transform;
}
.m-ticker-track span { flex-shrink: 0; }
.m-ticker-track .m-sep {
  color: var(--accent, #c44d2b);
  font-family: var(--m-font-italic);
  font-style: italic;
  font-weight: 400;
}
@keyframes m-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- BUTTONS — wipe terracotta visible (override le :hover natif qui
   passait le bouton en terracotta et masquait le wipe) ---------- */
.hero-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent, #c44d2b);
  transform: translateY(101%);
  transition: transform .55s cubic-bezier(.76,0,.24,1);
  z-index: -1;
}
.hero-cta:hover::before { transform: translateY(0); }

/* On force le bouton à RESTER noir au hover, sinon style.css le passe
   en terracotta et le wipe terracotta devient invisible */
.hero-cta:hover {
  background: var(--text, #1a1a1a) !important;
  color: var(--bg, #f8f3ec) !important;
}

/* Petite flèche qui glisse en bonus */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: gap .35s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.hero-cta::after {
  content: "→";
  display: inline-block;
  width: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1), width .35s cubic-bezier(.22,1,.36,1);
  font-weight: 400;
}
.hero-cta:hover {
  gap: 10px;
}
.hero-cta:hover::after {
  width: 1em;
  opacity: 1;
  transform: translateX(0);
}

/* Dark mode : garde le contraste */
[data-theme="dark"] .hero-cta:hover {
  background: #2a2018 !important;
  color: #f0e8dc !important;
}

/* ---------- CTA page cards — micro-interaction ---------- */
.cta-page-card {
  transition: transform .45s var(--m-ease),
              box-shadow .45s var(--m-ease),
              border-color .3s;
}
.cta-page-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(26,26,26,.18);
}
.cta-page-card:hover .cta-page-number {
  color: var(--accent, #c44d2b);
  transition: color .35s var(--m-ease);
}
.cta-page-card .cta-page-arrow {
  transition: transform .45s var(--m-ease);
}
.cta-page-card:hover .cta-page-arrow {
  transform: translate(4px, -4px) rotate(-8deg);
}

/* ---------- TAGS — lift on hover ---------- */
.tag {
  transition: transform .3s var(--m-ease),
              background .3s, color .3s, border-color .3s;
}
.tag:hover {
  transform: translateY(-2px);
}

/* ---------- CONTACT LINKS — slide doux (sans casser la transition "all" de style.css) ---------- */
.contact-link {
  position: relative;
  transition: padding .35s var(--m-ease),
              background .3s ease,
              color .3s ease,
              border-color .3s ease;
}
.contact-link:hover {
  padding-left: calc(1.5rem + 6px);
}

/* ---------- FOOTER — nom géant outline ---------- */
.footer {
  position: relative;
  overflow: hidden;
}
.m-footer-giant {
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 22vw, 380px);
  line-height: .82;
  letter-spacing: -.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26,26,26,.18);
  user-select: none;
  pointer-events: none;
  margin-top: 24px;
  padding-bottom: 10px;
}

/* ---------- PAGE HERO (sous-pages) — version élargie ---------- */
/* Le hero remplit l'espace : titre XXL, ligne italique décalée à droite,
   meta-bar éditorial en haut, plus de souffle vertical */

.page-hero {
  padding: 11rem 0 6rem !important;
  position: relative;
  overflow: hidden;
}

/* Bandeau meta en haut (catégorie + auteur) */
.m-page-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(26,26,26,.15);
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.m-meta-kicker {
  color: var(--text, #1a1a1a);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.m-meta-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #c44d2b);
}
.m-meta-year {
  color: var(--text-light, #5a5549);
}

/* Label numérique géant — beaucoup plus présent, posé tout à droite */
.page-hero-label {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 60px);
  transform: translateY(-50%);
  font-family: var(--m-font-italic) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: clamp(12rem, 24vw, 22rem) !important;
  line-height: .8 !important;
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(196, 77, 43, 0.35);
  letter-spacing: -.04em !important;
  margin: 0 !important;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Titre XXL qui remplit la largeur */
.page-hero-title {
  font-size: clamp(3.2rem, 9vw, 8.5rem) !important;
  line-height: .92 !important;
  letter-spacing: -0.035em !important;
  margin-bottom: 2.5rem !important;
  position: relative;
  z-index: 1;
}

/* Première ligne : sans-serif normal */
.page-hero-title { display: block; }

/* Deuxième ligne (.light) : Fraunces italique terracotta, décalée à droite */
.page-hero-title .light {
  display: inline-block;
  font-family: var(--m-font-italic) !important;
  font-style: italic;
  font-weight: 400 !important;
  color: var(--accent, #c44d2b) !important;
  padding-left: clamp(40px, 8vw, 140px);
  letter-spacing: -.02em;
}

/* Description plus présente, alignée avec la 2e ligne */
.page-hero-desc {
  font-family: var(--m-font-italic) !important;
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem) !important;
  line-height: 1.5 !important;
  color: var(--text, #1a1a1a) !important;
  max-width: 52ch !important;
  padding-left: clamp(40px, 8vw, 140px);
  position: relative;
  z-index: 1;
}

/* Accent bar : repositionnée + un peu plus large */
.page-hero-accent {
  margin-left: clamp(40px, 8vw, 140px);
  margin-top: 2rem !important;
}

/* Back link : remonté au-dessus de la meta */
.back-link {
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
  display: inline-flex;
}

@media (max-width: 900px) {
  .page-hero { padding: 9rem 0 4rem !important; }
  .page-hero-label {
    position: relative;
    top: auto; right: auto; transform: none;
    text-align: right;
    font-size: clamp(7rem, 18vw, 12rem) !important;
    margin-bottom: -1.5rem !important;
  }
  .page-hero-title .light,
  .page-hero-desc,
  .page-hero-accent {
    padding-left: 0;
    margin-left: 0;
  }
  .m-page-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
  }
}

/* ---------- PAGE HERO — Fraunces italique sur .light ---------- */
/* Exactement le même geste que sur la home ("Lavagna") pour la cohérence */
.page-hero-title .light {
  font-family: var(--m-font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent, #c44d2b);
  letter-spacing: -.01em;
}

/* Label numérique plus présent mais toujours subtil */
.page-hero-label {
  color: rgba(26,26,26,.06) !important;
  font-family: var(--m-font-italic) !important;
  font-style: italic;
  font-weight: 600 !important;
  letter-spacing: -.03em;
}

/* Accent bar -> terracotta avec animation */
.page-hero-accent {
  width: 60px !important;
  position: relative;
  overflow: hidden;
}
.page-hero-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  transform: translateX(-100%);
  animation: m-shimmer 3s var(--m-ease) infinite;
}
@keyframes m-shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(200%); }
}

/* Back link — flèche qui glisse */
.back-link {
  transition: padding .35s var(--m-ease), color .3s;
}
.back-link:hover {
  padding-left: 6px;
  color: var(--accent, #c44d2b) !important;
}
.back-link svg {
  transition: transform .35s var(--m-ease);
}
.back-link:hover svg { transform: translateX(-4px); }

/* ---------- RESPECT MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .m-ticker-track { animation: none !important; }
  .m-availability::before { animation: none !important; }
  .m-mini-vinyl { animation: none !important; }
  .page-hero-accent::after { animation: none !important; }
  .hero-cta::before,
  .download-btn::before,
  .download-pill::before { transition: none !important; }
}
/* =========================================================
   MODERN PLUS — Couche de polish premium (testable)
   À retirer simplement en supprimant les <link>/<script>
   modern-plus.* dans les pages.
   ========================================================= */

/* ---------- 1. VIEW TRANSITIONS — désactivé pour ne pas casser Lenis sur la home ---------- */
/* Pas de @view-transition global. On garde uniquement les keyframes ci-dessous
   pour le wipe circulaire du dark mode toggle. */

/* ---------- DARK MODE — wipe circulaire depuis le toggle ---------- */
/* Désactive complètement le crossfade root par défaut (qui ferait clignoter le bg) */
html.mp-vt-to-dark::view-transition-old(root),
html.mp-vt-to-dark::view-transition-new(root),
html.mp-vt-to-light::view-transition-old(root),
html.mp-vt-to-light::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
/* L'ancien (clair) reste en dessous, on dévoile le nouveau (sombre) en cercle */
html.mp-vt-to-dark::view-transition-old(root) { z-index: 1; }
html.mp-vt-to-dark::view-transition-new(root) {
  z-index: 2;
  animation: mp-clip-in .8s cubic-bezier(.76,0,.24,1) both;
}
/* Inverse : on cache le sombre en se rétractant pour révéler le clair */
html.mp-vt-to-light::view-transition-new(root) { z-index: 1; }
html.mp-vt-to-light::view-transition-old(root) {
  z-index: 2;
  animation: mp-clip-out .8s cubic-bezier(.76,0,.24,1) both;
}
@keyframes mp-clip-in {
  from { clip-path: circle(0 at var(--mp-cx, 50%) var(--mp-cy, 50%)); }
  to   { clip-path: circle(var(--mp-r, 150vmax) at var(--mp-cx, 50%) var(--mp-cy, 50%)); }
}
@keyframes mp-clip-out {
  from { clip-path: circle(var(--mp-r, 150vmax) at var(--mp-cx, 50%) var(--mp-cy, 50%)); }
  to   { clip-path: circle(0 at var(--mp-cx, 50%) var(--mp-cy, 50%)); }
}

/* Fallback (Firefox) : transition douce sur les couleurs — uniquement sur body
   pour ne pas écraser les transitions transform/box-shadow des cartes. */
html:not(.mp-vt-to-dark):not(.mp-vt-to-light) body {
  transition: background-color .55s cubic-bezier(.22,1,.36,1),
              color .55s cubic-bezier(.22,1,.36,1);
}

/* Le bouton lui-même ne doit pas être recouvert par l'ancien snapshot */
.mp-theme-toggle { view-transition-name: mp-toggle; }
::view-transition-old(mp-toggle),
::view-transition-new(mp-toggle) {
  animation: none;
}

/* Wipe terracotta entre les pages */
html::view-transition-group(root) { animation-duration: .55s; }
.mp-wipe {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--accent, #c44d2b);
  transform: translateY(100%);
  pointer-events: none;
  animation: mp-wipe-up .9s cubic-bezier(.76,0,.24,1) both;
}
@keyframes mp-wipe-up {
  0%   { transform: translateY(100%); }
  45%  { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ---------- 2. MAGNETIC CTA ---------- */
[data-magnetic] {
  display: inline-flex;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
[data-magnetic] > * {
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

/* ---------- 3. TITLE REVEAL (ligne par ligne) ---------- */
.mp-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}
.mp-line {
  display: block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.mp-mask.is-in .mp-line { transform: translateY(0); }
.mp-mask.is-in .mp-line:nth-child(2) { transition-delay: .08s; }
.mp-mask.is-in .mp-line:nth-child(3) { transition-delay: .16s; }
.mp-mask.is-in .mp-line:nth-child(4) { transition-delay: .24s; }

/* ---------- 4. LIGHTBOX terracotta ---------- */
.mp-lightbox {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(26, 22, 18, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.22,1,.36,1);
}
.mp-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mp-lightbox-inner {
  position: relative;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transform: scale(.96);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.mp-lightbox.is-open .mp-lightbox-inner { transform: scale(1); }
.mp-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.mp-lightbox-caption {
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(248, 243, 236, .7);
}
.mp-lightbox-close,
.mp-lightbox-prev,
.mp-lightbox-next {
  position: absolute;
  background: rgba(248, 243, 236, .08);
  border: 1px solid rgba(248, 243, 236, .2);
  color: #f8f3ec;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(10px);
}
.mp-lightbox-close { top: -64px; right: 0; }
.mp-lightbox-prev  { left: -64px; top: 50%; transform: translateY(-50%); }
.mp-lightbox-next  { right: -64px; top: 50%; transform: translateY(-50%); }
.mp-lightbox-close:hover,
.mp-lightbox-prev:hover,
.mp-lightbox-next:hover {
  background: var(--accent, #c44d2b);
  border-color: var(--accent, #c44d2b);
  transform: scale(1.06);
}
.mp-lightbox-prev:hover, .mp-lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.mp-lightbox-close svg,
.mp-lightbox-prev svg,
.mp-lightbox-next svg { width: 18px; height: 18px; }

/* Indique qu'une image est ouvrable (zoom-in) */
[data-lightbox], .gallery-main img, .thumb-item img, .project-gallery img, .video-gallery img {
  cursor: zoom-in;
}
[data-lightbox]:hover, .gallery-main img:hover, .video-gallery img:hover { filter: brightness(1.05); }

/* Bouton "Voir la vidéo" dans la lightbox */
.mp-lightbox-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 10px 20px;
  background: var(--accent, #c44d2b);
  color: #f8f3ec;
  text-decoration: none;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s;
}
.mp-lightbox-watch:hover {
  transform: translateY(-2px);
  background: #a03820;
}
.mp-lightbox-watch[hidden] { display: none; }

@media (max-width: 720px) {
  .mp-lightbox-close { top: 16px; right: 16px; }
  .mp-lightbox-prev  { left: 8px; }
  .mp-lightbox-next  { right: 8px; }
}

/* ---------- 5. DARK MODE "espresso" ---------- */
[data-theme="dark"] {
  --bg: #1a1410;
  --bg-dark: #0f0b09;
  --text: #f0e8dc;
  --text-light: #b8ad9c;
  --cream: #2a2018;
  --card-bg: rgba(40, 32, 24, 0.6);
  --line: rgba(240, 232, 220, .12);
  /* accent inchangé : terracotta */
}
[data-theme="dark"] body { background-color: #1a1410; color: #f0e8dc; }
[data-theme="dark"] .grain-overlay { mix-blend-mode: screen; opacity: .12; }
[data-theme="dark"] .nav,
[data-theme="dark"] .m-availability {
  background: rgba(40, 32, 24, .6) !important;
  border-color: rgba(240, 232, 220, .12) !important;
}
[data-theme="dark"] .nav-links a { color: #b8ad9c; }
[data-theme="dark"] .nav-links a:hover { color: #f0e8dc; }
[data-theme="dark"] .footer { background: #0f0b09; }
[data-theme="dark"] .m-footer-giant { -webkit-text-stroke: 1px rgba(240, 232, 220, .2); }
[data-theme="dark"] .page-hero-label { -webkit-text-stroke: 1px rgba(196, 77, 43, 0.4) !important; }
[data-theme="dark"] .page-hero-desc { color: #f0e8dc !important; }
[data-theme="dark"] .project-card,
[data-theme="dark"] .cta-page-card {
  background: rgba(40, 32, 24, .5) !important;
  border-color: rgba(240, 232, 220, .08) !important;
}
[data-theme="dark"] .tag {
  background: rgba(40, 32, 24, .4);
  border-color: rgba(240, 232, 220, .15);
  color: #f0e8dc;
}
[data-theme="dark"] .tag:hover { background: var(--accent, #c44d2b); border-color: var(--accent); color: #f0e8dc; }
[data-theme="dark"] .download-btn,
[data-theme="dark"] .download-pill,
[data-theme="dark"] .hero-cta { color: #f0e8dc !important; border-color: rgba(240, 232, 220, .25) !important; }
[data-theme="dark"] .m-ticker { border-color: rgba(240, 232, 220, .12); }

/* Textes spécifiques rendus visibles en dark mode */
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-desc,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .project-title,
[data-theme="dark"] .project-type,
[data-theme="dark"] .project-description p,
[data-theme="dark"] .project-description,
[data-theme="dark"] .cta-page-content h3,
[data-theme="dark"] .cta-page-content p,
[data-theme="dark"] .cta-page-number,
[data-theme="dark"] .stat-number,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .contact-text,
[data-theme="dark"] .about-text p,
[data-theme="dark"] .page-hero-title,
[data-theme="dark"] .section-label,
[data-theme="dark"] .thumb-overlay span,
[data-theme="dark"] .footer p { color: #f0e8dc !important; }

/* Strong / accents : on vire l'ombre dorée et on reste lisible */
[data-theme="dark"] strong { color: #ffffff; }

/* Hero CTA — fond cream sombre + texte clair */
[data-theme="dark"] .hero-cta {
  background: #2a2018;
  color: #f0e8dc;
}
[data-theme="dark"] .hero-cta:hover {
  background: var(--accent, #c44d2b);
  color: #ffffff;
}

/* Download pill — bordure et couleur terracotta restent, mais visibles */
[data-theme="dark"] .download-pill {
  color: var(--accent, #c44d2b);
  border-color: var(--accent, #c44d2b);
  background: transparent;
}
[data-theme="dark"] .download-pill:hover {
  background: var(--accent, #c44d2b);
  color: #ffffff;
}

/* Download btn (texte underline) */
[data-theme="dark"] .download-btn {
  color: #b8ad9c;
  border-bottom-color: rgba(240, 232, 220, .25);
}
[data-theme="dark"] .download-btn:hover {
  color: var(--accent, #c44d2b);
  border-bottom-color: var(--accent, #c44d2b);
}

/* Contact links */
[data-theme="dark"] .contact-link {
  color: #f0e8dc;
  border-color: rgba(240, 232, 220, .2);
}
[data-theme="dark"] .contact-link:hover {
  background: #f0e8dc;
  color: #1a1410;
  border-color: #f0e8dc;
}

/* Logo nav — éviter qu'elle devienne illisible */
[data-theme="dark"] .nav-logo img { filter: none; }

/* Hero-title accent (Lavagna en italique) reste terracotta */
[data-theme="dark"] .hero-title .line:nth-child(2),
[data-theme="dark"] .page-hero-title .light,
[data-theme="dark"] .section-title .accent { color: var(--accent, #c44d2b) !important; }

/* Page hero label outline + descr */
[data-theme="dark"] .page-hero-desc { color: #b8ad9c !important; }

/* Mini vinyle déco / image about */
[data-theme="dark"] .about-image,
[data-theme="dark"] .about-vinyl-deco { filter: brightness(.92); }

/* Mobile menu */
[data-theme="dark"] .mobile-menu { background: #1a1410; }
[data-theme="dark"] .mobile-menu a { color: #f0e8dc; }

/* Toggle button */
.mp-theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--text, #1a1a1a);
  color: var(--cream, #f8f3ec);
  border: 1px solid var(--line, rgba(0,0,0,.12));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 9500;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s;
}
.mp-theme-toggle:hover { transform: scale(1.1) rotate(20deg); background: var(--accent, #c44d2b); }
.mp-theme-toggle svg { width: 18px; height: 18px; }
.mp-theme-toggle .mp-icon-sun { display: none; }
[data-theme="dark"] .mp-theme-toggle .mp-icon-moon { display: none; }
[data-theme="dark"] .mp-theme-toggle .mp-icon-sun { display: block; }

/* ---------- 6. RELATED PROJECTS (pages détail) ---------- */
.mp-related {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line, rgba(26,26,26,.12));
  margin-top: 4rem;
}
.mp-related-label {
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-light, #5a5549);
  margin-bottom: 2rem;
}
.mp-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.mp-related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2rem;
  border: 1px solid var(--line, rgba(26,26,26,.12));
  border-radius: 8px;
  background: var(--card-bg, rgba(255,252,247,.5));
  text-decoration: none;
  color: inherit;
  transition: all .45s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
}
.mp-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(26,26,26,.18);
  border-color: var(--accent, #c44d2b);
}
.mp-related-kicker {
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-light, #5a5549);
}
.mp-related-title {
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text, #1a1a1a);
}
.mp-related-title em {
  font-family: var(--m-font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--accent, #c44d2b);
}
.mp-related-arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: gap .35s cubic-bezier(.22,1,.36,1), color .3s;
}
.mp-related-card:hover .mp-related-arrow { gap: 14px; color: var(--accent, #c44d2b); }
@media (max-width: 720px) { .mp-related-grid { grid-template-columns: 1fr; } }

/* ---------- 7. READ PROGRESS verticale ---------- */
.mp-read-progress {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  width: 2px;
  height: 180px;
  background: rgba(26, 26, 26, .1);
  z-index: 9000;
  pointer-events: none;
  border-radius: 2px;
}
.mp-read-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--accent, #c44d2b);
  border-radius: 2px;
  transition: height .12s linear;
}
@media (max-width: 1100px) { .mp-read-progress { display: none; } }

/* ---------- 8. TICKER — pas de pause au hover (causait un restart sur certains browsers) ---------- */

/* ---------- 9. SKIP-TO-CONTENT (a11y) ---------- */
.mp-skip {
  position: fixed;
  top: -40px;
  left: 16px;
  z-index: 100001;
  padding: 10px 18px;
  background: var(--accent, #c44d2b);
  color: #f8f3ec;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: top .25s cubic-bezier(.22,1,.36,1);
}
.mp-skip:focus { top: 16px; outline: 2px solid #f8f3ec; outline-offset: 2px; }

/* ---------- 10. IMAGE BLUR-UP shimmer ---------- */
.mp-img-load {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark, #e8e0d4);
}
.mp-img-load::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: mp-shimmer 1.4s linear infinite;
  z-index: 1;
}
.mp-img-load img {
  opacity: 0;
  /* IMPORTANT : on garde transform dans la liste pour que les hover (scale) restent fluides */
  transition:
    opacity .55s cubic-bezier(.22,1,.36,1),
    transform .5s ease;
  position: relative;
  z-index: 2;
}
.mp-img-load.is-loaded::before { display: none; }
.mp-img-load.is-loaded img { opacity: 1; }
@keyframes mp-shimmer {
  to { background-position: -200% 0; }
}

/* ---------- 11. VINYL "Now spinning" tooltip ---------- */
.hero-vinyl .vinyl-container { position: relative; }
.mp-vinyl-tooltip {
  position: absolute;
  top: -10px; left: 50%;
  transform: translate(-50%, -100%) scale(.95);
  background: var(--text, #1a1a1a);
  color: var(--cream, #f8f3ec);
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.22,1,.36,1);
  z-index: 100;
  display: grid; /* Stack les deux états sur la même cellule pour un cross-fade propre */
}
.mp-vinyl-tooltip .mp-tip-text {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity .32s cubic-bezier(.22,1,.36,1), transform .32s cubic-bezier(.22,1,.36,1);
}
.mp-vinyl-tooltip .mp-tip-playing {
  opacity: 1;
  transform: translateY(0);
}
.mp-vinyl-tooltip .mp-tip-idle {
  opacity: 0;
  transform: translateY(-4px);
}
.mp-vinyl-tooltip.is-idle .mp-tip-playing {
  opacity: 0;
  transform: translateY(4px);
}
.mp-vinyl-tooltip.is-idle .mp-tip-idle {
  opacity: 1;
  transform: translateY(0);
}
.mp-vinyl-tooltip::before {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--text, #1a1a1a);
}
.mp-vinyl-tooltip .mp-music-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #c44d2b);
  margin-right: 6px;
  animation: mp-blink 1.4s ease-in-out infinite;
}
.mp-vinyl-tooltip .mp-needle-dot {
  display: inline-block;
  font-size: 9px;
  color: var(--accent, #c44d2b);
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes mp-blink {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}
.hero-vinyl:hover .mp-vinyl-tooltip {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

/* ---------- 12. CV / PORTFOLIO PREVIEW MODAL ---------- */
.mp-pdf-modal {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(26, 22, 18, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .55s cubic-bezier(.22,1,.36,1),
    background-color .55s cubic-bezier(.22,1,.36,1),
    backdrop-filter .55s cubic-bezier(.22,1,.36,1),
    -webkit-backdrop-filter .55s cubic-bezier(.22,1,.36,1);
}
.mp-pdf-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(26, 22, 18, .85);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.mp-pdf-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(800px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  background: var(--cream, #f8f3ec);
  border-radius: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) scale(.85);
  opacity: 0;
  transition:
    transform .6s cubic-bezier(.22,1,.36,1),
    opacity .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
  will-change: transform, opacity;
}
.mp-pdf-modal.is-open .mp-pdf-inner {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Le curseur custom reste visible et au-dessus du modal / lightbox */
body.mp-pdf-open .cursor-dot,
body.mp-pdf-open .cursor-ring,
body.mp-lightbox-open .cursor-dot,
body.mp-lightbox-open .cursor-ring {
  z-index: 100002;
}
.mp-pdf-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line, rgba(26,26,26,.12));
}
.mp-pdf-title {
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.mp-pdf-close {
  background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .25s;
}
.mp-pdf-close:hover { background: rgba(0,0,0,.08); }
.mp-pdf-close svg { width: 18px; height: 18px; }
.mp-pdf-iframe {
  flex: 1; min-height: 60vh;
  width: 100%;
  border: 0;
  background: #ddd;
}
.mp-pdf-footer {
  display: flex; gap: 12px; justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--line, rgba(26,26,26,.12));
}
.mp-pdf-footer .mp-pdf-dl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--text, #1a1a1a);
  color: var(--cream, #f8f3ec);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: background .3s;
}
.mp-pdf-footer .mp-pdf-dl:hover { background: var(--accent, #c44d2b); }

/* ---------- 13. "Mis à jour" footer note ---------- */
.mp-updated {
  display: block;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light, #5a5549);
  margin-top: 8px;
  opacity: .7;
}

/* ---------- INTRO MODERNISÉE ---------- */
/* Coins éditoriaux, RPM badge, halo terracotta autour du vinyle, sortie en wipe.
   Tout est additif — l'intro originale (vinyle + diamant + hint) reste intacte. */

/* Cadre subtil + grain plus marqué pendant l'intro */
.intro::before,
.intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 5;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-light, #5a5549);
  opacity: 0;
  animation: mp-intro-fade-in 1.2s cubic-bezier(.22,1,.36,1) .25s forwards;
}
.intro::before {
  content: "EST. 2026 — Side A";
  top: 32px; left: 32px;
}
.intro::after {
  content: "Portfolio · Noah Lavagna";
  top: 32px; right: 32px;
}

/* Bandeau bas Fraunces italique */
.mp-intro-bottom {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--m-font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--text-light, #5a5549);
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  animation: mp-intro-fade-in 1.2s cubic-bezier(.22,1,.36,1) .55s forwards;
  z-index: 5;
}
.mp-intro-bottom span {
  color: var(--accent, #c44d2b);
  font-style: italic;
}

/* Badge "33⅓ RPM" posé près du vinyle */
.mp-intro-rpm {
  position: absolute;
  bottom: 100px;
  right: 60px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(26, 26, 26, .15);
  border-radius: 999px;
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text, #1a1a1a);
  background: rgba(255, 252, 247, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 6;
  opacity: 0;
  animation: mp-intro-fade-in 1.2s cubic-bezier(.22,1,.36,1) .8s forwards;
}
.mp-intro-rpm::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent, #c44d2b);
  animation: m-pulse 2.2s ease-in-out infinite;
}

/* Halo terracotta qui pulse autour du vinyle pour inviter au clic */
.mp-intro-halo {
  position: absolute;
  width: 380px; height: 380px;
  left: 30px;
  top: calc(50% - 190px);
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(196, 77, 43, .25);
  z-index: 0;
  animation: mp-intro-halo 2.6s cubic-bezier(.22,1,.36,1) infinite;
}
@keyframes mp-intro-halo {
  0%   { transform: scale(.92); opacity: .7; }
  70%  { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* Hint plus éditorial (override la pulse banale) */
.intro-hint {
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif !important;
  text-transform: uppercase;
  letter-spacing: .18em !important;
  font-size: clamp(.85rem, 1.6vw, 1rem) !important;
  font-weight: 500 !important;
  color: var(--text-light, #5a5549) !important;
  animation: none !important;
  position: relative;
  display: inline-block;
}
.intro-hint::before,
.intro-hint::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent, #c44d2b);
  vertical-align: middle;
  margin: 0 14px;
}

/* Skip text plus subtle */
.intro-skip {
  font-family: var(--font-heading, 'Space Grotesk'), sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: .2em !important;
  font-size: 10px !important;
}

/* Sortie en wipe terracotta plutôt que simple fade */
.intro.leaving {
  transition: opacity .9s cubic-bezier(.76,0,.24,1) !important;
}
.intro.leaving::before,
.intro.leaving::after,
.intro.leaving .mp-intro-bottom,
.intro.leaving .mp-intro-rpm,
.intro.leaving .mp-intro-halo {
  opacity: 0 !important;
  transition: opacity .35s ease !important;
  animation: none !important;
}
.intro .mp-intro-wipe {
  position: absolute;
  inset: 0;
  background: var(--accent, #c44d2b);
  transform: translateY(100%);
  pointer-events: none;
  z-index: 9;
}
.intro.leaving .mp-intro-wipe {
  animation: mp-intro-wipe-up 1.1s cubic-bezier(.76,0,.24,1) forwards;
}
@keyframes mp-intro-wipe-up {
  0%   { transform: translateY(100%); }
  45%  { transform: translateY(0); }
  100% { transform: translateY(-101%); }
}

@keyframes mp-intro-fade-in {
  to { opacity: 1; }
}

/* Mobile : on simplifie */
@media (max-width: 720px) {
  .intro::before, .intro::after { font-size: 9px; top: 20px; }
  .intro::before { left: 20px; }
  .intro::after { right: 20px; }
  .mp-intro-rpm { display: none; }
  .mp-intro-halo { width: 280px; height: 280px; left: 50%; transform: translateX(-50%); top: 50%; margin-top: -140px; }
}

/* ---------- ITALIQUE : on garde le wipe slide-up .mp-line, mais joué UNE seule fois ----------
   Stratégie : .light est sorti du crossfade root via un view-transition-name dédié,
   et ses pseudos sont invisibles pendant la VT. Le slide-up .mp-line est retardé du
   temps du crossfade (0.55s) pour ne démarrer qu'après — donc on ne le voit jamais
   en double avec le crossfade. */
html.has-vt .page-hero-title .light {
  view-transition-name: mp-page-italic;
}
::view-transition-new(mp-page-italic),
::view-transition-old(mp-page-italic) {
  animation: none !important;
  opacity: 0 !important;
}
html.has-vt .page-hero-title .mp-mask .mp-line {
  transition-delay: .55s;
}

/* Home : si l'intro a déjà été vue, neutraliser nav.hidden + fadeUp du hero ----------
   Évite le clignotement quand on revient à l'accueil après navigation entre pages. */
html.intro-done .nav.hidden {
  opacity: 1 !important;
  pointer-events: auto !important;
}
html.intro-done .hero-subtitle,
html.intro-done .hero-title .line:nth-child(1),
html.intro-done .hero-title .line:nth-child(2),
html.intro-done .hero-desc,
html.intro-done .hero-cta,
html.intro-done .hero-vinyl {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ---------- YouTube channel card (CasperYTB) ---------- */
.yt-channel-card {
  display: block;
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream, #f8f3ec);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  border: 1px solid rgba(26, 26, 26, .06);
  text-decoration: none;
  color: inherit;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.yt-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
}
.yt-channel-banner {
  position: relative;
  aspect-ratio: 16 / 4.5;
  overflow: hidden;
  background: #1a1a1a;
}
.yt-channel-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.yt-channel-card:hover .yt-channel-banner img { transform: scale(1.03); }

.yt-channel-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem 1.5rem;
}
.yt-channel-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: -54px;
  background: var(--cream, #f8f3ec);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}
.yt-channel-meta { min-width: 0; }
.yt-channel-name {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.45rem;
  margin: 0 0 .15rem;
  color: var(--text, #1a1a1a);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.yt-channel-handle {
  font-size: .85rem;
  color: var(--text-light, #5a5549);
  margin-bottom: .35rem;
}
.yt-channel-stats {
  font-size: .82rem;
  color: var(--text-light, #5a5549);
  display: flex;
  gap: .45rem;
  align-items: baseline;
  margin-bottom: .55rem;
  flex-wrap: wrap;
}
.yt-channel-stats strong {
  color: var(--text, #1a1a1a);
  font-weight: 600;
}
.yt-dot { opacity: .55; }
.yt-channel-desc {
  font-size: .92rem;
  color: var(--text-light, #5a5549);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}
.yt-channel-subscribe {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  background: #cc0000;
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .25s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.yt-channel-subscribe svg { width: 18px; height: 18px; }
.yt-channel-card:hover .yt-channel-subscribe {
  background: #a30000;
}

@media (max-width: 720px) {
  .yt-channel-info {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem 1.15rem 1.25rem;
  }
  .yt-channel-subscribe {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: .5rem;
  }
  .yt-channel-avatar {
    width: 68px;
    height: 68px;
    margin-top: -38px;
  }
  .yt-channel-name { font-size: 1.18rem; }
}

[data-theme="dark"] .yt-channel-card {
  background: #2a2018;
  border-color: rgba(255, 255, 255, .08);
}
[data-theme="dark"] .yt-channel-avatar {
  background: #2a2018;
}
[data-theme="dark"] .yt-channel-name { color: #f0e8dc; }
[data-theme="dark"] .yt-channel-handle,
[data-theme="dark"] .yt-channel-stats,
[data-theme="dark"] .yt-channel-desc { color: rgba(240, 232, 220, .65); }
[data-theme="dark"] .yt-channel-stats strong { color: #f0e8dc; }

/* ---------- WATCH CTA — bandeau "Voir le spot" élégant ---------- */
.watch-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--accent, #c44d2b) 0%, #a83a1a 100%);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 32px rgba(196, 77, 43, .25);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
  max-width: 560px;
  margin: 0 auto;
}
.watch-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(196, 77, 43, .35);
}
.watch-cta-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, transform .3s cubic-bezier(.22,1,.36,1);
}
.watch-cta-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}
.watch-cta:hover .watch-cta-icon {
  background: rgba(255, 255, 255, .28);
  transform: scale(1.06);
}
.watch-cta-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
  min-width: 0;
}
.watch-cta-eyebrow {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
}
.watch-cta-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.watch-cta-meta {
  font-size: .82rem;
  opacity: .8;
  margin-top: .15rem;
}
.watch-cta-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.watch-cta-arrow svg { width: 18px; height: 18px; }
.watch-cta:hover .watch-cta-arrow {
  opacity: 1;
  transform: translate(4px, -4px);
}

@media (max-width: 540px) {
  .watch-cta { padding: 1rem 1.15rem; gap: .9rem; }
  .watch-cta-icon { width: 44px; height: 44px; }
  .watch-cta-icon svg { width: 18px; height: 18px; }
  .watch-cta-title { font-size: 1rem; }
  .watch-cta-meta { font-size: .78rem; }
}

/* ---------- Anchors avec marge pour passer sous la nav fixe ---------- */
.project-card[id^="cat-"] {
  scroll-margin-top: 100px;
}

/* ---------- PROJECT CATEGORY pill ---------- */
.project-category {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  background: rgba(196, 77, 43, 0.08);
  color: var(--accent, #c44d2b);
  border: 1px solid rgba(196, 77, 43, 0.18);
  border-radius: 999px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  margin-left: auto;
}
.project-category[data-cat="vente"] {
  background: rgba(60, 110, 90, 0.08);
  color: #3c6e5a;
  border-color: rgba(60, 110, 90, 0.18);
}
.project-category[data-cat="vente"]::before { content: ""; }

.project-category[data-cat="marketing"] {
  background: rgba(72, 94, 150, 0.08);
  color: #485e96;
  border-color: rgba(72, 94, 150, 0.18);
}
.project-category[data-cat="marketing"]::before { content: ""; }

[data-theme="dark"] .project-category {
  background: rgba(232, 148, 114, 0.10);
  color: #e89472;
  border-color: rgba(232, 148, 114, 0.25);
}
[data-theme="dark"] .project-category[data-cat="vente"] {
  background: rgba(140, 200, 170, 0.10);
  color: #8cc8aa;
  border-color: rgba(140, 200, 170, 0.25);
}
[data-theme="dark"] .project-category[data-cat="marketing"] {
  background: rgba(150, 170, 230, 0.10);
  color: #96aae6;
  border-color: rgba(150, 170, 230, 0.25);
}

/* La project-header devient flex-wrap pour bien encaisser la pill */
.project-card .project-header {
  flex-wrap: wrap;
}

/* Sur mobile la pill passe à la ligne et se cale à gauche */
@media (max-width: 720px) {
  .project-category {
    margin-left: 0;
    order: 99;
  }
}

/* ---------- NAV DROPDOWN (Projets > Communication / Vente) ---------- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.nav-caret {
  font-size: .7em;
  transition: transform .25s ease;
  display: inline-block;
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  padding: .4rem;
  background: var(--cream, #f8f3ec);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
  border: 1px solid rgba(26, 26, 26, .06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1), visibility .25s;
  z-index: 1001;
}
/* hover-bridge invisible pour éviter que le menu se ferme entre trigger et menu */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 16px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  padding: .55rem .85rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text, #1a1a1a);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, padding-left .25s cubic-bezier(.22,1,.36,1);
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
  background: rgba(196, 77, 43, 0.08);
  color: var(--accent, #c44d2b);
  padding-left: 1.05rem;
}

[data-theme="dark"] .nav-dropdown-menu {
  background: #2a2018;
  border-color: rgba(255, 255, 255, .08);
}
[data-theme="dark"] .nav-dropdown-menu a { color: #f0e8dc; }

/* ---------- MOBILE submenu (lignes indentées) ---------- */
.mobile-menu .mobile-sub {
  font-size: .9rem !important;
  opacity: .65;
  padding-left: 1.5rem !important;
}
.mobile-menu .mobile-sub:hover { opacity: 1; }

/* ---------- PROJECT-ACTIONS : deux boutons côte à côte + variante secondary ---------- */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.project-actions .project-link { margin-top: 0; }

.project-link.secondary {
  background: transparent;
  color: var(--accent, #c44d2b);
  border: 1.5px solid var(--accent, #c44d2b);
}
.project-link.secondary:hover {
  background: var(--accent, #c44d2b);
  color: #fff;
  border-color: var(--accent, #c44d2b);
}

[data-theme="dark"] .project-link.secondary {
  color: #e89472;
  border-color: #e89472;
}
[data-theme="dark"] .project-link.secondary:hover {
  background: #e89472;
  color: #1a1410;
}

/* ---------- PROJECT-LINK : remonté sous galerie (espacement plus serré) ---------- */
.project-card .project-gallery + .project-link,
.project-card .video-gallery + .project-link {
  margin-top: 1rem !important;
}
.project-card .project-gallery {
  margin-bottom: 0 !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mp-line { transition: none !important; transform: none !important; }
  .mp-img-load::before { animation: none !important; }
  .mp-vinyl-tooltip .mp-music-dot { animation: none !important; }
  .mp-intro-halo { animation: none !important; opacity: .3 !important; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}
