/* ══════════════════════════════════════════════
   PORTFOLIO — NATHAN LOURENÇO
   Palette Celeste : fond sombre + rose/magenta

   Couleurs utilisées :
     Fond principal      #0d0a12
     Surface / carte     #1c1328
     Rose vif            #e8397d
     Rose sombre         #a0234f
     Rose très sombre    #5c1030
     Rose lumineux       #ff5fa0
     Texte principal     #f0e6f0
     Texte atténué       #8a7090
     Bordure             rgba(232, 57, 125, 0.2)
     Fond badge          rgba(232, 57, 125, 0.1)
     Fond chip           rgba(232, 57, 125, 0.09)
     Fond barre skill    rgba(232, 57, 125, 0.12)
     Fond placeholder    rgba(232, 57, 125, 0.03)

   Polices :
     Titres / corps  : Syne (Google Fonts)
     Mono / labels   : Space Mono (Google Fonts)
══════════════════════════════════════════════ */


/* ── RESET & BASE ── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0d0a12;
  color: #f0e6f0;
  font-family: 'Syne', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #e8397d;
  text-decoration: none;
}

a:hover {
  color: #ff5fa0;
}


/* ── NAV ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background-color: rgba(13, 10, 18, 0.97);
  border-bottom: 1px solid rgba(232, 57, 125, 0.2);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #e8397d;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #8a7090;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ff5fa0;
}

.nav-links a.social {
  color: #e8397d;
}

.nav-links a.nav-cv {
  color: #e8397d;
}


/* ── SECTIONS (base commune) ── */

section {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid rgba(232, 57, 125, 0.2);
}

.section-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #e8397d;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: rgba(232, 57, 125, 0.2);
}


/* ── HERO ── */

.hero {
  padding: 4.5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 57, 125, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #e8397d;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: #e8397d;
}

.hero-name {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero-name span {
  color: #e8397d;
}

.hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: #8a7090;
  margin-bottom: 1.25rem;
}

.objective-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(232, 57, 125, 0.1);
  border: 1px solid #a0234f;
  border-radius: 2px;
  padding: 0.45rem 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #ff5fa0;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.objective-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #e8397d;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-desc {
  font-size: 0.95rem;
  color: #f0e6f0;
  max-width: 540px;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.hero-desc strong {
  color: #ffffff;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  background-color: #e8397d;
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #ff5fa0;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #e8397d;
  border: 1px solid #a0234f;
  padding: 0.65rem 1.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: #e8397d;
  color: #ff5fa0;
}

.contact-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 57, 125, 0.2);
}

.contact-item {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #8a7090;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-item .label {
  color: #e8397d;
}


/* ── DIPLÔMES ── */

.diploma-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diploma-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.diploma-dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid #e8397d;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.diploma-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.diploma-school {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #8a7090;
}

.diploma-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #a0234f;
  margin-top: 3px;
}


/* ── COMPÉTENCES BUT ── */

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.comp-card {
  background-color: #1c1328;
  border: 1px solid rgba(232, 57, 125, 0.2);
  border-radius: 4px;
  padding: 1rem 1.2rem 1rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.comp-card:hover {
  border-color: #a0234f;
}

.comp-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #e8397d;
}

.comp-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #e8397d;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.comp-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.comp-desc {
  font-size: 0.78rem;
  color: #8a7090;
  line-height: 1.55;
}

.comp-proof {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #a0234f;
  background-color: rgba(232, 57, 125, 0.07);
  padding: 3px 8px;
  border-radius: 2px;
}


/* ── PROJETS ── */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.proj-card {
  background-color: #1c1328;
  border: 1px solid rgba(232, 57, 125, 0.2);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  transition: border-color 0.2s;
}

.proj-card:hover {
  border-color: #a0234f;
}

.proj-placeholder {
  background-color: rgba(232, 57, 125, 0.03);
  border: 1px dashed #a0234f;
  border-radius: 4px;
  padding: 1rem 1.2rem;
  opacity: 0.7;
}

.proj-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #e8397d;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.proj-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.proj-placeholder .proj-name {
  color: #8a7090;
}

.proj-desc {
  font-size: 0.78rem;
  color: #8a7090;
  line-height: 1.55;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chip {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #a0234f;
  background-color: rgba(232, 57, 125, 0.09);
  padding: 2px 7px;
  border-radius: 2px;
}

.chip-ph {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #8a7090;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 2px;
  font-style: italic;
}


/* ── COMPÉTENCES TECHNIQUES (barres) ── */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #8a7090;
}

.skill-bar-bg {
  height: 3px;
  background-color: rgba(232, 57, 125, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5c1030, #e8397d);
  border-radius: 2px;
}

.langs-block {
  margin-top: 1.5rem;
}

.langs-title {
  font-size: 10px;
  margin-bottom: 0.75rem;
}

.langs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* ── EXPÉRIENCE ── */

.exp-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.exp-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #a0234f;
  padding-top: 3px;
  text-align: right;
}

.exp-right {
  border-left: 1px solid rgba(232, 57, 125, 0.2);
  padding-left: 1.1rem;
}

.exp-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.exp-company {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #e8397d;
  margin-bottom: 6px;
}

.exp-desc {
  font-size: 0.78rem;
  color: #8a7090;
  line-height: 1.55;
}


/* ── LOISIRS ── */

.hobbies-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hobby-chip {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #a0234f;
  background-color: rgba(232, 57, 125, 0.09);
  padding: 5px 14px;
  border-radius: 2px;
}


/* ── FOOTER ── */

footer {
  padding: 1.5rem 2rem;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #8a7090;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-accent {
  color: #e8397d;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: #8a7090;
  font-size: 11px;
}

.footer-socials a:hover {
  color: #e8397d;
}


/* ── RESPONSIVE ── */

@media (max-width: 600px) {

  nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.6rem;
  }

  .hero,
  section {
    padding: 2rem 1.2rem;
  }

  .exp-item {
    grid-template-columns: 1fr;
  }

  .exp-date {
    text-align: left;
  }

  footer {
    padding: 1.2rem;
  }
}
