@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ----------------------- */
/* RÉINITIALISATION ET GLOBAUX */
/* ----------------------- */
* {
  margin: 0;
  padding: 0;
  font-family: 'medium-montserrat', sans-serif;
  font-optical-sizing: auto;
  box-sizing: border-box;
}

@media (hover: none) and (pointer: coarse) {
  *:hover {
    animation: none !important;
    transition: none !important;
  }
}
html, body {
  height: 100%;
}
body {
  font-family: 'Montserrat', sans-serif;

  overflow-x: hidden;
  color: #333;
}


@font-face {
  font-family: 'extra-bold-montserrat';
  src: url('../../assets/fonts/Montserrat-ExtraBold.ttf') format('truetype');
  
}

@font-face {
  font-family: 'medium-montserrat';
  src: url('../../assets/fonts/Montserrat-Medium.ttf') format('truetype');
  
}



@font-face {
  font-family: 'medium-italic-montserrat';
  src: url('../../assets/fonts/Montserrat-MediumItalic.ttf') format('truetype');
  
}

@font-face {
  font-family: 'bold-italic-montserrat';
  src: url('../../assets/fonts/Montserrat-BoldItalic.ttf.ttf') format('truetype');
  
}

@font-face {
  font-family: 'bold-montserrat';
  src: url('../../assets/fonts/Montserrat-Bold.ttf') format('truetype');
  
}



/* ========================================================================== 
   SECTION PRINCIPALE & STATS 
   ========================================================================== */

/* ---------------------------------------------------------
   Vidéo de fond dans le conteneur de texte
--------------------------------------------------------- */
.text-block-container {
  position: relative;
  width: 100%;
  margin-top: 5%;
  height: 68%; /* Hauteur du bloc central, ajustable */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.bg-video {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Pour adoucir l'arrière-plan */
}

/* ---------------------------------------------------------
   SECTION PRINCIPALE
--------------------------------------------------------- */
#main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  text-align: center;
  height: 100vh;
  margin-top: 24px;
  box-sizing: border-box;
  width: 100%;
}

/* ---------------------------------------------------------
   Bloc central des stats (au-dessus de la vidéo)
--------------------------------------------------------- */
.stats-container {
  pointer-events: none;
  font-family: 'extra-bold-montserrat', sans-serif;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.stats-title,
.stats-footer {
  font-family: 'extra-bold-montserrat', sans-serif;
  font-size: 2.25rem;
  color: #fe4949; /* teinte rosée */
  margin: 0 0;
}

.stat-item {
  font-family: 'extra-bold-montserrat', sans-serif;
  margin: 1em 0;
}

/* ---------------------------------------------------------
   Les compteurs
--------------------------------------------------------- */
.stat-number {
  pointer-events: none;
  display: inline-block; /* largeur limitée au texte */
  font-family: 'extra-bold-montserrat', sans-serif;
  font-size: 3.6rem;
  margin-bottom: 0.05em;
  position: relative;
  color: black;
  transition: color 0.5s ease;
}

/* Pseudo-élément pour le surlignage avec débordement */
.stat-number::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 0;
  left: -10px;  /* déborde légèrement à gauche */
  height: 100%;
  width: 0;
  background: black;
  z-index: -1;
  transition: width 1s ease;
}

/* Lorsque la classe .highlight est ajoutée, le surlignage dépasse de 5px de chaque côté */
.stat-number.highlight::after {
  width: calc(100% + 20px);
}
.stat-number.highlight {
  font-family: 'extra-bold-montserrat', sans-serif;
  color: white;
}

.stat-label {
  pointer-events: none;
  font-family: 'extra-bold-montserrat', sans-serif;
  display: block;
  font-size: 1.8rem;
  color: black;
  margin-top: 0;
}

/* ---------------------------------------------------------
   Animation slide-in pour les éléments
--------------------------------------------------------- */
.slide-in {
  opacity: 0;
  transform: translateX(-100%);
  animation: slideIn 0.6s forwards;
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------------------------------------------------------
   Bulles décoratives
--------------------------------------------------------- */
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%);
}

/* ---------------------------------------------------------
   FLASH NEWS BANNER
--------------------------------------------------------- */
.flash-news-banner {
  align-self: flex-start;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  width: 93%;
  margin-left: 50px;
  margin-right: 50px;
  padding: 15px;
  box-sizing: border-box;
  margin-top: 2%;
  z-index: 2;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.flash-news-banner.hidden {
  opacity: 0;
}

.flash-news-slider {
  display: flex;
  transition: transform 0.5s ease;
  /* Compense le padding horizontal */
  width: calc(100% + 30px);
  margin: 0 -15px;
}

.news-item {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.news-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
  margin-left: 20px;
}

.news-content {
  margin-left: 20px;
  text-align: left;
  color: #fff;
}

.news-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

/* Optionnel : style lorsque l'utilisateur fait glisser */
.flash-news-slider.grabbing {
  cursor: grabbing;
  transition: none;
}

.news-text {
  font-size: 0.9rem;
  margin: 0;
}

/* Points de navigation du slider */
.slider-dots {
  position: absolute;
  bottom: 10px;
  right: 20px;
}

.slider-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  margin-left: 5px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.slider-dots .dot.active {
  opacity: 1;
}



.section-header {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: left;
}

.section-title {
  font-family: 'extra-bold-montserrat', sans-serif;
  font-size: 2.8rem;
  text-align: left;
  color: #131313;
}


.circle {
  border: 3px solid black;
  background-color: white;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-origin: border-box;
  background-clip: border-box;
  transition: background 0.5s ease;
  /* Pour s'assurer que l'image couvre tout le cercle */
  overflow: hidden;
}

/* Animation d'entrée */
@keyframes bounceIn {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Animation de sortie */
@keyframes bounceOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.8);
  }
}

.circle.active {
  animation: bounceIn 0.5s ease-out forwards;
}

.circle.bounce-out {
  animation: bounceOut 0.5s ease-out forwards;
}



/* Par défaut, aucun background-image n’est appliqué.
   Vous pouvez aussi définir d’autres styles pour l’état actif si besoin. */






.title-container {
  margin: 0 50px; 
   margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* Permet aux enfants de prendre toute la hauteur */
}

.section-subtitle {
  font-family: 'bold-montserrat', sans-serif;
  font-size: 1.7rem;
  color: #121212;
  min-width: 1000px;
  margin: 0 auto 0;
  text-align: center;
}

/* Conteneur avec marge latérale de 50px */
.slider-wrapper-container {
  width: 100%;
  padding: 0 80px;
}



@media (hover: none) and (pointer: coarse) {
  /* Désactive l'animation et la mise en forme du focus sur mobile */
  .slide-in:focus,
  .slider-control:focus {
    outline: none;
    animation: none !important;
  }
}
