/* ==============================
   Base & typographie
   ============================== */

:root {
  --bg-main: #0b0f14;
  --bg-section: #121824;
  --text-main: #e6e6e6;
  --text-soft: #b8c1cc;
  --accent: #ffd166;
  --accent-soft: #ffe7a3;
  --danger: #ef476f;
  --info: #06d6a0;
  --max-width: 900px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* ==============================
   Liens
   ============================== */

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

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

/* ==============================
   Structure générale
   ============================== */

header,
main,
footer {
  max-width: var(--max-width);
  margin: auto;
  padding: 1.5rem;
}

main {
  padding-top: 0;
}

section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: var(--bg-section);
  border-radius: 12px;
}

/* ==============================
   Titres
   ============================== */

h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 0;
  color: var(--accent-soft);
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 60ch;
}

/* ==============================
   Paragraphes & listes
   ============================== */

p {
  max-width: 65ch;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ==============================
   Blocs pédagogiques
   ============================== */

.info-box {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--info);
  background-color: rgba(6, 214, 160, 0.1);
  border-radius: 6px;
}

.warning-box {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--danger);
  background-color: rgba(239, 71, 111, 0.1);
  border-radius: 6px;
}

.key-points {
  background-color: rgba(255, 209, 102, 0.08);
  border-left: 5px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 6px;
}

.key-points strong {
  display: block;
  margin-bottom: 0.5rem;
}

/* ==============================
   Navigation
   ============================== */

nav {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* ==============================
   Footer
   ============================== */

footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-top: 1px solid #1f2a3a;
}

/* ==============================
   Responsive (mobile)
   ===========*/
