/* Polices d'écriture */

@font-face {
  font-family: 'Sublima';
  src: url('/assets/fonts/sublima.eot'); /* IE9 Compat Modes */
  src: url('/assets/fonts/sublima.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/assets/fonts/sublima.otf') format('opentype'), /* Open Type Font */
       url('/assets/fonts/sublima.woff') format('woff'), /* Modern Browsers */
       url('/assets/fonts/sublima.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('/assets/fonts/sublima.svg#Sublima') format('svg'); /* Legacy iOS */
}

@font-face {
  font-family: 'Interphases1';
  src: url('/assets/fonts/interphases1.eot'); /* IE9 Compat Modes */
  src: url('/assets/fonts/interphases1.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/assets/fonts/interphases1.otf') format('opentype'), /* Open Type Font */
       url('/assets/fonts/interphases1.woff') format('woff'), /* Modern Browsers */
       url('/assets/fonts/interphases1.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('/assets/fonts/interphases1.svg#Interphases1') format('svg'); /* Legacy iOS */
}

@font-face {
  font-family: 'Interphases2';
  src: url('/assets/fonts/interphases2.eot'); /* IE9 Compat Modes */
  src: url('/assets/fonts/interphases2.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/assets/fonts/interphases2.otf') format('opentype'), /* Open Type Font */
       url('/assets/fonts/interphases2.woff') format('woff'), /* Modern Browsers */
       url('/assets/fonts/interphases2.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('/assets/fonts/interphases2.svg#Interphases2') format('svg'); /* Legacy iOS */
}

/* Styles de base */


html {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, blockquote, figure, figcaption, pre, hr, fieldset, legend, button, input, textarea, table, th, td {
  margin: 0;
  padding: 0;
}


/* Styles de base */

body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  overflow: hidden;
  background: #176fc7; 
}


/* Styles de la sidebar */

.sidebar {
  width: 26%;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* Empêcher les bulles de déborder */
  background: linear-gradient(180deg, #04fafd, 5%, #119dff, 50%, #030423);
  z-index: 10; /* Supérieur au z-index des bulles */
}

/* Styles pour la navigation mobile qui s'affichera à la place de la sidebar */

.mobile-navbar-links {
  display: none; /* Cachez par défaut et affichez uniquement dans la vue mobile */
  position: absolute; /* Absolument positionné pour s'aligner sur le fond */
  bottom: 10px; /* À la base de l'écran */
  left: 0;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour améliorer la visibilité */
  z-index:1000;
}

.mobile-navbar-links a {
  display: inline-block; /* Pour aligner horizontalement */
  color: white;
  padding: 10px;
  text-decoration: none;
  font-family: "Sublima", sans-serif;
}

.mobile-navbar-links:hover {
  color: #deeeff;
  transform: scale(1.1);
}

.mobile-navbar-links a:hover {
  color: #deeeff;
  transform: scale(1.1);
}


/* Styles de la navbar */

.navbar-logo img {
  width: 160px;
  margin: 10px auto 80px; 
  transform: translateX(4px);
  position: relative;
  z-index: 20; 
}

.navbar-links a {
  color: white;
  padding: 15px;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 48px;
  margin: 50px 0; 
  text-align: center; 
  position: relative;
  z-index: 20;
  font-family: "Sublima", sans-serif;
}

.navbar-links a:hover {
  color: #deeeff;
  transform: scale(1.1);
}

.navbar-links a{
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;         /* Standard syntax */
}


/* Styles du contenu principal */

.main-content {
  flex-grow: 1;
  height: 100vh;
  position: relative;
}

.bg {
    background-image: url('/assets/img/accueil.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.content {
  position: relative;
  color: white;
  text-align: center;
  z-index: 2;
}

.content h1 {
  font-size: 75px;
  margin-bottom: 20px;
}

.content h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-selector a {
    display: inline-block;
    margin-left: 5px;
}

.language-selector img {
    width: 50px; /* Ajustez la taille selon votre besoin */
    height: 35px;
    cursor: pointer;
    margin-left:15px;
}


/* Styles d'animation des bulles */


.wrapper {
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, #04fafd, 5%, #119dff, 50%, #030423);
  position: absolute;
}

.wrapper h1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  font-family: sans-serif;
  letter-spacing: 1px;
  word-spacing: 2px;
  color: #fff;
  font-size: 40px;
  text-transform: uppercase;
}

.wrapper div {
  height: 60px;
  width: 60px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  position: absolute;
  top: 10%;
  left: 10%;
  animation: 4s linear infinite;
}

div .dot {
  height: 10px;
  width: 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 20%;
  right: 20%;
}

.wrapper div:nth-child(1) {
  top: 20%;
  left: 20%;
  animation: animate 8s linear infinite;
}

.wrapper div:nth-child(2) {
  top: 60%;
  left: 80%;
  animation: animate 10s linear infinite;
}

.wrapper div:nth-child(3) {
  top: 40%;
  left: 40%;
  animation: animate 3s linear infinite;
}

.wrapper div:nth-child(4) {
  top: 66%;
  left: 30%;
  animation: animate 7s linear infinite;
}

.wrapper div:nth-child(5) {
  top: 90%;
  left: 10%;
  animation: animate 9s linear infinite;
}

.wrapper div:nth-child(6) {
  top: 30%;
  left: 60%;
  animation: animate 5s linear infinite;
}

.wrapper div:nth-child(7) {
  top: 70%;
  left: 20%;
  animation: animate 8s linear infinite;
}

.wrapper div:nth-child(8) {
  top: 75%;
  left: 60%;
  animation: animate 10s linear infinite;
}

.wrapper div:nth-child(9) {
  top: 50%;
  left: 50%;
  animation: animate 6s linear infinite;
}

.wrapper div:nth-child(10) {
  top: 45%;
  left: 20%;
  animation: animate 10s linear infinite;
}

.wrapper div:nth-child(11) {
  top: 10%;
  left: 90%;
  animation: animate 9s linear infinite;
}

.wrapper div:nth-child(12) {
  top: 20%;
  left: 70%;
  animation: animate 7s linear infinite;
}

.wrapper div:nth-child(13) {
  top: 20%;
  left: 20%;
  animation: animate 8s linear infinite;
}

.wrapper div:nth-child(14) {
  top: 60%;
  left: 5%;
  animation: animate 6s linear infinite;
}

.wrapper div:nth-child(15) {
  top: 90%;
  left: 80%;
  animation: animate 9s linear infinite;
}

@keyframes animate {
  0% {
    transform: scale(0) translateY(0) rotate(70deg);
  }
  100% {
    transform: scale(1.3) translateY(-100px) rotate(360deg);
  }
}


/* Responsive */

@media (max-width: 1200px) {
  .sidebar {
    display: none;
  }

  .content h2 {
      display:none;
  }
  .content h1 {
      font-size:60px;
  }
  .mobile-navbar-links {
    display: flex; 
    flex-direction: column;
    justify-content: center;
    position: fixed; 
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
  }

  .mobile-navbar-links a {
    color: white;
    padding: 2.5vw; 
    text-decoration: none;
    font-size: 4vw; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .mobile-navbar-links a:last-child {
    border-bottom: none; 
  }

  .content h1, .content h2 {
    text-align: center;
    color: white;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 768px) {
  .mobile-navbar-links a {
    padding: 2vw; 
    font-size: 3.5vw; 
  }  
  .content h1 {
      font-size:50px;
  }
  .language-selector {
        top: 10px;
        right: 10px;
    }
  .language-selector img {
        width: 35px;
        height: 25px;
        margin-left:10px;
    }
}

@media (max-width: 480px) {
  .mobile-navbar-links a {
    padding: 3vw; 
    font-size: 5vw; 
  }
   .content h1 {
      font-size:40px;
  }
  .language-selector {
        top: 5px;
        right: 5px;
    }
    .language-selector img {
        width: 30px;
        height: 22px;
        margin-left:5px;
    }
}

@media (max-width: 320px) {
  .mobile-navbar-links a {
    padding: 4vw; 
    font-size: 6vw; 
  }
}