body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5efe6;
  color: #12345b;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
}
.container {
  text-align: center;
  padding: 2rem 1.5rem 3.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.portrait-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  border: 2px solid #12345b;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}
.lastname {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
h2 {
  font-size: 1.3rem;
  margin: 0.2rem 0;
  font-weight: 500;
  font-style: italic;
}
p.tagline {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Boutons 2 x 2 */
.buttons {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.buttons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #071728;
  border: 1px solid #24618f33;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.6rem;
  height: 100px;
  text-align: center;
}
.buttons a img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}
.btn-competences { background-color: #295ee4; }
.btn-projets     { background-color: #FF5841; }
.btn-formation   { background-color: #31EC56; }
.btn-parcours    { background-color: #FFD700; }
.buttons a:active {
  filter: brightness(0.9);
}

/* Bas de page : logo + email + téléphone sur une ligne, citation dessous */
.social {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.contact-item-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.contact-item-inline img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.contact-quote {
  margin: 0;
  font-size: 0.8rem;
  font-style: italic;
}
.linkedin-logo {
  width: 24px;
  height: 24px;
  max-width: 100%;
  display: inline-block;
}

/* Responsive : pour petits écrans */
@media (max-width: 480px) {
  .buttons {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .buttons a {
    height: 80px;
    font-size: 0.9rem;
  }
  .buttons a img {
    width: 40px;
    height: 40px;
  }
}
