/* ============================================
   POLICES AUTO-HÉBERGÉES
   Pas de dépendance Google Fonts — Safari OK
   ============================================ */

@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   lab.unmondededifferences.fr — main.css
   Variables, typographie, layout global
   ============================================ */



/* VARIABLES DARK (défaut) */
:root {
  --bg:      #0F1827;
  --bg2:     #162032;
  --bg3:     #1a2840;
  --bg4:     #1e2e42;
  --green:   #00ff88;
  --blue:    #3b9eff;
  --amber:   #ffb347;
  --red:     #ff4757;
  --text:    #e8edf2;
  --muted:   #7a8898;
  --border:  rgba(255,255,255,0.09);
  --mono:    'Space Mono', monospace;
  --sans:    'DM Sans', sans-serif;
  --transition: 0.2s ease;
}

/* LIGHT MODE */
[data-theme="light"] {
  --bg:    #f8fafc;
  --bg2:   #ffffff;
  --bg3:   #f1f5f9;
  --bg4:   #e2e8f0;
  --green: #0f4c81;
  --blue:  #1d7bc4;
  --amber: #b45309;
  --red:   #dc2626;
  --text:  #0f172a;
  --muted: #475569;
  --border: rgba(0,0,0,0.10);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* GRID BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] body::before,
[data-theme="light"]::before {
  background-image:
    linear-gradient(rgba(15,76,129,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,76,129,0.04) 1px, transparent 1px);
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { line-height: 1.75; font-size: 15px; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }

strong { font-weight: 500; color: var(--text); }

/* LAYOUT */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* SECTION LABELS */
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--green);
  flex-shrink: 0;
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 580px;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.75;
}

/* TAGS */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.05em;
  display: inline-block;
}
.tag.green { border-color: rgba(0,255,136,0.3); color: var(--green); }
.tag.blue  { border-color: rgba(59,158,255,0.3); color: var(--blue); }
.tag.amber { border-color: rgba(255,179,71,0.3); color: var(--amber); }

[data-theme="light"] .tag.green { border-color: rgba(15,76,129,0.3); }
[data-theme="light"] .tag.blue  { border-color: rgba(29,123,196,0.3); }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--green);
  color: #0F1827;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: #0F1827; }

[data-theme="light"] .btn-primary { color: #ffffff; }
[data-theme="light"] .btn-primary:hover { color: #ffffff; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* PAGE HERO */
.page-hero {
  padding: 8rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--green); }
.page-hero .breadcrumb span { color: var(--green); }

.page-hero h1 { margin-bottom: 1rem; }
.page-hero h1 .accent { color: var(--green); }
.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  font-weight: 300;
  line-height: 1.75;
}

/* DARK/LIGHT SWITCH */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}
.theme-switch:hover { border-color: var(--green); color: var(--green); }

.switch-track {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--bg4);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.25s;
}
.switch-track.on { background: var(--green); }
[data-theme="light"] .switch-track.on { background: var(--green); }

.switch-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.25s, background 0.25s;
}
.switch-track.on .switch-thumb {
  left: 16px;
  background: #0F1827;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .section-wrap { padding: 3.5rem 1.25rem; }
  .wrap { padding: 0 1.25rem; }
  .page-hero { padding: 7rem 1.25rem 3rem; }
}
