/* ═══════════════════════════════════════════════════════════════
   MIR — MOUVEMENT INTERNATIONAL DU ROT
   Institutional Rebellion. Diplomatic Punk. Gastric Liberation.
   ═══════════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg-deep: #06080f;
  --bg-dark: #0a0e1a;
  --bg-card: #0f1424;
  --bg-card-hover: #141a2e;
  --bg-elevated: #1a2038;

  --gold: #f0a500;
  --gold-light: #ffd700;
  --gold-dim: #a07000;
  --amber: #ff9f00;
  --red: #c0392b;
  --red-light: #e74c3c;
  --green: #2ecc71;
  --green-dim: #1a7a42;
  --blue: #3498db;

  --text-primary: #e8e4dc;
  --text-secondary: #9a9484;
  --text-muted: #5a564e;
  --text-gold: var(--gold);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

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

  --max-width: 1100px;
  --max-width-narrow: 800px;

  --radius: 4px;
  --radius-lg: 8px;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Screen-reader-only — hides visually but keeps in accessibility tree */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

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

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-md);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav--scrolled {
  background: rgba(6, 8, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(240, 165, 0, 0.1);
}

.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-decoration: none;
}

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

.nav__links a {
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

.nav__lang {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.nav__lang:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
}

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

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(240, 165, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(192, 57, 43, 0.04) 0%, transparent 50%),
    var(--bg-deep);
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(240, 165, 0, 0.05);
  border-radius: 50%;
  pointer-events: none;
  animation: hero-ring 20s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(240, 165, 0, 0.03);
  border-radius: 50%;
  pointer-events: none;
  animation: hero-ring 30s linear infinite reverse;
}

@keyframes hero-ring {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(240, 165, 0, 0.15);
  padding: 0.3rem 1rem;
  border-radius: 2px;
  animation: fadeInDown 1s ease 0.2s both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 0.85;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  animation: fadeInUp 1s ease 0.4s both;
  text-shadow:
    0 0 60px rgba(240, 165, 0, 0.2),
    0 0 120px rgba(240, 165, 0, 0.05);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  animation: fadeInUp 1s ease 0.6s both;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s ease 0.8s both;
}

.hero__acronyms {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease 1s both;
}

.hero__acronyms p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.hero__acronyms strong {
  color: var(--gold);
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1.2s both;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeIn 1s ease 2s both;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn--primary:hover {
  background: var(--gold-light);
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240, 165, 0, 0.25);
}

.btn--secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn--secondary:hover {
  background: rgba(240, 165, 0, 0.1);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn--danger {
  background: var(--red);
  color: white;
}

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

.btn--ghost:hover {
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS (SHARED)
   ═══════════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-dark);
}

.section__header {
  margin-bottom: var(--space-lg);
  position: relative;
}

.section__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about__intro {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.about__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.about__block {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition);
}

.about__block:hover {
  border-color: rgba(240, 165, 0, 0.15);
}

.about__block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.about__block p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about__values-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.about__values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.about__value-card {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
  flex: 0 1 280px;
}

.about__value-card:hover {
  border-color: rgba(240, 165, 0, 0.2);
  transform: translateY(-3px);
}

.about__value-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.about__value-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.about__value-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about__stat {
  text-align: center;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.about__stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════
   CHARTER
   ═══════════════════════════════════════════════════════════════ */
.charter.section {
  background:
    linear-gradient(to bottom, var(--bg-dark), var(--bg-deep));
}

.charter .charter__title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.charter__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.charter__intro {
  color: var(--text-secondary);
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.charter__document {
  background: var(--bg-card);
  border: 1px solid rgba(240, 165, 0, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}

.charter__document::before {
  content: '§';
  position: absolute;
  top: -20px;
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(240, 165, 0, 0.06);
  pointer-events: none;
}

.charter__preamble-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.charter__preamble p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-align: justify;
  padding-left: var(--space-md);
  border-left: 2px solid rgba(240, 165, 0, 0.1);
}

.charter__preamble p strong {
  color: var(--gold);
  font-size: 1.3em;
}

.charter__preamble-conclusion {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin: var(--space-md) 0;
  text-align: justify;
  font-weight: 500;
}

.charter__articles {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.charter__articles.expanded {
  max-height: 10000px;
}

.charter__articles::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
  transition: opacity var(--transition);
}

.charter__articles.expanded::after {
  opacity: 0;
}

.charter__article {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.charter__article:last-child {
  border-bottom: none;
}

.charter__article-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.charter__article-text {
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
}

.charter__toggle {
  display: block;
  margin: var(--space-md) auto 0;
}

/* ═══════════════════════════════════════════════════════════════
   VITALITY
   ═══════════════════════════════════════════════════════════════ */
.vitality__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-dim);
  margin-bottom: var(--space-sm);
}

.vitality__intro {
  color: var(--text-secondary);
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.vitality__section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

.vitality__objections {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.vitality__objection {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border-left: 3px solid var(--red);
}

.vitality__objection-q {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--red-light);
  margin-bottom: var(--space-sm);
}

.vitality__objection-a {
  color: var(--text-secondary);
  line-height: 1.8;
}

.vitality__reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: var(--space-md);
}

.vitality__reason {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: var(--space-sm);
  transition: all var(--transition);
}

.vitality__reason:hover {
  border-color: rgba(240, 165, 0, 0.15);
}

.vitality__reason-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.vitality__reason-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-dim);
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.vitality__reason h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.vitality__reason p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.vitality__footnote {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SCIENCE
   ═══════════════════════════════════════════════════════════════ */
.science__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.science__intro {
  color: var(--text-secondary);
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.science__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-md);
}

.science__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
}

.science__card:hover {
  border-color: rgba(240, 165, 0, 0.15);
  transform: translateY(-3px);
}

.science__card-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.science__card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.science__card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   LEARN
   ═══════════════════════════════════════════════════════════════ */
.learn__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.learn__intro {
  color: var(--text-secondary);
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.learn__levels {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.learn__level {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.learn__level-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
  /* Reset native <button> styles so the existing visual is preserved */
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.learn__level-header:focus-visible {
  outline: 2px solid var(--gold, #f0a500);
  outline-offset: -2px;
}

.learn__level-header:hover {
  background: rgba(240, 165, 0, 0.03);
}

.learn__level-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.learn__level-badge--intermediate {
  background: var(--amber);
}

.learn__level-badge--advanced {
  background: var(--red);
  color: white;
}

.learn__level-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  flex-grow: 1;
}

.learn__level-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.learn__level.open .learn__level-arrow {
  transform: rotate(180deg);
}

.learn__level-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.learn__level.open .learn__level-content {
  max-height: 5000px;
}

.learn__level-inner {
  padding: 0 var(--space-md) var(--space-md);
}

.learn__exercise {
  margin-bottom: var(--space-md);
}

.learn__exercise:last-child {
  margin-bottom: 0;
}

.learn__exercise h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.learn__exercise p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.learn__conclusion {
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  font-style: italic;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   GENEROTEUR
   ═══════════════════════════════════════════════════════════════ */
.generoteur.section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(240, 165, 0, 0.03) 0%, transparent 60%),
    var(--bg-deep);
}

.generoteur__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.generoteur__description {
  color: var(--text-secondary);
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.generoteur__console {
  background: var(--bg-card);
  border: 1px solid rgba(240, 165, 0, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

/* Mode toggle */
.generoteur__modes {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  padding: 3px;
  width: fit-content;
}

.generoteur__mode-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.4rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.generoteur__mode-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Text input */
.generoteur__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(240, 165, 0, 0.2);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.generoteur__input:focus {
  border-color: var(--gold);
}

.generoteur__input::placeholder {
  color: var(--text-muted);
}

/* Syllable buttons */
.generoteur__syllables {
  margin-bottom: var(--space-sm);
}

.generoteur__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.generoteur__syl-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(240, 165, 0, 0.08);
  color: var(--gold);
  border: 1px solid rgba(240, 165, 0, 0.2);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 2.5rem;
  text-align: center;
}

.generoteur__syl-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.generoteur__syl-btn--missing {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(1);
}

.generoteur__syl-btn--missing:hover {
  background: rgba(240, 165, 0, 0.08);
  color: var(--gold);
}

.generoteur__toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  user-select: none;
}

.generoteur__syl-btn--space {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
  min-width: 4rem;
}

.generoteur__syl-btn--dot {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Phonetic display */
.generoteur__phonetic {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  min-height: 1.5rem;
  word-break: break-all;
}

/* Terminal */
.generoteur__terminal {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--space-sm) 0;
  border: 1px solid rgba(240, 165, 0, 0.1);
}

.generoteur__terminal-header {
  background: rgba(240, 165, 0, 0.08);
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.generoteur__terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 165, 0, 0.3);
}

.generoteur__terminal-dot:nth-child(1) { background: var(--red); }
.generoteur__terminal-dot:nth-child(2) { background: var(--gold); }
.generoteur__terminal-dot:nth-child(3) { background: var(--green); }

.generoteur__terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  letter-spacing: 0.1em;
}

.generoteur__terminal-body {
  padding: 1rem;
  min-height: 100px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--amber);
  line-height: 1.6;
  word-break: break-word;
}

.generoteur__cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Controls */
.generoteur__controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.generoteur__play {
  flex-shrink: 0;
}

.generoteur__preview-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: auto;
}

.generoteur__preview-toggle input {
  accent-color: var(--gold);
}

/* Examples */
.generoteur__examples {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.generoteur__examples > span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Status */
.generoteur__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: var(--space-sm);
}

.generoteur__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-md);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   HISTORY
   ═══════════════════════════════════════════════════════════════ */
.history__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.history__timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.history__timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dim), transparent);
}

.history__event {
  position: relative;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
}

.history__event::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) + 2px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--gold);
}

.history__event-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.history__event-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.history__event-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════
   PRESS
   ═══════════════════════════════════════════════════════════════ */
.press__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.press__quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.press__quote {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: all var(--transition);
}

.press__quote:hover {
  border-color: rgba(240, 165, 0, 0.15);
}

.press__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(240, 165, 0, 0.1);
  position: absolute;
  top: 0.2rem;
  left: 1rem;
  line-height: 1;
}

.press__quote-text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
  padding-top: var(--space-sm);
}

.press__quote-source {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
}

.press__quote-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}

.press__contact {
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.faq__list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
  /* Reset native <button> styles */
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.faq__question:focus-visible {
  outline: 2px solid var(--gold, #f0a500);
  outline-offset: 4px;
  border-radius: 2px;
}

.faq__question:hover {
  color: var(--gold);
}

.faq__question h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: inherit;
  padding-right: var(--space-sm);
}

.faq__question-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq__item.open .faq__question-arrow {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq__item.open .faq__question h4 {
  color: var(--gold);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq__item.open .faq__answer {
  max-height: 500px;
}

.faq__answer p {
  padding-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   JOIN
   ═══════════════════════════════════════════════════════════════ */
.join__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.join__intro {
  color: var(--text-secondary);
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.join__ways-title,
.join__testimonials-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.join__ways {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.join__way {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
  flex: 0 1 280px;
}

.join__way:hover {
  border-color: rgba(240, 165, 0, 0.2);
  transform: translateY(-3px);
}

.join__way-icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.join__way h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.join__way p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.join__way-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid rgba(240, 165, 0, 0.3);
  padding-bottom: 1px;
  transition: all var(--transition);
}

.join__way-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.join__testimonials-title {
  margin-top: var(--space-md);
}

.join__testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.join__testimonial {
  flex: 0 1 320px;
}

.join__testimonial {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
}

.join__testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.join__testimonial-author {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.join__testimonial-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.join__closing {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
  text-align: center;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(240, 165, 0, 0.1);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.footer__established {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
}

.footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer__contact {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__contact a {
  color: var(--gold-dim);
}

.footer__contact-btn {
  background: transparent;
  border: 1.5px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}

.footer__contact-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.footer__contact-icon {
  font-size: 1.1em;
}

.footer__contact-revealed {
  font-size: 0.85rem;
  color: var(--gold-dim);
}

.footer__contact-revealed a {
  color: var(--gold);
  border-bottom: 1px solid rgba(240, 165, 0, 0.3);
  padding-bottom: 1px;
  transition: all var(--transition);
}

.footer__contact-revealed a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.footer__actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
}

.footer__donate-btn {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__donate-btn::before {
  content: '♥';
  font-size: 1em;
}

.footer__donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 165, 0, 0.3);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: var(--space-sm);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(6, 8, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px var(--space-md) var(--space-md);
    gap: 0;
    transition: right var(--transition);
    border-left: 1px solid rgba(240, 165, 0, 0.1);
    overflow-y: auto;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    padding: 0.8rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
  }

  .nav__hamburger {
    display: flex;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .charter__document {
    padding: var(--space-md);
  }

  .history__timeline {
    padding-left: var(--space-md);
  }

  .history__timeline::before {
    left: 5px;
  }

  .history__event::before {
    left: calc(-1 * var(--space-md) + 1px);
    width: 10px;
    height: 10px;
  }

  .generoteur__console {
    padding: var(--space-sm);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .hero__title {
    font-size: clamp(4rem, 20vw, 8rem);
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .footer__inner {
    flex-direction: column;
  }
}

/* ─── SUBTLE GRAIN OVERLAY ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}
