body {
  margin: 0;
  height: 100vh;

  background-color: white;
  background-repeat: (repeat-x)*2;
  background-size: 100% 100%;
  user-select: none;
  background-image: url("../../../images/12.jpg");
  background-position: bottom center;

  animation: defilement 50s linear infinite;

}

@keyframes defilement {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -2000px 0;
  }
}

.h1 {
    color: red;
    font-family: 'Impact', sans-serif;
    font-size: 100px;
    text-align: left;
    margin-left: 5%;
    margin-top: 1%;
}

@keyframes pulse {
  0% {
    transform: scale(1);   /* taille normale */
  }
  50% {
    transform: scale(1.1); /* agrandit légèrement */
  }
  100% {
    transform: scale(1);   /* revient à la taille normale */
  }
}

@font-face {
  font-family: 'MaPolice';
  src: url('fonts/fonts2.otf') format('truetype');
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  cursor: pointer;
  color: red;
}

.close-btn:hover {
  transform: rotate(90deg);
  transition: 0.3s;
}

.p2 {
    color: red;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-align: left;
    margin-left: 5%;
}

div.pp {
    display: flex;
    gap: 100px; /* espace entre les mots */
}

/* Boîte du ticker */
#ticker-wrapper {
  width: 70%;
  height: 25px;
  background: black;
  overflow: hidden;
  border: 3px solid greenyellow;
  box-sizing: border-box;
  margin-top: 10px;
  position: relative;
  display: flex;          /* ajouter flex */
  align-items: center;    /* centrer verticalement le contenu */
  position: relative;
  margin-left: 5%;
  user-select: none;
}

/* Contenu du ticker */
#ticker {
  display: flex;
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  cursor: grab;
  user-select: none;
}

/* Items du ticker */
.ticker-item {
  color: red;
  font-family: monospace;
  font-size: 16px;
  padding: 0 0px; /* espace entre items */
  user-select: none;
}

.coin-droit {
  position: fixed;
  bottom: 10px;

  max-width: 200px;       /* largeur maximale pour plusieurs lignes */
  text-align: center;      /* centre le texte à l’intérieur du bloc */
  display: inline-block;   /* pour que max-width fonctionne correctement */

  color: red;
  font-family: Arial, Helvetica, sans-serif;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  z-index: 9999;
  right: 5%;

}

.h3 {
    color: red;
    font-family: 'arial', sans-serif;
    font-size: 11px;
    text-align: left;
    margin-left: 5%;
    margin-top: 1%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  gap: 20px;
  padding-top: 20px;
  margin-left: 5%;
}

.item img {
  width: 100%;
  aspect-ratio: 1 / 1; /* carré */
  object-fit: cover;
  cursor: zoom-in;
}

.cartel {
  text-align: left;
  margin-top: -5px;
  color: red;
  font-family: 'arial', sans-serif;
  font-size: 11px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
}
.modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

audio {
  margin-top: 20px;
  width: 300px;
}

#audio-title {
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px; /* ou rouge, bleu, etc */
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  font-size: 50px;
  border: none;
  cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }