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

:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --ink: #f0ede6;
  --ink2: #888580;
  --accent: #c8b89a;
  --line: #2a2a2a;
  --tag-bg: #1f1f1f;
  --tag-color: #888580;
  --serif: 'DM Serif Display', Georgia, serif;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  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.4rem 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 96px;
  width: auto;
  filter: invert(1) brightness(0.85);
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.7; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ─── SECTIONS ─── */
section { padding: 6rem 4rem; max-width: 1100px; margin: 0 auto; }
section + section { border-top: 1px solid var(--line); }

/* ─── HERO ─── */
#accueil {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 8rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
.hero-name em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink2);
  font-weight: 300;
  white-space: nowrap;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}
.hero-cta {
  margin-top: 3rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--ink2);
  color: var(--ink);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.filled { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.filled:hover { background: transparent; color: var(--ink); }

/* ─── SECTION LABELS & TITLES ─── */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 3rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1; height: 1px; background: var(--line);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ─── À PROPOS ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p { color: var(--ink2); line-height: 1.8; margin-bottom: 1.2rem; font-weight: 300; }
.about-text p strong { color: var(--ink); font-weight: 500; }

.about-info { display: flex; flex-direction: column; gap: 0; }
.info-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.info-row .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
}
.info-row .value {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 400;
  text-align: right;
}

/* ─── COMPÉTENCES GRILLE ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 1rem;
}
.skill-card {
  background: var(--bg2);
  padding: 2rem;
  box-sizing: border-box;
  border: 1px solid var(--line);
  transition: background 0.25s;
}
.skill-card:hover { background: var(--bg3); }
.skill-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.skill-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.skill-list {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 2;
  color: var(--ink2);
}

/* ─── EXPÉRIENCE ─── */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.exp-card {
  background: var(--bg2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  transition: background 0.25s, transform 0.25s;
  position: relative;
}
.exp-card:hover {
  background: var(--bg3);
  transform: translateY(-4px);
}

.exp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}
.exp-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.exp-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.exp-action-btn svg {
  width: 14px; height: 14px;
  fill: currentColor;
}
.exp-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.exp-action-arrow {
  font-size: 1rem;
}


  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  white-space: nowrap;
  align-self: start;
  margin-bottom: 1.2rem;
}
.exp-badge.win {
  background: rgba(200, 184, 154, 0.08);
  color: var(--accent);
  border-color: var(--accent);
}

.exp-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.exp-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink2);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.exp-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.exp-company {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.exp-desc {
  font-size: 0.85rem;
  color: var(--ink2);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.2rem;
  flex: 1;
}
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
}
.exp-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink2);
  margin-top: auto;
}

.hackathon-card:hover {
  cursor: var(--trophy-cursor);
}


@media (max-width: 600px) {
  .experience-grid { grid-template-columns: 1fr; }
}

/* ─── CONTACT ─── */
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.contact-inner .section-title { margin-bottom: 0; }

.contact-icons-only {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.contact-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border: 1.5px solid var(--line);
  text-decoration: none;
  color: var(--ink2);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.contact-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
}
.contact-icon-btn svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* GitHub : fill uniquement */
.contact-icon-btn.github-btn svg {
  fill: currentColor;
  stroke: none;
}
/* CV : stroke uniquement */
.contact-icon-btn--cv svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 100%;
}
footer p {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink2);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── BURGER ─── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.burger span:nth-child(3) { width: 60%; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 100%; }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.mobile-link {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--ink); }

/* ─── BACK TO TOP ─── */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  color: var(--ink2);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
  pointer-events: none;
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#backToTop:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}
/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  section { padding: 4rem 1.5rem; }
  #accueil { padding: 7rem 1.5rem 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .exp-card { grid-template-columns: 1fr; }
  .hero-sub { white-space: normal; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
}
