/* ===================================================================
 * CitizOS · system.css · langage graphique unifié
 * Référents · Apple × Linear × Palantir × Nothing
 * Hiérarchie d'attention · verticales dominantes · OS en background éditorial
 * =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Fraunces:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

:root {
  /* Palette doctrine */
  --ink:          #0a0d12;
  --ink-soft:     #2a3138;
  --ink-mute:     #6c757d;
  --ink-veil:     #9aa0a6;
  --paper:        #f5f3ed;
  --paper-2:      #fafbfc;
  --paper-card:   #ffffff;
  --line:         #e5e3df;
  --line-soft:    #ecedef;
  --line-strong:  #d5d3cf;
  --gold:         #c79a4d;
  --gold-soft:    rgba(199,154,77,0.10);
  --pulse:        #2a8a8c;

  /* Identités par VERTICALE (publiques · dominantes) */
  --v-trading:    #0a0d12;
  --v-trading-2:  #c79a4d;
  --v-beauty:     #b86880;
  --v-legal:      #6B3F5F;
  --v-talent:     #1B3D5C;
  --v-care:       #5b7b9a;
  --v-media:      #C7541F;
  --v-commerce:   #1F4D3F;

  /* Identités par COUCHE OS (techniques · background) */
  --os-studio:    #C7541F;
  --os-reach:     #a23b2d;
  --os-flow:      #1F4D3F;
  --os-lens:      #1B3D5C;
  --os-index:     #2a8a8c;
  --os-signal:    #c79a4d;

  /* Typo */
  --font-h:       'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-quote:   'Fraunces', Georgia, serif;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:    cubic-bezier(0.165, 0.84, 0.44, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────────────────────────────── */
/*  Layout                                                              */
/* ─────────────────────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px)  { .container { padding: 0 48px; } }
@media (min-width: 1200px) { .container { padding: 0 80px; } }

section { padding: 100px 0; }
@media (min-width: 1024px) { section { padding: 160px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.75rem, 1.8vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.05rem, 0.4vw + 0.9rem, 1.25rem); font-weight: 500; }

.serif-em, h1 em, h2 em, h3 em {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 500;
}

.lead {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 60ch;
}

/* ─────────────────────────────────────────────────────────────────── */
/*  Nav                                                                 */
/* ─────────────────────────────────────────────────────────────────── */
.cz-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(245,243,237,0.82);
  border-bottom: 1px solid rgba(229,227,223,0.6);
}
.cz-nav .inner {
  max-width: 1240px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
@media (min-width: 768px)  { .cz-nav .inner { padding: 18px 48px; } }
@media (min-width: 1200px) { .cz-nav .inner { padding: 20px 80px; } }

.cz-logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
}
.cz-logo .glyph {
  width: 15px; height: 15px;
  border-radius: 3px;
  background: var(--ink);
  position: relative;
}
.cz-logo .glyph::after {
  content: '';
  position: absolute; inset: 3px;
  background: var(--paper);
  border-radius: 1px;
}

.cz-nav .links { display: none; gap: 28px; }
@media (min-width: 768px) { .cz-nav .links { display: flex; } }
.cz-nav .links a {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.cz-nav .links a:hover { color: var(--ink); }
.cz-nav .links a.active { color: var(--ink); font-weight: 600; }

.cz-nav .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-veil);
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────────────────────────── */
/*  Hero                                                                */
/* ─────────────────────────────────────────────────────────────────── */
.cz-hero {
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 80px 0 60px;
  position: relative;
}
.cz-hero h1 { margin-bottom: 28px; max-width: 16ch; }
.cz-hero .lead { margin-bottom: 32px; }

.cz-hero-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 22px;
}
.cz-hero-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
}

/* ─────────────────────────────────────────────────────────────────── */
/*  Section verticales (NIVEAU 2 · dominant)                            */
/* ─────────────────────────────────────────────────────────────────── */
.cz-section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.cz-section-header h2 { max-width: 22ch; }
.cz-section-header .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-veil);
  letter-spacing: 0.06em;
  text-align: right;
}

.cz-verticales {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px)  { .cz-verticales { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cz-verticales { grid-template-columns: 1fr 1fr 1fr; } }

.cz-vertical {
  display: block;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px 24px;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
  color: inherit;
}
.cz-vertical:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 32px rgba(10,13,18,0.04);
}
.cz-vertical::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--vert-color, var(--ink));
  opacity: 0.85;
}

.cz-vertical.trading  { --vert-color: var(--v-trading); }
.cz-vertical.beauty   { --vert-color: var(--v-beauty); }
.cz-vertical.legal    { --vert-color: var(--v-legal); }
.cz-vertical.talent   { --vert-color: var(--v-talent); }
.cz-vertical.care     { --vert-color: var(--v-care); }
.cz-vertical.media    { --vert-color: var(--v-media); }
.cz-vertical.commerce { --vert-color: var(--v-commerce); }

.cz-vertical .top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cz-vertical .v-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert-color);
  font-weight: 600;
}
.cz-vertical h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.cz-vertical .role {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.45;
  margin-bottom: 22px;
  max-width: 32ch;
}

.cz-vertical .signals {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  border-top: 1px dashed var(--line-soft);
  padding-top: 12px;
}
.cz-vertical .signals span b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

.cz-vertical .arr {
  position: absolute;
  bottom: 22px; right: 24px;
  font-size: 16px;
  color: var(--ink-veil);
  transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}
.cz-vertical:hover .arr { transform: translateX(3px); color: var(--ink); }

/* Statuts honnêtes */
.cz-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.cz-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--dot, var(--ink-veil));
}
.cz-status.live      { background: rgba(31,77,63,0.08); color: var(--v-commerce); --dot: var(--v-commerce); }
.cz-status.pilote    { background: rgba(199,154,77,0.12); color: #8b6a2a; --dot: var(--gold); }
.cz-status.cadrage   { background: rgba(154,154,154,0.10); color: var(--ink-soft); --dot: var(--ink-mute); }

/* ─────────────────────────────────────────────────────────────────── */
/*  Section OS (NIVEAU 1 · background éditorial)                        */
/* ─────────────────────────────────────────────────────────────────── */
.cz-os-section {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
}
@media (min-width: 1024px) { .cz-os-section { padding: 120px 0; } }
.cz-os-section .eyebrow { color: var(--gold); }
.cz-os-section h2 { color: var(--paper); max-width: 24ch; }
.cz-os-section .lead { color: rgba(245,243,237,0.72); max-width: 60ch; }

.cz-os-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(245,243,237,0.18);
}
@media (min-width: 720px) { .cz-os-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cz-os-grid { grid-template-columns: repeat(3, 1fr); } }

.cz-os {
  padding: 28px 22px 24px;
  border-right: 1px solid rgba(245,243,237,0.18);
  border-bottom: 1px solid rgba(245,243,237,0.18);
  position: relative;
}
.cz-os::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 1px;
  background: var(--os-color, var(--gold));
}
.cz-os.studio  { --os-color: var(--os-studio); }
.cz-os.reach   { --os-color: var(--os-reach); }
.cz-os.flow    { --os-color: var(--os-flow); }
.cz-os.lens    { --os-color: var(--os-lens); }
.cz-os.index   { --os-color: var(--os-index); }
.cz-os.signal  { --os-color: var(--os-signal); }

.cz-os .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--os-color);
  font-weight: 600;
  margin-bottom: 8px;
}
.cz-os h4 {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 10px;
}
.cz-os p {
  font-size: 13.5px;
  color: rgba(245,243,237,0.66);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────── */
/*  Section doctrine                                                    */
/* ─────────────────────────────────────────────────────────────────── */
.cz-doctrine {
  padding: 100px 0;
}
.cz-doctrine .doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 48px;
}
@media (min-width: 768px) { .cz-doctrine .doc-grid { grid-template-columns: 1fr 1fr 1fr; } }

.cz-doctrine .doc-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.cz-doctrine .doc-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.cz-doctrine .doc-item h4 {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.cz-doctrine .doc-item p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────── */
/*  Section statut · snapshot officiel                                  */
/* ─────────────────────────────────────────────────────────────────── */
.cz-status-block {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 48px 0;
}
.cz-status-block .h {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 18px;
}
.cz-status-block .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) { .cz-status-block .grid { grid-template-columns: 1fr 1fr; } }
.cz-status-block .item .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-veil);
  margin-bottom: 4px;
}
.cz-status-block .item .val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────── */
/*  Footer                                                              */
/* ─────────────────────────────────────────────────────────────────── */
.cz-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  font-size: 12.5px;
  color: var(--ink-veil);
}
.cz-footer .inner {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cz-footer a { color: var(--ink-soft); }
.cz-footer a:hover { color: var(--ink); }
.cz-footer .mention {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-mute);
}

/* ─────────────────────────────────────────────────────────────────── */
/*  Anim subtile pulsation gold                                         */
/* ─────────────────────────────────────────────────────────────────── */
@keyframes pulse-gold {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-gold 2.5s var(--ease-soft) infinite;
}
