/* Opscale — styles du site (home, manifesto, essays) */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #000; color: #fff;
  font-family: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: inherit; }
a:hover { opacity: .8; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: #fff; color: #1c1c1e; padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- En-tête ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px 72px 56px;
  background: linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,0));
}
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }

/* Lien d'action avec pastille » */
.cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 0;
  font: inherit; font-weight: 600; font-size: 17px; color: inherit; text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.cta svg { width: 30px; height: 30px; flex: none; }
.cta--small { gap: 10px; padding: 9px 0; font-size: 15px; }
.cta--small svg { width: 26px; height: 26px; }
.cta .dot { fill: #fff; } .cta .chev { stroke: #1c1c1e; }

/* ---------- Scènes plein écran ---------- */
.scene {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; max-height: 1100px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.scene__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
}
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.15) 58%, rgba(0,0,0,0) 80%);
}
.scene__inner {
  width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 72px 80px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.scene__head { max-width: 900px; }
.scene__inner h1, .scene__inner h2, .scene__inner p { text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.35); }
.scene__body { max-width: 720px; }
.scene__body p { margin: 0; font-size: 20px; line-height: 1.55; }
.scene__body p + p, .scene__body p + .cta { margin-top: 20px; }
.scene--hero .scene__inner { display: block; }
.hero-row { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 20px; }
.hero-row p { margin: 0; max-width: 560px; font-size: 21px; line-height: 1.5; }
.kicker { margin: 0 0 16px; font-size: 16px; font-weight: 600; opacity: .85; }

h1, h2 { margin: 0; font-weight: 400; letter-spacing: -0.03em; }
h1 b, h2 b { font-weight: 700; }
.scene h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -0.035em; }
.scene h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.06; }

/* ---------- Pied de page ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px 72px; border-top: 1px solid rgba(255,255,255,.18);
  background: #000; color: #b3b3b3; font-size: 14px;
}
.footer img { height: 30px; width: auto; display: block; }
.footer nav { display: flex; flex-wrap: wrap; gap: 32px; }
.footer nav a { color: #fff; text-decoration: none; }

/* ---------- Pages de lecture (essays) ---------- */
.page-light { background: #edecea; color: #1c1c1e; }
.page-light .topbar { position: static; padding: 28px 72px; background: none; border-bottom: 1px solid rgba(28,28,30,.12); }
.page-light .brand img { height: 36px; }
.page-light .cta .dot { fill: #1c1c1e; } .page-light .cta .chev { stroke: #fff; }
.article { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 15px; font-weight: 500; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 40px; font-size: 14px; color: #5c5b58; }
.tag { border: 1px solid #1c1c1e; border-radius: 999px; padding: 4px 12px; color: #1c1c1e; font-weight: 500; }
.article h1 { margin-top: 24px; font-weight: 700; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; }
.lede { margin: 20px 0 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; color: #5c5b58; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 48px 0 56px; }
.prose { font-size: 19px; line-height: 1.75; }
.prose p { margin: 0 0 24px; }
.prose h2 { margin: 56px 0 20px; font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.calc { margin: 40px 0; padding: 36px 40px; border-radius: 12px; background: #1c1c1e; color: #fff; }
.calc__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.calc__op { color: #b7b6b5; }
.calc figcaption { margin-top: 16px; font-size: 15px; line-height: 1.5; color: #b7b6b5; }
.outro { background: #1c1c1e; color: #fff; padding: 96px 24px; }
.outro__inner { max-width: 760px; margin: 0 auto; }
.outro p { margin: 0 0 36px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.outro .cta .dot { fill: #fff; } .outro .cta .chev { stroke: #1c1c1e; }
.essay-list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid rgba(28,28,30,.15); }
.essay-list li { border-bottom: 1px solid rgba(28,28,30,.15); }
.essay-list a { display: block; padding: 32px 0; text-decoration: none; }
.essay-list h2 { margin: 12px 0 8px; font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.essay-list p { margin: 0; font-size: 18px; line-height: 1.5; color: #5c5b58; }

/* ---------- Formulaire de contact ---------- */
.contact {
  width: min(32rem, calc(100vw - 2rem)); max-height: calc(100svh - 2rem);
  border: 0; border-radius: 12px; padding: 40px; background: #fff; color: #1c1c1e;
}
.contact::backdrop { background: rgba(0,0,0,.6); }
.contact h2 { font-weight: 700; font-size: 32px; line-height: 1.1; margin: 0 0 24px; }
.contact form { display: grid; gap: 16px; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.contact input, .contact textarea {
  font: inherit; font-size: 16px; color: #1c1c1e; background: #fff;
  border: 1px solid #b7b6b5; border-radius: 8px; padding: 12px 14px;
}
.contact textarea { min-height: 120px; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 2px solid #1c1c1e; border-color: transparent; }
.contact .cta { justify-self: start; }
.contact .cta .dot { fill: #1c1c1e; } .contact .cta .chev { stroke: #fff; }
.contact__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: #1c1c1e; font-size: 28px; line-height: 1; }
.contact__status { margin: 0; font-size: 15px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .topbar { padding: 20px 24px 36px; }
  .brand img { height: 32px; }
  .page-light .topbar { padding: 18px 24px; }
  .page-light .brand img { height: 30px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 76px; left: 16px; right: 16px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px 24px; border-radius: 12px; background: rgba(22,22,24,.96); color: #fff; font-size: 17px;
  }
  .nav a, .nav .cta { padding: 12px 0; }
  .page-light .nav .cta .dot { fill: #fff; } .page-light .nav .cta .chev { stroke: #1c1c1e; }
  .nav.is-open { display: flex; }
  .scene { min-height: 740px; max-height: none; }
  .scene__img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .scene::after { background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,0) 78%); }
  .scene__inner { padding: 0 24px 48px; gap: 16px; }
  .scene__body p, .hero-row p { font-size: 17px; }
  .kicker { font-size: 15px; margin-bottom: 12px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 36px 24px 40px; }
  .footer nav { flex-direction: column; gap: 4px; font-size: 15px; }
  .footer nav a { padding: 10px 0; }
  .article { padding: 32px 24px 72px; }
  .meta { margin-top: 24px; font-size: 13px; }
  .cover { aspect-ratio: 4 / 3; margin: 32px 0 40px; border-radius: 10px; }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose p { margin-bottom: 20px; }
  .prose h2 { margin: 44px 0 16px; font-size: 24px; }
  .calc { padding: 28px 24px; }
  .outro { padding: 64px 24px; }
  .contact { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
