/* ═══════════════════════════════════════════════════════════════
   INORALINE — Design System
   Palette : ivoire profond / encre aubergine / sauge / ocre
   Fonts   : Fraunces (serif variable) + Instrument Sans + JetBrains Mono
   Version : 1.0 — avril 2026
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Ivoire */
  --ivory:        #F3EDE3;
  --ivory-soft:   #EDE5D7;
  --ivory-deep:   #E6DCC8;

  /* Encre aubergine */
  --ink:          #1F1420;
  --ink-soft:     #2C1F2E;
  --ink-60:       rgba(31, 20, 32, 0.60);
  --ink-40:       rgba(31, 20, 32, 0.40);
  --ink-15:       rgba(31, 20, 32, 0.15);
  --ink-08:       rgba(31, 20, 32, 0.08);

  /* Sauge */
  --sage:         oklch(0.52 0.08 155);
  --sage-dark:    oklch(0.38 0.07 155);
  --sage-soft:    oklch(0.88 0.04 155);

  /* Ocre */
  --ocre:         oklch(0.72 0.12 75);
  --ocre-deep:    oklch(0.58 0.13 65);
  --ocre-soft:    oklch(0.93 0.05 80);

  /* Brique (comparaison négative) */
  --rouge:        oklch(0.55 0.13 28);

  /* Typo */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw:        1280px;
  --pad:         clamp(20px, 4vw, 56px);
  --radius:      14px;
  --radius-lg:   22px;
}

/* ─── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0 }
::selection { background: var(--ocre); color: var(--ink) }
[hidden] { display: none !important }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── i18n ───────────────────────────────────────────────────── */
[data-lang="en"] { display: none !important }
html[lang="en"] [data-lang="fr"] { display: none !important }
html[lang="en"] [data-lang="en"] { display: block !important }
html[lang="en"] span[data-lang="en"],
html[lang="en"] strong[data-lang="en"],
html[lang="en"] em[data-lang="en"],
html[lang="en"] a[data-lang="en"],
html[lang="en"] b[data-lang="en"],
html[lang="en"] i[data-lang="en"],
html[lang="en"] small[data-lang="en"],
html[lang="en"] label[data-lang="en"] { display: inline !important }

/* ─── Typography scale ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8.2vw, 128px); line-height: 0.95; font-variation-settings: "opsz" 144 }
h2 { font-size: clamp(38px, 5.5vw, 80px);  line-height: 1.0;  font-variation-settings: "opsz" 144 }
h3 { font-size: clamp(22px, 2.2vw, 28px);  line-height: 1.15 }

/* ─── Layout primitives ──────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section       { padding: clamp(72px, 10vw, 140px) 0 }
.section--tight { padding: clamp(48px, 7vw, 96px) 0 }

/* ─── Eyebrow ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink-40);
}
.eyebrow--light { color: rgba(243, 237, 227, 0.6) }
.eyebrow--light::before { background: rgba(243, 237, 227, 0.4) }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px) }
.btn:active { transform: translateY(0) }

.btn--primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 1px 0 0 rgba(255,255,255,.08) inset, 0 10px 30px -12px var(--ink-60);
}
.btn--primary:hover { background: var(--sage-dark); color: var(--ivory) }

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-15);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--ivory-soft) }

.btn--ocre {
  background: var(--ocre);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px oklch(0.58 0.13 65 / .6);
}
.btn--ocre:hover { background: var(--ocre-deep); color: var(--ivory) }

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

.btn--sm { padding: 10px 16px; font-size: 14px }

/* ─── Logo ───────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  line-height: 1;
  font-size: 23px;
  user-select: none;
}
.logo .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
  align-self: center;
  margin-right: 4px;
  transform: translateY(1px);
}
.logo .inora {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo .line {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
}
.logo .line::after {
  content: "";
  position: absolute;
  left: -2px; right: -60px; bottom: -3px;
  height: 1.5px;
  background: var(--sage);
  transform-origin: left;
  transform: scaleX(0.35);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.logo:hover .line::after { transform: scaleX(1) }

.logo--xl { font-size: 42px }
.logo--xl .dot { width: 10px; height: 10px }
.logo--xl .line::after { right: -120px; height: 2px }

.logo--lg { font-size: 36px }
.logo--lg .dot { width: 10px; height: 10px }

/* ─── Sections dark / ocre variants ─────────────────────────── */
.section.ocre {
  background: linear-gradient(180deg, var(--ocre-soft), var(--ivory) 70%);
}

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--ivory) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--ink-08);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--pad);
  display: flex; align-items: center; gap: 32px;
}
.nav-links {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 15px;
}
.nav-links a { color: var(--ink-60); transition: color .2s }
.nav-links a:hover { color: var(--ink) }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto }
.lang-toggle {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--ink-15);
  color: var(--ink-60);
  display: flex; align-items: center; gap: 6px;
  background: none; cursor: pointer;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink) }
.lang-toggle .sep { opacity: .3 }

/* Nav CTA — long on desktop, compact on mobile to fit 390px iPhone 13.
   Default: hide short variant (regardless of FR/EN lang state). */
.nav-cta .nav-cta-short[data-lang] { display: none !important }

@media (max-width: 820px) {
  .nav-links { display: none }
  .nav-right { margin-left: auto; gap: 10px }
}
@media (max-width: 560px) {
  /* Swap CTA to compact form: hide long (any lang), show short for active lang */
  .nav-cta .nav-cta-long[data-lang]  { display: none !important }
  .nav-cta .nav-cta-short[data-lang="fr"] { display: inline !important }
  html[lang="en"] .nav-cta .nav-cta-short[data-lang="fr"] { display: none !important }
  html[lang="en"] .nav-cta .nav-cta-short[data-lang="en"] { display: inline !important }
  .nav-cta { padding: 9px 14px; font-size: 13px }
  .lang-toggle { padding: 5px 9px; font-size: 10px; letter-spacing: .06em }
  .nav-inner { gap: 12px; padding-left: 16px; padding-right: 16px }
  .nav-right { gap: 8px }
}
@media (max-width: 380px) {
  .nav-cta { padding: 8px 12px; font-size: 12px }
  .lang-toggle { padding: 4px 8px }
}
/* Prevent any horizontal overflow on small screens */
html, body { overflow-x: hidden }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(243,237,227,.7);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 0 var(--pad); max-width: var(--maxw); margin: 0 auto;
  align-items: start;
}
.footer-brand .tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 20px;
  color: rgba(243,237,227,.85);
  margin-top: 16px;
  max-width: 32ch;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 28px;
  font-size: 14px;
  justify-content: flex-end;
}
.footer-links a { color: rgba(243,237,227,.7) }
.footer-links a:hover { color: var(--ivory) }
.copyright {
  margin-top: 48px; padding: 24px var(--pad) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: rgba(243,237,227,.4);
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr }
  .footer-links { justify-content: flex-start }
}
