/* ============================================
   Portfolio Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-main: #1A1A1A;
  --bg-alt: #1F1F1F;
  --bg-card: #252525;
  --text-primary: #F5F5F5;
  --text-muted: #A0A0A0;
  --accent-orange: #D97757;
  --accent-orange-hover: #C66646;
  --accent-blue: #6B8AA5;
  --border: #333333;
  --radius: 0.75rem;
  --max-width: 64rem;
  --max-width-wide: 76rem;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* ---------- Global Reset & Typography ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Multilingual Display ---------- */
.lang-en .fr-only { display: none !important; }
.lang-fr .en-only { display: none !important; }

/* ---------- Navigation Bar ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-orange);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: color 0.2s;
}

.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active { color: var(--accent-orange); }
.lang-sep { color: var(--text-muted); }

/* ---------- Mobile Navigation (Burger Menu) ---------- */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 1.75rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.burger-btn__line {
  width: 100%;
  height: 0.15rem;
  background: var(--text-primary);
  border-radius: 0.25rem;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Mobile Layout */
@media (max-width: 767px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }
  
  .nav-links.nav-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Burger Menu Animation */
  .burger-btn.toggle .burger-btn__line:nth-child(1) { transform: rotate(38deg); }
  .burger-btn.toggle .burger-btn__line:nth-child(2) { opacity: 0; }
  .burger-btn.toggle .burger-btn__line:nth-child(3) { transform: rotate(-38deg); }
}

/* Desktop Layout */
@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
}

/* ---------- Layout & Sections ---------- */
.page-section { padding: 6rem 1.5rem; }
.page-section--alt { background: var(--bg-alt); }
.container { width: 100%; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.container--wide { max-width: var(--max-width-wide); }

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 3rem;
  color: var(--text-primary);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.hero__inner { max-width: var(--max-width); width: 100%; margin: 0 auto; }
.hero__avatar {
  width: 8rem; height: 8rem;
  border-radius: 50%;
  overflow: hidden; margin: 0 auto 2rem;
  border: 2px solid var(--accent-orange);
  outline: 2px solid var(--bg-main); outline-offset: -4px;
}
.hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero__name {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600; margin: 0 0 1rem;
  color: var(--text-primary);
}
.hero__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}
.hero__specialty {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-muted); margin: 0 0 2rem;
}
.hero__specialty .accent-orange { color: var(--accent-orange); }
.hero__specialty .accent-blue { color: var(--accent-blue); }

.hero__contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem;
  margin-bottom: 2.5rem; color: var(--text-muted); font-size: 0.9375rem;
}
.hero__contact a { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.hero__contact a:hover { color: var(--accent-orange); }
.hero__contact .icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem; font-size: 1rem; font-weight: 500; font-family: inherit;
  border-radius: 0.375rem; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent-orange); color: white; }
.btn--primary:hover { background: var(--accent-orange-hover); }
.btn--outline { background: transparent; border-color: var(--accent-blue); color: var(--accent-blue); }
.btn--outline:hover { background: var(--accent-blue); color: white; }
.btn .icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ---------- Card Components ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent-orange); }
.card--blue:hover { border-color: var(--accent-blue); }

.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
  .card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

/* ---------- Education Section ---------- */
.edu-card { display: flex; align-items: flex-start; gap: 1rem; }
.edu-card__icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.edu-card__icon--orange { background: var(--accent-orange); }
.edu-card__icon--blue { background: var(--accent-blue); }
.edu-card__icon svg { width: 1.5rem; height: 1.5rem; color: white; }
.edu-card__content { flex: 1; }
.edu-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.edu-card__title { font-size: 1.25rem; font-weight: 600; margin: 0; color: var(--text-primary); }
.edu-card__meta { color: var(--accent-blue); font-weight: 500; font-size: 0.9375rem; margin: 0; }
.edu-card__desc { color: var(--text-muted); margin: 0 0 0.5rem; font-size: 0.9375rem; }

/* ---------- Experience Section ---------- */
.exp-card { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .exp-card { flex-direction: row; align-items: flex-start; } }
.exp-card__icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem; background: var(--accent-orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.exp-card__icon svg { width: 1.75rem; height: 1.75rem; color: white; }
.exp-card__body { flex: 1; }
.exp-card__header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .exp-card__header { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.exp-card__title { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.25rem; color: var(--text-primary); }
.exp-card__company { font-size: 1.125rem; color: var(--accent-blue); margin: 0; }
.exp-card__duration { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.9375rem; }
.exp-card__duration .icon { width: 1.125rem; height: 1.125rem; }
.exp-card__desc { color: var(--text-muted); margin: 0 0 1rem; line-height: 1.6; }
.exp-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { padding: 0.25rem 0.75rem; font-size: 0.875rem; background: var(--bg-main); border: 1px solid var(--border); border-radius: 9999px; color: var(--text-primary); }

/* ---------- Projects Section ---------- */
.projects-intro { text-align: center; margin-bottom: 3rem; }
.projects-intro__subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 42rem; margin: 1rem auto 0; }
.project-card { display: flex; flex-direction: column; height: 100%; transition: transform 0.2s; }
.project-card:hover { transform: scale(1.02); }
.project-card--featured { box-shadow: 0 0 0 1px var(--accent-orange); }
.project-card__header { margin-bottom: 1rem; }
.project-card__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.project-card__title { font-size: 1.25rem; font-weight: 600; margin: 0; color: var(--text-primary); }
.project-card__badge { padding: 0.25rem 0.5rem; font-size: 0.75rem; background: var(--accent-orange); color: white; border-radius: 0.25rem; flex-shrink: 0; }
.project-card__desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin: 0; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.project-card__tag { padding: 0.25rem 0.5rem; font-size: 0.75rem; background: var(--bg-main); border: 1px solid var(--border); border-radius: 0.25rem; color: var(--text-primary); }
.project-card__action { margin-top: auto; }
.project-card__action .btn { width: 100%; }

/* ---------- Skills & Interests Section ---------- */
.skills-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
.skills-block__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.skills-block__header .icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.skills-block__header .icon--orange { color: var(--accent-orange); }
.skills-block__header .icon--blue { color: var(--accent-blue); }
.skills-block__title { font-size: 1.25rem; font-weight: 600; margin: 0; color: var(--text-primary); }

.skill-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.skill-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.2s;
}
.skill-row:hover { border-color: var(--accent-orange); }
.skill-row.skill-row--blue:hover { border-color: var(--accent-blue); }

.skill-icon {
  padding: 0.6rem; border-radius: 0.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.skill-icon.icon--orange { background: rgba(217, 119, 87, 0.1); color: var(--accent-orange); }
.skill-icon.icon--blue { background: rgba(107, 138, 165, 0.1); color: var(--accent-blue); }
.skill-icon .icon { width: 1.25rem; height: 1.25rem; }

.skill-info { flex: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.skill-name { color: var(--text-primary); font-weight: 500; }
.skill-level { font-size: 0.875rem; color: var(--text-muted); }

.interests-intro { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.interest-list { list-style: none; margin: 0; padding: 0; }
.interest-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.5rem;
  margin-bottom: 0.75rem; transition: border-color 0.2s;
}
.interest-item:last-child { margin-bottom: 0; }
.interest-item:hover { border-color: var(--accent-blue); }
.interest-item .icon { width: 1.25rem; height: 1.25rem; color: var(--accent-blue); flex-shrink: 0; }
.interest-item__name { color: var(--text-primary); }

/* ---------- Footer ---------- */
.footer { padding: 3rem 1.5rem; border-top: 1px solid var(--border); }
.footer__inner { max-width: var(--max-width); margin: 0 auto; }
.footer__row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 768px) { .footer__row { flex-direction: row; } }
.footer__copyright { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.footer__links { display: flex; align-items: center; gap: 0.5rem; }
.footer__links a { padding: 0.5rem; color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent-orange); }
.footer__links a[href*="linkedin"]:hover { color: var(--accent-blue); }
.footer__links .icon { width: 1.25rem; height: 1.25rem; }
.footer__note { margin-top: 1.5rem; text-align: center; font-size: 0.75rem; color: var(--text-muted); }