/* Nomirys · design system v1.0.0 (verrouillé le 2026-08-11)
   Source : DESIGN.md · Direction Iris Nuit */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --night: oklch(16% 0.025 285);
  --dusk: oklch(42% 0.07 285);
  --dawn: oklch(84% 0.05 285);
  --paper: oklch(96.5% 0.018 285);
  --rule: oklch(86% 0.025 285);
  --neutral: oklch(58% 0.03 285);
  --muted: oklch(42% 0.035 285);
  --ink: oklch(22% 0.02 285);
  --accent: oklch(55% 0.17 285);
  --accent-light: oklch(76% 0.14 285);
  --amber: oklch(76% 0.13 75);
  --on-night: oklch(94% 0.012 285);
  --on-night-muted: oklch(80% 0.03 285);
  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: linear-gradient(to bottom,
    var(--night) 0%,
    var(--night) 24%,
    var(--dusk) 45%,
    var(--dawn) 70%,
    var(--paper) 88%,
    var(--paper) 100%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* Header & wordmark */
.hero { min-height: 100vh; min-height: 100dvh; width: 100%; display: flex; flex-direction: column; position: relative; color: var(--on-night); overflow: clip; }
.hero .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 760px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at center, oklch(38% 0.09 285), transparent 68%);
}
.hero header { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; position: relative; z-index: 2; }
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: 26px; text-decoration: none; color: var(--on-night); display: inline-flex; align-items: center; gap: 11px; }
.wordmark .dot { color: var(--amber); }
.logo-mark { width: 34px; height: 34px; flex: none; }
nav a { color: var(--on-night-muted); text-decoration: none; font-size: 15px; margin-left: 26px; }
nav a:hover { color: var(--on-night); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

/* Hero contenu */
.hero .inner { position: relative; z-index: 2; }
.hero .kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 26px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 6.5vw, 5.2rem); line-height: 1.02; letter-spacing: -0.01em; max-width: 13ch; }
.hero h1 .accent { color: var(--accent-light); }
.hero .lead { color: var(--on-night-muted); font-size: 17px; max-width: 44ch; margin-top: 26px; }
.hero .nomos-mark { margin-top: 44px; width: 116px; height: 116px; }
.hero .meta { position: absolute; bottom: 28px; left: 0; right: 0; max-width: 1120px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; color: oklch(72% 0.04 285); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; z-index: 2; }

/* Hero mini (pages internes) */
.hero-mini { min-height: 0; background: linear-gradient(to bottom, var(--night) 0%, var(--dusk) 100%); }
.hero-mini .inner { padding: 70px 0 90px; }
.hero-mini h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }

/* Pages internes : bandeau sombre en haut, contenu sur fond clair */
body.page-legale { background: var(--paper); color: var(--ink); }

/* Sections */
section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .tag { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

/* Section services : zone sombre du dégradé, textes clairs */
#services .section-head .tag { color: var(--accent-light); }
#services .section-head h2 { color: var(--on-night); }

/* Piège identifié le 2026-08-11 : background en oklch() avec alpha (ex. oklch(94% 0.012 285 / 0.5)) ne se peint pas dans Chromium.
   Utiliser rgba() ou color-mix() pour les backgrounds translucides ; oklch+alpha reste OK en border/box-shadow. */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(240, 238, 244, 0.5); border-top: 1px solid rgba(240, 238, 244, 0.5); border-bottom: 1px solid rgba(240, 238, 244, 0.5); }
.svc { background: transparent; padding: 46px 40px; }
.svc .num { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 18px; }
.svc h3 { font-family: var(--font-display); font-weight: 400; font-size: 25px; color: var(--on-night); margin-bottom: 10px; }
.svc p { color: var(--on-night-muted); font-size: 15.5px; max-width: 46ch; }

.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.step .num { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; max-width: 30ch; }

.band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 110px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; max-width: 12ch; }
.band p { color: var(--muted); font-size: 16.5px; max-width: 46ch; margin-bottom: 26px; }
.principle { border-left: 2px solid var(--accent); padding-left: 22px; margin-bottom: 26px; }
.principle h3 { font-family: var(--font-display); font-size: 23px; font-weight: 400; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 15px; }
.band-arc { grid-column: 1 / -1; width: 100%; height: auto; margin-top: 28px; }

.cta { padding: 140px 0 100px; text-align: left; }
.cta-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.02em; max-width: 16ch; line-height: 1.05; }
.cta-head p { color: var(--muted); margin-top: 18px; max-width: 44ch; }
.cta-head .geo-note { font-size: 14.5px; color: var(--neutral); margin-top: 10px; }
.cta a { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.cta a:hover { color: var(--ink); border-color: var(--ink); }

/* Formulaire de contact */
.contact-form { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; max-width: 760px; }
.contact-form .field { display: flex; flex-direction: column; gap: 7px; }
.contact-form .field.full { grid-column: 1 / -1; }
.contact-form label { font-size: 13.5px; color: var(--muted); letter-spacing: 0.02em; }
.contact-form label .opt { color: var(--neutral); font-weight: 400; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: 400 15.5px/1.5 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(55% 0.17 285 / 0.14);
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--neutral) 50%), linear-gradient(135deg, var(--neutral) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form .honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.contact-form .actions { align-items: flex-start; }
.contact-form .submit {
  font: 500 17px var(--font-body);
  color: var(--on-night);
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 13px 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.contact-form .submit:hover { background: oklch(48% 0.17 285); }
.contact-form .submit:disabled { opacity: 0.55; cursor: wait; }
.form-status { margin-top: 14px; font-size: 14.5px; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #a5442f; }
.form-legal { font-size: 12.5px; color: var(--neutral); margin-top: 16px; max-width: 52ch; }
@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
}

footer { border-top: 1px solid var(--rule); padding: 30px 0 56px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; gap: 10px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* Page mentions légales */
.legal { padding: 60px 0 110px; max-width: 720px; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.legal-date { margin-top: 40px; color: var(--neutral); font-size: 13.5px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; }
  nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
