:root {
  --bg: #080e0a;
  --bg2: #0c1210;
  --bg3: #111a14;
  --accent: #22c55e;
  --accent2: #4ade80;
  --text: #e8f0eb;
  --muted: #7d9485;
  --border: rgba(34, 197, 94, 0.18);
  --glow: 0 0 40px rgba(34, 197, 94, 0.25);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.cursor {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(34,197,94,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
}

body::before {
  content:'';
  position:fixed;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events:none;
  z-index:0;
  opacity:0.4;
}

nav {
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.2rem 4rem;
  backdrop-filter:blur(20px);
  background:rgba(8,14,10,0.82);
  border-bottom:1px solid var(--border);
}

.nav-logo {
  font-family:'Syne',sans-serif;
  font-weight:800;
  font-size:1.1rem;
  letter-spacing:0.08em;
  color:var(--text);
  text-decoration:none;
}

.nav-logo span { color:var(--accent); }

.nav-links {
  display:flex;
  gap:2.5rem;
  list-style:none;
}

.nav-links a {
  color:var(--muted);
  text-decoration:none;
  font-size:0.875rem;
  font-weight:500;
  letter-spacing:0.04em;
  transition:color .2s;
  position:relative;
}

.nav-links a::after {
  content:'';
  position:absolute;
  bottom:-4px;
  left:0;
  width:0;
  height:1.5px;
  background:var(--accent);
  transition:width .2s;
}

.nav-links a:hover { color:var(--text); }
.nav-links a:hover::after { width:100%; }

.nav-cta {
  background:var(--accent)!important;
  color:#050f08!important;
  padding:0.55rem 1.4rem;
  border-radius:6px;
  font-size:0.85rem!important;
  font-weight:700!important;
}

.nav-cta:hover {
  background:var(--accent2)!important;
  box-shadow:var(--glow);
}

.nav-cta::after { display:none!important; }

.hamburger {
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  z-index:200;
}

.hamburger span {
  display:block;
  width:24px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition:all .3s;
}

.mobile-menu {
  display:none;
  position:fixed;
  inset:0;
  background:var(--bg);
  z-index:150;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2.5rem;
}

.mobile-menu.open { display:flex; }

.mobile-menu a {
  font-family:'Syne',sans-serif;
  font-size:1.8rem;
  font-weight:700;
  color:var(--text);
  text-decoration:none;
}

.mobile-menu a:hover { color:var(--accent); }

.hero {
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:8rem 4rem 5rem;
  position:relative;
  overflow:hidden;
}

.hero-grid {
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(34,197,94,0.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(34,197,94,0.07) 1px,transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 50%,black 30%,transparent 100%);
}

.hero-glow {
  position:absolute;
  width:700px;
  height:700px;
  background:radial-gradient(ellipse,rgba(34,197,94,0.10) 0%,transparent 65%);
  top:-100px;
  right:-200px;
  pointer-events:none;
}

.hero-glow2 {
  position:absolute;
  width:400px;
  height:400px;
  background:radial-gradient(ellipse,rgba(74,222,128,0.06) 0%,transparent 65%);
  bottom:0;
  left:10%;
  pointer-events:none;
}

.hero-content {
  position:relative;
  max-width:980px;
  width:100%;
}

.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  background:rgba(34,197,94,0.08);
  border:1px solid var(--border);
  border-radius:100px;
  padding:0.4rem 1rem;
  font-size:0.78rem;
  font-weight:500;
  color:var(--accent2);
  letter-spacing:0.06em;
  text-transform:uppercase;
  margin-bottom:2rem;
  animation:fadeUp .6s ease both;
}

.hero-badge::before {
  content:'';
  width:6px;
  height:6px;
  background:var(--accent2);
  border-radius:50%;
  animation:pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.4; transform:scale(.7); }
}

.hero h1 {
  font-family:'Syne',sans-serif;
  font-size:clamp(2.8rem,6vw,5rem);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-0.02em;
  animation:fadeUp .6s .1s ease both;
}

.hero h1 .accent { color:var(--accent); }

.hero-sub {
  margin-top:1.5rem;
  font-size:1.15rem;
  color:var(--muted);
  max-width:540px;
  line-height:1.7;
  animation:fadeUp .6s .2s ease both;
}

.hero-actions {
  display:flex;
  gap:1rem;
  margin-top:2.5rem;
  flex-wrap:wrap;
  animation:fadeUp .6s .3s ease both;
}

.btn-primary {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  background:var(--accent);
  color:#050f08;
  padding:0.85rem 2rem;
  border-radius:8px;
  font-weight:700;
  font-size:0.95rem;
  text-decoration:none;
  transition:background .2s,transform .2s,box-shadow .2s;
}

.btn-primary:hover {
  background:var(--accent2);
  transform:translateY(-2px);
  box-shadow:var(--glow);
}

.btn-secondary {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  background:transparent;
  color:var(--text);
  padding:0.85rem 2rem;
  border-radius:8px;
  border:1px solid var(--border);
  font-weight:500;
  font-size:0.95rem;
  text-decoration:none;
  transition:border-color .2s,transform .2s;
}

.btn-secondary:hover {
  border-color:var(--accent);
  transform:translateY(-2px);
}

/* Bouton téléchargement CV */
.btn-download {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  background:transparent;
  color:var(--accent);
  padding:0.85rem 2rem;
  border-radius:8px;
  border:1px solid var(--accent);
  font-weight:600;
  font-size:0.95rem;
  text-decoration:none;
  transition:background .2s,color .2s,transform .2s,box-shadow .2s;
  animation:fadeUp .6s .35s ease both;
}

.btn-download:hover {
  background:var(--accent);
  color:#050f08;
  transform:translateY(-2px);
  box-shadow:var(--glow);
}

.hero-stats {
  display: grid;
  grid-template-columns: 180px 180px 260px;
  gap: 3rem;
  margin-top: 4rem;
  animation: fadeUp .6s .4s ease both;
  align-items: start;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-num,
.ecosystem-mini {
  display: flex;
  align-items: center;
  min-height: 150px;
}

.stat-num {
  font-family:'Syne',sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-num span {
  color: var(--accent);
  padding: 0 2px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to { opacity:1; transform:translateY(0); }
}

.stat-item-ecosystem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

.ecosystem-mini {
  position: relative;
  width: 190px;
  height: 190px;
  margin-bottom: 0.7rem;
}

.ecosystem-center,
.ecosystem-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.ecosystem-center {
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(74,222,128,0.12));
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  box-shadow: 0 0 30px rgba(34,197,94,0.16);
}

.ecosystem-node {
  width: 62px;
  height: 62px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.66rem;
  backdrop-filter: blur(6px);
}

.node-top { top: 0; left: 50%; transform: translateX(-50%); }
.node-right-top { top: 20px; right: 0; }
.node-right { top: 50%; right: 0; transform: translateY(-50%); }
.node-right-bottom { right: 0; bottom: 20px; }
.node-bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.node-left-bottom { left: 0; bottom: 20px; }
.node-left { top: 50%; left: 0; transform: translateY(-50%); }
.node-left-top { top: 20px; left: 0; }

section {
  position:relative;
  padding:6rem 4rem;
}

.section-label {
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:var(--accent);
  font-weight:600;
  margin-bottom:0.8rem;
}

.section-title {
  font-family:'Syne',sans-serif;
  font-size:clamp(1.8rem,3.5vw,2.8rem);
  font-weight:800;
  line-height:1.1;
  letter-spacing:-0.02em;
  margin-bottom:1rem;
}

.section-desc {
  color:var(--muted);
  max-width:560px;
  font-size:1rem;
  line-height:1.75;
  margin-bottom:3rem;
}

.max-w {
  max-width:1200px;
  margin:0 auto;
}

.divider {
  height:1px;
  background:linear-gradient(90deg,transparent,var(--border),transparent);
}

#about { background:var(--bg2); }

.about-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5rem;
  align-items:center;
}

.about-img-wrap {
  position:relative;
  display:flex;
  justify-content:center;
}

.about-img-wrap::before {
  content:'';
  position:absolute;
  inset:-2px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  border-radius:18px;
  z-index:0;
  opacity:.5;
}

.about-img-placeholder {
  position:relative;
  z-index:1;
  width:100%;
  max-width:360px;
  aspect-ratio:3/4;
  background:var(--bg3);
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.75rem;
  color:var(--muted);
  font-size:0.9rem;
}

.about-img-placeholder svg { opacity:0.3; }

.about-text p {
  color:var(--muted);
  margin-bottom:1rem;
  line-height:1.8;
}

.about-tags {
  display:flex;
  flex-wrap:wrap;
  gap:0.6rem;
  margin-top:1.5rem;
}

.tag {
  background:rgba(34,197,94,0.07);
  border:1px solid var(--border);
  color:var(--accent2);
  padding:0.35rem 0.9rem;
  border-radius:100px;
  font-size:0.8rem;
  font-weight:500;
}

.badminton-note {
  margin-top:1.5rem;
  padding:1.2rem 1.5rem;
  background:rgba(34,197,94,0.04);
  border:1px solid var(--border);
  border-radius:12px;
}

.badminton-note p {
  font-size:0.88rem;
  color:var(--muted);
  margin:0;
  line-height:1.7;
}

.about-contact {
  margin-top:2rem;
  display:flex;
  flex-direction:column;
  gap:0.6rem;
}

.about-contact a {
  color:var(--muted);
  text-decoration:none;
  font-size:0.9rem;
  display:flex;
  align-items:center;
  gap:0.6rem;
  transition:color .2s;
}

.about-contact a:hover { color:var(--accent); }

#skills { background:var(--bg); }

.skills-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1.2rem;
}

.skill-card {
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:14px;
  padding:1.8rem;
  transition:border-color .2s,transform .2s,box-shadow .2s;
}

.skill-card:hover {
  border-color:var(--accent);
  transform:translateY(-4px);
  box-shadow:0 8px 40px rgba(34,197,94,0.10);
}

.skill-icon {
  width:42px;
  height:42px;
  background:rgba(34,197,94,0.10);
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:1rem;
  font-size:1.3rem;
}

.skill-card h3 {
  font-family:'Syne',sans-serif;
  font-size:1rem;
  font-weight:700;
  margin-bottom:0.75rem;
}

.skill-tags {
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem;
}

.skill-tag {
  background:rgba(255,255,255,0.04);
  color:var(--muted);
  padding:0.25rem 0.65rem;
  border-radius:6px;
  font-size:0.75rem;
}

#experience { background:var(--bg2); }

.timeline { position:relative; }

.timeline::before {
  content:'';
  position:absolute;
  left:0;
  top:8px;
  bottom:0;
  width:1px;
  background:linear-gradient(to bottom,var(--accent),transparent);
}

.timeline-item {
  padding-left:2.5rem;
  padding-bottom:3rem;
  position:relative;
}

.timeline-item:last-child { padding-bottom:0; }

.timeline-dot {
  position:absolute;
  left:-5px;
  top:6px;
  width:11px;
  height:11px;
  background:var(--accent);
  border-radius:50%;
  box-shadow:0 0 12px var(--accent);
}

.timeline-date {
  font-size:0.78rem;
  color:var(--accent);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:0.4rem;
}

.timeline-company {
  font-size:0.82rem;
  color:var(--muted);
  margin-bottom:0.3rem;
}

.timeline-role {
  font-family:'Syne',sans-serif;
  font-size:1.2rem;
  font-weight:700;
  margin-bottom:0.8rem;
}

.timeline-list { list-style:none; }

.timeline-list li {
  color:var(--muted);
  font-size:0.9rem;
  padding:0.25rem 0 0.25rem 1.2rem;
  position:relative;
  line-height:1.6;
}

.timeline-list li::before {
  content:'›';
  position:absolute;
  left:0;
  color:var(--accent);
  font-weight:700;
}

#valeur { background:var(--bg); }

.offer-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:1.2rem;
}

.offer-card {
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:16px;
  padding:2rem;
  position:relative;
  overflow:hidden;
  transition:border-color .2s,transform .2s;
}

.offer-card::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  opacity:0;
  transition:opacity .2s;
}

.offer-card:hover {
  border-color:var(--accent);
  transform:translateY(-4px);
}

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

.offer-num {
  font-family:'Syne',sans-serif;
  font-size:3rem;
  font-weight:800;
  color:rgba(34,197,94,0.10);
  line-height:1;
  margin-bottom:0.5rem;
}

.offer-card h3 {
  font-family:'Syne',sans-serif;
  font-size:1.05rem;
  font-weight:700;
  margin-bottom:0.75rem;
}

.offer-card p {
  color:var(--muted);
  font-size:0.9rem;
  line-height:1.7;
}

#certifications { background:var(--bg2); }

.certs-grid {
  display:flex;
  flex-wrap:wrap;
  gap:0.9rem;
}

.cert-item {
  background:var(--bg3);
  border:1px solid var(--border);
  border-radius:10px;
  padding:0.9rem 1.4rem;
  display:flex;
  align-items:center;
  gap:0.75rem;
  font-size:0.88rem;
  transition:border-color .2s;
}

.cert-item:hover { border-color:var(--accent); }

.cert-year {
  color:var(--accent);
  font-family:'Syne',sans-serif;
  font-weight:700;
  font-size:0.8rem;
}

.cert-name { color:var(--text); }

#contact {
  background:var(--bg);
  text-align:center;
}

.contact-box {
  max-width:640px;
  margin:0 auto;
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:20px;
  padding:3.5rem;
}

.contact-box h2 {
  font-family:'Syne',sans-serif;
  font-size:2rem;
  font-weight:800;
  margin-bottom:1rem;
}

.contact-box p {
  color:var(--muted);
  margin-bottom:2.5rem;
}

.contact-links {
  display:flex;
  justify-content:center;
  gap:1.2rem;
  flex-wrap:wrap;
}

.contact-link {
  display:flex;
  align-items:center;
  gap:0.6rem;
  background:rgba(34,197,94,0.07);
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  padding:0.8rem 1.5rem;
  border-radius:10px;
  font-size:0.9rem;
  font-weight:500;
  transition:all .2s;
}

.contact-link:hover {
  background:var(--accent);
  color:#050f08;
  border-color:var(--accent);
  transform:translateY(-2px);
}

footer {
  background:var(--bg2);
  border-top:1px solid var(--border);
  padding:2rem 4rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1rem;
}

footer p {
  color:var(--muted);
  font-size:0.82rem;
}

.footer-logo {
  font-family:'Syne',sans-serif;
  font-weight:800;
  font-size:0.95rem;
  color:var(--text);
  text-decoration:none;
}

.footer-logo span { color:var(--accent); }

.reveal {
  opacity:0;
  transform:translateY(30px);
  transition:opacity .65s ease,transform .65s ease;
}

.reveal.visible {
  opacity:1;
  transform:translateY(0);
}

@media (max-width:900px) {
  nav { padding:1rem 1.5rem; }
  .nav-links { display:none; }
  .hamburger { display:flex; }

  section { padding:4rem 1.5rem; }
  .hero { padding:7rem 1.5rem 4rem; }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stat-item,
  .stat-item-ecosystem {
    align-items: center;
    text-align: center;
  }

  .about-grid {
    grid-template-columns:1fr;
    gap:2.5rem;
  }

  .about-img-wrap {
    max-width:280px;
    margin:0 auto;
  }

  footer {
    flex-direction:column;
    text-align:center;
  }

  #certifications { display:none; }
}

@media (max-width:540px) {
  .contact-box { padding:2rem 1.5rem; }
  #certifications { display:none; }

  .ecosystem-mini {
    width: 170px;
    height: 170px;
  }

  .ecosystem-center {
    width: 74px;
    height: 74px;
    font-size: 0.92rem;
  }

  .ecosystem-node {
    width: 54px;
    height: 54px;
    font-size: 0.58rem;
  }
}
