/* ==========================================================================
   bio.css — Styles dédiés aux pages Biographie
   ========================================================================== */

/* Base */
* { box-sizing: border-box; }
html, body { width: 100%; }

/* Décalage sous la navbar fixed-top (position actuelle conservée) */
body{
  padding-top: 95px !important;
}

@media (max-width: 576px){
  body{
    padding-top: 112px !important;
  }
}

/* ==========================================================================
   Zone BIO
   ========================================================================== */

.container.bio{
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 0.9rem;
  margin-top: 0 !important;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .container.bio { overflow-x: hidden; }
}

@media (max-width: 576px){
  .container.bio{
    padding: 1rem 0.75rem;
  }
}

/* Neutralisation des styles globaux gênants */
.container.bio,
.container.bio *{
  white-space: normal !important;
  max-width: 100%;
  min-width: 0;
}

/* ==========================================================================
   TITRE PRINCIPAL (un peu plus petit)
   ========================================================================== */

.container.bio .custom-h1{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  position: relative;
  z-index: 2;

  font-family: 'Handlee', cursive;

  /* Taille réduite */
  font-size: clamp(1.4rem, 4.8vw, 2rem);

  line-height: 1.15;
  margin: 0 0 0.6rem 0;

  color: #dc3545 !important;
}

/* ==========================================================================
   SOUS-TITRES
   ========================================================================== */

.container.bio h5{
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  line-height: 1.2;
  margin: 1.2rem 0 0.35rem 0;
}

/* 1er sous-titre remonté fortement (≈ -20 % supplémentaires) */
.container.bio .paragraph1{
  margin-top: 0.3rem !important;
}

/* Couleurs individuelles */
.container.bio .paragraph1 { color: #dc3545 !important; }
.container.bio .paragraph2 { color: #fd7e14 !important; }
.container.bio .paragraph3 { color: #ffc107 !important; }
.container.bio .paragraph4 { color: #28a745 !important; }
.container.bio .paragraph5 { color: #20c997 !important; }
.container.bio .paragraph6 { color: #17a2b8 !important; }
.container.bio .paragraph7 { color: #007bff !important; }
.container.bio .paragraph8 { color: #6f42c1 !important; }

/* ==========================================================================
   TEXTE
   ========================================================================== */

.container.bio p{
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.98rem, 3.6vw, 1.1rem);
  line-height: 1.7;
  margin: 0 0 0.25rem 0;

  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;

  color: #212529;
}

/* Liens */
.container.bio a{
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* ==========================================================================
   Infobulles
   ========================================================================== */

.infobulle{
  display: inline;
  max-width: 100%;
}

.infobulle::before,
.infobulle::after{
  max-width: min(320px, 92vw);
  white-space: normal !important;
}

/* ==========================================================================
   Médias
   ========================================================================== */

img, svg, video, iframe, embed, object{
  max-width: 100%;
  height: auto;
}
