/* ==========================================================================
   NOVA COM — novacom-france.fr
   Direction : canvas noir + typo display géante (léger, interligne serré),
   boutons pill à bordure, accent orange unique #e2572c (CTA + marqueurs),
   sections crème #fffdf6 pour les blocs denses. Pas d'ombres, surfaces plates.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
}

:root {
  --bg: #050505;
  --bg-2: #0e0e0d;
  --ink: #f5f4f1;
  --muted: #8f8d86;
  --accent: #e2572c;
  --cream: #fffdf6;
  --cream-ink: #12110f;
  --cream-muted: #6b6960;
  --line: rgba(245, 244, 241, 0.18);
  --line-dark: rgba(18, 17, 15, 0.14);
  --pad: clamp(20px, 4vw, 64px);
  --font: 'Archivo', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--accent); color: #050505; }

/* ── Typographie ────────────────────────────────────────────────────────── */

.display {
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 8.75rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.display .dot { color: var(--accent); font-weight: 400; }

.h2 {
  font-weight: 300;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section--cream .kicker { color: var(--cream-muted); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; }

/* ── Boutons (pill, bordure, jamais d'ombre) ────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 17px 34px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover { background: var(--ink); color: var(--bg); }

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.btn--dark {
  color: var(--cream-ink);
  border-color: var(--cream-ink);
}

.btn--dark:hover { background: var(--cream-ink); color: var(--cream); }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand sup { color: var(--accent); font-size: 11px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }

.site-nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav a:hover, .site-nav a[aria-current='page'] { opacity: 1; }

.site-nav a[aria-current='page'] { color: var(--accent); }

.site-nav .btn { padding: 12px 24px; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--ink);
    color: var(--ink);
    font: 500 12px/1 var(--font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { font-size: 20px; }
  .site-header { z-index: 60; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--pad) * 1.6) var(--pad) var(--pad);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/img/hero.jpg') center / cover no-repeat;
  filter: saturate(0.7);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.35) 40%, rgba(5,5,5,0.92) 100%);
}

.hero .kicker { margin-bottom: 22px; color: var(--ink); }

.hero .display { max-width: 12ch; }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(28px, 5vh, 56px);
}

.hero-foot p { max-width: 46ch; color: rgba(245, 244, 241, 0.85); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  margin-top: clamp(26px, 4vh, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Bande défilante ────────────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee span::after { content: '●'; color: var(--accent); font-size: 0.5em; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

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

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding: clamp(72px, 11vw, 150px) var(--pad); }

.section--cream {
  background: var(--cream);
  color: var(--cream-ink);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: clamp(40px, 6vw, 84px);
  max-width: 1280px;
  margin-inline: auto;
}

.section-inner { max-width: 1280px; margin-inline: auto; }

/* ── Services (liste numérotée) ─────────────────────────────────────────── */

.services { display: flex; flex-direction: column; }

.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px) 0;
  border-top: 1px solid var(--line-dark);
}

.service:last-child { border-bottom: 1px solid var(--line-dark); }

.service-num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  align-self: start;
  padding-top: 10px;
}

.service h3 {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.04;
}

.service p { color: var(--cream-muted); max-width: 52ch; margin-top: 10px; }

.service-img {
  width: clamp(120px, 16vw, 230px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(0.8);
}

@media (max-width: 700px) {
  .service { grid-template-columns: auto 1fr; }
  .service-img { display: none; }
}

/* ── Méthode ────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step { background: var(--bg); padding: clamp(26px, 3vw, 44px); min-height: 250px; display: flex; flex-direction: column; gap: 16px; }

.step-num { font-size: 13px; font-weight: 500; letter-spacing: 0.18em; color: var(--accent); }

.step h3 {
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.step p { color: var(--muted); font-size: 0.95rem; margin-top: auto; }

/* ── Offres ─────────────────────────────────────────────────────────────── */

.offres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.offre-card {
  background: var(--cream);
  color: var(--cream-ink);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section--cream .offre-card { background: #fff; }

.offre-card h3 {
  font-size: 1.45rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.offre-card .offre-desc { color: var(--cream-muted); white-space: pre-line; }

.offre-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.offre-price strong {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.offre-price span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-muted); }

.offres-empty {
  border: 1px dashed var(--line-dark);
  border-radius: 24px;
  padding: 60px 30px;
  text-align: center;
  color: var(--cream-muted);
}

/* ── CTA finale ─────────────────────────────────────────────────────────── */

.cta-final { text-align: left; position: relative; }

.cta-final .display { max-width: 14ch; margin-bottom: 40px; }

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 620px);
  gap: clamp(32px, 6vw, 96px);
  max-width: 1280px;
  margin-inline: auto;
  align-items: start;
}

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

.contact-info { display: flex; flex-direction: column; gap: 26px; }

.contact-info a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }

.contact-form {
  background: var(--cream);
  color: var(--cream-ink);
  border-radius: 24px;
  padding: clamp(26px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.field input,
.field select,
.field textarea {
  font: 400 16px/1.5 var(--font);
  color: var(--cream-ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-errors {
  background: rgba(226, 87, 44, 0.09);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  color: #a33413;
  font-size: 0.95rem;
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Pages légales ──────────────────────────────────────────────────────── */

.legal-body { max-width: 820px; margin-inline: auto; }

.legal-body h1 { margin-bottom: 40px; }

.legal-body h2 {
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 44px 0 14px;
}

.legal-body p, .legal-body li { color: var(--cream-muted); margin-bottom: 12px; }

.legal-body ul { padding-left: 20px; }

.legal-body strong { color: var(--cream-ink); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 96px) var(--pad) 36px;
}

.footer-grid {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

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

.footer-brand {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}

.footer-brand .dot { color: var(--accent); }

.footer-col h4 {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a { text-decoration: none; color: var(--ink); opacity: 0.85; }

.footer-col a:hover { opacity: 1; color: var(--accent); }

.footer-legal {
  max-width: 1280px;
  margin: 56px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Reveal on scroll ───────────────────────────────────────────────────── */

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }

html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Page interne : bandeau titre ───────────────────────────────────────── */

.page-hero {
  padding: calc(clamp(72px, 11vw, 150px) + 40px) var(--pad) clamp(40px, 6vw, 80px);
}

.page-hero .kicker { margin-bottom: 20px; }
