/* Portfolio — une colonne, typographie système, clair/sombre automatique. */

:root {
  --fond: #fdfdfc;
  --encre: #1c2128;
  --sourdine: #59636e;
  --accent: #0d5c9e;
  --filet: #d9dde2;
  --puce-fond: #eef1f4;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #14181d;
    --encre: #e4e8ec;
    --sourdine: #98a3ad;
    --accent: #6cb2ee;
    --filet: #2c333b;
    --puce-fond: #1f252c;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--fond);
  color: var(--encre);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--puce-fond);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

/* --- En-tête --- */

h1 { font-size: 2rem; letter-spacing: -0.02em; }

.titre { color: var(--sourdine); margin-top: 0.25rem; }

.liens { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.9rem; }

.accroche { margin-top: 1.5rem; max-width: 40rem; }

/* --- Sections --- */

section { margin-top: 3rem; }

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sourdine);
  border-bottom: 1px solid var(--filet);
  padding-bottom: 0.4rem;
}

article { margin-top: 1.6rem; }

h3 { font-size: 1.05rem; }

.meta { color: var(--sourdine); font-size: 0.9rem; margin: 0.15rem 0 0.5rem; }

article p + p { margin-top: 0.5rem; }

/* Postes successifs (Fastercom) et formation. */

dl dt { font-weight: 600; margin-top: 1rem; }
dl dd { margin-top: 0.2rem; }

.periode {
  font-weight: 400;
  color: var(--sourdine);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- Étiquettes techniques des projets --- */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.tags li {
  font-size: 0.8rem;
  color: var(--sourdine);
  background: var(--puce-fond);
  border: 1px solid var(--filet);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
}

/* --- Compétences : libellé à gauche, détail à droite --- */

.competences {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
}

.competences dt { margin-top: 0; }
.competences dd { margin-top: 0; }

@media (max-width: 30rem) {
  .competences { grid-template-columns: 1fr; row-gap: 0; }
  .competences dd { margin-bottom: 0.6rem; }
}

/* --- Pied de page --- */

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
  color: var(--sourdine);
  font-size: 0.85rem;
}
