/* ============================================
   CODE_CULTURE — Design System v1.0
   // the machine reads the code. l'humain lit entre les lignes.
   ============================================ */

/* --- CSS Variables — Brand Tokens --- */
:root {
  /* Syntactic colors — 3 pillars */
  --violet: #C678DD;       /* Systémique */
  --bleu: #61AFEF;         /* Cognitif */
  --vert: #98C379;         /* Interculturel */

  /* Secondary */
  --rouge: #F85149;
  --ambre: #D19A66;
  --violet-fonce: #8B3FAF;

  /* Neutrals — Terminal */
  --noir: #0D1117;
  --noir-light: #161B22;
  --noir-lighter: #1C2128;
  --gris-fonce: #58616C;
  --gris-clair: #8B949E;
  --blanc: #F0F6FC;
  --fond-clair: #F6F8FA;
  --fond-clair-alt: #EEF1F5;

  /* Functional */
  --diagnostic-moins: #F85149;
  --diagnostic-plus: #98C379;

  /* Typography */
  --font-code: 'JetBrains Mono', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Nav height */
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--noir);
  background: var(--fond-clair);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection {
  background: var(--violet);
  color: var(--blanc);
}

/* --- Typography System --- */

/* Level 1 — Code (titles, data, accroches) */
.t-code, h1, h2, h3 {
  font-family: var(--font-code);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* Level 2 — Comment (subtitles, annotations) */
.t-comment {
  font-family: var(--font-code);
  font-style: italic;
  font-weight: 300;
  color: var(--gris-clair);
  letter-spacing: 0;
}

.t-comment::before {
  content: '// ';
  color: var(--gris-clair);
  font-style: italic;
}

/* Level 3 — Body (paragraphs, documents) */
.t-body, p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
}

p + p { margin-top: 1.2em; }

/* --- Section label (> section_name) --- */
.section-label {
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label .chevron {
  color: var(--violet);
  font-weight: 700;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* --- Sections --- */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section--dark {
  background: var(--noir);
  color: var(--blanc);
}

.section--dark .section-label .chevron { color: var(--vert); }
.section--dark .t-comment { color: var(--gris-clair); }
.section--dark p { color: var(--gris-clair); }
.section--dark h2, .section--dark h3 { color: var(--blanc); }

.section--alt {
  background: var(--fond-clair-alt);
}

.section--terminal {
  background: var(--noir);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.section--terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(198,120,221,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 50%, rgba(97,175,239,0.05) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav--scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(240,246,252,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  font-family: var(--font-code);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blanc);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav__logo .chevron {
  color: var(--vert);
  font-weight: 700;
}

.nav__logo .underscore {
  color: var(--violet);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--gris-clair);
  transition: color 0.25s;
  position: relative;
}

.nav__link:hover { color: var(--blanc); }
.nav__link--active { color: var(--blanc); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--violet);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--noir);
  background: var(--vert);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  transition: all 0.25s var(--ease-out);
  font-weight: 500;
}

.nav__cta:hover {
  background: var(--blanc);
  transform: translateY(-1px);
}

/* Mobile menu */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanc);
  transition: all 0.3s var(--ease-out);
  border-radius: 1px;
}

.nav__burger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger--open span:nth-child(2) {
  opacity: 0;
}
.nav__burger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-lg) var(--space-md);
  z-index: 999;
  overflow: hidden;
}

.nav__mobile a { position: relative; z-index: 1; }

.nav__mobile--open {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s var(--ease-out);
}

.nav__mobile a {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--gris-clair);
  transition: color 0.2s;
}

.nav__mobile a:hover { color: var(--blanc); }
.nav__mobile a.nav__link--active { color: var(--vert); font-weight: 700; }
.nav__mobile a.nav__link--active::before { content: '> '; color: var(--vert); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--noir);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 800px 600px at 15% 40%, rgba(198,120,221,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 85% 60%, rgba(97,175,239,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 50% 80%, rgba(152,195,121,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero__tagline {
  font-family: var(--font-code);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero__tagline .highlight {
  position: relative;
  display: inline;
}

.hero__tagline .highlight--violet { color: var(--violet); }
.hero__tagline .highlight--bleu { color: var(--bleu); }
.hero__tagline .highlight--vert { color: var(--vert); }

.hero__sub {
  font-family: var(--font-code);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--gris-clair);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero__sub::before {
  content: '// ';
  color: var(--gris-clair);
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-code);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--vert);
  color: var(--noir);
}

.btn--primary:hover {
  background: var(--blanc);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(152,195,121,0.2);
}

.btn--ghost {
  border: 1px solid rgba(240,246,252,0.15);
  color: var(--blanc);
}

.btn--ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--noir);
  color: var(--blanc);
}

.btn--dark:hover {
  background: var(--noir-light);
  transform: translateY(-2px);
}

/* Blinking cursor on buttons */
.btn .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  animation: blink 1s step-end infinite;
  margin-left: 0.3rem;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  padding: var(--space-md);
  border: 1px solid rgba(240,246,252,0.06);
  border-radius: 8px;
  background: rgba(240,246,252,0.02);
  transition: all 0.4s var(--ease-out);
}

.stat-card:hover {
  border-color: rgba(240,246,252,0.12);
  background: rgba(240,246,252,0.04);
  transform: translateY(-4px);
}

.stat-card__number {
  font-family: var(--font-code);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-card__number--rouge { color: var(--rouge); }
.stat-card__number--ambre { color: var(--ambre); }
.stat-card__number--violet { color: var(--violet); }

.stat-card__label {
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--gris-clair);
  line-height: 1.5;
}

/* --- Pillar Cards --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.pillar {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-radius: 8px;
  border: 1px solid;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.pillar--violet {
  border-color: rgba(198,120,221,0.15);
  background: rgba(198,120,221,0.03);
}
.pillar--violet::before { background: var(--violet); }
.pillar--violet:hover { border-color: rgba(198,120,221,0.3); background: rgba(198,120,221,0.06); }

.pillar--bleu {
  border-color: rgba(97,175,239,0.15);
  background: rgba(97,175,239,0.03);
}
.pillar--bleu::before { background: var(--bleu); }
.pillar--bleu:hover { border-color: rgba(97,175,239,0.3); background: rgba(97,175,239,0.06); }

.pillar--vert {
  border-color: rgba(152,195,121,0.15);
  background: rgba(152,195,121,0.03);
}
.pillar--vert::before { background: var(--vert); }
.pillar--vert:hover { border-color: rgba(152,195,121,0.3); background: rgba(152,195,121,0.06); }

.pillar:hover { transform: translateY(-6px); }

.pillar__import {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--gris-clair);
  margin-bottom: var(--space-sm);
}

.pillar__import .kw { color: var(--violet); }
.pillar__import .str { color: var(--vert); }
.pillar__import .str--bleu { color: var(--bleu); }
.pillar__import .str--violet { color: var(--violet); }

.pillar__title {
  font-family: var(--font-code);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.pillar__title--violet { color: var(--violet); }
.pillar__title--bleu { color: var(--bleu); }
.pillar__title--vert { color: var(--vert); }

/* --- Offer Cards --- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.offer-card {
  border: 1px solid rgba(240,246,252,0.08);
  border-radius: 8px;
  padding: var(--space-md);
  background: var(--noir-light);
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.offer-card:hover {
  border-color: rgba(240,246,252,0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.offer-card__cmd {
  font-family: var(--font-code);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vert);
  margin-bottom: 0.25rem;
}

.offer-card__name {
  font-family: var(--font-code);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gris-clair);
  margin-bottom: var(--space-sm);
}

.offer-card__name::before {
  content: '// ';
}

.offer-card__duration {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--ambre);
  margin-bottom: var(--space-md);
  padding: 0.3rem 0.8rem;
  background: rgba(209,154,102,0.08);
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.offer-card__list {
  list-style: none;
  flex-grow: 1;
}

.offer-card__list li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--gris-clair);
  padding: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.offer-card__list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--vert);
  font-family: var(--font-code);
  font-weight: 600;
}

/* --- Team Cards --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.team-card {
  border: 1px solid rgba(240,246,252,0.08);
  border-radius: 8px;
  padding: var(--space-md);
  background: var(--noir-light);
  transition: all 0.4s var(--ease-out);
}

.team-card:hover {
  border-color: rgba(240,246,252,0.15);
  transform: translateY(-4px);
}

.team-card__name {
  font-family: var(--font-code);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blanc);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-family: var(--font-code);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--violet);
  margin-bottom: var(--space-sm);
}

.team-card__role::before { content: '// '; }

.team-card__detail {
  font-size: 0.9rem;
  color: var(--gris-clair);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.team-card__detail strong {
  font-weight: 500;
  color: var(--blanc);
  font-family: var(--font-code);
  font-size: 0.8rem;
}

.team-card__quote {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(240,246,252,0.06);
  font-family: var(--font-code);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gris-clair);
}

.team-card__quote::before {
  content: '// conviction : ';
  color: var(--gris-clair);
}

/* --- Diagnostic Visual (+/-) --- */
.diagnostic {
  font-family: var(--font-code);
  font-size: 0.95rem;
  line-height: 1.8;
}

.diagnostic__minus {
  color: var(--diagnostic-moins);
  padding: 0.6rem 1rem;
  background: rgba(248,81,73,0.06);
  border-left: 3px solid var(--diagnostic-moins);
  margin-bottom: 0.5rem;
  border-radius: 0 4px 4px 0;
}

.diagnostic__minus::before { content: '− '; font-weight: 700; }

.diagnostic__plus {
  color: var(--diagnostic-plus);
  padding: 0.6rem 1rem;
  background: rgba(152,195,121,0.06);
  border-left: 3px solid var(--diagnostic-plus);
  margin-bottom: 0.5rem;
  border-radius: 0 4px 4px 0;
}

.diagnostic__plus::before { content: '+ '; font-weight: 700; }

/* --- HEART Markers --- */
.heart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(240,246,252,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.heart-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: var(--noir-light);
  transition: all 0.3s var(--ease-out);
}

.heart-row:hover {
  background: var(--noir-lighter);
}

.heart-row__letter {
  font-family: var(--font-code);
  font-size: 1.8rem;
  font-weight: 700;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(240,246,252,0.06);
}

.heart-row__letter span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gris-clair);
  margin-top: 0.25rem;
}

.heart-row__content {
  padding: var(--space-md);
  font-size: 0.92rem;
  color: var(--gris-clair);
  line-height: 1.7;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid rgba(13,17,23,0.08);
}

.section--dark .faq-item {
  border-bottom-color: rgba(240,246,252,0.06);
}

.faq-item__question {
  font-family: var(--font-code);
  font-size: 1rem;
  font-weight: 500;
  padding: 1.5rem 0;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-item__question:hover { color: var(--violet); }

.section--dark .faq-item__question { color: var(--blanc); }
.section--dark .faq-item__question:hover { color: var(--violet); }

.faq-item__icon {
  font-family: var(--font-code);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s;
  opacity: 0;
}

.faq-item--open .faq-item__answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item__answer p {
  padding-bottom: 1.5rem;
  color: var(--gris-fonce);
  font-size: 0.95rem;
}

.section--dark .faq-item__answer p {
  color: var(--gris-clair);
}

/* --- Contexts Grid --- */
.contexts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.context-tag {
  font-family: var(--font-code);
  font-size: 0.88rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(240,246,252,0.08);
  border-radius: 6px;
  color: var(--gris-clair);
  background: var(--noir-light);
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.context-tag::before {
  content: '>';
  color: var(--vert);
  font-weight: 700;
}

.context-tag:hover {
  border-color: var(--vert);
  color: var(--blanc);
  transform: translateX(4px);
}

/* --- Footer --- */
.footer {
  background: var(--noir);
  color: var(--gris-clair);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  max-width: 300px;
  display: flex;
  flex-direction: column;
}

.footer__logo {
  font-family: var(--font-code);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blanc);
  margin-bottom: var(--space-sm);
}

.footer__logo .chevron { color: var(--vert); }
.footer__logo .underscore { color: var(--violet); }

.footer__tagline {
  font-family: var(--font-code);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gris-clair);
}

.footer__tagline::before { content: '// '; }

.footer__col-title {
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blanc);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer__col a {
  display: block;
  font-size: 0.88rem;
  color: var(--gris-clair);
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--blanc); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(240,246,252,0.06);
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--gris-fonce);
}

.footer__baseline {
  font-family: var(--font-code);
  font-style: italic;
  font-size: 0.72rem;
  color: var(--gris-fonce);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  text-align: right;
}

/* --- Animations --- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--left.reveal--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.stagger--visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* --- Utility classes --- */
.text-violet { color: var(--violet); }
.text-bleu { color: var(--bleu); }
.text-vert { color: var(--vert); }
.text-rouge { color: var(--rouge); }
.text-ambre { color: var(--ambre); }
.text-gris { color: var(--gris-clair); }
.text-blanc { color: var(--blanc); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.text-center { text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.grid-2--reverse .grid-2__text { order: 1; }
.grid-2--reverse .grid-2__visual { order: 0; }

/* --- Code Block Decoration --- */
.code-block {
  background: var(--noir-light);
  border: 1px solid rgba(240,246,252,0.06);
  border-radius: 8px;
  padding: var(--space-md);
  font-family: var(--font-code);
  font-size: 0.88rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-block .kw { color: var(--violet); }
.code-block .fn { color: var(--bleu); }
.code-block .str { color: var(--vert); }
.code-block .comment { color: var(--gris-clair); font-style: italic; }
.code-block .num { color: var(--ambre); }
.code-block .var { color: var(--rouge); }

/* --- Page Header (inner pages) --- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-lg);
  background: var(--noir);
  color: var(--blanc);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 10% 60%, rgba(198,120,221,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 90% 40%, rgba(97,175,239,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

/* --- Encart / Callout --- */
.callout {
  border-left: 3px solid var(--violet);
  padding: var(--space-md);
  background: rgba(198,120,221,0.04);
  border-radius: 0 8px 8px 0;
  margin: var(--space-md) 0;
}

.section--dark .callout {
  background: rgba(198,120,221,0.06);
}

.callout p {
  font-family: var(--font-code);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Event Card (PDJ) --- */
.event-card {
  border: 1px solid rgba(13,17,23,0.1);
  border-radius: 8px;
  padding: var(--space-md);
  background: white;
  transition: all 0.3s var(--ease-out);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* --- Case Study --- */
.case-study {
  padding: var(--space-lg);
  border: 1px solid rgba(240,246,252,0.08);
  border-radius: 8px;
  background: var(--noir-light);
}

.case-study__tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--ambre);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.case-study__title {
  font-family: var(--font-code);
  font-size: 1.3rem;
  color: var(--blanc);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.case-study__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(240,246,252,0.06);
}

.case-study__metric {
  text-align: center;
}

.case-study__metric-value {
  font-family: var(--font-code);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vert);
}

.case-study__metric-label {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--gris-clair);
  margin-top: 0.25rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pillars,
  .offers-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .grid-2--reverse .grid-2__text { order: 0; }
  .grid-2--reverse .grid-2__visual { order: 1; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .heart-row {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 3rem;
  }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero { min-height: auto; padding: calc(var(--nav-height) + 3rem) 0 4rem; }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__brand > div:last-child {
    margin-top: var(--space-md) !important;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .heart-row {
    grid-template-columns: 1fr;
  }

  .heart-row__letter {
    border-right: none;
    border-bottom: 1px solid rgba(240,246,252,0.06);
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .contexts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

.footer-br { display: none; }
@media (max-width: 768px) {
  .footer-br { display: block; }
  .footer__baseline { text-align: right; }
}
