@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  padding: 0px;
  margin: 0;
  box-sizing: border-box;
  touch-action: manipulation;
}

body {
  min-height: 100dvh;
  background-image: url(../Images/f/fond.webp);
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  font-family: "Roboto", sans-serif;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4dvh;
}

#Messarage {
  background-color: #ac0000af;
  color: white;
  border-radius: 12px;
  padding: 12px;
  width: 80dvw;
  height: 40dvh;
  font-size: 18px;
  border: 3px solid rgba(255, 34, 34, 0.88);
  box-shadow: 0 0 70px #ee0000;
  overflow-y: scroll;
  margin-top: 8dvh;
}

.absolute {
  position: absolute;
  width: 70dvw;
  bottom: 0;
  right: 0px;
}

#Retour {
  padding: 10px;
  background-color: cornflowerblue;
  border-radius: 15px;
  color: white;
  font-size: 1.2em;
  text-align: center;
  font-weight: 700;
  bottom: 0;
  left: 0;
  position: absolute;
  text-decoration: none;
}

.image-gallery {
  width: 80%;
  max-width: 800px;
  margin: 20px auto 80px;
  text-align: center;
}

.image-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.gallery-controls button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.gallery-controls button:hover {
  background: #444;
}

#gallery-counter {
  min-width: 60px;
  color: white;
}
