:root {
  --bg: #f5f7fa;
  --text: #1e1e1e;
  --accent: #89baff;
  --header-bg: #ffffff;
  --link-hover: #558de8;
}
body.dark {
  --bg: #1e1e1e;
  --text: #f0f0f0;
  --accent: #89baff;
  --header-bg: #2a2a2a;
  --link-hover: #89baff;
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--header-bg);
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header img.pp {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  margin-right: 1rem;
}
header h1 {
  flex-grow: 1;
  font-size: 1.5rem;
  margin: 0;
}
nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--link-hover);
}
#toggle-theme {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--accent);
}
main {
  padding: 2rem;
}


.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo-link h1 {
  margin: 0;
}

.socials {
  display: flex;
  justify-content: center; /* Centrer les boutons */
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;  /* Utilisation de inline-flex pour ajuster la taille selon le texte */
  align-items: center;
  gap: 10px;
  background-color: #2d7dd2;
  color: white;
  padding: 8px 12px;  /* Plus petit padding pour un bouton plus compact */
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.social-link:hover {
  background-color: #1b5fa3;
}

.social-link img {
  width: 18px;  /* Icônes plus petites pour mieux correspondre au texte */
  height: 18px;
}

/* Boutons de navigation */
.nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center; /* Centrer les boutons de navigation */
}

.nav-button {
  background-color: #444;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.nav-button:hover {
  background-color: #666;
}

.nav-button.active {
  background-color: #2d7dd2;
}

/* Boutons d'e-mail ajustés */
.mail-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  align-items: center;  /* Centrer les boutons d'email */
}

.mail-button {
  background-color: #2d7dd2;
  color: white;
  padding: 8px 12px;  /* Réduit le padding pour plus de compacité */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.2s ease-in-out;
}

.mail-button:hover {
  background-color: #1b5fa3;
}

/* Optionnel : image de profil dans le header */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.pp {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;  /* Change de block à inline-flex pour ajuster la taille selon le texte */
  align-items: center;
  gap: 10px;
  background-color: #2d7dd2;
  color: white;
  padding: 8px 12px;  /* Ajuste le padding pour rendre les boutons plus petits */
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.social-link:hover {
  background-color: #1b5fa3;
}

.social-link img {
  width: 18px;  /* Réduit la taille des icônes pour être plus léger */
  height: 18px;
}
