/* =========================================================
   BIOGRAPHIE — surcharges légères
   Base : /assets/css/style.css (typographie, couleurs, navigation)
   ========================================================= */
/* IMPORTANT : style.css applique un padding important sur .bio-page (body),
   ce qui crée le grand vide au-dessus du bouton.
   Ici on l'annule pour cette page uniquement. */
body.bio-page{
  padding: 0 !important;
}



/* Container : un peu plus de respiration sur les côtés (évite l'étirement) */
.bio-page .bio-wrap{
  max-width: 1180px;
  /* Plus proche du haut : on garde juste de quoi passer sous le header du site */
  margin: 44px auto 0;
  padding: 0 22px 70px;
}

/* Bouton retour (haut) */
.bio-page .bio-topback{
  text-align: center;
  margin: 0 0 10px;
}


/* En-tête de la colonne gauche (bouton + titre) */
.bio-page .bio-main-head{
  margin: 0 0 22px;
}

.bio-page .bio-hero{
  position: static; /* évite tout effet de superposition lié aux styles globaux sur <header> */
  max-width: none;
  margin: 0 auto 0;
  text-align: center;
}

/* Titre : centré + dates sur la ligne dessous */
.bio-page .bio-hero{
  max-width: 980px;
  margin: 0 auto 26px;
  text-align: center;
}

.bio-page .bio-hero h1{
  margin: 0;
}

.bio-page .bio-dates{
  margin-top: 8px;
  font-size: 1.05rem;
  opacity: .85;
}

/* Layout : 2 colonnes dès tablette (et non uniquement très large) */
.bio-page .bio-layout--two-cols{
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

@media (min-width: 768px){
  .bio-page .bio-layout--two-cols{
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 34px;
  }

  .bio-page .bio-main{
    max-width: none; /* on laisse la colonne gérer la largeur */
    margin: 0;
  }

  .bio-page .bio-side{
    position: sticky;
    top: 5.5rem; /* sous la barre de navigation fixe */
  }
}

/* Sidebar : harmoniser expositions avec le bloc frise */
.bio-page .bio-exhibitions{
  margin: 1.4rem auto 0;
  max-width: 980px;
  padding: 1.5rem 1.2rem;
  background: #f1e3cf;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

@media (min-width: 768px){
  .bio-page .bio-exhibitions{
    max-width: none;
  }
}

.bio-page .bio-exhibitions h2{
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.bio-page .bio-exhibitions-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.bio-page .bio-exhibitions-list li{
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bio-page .bio-exhibitions-list li:last-child{
  border-bottom: none;
}

/* Repères : ajoute l'espace après date via le "—" présent dans le HTML.
   Ici, on s'assure juste que ça respire. */
.bio-page .bio-timeline .event{
  display: inline;
}

/* Boutons (rappel) */
.bio-page .bio-quick{
  margin-top: 1.4rem;
  display: grid;
  gap: 10px;
}

.bio-page .bio-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(58,42,26,0.25);
  background: rgba(255,255,255,0.55);
  color: #3a2a1a;
  transition: 0.2s ease;
}

.bio-page .bio-btn:hover{
  border-color: rgba(140,98,57,0.55);
}

.bio-page .bio-btn--ghost{
  background: rgba(255,255,255,0.35);
}

/* H3 (sous-titres) : léger, cohérent, sans casser la typo globale */
.bio-page .bio-section h3{
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* Illustration Zborowski : très petite, à gauche du texte "Vers 1925..." */
.bio-page .bio-figure-zborowski-illu{
  width: 120px;
  float: left;
  margin: 6px 16px 12px 0;
  padding: 0.7rem;
}

.bio-page .bio-figure-zborowski-illu img{
  width: 100%;
  height: auto;
  display: block;
}

.bio-page .bio-clear{
  clear: both;
}

/* Contrat : empilé (pas côte à côte) */
.bio-page .bio-figure-contrat--stack .bio-figure-row--stack{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

/* Fresque : garder large mais contenue */
.bio-page .bio-figure-fresque{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


/* Portrait : réduire à ~70% et centrer */
.bio-page .bio-figure-portrait{
  width: 70%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Contrat Zborowski : réduire à ~70% et centrer chaque page */
.bio-page .bio-figure-contrat--stack .bio-figure-row--stack{
  justify-items: center;
}

.bio-page .bio-figure-contrat--stack .bio-figure-row--stack img{
  width: 70%;
  height: auto;
  display: block;
}

/* Sur mobile, garder lisible (pleine largeur) */
@media (max-width: 767px){
  .bio-page .bio-figure-portrait{
    width: 100%;
    max-width: 520px;
  }
  .bio-page .bio-figure-contrat--stack .bio-figure-row--stack img{
    width: 100%;
  }
}


/* Caromb : ~30% et centré (comme demandé) */
.bio-page .bio-figure-caromb--small{
  width: 55%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px){
  .bio-page .bio-figure-zborowski-illu{
    float: none;
    width: 160px;
    margin: 12px auto;
  }
  .bio-page .bio-figure-caromb--small{
    width: 80%;
    max-width: 520px;
  }
}


/* =========================================================
   FIX anti-recouvrement sidebar (Repères / Expositions)
   Cause typique : un bloc interne (souvent "Repères") en position: sticky
   -> le contenu suivant (Expositions) passe dessous et "recouvre" au scroll.
   Solution : on neutralise sticky sur .bio-side par défaut,
   puis on l'applique uniquement au wrapper <aside class="bio-side">.
   ========================================================= */
@media (min-width: 768px){
  .bio-page .bio-side{
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
  aside.bio-side{
    position: sticky !important;
    top: 5.5rem; /* sous la barre de navigation fixe */
    z-index: 2;
  }
}


/* =========================================================
   SIDEBAR NON-STICKY (désactivé définitivement)
   Empêche tout recouvrement au scroll.
   ========================================================= */
.bio-page aside.bio-side,
.bio-page .bio-side,
.bio-page .bio-side *{
  position: static !important;
  top: auto !important;
}

/* =========================================================
   Bougeard figure (smaller, aligned right)
   ========================================================= */
.bio-figure.bio-figure-bougeard{
  width: 220px;
  max-width: 40%;
  float: right;
  margin: 6px 0 12px 16px;
  padding: 0.7rem;
  box-sizing: border-box;
}
.bio-figure.bio-figure-bougeard img{
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px){
  .bio-figure.bio-figure-bougeard{
    width: 100%;
    max-width: 520px;
    float: none;
    margin: 14px auto;
  }
}

