/* ===========================
   BASIK STUDIO — CSS
   =========================== */

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

:root {
  --black:   #1a1a1a;
  --white:   #fafafa;
  --gray-1:  #1a1a1a;
  --gray-2:  #2e2e2e;
  --gray-3:  #888888;
  --gray-4:  #cccccc;
  --gray-5:  #e8e8e8;
  --accent:  #3d9eff;
  --accent-dark: #1a7de0;
  --radius:  12px;
  --font:    'Inter', system-ui, sans-serif;
  --trans:   0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section__header { margin-bottom: 56px; }
.section__header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--trans);
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid var(--gray-2); }
.btn--ghost:hover { border-color: var(--white); }
.btn--nav { background: var(--accent); color: var(--white); padding: 8px 18px; font-size: 13px; }
.btn--nav:hover { background: var(--accent-dark); }
.btn--large { padding: 16px 36px; font-size: 16px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--trans);
}
.nav__logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--trans);
}
.nav__links a:hover { color: var(--white); }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 4px;
  z-index: 101;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
/* Burger animé → X */
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero__content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}
.hero__roles {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.9;
}
.hero__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 19px;
  color: var(--white);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0.85;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== ABOUT ===== */
.about { background: var(--gray-1); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.about__text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about__text p { color: var(--gray-4); line-height: 1.85; margin-bottom: 16px; font-size: 17px; }
.about__text strong { color: var(--white); }
.about__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
/* Option B — photo portrait + stat cards en overlay */
.about__photo-col {
  padding-top: 52px; /* saute la hauteur du label, aligne avec le h2 */
}

.about__photo-wrap {
  position: relative;
  height: clamp(380px, 38vw, 480px); /* s'adapte à la largeur d'écran */
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.4s ease;
}
.about__photo:hover { filter: grayscale(0%); }

/* Stat cards flottantes */
.stat-card {
  position: absolute;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  z-index: 2;
}
.stat-card--1 { top: 20px; right: -18px; }
.stat-card--2 { bottom: 80px; right: -18px; }
.stat-card--3 { bottom: 20px; left: 20px; }

.stat__num { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--white); }
.stat__label { font-size: 10px; color: var(--gray-3); margin-top: 3px; display: block; white-space: nowrap; }

/* ===== PROJECTS ===== */
.projects { background: var(--black); }
.projects__filters {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.projects__more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.projects__more-btn {
  gap: 10px;
}
.projects__more-btn span {
  font-size: 12px;
  color: var(--gray-3);
  font-weight: 400;
}
.filter {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-2);
  background: transparent;
  color: var(--gray-4);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--trans);
  font-family: var(--font);
}
.filter:hover, .filter.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(61,158,255,0.06);
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.projects__loading {
  color: var(--gray-3);
  font-size: 14px;
  grid-column: 1 / -1;
  padding: 40px 0;
}
.project-card {
  background: var(--gray-1);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-2);
  cursor: pointer;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61,158,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.project-card__media { position: relative; }
.project-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--gray-2);
}
.project-card__img--placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gray-2) 0%, var(--gray-1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-3);
  font-size: 28px;
}
.project-card__body { padding: 20px 22px 24px; }
.project-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.project-card__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(61,158,255,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}
.project-card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.project-card__desc { font-size: 14px; color: var(--gray-4); line-height: 1.6; }

/* ===== SERVICES ===== */
.services { background: var(--gray-1); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--black);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--trans), transform var(--trans);
}
.service-card:hover { border-color: rgba(61,158,255,0.4); transform: translateY(-4px); }
.service-card__icon { font-size: 24px; margin-bottom: 20px; color: var(--accent); }
.service-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--gray-4); line-height: 1.75; }

/* ===== CONTACT ===== */
.contact { background: var(--black); }
.contact__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact__inner h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; margin-bottom: 16px; }
.contact__inner p { color: var(--gray-4); font-size: 18px; margin-bottom: 36px; }

/* ===== FOOTER ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--gray-2);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer span { font-size: 13px; color: var(--gray-3); }
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  color: var(--gray-3);
  text-decoration: none;
  transition: color var(--trans);
}
.footer__links a:hover { color: var(--white); }

/* LinkedIn nav icon */
.nav__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(61,158,255,0.12);
  border: 1.5px solid rgba(61,158,255,0.3);
  color: var(--accent) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--trans), border-color var(--trans);
}
.nav__linkedin:hover {
  background: rgba(61,158,255,0.25) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--trans);
}
.modal.open { opacity: 1; pointer-events: all; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
}
.modal__content {
  position: relative;
  z-index: 1;
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--trans);
}
.modal.open .modal__content { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gray-2);
  border: none;
  color: var(--white);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.modal__close:hover { background: var(--gray-3); }
.modal__body img {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: block;
}
.modal__info { padding: 28px 32px 32px; }
.modal__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.modal__info h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.modal__info p { color: var(--gray-4); line-height: 1.8; font-size: 15px; }
.modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.modal__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(61,158,255,0.1);
  border: 1.5px solid rgba(61,158,255,0.3);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--trans), border-color var(--trans);
}
.modal__links .modal__link { margin-top: 0; }
.modal__link:hover {
  background: rgba(61,158,255,0.2);
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav__burger { display: flex; }

  /* Menu mobile — panneau plein écran */
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav__links.open {
    visibility: visible;
    opacity: 1;
  }
  .nav__links li { list-style: none; }
  .nav__links a {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
  }
  .nav__links a:hover { color: var(--accent); }
  .nav__links .btn--nav {
    font-size: 17px;
    padding: 13px 36px;
    margin-top: 8px;
  }

  .hero { padding: 100px 20px 60px; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__photo-col { padding-top: 0; }
  .about__photo-wrap { flex: none; }
  .about__photo { height: auto; aspect-ratio: 4/3; }
  .stat-card--1 { top: 12px; right: 12px; }
  .stat-card--2 { bottom: 70px; right: 12px; }
  .stat-card--3 { bottom: 12px; left: 12px; }
  .footer .container { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .projects__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
}
