/* =========================================================
   ConvexOps — styles.css
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
fieldset { border: 0; padding: 0; }

:root {
  --bg:          #0A0B0D;
  --bg-soft:     #0E0F12;
  --bg-elev:     #12141A;
  --fg:          #EDEBE6;
  --fg-soft:     #B5B3AE;
  --muted:       #7A7C82;
  --faint:       #4A4C52;
  --line:        rgba(237, 235, 230, 0.09);
  --line-strong: rgba(237, 235, 230, 0.18);
  --wrap:   1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body { background: var(--bg); }
body {
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(237, 235, 230, 0.18); color: var(--fg); }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 18px; background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 500; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
/* Empêche le scroll d'arrière-plan quand le menu mobile est ouvert */
body.nav-open { overflow: hidden; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 11, 13, 0.86); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.brand-mark { color: var(--fg); flex: none; opacity: .92; }
.brand-word { font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.brand-word__ops { font-weight: 400; color: var(--fg-soft); }

.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-block; padding: 8px 12px; font-size: 14px;
  color: var(--fg-soft); border-radius: 6px; transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--fg); }

.nav-toggle {
  display: none; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle__bars { display: block; width: 16px; height: 1px; background: var(--fg); position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1px;
  background: var(--fg); transition: transform .25s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top:  5px; }

.hero { position: relative; padding: clamp(80px, 14vh, 150px) 0 clamp(90px, 16vh, 170px); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.hero-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.5rem, 6.8vw, 4.9rem); line-height: 1.02;
  letter-spacing: -.025em; margin-bottom: 32px;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--fg-soft); max-width: 60ch; margin-bottom: 44px; }
.hero-figure {
  position: absolute; right: -6%; bottom: -8%;
  width: min(58vw, 720px); height: auto; color: var(--fg);
  opacity: .09; pointer-events: none; z-index: 1;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font-size: 14px; font-weight: 500;
  letter-spacing: -.005em; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary:hover { background: transparent; color: var(--fg); }
.btn--ghost { background: transparent; color: var(--fg-soft); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--fg); border-color: var(--fg); }

.section { padding: clamp(72px, 11vh, 132px) 0; position: relative; }
.section--bordered { border-top: 1px solid var(--line); }
.section-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; }
.section-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.14;
  letter-spacing: -.02em; margin-bottom: 56px; max-width: 20ch;
}

.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.two-col__head h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.14;
  letter-spacing: -.02em; max-width: 16ch; position: sticky; top: 120px;
}
.two-col__body { max-width: 62ch; }
.prose p { color: var(--fg-soft); margin-bottom: 1.35em; font-size: 1.02rem; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose .note {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); line-height: 1.6; font-style: italic;
}
.grid { display: grid; gap: 1px; background: var(--line); }
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.card {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  transition: background .3s var(--ease);
}
.card:hover { background: var(--bg-soft); }
.card-index { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .08em; }
.card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.25; }
.card p { font-size: .98rem; color: var(--fg-soft); line-height: 1.68; flex: 1; }
.card-link { font-size: 13px; color: var(--muted); transition: color .25s var(--ease); display: inline-flex; gap: 6px; }
.card-link:hover { color: var(--fg); }

.statement { max-width: 760px; }
.statement h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.12;
  letter-spacing: -.02em; margin-bottom: 36px;
}
.statement p { font-size: 1.08rem; line-height: 1.72; color: var(--fg-soft); margin-bottom: 1.35em; max-width: 64ch; }

.inquiry {
  border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(36px, 5vw, 64px); max-width: 820px; background: var(--bg-soft);
}
.inquiry h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2;
  letter-spacing: -.02em; margin-bottom: 22px;
}
.inquiry p { color: var(--fg-soft); font-size: 1.02rem; line-height: 1.7; margin-bottom: 32px; max-width: 56ch; }

.page-hero { padding: clamp(72px, 11vh, 120px) 0 clamp(48px, 7vh, 72px); border-bottom: 1px solid var(--line); }
.page-hero__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.page-hero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06;
  letter-spacing: -.025em; max-width: 18ch; margin-bottom: 28px;
}
.page-hero__lede { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; color: var(--fg-soft); max-width: 60ch; }

.article { max-width: 68ch; padding: clamp(56px, 9vh, 100px) 0; }
.article h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.22;
  letter-spacing: -.018em; margin: 2.4em 0 .8em;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.005em; margin: 1.8em 0 .6em; color: var(--fg); }
.article p { font-size: 1.04rem; line-height: 1.75; color: var(--fg-soft); margin-bottom: 1.4em; }
.article ul { margin: 0 0 1.5em; padding-left: 0; }
.article ul li {
  position: relative; padding-left: 22px; margin-bottom: .7em;
  font-size: 1.02rem; line-height: 1.7; color: var(--fg-soft);
}
.article ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 10px; height: 1px; background: var(--faint);
}
.article blockquote {
  border-left: 1px solid var(--line-strong); padding-left: 24px; margin: 2em 0;
  font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.6;
  color: var(--fg); font-style: italic;
}
.article .note {
  margin-top: 2.4em; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); font-style: italic; line-height: 1.65;
}

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-card {
  border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(28px, 3.5vw, 40px); background: var(--bg-soft);
}
.contact-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -.015em; }
.contact-card p { font-size: .95rem; color: var(--fg-soft); line-height: 1.65; margin-bottom: 22px; }
.contact-email {
  display: inline-block; font-family: var(--font-mono); font-size: .92rem;
  color: var(--fg); border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px; transition: border-color .25s var(--ease);
}
.contact-email:hover { border-color: var(--fg); }

.form { display: grid; gap: 18px; margin-top: 8px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 12px 14px; font-size: 15px; color: var(--fg);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--line-strong); background: var(--bg-elev);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-size: 13.5px; color: var(--muted); min-height: 1.2em; }

.legal { max-width: 68ch; padding: clamp(56px, 9vh, 100px) 0; }
.legal h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem; margin: 2.2em 0 .6em; letter-spacing: -.015em; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 1rem; line-height: 1.72; color: var(--fg-soft); margin-bottom: 1.25em; }
.legal ul { margin: 0 0 1.4em; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: .6em; font-size: 1rem; color: var(--fg-soft); line-height: 1.7; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--faint); }
.legal .updated { font-size: 13px; color: var(--faint); margin-bottom: 40px; letter-spacing: .02em; }

.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vh, 84px) 0 36px; background: var(--bg); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-brand { max-width: 320px; }
.footer-tagline { margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-nav a { font-size: 14px; color: var(--fg-soft); transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.footer-note { color: var(--faint); }
.footer-meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-meta a { transition: color .2s var(--ease); }
.footer-meta a:hover { color: var(--fg); }

@media (max-width: 980px) {
  .two-col, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col__head h2 { position: static; max-width: none; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid { background: transparent; gap: 0; }
  .card { border-top: 1px solid var(--line); }
  .card:first-child { border-top: 0; }
}
@media (max-width: 760px) {

  /* --- Menu mobile : fond opaque, items aérés, actif distingué --- */
.site-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0A0B0D;
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity .25s var(--ease),
              transform .25s var(--ease),
              visibility .25s;
}
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a {
    display: block;
    padding: 16px 6px;
    font-size: 16px;
    color: var(--fg-soft);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-nav a:hover { color: var(--fg); }
  .site-nav a[aria-current="page"] {
    color: var(--fg);
    font-weight: 500;
    background: rgba(237, 235, 230, 0.045);
    border-radius: 4px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-nav li:last-child a { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }

  /* --- Hero et sections : moins d'air en haut sur mobile --- */
  .hero { padding-top: clamp(56px, 10vh, 96px); }
  .hero-figure { width: 90vw; right: -20%; bottom: -4%; opacity: .07; }

  .page-hero {
    padding: clamp(48px, 8vh, 72px) 0 clamp(32px, 5vh, 48px);
  }
  .section { padding: clamp(56px, 9vh, 88px) 0; }

  /* --- Footer : moins de vide vertical --- */
  .site-footer { padding: clamp(40px, 7vh, 60px) 0 28px; }
  .footer-top { flex-direction: column; gap: 32px; padding-bottom: 32px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* --- Header à largeurs intermédiaires (761–900px) --- */
@media (min-width: 761px) and (max-width: 900px) {
  .site-nav a { padding: 8px 8px; font-size: 13px; }
  .header-inner { gap: 12px; }
}
@media (max-width: 420px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-row { display: none; }
  body { background: #fff; color: #000; }
}
  /* =========================================================
   Correctif mobile : menu plein écran opaque
   Neutralise le backdrop-filter du header sur mobile et
   force un fond solide pour éviter toute transparence.
   ========================================================= */
@media (max-width: 760px) {
  .site-header {
    background: #0A0B0D !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-header.is-scrolled {
    background: #0A0B0D !important;
  }
  .site-nav {
    background: #0A0B0D !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    z-index: 150;
  }
}