:root {
  --bg: #0b0f14;
  --bg-alt: #10161d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #a9b3c1;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #18d26e;
  --accent-soft: rgba(24, 210, 110, 0.12);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --wrap: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(24, 210, 110, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 22%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(8, 11, 16, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: 0.25s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: 0.25s ease;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 8, 12, 0.68), rgba(5, 8, 12, 0.82)),
    url("images/hero-bg.webp") center/cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.35));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 0;
}

.hero-logo {
  width: auto;
  height: 78px;
  margin: 0 auto 22px;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8df1b9;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #08110c;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* SECTIONS */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.profile-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-text {
  padding: 32px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-grid div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.info-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.info-grid span {
  color: var(--muted);
}

/* PORTFOLIO */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-image {
  width: 100%;
  height: 260px; /* ajuste si besoin */
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}


.project-body {
  padding: 22px;
}

.project-body h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.project-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.project-link {
  color: #8df1b9;
  font-weight: 700;
}

/* CONTACT */
.contact-box {
  max-width: 900px;
  text-align: center;
}

.contact-mail {
  margin-top: 18px;
  font-size: 1.12rem;
}

.contact-mail a {
  color: #8df1b9;
  font-weight: 700;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.footer-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .split,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    min-height: 320px;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: calc(var(--header-height) + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px;
    background: rgba(10, 14, 20, 0.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-wrap {
    position: relative;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    min-height: 72px;
  }

.brand-logo {
  width: clamp(145px, 48vw, 170px);
  height: auto;
  max-width: calc(100vw - 92px);
}

  .hero-content {
    padding: 54px 0;
  }

  .hero-logo {
    height: 60px;
    margin-bottom: 18px;
  }

  .card-text {
    padding: 22px;
  }

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

  .footer-wrap {
    min-height: auto;
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* ===== SECTION À PROPOS ===== */

.split {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .card-photo {
    height: auto;
  }

  .profile-visual {
    height: auto;
  }
}

@media (max-width: 768px) {
  #apropos .split {
    display: block;
  }

  #apropos .card-photo {
    max-height: 420px;
    overflow: hidden;
    margin-bottom: 18px;
  }

  #apropos .card-photo img,
  #apropos .profile-visual {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
}

@media (max-width: 768px) {

  #apropos .card-photo {
    max-height: 380px; /* un peu moins haut */
    padding: 10px; /* respiration dans le cadre */
    border-radius: 16px;
  }

  #apropos .card-photo img,
  #apropos .profile-visual {
    height: 360px; /* un peu plus compact */
  }

  #apropos .card-text {
    margin-top: 12px; /* espace entre image et texte */
  }

}