/* ---- Base ---- */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #ffffff;
}

/* ---- Layout 2 colonnes centrées ---- */
.wrapper {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 28px;

  display: grid;
  grid-template-columns: 28% 72%;
  column-gap: 40px;
  align-items: start;
}

/* Colonne gauche (header) */
header {
  position: sticky;
  top: 24px;
  padding: 16px 8px;
}

/* Colonne droite (contenu) */
section {
  min-width: 0;
  padding: 16px 8px;
  text-align: justify;
}

/* ---- Titres ---- */
h1, h2, h3 {
  color: #1e3a8a;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

/* ---- Images ---- */
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---- Shields (badges) ---- */
.shields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;  /* centrage horizontal */
  gap: 8px 10px;
  margin: 10px 0 14px;
}
.shields a { display: inline-flex; }
.shields img {
  display: inline-block;
  height: 20px;
  width: auto;
}

/* ---- Icônes sociaux existants : conteneur flex propre, pas de tiret ---- */
header .social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
header .social a {
  text-decoration: none;
  line-height: 0; /* évite les espaces verticaux */
}
header .social img,
header .social svg {
  display: inline-block;
  height: 22px;
  width: auto;
  vertical-align: middle;
}

/* ---- En-tête : ne pas souligner le nom cliquable ---- */
header h1 a {
  text-decoration: none;
  border-bottom: none;
}
header h1 a:hover,
header h1 a:focus {
  text-decoration: none;
  border-bottom: none;
}

/* ---- Mise en forme projets ---- */
.meta {
  margin: 10px 0 18px;
}
.meta dt {
  font-size: 0.80rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #374151;
  font-weight: 700;
  margin-top: 10px;
}
.meta dd {
  margin: 4px 0 12px 0;
  font-weight: 400;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #374151;
  text-align: justify;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .wrapper {
    display: block;
    margin: 20px auto;
    padding: 0 16px;
  }
  header {
    position: static;
    text-align: center;
    padding: 8px 0 16px;
  }
  header .social { justify-content: center; }
  .shields { justify-content: center; }
}

/* Empêche le retour à la ligne pour certains segments (classe .nowrap) */
header p .nowrap { white-space: nowrap; }
@media (max-width: 420px) {
  header p .nowrap { white-space: normal; }
}
