/*
  Projet : Site 15A
  Fichier : css/base.css
  Version : 0.4.7 — 2026-07-05
  Objectif : Feuille de style de BASE commune à tout le site (chargée par
             quasiment toutes les pages, avant header.css / footer.css / la
             feuille propre à chaque page). Anciennement nommée « club.css »
             pour des raisons historiques (la page Club a servi de modèle) :
             renommée pour refléter son vrai rôle.
             v0.4.6 : ajout des règles d'images responsives (picture display
             contents + picture img height auto), additives et sans effet hors
             des pages reprises qui utilisent <picture>.
*/

/* Global Styles */
body {
  margin: 0;
  font-family: "montserrat";
}

/* Images responsives (repli <picture> + WebP) : le conteneur <picture> est
   transparent en flux (display:contents) pour ne rien changer à la mise en
   page ; les attributs width/height fixent le ratio anti-décalage, et
   height:auto laisse la hauteur se recalculer depuis la largeur pilotée par le
   CSS, sans déformer l'image. N'affecte que les pages reprises (les seules à
   utiliser <picture>). */
picture {
  display: contents;
}

picture img {
  height: auto;
}

.text-blue {
  color: #013cb2;
}

.container-left {
  background-image: url('../images/club2/JonasFondportablE5.0.png');
  background-size: cover;
  background-position: 50% 20%;
  padding: 28rem 1rem;
  margin: 0;
  gap: 5rem;
}

/* .main-background {
  background-image: url('../images/club2/fond2 1.svg');
  background-size: 125vh;
  background-attachment: fixed;

} */

  body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../images/club2/fond2 1.svg') top / cover no-repeat;
  z-index: -1;
  transform: translateZ(0);
}


/* Glass Effect */
.glass {
  border: 1px solid #ffffff33;
  border-radius: 30px;
  padding: 1rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.61), rgb(255 255 255 / 27%));
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75%;
  position: relative;
  bottom: 1rem;
  box-shadow: rgba(0, 0, 0, 0.404) 6px 6px 12px;
  transition: transform 0.3s ease;
}

.glass:hover {
  transform: scale(1.3);
  z-index: 4;
}


/* nav mobile */
/* #pc-nav{
  display: none;
} */
#mobile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: background-color 0.3s ease;
  z-index: 100;
}

.mobile-images {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 0 7px;
}

.mobile-nav-image {
  width: 30px;
  height: auto;
}

#burgerButton {
  display: none;
}

.image-stack {
  position: relative;
}



/* Glass Effect */
/* .glass {
  border: 1px solid #ffffff33;
  border-radius: 30px;
  padding: 1rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.61), rgb(255 255 255 / 27%));
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75%;
  position: relative;
  bottom: 1rem;
  box-shadow: rgba(0, 0, 0, 0.404) 6px 6px 12px;
  transition: transform 0.3s ease;
}
.glass:hover {
  transform: scale(1.3);
  z-index: 4;
} */

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.first-section {
  margin-top: 100vh;
}

.footer-divider {
  margin-bottom: -1rem;
}

/* Image Sections */
.img-section,
.img-tableau,
.img-card {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.img-section img,
.img-tableau img {
  transition: transform 0.3s ease;
}

/* Additional Content */
.additional-content {
  display: none;
}

.user-item {
  perspective: 1000px;
  position: relative;
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s, z-index 0s 0.6s;
}

.user-item:hover {
  z-index: 4;
}

.user-item:hover .card {
  animation: zoomThenRotate 1.3s forwards;
}

.user-item4:hover .card {
  animation: none;
  transform: scale(1.3);
}

.card .front,
.card .back {
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  height: 100%;
}

.card .front {
  border: 1px solid #ffffff33;
  border-radius: 30px;
  padding: 1rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.61), rgb(255 255 255 / 27%));
  backdrop-filter: blur(5px);
  box-shadow: rgba(0, 0, 0, 0.404) 6px 6px 12px;
}

.card .back {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.61), rgb(255 255 255 / 27%));
  backdrop-filter: blur(5px);
  box-shadow: rgba(0, 0, 0, 0.404) 6px 6px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
}

.card .back a {
  background: -webkit-linear-gradient(left, #084abf 0%, #2731ad 39%, #401d9e 77%, #491699 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.5rem;
  font-family: "montserrat";
  text-align: center;
}

/* Scroll Buttons */
.scroll-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1111111;
}

.scroll-buttons button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

.scroll-buttons button:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

/* Apparition/disparition en fondu (demande Cédrik, 2026-07-05) : au lieu de
   couper net (display: none/flex posé par js/nav.js), le bouton s'estompe
   doucement. js/nav.js ajoute/retire cette classe au lieu de couper l'affichage
   directement — le bouton garde sa place dans la rangée, il devient juste
   invisible et non cliquable pendant le fondu. */
.scroll-buttons button.is-hidden {
  opacity: 0;
  pointer-events: none;
}


/* balle jaune depalcement */
.hero-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  cursor: grab;
  user-drag: none;
  user-select: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image {
  position: absolute;
  cursor: grab;
  width: 50%;
}

.hero-image:active {
  cursor: grabbing;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 28rem;
  padding: 0 2rem;
}

/* Media Queries */
@media (min-width: 576px) {
  .hero-image {
    top: 50%;
  }

  .footer-divider {
    margin-bottom: -4rem;
  }
}

@media (orientation: landscape) {
  .first-section {
    margin-top: 18rem;
  }

  .hero {
    height: 150vh;
  }

  .hero-image {
    width: 27rem;
  }
}

@media (min-width: 768px) {

  .main-background {
    background-size: 100%;
    background-attachment: fixed;
  }

  .mobile-images {
    height: 95px;
  }

  .mobile-nav-image.gif-scroll-mobile-bleu {
    height: auto;
    width: 155px !important;
  }

  .hero-content {
    padding: 0 5rem;
  }

  #burgerButton {
    display: none;
  }

  #classic-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11rem;
    margin-left: 2rem;
    margin-top: 1rem;
  }

  #classic-nav a {
    color: #fff;
    text-decoration: none;
    font-family: "montserrat";
    font-weight: 600;
  }

  .hero {
    height: 150vh;
    width: 100%;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 42rem;
    padding: 0 2rem;
  }

  .hero-image {
    top: 38%;
  }

  .first-section {
    margin-top: 100vh;
  }

  .container-left {
    padding: 19rem 2rem;
    background-image: url(../images/club2/Jonas\ large5.1.png);
    flex-direction: row-reverse;
  }

  .container-left .section-title {
    flex-direction: row-reverse;
    gap: 1rem;
  }

  .container-left .text-content {
    text-align: right;
  }

  .hero-title {
    font-size: 3rem;
  }

  .container-left h2 {
    text-align: end;
  }

  .text-content {
    text-align: left;
  }

  .container>div {
    flex: 1 1 50%;
    margin-bottom: 5rem;
    position: relative;
    bottom: 3rem;
  }

  .section-title {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
  }

  .section-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .main-background {
    background-image: url(../images/club2/Fondbase-club-15A.jpg);
  }

  /* .main-background {
    background-image: url('/images/club2/fond2 1.svg');
    background-size: cover;
    background-attachment: fixed;
  } */

  .img-tableau {
    display: none;
  }

  .img-section:hover img,
  .img-tableau:hover img {
    transform: scale(1.3);
    z-index: 4;
  }

  .additional-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0rem;
  }

  .dashboard-item1 {
    width: 6rem;
    top: 3rem;
    left: 7rem;
    height: 7rem;
  }

  .dashboard-item2 {
    width: 6rem;
    height: 3rem;
    top: 2rem;
    left: 6rem;
  }

  .dashboard-item3 {
    width: 7rem;
    height: 4rem;
    top: 3rem;
    right: 2rem;
    z-index: 2;
  }

  .dashboard-item4 {
    width: 6rem;
    height: 4rem;
    top: 3rem;
    left: 6rem;
    z-index: 2;
  }

  .dashboard-item5 {
    width: 13rem;
    bottom: 2rem;
    height: 7rem;
    left: 4rem;
    z-index: 3;
  }

  .dashboard-item6 {
    width: 7rem;
    height: 5rem;
    z-index: 2;
    left: 2rem;
  }

  .dashboard-item7 {
    width: 6rem;
    height: 3rem;
    bottom: 2rem;
    left: 8rem;
    z-index: 2;
  }

  .dashboard-item8 {
    width: 11rem;
    bottom: 3rem;
    height: 4rem;
    left: 6rem;
  }

  .dashboard-item9 {
    width: 4rem;
    bottom: 5rem;
    height: 7rem;
    left: 3rem;
  }

  .user-item1 {
    width: 8rem;
    height: 5rem;
    top: 1rem;
    left: 15rem;
  }

  .user-item2 {
    width: 8rem;
    height: 5rem;
    top: 0rem;
    left: 17rem;
  }

  .user-item3 {
    width: 8rem;
    height: 9rem;
    top: 0rem;
    left: 11rem;
  }

  .user-item4 {
    width: 15rem;
    height: 8rem;
    z-index: 3;
    left: 10rem;
  }

  .user-item5 {
    width: 7rem;
    left: 8rem;
    height: 5rem;
    top: 1rem;
  }

  .user-item6 {
    width: 8rem;
    height: 5rem;
    bottom: -1rem;
    left: 17rem;
  }

  .user-item7 {
    width: 8rem;
    height: 5rem;
    bottom: 0rem;
    left: 20rem;
  }

  .card .back a {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .footer-divider {
    margin-bottom: -5rem;
  }
}

@media (min-width: 992px) {
  h2 {
    font-size: 1.5rem;
  }

  .text-content {
    font-size: 1.1rem;
  }

  .hero-image {
    width: 30rem;
    position: relative;
    left: 23%;
    top: 0;
  }

  .hero-title {
    margin-bottom: 0;
  }

  .mobile-images {
    display: none;
  }

  #pc-nav {
    display: block;
  }

  .pc-images {
    position: fixed;
    top: 400px;
    padding: 0;
    right: 20px;
    transform: translateY(-50%);
    z-index: 100;
    transition: right 0.3s ease;
    gap: 0;
    display: grid;
    border-radius: 45px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .pc-images .pc-nav-image {
    width: 100px !important;
  }

  .container-left {
    gap: 5rem;
    padding: 19rem 11rem !important;
  }

  .footer-divider {
    margin-bottom: -6rem;
  }
}

@media (min-width: 1200px) {

  /* .container-left {
    padding: 19rem 11rem;
  } */
  /* .container-left .section-title {
    top: 22px;
    position: relative;
  } */
  .container {
    padding: 195px 11rem;
  }

  .mobile-images {
    display: none;
  }

  #pc-nav {
    display: block;
  }

  .pc-images {
    position: fixed;
    top: 388px;
    padding: 0;
    right: 20px;
    transform: translateY(-50%);
    z-index: 100;
    transition: right 0.3s ease;
    gap: 0;
    display: grid;
    border-radius: 45px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .img-section img {
    width: 100% !important;
  }

  .hero-content {
    padding: 0 15rem;
  }

  .gif-scroll {
    width: 195px !important;
  }

  h2 {
    font-size: 1.75rem;
  }

  .text-content {
    font-size: 1.2rem;
  }

  .footer-divider {
    margin-bottom: -9rem;
  }
}

@media (min-width: 1400px) {
  .footer-divider {
    margin-bottom: -10rem;
  }

  h2 {
    font-size: 3.5rem;
  }

  .text-content {
    font-size: 1.3rem;
    line-height: 2rem;
    font-weight: 600;
  }

  .picto {
    width: 6rem;
  }

  .container {
    padding: 0 15rem;
  }

  .container-left {
    padding: 25rem 15rem;
    gap: 6.5rem;
  }

  .dashboard-item1 {
    width: 10rem;
    top: 4rem;
    left: 7rem;
    height: 13rem;
  }

  .dashboard-item2 {
    width: 12rem;
    height: 10rem;
    top: 1rem;
    left: 7rem;
  }

  .dashboard-item3 {
    width: 8rem;
    height: 8rem;
    top: 4rem;
    right: 1rem;
    z-index: 2;
  }

  .dashboard-item4 {
    width: 11rem;
    height: 8rem;
    top: 5rem;
    left: 4rem;
    z-index: 2;
  }

  .dashboard-item5 {
    width: 20rem;
    bottom: 2rem;
    z-index: 3;
    height: auto;
    left: 3rem;
  }

  .dashboard-item6 {
    width: 8rem;
    height: 10rem;
    bottom: 3rem;
    left: 3rem;
    z-index: 2;
  }

  .dashboard-item7 {
    width: 11rem;
    height: 7rem;
    bottom: 1rem;
    left: 9rem;
    z-index: 2;
  }

  .dashboard-item8 {
    width: 16rem;
    bottom: 3rem;
    height: 10rem;
    left: 7rem;
  }

  .dashboard-item9 {
    width: 8rem;
    bottom: 6rem;
    height: 15rem;
    left: 1rem;
  }

  .user-item1 {
    width: 14rem;
    height: 8rem;
    top: -1rem;
    left: 28rem;
  }

  .user-item2 {
    width: 14rem;
    height: 9rem;
    top: 2rem;
    left: 30rem;
  }

  .user-item3 {
    width: 11rem;
    height: 9rem;
    left: 16rem;
    top: -6rem;
  }

  .user-item4 {
    width: 25rem;
    height: 13rem;
    left: 12rem;
    z-index: 3;
  }

  .user-item5 {
    width: 11rem;
    height: 9rem;
    top: 13rem;
    left: 9rem;
  }

  .user-item6 {
    width: 14rem;
    height: 10rem;
    bottom: 7rem;
    left: 15rem;
  }

  .user-item7 {
    width: 14rem;
    height: 9rem;
    bottom: 0rem;
    left: 15rem;
  }
}