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

/* ── Variables ── */
:root {
  --bg:        #f8f8f6;
  --bg-alt:    #ffffff;
  --border:    #e0e0dc;
  --text:      #1a1a1a;
  --text-muted:#666;
  --accent:    #2c6e49;      /* vert forêt — discret */
  --accent2:   #1d4e89;      /* bleu marine */
  --warn:      #8b2e2e;
  --warn-bg:   #fdf4f4;
  --tip-bg:    #f4faf6;
  --note-bg:   #f4f7fd;
  --sidebar-w: 270px;
  --radius:    0px;
  --shadow:    0 1px 3px rgba(0,0,0,.08);
}

/* ── Base ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

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

strong { font-weight: 600; }
code {
  font-family: 'Courier New', monospace;
  background: #f0f0ee;
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: var(--radius);
  font-size: 13px;
  color: #333;
}
pre {
  background: #f5f5f3;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}
pre code { background: none; border: none; padding: 0; font-size: 13px; }

kbd {
  background: #eee;
  border: 1px solid #ccc;
  border-bottom: 2px solid #bbb;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: monospace;
}

/* ── Layout ── */
.container { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.sidebar-logo i { color: var(--accent); font-size: 20px; }

.lang-switch {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.lang-switch a,
.lang-switch span {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .15s;
}
.lang-switch a:hover { border-color: var(--accent); color: var(--accent); background: var(--tip-bg); }
.lang-switch span.active { border-color: var(--accent); color: var(--accent); background: var(--tip-bg); font-weight: 600; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 14px 6px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-section-label i { font-size: 10px; }

.sidebar nav ul { list-style: none; }
.sidebar nav li { margin: 1px 0; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: var(--radius);
  transition: all .15s;
  text-decoration: none;
}
.sidebar nav a i { width: 14px; text-align: center; font-size: 12px; flex-shrink: 0; }
.sidebar nav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.sidebar nav a.active { background: var(--tip-bg); color: var(--accent); font-weight: 600; }
.sidebar nav a.active i { color: var(--accent); }

/* ── Content ── */
.content {
  margin-left: var(--sidebar-w);
  padding: 40px 48px 60px;
  flex: 1;
  max-width: 860px;
}

.content h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.content h1 i { color: var(--accent); font-size: 22px; }

.content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.content h2 i { color: var(--accent); font-size: 15px; }

.content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.content h3 i { color: var(--text-muted); font-size: 12px; }

.content p { margin-bottom: 12px; color: var(--text); }
.content ul, .content ol { margin: 8px 0 12px 24px; }
.content li { margin-bottom: 5px; }

/* ── Info boxes ── */
.info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.info-box.warning  { background: var(--warn-bg);  border-color: #e8c4c4; }
.info-box.tip      { background: var(--tip-bg);   border-color: #b8dfc8; }
.info-box.note     { background: var(--note-bg);  border-color: #b8cce8; }

.info-box i.box-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.info-box.warning  i.box-icon { color: var(--warn); }
.info-box.tip      i.box-icon { color: var(--accent); }
.info-box.note     i.box-icon { color: var(--accent2); }

.info-box h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.info-box p  { margin: 0; font-size: 13px; color: #444; }

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table th {
  background: #f2f2f0;
  color: var(--text);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg); }
table td a { color: var(--accent2); }

/* ── Images ── */
.guide-img {
  display: block;
  max-width: 90%;
  border: 1px solid var(--border);
  margin: 20px auto;
  box-shadow: var(--shadow);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.img-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  transition: box-shadow .15s;
}
.img-card:hover { box-shadow: var(--shadow); }
.img-card img {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 6px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.img-card span { display: block; line-height: 1.3; }
.img-card a { color: var(--text-muted); text-decoration: none; }
.img-card a:hover { color: var(--accent2); }

/* ── AdSense — discret ── */
.ad-slot {
  margin: 32px 0;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  opacity: 0.9;
}
.ad-label {
  font-size: 9px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}
.ad-slot-sidebar {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  opacity: 0.9;
}

/* ── Canvas animations Minecraft ── */
canvas.mc-anim {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 20px 16px; }
}
