  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy: #0d1b2a;
    --navy-light: #1a2e42;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59,130,246,0.15);
    --teal: #14b8a6;
    --teal-light: #2dd4bf;
    --white: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(255,255,255,0.08);
    --card: rgba(255,255,255,0.04);
    --card-hover: rgba(255,255,255,0.07);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* NAV */
  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;
    background: rgba(13,27,42,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
  }
  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.1rem;
    color: var(--white);
    letter-spacing: -0.02em;
  }
  .nav-logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    text-decoration: none; color: var(--muted);
    font-size: 0.875rem; font-weight: 400;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--white); }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-content { max-width: 720px; position: relative; z-index: 1; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--accent-glow); border: 0.5px solid rgba(59,130,246,0.3);
    padding: 0.4rem 1rem; border-radius: 2rem;
    font-size: 0.8rem; color: var(--accent-light);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease both;
  }
  .badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }
  @keyframes fadeInDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
  @keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

  .hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800; line-height: 1.05;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.7s 0.1s ease both;
    margin-bottom: 1rem;
  }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero-sub {
    font-size: 1.1rem; color: var(--muted); font-weight: 300;
    max-width: 520px; line-height: 1.7;
    animation: fadeInUp 0.7s 0.2s ease both;
    margin-bottom: 2.5rem;
  }
  .hero-ctas {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: fadeInUp 0.7s 0.3s ease both;
  }
  .btn-primary {
    padding: 0.8rem 1.8rem;
    background: var(--accent); color: #fff;
    border: none; border-radius: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; font-weight: 500;
    cursor: pointer; text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
  }
  .btn-primary:hover { background: #2563eb; transform: translateY(-1px); }
  .btn-secondary {
    padding: 0.8rem 1.8rem;
    background: transparent; color: var(--white);
    border: 0.5px solid var(--border);
    border-radius: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; font-weight: 400;
    cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    display: inline-block;
  }
  .btn-secondary:hover { border-color: rgba(255,255,255,0.25); background: var(--card); }

  .hero-stats {
    display: flex; gap: 3rem; margin-top: 3.5rem;
    animation: fadeInUp 0.7s 0.4s ease both;
    padding-top: 2.5rem;
    border-top: 0.5px solid var(--border);
  }
  .stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem; font-weight: 800; color: var(--white);
  }
  .stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

  /* SECTIONS */
  section { padding: 6rem 4rem; }
  .section-header { margin-bottom: 3.5rem; }
  .section-tag {
    font-size: 0.75rem; font-weight: 500;
    color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 0.75rem;
  }
  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700; letter-spacing: -0.02em;
  }

  /* COMPÉTENCES */
  #competences { background: var(--navy-light); }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  .skill-card {
    background: var(--card);
    border: 0.5px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: background 0.2s, border-color 0.2s;
  }
  .skill-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.14); }
  .skill-icon {
    width: 40px; height: 40px; border-radius: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 1rem;
  }
  .skill-icon.blue { background: rgba(59,130,246,0.15); color: var(--accent-light); }
  .skill-icon.teal { background: rgba(20,184,166,0.15); color: var(--teal-light); }
  .skill-icon.purple { background: rgba(167,139,250,0.15); color: #a78bfa; }
  .skill-icon.amber { background: rgba(251,191,36,0.15); color: #fbbf24; }
  .skill-card h3 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .tag {
    font-size: 0.75rem; padding: 0.25rem 0.65rem;
    border-radius: 2rem; border: 0.5px solid;
  }
  .tag.blue { background: rgba(59,130,246,0.1); color: var(--accent-light); border-color: rgba(59,130,246,0.25); }
  .tag.teal { background: rgba(20,184,166,0.1); color: var(--teal-light); border-color: rgba(20,184,166,0.25); }
  .tag.gray { background: rgba(255,255,255,0.05); color: var(--muted); border-color: var(--border); }

  /* PROJETS */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  .project-card {
    background: var(--card);
    border: 0.5px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex; flex-direction: column;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: default;
  }
  .project-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.14); transform: translateY(-3px); }
  .project-card.featured {
    border-color: rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.05);
  }
  .project-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.2rem; }
  .project-emoji { font-size: 1.8rem; }
  .project-type {
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); padding: 0.2rem 0.6rem;
    border: 0.5px solid var(--border); border-radius: 2rem;
  }
  .project-type.perso { color: var(--teal-light); border-color: rgba(20,184,166,0.25); }
  .project-type.acad { color: #a78bfa; border-color: rgba(167,139,250,0.25); }
  .project-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: 0.6rem;
  }
  .project-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; flex: 1; }
  .project-footer { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 0.5px solid var(--border); }
  .project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }

  /* EXPÉRIENCE */
  #experience { background: var(--navy-light); }
  .timeline { position: relative; padding-left: 1.5rem; }
  .timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 1px; background: var(--border);
  }
  .timeline-item { position: relative; padding-bottom: 3rem; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-dot {
    position: absolute; left: -1.9rem; top: 0.2rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); border: 2px solid var(--navy-light);
  }
  .timeline-date {
    font-size: 0.78rem; color: var(--accent-light);
    margin-bottom: 0.4rem; font-weight: 500;
  }
  .timeline-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
  .timeline-company { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.8rem; }
  .timeline-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
  .timeline-desc li { margin-bottom: 0.3rem; padding-left: 1rem; position: relative; }
  .timeline-desc li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

  /* CONTACT */
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  .contact-card {
    background: var(--card);
    border: 0.5px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none; color: inherit;
    transition: background 0.2s, border-color 0.2s;
  }
  .contact-card:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.14); }
  .contact-icon {
    width: 40px; height: 40px; border-radius: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1rem;
  }
  .contact-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.2rem; }
  .contact-value { font-size: 0.875rem; font-weight: 500; }

  /* FOOTER */
  footer {
    text-align: center; padding: 2rem 4rem;
    border-top: 0.5px solid var(--border);
    font-size: 0.8rem; color: var(--muted);
  }

  /* HERO PHOTO */
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
    width: 100%;
    position: relative;
    z-index: 1;
  }
  .hero-photo img {
    width: 320px;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    border-radius: 1.5rem;
    border: 0.5px solid rgba(255,255,255,0.08);
    filter: grayscale(15%);
  }

  .btn-download {
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: #60a5fa;
    border: 0.5px solid rgba(59,130,246,0.35);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    display: inline-block;
  }
  .btn-download:hover {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.6);
  }

  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hero, section { padding-left: 1.5rem; padding-right: 1.5rem; }
    .hero { padding-top: 7rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-photo { display: none; }
  }
