* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #f2f2f2;
  background: #0b0b0d;
  line-height: 1.6;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ─── HEADER ─────────────────────────────────────────────── */

.header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  font-weight: 800;
  color: #ffffff;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.menu a:hover {
  color: #ffffff;
}

.menu-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ─── SOCIALS ─────────────────────────────────────────────── */

.socials {
  display: flex;
  gap: 10px;
  margin-left: 6px;
}

.socials img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.socials img[alt="GitHub"] {
  filter: invert(1);
}

.socials img[alt="LinkedIn"] {
  filter: none;
}

.socials img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ─── LANG SWITCH ─────────────────────────────────────────── */

.lang-switch {
  margin-left: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switch a {
  padding: 4px 6px;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.85);
}

.lang-switch a.active {
  opacity: 1;
  font-weight: 800;
  color: #ffffff;
}

.lang-switch span {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── HERO ────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
}

.hero-photo {
  position: relative;
  max-width: 420px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: block;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: bicubic;
}

/* Kicker redesigné : badge visible */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b0b0d;
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px #22c55e;
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: #ffffff;
}

.sub {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  margin: 0;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  background: #ffffff;
  color: #0b0b0d;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn.ghost,
.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn.ghost:hover,
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.header-cv {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.header-cv:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ─── SECTIONS ────────────────────────────────────────────── */

.section {
  padding: 72px 0;
}

.section.alt {
  background: #101014;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(22px, 3vw, 30px);
  color: #ffffff;
}

/* ─── CARDS ───────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
}

.thumb {
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 10px 0 8px;
}

/* ─── PROJECT LINKS ───────────────────────────────────────── */

.project-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-links img {
  width: 24px;
  height: 24px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
  filter: invert(1);
}

.project-links img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ─── SKILLS ──────────────────────────────────────────────── */

.techs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.techs img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.techs img:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* ─── CONTACT ─────────────────────────────────────────────── */

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-links .tech {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-links .tech:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-links .tech a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-links .tech img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.contact-links .tech img[alt="GitHub"] {
  filter: invert(1);
}

.contact-links .tech img[alt="LinkedIn"] {
  filter: none;
}

.contact-links .hero-actions {
  margin: 0;
}

/* ─── FOOTER ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  background: #0b0b0d;
}

/* ─── SCROLL REVEAL ───────────────────────────────────────── */

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

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

/* Délais en cascade pour les grilles */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(11, 11, 13, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.mobile-nav.open {
  max-height: 300px;
}

.mobile-nav a {
  padding: 14px 4%;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 64px;
  }

  .header {
    background: rgba(11, 11, 13, 0.92);
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }

  .logo {
    font-size: 16px;
  }

  .menu > a {
    display: none;
  }

  .menu-right {
    margin-left: 0;
    width: auto;
  }

  .menu-right .socials {
    display: none;
  }

  .menu-right .lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .lang-switch a {
    font-size: 13px;
    padding: 2px 4px;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    padding: 36px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hero-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-photo img {
    aspect-ratio: 4 / 5;
  }

  .kicker {
    margin-left: auto;
    margin-right: auto;
  }

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

  .sub {
    margin: 0 auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .techs {
    justify-content: center;
    gap: 16px;
  }

  .techs img {
    width: 40px;
    height: 40px;
  }
}
.tech {
  position: relative;
}

.tech::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tech:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}