/* =========================================================
   PORTFOLIO BTS SIO SLAM — Feuille de style principale
   Direction : dark "néon doux" (cyan + citron vert)
   ========================================================= */

/* ---------- 1. Variables : changez les couleurs ici ---------- */
:root {
  --bg: #0b0e14;          /* fond principal */
  --bg-2: #121722;        /* fond des cartes */
  --text: #e8ecf3;        /* texte principal */
  --muted: #9aa5b8;       /* texte secondaire (contraste AA) */
  --accent: #3ee6d0;      /* couleur principale (cyan) */
  --accent-2: #c6f432;    /* couleur secondaire (citron vert) */
  --border: rgba(255, 255, 255, .08);
  --glass: rgba(18, 23, 34, .6);
  --radius: 18px;
  --font-title: "Syne", sans-serif;
  --font-text: "Manrope", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: 1rem; line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.1; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 1rem; background: var(--accent); color: var(--bg); padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; }

/* ---------- 3. Fond animé (orbes flous) ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-orbs span { position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%; filter: blur(90px); opacity: .18; animation: float 22s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(1) { background: var(--accent); top: -10%; left: -10%; }
.bg-orbs span:nth-child(2) { background: var(--accent-2); bottom: -15%; right: -10%; animation-delay: -7s; opacity: .1; }
.bg-orbs span:nth-child(3) { background: #3b6cff; top: 40%; left: 50%; animation-delay: -14s; opacity: .1; }
@keyframes float { to { transform: translate(8vw, 6vh) scale(1.15); } }

/* ---------- 4. Barre de progression + curseur + transition ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 200; }
.cursor { position: fixed; top: 0; left: 0; width: 28px; height: 28px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 300; transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s; mix-blend-mode: difference; opacity: 0; }
.cursor.hover { width: 56px; height: 56px; background: rgba(62, 230, 208, .15); }
@media (hover: hover) and (pointer: fine) { .cursor { opacity: 1; } body, a, button { cursor: none; } }
.page-transition { position: fixed; inset: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); z-index: 400; transform: scaleY(1); transform-origin: top; pointer-events: none; animation: pageIn .7s var(--ease) .05s forwards; }
.page-transition.out { animation: pageOut .5s var(--ease) forwards; }
@keyframes pageIn { to { transform: scaleY(0); } }
@keyframes pageOut { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

/* ---------- 5. Navbar sticky ---------- */
.nav { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1rem 5vw; background: var(--glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.logo { font-family: var(--font-title); font-weight: 800; font-size: 1.4rem; color: var(--text); }
.logo span { color: var(--accent-2); }
.nav ul { list-style: none; display: flex; gap: 1.6rem; align-items: center; }
.nav a:not(.logo) { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:not(.logo):hover { color: var(--text); }
.nav-cta { border: 1px solid var(--accent); color: var(--accent) !important; padding: .4rem 1rem; border-radius: 99px; }
.burger { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: .3s var(--ease); }
.burger span:first-child { top: 6px; } .burger span:last-child { bottom: 6px; }
.burger[aria-expanded="true"] span:first-child { top: 11px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { bottom: 11px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .burger { display: block; }
  .nav nav { position: fixed; inset: 64px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease); }
  .nav nav.open { clip-path: inset(0); }
  .nav ul { flex-direction: column; padding: 1.5rem; gap: 1.2rem; }
}

/* ---------- 6. Hero ---------- */
.hero { min-height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; padding: 0 5vw; position: relative; }
.hero-small { min-height: 60vh; }
.eyebrow { color: var(--accent-2); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero-title { font-size: clamp(3rem, 12vw, 9rem); font-weight: 800; letter-spacing: -.03em; }
.hero-title .char { display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg); animation: charIn .8s var(--ease) forwards; }
@keyframes charIn { to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(1.1rem, 2.5vw, 1.6rem); margin-top: 1rem; }
.hero-sub strong { color: var(--accent); }
.hero-pitch { color: var(--muted); max-width: 52ch; margin-top: .8rem; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.scroll-hint { position: absolute; bottom: 2rem; left: 5vw; color: var(--muted); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 40px; background: var(--accent); margin-top: .5rem; animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 7. Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .85rem 1.6rem; border-radius: 99px; font-weight: 700; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--bg); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px var(--accent); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--glass); }
.btn-ghost:hover { border-color: var(--accent); }
.btn.sm { padding: .5rem 1rem; font-size: .9rem; }

/* ---------- 8. Sections & cartes ---------- */
.section { padding: 6rem 5vw; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 2.5rem; display: flex; align-items: baseline; gap: 1rem; }
.section-title span { font-size: 1rem; color: var(--accent); font-family: var(--font-text); }
.sub { margin: 2.5rem 0 1.2rem; font-size: 1.4rem; }
.grid-2, .grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; backdrop-filter: blur(10px); transition: border-color .3s, transform .3s var(--ease); }
.card:hover { border-color: rgba(62, 230, 208, .35); transform: translateY(-4px); }
.card h3 { margin-bottom: .8rem; font-size: 1.3rem; }
.card p { color: var(--muted); }

/* ---------- 9. Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline .tl-line { position: absolute; left: 6px; top: 0; width: 2px; height: 100%; background: linear-gradient(var(--accent), var(--accent-2)); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; padding: 0 0 3rem 1rem; }
.tl-item::before { content: ""; position: absolute; left: -2rem; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent); }
.tl-date { color: var(--accent-2); font-weight: 700; font-size: .9rem; }
.tl-item h3 { font-size: 1.4rem; margin: .3rem 0; }
.tl-item em { color: var(--accent); font-style: normal; font-size: .9rem; }
.tl-item p { color: var(--muted); }

/* ---------- 10. Compétences ---------- */
.skills { list-style: none; display: grid; gap: 1rem; }
.skills li span { display: block; font-weight: 500; margin-bottom: .3rem; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.4s var(--ease); }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.badges span { padding: .4rem .9rem; border-radius: 99px; border: 1px solid var(--border); background: rgba(62,230,208,.06); font-size: .9rem; transition: .25s; }
.badges span:hover { border-color: var(--accent); color: var(--accent); }
.badges.big span { font-size: 1.05rem; padding: .6rem 1.2rem; }

/* ---------- 11. Langues ---------- */
.dots { display: flex; gap: .4rem; margin-top: 1rem; }
.dots b { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .4s, box-shadow .4s; }
.dots b.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- 12. CTA + footer ---------- */
.cta-block { text-align: center; }
.cta-block h2 { font-size: clamp(2rem, 6vw, 4rem); }
.cta-block .hero-actions { justify-content: center; }
.footer { border-top: 1px solid var(--border); padding: 2rem 5vw; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; }

/* ---------- 13. Page stage : faits, missions ---------- */
.facts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; }
.facts dt { color: var(--accent); font-weight: 700; }
.facts dd { color: var(--muted); }
.mission { margin-bottom: 1.5rem; }
.mission-num { color: var(--accent-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; }
.mission h3 { font-size: 1.6rem; margin: .4rem 0 1.4rem; }
.mission-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .mission-grid { grid-template-columns: repeat(4, 1fr); } }
.mission h4 { font-family: var(--font-text); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .3rem; }
.list { list-style: none; display: grid; gap: .6rem; color: var(--muted); }
.list li::before { content: "→ "; color: var(--accent); }
.list b { color: var(--text); }

/* ---------- 14. Galerie + filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { background: none; border: 1px solid var(--border); color: var(--muted); padding: .4rem 1rem; border-radius: 99px; transition: .25s; }
.filters button.active, .filters button:hover { border-color: var(--accent); color: var(--accent); }
.gallery { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.shot.hide { display: none; }
.shot button { border: 0; background: none; padding: 0; width: 100%; overflow: hidden; display: block; }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .6s var(--ease); }
.shot button:hover img { transform: scale(1.06); }
.shot figcaption { padding: .8rem 1rem; color: var(--muted); font-size: .9rem; }
.shot figcaption b { color: var(--accent); }

/* ---------- 15. Documents ---------- */
.docs { list-style: none; display: grid; gap: 1rem; }
.doc { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--glass); }
.doc > div { flex: 1; display: flex; flex-direction: column; }
.doc small { color: var(--muted); }
.doc-ico { font-weight: 800; font-size: .75rem; color: var(--bg); background: var(--accent-2); padding: .6rem .5rem; border-radius: 8px; }

/* ---------- 16. Lightbox + visionneuse PDF ---------- */
.lightbox, .pdf-viewer { position: fixed; inset: 0; z-index: 500; background: rgba(5, 7, 12, .92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 2rem; animation: fade .3s; }
.lightbox[hidden], .pdf-viewer[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { max-width: 90vw; max-height: 85vh; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: var(--muted); margin-top: 1rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: var(--glass); border: 1px solid var(--border); color: var(--text); width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; } .lb-next { right: 1.2rem; top: 50%; }
.pdf-box { width: min(1000px, 100%); height: 85vh; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); }
.pdf-bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.pdf-bar span { flex: 1; font-weight: 700; }
.pdf-bar .lb-close { position: static; width: 36px; height: 36px; font-size: 1.2rem; }
.pdf-box iframe { flex: 1; border: 0; background: #fff; }

/* ---------- 17. Accessibilité : réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-title .char { opacity: 1; transform: none; }
  .bg-orbs { display: none; }
}

/* Captures à garder entières (petites ou très larges) */
.shot.contain img { aspect-ratio: auto; object-fit: contain; max-height: 260px; }
/* Vidéos intégrées */
.videos { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.video .video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: .8rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video p { color: var(--muted); font-size: .9rem; }

/* Titres : jamais de coupure au milieu d'un mot, et taille adaptée aux titres longs */
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-small .hero-title { font-size: clamp(2.2rem, 8.5vw, 7rem); }
