/* ---------- RESET & ROOT ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-0: #090a0f;
  --bg-1: #0d0f18;
  --text: #e8f0ff;
  --muted: #b7c2d6;
  --glass: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.16);
  --accent: #9B5DE5; /* runtime changeable */
  --accent-2: #6D28D9;
  --accent-3: #4F46E5;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 40px rgba(124,0,255,.15);
}

}

html, body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);

  /* Fond simple seulement (plus de radials ici) */
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));

  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;


    background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  position: relative;
}


/* Space background canvas */
#space-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

/* Custom cursor */
.cursor {
  width: 18px; height: 18px; border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  border: 2px solid var(--accent); mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  opacity: .8;
}
@media (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; margin: 16px; border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.logo {
  font-family: Orbitron, Inter, sans-serif; font-weight: 700; letter-spacing: .08em;
  color: var(--text); text-decoration: none; position: relative;
}
.nav nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav .cta { color: var(--text); border: 1px solid var(--accent); padding: 8px 14px; border-radius: 999px; }
.controls { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; background: transparent; border: 0; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s;
}

@media (max-width: 860px) {
  .hamburger { display: block; }
  .nav nav {
    position: absolute; right: 20px; top: 62px; width: min(320px, 80vw);
    flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px;
    background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
    backdrop-filter: blur(8px); display: none;
  }
  .nav nav.open { display: flex; }
}

/* ---------- HERO ---------- */
.hero { padding: clamp(80px, 10vw, 160px) 20px 80px; position: relative; }
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.title {
  font-family: Orbitron, Inter, sans-serif; font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1; margin-bottom: 12px;
}
.subtitle { color: var(--muted); max-width: 800px; margin: 0 auto; }
.badges { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--glass); color: var(--text); }
.cta-row { display: flex; gap: 12px; justify-content: center; margin: 24px 0 6px; }

/* ---------- SECTIONS & LAYOUT ---------- */
.section { padding: 80px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.grid.two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
@media (max-width: 980px){ .grid.two { grid-template-columns: 1fr; } }

.glass {
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}

.section-title { font-family: Orbitron, Inter, sans-serif; margin-bottom: 18px; }
.about-quick { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.stat { border: 1px solid var(--stroke); padding: 10px 14px; border-radius: 12px; }
.stat span { color: var(--accent); font-weight: 800; margin-right: 6px; }

.portrait-wrap { position: relative; min-height: 320px; }
.portrait {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(600px 200px at 10% 10%, rgba(124,0,255,.25), transparent),
              url('assets/img/moi.jpg') center/cover no-repeat;
  border: 1px solid var(--stroke); filter: saturate(1.1) contrast(1.05);
}
.orb { position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
  filter: blur(6px) saturate(140%); opacity: .45; animation: float 10s ease-in-out infinite; }
.orb-a { top: -20px; right: -20px; }
.orb-b { bottom: -20px; left: -20px; animation-duration: 12s; }
@keyframes float {
  0%,100% { transform: translateY(0) }
  50% { transform: translateY(-14px) }
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 1000px){ .projects-grid { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .projects-grid { grid-template-columns: 1fr;} }

.card { border: 1px solid var(--stroke); border-radius: 16px; overflow: clip; background: rgba(255,255,255,.03); }
.card-media {
  aspect-ratio: 16/9; background: var(--glass); background-image: var(--img); background-size: cover; background-position: center;
  filter: saturate(1.2) contrast(1.05);
}
.card-body { padding: 14px 14px 18px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); }
.tags { display: flex; gap: 8px; list-style: none; margin: 10px 0 12px; }
.tags li {
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--stroke);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--glass);
  white-space: nowrap;          /* empêche de passer à la ligne */
  overflow: hidden;             /* cache le texte qui déborde */
  text-overflow: ellipsis;      /* affiche ... si trop long */
  max-width: 120px;             /* largeur max d'une bulle */
  display: flex; align-items: center; justify-content: center;
}


/* Tilt effect */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .18s ease-out; }

/* ---------- SKILLS ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px){ .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .skills-grid { grid-template-columns: 1fr; } }
.skill { padding: 10px; }
.bar {
  height: 10px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--stroke); border-radius: 999px; overflow: hidden; margin-bottom: 8px;
}
.bar span {
  display: block; height: 100%;
  width: var(--val);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent), transparent 70%);
  transition: width .9s ease-out;
}

/* ---------- TIMELINE (alignée & non coupée) ---------- */
.timeline{
  position: relative;
  padding-left: 44px;     /* espace pour le trait + pastilles */
  margin: 0;              /* on évite les décalages latéraux */
  z-index: 2;             /* passe devant les décors de section */
}

.timeline::before{
  content: "";
  position: absolute;
  left: 22px;             /* centre du trait */
  top: 0;
  bottom: -24px;          /* laisse dépasser un peu pour “finir” la ligne */
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent 70%);
  filter: drop-shadow(0 0 6px var(--accent));
  z-index: 0;
}

/* Chaque item */
.tl-item{
  position: relative;
  margin: 0 0 28px 0;     /* écart vertical entre cartes */
  z-index: 2;             /* au-dessus du trait */
}

.tl-item .dot{
  position: absolute;
  left: 16px;             /* 22px (axe) - 6px (rayon) */
  top: 22px;              /* aligne verticalement avec le contenu */
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  z-index: 3;
}

/* Carte/boîte du contenu */
.tl-item .content{
  padding: 14px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.meta{ color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 6px; }


/* ---------- CONTACT ---------- */
.contact-form { display: grid; gap: 12px; margin-top: 10px; }
.contact-form .grid.two label { display: grid; gap: 6px; }
.contact-form label { display: grid; gap: 6px; }
input, textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
  border-radius: 10px; padding: 10px 12px; color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid color-mix(in oklab, var(--accent), transparent 70%); outline-offset: 1px; }
.socials { display: flex; gap: 14px; margin-top: 18px; }
.socials a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--stroke); }
.socials a:hover { color: var(--text); border-color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative; border: 1px solid var(--accent); border-radius: 12px; padding: 10px 16px;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  box-shadow: 0 8px 18px rgba(155,93,229,.22);
  overflow: hidden; transition: transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: color-mix(in oklab, var(--accent), white 30%); }
.btn.tiny { padding: 6px 10px; font-size: 13px; border-radius: 10px; }

/* Magnetic wrapper */
.magnetic { will-change: transform; }
.magnetic span { display: inline-block; }

/* ---------- FOOTER ---------- */
.footer { text-align: center; color: var(--muted); padding: 40px 20px 60px; }

/* ---------- GLITCH EFFECT ---------- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  clip-path: polygon(0 2%, 100% 2%, 100% 40%, 0 40%);
  mix-blend-mode: screen; pointer-events: none;
}
.glitch::before { transform: translate(2px, -1px); color: #00C2FF; filter: drop-shadow(0 0 8px #00C2FF); }
.glitch::after  { transform: translate(-2px, 1px); color: #B83280; filter: drop-shadow(0 0 8px #B83280); }
.glitch { text-shadow: 0 0 10px color-mix(in oklab, var(--accent), transparent 70%); }
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { display: none; }
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- ACCESSIBILITY ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in oklab, var(--accent), transparent 60%); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 999px; }

/* Optional gradient text for .title */
.title {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glitch { text-shadow: 0 0 10px color-mix(in oklab, var(--accent), transparent 70%); }


/* === CARTES CLIQUABLES — BLOC PROPRE === */
.projects-grid { overflow: visible; } /* évite qu'un scale coupe la carte */
.card {
  position: relative; z-index: 0;
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: clip;
  background: rgba(255,255,255,.03);
  color: inherit; text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease-out, box-shadow .25s ease, opacity .25s ease;
}
.card:hover,
.card:focus-within{
  z-index: 5;
  box-shadow: 0 0 28px color-mix(in oklab, var(--accent), transparent 55%);
}
.card .btn { pointer-events: none; } /* ne bloque pas le clic global */

.card-body { padding: 14px 14px 18px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); }
.tags { display: flex; gap: 8px; list-style: none; margin: 10px 0 12px; }
.tags li { font-size: 12px; border: 1px solid var(--stroke); padding: 4px 8px; border-radius: 999px; }
.card-actions { display: flex; gap: 8px; }

/* === MEDIA PAR DÉFAUT (image) === */
.card-media{
  position: relative;
  aspect-ratio: 16/9;
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
  background: rgba(255,255,255,.03);
  background-image: var(--img);
  background-size: cover; background-position: center;
  filter: saturate(1.2) contrast(1.05);
}

/* === YOUTUBE PREVIEW (miniature → iframe au survol) === */
.card-media.youtube{ background-image: none; }
.card-media.youtube .thumb{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .25s ease, transform .25s ease;
}
.card-media.youtube .yt-holder{
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.02);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; /* clic = ouvre la page, pas la vidéo */
}
.card-media.youtube iframe{ width: 100%; height: 100%; border: 0; }

/* Badge “playing” (facultatif) */
.card-media .playing-indicator{
  position: absolute; left: 10px; bottom: 10px;
  font-size: 12px; padding: 4px 8px; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid var(--stroke); color: var(--text);
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

/* Hover : montre l’iframe, atténue la miniature */
.card:hover .card-media.youtube .yt-holder{ opacity: 1; transform: scale(1); }
.card:hover .card-media.youtube .thumb{ opacity: 0; transform: scale(1.03); }
.card:hover .card-media .playing-indicator{ opacity: 1; transform: translateY(0); }

/* === TILT (le scale est ajouté côté JS) === */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .18s ease-out; }

/* Mobile : pas de hover → on laisse neutre */
@media (hover:none){
  .card:hover{ transform:none; box-shadow:none; }
}


/* ===== YouTube Spotlight ===== */
.yt-hero{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
}
@media (max-width: 980px){ .yt-hero{ grid-template-columns: 1fr; } }

.yt-col-left .yt-tagline{
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 560px;
}
.yt-cta-row{ display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 8px; }
.yt-badges{ list-style:none; display:flex; gap:12px; flex-wrap:wrap; padding:0; margin:8px 0 0; }
.yt-badges li{
  display:flex; gap:8px; align-items:center;
  border:1px solid var(--stroke);
  padding:8px 12px; border-radius: 999px;
  background: var(--glass);
}
.yt-badges li span{ filter: drop-shadow(0 0 6px color-mix(in oklab, var(--accent), transparent 70%)); }

.yt-embed{
  position: relative; width: 100%; aspect-ratio: 16/9;
  border:1px solid var(--stroke); border-radius: 16px; overflow:hidden;
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.yt-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.yt-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 1000px){ .yt-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .yt-grid{ grid-template-columns: 1fr; } }
.yt-grid .card h4{ margin: 6px 0 0; font-weight: 600; }

#skillsRadar {
  width: 100%;
  height: 400px; /* ajuste selon tes goûts */
}
#skills .btn {
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent), transparent 60%);
}
#skills .btn:hover {
  box-shadow: 0 0 26px color-mix(in oklab, var(--accent-2), transparent 40%);
}


/* ===== Skills page UI ===== */
.skills-toolbar{ display:grid; grid-template-columns: 1fr; gap: 12px; }

.skills-toolbar input[type="search"]{
  width: 100%;
  padding: 16px 18px;                 /* plus grand = plus visible */
  border-radius: 16px;
  border: 2px solid var(--accent);    /* accent = affordance */
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 1.1rem;
  box-shadow: 0 0 20px color-mix(in oklab, var(--accent), transparent 70%);
  transition: all 0.25s ease;
}
.skills-toolbar input[type="search"]::placeholder{
  color: var(--muted);
  font-style: italic;
}
.skills-toolbar input[type="search"]:focus{
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 28px color-mix(in oklab, var(--accent-2), transparent 60%);
}

.pills{ display:flex; gap:8px; flex-wrap:wrap; }

.pill{
  border: 2px solid transparent;      /* plus net sur fond glass */
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border-radius: 999px;
  padding: 10px 16px;                 /* un peu plus généreux */
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.pill:hover{
  transform: scale(1.05);
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent), transparent 70%);
}
.pill.active{
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 20px color-mix(in oklab, var(--accent), transparent 60%);
}

.pill.ghost{ background:transparent; }

.evidence{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.chip{ padding:6px 10px; border-radius:999px; border:1px solid var(--stroke); background: var(--glass); }

.matrix-wrap{ overflow:auto; margin-top:12px; }
.matrix{ width:100%; border-collapse: collapse; }
.matrix th, .matrix td{ border:1px solid var(--stroke); padding:10px; text-align:center; }
.matrix thead th{ background: rgba(255,255,255,.06); position: sticky; top:0; }
.matrix td:first-child, .matrix th:first-child{ text-align:left; min-width:160px; }
.matrix td{ font-weight: 600; }





/* === CARTES CLIQUABLES — AFFORDANCE VISUELLE === */
.card .card-actions { display: none !important; }  /* on masque le bouton inutilisé */

.card{
  position: relative;
  cursor: pointer;
}

/* --- Bouton bas centré "Voir le projet" --- */
.card::after{
  content: "Voir le projet ↗";
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%) translateY(20%) scale(0.9);
  font-size: 13px; font-weight: 700;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.card:hover::after,
.card:focus-within::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Shine visuel sur l’image */
.card-media{ overflow: hidden; }
.card-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(75deg, transparent 20%, rgba(255,255,255,.25) 50%, transparent 80%);
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0; pointer-events: none;
}
@keyframes sweep {
  from { transform: translateX(-120%) skewX(-12deg); }
  to   { transform: translateX(120%)  skewX(-12deg); }
}
.card:hover .card-media::after{
  opacity: .35;
  animation: sweep .9s cubic-bezier(.16,1,.3,1) 1;
}

/* Focus clavier */
.card:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 16px;
}


/* === Fix coins arrondis sur la preview YouTube === */

/* 1) Assure l'arrondi et le clipping au niveau media */
.card,
.card-media { border-radius: 16px; }

.card-media{
  overflow: clip;                  /* moderne */
}
@supports not (overflow: clip){
  .card-media{ overflow: hidden; } /* fallback */
}

/* 2) Propagation de l'arrondi à tous les enfants */
.card-media .thumb,
.card-media .yt-holder,
.card-media iframe{
  border-radius: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

/* 3) Option robuste : clip explicite de l'iframe (utile si overflow est ignoré) */
.card-media iframe{
  clip-path: inset(0 round 16px);
}

/* 4) Safari/WebKit : masque pour forcer le clipping sur l'iframe */
@supports (-webkit-touch-callout: none){
  .card-media iframe{
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }
}


/* ===== Projects Grid — version stable ===== */
.masonry{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* Chaque carte est une mini-grid pour que le média et le texte soient calés */
.masonry > .card{
  display: grid;
  grid-template-rows: auto 1fr;  /* media (auto) + contenu prend la place */
  grid-column: span 1;
}

/* Aspect ratio constant pour éviter les hauteurs farfelues */
.masonry > .card .card-media{
  aspect-ratio: 16/9;     /* garde ! */
}

/* Variantes de largeur (pas de hauteur spéciale ici) */
.masonry > .card.span-2{ grid-column: span 2; }
.masonry > .card.span-wide{ grid-column: span 2; }
/* “Tall” : on triche en donnant un ratio plus “ciné” pour donner l’illusion de hauteur */
.masonry > .card.span-tall .card-media{ aspect-ratio: 16/8; }

/* Responsive : en dessous de ~960px, tout redevient 1 colonne */
@media (max-width: 960px){
  .masonry{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .masonry > .card.span-2,
  .masonry > .card.span-wide{ grid-column: span 1; }
  .masonry > .card.span-tall .card-media{ aspect-ratio: 16/9; }
}

/* Petits raffinements de stabilité */
.masonry > .card .card-body{ display: grid; align-content: start; }
.masonry > .card .tags{ margin-top: 10px; }


/* ==== Bandeau stage — plus visible/animé ==== */
/* === Bandeau stage — version plus grande et remarquable === */
.hire-banner.fixed {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  width: min(1200px, calc(100% - 24px)); /* largeur un peu plus large */
  padding: 22px 28px;                   /* plus de padding */
  font-size: 1.1rem;                    /* texte légèrement plus grand */
  z-index: 1000;
  border-radius: 20px;
  border: 2px solid color-mix(in oklab, var(--accent), white 20%);
  background: linear-gradient(120deg,
              rgba(155,93,229,.30),
              rgba(0,194,255,.22));
  box-shadow: 0 0 32px rgba(0,0,0,.45),
              0 0 50px color-mix(in oklab, var(--accent), transparent 50%);
}

/* Texte plus visible */
.hire-banner .hire-text strong {
  font-size: 1.25rem;
}

.hire-banner .meta {
  font-size: 1rem;
}

/* Boutons un peu plus gros */
.hire-banner .btn.tiny {
  padding: 8px 14px;
  font-size: 0.95rem;
}

}
/* Bandeau stage — s'assure que le reflet est visible et découpé aux bords */
.hire-banner.fixed{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  width: min(1200px, calc(100% - 24px));
  padding: 22px 28px;
  font-size: 1.1rem;
  border-radius: 20px;
  border: 2px solid color-mix(in oklab, var(--accent), white 20%);
  background:
    linear-gradient(120deg, rgba(155,93,229,.30), rgba(0,194,255,.22)) padding-box,
    rgba(18,20,30,.85);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 50px color-mix(in oklab, var(--accent), transparent 50%);
  backdrop-filter: blur(10px);
  overflow: hidden;        /* ✨ pour couper le reflet aux bords */
  isolation: isolate;      /* garantit un plan propre pour le ::before */
}
/* Bouton de fermeture du bandeau stage */
.hire-banner .hire-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}

.hire-banner .hire-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-2);
  transform: scale(1.1);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent), transparent 50%);
}

/* Reflet en balayage (revival) */
.hire-banner.fixed::before{
  content: "";
  position: absolute;
  inset: -2px;             /* dépasse un poil pour éviter les bords visibles */
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,.28) 50%,
    transparent 60%
  );
  background-size: 220% 100%;
  background-position: -120% 0;
  pointer-events: none;
  z-index: 0;              /* sous le contenu mais au-dessus du fond */
  animation: bannerShine 6s ease-in-out infinite;
}

@keyframes bannerShine{
  0%   { background-position: -120% 0; }
  40%  { background-position: 120% 0; }
  100% { background-position: 120% 0; }
}

/* Contenu au-dessus du reflet */
.hire-inner{ position: relative; z-index: 1; }
/* --- Reflet qui balaye le bandeau stage --- */
.hire-banner.fixed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: -120% 0;
  border-radius: inherit;
  pointer-events: none;
  animation: bannerShine 6s ease-in-out infinite;
}

@keyframes bannerShine {
  0%   { background-position: -120% 0; }
  40%  { background-position: 120% 0; }
  100% { background-position: 120% 0; }
}

/* --- Interaction avec le fond du site (blend/glass) --- */
.hire-banner.fixed {
  backdrop-filter: blur(10px) saturate(140%);
  background: rgba(20, 20, 35, 0.6); /* un peu plus transparent */
  mix-blend-mode: lighten; /* le bandeau fusionne un peu avec le décor */
}
/* === FIX bandeau stage : layout propre + alignement vertical === */
.hire-inner{
  display: grid !important;
  grid-template-columns: auto 1fr auto auto; /* [flare+texte] [espace] [actions] [close] */
  align-items: center;
  gap: 12px;
  padding: 12px 16px;          /* cohérent avec ton design */
  position: relative;
  z-index: 1;                  /* contenu au-dessus du reflet */
}

/* le bloc gauche (pastille lumineuse + textes) */
.hire-left{ display:flex; align-items:center; gap:12px; min-width:0; }
.hire-text{ display:flex; align-items:baseline; gap:12px; min-width:0; }
.hire-text strong{ line-height:1; }
.hire-text .meta{ line-height:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* boutons & close bien centrés */
.hire-actions{ display:flex; align-items:center; gap:8px; }
.hire-close{ align-self:center; }

/* le reflet reste déco derrière, ne capte pas le clic */
.hire-banner.fixed::before{
  z-index: 0;
  pointer-events: none;
}
/* Halos fixes doux dans les 4 coins (overlay) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* au-dessus de #space-bg (-2), sous le contenu */

  background:
    /* coin haut-gauche (violet) */
    radial-gradient(1100px 800px at -10% -10%,
      rgba(155,93,229,.28), transparent 60%),
    /* coin haut-droit (bleu) */
    radial-gradient(1000px 720px at 110% -10%,
      rgba(0,194,255,.18), transparent 60%),
    /* coin bas-gauche (bleu doux) */
    radial-gradient(1000px 780px at -10% 110%,
      rgba(0,194,255,.14), transparent 60%),
    /* coin bas-droit (violet) */
    radial-gradient(1200px 900px at 110% 110%,
      rgba(155,93,229,.22), transparent 60%);

  background-repeat: no-repeat;
  filter: blur(6px); /* bords très doux */
}
/* === Nuke : aucune déco par section === */
.section,
.section > .container {
  background: transparent !important;
}
.section::before,
.section::after {
  content: none !important;
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* === Halos fixes (coins d’écran), une seule fois pour tout le site === */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* au-dessus de #space-bg (-2), sous tout le reste */

  background:
    /* coin haut-gauche (violet) */
    radial-gradient(1100px 800px at -10% -10%,
      rgba(155,93,229,.28), transparent 60%),
    /* coin haut-droit (bleu) */
    radial-gradient(1000px 720px at 110% -10%,
      rgba(0,194,255,.18), transparent 60%),
    /* coin bas-gauche (bleu doux) */
    radial-gradient(1000px 780px at -10% 110%,
      rgba(0,194,255,.14), transparent 60%),
    /* coin bas-droit (violet) */
    radial-gradient(1200px 900px at 110% 110%,
      rgba(155,93,229,.22), transparent 60%);
  background-repeat: no-repeat;
  filter: blur(6px);
}
/* ===== PARCOURS — ligne continue & pastilles qui ne chevauchent plus ===== */

/* réserve de place à gauche + évite le margin-collapse en bas */
.timeline{
  position: relative;
  overflow: visible;
  padding-left: 60px;          /* espace pour trait + pastille */
  padding-top: 6px;
  padding-bottom: 36px;        /* rallonge la zone → la ligne peut descendre jusqu’au bout */
}

/* ligne verticale sur 100% de la hauteur utile */
.timeline::before{
  content: "";
  position: absolute;
  left: 30px;                  /* axe du trait (cohérent avec padding-left) */
  top: 0;
  bottom: 0;                   /* couvre toute la hauteur grâce au padding-bottom */
  width: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--accent), white 20%) 0%,
    color-mix(in oklab, var(--accent), transparent 35%) 85%,
    transparent 100%
  );
}

/* chaque item est positionné proprement */
.tl-item{
  position: relative;
  margin: 0 0 24px 0;
}
.tl-item:last-child{ margin-bottom: 0; }   /* empêche le collapsage avec .timeline */

/* la carte passe AU-DESSUS de la pastille */
.tl-item .content{
  position: relative;
  z-index: 2;
}

/* pastille : sur l’axe, derrière la carte → ne recouvre plus le texte */
.tl-item .dot{
  position: absolute;
  left: 30px;                  /* même axe que la ligne */
  top: 32px;                   /* ajuste si besoin: 28–34px selon ta carte */
  transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in oklab, var(--accent), transparent 40%);
  z-index: 1;                  /* sous la carte */
}


/* cache le champ honeypot */
.contact-form .hp{
  position:absolute;
  left:-10000px;
  width:1px; height:1px;
  opacity:0; pointer-events:none;
}
/* ===== Footer Futuriste ===== */
.footer {
  position: relative;
  text-align: center;
  padding: 60px 20px 80px;
  border-top: 1px solid var(--stroke);
  margin-top: 60px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.03) 20%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.footer-logo img.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent));
}

/* Réseaux sociaux */
.social-links {
  display: flex;
  gap: 22px;
}
.social-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--glass);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-links a:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent), transparent 70%);
  transform: translateY(-2px);
}

/* Icônes custom */
.icon {
  display: inline-block;
  width: 18px; height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px var(--accent));
}
.icon.yt { background-image: url("assets/icons/youtube.svg"); }
.icon.li { background-image: url("assets/icons/linkedin.svg"); }

/* Copyright */
.copy {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 12px;
}

/* Effet futuriste “clou du spectacle” */
.footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  filter: blur(120px);
  opacity: 0.12;
  animation: spin 40s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Cartes pour la page Game Patchwork Culturel */
.card.inspiration::after {
  content: none !important; /* supprime le bouton "voir le projet" */
}

.card.inspiration .card-media {
  aspect-ratio: 3/4; /* format plus vertical pour des covers */
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--stroke);
}

.card.inspiration h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card.inspiration p {
  font-size: 0.9rem;
  color: var(--muted);
}


/* ---- Brand logo in nav ---- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 8px var(--accent)); }
.brand-name { font-family: Orbitron, Inter, sans-serif; font-weight: 800; letter-spacing: .06em; color: var(--text); }
/* --- NAV ACTIVE LINK --- */
.nav a.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  text-shadow: 0 0 8px color-mix(in oklab, var(--accent), transparent 60%);
}
/* --- Nav dynamique en scroll (avec peek accessible) --- */
.nav {
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

/* état quand on descend : la nav “entrebâillée” (peek) */
.nav.peek {
  transform: translateY(-60%);   /* laisse ~40% visibles */
  opacity: 0.28;                 /* assez lisible pour l'œil */
  background: rgba(20,20,35,0.35);
  box-shadow: none;
  pointer-events: auto;          /* on peut encore la survoler/click */
}

/* dès qu’on survole la zone, on réaffiche clairement (accessibilité) */
.nav.peek:hover,
.nav.peek:focus-within {
  transform: translateY(0);
  opacity: 1;
  background: var(--glass);
  box-shadow: var(--shadow);
}

/* état normal (quand on remonte) */
.nav.revealed {
  transform: translateY(0);
  opacity: 1;
}
.music-btn.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 14px color-mix(in oklab, var(--accent), transparent 55%);
}
/* ==== LD Gallery — grille lisible & cartes larges ==== */
.ld-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1100px){ .ld-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){  .ld-grid{ grid-template-columns: 1fr; } }

.ld-card{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  gap: 10px;
}
.ld-card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
}
.ld-card figcaption{ display: grid; gap: 4px; }
.ld-card .open-lightbox{
  position: absolute;
  right: 10px; bottom: 10px;
}

/* ==== Lightbox plein écran (zoom + pan) ==== */
.ld-lightbox{
  position: fixed; inset: 0;
  background: rgba(4,6,12,.86);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
}
.ld-lightbox[aria-hidden="false"]{ display: grid; }

.ld-lightbox-toolbar{
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 14px;
  display: flex; gap: 8px; padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--glass), rgba(0,0,0,.25) 30%);
  box-shadow: var(--shadow);
}
.ld-lightbox-stage{
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 60px 20px 20px;
  cursor: grab;
}
.ld-lightbox-stage:active{ cursor: grabbing; }
.ld-lightbox-stage img{
  max-width: 92vw; max-height: 86vh;
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  box-shadow: 0 0 26px rgba(0,0,0,.45);
  transform: translate3d(0,0,0) scale(1);
  transition: transform .08s ease-out;
}

/* ==== Comparateur Avant/Après ==== */
.ld-compare-wrap{ padding: 14px; }
.ld-compare{
  position: relative;
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.03);
}
.ld-compare img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: rgba(0,0,0,.2);
}
.ld-compare .right{ clip-path: polygon(50% 0,100% 0,100% 100%,50% 100%); }
.ld-compare .slider{
  position: absolute; left: 0; right: 0; bottom: 12px; width: 60%;
  margin: 0 auto;
  appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  outline: none; border: 1px solid var(--stroke);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent), transparent 60%);
}
.ld-compare .slider::-webkit-slider-thumb{
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent-2);
  box-shadow: 0 0 10px rgba(0,0,0,.35);
}
/* Lightbox: ordre des calques et clics */
.ld-lightbox-toolbar { z-index: 3; pointer-events: auto; }
.ld-lightbox-stage   { z-index: 1; }
/* ===== Banner full width ===== */
.banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  margin: 40px 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* ===== Banner Illustration avec halo subtil ===== */
.art-banner{
  position: relative;
  margin: 40px 0;
  padding: 6px; /* halo très fin */
  border-radius: 22px;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in oklab, var(--g1), transparent 80%) 0%,
    color-mix(in oklab, var(--g2), transparent 85%) 30%,
    color-mix(in oklab, var(--g3), transparent 90%) 60%,
    transparent 100%
  );
  box-shadow: 0 0 24px rgba(0,0,0,.25);
}

/* Conteneur de l’image */
.art-frame{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 0 16px rgba(0,0,0,.25);
}

/* Image */
.art-img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: cover;
}

/* Légende */
.art-cap{
  color: var(--muted);
  font-size: .9rem;
  padding: 8px 12px;
  background: rgba(0,0,0,.25);
  border-top: 1px solid var(--stroke);
}
/* LD grid : laisser déborder + passer la carte survolée au-dessus */
.ld-grid { 
  position: relative; 
  overflow: visible;           /* important pour ne rien couper */
  isolation: isolate;          /* crée un plan propre */
}

.ld-grid .ld-card {
  position: relative; 
  z-index: 0;                  /* état normal */
  will-change: transform; 
}

.ld-grid .ld-card:hover,
.ld-grid .ld-card:focus-within {
  z-index: 30;                 /* passe au-dessus des voisines */
}
/* ===== Page transition — Neon Blackout (full cover, smooth) ===== */
:root{
  --pt-bg: #070912;                 /* fond opaque */
  --pt-out: 240ms;                  /* sortie (vers page suivante) */
  --pt-in:  260ms;                  /* entrée (depuis page précédente) */
  --pt-glow-out: 420ms;             /* glow à la sortie */
  --pt-glow-in:  360ms;             /* glow à l'entrée */
  --pt-size: 140vmax;               /* diamètre du glow */
  --pt-x: 50vw; --pt-y: 50vh;       /* coordonnées du clic */
}

.page-transition{
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
}

/* éléments internes (réels, pas des ::before) */
.page-transition .pt-backdrop{
  position: absolute; inset: 0;
  background: var(--pt-bg);
  opacity: 0;                      /* deviendra 1 en sortie */
  will-change: opacity;
}
.page-transition .pt-glow{
  position: absolute;
  left: var(--pt-x); top: var(--pt-y);
  width: var(--pt-size); height: var(--pt-size);
  transform: translate(-50%,-50%) scale(.05);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  /* glow discret (pas d’éblouissement) */
  background: radial-gradient(circle,
    color-mix(in oklab, var(--accent), white 8%) 0%,
    color-mix(in oklab, var(--accent-2), transparent 70%) 35%,
    transparent 65%);
  filter: saturate(120%);
  will-change: transform, opacity;
}

/* Sortie (vers nouvelle page) */
@media (prefers-reduced-motion: no-preference){
  .page-transition.out .pt-backdrop{
    animation: ptCoverOn var(--pt-out) ease forwards;
  }
  .page-transition.out .pt-glow{
    animation: ptGlowOut var(--pt-glow-out) cubic-bezier(.16,1,.3,1) forwards;
  }

  /* Entrée (sur la nouvelle page) */
  .page-transition.in .pt-backdrop{
    opacity: 1;
    animation: ptCoverOff var(--pt-in) ease forwards;
  }
  .page-transition.in .pt-glow{
    transform: translate(-50%,-50%) scale(1);
    opacity: .18;
    animation: ptGlowIn var(--pt-glow-in) cubic-bezier(.16,1,.3,1) forwards;
  }

  @keyframes ptCoverOn  { to   { opacity: 1; } }
  @keyframes ptCoverOff { to   { opacity: 0; } }
  @keyframes ptGlowOut  { to   { transform: translate(-50%,-50%) scale(1); opacity: .18; } }
  @keyframes ptGlowIn   { to   { transform: translate(-50%,-50%) scale(.05); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce){
  .page-transition{ display:none; }
}

body.is-transitioning { cursor: progress; }
/* Empêche le flash : état "pre" couvrant avant l'anim d'entrée */
.page-transition.pre .pt-backdrop{
  opacity: 1;                      /* page 100% masquée dès le 1er paint */
}
.page-transition.pre .pt-glow{
  opacity: .18;
  transform: translate(-50%, -50%) scale(1);
}
/* (option stabilité GPU) */
.page-transition, .pt-backdrop, .pt-glow{
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* ==== Galerie Photos ==== */
.photo-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px){ .photo-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){  .photo-grid{ grid-template-columns: 1fr; } }

.photo-card{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: zoom-in;
  display: grid;
  grid-template-rows: auto min-content;
}
.photo-card img{
  width: 100%; height: 100%;
  aspect-ratio: 16/9;          /* ajuste si besoin */
  object-fit: cover;
  display: block;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.photo-card figcaption{
  padding: 10px 12px;
  font-size: .95rem;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.photo-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border-color: color-mix(in oklab, var(--accent), white 25%);
}
/* Le média peut prendre plus de place pour la vidéo */
.ld-detail-inner { grid-template-columns: 55% 45%; } /* ajuste à 50/50 ou 60/40 si tu veux */
.ld-media { position:relative; height:100%; min-height:420px; border-right:1px solid var(--stroke); overflow:hidden; }
.ld-media::after{ content:""; position:absolute; inset:0; background:linear-gradient(to right, rgba(15,18,32,.0) 0%, rgba(15,18,32,.28) 100%); pointer-events:none; }

#ld-video{
  width:100%;
  height:100%;
  object-fit:cover;     /* passe à 'contain' si tu veux éviter tout crop */
  opacity:0;
  transform:scale(1.02);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.6,.2,1);
}

/* UI overlay (boutons discrets) */
.ld-media-ui{
  position:absolute; right:12px; bottom:12px; display:flex; gap:8px; z-index:2;
}
.ld-btn{
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.35);
  color:var(--text);
  padding:6px 10px;
  border-radius:10px;
  backdrop-filter: blur(6px);
  cursor:pointer;
  font-size:14px;
}
.ld-btn:hover{ background:rgba(0,0,0,.5); }

/* Bouton "cliquer pour lire" si autoplay bloqué */
.ld-tap{
  position:absolute; inset:auto 50% 50% auto; transform:translate(50%, 50%);
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.55);
  color:var(--text);
  padding:10px 14px; border-radius:12px; backdrop-filter: blur(6px);
  cursor:pointer; z-index:2; display:none;
}

/* Quand on charge une nouvelle situation (animation existante) */
.ld-detail.enter .ld-detail-inner{ animation: slideIn .35s cubic-bezier(.2,.7,.2,1); }

/* Responsive */
@media (max-width:980px){
  .ld-detail-inner{ grid-template-columns:1fr; }
  .ld-media{ min-height:260px; border-right:none; border-bottom:1px solid var(--stroke); }
}


/* ===== Music popup (under header controls) ===== */
.controls { position: relative; }

.music-pop{
  position: absolute;
  top: 48px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: clamp(280px, 28vw, 360px);
  min-width: 280px;
  max-width: 90vw;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(10,12,18,0.92);
  backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0,0,0,.35), 0 0 28px color-mix(in oklab, var(--accent), transparent 60%);
  transform-origin: top right;
  transform: translateY(-8px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
}
.music-pop.show{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: popIn .28s cubic-bezier(.16,1,.3,1);
}
.music-pop.hide{
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
}
@keyframes popIn{
  from{ opacity: 0; transform: translateY(-8px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.music-cover{
  width: 48px; height: 48px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--stroke);
  background: linear-gradient(120deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  flex: 0 0 auto;
}
.music-info{ display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.music-title{
  font-weight: 800;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 12.5px;
  letter-spacing: .02em;
  line-height: 1.15;
  word-break: break-word;
}
.music-state{ font-size: 12px; opacity: .9; }

.eq{ display: flex; align-items: end; gap: 2px; height: 14px; margin-top: 4px; }
.eq span{
  width: 3px; height: 6px; border-radius: 999px; background: var(--accent);
  animation: eqPulse 1s ease-in-out infinite;
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent), transparent 60%);
}
.eq span:nth-child(2){ animation-delay: .1s; }
.eq span:nth-child(3){ animation-delay: .2s; }
.eq span:nth-child(4){ animation-delay: .3s; }
.eq span:nth-child(5){ animation-delay: .4s; }
@keyframes eqPulse{
  0%,100%{ height: 3px; }
  50%{ height: 14px; }
}
.music-pop-toggle{
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  color: var(--text);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}
.music-btn.is-on{
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent), transparent 60%);
}
@media (max-width: 420px){
  .music-pop{ width: min(94vw, 360px); right: 8px; top: 54px; }
}
/* Empêche le scroll quand le menu mobile est ouvert */
.no-scroll, .no-scroll body { overflow: hidden; }

/* Mobile : menu caché par défaut */
@media (max-width: 900px) {
  .nav { position: sticky; top: 0; z-index: 1000; }

  #nav-links {
    display: none;
    position: absolute;
    right: 0; top: 100%;
    width: min(90vw, 360px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 12px 16px;
    background: var(--bg-1, rgba(0,0,0,.75));
    border: 1px solid var(--stroke, rgba(255,255,255,.12));
    box-shadow: var(--shadow);
    border-radius: 12px;
    backdrop-filter: blur(6px);
  }

  /* Quand .open est là → on affiche */
  #nav-links.open { display: block; }

  /* Optionnel: un style quand le header a le menu ouvert */
  .nav.menu-open { backdrop-filter: blur(8px); }
}
/* ===== MENU MOBILE 100% OPAQUE + SCRIM ===== */
@media (max-width: 900px) {
  .nav { position: sticky; top: 0; z-index: 1000; }

  /* Voile derrière le menu (plus sombre) */
  .nav.menu-open::before{
    content: "";
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.70);   /* ← plus opaque */
    z-index: 1000;
  }

  /* Panneau du menu – FULL OPAQUE */
  #nav-links{
    display: none;
    position: fixed;                 /* au-dessus de tout */
    right: 12px;
    top: 64px;                       /* ajuste si ta barre est plus haute */
    width: min(92vw, 360px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 14px 16px;
    border-radius: 14px;

    background: #0d0f18 !important;  /* ✅ 100% opaque */
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);

    /* on coupe tout effet verre/blur éventuel */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;

    z-index: 1001;
  }

  #nav-links.open{ display: block; }

  /* Liens lisibles */
  #nav-links a{
    display:block;
    padding:10px 8px;
    color: #e8f0ff !important;       /* texte clair */
    text-decoration: none;
    border-radius: 8px;
  }
  #nav-links a:hover{
    background: rgba(255,255,255,0.06);
  }
}

/* Empêche le scroll quand le menu est ouvert */
.no-scroll, .no-scroll body { overflow: hidden; }
/* ===== Désactiver agrandissement + preview vidéo sur mobile ===== */
@media (hover: none), (pointer: coarse) {
  /* 1) Pas d'effet hover/tilt/scale */
  .card,
  .tilt {
    transform: none !important;
    transition: none !important;
  }
  .card:hover,
  .card:focus-within {
    transform: none !important;
    box-shadow: none !important;
  }

  /* 2) Pas de “shine” ni bouton fantôme */
  .card::after,
  .card-media::after {
    display: none !important;
    animation: none !important;
  }

  /* 3) YouTube: garder la vignette, cacher l’iframe même si le JS l’injecte */
  .card-media.youtube .yt-holder {
    opacity: 0 !important;
    transform: none !important;
    pointer-events: none !important;
    transition: none !important;
  }
  .card-media.youtube .thumb {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* 4) Cartes “photo” / autres hovers doux */
  .photo-card:hover {
    transform: none !important;
    box-shadow: var(--shadow);
    border-color: var(--stroke);
  }
}
.da-backdrop {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); backdrop-filter: blur(2px); z-index: 9999;
}
.da-backdrop[aria-hidden="false"] { display: flex; }

.da-modal {
  max-width: 520px; width: calc(100% - 2rem);
  background: #0b0b12; color: #f3f3f7; border-radius: 16px; padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.da-modal h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.da-modal p { margin: 0 0 1rem; line-height: 1.5; }

.da-opt { display: flex; gap: .5rem; align-items: center; font-size: .95rem; margin-bottom: 1rem; opacity: .9; }

.da-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.da-btn {
  border: 0; padding: .6rem .9rem; border-radius: 10px; cursor: pointer; font-weight: 600;
}
.da-primary { background: #9B5DE5; color: white; }
.da-secondary { background: #1a1a26; color: #e6e6f0; }
.da-btn:focus { outline: 2px solid #00C2FF; outline-offset: 2px; }
