/* ============================================
   DUSTETHIC - STYLESHEET GLOBAL
   Tous les styles partagés entre toutes les pages
   ============================================ */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  /* Couleurs - Dark Space Aesthetic */
  --bg-deep: #0a0a1a;
  --bg-surface: #14142b;
  --bg-elevated: #1c1c3d;
  --text-primary: #e8e8f5;
  --text-secondary: #9494b8;
  --text-muted: #6b6b8c;
  --accent-gold: #f4c95d;
  --accent-gold-dim: rgba(244, 201, 93, 0.6);
  --accent-blue: #6b8aff;
  --accent-blue-dim: rgba(107, 138, 255, 0.6);
  --accent-red: #ff6b6b;
  --accent-green: #5dd39e;
  --border-subtle: rgba(244, 201, 93, 0.12);
  --border-strong: rgba(244, 201, 93, 0.25);
  --gradient-hero: radial-gradient(ellipse at top, rgba(244, 201, 93, 0.08) 0%, transparent 60%);

  /* Typo */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Espacements */
  --container-max: 1200px;
  --container-narrow: 800px;
  --section-padding-y: clamp(4rem, 10vw, 8rem);
  --section-padding-x: clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover { color: var(--text-primary); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
}

/* ============================================
   CANVAS PARTICULES
   ============================================ */
#dust-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ============================================
   LAYOUT GLOBAL
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--section-padding-y) 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 26, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--section-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-dim);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

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

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.is-current { color: var(--text-primary); }

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.25rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition-base);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ============================================
   HERO SECTIONS (home + page interne)
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  background: var(--gradient-hero);
  position: relative;
}

.hero-content { max-width: 900px; }

.hero-page {
  min-height: auto;
  padding-top: 9rem;
  padding-bottom: 4rem;
}

.hero-page h1 {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(244, 201, 93, 0.08);
  border: 1px solid var(--border-strong);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 700px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 680px;
  line-height: 1.75;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  font-family: var(--font-body);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--text-primary);
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(244, 201, 93, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

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

/* ============================================
   SECTIONS GENERIQUES
   ============================================ */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 3rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Traits séparateurs entre sections supprimés à la demande de l'utilisateur */
.section-with-border {
  /* border-top: none; */
}

/* ============================================
   PROSE (paragraphes longs)
   ============================================ */
.prose {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.prose p + p { margin-top: 1.5rem; }

.prose strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.prose ul, .prose ol {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ============================================
   LIENS INLINE
   ============================================ */
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--accent-gold-dim);
  padding-bottom: 0.2rem;
  transition: gap var(--transition-base);
}

.inline-link:hover { gap: 0.7rem; }

/* ============================================
   CARDS GENERIQUES
   ============================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(244, 201, 93, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ============================================
   ETAPES NUMEROTEES (home + autres pages)
   ============================================ */
.step-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================
   NOTES & CALLOUTS
   ============================================ */
.callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-gold);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.callout-blue {
  border-left-color: var(--accent-blue);
  background: rgba(107, 138, 255, 0.06);
}

.callout-red {
  border-left-color: var(--accent-red);
  background: rgba(255, 107, 107, 0.06);
}

.callout-green {
  border-left-color: var(--accent-green);
  background: rgba(93, 211, 158, 0.06);
}

.callout strong { color: var(--accent-gold); }
.callout-blue strong { color: var(--accent-blue); }
.callout-red strong { color: var(--accent-red); }
.callout-green strong { color: var(--accent-green); }

/* ============================================
   MODES CARDS (home spécifique)
   ============================================ */
.mode-card {
  padding: 2.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  position: relative;
}

.mode-card.featured {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(244, 201, 93, 0.05) 100%);
}

.mode-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(244, 201, 93, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.mode-card h3 { margin-bottom: 1rem; }

.mode-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   AUDIENCES CARDS (home spécifique)
   ============================================ */
.audience-card {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.audience-card:hover {
  border-color: var(--accent-gold);
}

.audience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
}

.audience-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.audience-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  transition: gap var(--transition-base);
}

.audience-link:hover { gap: 0.6rem; }

/* ============================================
   STATUS BOX
   ============================================ */
.status-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 900px;
}

.status-list {
  list-style: none;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-deep);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.status-dot.empty { background: var(--text-muted); }

/* ============================================
   CONTRIBUTE
   ============================================ */
.contribute-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand { max-width: 320px; }

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col a:hover { color: var(--accent-gold); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS - REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

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

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

/* ============================================
   FIL D'ARIANE (breadcrumb)
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-menu.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-deep);
    padding: 1.5rem var(--section-padding-x);
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .cta-group { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   ACCESSIBILITE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #dust-canvas { display: none; }
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
