/* =========================================================================
   92 Media House · site agence
   Noir et blanc, comme le cachet. Un seul fichier, sans framework.
   ========================================================================= */

:root {
  --paper: #f2efe8;
  --paper-2: #e9e5dc;
  --card: #faf8f3;
  --ink: #111111;
  --ink-2: #3a3833;
  --muted: #6b675f;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.85);
  --night: #111111;
  --night-2: #1c1b19;
  --on-night: #f2efe8;
  --on-night-muted: #a9a499;

  /* Oswald Medium : la police du cachet 92 Media House */
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h2 { font-size: clamp(38px, 5.6vw, 76px); }
h3 { font-size: clamp(26px, 2.8vw, 36px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ''; width: 28px; height: 1.5px; background: currentColor; flex: none; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2b2a27; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--on-night); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-line-light { border-color: rgba(242, 239, 232, 0.5); color: var(--on-night); }
.btn-line-light:hover { border-color: var(--on-night); background: rgba(242, 239, 232, 0.08); }
.btn-small { padding: 11px 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(242, 239, 232, 0.86);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; white-space: nowrap; }
.brand img { width: 27px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1; }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta-mobile, .nav-lang-mobile { display: none; }
.nav-right { display: flex; align-items: center; gap: 14px; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a {
  text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  padding: 6px 10px; border-radius: 999px; color: var(--muted);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer; position: relative; color: var(--ink);
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  position: absolute; left: 50%; width: 18px; height: 1.8px; background: currentColor; margin-left: -9px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars { top: 50%; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; left: 0; margin-left: 0; }
.nav-toggle .bars::before { transform: translateY(-6px); }
.nav-toggle .bars::after { transform: translateY(6px); }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: rotate(45deg); background: var(--ink); }
.nav-open .nav-toggle .bars::after { transform: rotate(-45deg); background: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 0.92; margin-bottom: 0.32em; }
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero .lead { margin-bottom: 34px; }
.seal { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; color: var(--ink); }
.seal-ring { width: 100%; height: 100%; animation: spin 50s linear infinite; }
.seal-ring text { font-family: var(--font-display); font-weight: 500; font-size: 25px; letter-spacing: 0.12em; fill: currentColor; }
.seal-mark { position: absolute; left: 50%; top: 50%; width: 27%; height: auto; transform: translate(-50%, -52%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bandeau défilant ---------- */
.ticker { background: var(--night); color: var(--on-night); overflow: hidden; padding: 18px 0; border-block: 1px solid var(--night); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span {
  font-family: var(--font-display); text-transform: uppercase; font-size: clamp(18px, 2vw, 24px); letter-spacing: 0.06em;
  white-space: nowrap; display: inline-flex; align-items: center;
}
.ticker span::after { content: '✺'; font-size: 0.7em; margin: 0 clamp(18px, 2.4vw, 32px); color: var(--on-night-muted); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.service-n { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.tag {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 5px 10px; border-radius: 999px;
}
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks svg { margin-top: 4px; flex: none; }

.service-main {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(28px, 3vw, 40px); border-top: 1.5px solid var(--line-strong);
}
.service-main h3 { font-size: clamp(40px, 5vw, 68px); }
.service-side { display: grid; gap: 20px; align-content: start; }

.demo {
  display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.demo:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(17, 17, 17, 0.5); }
.browser { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 12px; color: var(--muted); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(17, 17, 17, 0.2); }
.browser-bar span {
  margin-left: 10px; background: var(--card); border-radius: 999px; padding: 3px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.demo-copy { padding: 22px 24px 24px; }
.demo-copy .kicker { margin-bottom: 8px; }
.demo-title { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; line-height: 1; margin: 0 0 10px; }
.demo-copy p { color: var(--ink-2); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

.offers { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: transparent; }
.offers-title { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.offers ul { list-style: none; padding: 0; margin: 0; }
.offers li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.offers li:last-child { border-bottom: 0; }
.offers li div:first-child { display: grid; gap: 1px; min-width: 0; }
.offers strong { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: 19px; letter-spacing: 0.03em; }
.offers li span { font-size: 14px; color: var(--muted); }
.price { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

.service-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 7vw, 88px); }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column;
}
.service-card h3 { font-size: clamp(34px, 3.8vw, 50px); }
.service-card > p { color: var(--ink-2); }
.service-card .checks { margin-bottom: 28px; }
.quote {
  margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Principes ---------- */
.principles { background: var(--night); color: var(--on-night); }
.principles .kicker { color: var(--on-night-muted); }
.principles-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(242, 239, 232, 0.2);
}
.principles-grid li { padding: 32px 28px 36px 0; border-bottom: 1px solid rgba(242, 239, 232, 0.2); }
.principles-grid li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid rgba(242, 239, 232, 0.2); }
.principles-grid .idx { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.14em; color: var(--on-night-muted); }
.principles-grid h3 { font-size: 26px; margin: 14px 0 10px; }
.principles-grid p { color: var(--on-night-muted); margin: 0; max-width: 36ch; }

/* ---------- Méthode ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { border-top: 1.5px solid var(--line-strong); padding-top: 22px; }
.step-n { display: block; font-family: var(--font-display); font-size: clamp(56px, 6vw, 84px); line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--ink); margin-bottom: 18px; }
.steps h3 { font-size: 24px; }
.steps p { color: var(--ink-2); margin: 0; }

/* ---------- Le studio ---------- */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.about-mark img { width: min(100%, 380px); height: auto; margin-inline: auto; }
.about h2 { font-size: clamp(36px, 4.6vw, 62px); }
.signature { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 16px; margin-top: 26px; }
.signature::before { content: '— '; }

/* ---------- Contact ---------- */
.contact { background: var(--night); color: var(--on-night); padding: clamp(90px, 12vw, 160px) 0; text-align: center; }
.contact-inner { display: grid; justify-items: center; }
.contact .kicker { color: var(--on-night-muted); }
.contact h2 { font-size: clamp(48px, 9vw, 130px); line-height: 0.92; }
.contact .lead { color: var(--on-night-muted); margin-bottom: 34px; }
.contact .actions { justify-content: center; }
.contact-mail { margin: 28px 0 0; color: var(--on-night-muted); }
.contact-mail a { color: var(--on-night); font-weight: 600; }

/* ---------- Pied de page ---------- */
.footer { background: var(--night-2); color: var(--on-night-muted); padding: 56px 0 44px; font-size: 14px; overflow: hidden; }
.footer-word {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  margin: 0 auto 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(242, 239, 232, 0.18);
}
.footer-word img { width: clamp(52px, 9vw, 120px); height: auto; filter: invert(1); opacity: 0.95; }
.footer-word span {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; color: var(--on-night);
  font-size: clamp(44px, 10vw, 150px); line-height: 1; letter-spacing: 0.14em; white-space: nowrap;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 36px; align-items: start; }
.footer-brand { display: flex; gap: 20px; align-items: center; }
.footer-brand img { width: 84px; height: 84px; flex: none; }
.footer-brand p { margin: 0; max-width: 34ch; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: var(--on-night); }
.footer-links a:hover { text-decoration: underline; }
.footer-meta { display: grid; gap: 14px; justify-items: end; }
.footer-meta p { margin: 0; }
.footer .lang { border-color: rgba(242, 239, 232, 0.25); }
.footer .lang a { color: var(--on-night-muted); }
.footer .lang a:hover { color: var(--on-night); }
.footer .lang a[aria-current] { background: var(--on-night); color: var(--ink); }

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; padding: clamp(48px, 8vw, 96px) 0 96px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 40px; }
.legal section { border-top: 1px solid var(--line); padding: 24px 0 8px; }
.legal h2 { font-size: 22px; margin-bottom: 12px; }
.legal p { color: var(--ink-2); }
.legal-updated { font-size: 13px; color: var(--muted); margin-top: 24px; }

/* ---------- Apparition au scroll (seulement si JS actif) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal-ring, .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { font-size: 12px; letter-spacing: 0.06em; }
  .nav-cta { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 28px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { border-bottom-color: var(--line); }
  .nav-links .nav-cta-mobile { display: block; margin-top: 20px; text-align: center; background: var(--ink); color: var(--paper); border-radius: 999px; font-family: var(--font-body); font-size: 15px; font-weight: 600; text-transform: none; padding: 16px; }

  .hero-grid { grid-template-columns: 1fr; }
  .seal { width: min(64vw, 320px); justify-self: center; }
  .service-main { grid-template-columns: 1fr; }
  .service-pair { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principles-grid li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .principles-grid li:nth-child(2n) { padding-left: 24px; border-left: 1px solid rgba(242, 239, 232, 0.2); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-mark img { width: min(56vw, 260px); margin-inline: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { justify-items: start; }
}
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .brand span { font-size: 15px; letter-spacing: 0.18em; }
  .nav-right .lang { display: none; }
  .nav-lang-mobile { display: flex; justify-content: center; margin-top: 18px; }
  .nav-links .nav-lang-mobile a { font-family: var(--font-body); font-size: 13px; font-weight: 700; padding: 8px 14px; border-bottom: 0; color: var(--muted); }
  .nav-links .nav-lang-mobile a[aria-current] { color: var(--paper); }
  .hero { padding-top: 32px; }
  .seal { width: 62vw; }
  .actions .btn { width: 100%; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .principles-grid li { padding-right: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .offers { padding: 16px 18px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}
