/* ========================
   RESET & BASE
======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0047FF;
  --white: #E5E2E1;
  --muted: #C4C5DA;
  --bg: #000000;
  --bg2: #2A2A2A;
  --green: #8DD5B2;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; width: 100%; height: 100%; object-fit: cover; }

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

/* ========================
   TYPOGRAPHY
======================== */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 74px;
  letter-spacing: 0.96px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 48px;
}

.section-title.bordered {
  border-left: 4px solid var(--blue);
  padding-left: 28px;
}

.body-white { color: var(--white); margin-bottom: 24px; }
.body-muted { color: var(--muted); margin-bottom: 24px; }
.label-small { color: var(--muted); font-size: 22px; margin-bottom: 8px; }

/* ========================
   NAV
======================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 81px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent);
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 18px;
  color: #fff;
}

.nav-links a { transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.7; }

.btn-nav {
  background: var(--blue);
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 18px;
  color: #fff !important;
}

/* ========================
   HERO
======================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 81px 80px;
  position: relative;
  overflow: hidden;
}

.hero-blur {
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(0, 71, 255, 0.12);
  filter: blur(80px);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 9vw, 138px);
  letter-spacing: 0.96px;
  line-height: 0.95;
  color: var(--blue);
  margin-bottom: 32px;
  position: relative;
}

.hero-sub {
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 48px;
  max-width: 600px;
  position: relative;
}

.btn-outline {
  border: 1px solid var(--blue);
  padding: 20px 40px;
  border-radius: 5px;
  font-size: 22px;
  color: var(--white);
  transition: background 0.2s;
  position: relative;
}
.btn-outline:hover { background: rgba(0, 71, 255, 0.15); }

/* ========================
   À PROPOS
======================== */
.apropos {
  display: grid;
  grid-template-columns: 1fr 528px;
  gap: 80px;
  align-items: start;
  padding: 120px 81px;
  max-width: 1512px;
  margin: 0 auto;
}

.apropos-text { max-width: 672px; }

.tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.tag {
  background: #201f1f;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 9px 17px;
  font-size: 16px;
  color: var(--green);
}

.apropos-photo img {
  width: 100%;
  height: 561px;
  object-fit: cover;
}

/* ========================
   PROJETS GRID
======================== */
.projets {
  padding: 120px 81px;
  max-width: 1512px;
  margin: 0 auto;
}

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

.projet-card {
  display: block;
  height: 420px;
  overflow: hidden;
  transition: transform 0.3s;
}
.projet-card:hover { transform: scale(1.02); }
.projet-card img { height: 100%; object-fit: cover; }

/* ========================
   COMPÉTENCES
======================== */
.competences {
  padding: 120px 81px;
  max-width: 1512px;
  margin: 0 auto;
}

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

.skill-cat {
  font-size: 21px;
  font-weight: 400;
  color: var(--blue);
  border-bottom: 1px solid rgba(0,71,255,0.2);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  border: 1px solid rgba(196,197,218,0.2);
  padding: 9px 17px;
  font-size: 16px;
  color: var(--white);
}

/* ========================
   EXPÉRIENCES & FORMATIONS
======================== */
.experiences, .formations {
  padding: 80px 81px;
  max-width: 1512px;
  margin: 0 auto;
}

.exp-list { display: flex; flex-direction: column; gap: 48px; }

.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.exp-left { max-width: 900px; }

.exp-title {
  font-size: 21px;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 12px;
}

.exp-desc {
  font-size: 16px;
  color: var(--white);
  line-height: 1.6;
}

.exp-date {
  font-size: 18px;
  color: var(--muted);
  white-space: nowrap;
  padding: 10px;
}

/* ========================
   CONTACT
======================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 120px 81px;
  max-width: 1512px;
  margin: 0 auto;
}

.email-big {
  font-size: clamp(24px, 2.8vw, 43px);
  color: var(--white);
  letter-spacing: 0.72px;
  line-height: 1.1;
  display: block;
  margin-bottom: 24px;
  word-break: break-all;
}

.contact-socials {
  display: flex;
  gap: 32px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 80px;
}

.contact-socials a:hover { color: var(--white); }

.contact-cta {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 90px);
  line-height: 1;
  color: var(--white);
}

.contact-form {
  background: var(--bg2);
  padding: 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.form-field label {
  font-size: 21px;
  color: var(--muted);
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(142,143,163,0.3);
  padding: 16px 0;
  font-size: 16px;
  color: var(--white);
  font-family: 'Sora', sans-serif;
  outline: none;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--blue);
}

.btn-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 24px;
  font-family: 'Sora', sans-serif;
  font-size: 21px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 1px;
}
.btn-submit:hover { opacity: 0.85; }

/* ========================
   FOOTER
======================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 81px;
  height: 140px;
  background: rgba(179,179,179,0.1);
  font-size: 16px;
  color: var(--muted);
}

.footer-links { display: flex; gap: 32px; align-items: center; }
.footer-links a:hover { color: var(--white); }

/* ========================
   PAGE PROJETS
======================== */
.project-section {
  display: grid;
  grid-template-columns: 388px 1fr;
  gap: 80px;
  align-items: start;
  padding: 120px 81px;
  max-width: 1512px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.project-section:first-of-type { padding-top: 160px; }

.project-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 74px;
  letter-spacing: 0.96px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 32px;
}

.project-visual { overflow: hidden; }
.project-visual img, .project-visual video { width: 100%; height: auto; object-fit: cover; }

.project-visual--wide img,
.project-visual--wide video { max-height: 600px; object-fit: cover; }

.project-visual--portrait img { max-height: 800px; object-fit: cover; }

.project-visual--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.project-visual--duo img { height: 500px; }

.project-visual--multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.project-visual--multi img { height: 300px; }

/* ========================
   SCROLL ANIMATIONS
======================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
