/*
  assets/css/style.css
  Styles globaux pour le portfolio principal.
  Séparé du HTML pour une arborescence propre et évolutive.
*/

:root {
  --bg: #000;
  --accent: #00ff88;
  --text: #e6f6ee;
  --muted: #7f9aa0;
  --panel: rgba(0, 255, 136, 0.03);
  --radius: 16px;
  --shadow: 0 0 30px rgba(0, 255, 136, 0.15);
  --glow: 0 0 12px rgba(0, 255, 136, 0.6);
  --ease: cubic-bezier(.2, .9, .2, 1);
}

/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fira Code", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

header {
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.lang-btn {
  padding: 8px 16px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.lang-btn.active {
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hidden {
  display: none !important;
}

.action-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.action-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.5s;
}

.action-link:hover::before {
  left: 100%;
}

.action-link:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.action-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.action-text {
  font-weight: 600;
  letter-spacing: 0.025em;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--accent);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
  animation: glowPulse 3s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: var(--glow);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.9);
    transform: scale(1.02);
  }
}

.hero-copy {
  margin-top: 18px;
  color: var(--muted);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.85;
  padding: 1.5rem 1.75rem;
  border-radius: 28px;
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.12);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.li-badge-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  border-radius: 24px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.12);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  padding: 0;
  margin-top: 40px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 20px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 24px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
  border-bottom: 3px solid transparent;
  min-width: 120px;
}

.nav-item:hover {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.03);
  border-bottom-color: var(--accent);
  transform: translateY(-2px);
}

.nav-item:active,
.nav-item.active {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
  border-bottom-color: var(--accent);
}

.nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s var(--ease);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item:hover .nav-icon {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: scale(1.1);
}

.nav-item:hover .nav-icon i {
  color: var(--accent);
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

section {
  margin: 50px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.05);
  overflow: hidden;
}

.section-title {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.section-heading {
  margin-top: 12px;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}

.section-description {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 820px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 26px;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 255, 136, 0.1);
  padding: 24px;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  position: relative;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow);
  border-color: rgba(0, 255, 136, 0.3);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  margin-top: 14px;
  padding-left: 18px;
  list-style: disc;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.cta-secondary:hover {
  background: rgba(0, 255, 136, 0.1);
  color: #fff;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-meta span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  color: #d4fff0;
  font-size: 0.82rem;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
}

@media (max-width: 760px) {
  header {
    padding: 50px 14px 20px;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* === Layout === */
.section {
  padding: clamp(40px, 6vw, 80px) 20px;
}

.section-container {
  max-width: 1100px;
  margin: auto;
}

/* === Header === */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(30px, 5vw, 50px);
}

.section-icon {
  font-size: 28px;
  opacity: 0.9;
}

.section-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
}

.section-subtitle {
  font-size: 14px;
  opacity: 0.6;
}

/* === Grid === */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* === Card === */
.skill-category {
  position: relative;
  padding: 18px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.06);

  transition: 0.3s ease;
  overflow: hidden;
}

/* Glow subtil */
.skill-category::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(79,140,255,0.15), transparent 70%);
  opacity: 0;
  transition: 0.3s;
}

.skill-category:hover {
  transform: translateY(-6px);
  border-color: rgba(79,140,255,0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.skill-category:hover::before {
  opacity: 1;
}

/* === Header card === */
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.category-header i {
  font-size: 18px;
  color: #4f8cff;
}

/* === List === */
.category-list {
  margin: 0;
  padding-left: 18px;
}

.category-list li {
  margin-bottom: 8px;
  line-height: 1.5;
  opacity: 0.85;
}

/* Timeline container */
.experience-timeline {
  position: relative;
  margin-left: 10px;
  padding-left: 30px;
}

/* Ligne verticale */
.experience-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

/* Item */
.experience-item {
  position: relative;
  margin-bottom: 40px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

/* Effet hover */
.experience-item:hover {
  transform: translateX(5px);
}

/* Point timeline */
.experience-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 25px;
  width: 12px;
  height: 12px;
  background: #4f8cff;
  border-radius: 50%;
}

/* Header */
.experience-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

/* Company */
.experience-company h3 {
  margin: 0;
}

.experience-location {
  font-size: 14px;
  opacity: 0.6;
}

/* Role */
.experience-role h4 {
  margin: 0;
}

.experience-period {
  font-size: 14px;
  opacity: 0.6;
}

/* Liste */
.experience-achievements {
  margin: 0;
  padding-left: 20px;
}

.experience-achievements li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  perspective: 1000px;
}

/* CARD */
.project-card {
  position: relative;
  padding: 25px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: all 0.4s ease;
  overflow: hidden;
}

/* Glow background */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover effet */
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(79, 140, 255, 0.4);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(79, 140, 255, 0.2);
}

.project-card:hover::before {
  opacity: 1;
}

/* HEADER */
.project-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* ICON */
.project-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: linear-gradient(135deg, #4f8cff, #7a5cff);
  color: white;

  box-shadow: 0 5px 15px rgba(79, 140, 255, 0.4);

  transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
  transform: rotate(8deg) scale(1.1);
}

/* TITLE */
.project-title {
  margin: 0;
  font-size: 20px;
}

/* TYPE */
.project-type {
  font-size: 13px;
  opacity: 0.6;
}

/* DESCRIPTION */
.project-description {
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.85;
}

/* STACK */
.project-tech {
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.7;
}

/* LINKS */
.project-links {
  margin-top: 15px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 8px;

  background: rgba(79, 140, 255, 0.1);
  color: #4f8cff;

  text-decoration: none;
  font-size: 14px;

  transition: all 0.3s ease;
}

.project-link:hover {
  background: #4f8cff;
  color: white;
  box-shadow: 0 0 10px rgba(79, 140, 255, 0.6);
}

/* MICRO ANIMATION (entrée douce) */
.project-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* KEYFRAMES */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === GRID === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* === CARD === */
.contact-card {
  position: relative;
  padding: 22px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.06);

  transition: all 0.3s ease;
  overflow: hidden;
}

/* Glow subtil */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(79,140,255,0.18), transparent 70%);
  opacity: 0;
  transition: 0.3s ease;
}

/* Hover premium */
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,140,255,0.35);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 20px rgba(79,140,255,0.15);
}

.contact-card:hover::before {
  opacity: 1;
}

/* === ICON === */
.contact-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: linear-gradient(135deg, #4f8cff, #7a5cff);
  color: #fff;

  font-size: 22px;

  box-shadow: 0 6px 18px rgba(79,140,255,0.4);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(6deg);
}

/* === TEXT === */
.contact-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.contact-description {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* === LINK === */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 14px;
  font-weight: 500;

  color: #4f8cff;
  text-decoration: none;

  padding: 8px 12px;
  border-radius: 8px;

  background: rgba(79,140,255,0.08);

  transition: all 0.25s ease;
}

/* Hover CTA */
.contact-link:hover {
  background: #4f8cff;
  color: #fff;
  box-shadow: 0 0 12px rgba(79,140,255,0.6);
}

/* === FOOTER === */
footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}

.contact-card {
  position: relative;
  z-index: 1;
}

.contact-card::before {
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 2;
}

.project-card,
.contact-card {
  position: relative;
  z-index: 1;
}
.project-card::before,
.contact-card::before {
  pointer-events: none;
}