@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

/* ── BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #080808;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

/* ── MAIN ── */
main {
  padding-left: 80px;
}

/* ── COULEURS UTILITAIRES ── */
.violet {
  color: #8b5cf6;
}

.label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #888888;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.nav-email {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #888888;
  letter-spacing: 0.05em;
}

.nav-liens {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-liens a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #888888;
  transition: color 0.2s;
}

.nav-liens a:hover {
  color: #ffffff;
}

/* ── SIDEBAR SOCIAUX ── */
.sociaux {
  position: fixed;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 100;
}

.sociaux a {
  color: #888888;
  font-size: 18px;
  transition: color 0.2s;
}

.sociaux a:hover {
  color: #ffffff;
}

/* ── BOUTON CV ── */
.btn-cv {
  position: fixed;
  bottom: 24px;
  right: 40px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #888888;
  z-index: 100;
  transition: color 0.2s;
}

.btn-cv:hover {
  color: #ffffff;
}

/* ── SECTION HERO ── */
#accueil {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  padding: 0 120px 0 120px;
  position: relative;
  z-index: 1;
}

.hero-gauche {
  flex: 1;
}

.hero-gauche p {
  font-size: 16px;
  color: #8b5cf6;
  margin-bottom: 8px;
}

.hero-gauche h1 {
  font-family: 'Syne', sans-serif;
  font-size: 45px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-centre {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 20px;
}

#canvas-hero {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-droite {
  flex: 1;
  text-align: right;
}

.hero-droite p {
  font-size: 16px;
  color: #888888;
  margin-bottom: 8px;
}

.hero-droite h2 {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

/* ── SECTION A PROPOS ── */
#a-propos {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.apropos-gauche {
  flex: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apropos-droite {
  flex: 1;
  padding: 0 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.apropos-droite .label {
  letter-spacing: 0.2em;
  color: #8b5cf6;
}

.apropos-droite p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

#a-propos, #ce-que-je-fais {
  overflow: hidden;
}

/* ── SECTION CE QUE JE FAIS ── */
#ce-que-je-fais {
  display: flex;
  align-items: center;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.cqjf-gauche {
  flex: 1;
  padding: 0 60px;
}

.cqjf-gauche h2 {
  font-family: 'Syne', sans-serif;
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.cqjf-centre {
  flex: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cqjf-droite {
  flex: 1;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card-skill {
  border: 1px dashed #333;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-skill h3 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.card-skill p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* ── SECTION Ma Carrière & expérience ── */
#experience {
  padding: 120px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.experience-titre {
  font-family: 'Syne', sans-serif;
  font-size: 56px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, #444, #8b5cf6);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  align-items: start;
  gap: 10px;
  width: 100%;
}

.timeline-gauche {
  text-align: left;
  padding-left: 60px;
}

.timeline-gauche h3 {
  font-size: 20px;
  font-weight: 700;
}

.timeline-gauche span {
  font-size: 14px;
  color: #8b5cf6;
}

.timeline-date {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
  padding-right: 50px;
  color: #ffffff;
}

.timeline-droite {
  padding-left: 5px;
}

.timeline-droite p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

/* ── SECTION CONTACT ── */
#contact {
  padding: 120px 160px;
  display: flex;
  flex-direction: column;
  gap: 60px;
    position: relative;
  z-index: 1;
}

.contact-titre {
  font-family: 'Syne', sans-serif;
  font-size: 80px;
  font-weight: 800;
}

.contact-contenu {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.contact-gauche {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-gauche a {
  font-size: 16px;
  transition: color 0.2s;
}

.contact-gauche a:hover {
  color: #8b5cf6;
}

.contact-centre {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-centre a {
  font-size: 18px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  transition: color 0.2s;
}

.contact-centre a:hover {
  color: #8b5cf6;
}

.contact-droite {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  color: #888;
  font-size: 14px;
}

/* ── CARD SKILL ── */
.card-btn {
  background: none;
  border: 1px solid #444;
  color: #ffffff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  align-self: flex-end;
  transition: border-color 0.2s;
}

.card-btn:hover {
  border-color: #8b5cf6;
}

.card-skill {
  border: 1px dashed #333;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  border: 1px solid #444;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #888;
}

.card-btn i {
  transition: transform 0.3s ease;
}

.card-skill.open .card-btn i {
  transform: rotate(45deg);
}

/* ── RESPONSIVE TABLETTE ── */
@media (max-width: 1024px) {

  /* HERO */
  #accueil {
    padding: 0 60px;
  }

  .hero-gauche h1 {
    font-size: 48px;
  }

  .hero-droite h2 {
    font-size: 48px;
  }

  /* EXPERIENCE */
  #experience {
    padding: 80px 60px;
  }

  /* CONTACT */
  #contact {
    padding: 80px 60px;
  }
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 768px) {

  /* NAVBAR */
  .nav-email {
    display: none;
  }

  .nav-liens {
    gap: 16px;
  }

  /* HERO */
  #accueil {
    flex-direction: column;
    padding: 100px 20px 0 20px;
    height: auto;
  }

  .hero-centre {
    display: none;
  }

  .hero-droite {
    text-align: left;
  }

  .hero-gauche h1, .hero-droite h2 {
    font-size: 36px;
  }

  /* A PROPOS */
  #a-propos {
    flex-direction: column;
    height: auto;
  }

  .apropos-gauche {
    width: 100%;
    height: 300px;
  }

  .apropos-droite {
    padding: 40px 20px;
  }

  /* CE QUE JE FAIS */
  #ce-que-je-fais {
    flex-direction: column;
    height: auto;
    padding: 60px 20px;
  }

  .cqjf-centre {
    display: none;
  }

  /* EXPERIENCE */
  #experience {
    padding: 60px 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-gauche {
    padding-left: 0;
  }

  .timeline-date {
    font-size: 16px;
  }

  /* CONTACT */
  #contact {
    padding: 60px 20px;
  }

  .contact-contenu {
    flex-direction: column;
    gap: 40px;
  }

  .contact-titre {
    font-size: 48px;
  }

  /* SIDEBAR */
  .sociaux {
    display: none;
  }
}

/* ── CURSEUR LUEUR ── */
.curseur-lueur {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.curseur-lueur {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 255, 1) 0%, rgba(200, 150, 255, 0.8) 40%, rgba(139, 92, 246, 0.2) 70%, transparent 100%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(2px);
}

/* ── ANIMATIONS CHARGEMENT ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-gauche p {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-gauche h1 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-droite p {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-droite h2 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.nav-logo {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

/* ── ANIMATIONS SCROLL ── */
.scroll-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LOADER ── */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.loader span {
  font-family: 'Syne', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.1em;
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-barre-container {
  width: 200px;
  height: 2px;
  background: #222;
  margin-top: 20px;
}

.loader-barre {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #8b5cf6, #22d3ee);
  animation: chargement 1.5s ease forwards;
}

@keyframes chargement {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ── HOVER NAVBAR ── */
.nav-liens a {
  position: relative;
}

.nav-liens a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #8b5cf6;
  transition: width 0.3s ease;
}

.nav-liens a:hover::after {
  width: 100%;
}

/* ── Fond Animé ── */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, aside {
  position: relative;
  z-index: 1;
}

/* ── Terminal Animé ── */
#term-wrap {
  background: #0a0a0f;
  border-radius: 10px;
  border: 1px solid #7B35EF;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  width: 90%;
  margin: 0 auto;
}

.term-bar {
  background: #111118;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(123, 53, 239, 0.2);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.term-title {
  color: #7B35EF;
  font-size: 13px;
  margin-left: 8px;
  flex: 1;
  text-align: center;
  letter-spacing: 1px;
}

#term-body {
  padding: 18px 20px;
  min-height: 320px;
  font-size: 13px;
  line-height: 1.7;
  color: #c0c0c0;
}

.line {
  display: flex;
  gap: 6px;
}

.prompt { color: #7B35EF; white-space: nowrap; }
.cmd { color: #e0e0e0; }
.out { color: #888; }
.out.success { color: #5DCAA5; }
.out.warn { color: #EF9F27; }
.out.purple { color: #A855F7; }
.out.err { color: #E24B4A; }

#cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #7B35EF;
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── SkillCard Animé ── */
#profile-wrap {
  background: #0a0a0f;
  border-radius: 10px;
  border: 1px solid #7B35EF;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  width: 90%;
  margin: 0 auto;
}

.p-bar {
  background: #111118;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(123,53,239,0.2);
}

.p-dot { width: 12px; height: 12px; border-radius: 50%; }

.p-title {
  color: #7B35EF;
  font-size: 13px;
  margin-left: 8px;
  flex: 1;
  text-align: center;
  letter-spacing: 1px;
}

#profile-body {
  padding: 20px 24px 24px;
  font-size: 13px;
  line-height: 1.9;
  color: #c0c0c0;
}

.p-cmd { color: #7B35EF !important; margin-bottom: 12px; }

.p-row {
  display: flex;
  gap: 0;
  margin: 0;
}

.p-key {
  color: #5DCAA5 !important;
  min-width: 120px;
  flex-shrink: 0;
}

.p-sep { color: #444 !important; margin: 0 8px; }
.p-val { color: #e0e0e0 !important; }
.p-val.purple { color: #A855F7 !important; }
.p-val.warn { color: #EF9F27 !important; }
.p-val.cyan { color: #22d3ee !important; }

.p-divider {
  border: none;
  border-top: 1px solid rgba(123,53,239,0.2);
  margin: 14px 0;
}

.p-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: #7B35EF;
  vertical-align: middle;
  animation: pc-blink 1s step-end infinite;
}

@keyframes pc-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.fade-in { animation: pFadeIn 0.15s ease forwards; }

@keyframes pFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── ID Animé ── */
#hero-term-wrap {
  background: #0a0a0f !important;
  border-radius: 10px;
  border: 1px solid #7B35EF;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  width: 220%;
  margin: 0 auto;
  position: relative;
  left: 0;
  transform: translateX(-30%);
}

.ht-bar {
  background: #111118 !important;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(123,53,239,0.2);
}

.ht-dot { width: 12px; height: 12px; border-radius: 50%; }

.ht-title {
  color: #7B35EF;
  font-size: 13px;
  margin-left: 8px;
  flex: 1;
  text-align: center;
  letter-spacing: 1px;
}

#ht-body {
  padding: 20px 24px 24px;
  font-size: 13px;
  line-height: 1.9;
  color: #c0c0c0;
}

.ht-cmd { color: #7B35EF !important; margin-bottom: 10px; }

.ht-row { display: flex; }

.ht-key {
  color: #5DCAA5 !important;
  min-width: 110px;
  flex-shrink: 0;
}

.ht-sep { color: #444 !important; margin: 0 8px; }
.ht-val { color: #e0e0e0 !important; }
.ht-val.purple { color: #A855F7 !important; }
.ht-val.warn { color: #EF9F27 !important; }
.ht-val.cyan { color: #22d3ee !important; }
.ht-val.green { color: #5DCAA5 !important; }

.ht-divider {
  border: none;
  border-top: 1px solid rgba(123,53,239,0.2);
  margin: 12px 0;
}

.ht-cursor {
  display: inline-block;
  width: 8px;
  height: 13px;
  background: #7B35EF;
  vertical-align: middle;
  animation: ht-blink 1s step-end infinite;
}

@keyframes ht-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ht-fade { animation: ht-fadein 0.15s ease forwards; }

@keyframes ht-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}