/* NEVORA : fond blanc, noir en secondaire. Simple et direct. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --soft: #f4f4f2;
  --line: #e2e2e2;
  --line-strong: #111111;
  --black: #0d0d0d;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[hidden] { display: none !important; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand .brand-word { height: 14px; }

.nav ul { display: flex; align-items: center; list-style: none; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 15px;
  margin-left: 26px;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav .nav-cta {
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 3px;
}
.nav .nav-cta:hover { background: #333; text-decoration: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--ink);
  border-radius: 3px; background: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px;
  background: var(--ink); transition: transform .2s, background .2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--ink);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 4px 4vw 18px; }
  .nav a { display: block; margin: 0; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav .nav-cta { margin-top: 14px; text-align: center; padding: 13px 16px; }
}

/* ---------- Accueil ---------- */
.hero { padding: 150px 0 90px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-logo img { width: 100%; max-width: 380px; margin-left: auto; }
.pill { font-size: 14px; color: var(--muted); font-weight: 500; }
h1 {
  font-size: clamp(38px, 6.4vw, 64px); line-height: 1.05; font-weight: 800;
  letter-spacing: -.03em; margin: 14px 0 20px; max-width: 16ch;
}
.lead { color: #333; font-size: clamp(16px, 2vw, 19px); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 3px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }

@media (max-width: 820px) {
  .hero { padding: 108px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 170px; margin: 0; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid var(--ink); padding-bottom: 2px;
}
h2 {
  font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; font-weight: 800;
  letter-spacing: -.025em; margin: 14px 0 14px;
}
.sub { color: var(--muted); max-width: 60ch; }
.sub + .sub { margin-top: 14px; }

@media (max-width: 640px) { section { padding: 60px 0; } }

/* Services : liste à filets, pas de cartes flottantes */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: 40px; border-top: 2px solid var(--ink);
}
.card {
  display: flex; flex-direction: column;
  padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line);
}
.grid .card:nth-child(even) { padding: 30px 0 30px 28px; border-left: 1px solid var(--line); }
.ic { color: var(--ink); margin-bottom: 14px; }
.card-num { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.card h3 { font-size: 21px; line-height: 1.25; font-weight: 750; margin-bottom: 10px; }
.card p { color: #3a3a3a; font-size: 15.5px; }
.card p + p { margin-top: 10px; }
.card .extra { color: var(--ink); background: var(--soft); padding: 10px 12px; border-left: 3px solid var(--ink); }
.card-link {
  margin-top: auto; padding-top: 18px; color: var(--ink); font-weight: 700;
  font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
  align-self: flex-start;
}
.card-link::after { content: " →"; }
.card-link:hover { text-decoration-thickness: 2px; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid #bbb; border-radius: 2px; padding: 1px 6px;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .card, .grid .card:nth-child(even) { padding: 26px 0; border-left: 0; }
}

/* Partenaires : bande noire, logos argentés en grand */
#partenaires { background: var(--black); color: #fff; }
#partenaires .eyebrow { color: #fff; border-color: #fff; }
#partenaires h2 { font-size: clamp(34px, 5.6vw, 58px); }
#partenaires .sub { color: #b5b5b5; }
.partners { margin-top: 36px; }
.partners-track {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  border-top: 1px solid #333; border-bottom: 1px solid #333;
}
.partners-track::-webkit-scrollbar { display: none; }
.partners-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.partners-track ul {
  display: flex; align-items: center; gap: 56px; list-style: none;
  padding: 48px 16px; width: max-content;
}
.partners-track li { flex: 0 0 auto; scroll-snap-align: start; }
.partners-track a {
  display: block; padding: 12px; border-radius: 4px;
  outline: 1px solid transparent; outline-offset: 0;
  transition: outline-color .2s ease, transform .2s ease;
  -webkit-user-drag: none;
}
.partners-track a:hover { outline-color: #fff; transform: translateY(-3px); }
.partners-track a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.partners-track.is-dragging a { transform: none; outline-color: transparent; }
.partners-track img {
  display: block; height: 160px; width: auto; max-width: none;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.partners-hint {
  margin-top: 14px; font-size: 15px; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.partners-hint::before { content: "↗"; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .partners-track a { transition: none; }
  .partners-track a:hover { transform: none; }
}
.partners-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.partners-btn {
  width: 44px; height: 44px; border-radius: 3px;
  border: 1px solid #fff; background: transparent; color: #fff;
  font-size: 18px; cursor: pointer;
}
.partners-btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 640px) {
  .partners-track ul { gap: 24px; padding: 32px 8px; }
  .partners-track a { padding: 8px; }
  .partners-track img { height: 112px; }
}

/* Approche */
.steps {
  counter-reset: s; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 40px;
}
.step { padding-top: 16px; border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: s; content: counter(s) ".";
  font-size: 15px; font-weight: 800; color: var(--ink);
}
.step h3 { font-size: 18px; line-height: 1.3; font-weight: 750; margin: 6px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* À propos */
#a-propos { background: var(--soft); }
.founders {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin-top: 30px;
}
.founder { display: flex; align-items: center; gap: 14px; }
.av {
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  background: var(--ink); color: #fff;
}
.founder b { display: block; font-size: 16px; font-weight: 700; }
.founder span span, .founder b + span { color: var(--muted); font-size: 14px; }

/* Réalisations (vide pour l'instant) */
.project img { margin-bottom: 16px; }

/* Contact */
#contact { border-top: 2px solid var(--ink); }
.contact-service { margin-top: 16px; color: var(--muted); }
.contact-service strong { color: var(--ink); }
.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 4px; }
.contact-list .label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-list a {
  font-size: clamp(20px, 3.8vw, 30px); font-weight: 750; text-decoration: none;
  border-bottom: 2px solid var(--ink); padding-bottom: 2px; word-break: break-word;
  justify-self: start;
}
.contact-list a:hover { background: var(--soft); }
.contact-pending { margin-top: 26px; color: var(--muted); }
.contact-area { margin-top: 30px; color: var(--muted); font-size: 14px; }

/* Pied de page */
.site-footer { background: var(--black); color: #bbb; padding: 26px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-mark { height: 26px; width: auto; }

/* Page 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound img { width: 120px; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 auto 12px; }
.notfound p { color: var(--muted); }
