/* =========================
   Variables globales
========================= */
:root {
  color-scheme: light dark;

  /* Thème clair (par défaut) */
  --bg: #FFFFFF;
  --text: #222222;
  --muted: #555555;
  --accent: #FF4500;
  --divider: rgba(0,0,0,0.08);
  --max-width: 920px;
  --font-family: 'JetBrains Mono', monospace;
}

/* Mode sombre automatique quand l’utilisateur a activé le dark mode système */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;               
    --text: #e0e8f0;             
    --muted: #9ca3af;            
    --accent: #FF4500;           
    --divider: rgba(255,255,255,0.07);  
  }
}

/* =========================
   Réinitialisation générale
========================= */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Conteneur principal */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

/* =========================
   Headings
========================= */
h1, h2 {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 16px 0;
}

h2 {
  text-align: left;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin-top: 64px;
  margin-bottom: 14px;
}

/* Paragraphes et liens */
p, li {
  font-size: 1rem;
  margin-bottom: 12px;
}

p.muted, span.muted {
  color: var(--muted);
}

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

a:hover {
  text-decoration: underline;
}

/* =========================
   HERO / Landing
========================= */
.hero {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 100px;
  position: relative;
}

.hero .logo img {
  max-width: 280px;
  height: auto;
  margin-bottom: 28px;
}

.hero .tagline {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--accent);
  line-height: 1.2;
}

/* Dégradé subtil pour inviter au scroll – adapté aux deux modes */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
}

/* =========================
   Menu HERO
========================= */
.hero-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.96rem;
  margin-bottom: 32px;
  padding: 0 12px;
  text-align: center;
}

.hero-menu a {
  white-space: nowrap;
}

/* =========================
   About / CTA
========================= */
.hero-description {
  margin-top: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-description p {
  margin-bottom: 12px;
}

/* =========================
   Dividers
========================= */
.divider {
  border-bottom: 1px solid var(--divider);
  margin: 50px 0;
}

/* =========================
   Case Studies
========================= */
.case-study {
  margin-bottom: 32px;
}

.case-study strong {
  display: block;
  margin-bottom: 6px;
}

.case-study em {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

/* =========================
   Founder
========================= */
.founder-line {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

/* =========================
   Footer
========================= */
.footer {
  margin-top: 64px;
  padding: 32px 0 40px;
  text-align: center;
  font-size: 0.92rem;
  border-top: 1px solid var(--divider);
}

.footer p {
  margin: 0;
  line-height: 1.5;
}

/* =========================
   Responsive / Mobile
========================= */
@media (max-width: 768px) {
  .hero .logo img {
    max-width: 220px;
  }

  .hero .tagline {
    font-size: 1.6rem;
    margin-bottom: 28px;
  }

  .hero-menu {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-description {
    margin-top: 40px;
    padding: 0 14px;
  }

  .hero::after {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .footer {
    font-size: 0.88rem;
    padding: 24px 0 32px;
  }
}

/* =========================
   LANGUAGE SWITCH (TOP-RIGHT)
========================= */
.lang-switch {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.85rem;
}

.lang-switch .active {
  color: var(--accent);
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a:hover {
  text-decoration: underline;
}

