/* ================================================== */
/* PROJETS — tabs desktop/mobile, blocs productions  */
/* ================================================== */


/* ------------------------------------------------ */
/* Tabs — structure générale                        */
/* ------------------------------------------------ */

.projets-tabs {
  margin-top: 3rem;
}

.projets-tabs__columns {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* Colonne titres (25 % de la largeur) */
.projets-tabs__titles {
  flex: 0 0 25%;
}

/* Item de titre */
.projets-tabs__item {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1.05;
  cursor: pointer;
  color: #111;
  margin: 0;
  padding-left: 14px;
  position: relative;
  transition: color 0.2s ease;
  text-transform: none !important;
}

.projets-tabs__item:hover {
  color: #01FF01;
}

/* Barre verte animée sur le bord gauche */
.projets-tabs__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #01FF01;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease-out;
}

.projets-tabs__item.is-active {
  color: #01FF01;
}

.projets-tabs__item.is-active::before {
  transform: scaleY(1);
}

/* Colonne contenus */
.projets-tabs__panels {
  flex: 1 1 auto;
}

/* Panels */
.projets-tabs__panel {
  display: none;
  opacity: 0;
}

.projets-tabs__panel.is-active {
  display: block;
  opacity: 1;
  animation: projets-panel-in 0.35s ease-out;
}

.projets-tabs__panel p {
  margin-bottom: 0.8rem;
}

@keyframes projets-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Barre mobile : masquée par défaut (visible uniquement en overlay) */
.projets-tabs__mobilebar {
  display: none;
}


/* ------------------------------------------------ */
/* Tabs — responsive mobile (≤ 800px)              */
/* ------------------------------------------------ */

@media (max-width: 800px) {

  /* Empilement vertical */
  .projets-tabs__columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* État liste : on masque les panels */
  .projets-tabs:not(.is-mobile-open) .projets-tabs__panels {
    display: none;
  }

  /* État overlay (is-mobile-open) : on masque la liste des titres */
  .projets-tabs.is-mobile-open .projets-tabs__titles {
    display: none;
  }

  /* Le panel actif prend tout l'écran */
  .projets-tabs.is-mobile-open .projets-tabs__panels {
    display: block;
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    padding: 1rem 1rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Barre sticky en haut de l'overlay */
  .projets-tabs.is-mobile-open .projets-tabs__mobilebar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 3px solid #01FF01;
    margin-bottom: 1rem;
    z-index: 2;
  }

  /* Bouton retour */
  .projets-tabs__back {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
  }

  .projets-tabs__back i {
    color: #01FF01;
    transition: transform 0.25s ease;
  }

  .projets-tabs__back:hover i {
    transform: scale(1.2);
  }

  /* Titre de l'overlay */
  .projets-tabs__mobiletitle {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    line-height: 1.1;
  }

  /* Panels en mobile */
  .projets-tabs__panel {
    display: none;
    opacity: 0;
  }

  .projets-tabs__panel.is-active {
    display: block;
    opacity: 1;
    animation: projets-panel-in 0.35s ease-out;
  }
}


/* ------------------------------------------------ */
/* Blocs productions liés à un projet               */
/* ------------------------------------------------ */

.projets-productions {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 4px solid #01FF01;
}

.projets-productions__title {
  margin: 0 0 16px 0;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #01FF01;
}

.projets-productions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.projets-productions__button {
  display: inline-block;
  background: #01FF01;
  color: #111111;
  text-decoration: none;
  padding: 10px 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.projets-productions__button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #111111;
}

/* Responsive */
@media (max-width: 767px) {
  .projets-productions {
    margin-top: 28px;
    padding-top: 14px;
  }

  .projets-productions__title {
    font-size: 0.82rem;
  }

  .projets-productions__button {
    font-size: 0.78rem;
    padding: 9px 12px;
  }
}
