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

:root {
  --bg:        #0a0a0c;
  --bg-2:      #111116;
  --bg-3:      #18181f;
  --border:    rgba(255,255,255,0.07);
  --accent:    #9e42f5;       /* vert acide — ta couleur signature */
  --accent-2:  #5b6fff;       /* bleu secondaire pour les tags */
  --text:      #e8e8ec;
  --muted:     #666672;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius:    8px;
  --max:       1160px;
  --nav-h:     72px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  max-width: 5%;
  max-height: 3%;
  padding-right: 2%;
}


.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -.02em;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(10,10,12,.85);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: left;
}
.nav-links {
  display: flex;
  gap: 2.4rem;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,245,66,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition-delay: .1s;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .1em;
}
.hero-title span { transition-delay: .18s; }
.hero-title .outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
  transition-delay: .26s;
}
.hero-title span:last-child { transition-delay: .34s; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  background: var(--accent);
  color: #0a0a0c;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  transition-delay: .42s;
}
.btn-primary:hover {
  background: #bb55ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(179, 66, 245, 0.3);
}
.btn-primary:active { transform: none; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.about-text p:last-child { margin-bottom: 0; }

.tag-group { margin-bottom: 2rem; }
.tag-title {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  padding: .35rem .9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--text);
  background: var(--bg-3);
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.accent {
  border-color: rgba(91,111,255,.3);
  color: #8896ff;
  background: rgba(91,111,255,.07);
}
.tag.accent:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ============================================================
   SHOWREEL
   ============================================================ */
.showreel { background: var(--bg); }
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   WORK / PLAYLIST
   ============================================================ */
.work { background: var(--bg-2); }
.playlist-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
}
.playlist-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--bg); }

.software-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.software-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-2);
  transition: background .2s;
}
.software-item:hover { background: var(--bg-3); }

.software-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.software-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.icon-fallback {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
}

.software-info { flex: 1; min-width: 0; }
.software-name {
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: .5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.software-bar {
  width: 100%;
  height: 3px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .35rem;
}
.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.software-level {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .05em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-info { padding-top: .5rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-detail a {
  font-size: .92rem;
  color: var(--muted);
  transition: color .2s;
}
.contact-detail a:hover { color: var(--text); }
.contact-availability {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 2rem;
}
.disponibility-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(255, 0, 68);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(206, 66, 245, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(200,245,66,0); }
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.optional { font-style: italic; text-transform: none; letter-spacing: 0; }
input, textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus {
  border-color: rgba(200, 0, 255, 0.842);
  box-shadow: 0 0 0 3px rgba(200,245,66,.06);
}
.form-notice {
  font-size: .85rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
}
.footer-copy {
  font-size: .78rem;
  color: var(--muted);
}

.h-captcha {
  margin-top: .4rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,12,.97);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.8rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { font-size: 1.1rem; }
  .nav-burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(3rem, 13vw, 5rem); }
  .section { padding: 80px 0; }
  .software-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: .8rem; text-align: center; }
}
