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

/* ==========================================================================
   0) VARIABLES + FOND PAGE
   ========================================================================== */

:root {
  --stancreation-bio-bg: rgb(0, 32, 93);
  /* bleu nuit */
}

/* ✅ BIO uniquement */
body.page-template-page-bio {
  background-color: var(--stancreation-bio-bg);
}

/* ==========================================================================
     1) WRAPPER + HERO
     ========================================================================== */

.stancreation-bio {
  position: relative;
  z-index: 2;
}

.stancreation-bio-hero {
  position: relative;
  z-index: 2;
  padding: 10% 13% 0 13%;
}

.stancreation-bio-hero-contenu {
  max-width: var(--container);
  margin: 0 auto;
}

.stancreation-bio-titre {
  margin: 0 0 1.2rem 0;
  text-align: left;
  color: #fff;
}

/* ==========================================================================
     2) SVG SOUS H1 (BIO)
     ========================================================================== */

:root {
  --stancreation-bio-svg-delay: .55s;

  --stancreation-bio-svg-line-dur: .75s;
  --stancreation-bio-svg-square-dur: .55s;

  --stancreation-bio-svg-line-gap: .12s;
  --stancreation-bio-svg-square-gap: .18s;
}

.stancreation-bio-hero-svg {
  margin-bottom: clamp(1.8rem, 3.2vw, 2.8rem);
}

.stancreation-bio-hero-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Couleur (si besoin) */
.stancreation-bio-hero-svg .cls-1 {
  fill: #fff !important;
}

/* INIT */
.stancreation-bio-hero-svg #sc-line-1,
.stancreation-bio-hero-svg #sc-line-2 {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.stancreation-bio-hero-svg #sc-square {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: translateY(.35rem) scale(.7);
  will-change: transform, opacity;
}

/* ENTRÉE */
body.stancreation-bio-loaded .stancreation-bio-hero-svg #sc-line-1 {
  animation: scBioLineGrow var(--stancreation-bio-svg-line-dur) cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: var(--stancreation-bio-svg-delay);
}

body.stancreation-bio-loaded .stancreation-bio-hero-svg #sc-line-2 {
  animation: scBioLineGrow var(--stancreation-bio-svg-line-dur) cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: calc(var(--stancreation-bio-svg-delay) + var(--stancreation-bio-svg-line-gap));
}

body.stancreation-bio-loaded .stancreation-bio-hero-svg #sc-square {
  animation: scBioSquarePop var(--stancreation-bio-svg-square-dur) cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: calc(var(--stancreation-bio-svg-delay) + var(--stancreation-bio-svg-line-gap) + var(--stancreation-bio-svg-square-gap));
}

/* SORTIE */
body.stancreation-transition-active .stancreation-bio-hero-svg #sc-line-1,
body.stancreation-transition-active .stancreation-bio-hero-svg #sc-line-2 {
  animation: scBioLineOut .35s cubic-bezier(.22, .61, .36, 1) forwards;
}

body.stancreation-transition-active .stancreation-bio-hero-svg #sc-square {
  animation: scBioSquareOut .35s cubic-bezier(.22, .61, .36, 1) forwards;
}

/* KEYFRAMES */
@keyframes scBioLineGrow {
  to {
    transform: scaleX(1);
  }
}

@keyframes scBioLineOut {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@keyframes scBioSquarePop {
  0% {
    opacity: 0;
    transform: translateY(.35rem) scale(.7);
  }

  70% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scBioSquareOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(.35rem) scale(.7);
  }
}

/* ==========================================================================
     3) GRILLE BIO (2 colonnes)
     ========================================================================== */

.stancreation-bio-grille {
  max-width: var(--container);
  margin: 5% auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);

  /* important pour que la colonne droite puisse prendre la hauteur */
  align-items: stretch;
}

/* Intro courte */
.stancreation-bio-texte {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  letter-spacing: 0;
  color: #fff;
}

/* Texte principal */
.stancreation-bio-texte-principal {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 100;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  letter-spacing: 0;
  max-width: 85%;
  color: #fff;
}

/* ==========================================================
   RÉSEAUX BIO
   ========================================================== */

.stancreation-bio-reseaux {
  display: flex;
  gap: 3rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.stancreation-bio-reseau-lien {
  display: inline-flex;
  gap: 2rem;
  color: #fff;
  font-size: 2rem;
  transition: all .25s cubic-bezier(.22, .61, .36, 1);
  text-decoration: none;
}

.stancreation-bio-reseau-lien:hover {
  color: rgb(212, 175, 55);
  /* change ici */
}




/* ==========================================================================
   5) NUAGE DE LOGOS (à droite du texte) — CLEAN
   Objectif : hover = juste changement de couleur (pas de fond)
   Taille logos contrôlée par height (responsive)
   ========================================================================== */

/* wrapper dans la colonne droite */
.stancreation-bio-nuage-wrapper {
  position: relative;
  height: 100%;
}

/* canvas = hauteur colonne */
.stancreation-bio-nuage-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(26rem, 55vh, 36rem);
  overflow: hidden;
}

/* logo (placé en absolute par JS) */
.stancreation-bio-nuage-logo {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* petit padding “zone de clic” sans créer de fond */
  padding: .4rem .6rem;
  text-decoration: none;
  will-change: transform;
  transition: transform .12s cubic-bezier(.22, .61, .36, 1);
}




/* SVG (img) */
.stancreation-bio-nuage-logo img {
  display: block;
  /* 🔥 taille du logo (tu règles ici) */
  height: var(--bioLogoH, clamp(3rem, 4.5vw, 4.5rem));
  width: auto;
  /* blanc par défaut */
  filter: brightness(0) invert(1);
  opacity: 1;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}


.stancreation-bio-nuage-logo:hover img {
  filter: brightness(0) saturate(100%) invert(68%) sepia(55%) saturate(540%) hue-rotate(10deg) brightness(95%) contrast(95%);
  transform: scale(1.03);
}


/* Optionnel : effet “réactif” léger au hover (sans fond) */
.stancreation-bio-nuage-logo:hover {
  transform: translate3d(var(--nx, 0px), var(--ny, 0px), 0) scale(1.01);
}








/* ==========================================================================
     6) RESPONSIVE
     ========================================================================== */

/* Responsive */
@media (max-width: 1100px) {
  .stancreation-bio-nuage-canvas {
    min-height: clamp(22rem, 60vh, 36rem);
  }

  .stancreation-bio-nuage-logo img {
    height: 3rem;
  }
}


@media (max-width: 1100px) {

  .stancreation-bio-hero {
    padding: 20% 8% 0 8%;
  }

  .stancreation-bio-texte {
    margin: 0 0 2.5rem 0;
    max-width: 70ch;
  }

  .stancreation-bio-texte-principal {
    max-width: 100%;
  }

  .stancreation-bio-grille {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);  }
}


@media (max-width: 1100px) {
  .stancreation-bio-reseaux {
    display: none;
  }
}

@media (max-width: 1100px){

  /* 1 colonne = texte puis nuage */
  .stancreation-bio-grille{
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ordre explicite (au cas où) */
  .stancreation-bio-colonne-gauche{
    order: 1;
  }
  .stancreation-bio-nuage-wrapper{
    order: 2;
  }

  /* le nuage devient une “carte” sous le texte */
  .stancreation-bio-nuage-wrapper{
    height: auto;
  }
  .stancreation-bio-nuage-canvas{
    min-height: clamp(22rem, 55vh, 34rem);
  }

  .stancreation-bio-nuage-logo img {
    height: 4rem;
  }
}