/* ============================================================
   NÉOGIF — direction minimaliste
   Inspirations : no-purple.com / elliottsauvage.co
   Blanc, noir, hairlines, typo géante, labels [entre crochets]
   ============================================================ */

:root {
  --bg: #fdfdfb;
  --bg-alt: #f4f4f1;
  --ink: #101010;
  --muted: #8a8a85;
  --line: #e4e4df;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--ink);
}
h1 { font-size: clamp(2.8rem, 7.5vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  letter-spacing: -0.01em;
}

/* Labels [entre crochets] — la signature du site */
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 20px;
  text-transform: lowercase;
}
.eyebrow::before { content: "[ "; }
.eyebrow::after { content: " ]"; }

/* ---------- Liens-boutons [crochets] ---------- */

.btn {
  display: inline-block;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 2px;
  transition: opacity 0.2s;
  text-transform: lowercase;
}
.btn::before { content: "[ "; color: var(--muted); transition: color 0.2s; }
.btn::after { content: " ]"; color: var(--muted); transition: color 0.2s; }
.btn:hover { opacity: 0.55; }
.btn:hover::before, .btn:hover::after { color: var(--ink); }
.btn.ghost { color: var(--muted); }
.btn.ghost:hover { color: var(--ink); opacity: 1; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}
.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: lowercase;
}
.logo .dot { color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--muted);
  text-transform: lowercase;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::before { content: "[ "; color: var(--muted); }
.main-nav a[aria-current="page"]::after { content: " ]"; color: var(--muted); }

.lang-switch { display: flex; gap: 10px; font-size: 0.82rem; }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); }
  .main-nav {
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px 28px 30px;
    display: none;
  }
  .main-nav.open { display: flex; }
}

/* ---------- Hero ---------- */

.hero { padding: 96px 0 0; }
.hero .wrap.hero-text { padding-bottom: 64px; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin: 28px 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hero-meta {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: lowercase;
}
.hero-meta::before { content: "[ "; }
.hero-meta::after { content: " ]"; }

/* Vidéo pleine largeur */
.fullbleed-video { width: 100%; }
.fullbleed-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Marquee mots-clés ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
}
.marquee-track {
  display: inline-block;
  animation: scroll 36s linear infinite;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: lowercase;
}
.marquee-track span { margin: 0 28px; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Sections ---------- */

section { padding: 110px 0; }
section.tight { padding: 80px 0; }
.section-head { margin-bottom: 56px; max-width: 820px; }
.alt { background: var(--bg-alt); }

/* Services — lignes épurées */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.card { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.card.featured { border-top-width: 3px; }
.card .tag {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: lowercase;
}
.card .tag::before { content: "[ "; }
.card .tag::after { content: " ]"; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card ul { list-style: none; font-size: 0.95rem; }
.card ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.card ul li:last-child { border-bottom: none; }
.card .more {
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  text-transform: lowercase;
  align-self: flex-start;
}
.card .more::before { content: "[ "; color: var(--muted); }
.card .more::after { content: " ]"; color: var(--muted); }
.card .more:hover { opacity: 0.55; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--muted); }

/* Portfolio */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project { text-decoration: none; display: block; }
.project .thumb {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 16px;
}
.project .thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: filter 0.4s, transform 0.6s;
}
.project:hover .thumb video { filter: grayscale(0); transform: scale(1.02); }
.project h3 { margin-bottom: 2px; }
.project .meta {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: lowercase;
}
.project .meta::before { content: "[ "; }
.project .meta::after { content: " ]"; }
.project p.desc { color: var(--muted); font-size: 0.95rem; margin-top: 10px; max-width: 60ch; }

.projects.full { grid-template-columns: repeat(2, 1fr); gap: 64px 32px; }
.projects.full .thumb { aspect-ratio: 16 / 10; }

/* À propos */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.portrait figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 12px;
  text-transform: lowercase;
}
.portrait figcaption::before { content: "[ "; }
.portrait figcaption::after { content: " ]"; }

/* Zone */
.zone-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.zone-list li {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
  font-size: 0.95rem;
  color: var(--muted);
}
.zone-list li strong { color: var(--ink); display: block; font-weight: 500; }

/* CTA final */
.cta-final h2 { max-width: 16ch; }
.cta-final .btn { margin-top: 32px; font-size: 1.15rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -0.01em;
}
.faq summary::after { content: "[ + ]"; color: var(--muted); font-weight: 400; font-size: 0.85rem; flex: none; }
.faq details[open] summary::after { content: "[ – ]"; }
.faq details p { padding-top: 12px; max-width: 70ch; color: var(--muted); }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
  text-transform: lowercase;
}
label::before { content: "[ "; }
label::after { content: " ]"; }
input, textarea, select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}
input:focus, textarea:focus, select:focus { outline: none; border-bottom-width: 2px; }
button.btn { background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 1.05rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.site-footer h4 {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: lowercase;
}
.site-footer h4::before { content: "[ "; }
.site-footer h4::after { content: " ]"; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { opacity: 0.55; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  text-transform: lowercase;
}

/* Bandeau de page interne */
.page-head { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 26px; }

/* Prose */
.prose { max-width: 64ch; }
.prose p { margin-bottom: 1.3em; }
.prose strong { font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .zone-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .hero { padding: 64px 0 0; }
  .hero .wrap.hero-text { padding-bottom: 44px; }
  .cards, .steps, .projects, .projects.full, .form-grid,
  .footer-grid, .zone-list { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 44px; }
}
