/* QUARIC institutional site, shared stylesheet */

:root {
  --paper: #FAFAF7;
  --paper-2: #F2F1EC;
  --ink: #0E0E10;
  --ink-2: #2A2A2E;
  --muted: #6E6E73;
  --rule: #D9D7CF;
  --accent: oklch(0.55 0.09 230);
  --accent-2: oklch(0.55 0.09 300);
  /* Couleurs identitaires QUARIC alignees sur le logo (cyan / violet / magenta) */
  --q-cyan:    #3DD8D2;
  --q-violet:  #7A5BD8;
  --q-magenta: #C24BD0;
  --q-cyan-soft:    #7EE8E4;
  --q-violet-soft:  #A48BE8;
  --q-magenta-soft: #D97AE0;
  --q-grad-brand: linear-gradient(90deg, var(--q-cyan) 0%, var(--q-violet) 50%, var(--q-magenta) 100%);
  --q-grad-diag:  linear-gradient(135deg, var(--q-cyan) 0%, var(--q-violet) 55%, var(--q-magenta) 100%);
  --q-grad-soft:  linear-gradient(90deg, color-mix(in oklab, var(--q-cyan) 70%, transparent), color-mix(in oklab, var(--q-violet) 70%, transparent), color-mix(in oklab, var(--q-magenta) 70%, transparent));
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: "Iowan Old Style", "Apple Garamond", "Hoefler Text", "Baskerville", Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "IBM Plex Mono", Menlo, monospace;
  /* Famille editoriale dediee au manifeste pour le distinguer du reste du site */
  --serif-manifesto: "Hoefler Text", "Baskerville", "Apple Garamond", "Times New Roman", Georgia, serif;
}

[data-theme="dark"] {
  --paper: #0B0B0D;
  --paper-2: #131317;
  --ink: #ECECE6;
  --ink-2: #C7C7C0;
  --muted: #8A8A90;
  --rule: #232328;
  --accent: oklch(0.72 0.10 230);
  --accent-2: oklch(0.72 0.10 300);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
a.link { border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: border-color 0.2s ease; }
a.link:hover { border-color: var(--ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Top bar : nav pill flottante institutionnelle */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: transparent;
  pointer-events: none;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--paper) 92%, transparent) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.topbar-inner {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 14px 6px 22px;
  background: color-mix(in oklab, var(--paper) 96%, var(--ink) 4%);
  border: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(14,14,16,0.04), 0 10px 28px rgba(14,14,16,0.07);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
[data-theme="dark"] .nav-pill {
  background: color-mix(in oklab, var(--paper) 88%, var(--ink-2) 12%);
  border: 1.5px solid color-mix(in oklab, var(--ink-2) 30%, transparent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 28px rgba(0,0,0,0.35);
}
.nav-side {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.nav-side a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  position: relative;
  padding: 8px 2px;
  white-space: nowrap;
}
.nav-side a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-side a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 14px; height: 14px;
  background: url("assets/quaric-mark-id.svg") center/contain no-repeat;
}
.nav-side a:hover { color: var(--ink); }

.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 22px;
  padding: 0 4px;
  height: 28px;
}
.nav-brand .brand-logo {
  height: 22px;
  display: block;
}

.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 8px;
  margin-left: 4px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
  position: relative;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink); }
.icon-btn[aria-current="page"] { color: var(--ink); }
.icon-btn[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px;
  background: url("assets/quaric-mark-id.svg") center/contain no-repeat;
}
.icon-btn .lang-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Logo desktop / mobile */
.nav-brand-mobile { display: none; cursor: pointer; }
@media (max-width: 880px) {
  .nav-brand-desktop { display: none; }
  .nav-brand-mobile { display: inline-flex; }
}

/* Details collapse pour les controls (theme + langue) */
.nav-controls.nav-controls,
details.nav-controls {
  position: relative;
  border: 0;
  margin-left: 4px;
  padding: 0;
}
details.nav-controls > summary {
  list-style: none;
  cursor: pointer;
}
details.nav-controls > summary::-webkit-details-marker { display: none; }
details.nav-controls > summary::marker { content: ""; }
details.nav-controls > summary .icon-btn,
details.nav-controls > summary {
  /* summary est deja stylise comme .icon-btn dans le HTML */
}
details.nav-controls > summary svg {
  transition: transform 0.22s cubic-bezier(0.2,0.7,0.1,1);
}
details.nav-controls[open] > summary svg {
  transform: rotate(90deg);
}
.nav-controls-panel {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
  padding: 0 4px 0 6px;
  vertical-align: middle;
}
details.nav-controls:not([open]) .nav-controls-panel {
  display: none;
}
details.nav-controls[open] .nav-controls-panel {
  display: inline-flex;
  animation: panelIn 0.22s cubic-bezier(0.2,0.7,0.1,1);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Menu mobile : checkbox state + overlay */
.m-state { position: absolute; left: -9999px; }
.m-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1.5px solid var(--rule);
  padding: 80px 24px 32px;
  flex-direction: column;
  gap: 0;
  z-index: 49;
  box-shadow: 0 24px 40px rgba(14,14,16,0.12);
}
.m-overlay a {
  display: block;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.m-overlay a:last-child { border-bottom: 0; }
.m-overlay a[aria-current="page"] {
  position: relative;
  padding-left: 24px;
}
.m-overlay a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: url("assets/quaric-mark-id.svg") center/contain no-repeat;
}
.m-state:checked ~ .m-overlay {
  display: flex;
  animation: mIn 0.24s cubic-bezier(0.2,0.7,0.1,1);
}
@keyframes mIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive nav pill */
@media (max-width: 880px) {
  .topbar { padding: 10px 0; }
  .nav-pill { padding: 4px 8px 4px 14px; gap: 0; }
  .nav-side { display: none; }
  .nav-brand { margin: 0 6px; }
}

/* Back to top : petite icone QUARIC en bas a gauche, apparait au scroll, pulse et flèche au survol */
@keyframes btt-reveal {
  from { opacity: 0; transform: translateY(24px); pointer-events: none; }
  to   { opacity: 1; transform: translateY(0);    pointer-events: auto; }
}
@keyframes btt-pulse-ring {
  0%   { box-shadow: 0 4px 14px rgba(14,14,16,0.10), 0 0 0 0 color-mix(in oklab, var(--accent) 30%, transparent); }
  60%  { box-shadow: 0 4px 14px rgba(14,14,16,0.10), 0 0 0 12px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 4px 14px rgba(14,14,16,0.10), 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
}
@keyframes btt-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: 50%;
  text-decoration: none;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.28s cubic-bezier(0.2,0.7,0.1,1), transform 0.28s cubic-bezier(0.2,0.7,0.1,1);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: btt-pulse-ring 2.4s ease-in-out infinite;
}
.back-to-top.is-visible:hover { transform: translateY(-3px); }
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.back-to-top img {
  width: 40px;
  height: 40px;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0E10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 19V5'/><path d='M5 12l7-7 7 7'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.back-to-top:hover::before {
  opacity: 1;
  animation: btt-arrow-bounce 0.9s ease-in-out infinite;
}
.back-to-top:hover img { opacity: 0; }

/* Mode sombre : flèche en clair */
[data-theme="dark"] .back-to-top {
  background: var(--paper-2);
  border-color: color-mix(in oklab, var(--ink-2) 30%, transparent);
}
[data-theme="dark"] .back-to-top::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ECECE6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 19V5'/><path d='M5 12l7-7 7 7'/></svg>");
}

/* Reduced motion : pas de pulse ni de bounce */
@media (prefers-reduced-motion: reduce) {
  .back-to-top.is-visible { animation: none; }
  .back-to-top:hover::before { animation: none; }
}

@media (max-width: 880px) {
  .back-to-top { bottom: 16px; left: 16px; width: 42px; height: 42px; }
  .back-to-top img { width: 36px; height: 36px; }
  .back-to-top::before { background-size: 20px 20px; }
}

/* ===================================================================
   IDENTITE QUARIC : marquages colores subtils, filets gradient, binaire/quantique
   =================================================================== */

/* Filet gradient horizontal QUARIC, classe utilitaire */
.brand-line {
  height: 1.5px;
  background: var(--q-grad-brand);
  border: 0;
  margin: 0;
  opacity: 0.85;
}
.brand-line.thin { height: 1px; opacity: 0.7; }
.brand-line.soft { background: var(--q-grad-soft); }

/* Filets de section : remplacer un border-top neutre par un filet gradient subtil */
.strip,
.pillars,
.quote,
.soon,
.page-hero,
.axes,
.contact,
.prose + hr.divider,
.divider,
.footer {
  position: relative;
}
.strip::before,
.pillars::before,
.quote::before,
.soon::before,
.page-hero::after,
.axes::before,
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--q-grad-brand);
  opacity: 0.4;
  pointer-events: none;
}
.strip::before,
.pillars::before,
.quote::before,
.soon::before,
.axes::before,
.footer::before {
  top: -1px;
}
.page-hero::after { bottom: -1px; }

/* hr.divider en gradient brand */
hr.divider {
  border: 0;
  height: 1px;
  background: var(--q-grad-soft);
  opacity: 0.55;
  margin: 0;
}

/* Hero h1 em : conserve l accent oklch de base mais ajoute un gradient au survol global page */
.hero h1 em {
  background: var(--q-grad-diag);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .hero h1 em {
  background: var(--q-grad-diag);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Quote .accent : gradient cyan->magenta */
.quote blockquote .accent {
  background: var(--q-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* Mission strip .quantum : gradient brand */
.strip .quantum {
  background: var(--q-grad-diag);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* Section head h2 : petit accent en barre sur la gauche en gradient */
.section-head h2 {
  position: relative;
  padding-left: 0;
}

/* Card num : passer le numero en gradient */
.card .num {
  background: var(--q-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.axes .idx {
  background: var(--q-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* Domain dans soon : accent brand */
.soon .domain {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 70%, var(--q-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .soon .domain {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 70%, var(--q-violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Pattern decoratif binaire/quantique en background sur certaines sections (très subtil) */
.strip,
.soon {
  background-image:
    linear-gradient(to bottom, var(--paper-2), var(--paper-2)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%237A5BD8' opacity='0.06' font-family='monospace' font-size='10'><text x='10' y='20'>01</text><text x='40' y='34'>10</text><text x='70' y='48'>00</text><text x='110' y='28'>11</text><text x='150' y='42'>01</text><text x='15' y='80'>11</text><text x='55' y='95'>01</text><text x='95' y='80'>10</text><text x='130' y='100'>00</text><text x='170' y='86'>11</text><text x='25' y='130'>10</text><text x='65' y='145'>00</text><text x='105' y='130'>11</text><text x='145' y='150'>01</text><text x='180' y='135'>10</text><text x='20' y='180'>01</text><text x='80' y='195'>11</text><text x='130' y='185'>10</text></g><g fill='%23C24BD0' opacity='0.08' font-family='serif' font-size='14' font-style='italic'><text x='80' y='60'>|ψ⟩</text><text x='30' y='115'>|0⟩</text><text x='160' y='125'>|1⟩</text><text x='115' y='170'>|ψ⟩</text></g></svg>");
  background-size: auto, 280px 280px;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat, repeat;
  background-blend-mode: normal, multiply;
}
[data-theme="dark"] .strip,
[data-theme="dark"] .soon {
  background-image:
    linear-gradient(to bottom, var(--paper-2), var(--paper-2)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%23A48BE8' opacity='0.08' font-family='monospace' font-size='10'><text x='10' y='20'>01</text><text x='40' y='34'>10</text><text x='70' y='48'>00</text><text x='110' y='28'>11</text><text x='150' y='42'>01</text><text x='15' y='80'>11</text><text x='55' y='95'>01</text><text x='95' y='80'>10</text><text x='130' y='100'>00</text><text x='170' y='86'>11</text><text x='25' y='130'>10</text><text x='65' y='145'>00</text><text x='105' y='130'>11</text><text x='145' y='150'>01</text><text x='180' y='135'>10</text><text x='20' y='180'>01</text><text x='80' y='195'>11</text><text x='130' y='185'>10</text></g><g fill='%23D97AE0' opacity='0.10' font-family='serif' font-size='14' font-style='italic'><text x='80' y='60'>|ψ⟩</text><text x='30' y='115'>|0⟩</text><text x='160' y='125'>|1⟩</text><text x='115' y='170'>|ψ⟩</text></g></svg>");
}

/* Nav pill : indicateur aria-current avec gradient en plus du SVG */
.nav-side a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--q-grad-brand);
  opacity: 0.7;
}

/* Footer : filet brand au-dessus */
.footer { border-top: 0; }
.footer::before { height: 1.5px; opacity: 0.45; }

/* Contact form submit : accent brand au survol */
.form .submit {
  position: relative;
  overflow: hidden;
}
.form .submit:hover {
  background: var(--q-grad-brand);
  border-color: transparent;
  color: var(--paper);
}

/* ===================================================================
   MANIFESTE : typographie distincte du reste du site
   =================================================================== */
.manifesto-wrap,
.manifesto-wrap * {
  --serif: var(--serif-manifesto);
}
.manifesto-hero h1 {
  font-family: var(--serif-manifesto);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.manifesto-hero .epigraph {
  font-family: var(--serif-manifesto);
  font-style: italic;
  font-weight: 400;
}
.manifesto-section h2 {
  font-family: var(--mono);
  font-weight: 400;
}
.manifesto-point h3 {
  font-family: var(--serif-manifesto);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.manifesto-point h3 .num {
  background: var(--q-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.manifesto-point p {
  font-family: var(--serif-manifesto);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
}
.manifesto-preamble p {
  font-family: var(--serif-manifesto);
  font-style: normal;
  font-size: 17.5px;
  line-height: 1.6;
  letter-spacing: 0.005em;
}
.manifesto-final h2 {
  font-family: var(--serif-manifesto);
  font-weight: 600;
}
.manifesto-final .march {
  font-family: var(--serif-manifesto);
  font-weight: 700;
  background: var(--q-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Filet brand entre sections du manifeste */
.manifesto-section {
  border-top: 0;
  position: relative;
}
.manifesto-section + .manifesto-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--q-grad-soft);
  opacity: 0.55;
}
.manifesto-final {
  border-top: 0;
  position: relative;
}
.manifesto-final::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--q-grad-brand);
  opacity: 0.6;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 75%);
  pointer-events: none;
  will-change: transform;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: clamp(60px, 12vh, 140px);
  padding-bottom: clamp(60px, 12vh, 140px);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta .dot {
  width: 18px; height: 18px;
  background: url("assets/quaric-mark-id.svg") center/contain no-repeat;
  display: inline-block;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7.5vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
}
.hero h1 .reveal-word {
  display: inline-block;
  /* hidden vertical pour clipper l'animation translateY, visible horizontal
     pour laisser le slant des italiques (Bits, Qubits) sortir librement.
     Solution sans :has() qui n est pas universel. */
  overflow: hidden visible;
  vertical-align: bottom;
  padding: 0.05em 0 0.05em 0;
}
.hero h1 .reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.hero h1.in .reveal-word > span { transform: translateY(0); }
.hero h1 .reveal-word + .reveal-word > span { transition-delay: 0.05s; }
.hero h1 em {
  font-style: italic;
  font-feature-settings: "ss01";
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 32ch;
}

.hero-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 8vh, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-foot .scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-2);
}
.hero-foot .scroll-cue .arrow {
  display: inline-block; width: 1px; height: 28px;
  background: var(--ink-2);
  position: relative;
  animation: scrollCue 2.4s ease-in-out infinite;
}
.hero-foot .scroll-cue .arrow::after {
  content: "";
  position: absolute;
  left: -3px; bottom: 0;
  width: 7px; height: 7px;
  border-right: 1px solid var(--ink-2);
  border-bottom: 1px solid var(--ink-2);
  transform: rotate(45deg);
}
@keyframes scrollCue {
  0% { transform: translateY(-6px); opacity: 0.4; }
  50% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(6px); opacity: 0.4; }
}

/* Mission strip */
.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.strip-inner {
  padding-top: clamp(48px, 9vh, 96px);
  padding-bottom: clamp(48px, 9vh, 96px);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.strip-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.strip p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.strip p + p { margin-top: 0.6em; }
.strip .quantum {
  font-family: var(--serif);
  color: var(--accent);
  font-style: italic;
}

/* Pillars / cards */
.pillars {
  padding: clamp(72px, 12vh, 140px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.section-head .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}

.cards {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.cards .spacer { border-right: 0; }
.card {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  position: relative;
  transition: background-color 0.3s ease;
}
.card:last-child { border-right: 0; padding-right: 0; }
.card:nth-child(2) { padding-left: 28px; }
.card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.card .more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card .more::after {
  content: "→";
  transition: transform 0.25s ease;
}
.card:hover .more::after { transform: translateX(4px); }

/* Editorial quote block */
.quote {
  padding: clamp(80px, 14vh, 160px) 0;
  border-top: 1px solid var(--rule);
}
.quote-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  max-width: 22ch;
}
.quote blockquote .accent { color: var(--accent); font-style: italic; }
.quote-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}
.quote-visual .quantum-sphere {
  width: 160px;
  height: auto;
  opacity: 0.9;
  filter: saturate(0.95);
  user-select: none;
  pointer-events: none;
}
[data-theme="dark"] .quote-visual .quantum-sphere { opacity: 0.85; filter: saturate(1.05) brightness(1.05); }
.quote .cite {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Soon block — compact, sobre */
.soon { padding: clamp(40px, 7vh, 72px) 0; border-top: 1px solid var(--rule); background: var(--paper-2); }
.soon-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.soon ul { list-style: none; padding: 0; margin: 0; }
.soon li {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.soon li:first-child { border-top: 1px solid var(--rule); }
.soon .domain {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: -0.005em;
}
.soon .desc { color: var(--muted); font-size: 13px; }
.soon .status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Internal page hero (smaller) */
.page-hero {
  padding: clamp(72px, 14vh, 160px) 0 clamp(48px, 8vh, 88px);
  border-bottom: 1px solid var(--rule);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: end;
}
.page-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
  max-width: 14ch;
}
.page-hero .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink-2);
  margin-top: 28px;
  max-width: 36ch;
  line-height: 1.4;
}

/* Long-form */
.prose { padding: clamp(64px, 10vh, 120px) 0; }
.prose-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.prose .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 6px; position: sticky; top: 96px; }
.prose .body { max-width: 60ch; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 1.2em;
}
.prose .body > * + h3 { margin-top: 56px; }
.prose .body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.4em;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--ink);
}

.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Two-column R&D axes */
.axes { padding: clamp(72px, 12vh, 140px) 0; border-top: 1px solid var(--rule); }
.axes-list { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.axes ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.axes li {
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.axes .idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.axes .axis-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.axes .axis-desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Contact form */
.contact { padding: clamp(72px, 12vh, 140px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.contact .label-row { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.contact dl { margin: 0; display: grid; grid-template-columns: 100px 1fr; row-gap: 12px; column-gap: 16px; }
.contact dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact dd { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.contact dd a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.contact dd a:hover { border-color: var(--ink); }

.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 6px; }
.form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input, .form select, .form textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.form textarea { resize: vertical; min-height: 120px; }
.form .submit {
  margin-top: 12px;
  justify-self: start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px 22px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.form .submit:hover { background: transparent; color: var(--ink); }

/* Footer enrichi : logo + colophon en haut, 4 colonnes (Institution / Écosystème / Mentions / Porteur) */
.footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 36px;
  background: var(--paper);
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer-tagline {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
  max-width: 38ch;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer .footer-meta { color: var(--muted); font-size: 13px; }

/* Liste écosystème dans le footer : domaines actifs */
.footer-eco { gap: 6px; }
.footer-eco li { padding: 0; }
.footer-eco .eco-domain {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  border-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}
.footer-eco .eco-domain::after {
  content: "↗";
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}
.footer-eco .eco-domain:hover { color: var(--ink); }
.footer-eco .eco-domain:hover::after { transform: translate(2px, -2px); color: var(--ink); }
.footer-eco .eco-here {
  background: var(--q-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.footer-eco .eco-here::after { content: "•"; color: var(--q-cyan); font-size: 14px; }
.footer-eco .eco-here:hover::after { transform: none; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 880px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-tagline { font-size: 15px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* i18n visibility, scoped so it never matches <html>. !important to win against component display rules. */
body [lang]:not([data-active]) { display: none !important; }

/* Responsive */
@media (max-width: 880px) {
  .nav { display: none; }
  .strip-inner, .section-head, .quote-inner, .soon-grid, .page-hero-grid, .prose-grid, .axes-list { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr; }
  .cards .spacer { display: none; }
  .card { border-right: 0; padding: 28px 0; }
  .card:nth-child(2) { padding-left: 0; }
  .axes li { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .soon li { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .reveal-word > span { transition: none !important; transform: none !important; }
  .hero-foot .scroll-cue .arrow { animation: none; }
  .hero-grid { transform: none !important; }
}

/* ===================================================================
   PILLARS STACK : sticky scroll inspire de 0bla
   Chaque card se pin a top puis est recouverte par la suivante au scroll
   =================================================================== */
.pillars-stack {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}
.pillar-stick {
  position: sticky;
  top: 96px;
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background-color: var(--paper);
  /* Motif binaire subtil en haut (top-left), quantique subtil en bas (bottom-right) */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90'><g fill='%237A5BD8' opacity='0.07' font-family='monospace' font-size='11'><text x='10' y='20'>01</text><text x='40' y='14'>10</text><text x='75' y='26'>00</text><text x='110' y='16'>11</text><text x='150' y='24'>01</text><text x='180' y='14'>10</text><text x='25' y='52'>11</text><text x='65' y='46'>00</text><text x='100' y='56'>01</text><text x='140' y='48'>10</text><text x='175' y='58'>11</text><text x='15' y='82'>00</text><text x='55' y='78'>11</text><text x='95' y='84'>10</text><text x='130' y='80'>01</text><text x='170' y='86'>00</text></g></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90'><g fill='%23C24BD0' opacity='0.10' font-family='serif' font-size='18' font-style='italic'><text x='15' y='30'>|0⟩</text><text x='65' y='22'>|ψ⟩</text><text x='115' y='32'>|1⟩</text><text x='160' y='24'>|ψ⟩</text><text x='25' y='62'>|1⟩</text><text x='85' y='70'>|0⟩</text><text x='140' y='64'>|ψ⟩</text><text x='180' y='72'>|0⟩</text><text x='50' y='84'>|ψ⟩</text><text x='130' y='86'>|1⟩</text></g></svg>");
  background-position: top left, bottom right;
  background-repeat: no-repeat, no-repeat;
  background-size: 60% auto, 60% auto;
  border: 1.5px solid color-mix(in oklab, var(--ink) 18%, transparent);
  border-radius: 24px;
  padding: 56px 56px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(14,14,16,0.04), 0 14px 36px rgba(14,14,16,0.08);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.pillar-stick::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--q-grad-brand);
  opacity: 0.7;
  z-index: 2;
}
.pillar-stick:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(14,14,16,0.05), 0 18px 44px rgba(14,14,16,0.12);
}
[data-theme="dark"] .pillar-stick {
  background-color: var(--paper-2);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90'><g fill='%23A48BE8' opacity='0.10' font-family='monospace' font-size='11'><text x='10' y='20'>01</text><text x='40' y='14'>10</text><text x='75' y='26'>00</text><text x='110' y='16'>11</text><text x='150' y='24'>01</text><text x='180' y='14'>10</text><text x='25' y='52'>11</text><text x='65' y='46'>00</text><text x='100' y='56'>01</text><text x='140' y='48'>10</text><text x='175' y='58'>11</text><text x='15' y='82'>00</text><text x='55' y='78'>11</text><text x='95' y='84'>10</text><text x='130' y='80'>01</text><text x='170' y='86'>00</text></g></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90'><g fill='%23D97AE0' opacity='0.13' font-family='serif' font-size='18' font-style='italic'><text x='15' y='30'>|0⟩</text><text x='65' y='22'>|ψ⟩</text><text x='115' y='32'>|1⟩</text><text x='160' y='24'>|ψ⟩</text><text x='25' y='62'>|1⟩</text><text x='85' y='70'>|0⟩</text><text x='140' y='64'>|ψ⟩</text><text x='180' y='72'>|0⟩</text><text x='50' y='84'>|ψ⟩</text><text x='130' y='86'>|1⟩</text></g></svg>");
  border-color: color-mix(in oklab, var(--ink-2) 22%, transparent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 14px 36px rgba(0,0,0,0.35);
}
.pillar-stick .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  background: var(--q-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.pillar-stick h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
}
.pillar-stick p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 58ch;
  font-style: normal;
}
.pillar-stick .more {
  margin-top: 12px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pillar-stick .more::after {
  content: "→";
  transition: transform 0.25s ease;
}
.pillar-stick:hover .more::after { transform: translateX(4px); }

@media (max-width: 880px) {
  .pillars-stack { padding: 1rem 0; max-width: 100%; }
  .pillar-stick { padding: 36px 28px; min-height: 50vh; border-radius: 18px; top: 76px; margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-stick { position: relative; top: auto; min-height: auto; }
}

/* ============================================================
   QUARIC --- Patches (post-migration PHP)
   ============================================================ */

/* Honeypot anti-spam : hors flux visuel mais accessible aux bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer Legal sur 2 colonnes (9 items = 5 + 4 lignes) */
.footer-grid > div:nth-child(3) ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
@media (max-width: 720px) {
  .footer-grid > div:nth-child(3) ul {
    grid-template-columns: 1fr;
  }
}

/* Note muted sous le mail de contact */
.muted-note {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* Status messages contact */
.contact-status {
  border: 1px solid var(--ink);
  background: var(--bg-soft, #FAFAF8);
  padding: 16px 20px;
  margin: 0 0 24px 0;
}
.contact-status-err {
  border-color: #B0413E;
}
.contact-status p {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   QUARIC --- Patches manifeste
   Reprend les styles inline d origine pour la mise en page
   ============================================================ */
.manifesto-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.manifesto-pos { position: relative; }
.manifesto-hero {
  padding: 120px 0 60px;
  text-align: left;
}
.manifesto-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.manifesto-hero .epigraph {
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 620px;
}
.manifesto-section {
  padding: 56px 0 16px;
  border-top: 1px solid var(--line);
}
.manifesto-section:first-of-type {
  border-top: 0;
  padding-top: 24px;
}
.manifesto-section h2 {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 32px;
  font-family: var(--mono);
}
.manifesto-point {
  margin: 0 0 40px;
}
.manifesto-point h3 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 600;
}
.manifesto-point h3 .num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.18em;
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}
.manifesto-point p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.manifesto-preamble p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 18px;
  color: var(--ink);
}
.manifesto-final {
  padding: 80px 0 120px;
  border-top: 1px solid var(--line);
}
.manifesto-final h2 {
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.manifesto-final p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.manifesto-final .march {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 28px;
}
.manifesto-final .signoff {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.manifesto-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Theme toggle : lune en light, soleil en dark */
.theme-icon { width: 18px; height: 18px; display: block; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

/* Bouton submit du formulaire contact : aligne sur la typo institutionnelle */
.form .submit {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.form .submit:hover,
.form .submit:focus-visible {
  background: transparent;
  color: var(--ink);
}
[data-theme="dark"] .form .submit {
  background: var(--ink);
  color: var(--bg);
}
[data-theme="dark"] .form .submit:hover,
[data-theme="dark"] .form .submit:focus-visible {
  background: transparent;
  color: var(--ink);
}

/* PDF download CTA en bas de manifeste */
.manifesto-pdf {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.manifesto-pdf a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.manifesto-pdf a:hover { border-bottom-color: var(--ink); }

/* Footer Legal : separation gradient brand cyan->violet->magenta + h4 centre */
.footer-grid > div:nth-child(3) {
  position: relative;
}
.footer-grid > div:nth-child(3) h4 {
  text-align: center;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.footer-grid > div:nth-child(3) h4::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 2px;
  background: var(--q-grad-brand);
  border-radius: 1px;
}
.footer-grid > div:nth-child(3) ul li {
  text-align: center;
}

/* OVERRIDE submit bouton : utilise --paper (var qui existe) au lieu de --bg (inexistant)
   Place tout en bas pour ecraser les regles precedentes */
.form .submit {
  font-family: var(--mono) !important;
  font-size: 13px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  padding: 14px 32px !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-block;
}
.form .submit:hover,
.form .submit:focus-visible {
  background: transparent !important;
  color: var(--ink) !important;
}

/* Manifeste PDF : marges respiration, responsive, typo */
.manifesto-pdf {
  margin: 64px 0 96px !important;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.manifesto-pdf a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 24px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.manifesto-pdf a:hover,
.manifesto-pdf a:focus-visible {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--ink) 4%, transparent);
}
@media (max-width: 720px) {
  .manifesto-pdf { margin: 48px 0 72px !important; }
  .manifesto-pdf a { font-size: 11px; padding: 10px 18px; }
}

/* OVERRIDE Footer : separateur degrade brand sous CHAQUE titre de colonne (4 colonnes) */
.footer-grid > div h4 {
  text-align: center !important;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.footer-grid > div h4::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 2px;
  background: var(--q-grad-brand);
  border-radius: 1px;
}
.footer-grid > div ul li {
  text-align: center !important;
}
.footer-grid > div ul.footer-eco li {
  text-align: center !important;
}

/* Mobile menu close button (label toggling the m-menu checkbox) */
.m-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.m-close:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }

/* Mobile menu : assure que le label est cliquable au-dessus de tout */
@media (max-width: 880px) {
  .nav-brand-mobile {
    pointer-events: auto !important;
    position: relative;
    z-index: 60;
    padding: 6px 8px;
  }
  .nav-brand-mobile img { pointer-events: none; }
  .m-overlay { z-index: 50; }
  .m-close { z-index: 70; }
}

/* Lien rel=me discret dans humans context */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Footer social icons */
.footer-social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0;
  margin: 16px 0 0;
}
.footer-social li { text-align: center; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

/* Footer-bottom social icon (LinkedIn Quaric -> 0bla) */
.footer-bottom { align-items: center; }
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-left: auto;
}
.footer-social-icon:hover,
.footer-social-icon:focus-visible {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}
@media (max-width: 880px) {
  .footer-social-icon { margin-left: 0; }
}

/* On supprime l ancienne classe footer-social inutilisee */
.footer-social { display: none !important; }

/* OVERRIDE submit + PDF dans la charte graphique mono+arrow */
.form .submit {
  font-family: var(--mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  transition: gap 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.form .submit::after {
  content: "→";
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 0.25s ease;
}
.form .submit:hover,
.form .submit:focus-visible {
  background: transparent !important;
  color: var(--ink) !important;
  border-bottom-color: transparent !important;
}
.form .submit:hover::after,
.form .submit:focus-visible::after {
  transform: translateX(6px);
}
.form .submit::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--q-grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.1,1);
}
.form .submit:hover::before,
.form .submit:focus-visible::before {
  transform: scaleX(1);
}

/* Manifeste PDF link : meme charte */
.manifesto-pdf {
  margin: 64px 0 96px !important;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.manifesto-pdf a {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  font-family: var(--mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ink) !important;
  padding: 12px 0 !important;
  text-decoration: none !important;
  position: relative;
  transition: gap 0.25s ease, border-color 0.25s ease;
}
.manifesto-pdf a::after {
  content: "↓";
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 0.25s ease;
}
.manifesto-pdf a:hover::after,
.manifesto-pdf a:focus-visible::after {
  transform: translateY(4px);
}
.manifesto-pdf a:hover,
.manifesto-pdf a:focus-visible {
  border-bottom-color: transparent !important;
}
.manifesto-pdf a::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--q-grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.1,1);
}
.manifesto-pdf a:hover::before,
.manifesto-pdf a:focus-visible::before {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .manifesto-pdf { margin: 48px 0 72px !important; }
  .form .submit, .manifesto-pdf a { font-size: 11px !important; letter-spacing: 0.18em !important; }
}

/* Footer-bottom : aeration finale */
.footer-bottom {
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}
.footer-bottom > span:nth-child(2) {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.footer-bottom > .footer-social-icon { margin-left: 0 !important; }
@media (max-width: 880px) {
  .footer-bottom { gap: 16px !important; flex-direction: column !important; align-items: center !important; }
  .footer-bottom > span:nth-child(2) { margin: 0; }
}

/* OVERRIDE m-state : ne pas sortir du viewport (bug iOS Safari)
   On garde linput visuellement invisible mais dans le flux pour que le label fonctionne */
.m-state {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  z-index: -1;
}

/* Menu overlay : assure quil ne bloque pas le clic du label en mode ferme */
.m-overlay { pointer-events: none; }
.m-state:checked ~ .m-overlay { pointer-events: auto; }

/* OVERRIDE responsive : padding aere sur mobile pour toutes sections.
   IMPORTANT : ne JAMAIS ecrire `padding: V H` sur un element qui porte aussi .wrap
   car ca ecrase le padding-left/right: var(--gutter) du wrap (meme element, meme cascade).
   On utilise padding-top/bottom uniquement. */
@media (max-width: 720px) {
  :root { --gutter: clamp(24px, 6vw, 32px); }
  .strip-inner, .prose-grid {
    padding-top: clamp(40px, 8vh, 72px);
    padding-bottom: clamp(40px, 8vh, 72px);
    gap: 16px;
  }
  .strip-label, .label { padding-bottom: 8px; }
  .hero-inner {
    padding-top: 80px;
    padding-bottom: 48px;
  }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .hero-tagline { font-size: 16px; }
  .page-hero-grid {
    padding-top: 80px;
    padding-bottom: 32px;
  }
  .page-hero h1 { font-size: clamp(32px, 7vw, 48px); }
}

/* Mobile strip aere les paragraphes */
@media (max-width: 880px) {
  .strip-inner > div p { font-size: 18px; line-height: 1.6; }
}

/* Footer-bottom proper alignment */
.footer-bottom {
  display: flex !important;
  justify-content: space-between;
  align-items: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}
.footer-bottom > span:first-child { margin-right: auto; }
.footer-bottom > span:nth-child(2) { margin: 0 auto; text-align: center; }
.footer-bottom > .footer-social-icon { margin-left: auto !important; }

@media (max-width: 720px) {
  .footer-bottom { flex-direction: column !important; align-items: center !important; }
  .footer-bottom > span:first-child,
  .footer-bottom > span:nth-child(2),
  .footer-bottom > .footer-social-icon { margin: 0 !important; }
}

/* Engagement CTA links : charte mono+arrow+gradient brand */
.eng-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-top: 16px;
}
.eng-cta-links a {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  position: relative;
  transition: gap 0.25s ease, border-color 0.25s ease;
}
.eng-cta-links a::after {
  content: "→";
  font-family: var(--mono);
  font-size: 13px;
  transition: transform 0.25s ease;
}
.eng-cta-links a:hover,
.eng-cta-links a:focus-visible {
  border-bottom-color: transparent;
}
.eng-cta-links a:hover::after,
.eng-cta-links a:focus-visible::after {
  transform: translateX(6px);
}
.eng-cta-links a::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--q-grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.1,1);
}
.eng-cta-links a:hover::before,
.eng-cta-links a:focus-visible::before {
  transform: scaleX(1);
}
@media (max-width: 720px) {
  .eng-cta-links { gap: 20px; flex-direction: column; align-items: flex-start; }
}

/* Liens dans le corps des pages prose (body) : sobre + souligne ink + hover gradient brand */
.prose .body a,
.contact dl a,
.contact dd a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
  position: relative;
}
.prose .body a:hover,
.prose .body a:focus-visible,
.contact dl a:hover,
.contact dd a:hover,
.contact dl a:focus-visible,
.contact dd a:focus-visible {
  border-bottom-color: transparent;
}
.prose .body a::before,
.contact dl a::before,
.contact dd a::before {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--q-grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.1,1);
}
.prose .body a:hover::before,
.prose .body a:focus-visible::before,
.contact dl a:hover::before,
.contact dd a:hover::before,
.contact dl a:focus-visible::before,
.contact dd a:focus-visible::before {
  transform: scaleX(1);
}

/* .link generique (404 cta retour, etc) : style mono+arrow comme submit/PDF */
a.link {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  position: relative;
  transition: gap 0.25s ease, border-color 0.25s ease;
}
a.link::after {
  content: "→";
  font-family: var(--mono);
  font-size: 13px;
  transition: transform 0.25s ease;
}
a.link:hover, a.link:focus-visible { border-bottom-color: transparent; }
a.link:hover::after, a.link:focus-visible::after { transform: translateX(6px); }
a.link::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--q-grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.1,1);
}
a.link:hover::before, a.link:focus-visible::before { transform: scaleX(1); }
