/* 0) Neutralise la marge par défaut du body */
html, body {
  margin: 0;
  padding: 0;
}

.contact { text-align:left; }
.contact .icon { font-size: 3em; line-height: 1; vertical-align: middle;} /* ← ajuste la taille */

/* 1) Conteneur principal */
.container{
  --photo-top: 1rem;        /* ← règle ICI l’espace au-dessus de la photo */
  max-width: 860px;
  margin: auto;
  padding: 0 24px 24px;        /* pas de padding-top */
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

/* 2) Drapeaux: on ne change rien à leur position */
.lang-switch {
  position: fixed;      /* <-- hors flux, au-dessus */
  top: 1rem;             /* ajuste la position à l'écran */
  left: 1rem;
  margin: 0;            /* ne compte plus dans la hauteur */
  font-size: 1.5rem;
  line-height: 1;
  z-index: 1000;        /* reste au-dessus de tout */
}

/* 3) Liens */
a { text-decoration: none; color: inherit; }

hr {
  border: none;
  border-top: 1px solid var(--rule-color);
  margin: 0.5rem 0;
}

p {
    font-weight:50;
}

li {
    font-weight:50;
}

/* 4) Empêche toute marge par défaut sur le 1er élément de .container */
.container > *:first-child { margin-top: 0 !important; }

/* 5) Photo de profil (Markdown = <p><img></p>) */
.container > p:first-child > img{
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: var(--photo-top) auto 12px;  /* top réglable */
}

/* 6) Titre principal */
.container h1:first-of-type {
  text-align: center;
  font-size: 1.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 200;
}

:root {
  --rule-color: #e5e7eb;
  --rule-thickness: 1px;
}
.container h2{
  text-align:left;
  font-size:1.2rem;
  margin:0.5rem 0 1.5rem;
  font-weight: 200;
  padding:12px 0; /* espace pour voir les lignes */
  border-top: var(--rule-thickness) solid var(--rule-color);
  border-bottom: var(--rule-thickness) solid var(--rule-color);
}

.container h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.container h4 {
  font-size: 1rem;   /* taille du texte */
  font-weight:150;
  line-height: 1.3;    /* interligne, donc “hauteur de ligne” */
  margin: 0.75rem 0;
}
.container h4 em {
  font-size: 0.8rem;
  font-weight: 100;
}

.tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: .65rem;
  font-weight: 400;
  white-space: nowrap;
}

/* Rangée d'icônes */
.social{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:16px 0;
  padding:0;
  list-style:none;
}

/* Tuile carrée uniforme (squircle) */
.social li{
  width:36px;                 /* ajuste 32–48 */
  aspect-ratio:1;             /* carré, même sans height */
  border-radius:22%;          /* entre rond et carré */
  background:#f3f4f6;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s, box-shadow .2s, background .2s;
}

/* Lien plein cadre (hover sur toute la tuile) */
.social li > a{display:block;width:100%;height:100%;}

/* ✅ RÈGLE UNIQUE POUR TOUTES LES IMAGES */
.social li img{
  width:100%;                  /* marge interne uniforme */
  height:100%;
  object-fit:contain;         /* jamais rogné, proportions conservées */
  display:block;
}

/* Hover doux (facultatif) */
.social li:hover{
  background:#e0f2fe;
  transform:translateY(-2px);
  box-shadow:0 2px 6px rgba(0,0,0,.1);
}
