/* ══════════════════════════════════════════
   PORTFOLIO — DA Violet Mystique
   Palette: #332063 #7559CB #9563DE #D4A7F9
            #FBDBFB #997BF8 #4C4C9C #B6909E
   ══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --deep:    #1A1030;
  --dark:    #231848;
  --dark2:   #2D1F5E;
  --mid:     #332063;
  --violet:  #5E3AA2;
  --purple:  #7559CB;
  --lavender:#9563DE;
  --soft:    #997BF8;
  --lilac:   #D4A7F9;
  --pale:    #FBDBFB;
  --navy:    #4C4C9C;
  --mauve:   #B6909E;
  --text:    #EDE8FF;
  --muted:   #9B8EC4;
  --white:   #F8F4FF;
}


body {
  font-family: 'Nunito', sans-serif;
  background: var(--deep);
  color: var(--text);
  overflow-x: hidden;
}

/* ── ÉTOILES ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 50%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 70%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 90%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none; z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(26,16,48,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(117,89,203,0.25);
}
.nav-logo {
  font-family: 'Cinzel', sans-serif;
  font-size: 1.4rem;
  color: var(--lilac);
  text-shadow: 0 0 20px rgba(212,167,249,0.5);
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  font-weight: 700; font-size: 0.85rem;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--lilac); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  text-align: center; padding: 6rem 2rem 4rem;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #3D2080 0%, #1A1030 70%);
}
#hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--deep));
  pointer-events: none;
}

/* orbe lumineux */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.35;
}
.orb1 { width:400px; height:400px; background:#7559CB; top:-80px; left:-80px; }
.orb2 { width:300px; height:300px; background:#9563DE; bottom:50px; right:-60px; }
.orb3 { width:200px; height:200px; background:#D4A7F9; top:50%; left:50%; transform:translate(-50%,-50%); opacity:0.2; }

.hero-tag {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.75rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 1.2rem;
  position: relative; z-index: 1;
}
.hero-title {
  font-family: 'Cinzel', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  color: var(--white);
  letter-spacing: 4px; line-height: 1;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
  text-shadow: 0 0 60px rgba(149,99,222,0.6);
}
.hero-sub {
  font-size: 1.05rem; color: var(--muted); margin-bottom: 2.5rem;
  position: relative; z-index: 1; max-width: 480px; line-height: 1.7;
}
.hero-badges {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2rem; position: relative; z-index: 1;
}
.badge {
  font-weight: 700; font-size: 0.75rem; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.4rem 1.2rem; border-radius: 50px;
  border: 1.5px solid rgba(149,99,222,0.5);
  color: var(--lilac); background: rgba(117,89,203,0.15);
}

/* ── BOUTONS ── */
.btn {
  display: inline-block;
  font-family: 'Cinzel', sans-serif; font-size: 1rem;
  padding: 0.8rem 2rem; border-radius: 50px;
  background: linear-gradient(135deg, #7559CB, #9563DE);
  color: var(--white); text-decoration: none;
  box-shadow: 0 4px 20px rgba(117,89,203,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; z-index: 1;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(117,89,203,0.6); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(149,99,222,0.6);
  color: var(--lilac);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(117,89,203,0.15); box-shadow: none; }

/* ── SECTIONS ── */
section { padding: 5rem 3rem; position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.s-label {
  display: block; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 0.5rem;
}
.s-title {
  font-family: 'Cinzel', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white); margin-bottom: 0.6rem;
}
.s-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 3rem; line-height: 1.6; }

/* ── BIO ── */
#bio { background: linear-gradient(180deg, var(--deep) 0%, var(--dark) 100%); }
.bio-grid {
  display: grid; 
  grid-template-columns: 260px 1fr;
  gap: 4rem; align-items: center;
  align-items: start;
}
.bio-avatar {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, var(--dark2), var(--violet));
  overflow: hidden;
  box-shadow: 0 0 60px rgba(117,89,203,0.35);
  animation: morph 8s ease-in-out infinite;
}
.bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center ;
  border-radius: inherit;
}
@keyframes morph {
  0%,100% { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
  50% { border-radius: 55% 45% 45% 55% / 45% 55% 50% 50%; }
}
.bio-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
  font-weight: 700; font-size: 0.75rem; padding: 0.3rem 0.9rem;
  border-radius: 50px; border: 1px solid rgba(149,99,222,0.4);
  color: var(--lilac); background: rgba(117,89,203,0.12);
}

/* ── GRILLE PROJETS ── */
#projets { background: var(--dark); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.pcard {
  border-radius: 16px; overflow: hidden;
  background: var(--dark2);
  border: 1px solid rgba(117,89,203,0.2);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer; text-decoration: none; color: inherit;
  display: block; position: relative;
}

.pcard img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(117,89,203,0.3);
  border-color: rgba(149,99,222,0.5);
}
.pcard.featured { grid-column: span 2; }

.pcard-thumb {
  width: 100%; aspect-ratio: 16/8;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.pcard.featured .pcard-thumb { aspect-ratio: 16/7; font-size: 5rem; }

/* couleurs par projet */
.pc-sculpt  .pcard-thumb { background: linear-gradient(135deg, #2D1F5E, #5E3AA2); }
.pc-kuwahara .pcard-thumb { background: linear-gradient(135deg, #1A1848, #4C4C9C); }
.pc-cutipat .pcard-thumb { background: linear-gradient(135deg, #3D1A4A, #7559CB); }
.pc-nanny   .pcard-thumb { background: linear-gradient(135deg, #2D1F5E, #9563DE); }
.pc-diorama .pcard-thumb { background: linear-gradient(135deg, #1A2040, #332063); }
.pc-loop    .pcard-thumb { background: linear-gradient(135deg, #2A1A50, #7559CB); }
.pc-autrelui .pcard-thumb { background: linear-gradient(135deg, #1A1030, #5E3AA2); }
.pc-laika   .pcard-thumb { background: linear-gradient(135deg, #0D0D30, #4C4C9C); }

/* badge type */
.pcard-type {
  position: absolute; top: 10px; right: 10px;
  font-weight: 700; font-size: 0.6rem; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.25rem 0.7rem;
  border-radius: 50px; backdrop-filter: blur(6px);
}
.type-popup { background: rgba(149,99,222,0.4); color: var(--pale); border: 1px solid rgba(212,167,249,0.3); }
.type-page  { background: rgba(76,76,156,0.4); color: var(--lilac); border: 1px solid rgba(153,123,248,0.3); }

.pcard-body { padding: 1.1rem 1.3rem 1.3rem; }
.pcard-tag {
  font-weight: 700; font-size: 0.65rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--lavender); margin-bottom: 0.3rem; display: block;
}
.pcard-name {
  font-family: 'Cinzel', sans-serif;
  font-size: 1.15rem; color: var(--white); margin-bottom: 0.3rem;
}
.pcard-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── POPUP ── */
.popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(10,6,25,0.85);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.popup-overlay.open { display: flex; }

.popup-box {
  background: var(--dark2);
  border: 1px solid rgba(117,89,203,0.35);
  border-radius: 20px;
  max-width: 780px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  scrollbar-width: thin; scrollbar-color: var(--violet) transparent;
}
.popup-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.4rem; cursor: pointer; transition: color 0.2s;
}
.popup-close:hover { color: var(--lilac); }

.popup-hero-img {
  width: 100%; border-radius: 12px; aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--mid), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; margin-bottom: 1.8rem; overflow: hidden;
}
.popup-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.popup-tag { color: var(--lavender); font-weight: 700; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.4rem; display: block; }
.popup-title { font-family: 'Cinzel', sans-serif; font-size: 2rem; color: var(--white); margin-bottom: 1.2rem; }
.popup-desc { color: var(--muted); line-height: 1.8; font-size: 0.95rem; margin-bottom: 1.5rem; }

.popup-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem;
}
.meta-chip {
  font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.9rem;
  border-radius: 50px; border: 1px solid rgba(117,89,203,0.4);
  color: var(--lilac); background: rgba(117,89,203,0.12);
}

.popup-imgs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-bottom: 1.8rem;
}
.popup-img-slot {
  aspect-ratio: 4/6; border-radius: 10px;
  background: var(--dark); border: 1px solid rgba(117,89,203,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem; overflow: hidden;
}
.popup-img-slot img { width: 100%; height: 100%; object-fit: cover; }
s
.popup-img-slot-wide {
  aspect-ratio: 16/9;
  border-radius: 10px;
  background: var(--dark);
  border: 1px solid rgba(117,89,203,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem; overflow: hidden;
}
.popup-img-slot-wide img { width: 100%; height: 100%; object-fit: cover; }

.popup-img-slot-wide {
  aspect-ratio: 16/9;
  border-radius: 10px;
  background: var(--dark);
  border: 1px solid rgba(117,89,203,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem; overflow: hidden;
}

.popup-img-slot-wide img { width: 100%; height: 100%; object-fit: cover; }

.popup-yt a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.2rem; border-radius: 12px;
  background: rgba(117,89,203,0.12); border: 1px solid rgba(117,89,203,0.3);
  text-decoration: none; color: var(--lilac);
  font-weight: 700; font-size: 0.9rem; transition: background 0.2s;
}
.popup-yt a:hover { background: rgba(117,89,203,0.25); }

/* ── SKILLS ── */
#skills { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 3rem; }
.skill-row { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem; }
.skill-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.skill-pct { font-weight: 700; font-size: 0.78rem; color: var(--muted); }
.skill-bar {
  grid-column: 1/-1; height: 5px;
  background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden;
}
.skill-fill {
  height: 100%; border-radius: 10px;
  background: linear-gradient(to right, var(--violet), var(--lavender));
  box-shadow: 0 0 10px rgba(149,99,222,0.5);
  transition: width 1.2s ease; width: 0;
}
.skill-fill.go { width: var(--w); }

/* —— DEMOREEL —— */
.proj-section {
  margin-bottom: 3.5rem;
  font-family: 'Cinzel', sans-serif;
  font-size: 1.4rem;
}

.proj-section h3 {
  font-family: 'Cinzel', sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.yt-block {
  background: rgba(117,89,203,0.1);
  border: 1px solid rgba(117,89,203,0.3);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.yt-block a {
  font-family: 'Nunito', sans-serif;
  font-size: 1;
  color: var(--lilac);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

/* ── CONTACT ── */
#contact {
  background: radial-gradient(ellipse 70% 60% at 50% 80%, #2D1F5E 0%, var(--deep) 70%);
  text-align: center;
}
.contact-cards { display: flex; flex-direction: column; gap: 0.8rem; max-width: 420px; margin: 0 auto 2rem; }
.contact-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.4rem; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(117,89,203,0.25);
  text-decoration: none; color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
}
.contact-row:hover { transform: translateY(-3px); border-color: rgba(149,99,222,0.5); }
.contact-row span { font-size: 1.3rem; }
.contact-row small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lavender); margin-bottom: 0.1rem; }
.contact-row strong { font-size: 0.9rem; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(10,6,25,0.95);
  backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(117,89,203,0.4);
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.8rem; cursor: pointer; transition: color 0.2s;
}
.lightbox-close:hover { color: var(--lilac); }

/* ── FOOTER ── */
footer {
  padding: 1.2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--deep); border-top: 1px solid rgba(117,89,203,0.15);
  font-size: 0.8rem; color: var(--muted);
}
.avail { color: var(--lavender); font-weight: 700; }
.avail::before { content: '● '; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0.9rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  section { padding: 3.5rem 1.5rem; }
  .bio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bio-avatar { width: 180px; margin: 0 auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .pcard.featured { grid-column: span 1; }
  .skills-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}