/* ==========================================================
   Rapière — site vitrine
   Couleurs : noir / blanc / terre militaire (coyote)
   ========================================================== */

:root {
  --bg: #0A0A0A;
  --bg-alt: #0F0F0F;
  --bg-card: #141414;
  --bg-photo: #1C1C1C;
  --line: #262626;
  --line-strong: #2E2E2E;
  --text: #EDEDED;
  --text-strong: #FFFFFF;
  --text-muted: #B5B5B5;
  --text-dim: #8A8A8A;
  --accent: #C2A06B;          /* coyote / terre militaire */
  --accent-bg: #15120C;
  --accent-line: #4A3D28;

  --font-display: 'Archivo', 'Arial Black', sans-serif;   /* utilisée en largeur 125 % (Expanded) */
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-brand: 'Syncopate', 'Archivo', sans-serif;         /* nom de marque uniquement */
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-stretch: 125%; text-transform: uppercase; }
h3 { font-stretch: 112%; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 64px; }
.accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-name {
  font-family: var(--font-brand); font-weight: 700; font-size: 19px;
  letter-spacing: 0.26em; margin-right: -0.26em;
}
.nav-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.btn {
  display: inline-block; padding: 12px 22px;
  background: var(--accent); color: var(--bg); font-weight: 500;
}
.btn:hover { background: var(--text); color: var(--bg); }

/* ---------- Hero ---------- */
.grid-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  display: flex; flex-direction: column; gap: 72px;
  padding-top: 104px; padding-bottom: 112px;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.22em; color: var(--accent);
}
.eyebrow-line { width: 32px; height: 2px; background: var(--accent); }
.hero-title {
  font-weight: 800; font-size: clamp(42px, 9vw, 128px);
  line-height: 0.95; letter-spacing: -0.01em; color: var(--text-strong);
}
.lead { font-size: 22px; color: var(--text-muted); max-width: 560px; }

.hero-media {
  margin: 0; position: relative; aspect-ratio: 16 / 9;
  background: var(--bg-alt); border: 1px solid var(--line-strong); overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hud { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hud-rec {
  position: absolute; right: 32px; top: 28px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--text-dim);
}
.hud-rec span { width: 8px; height: 8px; background: var(--accent); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- Sections ---------- */
.section { border-bottom: 1px solid var(--line); }
.section > .container { padding-top: 120px; padding-bottom: 120px; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-direction: column; gap: 20px; }
.section-head.narrow { max-width: 820px; }
.section-head .lead { font-size: 20px; max-width: none; }
.section-index {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.22em; color: var(--accent);
}
.section h2 { font-weight: 800; font-size: clamp(30px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.005em; }

/* Grilles de cellules séparées par un filet */
.cells {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong);
}
.cells-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cells-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cell {
  background: var(--bg-alt); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.cell h3 { font-weight: 700; font-size: 24px; line-height: 1.1; }
.cell p { color: var(--text-muted); }
.cell-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--text-dim); }

/* Chaîne d'engagement */
.chain .cell { background: var(--bg); padding: 36px 28px; gap: 14px; }
.chain .cell p { font-size: 16px; }
.chain .step { font-weight: 800; font-size: 30px; line-height: 1; }
.chain .cell-tag { font-size: 13px; letter-spacing: 0; }
.chain .cell-engage { background: var(--accent-bg); outline: 2px solid var(--accent); outline-offset: -2px; }
.cell-engage .cell-tag, .cell-engage .step { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-family: var(--font-mono); font-size: 13px; padding: 6px 10px;
  border: 1px solid var(--accent-line); color: var(--text);
}

/* Atouts */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px 32px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--text); }
.feature h3 { font-weight: 700; font-size: 19px; line-height: 1.2; }
.feature p { color: var(--text-muted); font-size: 16px; }

/* Cas d'usage */
.usecases .cell { background: var(--bg); }
.usecases h3 { font-size: 21px; padding-bottom: 14px; border-bottom: 1px solid var(--accent-line); }
.usecases ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.usecases li { position: relative; padding-left: 20px; color: var(--text-muted); font-size: 16px; }
.usecases li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 2px; background: var(--accent);
}

/* Équipe */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 24px; }
.member { background: var(--bg-card); border: 1px solid var(--line-strong); display: flex; flex-direction: column; }
.member-photo {
  position: relative; aspect-ratio: 4 / 3; background: var(--bg-photo);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.placeholder { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--text-dim); }
.member-info { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.member-info h3 { font-weight: 700; font-size: 22px; }
.member-role { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--accent); }

/* Reconnaissances */
.recognition { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.incubated { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; }
.incubator { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 20px; text-transform: uppercase; }
.award { padding: 28px; gap: 6px; }
.award-org { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 28px; text-transform: uppercase; }
.award p { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 32px; padding-bottom: 32px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--text-dim);
}
.footer-inner a { color: var(--text-dim); }
.footer-inner a:hover { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 18px; font-size: 12px; }
  .hero-inner { padding-top: 64px; padding-bottom: 72px; gap: 48px; }
  .section > .container { padding-top: 80px; padding-bottom: 80px; }
  .stack { gap: 48px; }
  .cell { padding: 32px 24px; }
  .hud-rec { right: 16px; top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hud-rec span { animation: none; }
}
