@font-face {
  font-family: 'Simplon Norm';
  src: url('fonts/SimplonNorm-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Simplon Norm';
  src: url('fonts/SimplonNorm-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Simplon Norm';
  src: url('fonts/SimplonNorm-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* Reset basique */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 200vh;
  background: black;
  color: black;
  font-family: 'Simplon Norm', sans-serif;
  overflow-x: hidden;
  padding-top: 20vh;
  display: flex;
  flex-direction: column;
}
body.index {
 
  color: white;
 
}
body.Comande {
  min-height: 300vh;
  background: black;
  color: black;
  font-family: 'Simplon Norm', sans-serif;
  overflow-x: hidden;
}

/* Barre de navigation */
header {
  width: 95%;
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 5rem;
  position: fixed;   /* reste collé */
  top: 0;
  left: 0;
  z-index: 100;

  transition: transform 0.3s ease; /* animation de disparition */
}

/* Classe qui cache le header */
header.hide {
  transform: translateY(-100%); /* fait glisser le header vers le haut */
}


header .logo img {
  height: 8vh;
}

header a {
  color: black;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 300;
}



/* Section actualité */
main {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: auto;
  padding: 2rem;
  max-width: none;
  width: 90%;
  overflow-x: hidden;
  position: center;
}

/* Ligne titre */
.ligne-titre {
  margin-bottom: 2rem;
}

/* Titre */
main h1 {
  font-family: 'Simplon Norm';
  font-weight: 400;
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Ligne texte + image */
.ligne-texte-image {
  display: flex;
  gap: 5rem; /* espace entre texte et image */
  align-items: flex-start; /* alignement en haut */
  
}

/* Texte */
.texte {
  flex: 1; /* prend tout l'espace restant */
}

main p {
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Image */
.image img {
  max-width: 300px; /* ajustable */
  height: auto;
  display: block;
}


 







/* Canvas pour animation scroll */
canvas#scrollAnim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}



.dropdown {
  position: relative;
  width: 80%;
  margin: 1rem 0;
}

.dropdown-header {
  display: flex;
  align-items: center;   /* centre verticalement le bouton et la ligne */
  gap: 1rem;             /* espace entre le bouton et la ligne */
}

.dropdown-btn {
  background: none;
  border: none;
  color: black;
  font-size: 3rem;
  cursor: pointer;
  position: relative; /* nécessaire pour le cercle */
}


.dropdown-line {
  border: none;
  height: 0.25vh;
  background-color: black;
  width: 100%;            /* largeur de la ligne */
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: black;
  background: rgba(255, 255, 255, 0.08); /* fond semi-transparent */
  border: 0px solid rgba(252, 252, 252, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

}
.dropdown-content p {
  margin-bottom: 1rem;
  word-wrap: break-word;
  max-width: auto;
}


.scroll-box {
  position: relative;       /* nécessaire pour le ::before */
  display: inline-block; 
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 1vh;            /* optionnel : espace autour des images */
  background: rgba(255, 255, 255, 0.08); /* fond semi-transparent */
  border: 0px solid rgba(252, 252, 252, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* cacher la scrollbar */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE 10+ */
}

.scroll-box::-webkit-scrollbar {
  display: none;               /* Chrome, Safari, Opera */
}

/* grain / texture */
.scroll-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/noise.png");
  opacity: 0.15;
  pointer-events: none;
  border-radius: 15px;     
  padding: 3rem;    /* même arrondi que la box */
}

/* images */
.scroll-box img {
  height: 38vh;
  width: auto;
  display: inline-block;
  margin: 1vh;
  vertical-align: middle;
}

#tooltip {
  position: absolute;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.5vh 1vh;
  border-radius: 0.5vh;
  pointer-events: none;
  display: none;
  z-index: 9999;
  font-size: 0.9rem;
}


.bloc-fond {
  background: rgba(255, 255, 255, 0.08); /* fond semi-transparent */
  border: 0px solid rgba(252, 252, 252, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: rem; /* arrondir légèrement les coins */
  margin-bottom: 2rem;
}



footer {
  width: 100%;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  position: static;  
  bottom: 0;         
  z-index: 100;
  background: black

}


footer .logo img {
  height: 6vh;
}

footer a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 300;

}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  background-color: black; 
  opacity: 0.5;
  backdrop-filter: blur(100px);
}


@media (max-width: 780px) {

 .ligne-texte-image {
    flex-direction: column; /* empile le texte et l'image */
    align-items: center; /* centre les éléments */
    gap: 2rem; /* espace réduit */
    text-align: center; /* centre le texte */
  }

  .ligne-texte-image img {
    max-width: 100%;
    height: auto;
  }


header {
    width: 95vw;
    padding: 1rem;
    gap: 2rem; 
  }
header .logo img {
    height: 5vh;
  }             /* réduit la taille du logo */

  body {
    padding-top: 15vh; 
  }

header a {
    font-size: 1rem; 
    font-weight: 150;     /* réduit la taille du texte */
  }

  footer {
    width: 100vw;
    padding: 1rem;
    gap: 1rem; 
  }
footer .logo img {
    height: 4vh;
  }             /* réduit la taille du logo */
  footer a {
    font-size: 0.5rem; 
    font-weight: 50;     /* réduit la taille du texte */
  }

main {
    width: 100%;
    padding: 1rem;
  }

main h1 {
    font-size: 2rem;     /* réduit la taille du titre */
    margin-bottom: 0.5rem;
  }
main p {
    font-size: 1rem;     /* réduit la taille du texte */
    margin-bottom: 0.5rem;
    font-weight: 100;
  }

.scroll-box {
    display: flex;           /* passage de inline-block → flex */
    justify-content: flex-start;
    gap: 0.5rem;             /* espace entre images */
    max-width: 98vw;          /* largeur adaptée au mobile */
    padding: 0.5rem;
  }

  .scroll-box img {
    height: 35vh;             /* ajuste hauteur sur mobile */
    margin: auto;                /* espace géré par gap */
  }

  .scroll-box::before {
    padding: 1rem;            /* réduit le padding de la texture */
  }
  .dropdown-content {
    margin: auto
  }
  .dropdown 
  {
    width: 100%;
  }
}
