/* =========================================
   MASCOT PAGE
========================================= */

.op-main--mascosts {
  background-color: #ffffff;
}

.mascots {
  padding: 8rem 0 8rem;
}

.mascots__inner {
  /* couleur par défaut, surchargée par le JS */
  --mascot-color: #93B54C;
}

/* ---------- TABS (layout) ---------- */

.mascots__line {
  position: relative;
  z-index: 11;
  margin: 5rem auto 0;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
}

.mascots__tabs {
  display: grid;
  /* max-width: 124rem; */
  /* grid-template-columns: repeat(3, minmax(0, 1fr));  */
  /* background-color: #f4f4f4; */
  border-bottom: 5px solid var(--mascot-color, #93B54C);
  position: relative;
  padding: 0 2rem;
  gap: 3rem;
  margin: 0 auto 6.5rem;
  width: calc(100% + 5rem);
  left: -2.75rem;
}

.mascots__tabs .tabs-ctn {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: auto;
  width: 100%;
  max-width: 124rem;
  padding: 0 2rem;
}

/* Base de chaque tab */
.mascots__tab {
  position: relative;
  width: 100%;
  min-height: 10rem;  
  width: 38rem;    /* hauteur du ruban */
  padding: 1.6rem 1rem 3.8rem; /* espace pour l’avatar qui déborde */
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #333;
  background: transparent;
  overflow: visible;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  border-right: 2px solid #f4f4f4;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  padding: 0;
  text-align: center;
  padding-left: 6.5rem;
}

.mascots__tab:last-child {
  border-right: none;
}

/* Couleurs de base (inactif, proche du design) */
.mascots__tab--hina {
  background-color: #e6f0c5;
}
.mascots__tab--sana {
  background-color: #e9ddf4;
}
.mascots__tab--nagisa {
  background-color: #fce0ec;
}

/* Avatar : centré, déborde vers le bas */
.mascots__tab-thumb {
    position: absolute;
    left: 0;
    /* top: 0; */
    top: -3rem;
    /* transform: translateX(-50%); */
    /* width: 5.8rem;
    height: 5.8rem; */
    /* border-radius: 50%; */
    width: auto;
    height: 13rem;
    overflow: hidden;
}
.mascots__tab--sana .mascots__tab-thumb {
  left: -2rem;
}

.mascots__tab-thumb img {
  width: 100%;
  height: 100%;
  display: block;
}

.mascots__tab-label {
  white-space: nowrap;
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #111;
}

/* Tab actif : plein + texte blanc */
.mascots__tab.is-active {
  background-color: var(--mascot-color, #93B54C);
  color: #fff;
  /* box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12) inset; */
}

.mascots__tab.is-active .mascots__tab-label {
  color: #fff;
}

/* Coins légèrement arrondis comme sur la maquette */
.mascots__tab:first-child {
  border-top-left-radius: 0.6rem;
}
.mascots__tab:last-child {
  border-top-right-radius: 0.6rem;
}

.gray-bg {
  background: #F4F4F4;
  z-index: 4;
  position: relative;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  /* .mascots__tab {
    font-size: 1.4rem;
    padding: 1.4rem 0.8rem 3.4rem;
  }

  .mascots__tab-thumb {
    width: 5rem;
    height: 5rem;
    bottom: -2.6rem;
  } */
}

@media (max-width: 640px) {
  .mascots__tabs {
    grid-template-columns: 1fr;   /* empile les tabs */
  }

  .mascots__tab {
    border-right: none;
    border-bottom: 2px solid #f4f4f4;
    border-radius: 0;
  }

  .mascots__tab:last-child {
    border-bottom: none;
  }
}


/* ---------- PANELS ---------- */

.mascots__panels {
  text-align: center;
  background: #fff;
  left: -20px;
  position: relative;
  width: calc(100vw - 20px);
  position: relative;
  z-index: 10;
  width: 100vw;
  padding: 0 2rem;
  left: -2.4rem;
}
.mascots__panels::before {
  content: "";
  position: absolute;
  inset: -6.5rem auto auto 0;
  background: #fff;
  width: 100%;
  height: 150%;
  z-index: 6;
}

.mascots__panel {
  display: none;
  position: relative;
  z-index: 10;
}

.mascots__panel.is-active {
  display: block;
}

.mascots__panel-visual img {
  max-width: 70rem;   /* largeur max de l’illustration */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1300px) {
    .mascots__tabs .tabs-ctn {
      flex-direction: column;
      gap: 5rem;
    }
    .mascots__tab {
      width: 100%;
      padding: 0;
      border-radius: 0;
    }
}

@media (max-width: 960px) {
  .mascots__tabs {
    flex-wrap: wrap;
  }

  .mascots__tab {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .mascots {
    padding: 8rem 0 6rem;
  }

  .mascots__tab {
    font-size: 1.4rem;
    text-align: right;
    padding-right: 2rem;
  }

}

@media screen and (max-width: 768px) {
  .mascots {
    padding: 5rem auto 5rem;
  }
}