/* Masquer le bloc titre auto (nom déjà dans la colonne gauche) */
#quarto-document-content > header#title-block-header {
  display: none !important;
}

/* --- Page d’accueil : héros 3 colonnes --- */
.home-hero {
  align-items: start;
  padding: 2rem 0 3.5rem;
  row-gap: 2rem;
}

.home-hero__left {
  text-align: center;
}

/* Même logique que la page À propos (trestles) : largeur en em, ratio naturel, pas de crop cover */
.home-hero__photo {
  width: 14em;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  display: block;
  object-fit: unset;
  aspect-ratio: unset;
}

/* Pas de légende sous les images (Quarto les enveloppe en figure) */
.home-hero figcaption {
  display: none;
}

.home-hero__identity {
  margin-top: 1.1rem;
  text-align: center;
}

.home-hero__name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  border: none;
  padding: 0;
}

.home-hero__name + .home-hero__role {
  margin-top: 0.35rem;
}

.home-hero__role {
  font-family: "Petrona", serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bs-secondary-color);
}

.home-hero__links {
  margin-top: 0.85rem;
  font-size: 1.15em;
}

.home-hero__links p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
}

/* Colonne centrale */
.home-hero__middle {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 12rem;
}

.home-hero__quote {
  font-family: "Petrona", Georgia, serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  font-weight: 600;
  color: var(--bs-secondary-color);
  border-left: 4px solid var(--bs-primary);
  padding: 0.35rem 0 0.35rem 1rem;
  margin: 0 0 1.75rem;
  line-height: 1.35;
}

.home-hero__intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Lien « En savoir plus » */
.home-hero__intro .about-links.subtitle {
  font-size: 1em;
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* Colonne droite : logo */
.home-hero__right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
}

.home-hero__logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  min-width: 0;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Logo plus imposant sur grands écrans (colonne déjà élargie en 4/12 dans index.qmd) */
@media (min-width: 992px) {
  .home-hero__right .quarto-figure,
  .home-hero__right figure {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1400px) {
  .home-hero__right .quarto-figure,
  .home-hero__right figure {
    max-width: 480px;
  }
}

/* Thème sombre : citation un peu plus lisible */
[data-bs-theme="dark"] .home-hero__quote {
  color: var(--bs-body-color);
  opacity: 0.92;
}

@media screen and (max-width: 991.98px) {
  .home-hero__middle {
    min-height: unset;
    order: 2;
  }

  .home-hero__intro {
    text-align: center;
  }

  .home-hero__intro .about-links.subtitle {
    justify-content: center;
    display: inline-flex;
  }

  .home-hero__left {
    order: 1;
  }

  .home-hero__right {
    order: 3;
    padding-top: 0;
  }

  .home-hero__quote {
    text-align: left;
    margin-bottom: 1.25rem;
  }
}
