:root {
  --black: #0a0a0a;
  --ink: #141414;
  --white: #ffffff;
  --paper: #f6f6f4;
  --grey: #6b6b6b;
  --line: #e4e4e0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__brand img { height: 42px; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.nav__links a:hover { color: var(--grey); }
.nav__app {
  border: 1px solid var(--black); padding: 0.5rem 1rem; border-radius: 2px;
}
.nav__app:hover { background: var(--black); color: var(--white) !important; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--black); display: block; }

/* ---------- Hero ---------- */
.hero {
  min-height: 82vh; display: flex; align-items: center;
  background: var(--black); color: var(--white);
  padding: 6rem 2rem;
  background-image:
    linear-gradient(120deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.35) 100%),
    url('/assets/pres/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero__inner { max-width: 900px; margin: 0 auto; width: 100%; }
.hero__kicker { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.78rem; color: #b8b8b8; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 1.6rem; }
.hero__lead { font-size: 1.15rem; color: #d6d6d6; max-width: 620px; margin-bottom: 2.4rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn { display: inline-block; padding: 0.85rem 1.6rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 2px; transition: 0.2s; }
.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:hover { background: #d6d6d6; }
.btn--ghost { border: 1px solid var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }

/* ---------- Sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 5.5rem 2rem; }
.section--dark { max-width: none; background: var(--paper); }
.section--dark .section__head, .section--dark .cards, .section--dark .contact__grid { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 3rem; }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.section__head p { color: var(--grey); font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { position: relative; margin: 0; }
.gallery__item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 3px; display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.03); filter: brightness(1.05); }
.gallery__item figcaption {
  padding: 0.7rem 0.2rem; font-size: 0.9rem; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Tags (compétences) ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tags li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 0.92rem; color: var(--ink);
  background: var(--paper);
}

/* ---------- References (logo wall) ---------- */
.logos {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem;
  max-width: 1100px; margin: 0 auto;
}
.logos__item {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  height: 110px; display: flex; align-items: center; justify-content: center;
  padding: 1.4rem 1.6rem; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.logos__item:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-2px); }
.logos__item img {
  max-height: 46px; max-width: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
}

/* ---------- Feature (atelier) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  max-width: 1100px; margin: 0 auto 3rem;
}
.feature--reverse .feature__media { order: 2; }
.feature__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; display: block;
}
.feature__text h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.feature__text p { color: #3a3a3a; margin-bottom: 1rem; }
.atelier__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 1100px; margin: 0 auto;
}
.atelier__grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; display: block; }

/* ---------- About kicker ---------- */
.about__kicker { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; color: var(--grey); margin-bottom: 0.9rem; }

/* ---------- Contact social ---------- */
.contact__social { margin-top: 1.6rem; text-align: center; }
.contact__social a { font-weight: 600; letter-spacing: 0.04em; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.contact__social a:hover { color: var(--grey); border-color: var(--grey); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); padding: 2rem 1.6rem; border-radius: 3px; }
.card__num { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--grey); }
.card h3 { margin: 0.8rem 0 0.6rem; font-size: 1.25rem; }
.card p { color: var(--grey); font-size: 0.96rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about__text h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.about__text p { color: #3a3a3a; margin-bottom: 1rem; }
.about__signature { font-weight: 700; color: var(--black) !important; letter-spacing: 0.02em; }
.about__mark { display: flex; justify-content: center; }
.about__mark img { max-width: 260px; width: 100%; filter: grayscale(1); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact__item {
  background: var(--white); border: 1px solid var(--line);
  padding: 1.6rem; border-radius: 3px; display: flex; flex-direction: column; gap: 0.4rem;
}
a.contact__item:hover { border-color: var(--black); }
.contact__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--grey); }
.contact__value { font-size: 1.2rem; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #cfcfcf; padding: 3rem 2rem 2rem; }
.footer__top {
  max-width: 1100px; margin: 0 auto 1.5rem; display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid #2a2a2a;
}
.footer__logo { height: 54px; background: var(--white); padding: 6px 10px; border-radius: 3px; }
.footer__contact { font-size: 0.95rem; line-height: 1.7; }
.footer__contact strong { color: var(--white); }
.footer__legal { max-width: 1100px; margin: 0 auto 1rem; font-size: 0.8rem; color: #8a8a8a; }
.footer__copy { max-width: 1100px; margin: 0 auto; font-size: 0.8rem; color: #8a8a8a; }
.footer__copy a { color: #cfcfcf; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--white); padding: 1.5rem 2rem; border-bottom: 1px solid var(--line);
    display: none;
  }
  body.menu-open .nav__links { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards, .contact__grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__mark { order: -1; }
  .feature, .atelier__grid { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

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