/* Override breakpoint pour git.html: hamburger actif jusqu'à 1877px */
@media screen and (max-width: 1877px) {
  .side-banner { display: none !important; }
  .hamburger { display: inline-flex; }
  .menu-drawer { display: block; }
  .menu-overlay { display: block; }
  body { padding-top: max(20px, env(safe-area-inset-top)); }
}
/*
  Styles Git/GitHub – cohérents avec energy.html
  Auteur: Thomas Bauwens
  Date: Octobre 2025
*/

/* Global */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0; padding: 32px 16px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  color: #111827;
}

.container {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: min(98vw, 1400px);
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  border: 1px solid rgba(2,6,23,0.06);
}

h1 { text-align:center !important; font-size:28px; margin-bottom:8px; color:#0f172a; display:block; width:100%; }
.subtitle { text-align:center !important; color:#475569; margin: 0 auto 20px auto; max-width:760px; display:block; width:100%; }

/* Grid & Cards */
.git-grid {
  display: flex;
  flex-direction: column; /* une seule colonne: 1., 2., 3. empilés */
  gap: 16px;
  align-items: stretch;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.card h2 { font-size: 18px; line-height: 1.3; margin: 0 0 12px 0; color:#0f172a; }

.card ul { margin: 0 0 10px 18px; padding-left: 18px; list-style-position: outside; }
.card ol { margin: 0 0 10px 0; padding-left: 0; list-style: none; counter-reset: item; }
.card li { margin: 6px 0; }
.card ol li { position: relative; padding-left: 28px; }
.card ol li::before {
  counter-increment: item;
  content: counter(item) ". ";
  position: absolute; left: 0; top: 0;
  color:#0f172a; font-weight:600;
}
.card li pre { margin-left: -24px; width: calc(100% + 24px); }
.card ol li pre { margin-left: -28px; width: calc(100% + 28px); }

/* avoid extra space at end to align bottoms */
.card > *:last-child { margin-bottom: 0; }

/* Code blocks */
pre {
  background:#0b1020;
  color:#e5e7eb;
  padding:12px 14px;
  border-radius:10px;
  font-size: 13px;
  margin: 8px 0;
  width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;      /* wrap long lines to keep same width */
  word-break: break-word;     /* allow breaking long tokens */
  overflow: hidden;           /* no horizontal scrollbar */
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.note { color:#334155; font-size: 13px; margin-top: 8px; }

/* Cheats internal grid */
.cheats { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.cheats > div { background:#f8fafc; border:1px solid #e5e7eb; border-radius:10px; padding:10px; }
.cheats h3 { margin:0 0 8px 0; font-size: 15px; color:#0f172a; }

/* Links */
a { color:#2563eb; text-decoration:none; }
a:hover { text-decoration:underline; }

/* Responsive */
@media (max-width: 1024px) {
  .container { padding: 16px; }
  .git-grid { gap: 12px; }
}

@media (max-width: 640px) {
  h1 { font-size: 22px; line-height: 1.2; }
  .subtitle { font-size: 14px; }
  .card { padding: 12px 14px; }
  pre { font-size: 12px; padding:10px 12px; }
}
