/* styles.css */
:root {
  --animation-duration: 2s; /* 5 secondes */
  --color-primary: #3561bd; /* Couleur principale */
  --color-secondary: #2ecc71; /* Couleur secondaire */
  --color-accent: #e74c3c; /* Couleur d'accent */
  --color-de-fond: #f2f4f3;
  --color-font-sombre: #1f1300;
  /*   1F1300 licorice dark color  #82A6B1 cadet grey */
  --border-radius: 10px; /* Rayon de bordure global */
  overflow-x: hidden;
}

body {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-style: normal;
  margin: 0;
  padding: 0;
  background-color: var(--color-de-fond);
  color: var(--color-font-sombre);
  margin: 0;
}
a:link
{
  color: var(--color-secondary);
  font-weight:bold;
  text-decoration:none;
}
h1 {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-style: normal;
}
h2 {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-style: normal;
}

/* Section */

#hero-banner,
#explication-ra {
  /*     visibility:hidden;
    display:none; */
}

#intro {
  position: fixed;
  width: 50%;
}

#loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 4s;
  z-index: 20000;
}

.loading-content {
  text-align: center;
}

#loading-creature-container {
  width: 200px;
  height: 200px;
  background-color: var(--color-primary);
  position: relative;
  margin-bottom: 20px;
}
.centrage-creature {
  position: absolute; /* Positionnez cet élément de manière absolue par rapport à #loading-page */
  top: 0; /* Positionnez-le en haut de #loading-page */
  left: 50%; /* Centre horizontalement */
  transform: translateX(-50%); /* Ajustez pour centrer parfaitement */
  z-index: 2; /* Assurez-vous qu'il est au-dessus de #intro */
  z-index: 100; /* Assurez-vous qu'il est au-dessus des autres éléments */
  display: block; /* Assurez-vous qu'il est toujours affiché */
}
#loading-creature {
  width: 100%;
  height: 100%;
}

#loading-bar-container {
  width: 200px;
  height: 5px;
  background-color: #ddd;
  border-radius: 0px;
  bottom: -200px;
  overflow: hidden;
  position: relative;
}

#loading-focil-container {
  width: 200px;
  height: 200px;
  background-color: none;
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  margin: calc(50vw - 100px);
}

#loading-bar {
  width: 0;
  height: 100%;
  background-color: #4caf50; /* cest quoi cette coulleur */
  animation: load var(--animation-duration) forwards;
}

@keyframes load {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

#hero-banner {
  display: block;
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 50px 0;
  height: 100vh;
}

.animated-text {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-style: normal;
  /*     overflow: hidden; */
  white-space: nowrap;
  display: inline-block;
  color: var(--color-de-fond);
  z-index: 10;
}

.animated-text span {
  /*   overflow: hidden; */
  /*   top: 1em; /*pourquoi ca ne fonction que avec animatE mais apres anime ca sil t epliat */
}

.dynamic-word {
  position: relative;
  z-index: 1; /* Assure que le mot est entre les émojis avant et arrière */
  opacity: 0;

  animation: motVivant 2s normal ease-in-out forwards;
  animation-delay: var(--animation-duration);
}
.preanimeContainer1 {
  position: relative; /* Assurez-vous que l'élément est positionné relativement */
  animation: deBasEnHaut 1s normal cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: var(
    --animation-duration
  ); /* Utilisez une variable CSS pour le délai */
}
.preanimeContainer2 {
  position: relative; /* Assurez-vous que l'élément est positionné relativement */
  animation: deBasEnHaut 2s normal cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: var(
    --animation-duration
  ); /* Utilisez une variable CSS pour le délai */
}
.preanimeContainer3 {
  position: relative; /* Assurez-vous que l'élément est positionné relativement */
  animation: deBasEnHaut 3s normal cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: var(
    --animation-duration
  ); /* Utilisez une variable CSS pour le délai */
}
.preanimeContainer4 {
  position: relative; /* Assurez-vous que l'élément est positionné relativement */
  animation: deBasEnHaut 4s normal cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: var(
    --animation-duration
  ); /* Utilisez une variable CSS pour le délai */
}

@keyframes deBasEnHaut {
  0% {
    transform: translateY(70vh); /* Commence à -10vh */
  }
  100% {
    transform: translateY(0vh); /* Termine à 10vh */
  }
}

#NautileSautiyante {
  position: absolute;
  width: 250px;
  opacity: 1;
  top: -25vh;
  left: -20vw;
  animation: float-up 2.5s ease-in-out infinite;
  animation-delay: var(--animation-duration);
  z-index: 0;
  font-size: 0.8em;
  overflow: hidden;
}
#OursinSautiyante {
  position: absolute;
  width: 200px;
  opacity: 1;
  top: -100px;
  left: -0vw;
  animation: float-up 2s ease-in-out infinite;
  animation-delay: var(--animation-duration);
  z-index: 0;
  font-size: 0.8em;
  overflow: hidden;
}
#MeduseSautiyante {
  position: absolute;
  width: 160px;
  opacity: 1;
  top: 0;
  left: 40vw;
  animation: float-up 2.5s ease-in-out infinite;
  animation-delay: var(--animation-duration);
  z-index: 2;
  font-size: 0.8em;
  overflow: hidden;
}
#EtoileSautiyante {
  position: absolute;
  width: 300px;
  opacity: 1;
  top: 10vh;
  left: 0;
  animation: float-up 1.7s ease-in-out infinite;
  animation-delay: var(--animation-duration);
  z-index: 0;
  font-size: 0.8em;
  overflow: hidden;
}

.emoji {
  position: absolute;
  font-size: 0.5em;
  opacity: -1;
  display: none;
}

.word {
  /*       position: relative; */
  z-index: 1; /* Assure que le mot est entre les émojis avant et arrière */
  /*       opacity: 0; */
  /*       animation: motVivant 1s normal ease-in-out forwards; */
  /*       animation-delay: var(--animation-duration); */
}
@keyframes motVivant {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0px);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#lereste {
  display: none; /*! !!!!!!!!!!!!!!noublie pas de le repasser en none sinon c la merde */
}

#arrow-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid white;
  margin: 20px auto;
  cursor: pointer;
}

#explication-ra,
#inventaire-fossiles,
#financeurs-credits {
  padding: 20px;
  height: 100vh;
}

#explication-ra {
  /* display: none;a supprimer ici */
  padding: 20px;
  text-align: center;
  background-color: var(--color-primary);
  background-image: url("https://cdn.glitch.global/efcb4e9c-2622-4b77-b75d-39881b6b4401/1745675191288.jpg?v=1745675217200"); /* Chemin vers votre image */
  background-size: cover; /* L'image couvre toute la section */
  background-position: center; /* Centre l'image */
  position: relative;
}

#explication-ra h2 {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--color-de-fond);
  text-align: center;
}

#explication-ra p {
  font-size: 1.2em;
  color: var(--color-de-fond);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

/* CAPSULE */

.info-bubble {
  background-color: var(--color-accent);
  display: flex;
  text-align: center;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 20px auto;
  font-weight: bold;
  width: 80%;
  color: var(--color-de-fond);
}
.BoutonFermeture{
  position:absolute;
  left: 85%;
  top:10px;
  font-size: 3em;
}
#MicroNo{
  margin: 20px auto;
}
#btn-immersive-nul {
  width: 60px;
  height: 60px;
}





/* aparition des bouton en fonction du OS et du navigateur */

#btn-immersive {
  display: none; /* remetre ici none sinon cane va pas  */
}
#btn-fixe {
  display: block; /* remetre ici none sinon cane va pas  */
}
#messageIphone {
  display: block; /* remetre ici none sinon cane va pas  */
}
#messageNavigateur {
  display: none; /* remetre ici none sinon cane va pas  */
}
#PanelIOS{
  display: none; /* remetre ici none sinon cane va pas  */
}

.capsule-menu {
  display: flex; /* none;  Masqué par défaut !!!!!!!!*/
  flex-direction: column;
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  z-index: 1000;
}
.capsule-icons {
  display: flex;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.4); /* Fond semi-transparent */
  border-radius: 55px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px); /* Effet de flou */
  padding: 10px 20px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.capsule-menu .icon {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.2em;
  cursor: pointer;
  width: 60px;
  height: 60px;
}

.rondSignalitique {
  width: 40px;
  height: 40px;
  border-radius: 30px;
  border: 10px solid var(--color-primary);
  overflow: hidden;
}
.TraitSignalitique {
  width: 00px;
  height: 50px;
  border-radius: 30px;
  border: 5px solid var(--color-primary);
  transform: rotate(45deg) translateY(-15px) translateX(3px);
}

.container {
  position: relative;
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.phone {
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 4px solid #fff;
  border-radius: 2px;
  overflow: hidden;

  transform: translateY(-50%);
  animation: movePhone 3s ease-in-out infinite;
}

.phone::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 80%;
  background: inherit;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  z-index: -1;
}

@keyframes movePhone {
  0%,
  100% {
    left: 0px;
  }
  50% {
    left: calc(100% - 25px);
  }
}

.front-rectangle {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 40px;
  height: 40px;

  overflow: hidden;
}

.rotation-bg-image {
  position: absolute;
  top: px;
  left: 0;
  width: 60px;
  height: 60px;

  animation: rotate 10s infinite linear;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.recontainer {
  position: relative;
  width: 60px;
  height: 60px;
  overflow: ; /* Caché tout ce qui dépasse */
  /* Forme rectangulaire */
}

.front-rectangle svg path {
  fill: var(--color-de-fond);
  stroke: var(--color-primary);
  stroke-width: 7;
}
.rotation-bg-image svg path {
  stroke: var(--color-primary);
  stroke-width: 7;
}
.container svg path {
  stroke: var(--color-primary);
  stroke-width: 7;
}
#LienXR{
 color:var(--color-primary);
text-decoration: underline;
}

/* Focile */
#fossiles {
  padding: 20px;
  text-align: center;
  color: var(--color-font-sombre);
}

#fossiles h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--color-font-sombre);
}

#fossiles p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

/* FOSSILE CARD */

.fossile-card {
  display: inline-block;
  width: 300px;
  height: 300px;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  vertical-align: top;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.fossile-date {
  color: var(--color-de-fond);
  padding: 10px;
  font-size: 1em;
  text-transform: uppercase;
  font-weight: 500;
}

.fossile-card h2 {
  color: var(--color-de-fond);
  font-size: 1.5em;
  margin-top: 0%;
  text-transform: uppercase;
  line-height: 1;
}

.fossile-card h3 {
  color: var(--color-de-fond);
  font-size: 1em;
  margin-top: 20%;
  text-transform: uppercase;
}

.imageFossille {
  width: 70%;
  height: 150px;
  background-size: cover;
  background-position: center;
  margin-left: auto;
  margin-right: auto;
  visibility: hidden;
}

.fossile-card p {
  color: var(--color-de-fond);
  line-height: 0.2;
  font-size: 0.9em;
  margin-top: 20px;
  font-weight: 500;
}

/*    Foire au question */
#faq {
  padding: 20px;
}

.faq-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.faq-item {
    margin-bottom: 10px;
    
    border-radius: 5px;
    overflow: hidden;

}

.faq-question {
  font-weight: 400;
  font-size: 1.2em;
  color: var(--color-accent);
  margin-bottom: 10px;
  padding: 15px;
  background-color: var(--color-de-fond);
  cursor: pointer;
  font-weight: bold;
  position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 1.2em;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    content: '-';
    margin-bottom: 20px;
}

.faq-answer {
  font-size: 1em;
  color: #555;
  margin-left: 20px;
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;

}

/* FOOTER*/

footer {
  background-color: var(--color-accent);
  color: var(--color-de-fond);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40vh;
  border: 10% solid var(--color-accent);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-content p,
.footer-content a {
  margin: 5px 0;
  color: var(--color-de-fond);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-logo img {
  max-height: 50px; /* Ajuste la taille du logo selon tes besoins */
  padding: 20px;
}

.redirect-link {
  color: #ff6347; /* Couleur pour le lien de redirection */
  font-weight: bold;
}

.redirect-link:hover {
  text-decoration: underline;
}
