/* ==========================================================================
   PARENT Maxime — feuille de style principale
   Ink & Signal — palette héritée du logo (rouge #B80F1D / graphite #333332)
   ========================================================================== */

@font-face {
  font-family: "AR-Techni";
  src: url("AR-Techni.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Couleurs de marque */
  --ink: #16151a;
  --ink-2: #201d20;
  --ink-3: #2b2729;
  --paper: #f3efe8;
  --paper-2: #ebe5db;
  --red: #b80f1d;
  --red-deep: #7a0a13;
  --red-light: #e2483a;
  --graphite: #333332;
  --white: #fffdfa;
  --line-dark: rgba(255, 253, 250, 0.14);
  --line-light: rgba(22, 21, 26, 0.14);

  /* Typo */
  --font-display: "Space Grotesk", "AR-Techni", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  /* Rythme */
  --maxw: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.5em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
}
.section--paper { background: var(--paper); color: var(--graphite); }
.section--paper p { color: var(--graphite); }
.section--ink { background: var(--ink); }
.section--ink-2 { background: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--red-light);
  margin-bottom: 0.9em;
  letter-spacing: 0.02em;
}
.section--paper .eyebrow { color: var(--red); }

.lede {
  font-size: 1.12rem;
  max-width: 54ch;
  opacity: 0.92;
}

.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-light); }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--white); }
.btn-ghost-dark:hover { border-color: var(--red-light); color: var(--red-light); }
.btn-ghost-light { border-color: var(--line-light); color: var(--graphite); }
.btn-ghost-light:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: 1.05em 2em; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 21, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 0.6em; }
.nav__brand img { height: 34px; width: auto; }
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}
.nav__brand-text span { color: var(--red-light); }

.nav__links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 253, 250, 0.78);
  position: relative;
  padding: 0.3em 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4em;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
}
.nav__mobile a {
  padding: 1em clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  font-weight: 500;
}
.nav__mobile.is-open { display: flex; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 82% 18%, rgba(184, 15, 29, 0.28), transparent 55%), var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero__eyebrow {
  font-family: var(--font-display);
  color: var(--red-light);
  font-size: 0.92rem;
  margin-bottom: 1.1em;
}
.hero h1 { color: var(--white); }
.hero__lede { font-size: 1.15rem; color: rgba(255,253,250,0.85); max-width: 46ch; }
.hero__actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero__canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
}
.hero__canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.hero__badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(22,21,26,0.78);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-s);
  padding: 0.6em 0.9em;
  font-size: 0.82rem;
  backdrop-filter: blur(6px);
}
.hero__badge strong { color: var(--red-light); font-family: var(--font-display); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__canvas-wrap { aspect-ratio: 16/10; }
}

/* ---------- Bandeau stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 2.2rem 0;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--red-light);
}
.stat span { font-size: 0.88rem; opacity: 0.75; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cartes / grilles ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  padding: 1.8rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.card:hover { border-color: rgba(184,15,29,0.55); transform: translateY(-4px); }
.card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(184,15,29,0.14);
  color: var(--red-light);
  margin-bottom: 1.1rem;
}
.section--paper .card { background: var(--white); border-color: var(--line-light); }
.section--paper .card:hover { border-color: rgba(184,15,29,0.45); }

/* ---------- Process (séquence légitime) ---------- */
.process { counter-reset: step; }
.process__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark);
}
.process__item:last-child { border-bottom: 1px solid var(--line-dark); }
.section--paper .process__item { border-color: var(--line-light); }
.process__num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--red);
}
.process__num::before { content: counter(step, decimal-leading-zero); }

/* ---------- Marquee réalisations ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 2rem 0;
  background: var(--ink-2);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: scroll-left 32s linear infinite;
  align-items: center;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.6; transition: opacity 0.25s ease; }
.marquee__track img:hover { opacity: 1; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Réalisations (grille) ---------- */
.work-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line-light);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(22,21,26,0.14); }
.work-card__logo {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: #fff;
}
.work-card__logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.work-card__body {
  padding: 1.2rem 1.4rem 1.5rem;
  border-top: 1px solid var(--line-light);
  color: var(--graphite);
}
.work-card__tag {
  display: inline-block;
  font-size: 0.76rem;
  font-family: var(--font-display);
  color: var(--red);
  background: rgba(184,15,29,0.08);
  padding: 0.25em 0.7em;
  border-radius: 20px;
  margin-bottom: 0.7em;
}
.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--graphite);
  margin-top: 0.6em;
}
.work-card__link.is-placeholder { color: #9a938a; cursor: default; }
.work-card__link:not(.is-placeholder):hover { color: var(--red); }
.card .work-card__link { color: var(--red-light); margin-top: 0.9em; }
.card .work-card__link:hover { color: var(--white); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}
.filters button {
  font-family: var(--font-display);
  font-size: 0.86rem;
  background: transparent;
  border: 1.5px solid var(--line-light);
  color: var(--graphite);
  padding: 0.5em 1.1em;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filters button.is-active, .filters button:hover { border-color: var(--red); color: var(--red); background: rgba(184,15,29,0.06); }

/* ---------- Bloc produit phare (logiciel de gestion) ---------- */
.flagship {
  background: linear-gradient(135deg, var(--red-deep), var(--red) 60%, var(--red-light));
  border-radius: var(--radius-m);
  padding: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  color: var(--white);
}
.flagship h2, .flagship p { color: var(--white); }
.flagship__panel {
  background: rgba(22,21,26,0.28);
  border: 1px solid rgba(255,253,250,0.3);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.flagship__panel img { width: 100%; }
@media (max-width: 900px) { .flagship { grid-template-columns: 1fr; } }

/* ---------- Témoignage / Trustpilot ---------- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

/* ---------- Formulaire ---------- */
.form-field {
  width: 100%;
  padding: 0.9em 1em;
  margin-bottom: 1rem;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line-light);
  background: var(--white);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease;
}
.form-field:focus { outline: none; border-color: var(--red); }
textarea.form-field { resize: vertical; min-height: 130px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert {
  padding: 0.9em 1.1em;
  border-radius: var(--radius-s);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}
.alert-success { background: rgba(34,140,80,0.12); color: #1c6b3f; border: 1px solid rgba(34,140,80,0.3); }
.alert-danger { background: rgba(184,15,29,0.1); color: var(--red-deep); border: 1px solid rgba(184,15,29,0.3); }

.contact-info li { list-style: none; margin-left: -1.2em; display: flex; gap: 0.7em; align-items: flex-start; margin-bottom: 1em; }
.contact-info svg { flex-shrink: 0; margin-top: 0.15em; color: var(--red-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f0e11;
  border-top: 1px solid var(--line-dark);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.92rem;
  color: rgba(255,253,250,0.72);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__grid h4 { color: var(--white); font-size: 0.98rem; margin-bottom: 1em; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: 0.7em; }
.footer__grid a:hover { color: var(--red-light); }
.footer__brand img { height: 30px; margin-bottom: 1em; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  opacity: 0.7;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  font-size: 0.78rem;
  font-family: var(--font-display);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 0.3em 0.85em;
  color: rgba(255,253,250,0.8);
}
hr.rule { border: none; border-top: 1px solid var(--line-dark); margin: 2.5rem 0; }
.section--paper hr.rule { border-top-color: var(--line-light); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 0.8em 1.2em; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--red-light); outline-offset: 2px; }
