/* Portrait de l’accueil : le cadrage est géré en CSS, la photo originale est conservée. */
.hero-with-portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  column-gap: 56px;
  align-items: start;
}

.hero-with-portrait > .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.hero-with-portrait > h1 {
  grid-column: 1;
  grid-row: 2;
}

.hero-with-portrait > .hero-bottom {
  grid-column: 1;
  grid-row: 3;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-portrait {
  display: block;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  width: 224px;
  height: 280px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgb(32 39 34 / 10%);
  border-radius: 8px;
  background: #302b27;
}

@media (max-width: 1000px) {
  /* Un portrait plus compact libère toute la largeur du titre sur tablette. */
  .hero-with-portrait {
    grid-template-columns: minmax(0, 1fr) 112px;
    column-gap: 28px;
  }

  .hero-with-portrait > .eyebrow {
    align-self: center;
    line-height: 1.8;
  }

  .hero-with-portrait > h1,
  .hero-with-portrait > .hero-bottom {
    grid-column: 1 / -1;
  }

  .hero-portrait {
    grid-row: 1;
    width: 112px;
    height: 140px;
  }
}

@media (max-width: 650px) {
  .hero-with-portrait {
    grid-template-columns: minmax(0, 1fr) 88px;
    column-gap: 24px;
  }

  .hero-portrait {
    width: 88px;
    height: 110px;
    border-radius: 6px;
  }

  .hero-with-portrait > .hero-bottom {
    display: flex;
    gap: 20px;
  }

  .hero-with-portrait .hero-projects-link {
    margin-top: 0;
  }
}

/* Lien d’exploration : destination explicite et mouvement discret. */
.hero-projects-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.hero-projects-link span {
  transition: transform 0.25s ease;
}

.hero-projects-link:hover,
.hero-projects-link:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.hero-projects-link:hover span,
.hero-projects-link:focus-visible span {
  transform: translateY(4px);
}

/* Keep the language selector on the same baseline as the navigation links. */
.top > nav {
  align-items: center;
}

.top .language-switch {
  align-self: center;
  min-height: 0;
  margin-left: 0;
  padding: 0;
  line-height: inherit;
}

.top .language-switch span[data-language-option] {
  padding: 0 0 2px;
}

.cv-download-link {
  color: var(--green);
  font-weight: 600;
}

.cv-downloads {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.cv-downloads .contact-link {
  margin-bottom: 0;
  font-size: 15px;
}
