/* =============================================================
   Fredon Grand Est — Centre de ressources
   CSS minimaliste, sans dépendance, ~2 KB
   ============================================================= */

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

/* --- Tokens (light / dark automatique) --------------------- */
:root {
  --bg:     #ffffff;
  --fg:     #1c1c1c;
  --muted:  #6b6b6b;
  --link:   #1e5e8e;
  --visited:#6b3fa0;
  --border: #dedede;
  --font:   system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #141414;
    --fg:     #e2e2e2;
    --muted:  #909090;
    --link:   #79b8e0;
    --visited:#c3a0e8;
    --border: #2e2e2e;
  }
}

/* --- Base --------------------------------------------------- */
html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
}

/* --- Layout ------------------------------------------------- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

/* --- Navigation -------------------------------------------- */
nav { padding-bottom: 1.5rem; }
nav ul { list-style: none; }
nav img { height: 2.5rem; display: block; }

/* --- Grille deux colonnes ---------------------------------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

/* --- Séparateur -------------------------------------------- */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* --- Sections repliables ----------------------------------- */
details { margin-bottom: 0.125rem; }

summary {
  list-style: none;         /* Firefox */
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-weight: 600;
  font-size: 0.975rem;
}
summary::-webkit-details-marker { display: none; } /* Chrome/Safari */

summary::before {
  content: "▸";
  font-size: 0.7em;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.12s ease;
}
details[open] > summary::before { transform: rotate(90deg); }

summary small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Listes ------------------------------------------------- */
details ul {
  list-style: none;
  padding: 0.35rem 0 0.5rem 1rem;
  border-left: 2px solid var(--border);
  margin: 0.25rem 0 0 0.2rem;
}

details ul li {
  padding: 0.2rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Liens ------------------------------------------------- */
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: var(--visited); }
