/*================= FONTS AND VARIABLES =================*/
/* Import de la police personnalisée */
@font-face {
  font-family: 'Mouser';
  src: url('../font/mouser.woff2') format('woff2'),
       url('../font/mouser.woff') format('woff');
}

/* Variables globales */
:root {
  --main-white-color: #f2f2f2;
  --main-black-color: #000;
}

/*================= GLOBAL STYLES =================*/
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;         /* Le corps prend toute la hauteur de la fenêtre */
  display: flex;
  flex-direction: column;    /* Utiliser Flexbox pour organiser le contenu */
  background-image: url('../img/DSC_7529.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Utiliser WebP si pris en charge par le navigateur */
@supports (background-image: url('../img/DSC_7529.webp')) {
  body {
    background-image: url('../img/DSC_7529.webp');
  }
}

/*================= MAIN CONTENT =================*/
.content-wrapper {
  flex: 1;  /* Prend tout l'espace disponible et pousse le footer vers le bas */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.container {
  text-align: center;
  position: relative;
}

h1 {
  position: absolute;
  margin: 0;
  color: var(--main-black-color);
  font-weight: bold;
  font-size: clamp(32px, 5vw, 70px); /* Responsive text */
  font-family: 'Mouser', sans-serif;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#image-container {
  position: relative;
  width: 500px;
  height: 500px;
}

#fond {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

#logo-container {
  position: relative; 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 500px;
  overflow: hidden;
}

#logo-path {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

#capture-container {
  width: 500px;
  height: 500px;
  position: relative;
  overflow: hidden;
}

#logo-superpose {
  width: 400px;
  height: 400px;
}

/*================= BUTTONS =================*/
.buttons-container {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
}

.left-button-container {
  position: absolute;
  top: 10px;
  left: 10px;
}

.right-buttons-container {
  display: flex;
  position: absolute;
  top: 10px;
  right: 10px;
}

.custom-btn {
  background-color: white;
  border-radius: 15px;
  border: none;
  padding: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-btn img {
  width: 18px;
  height: auto;
}

.custom-btn:hover {
  opacity: 0.8;
}

#downloadBtn, #whatsappBtn {
  border-radius: 50%;  /* Boutons ronds */
  width: 30px;         /* Ajuster la taille si nécessaire */
  height: 30px;        /* Assurez-vous que le bouton est bien un carré */
  margin: 0;
  border: none;        /* Suppression de la bordure */
  background-color: white; /* Même couleur de fond que les autres boutons */
  transition: 0.3s;    /* Transition fluide pour l'effet hover */
  display: flex;
  align-items: center;
  justify-content: center;
}

#downloadBtn img, #whatsappBtn img {
  border-radius: 0;  /* Boutons ronds */
  width: 20px;         /* Ajuster la taille de l'image */
  height: 20px;
}

/* Appliquer le même effet hover que sur les autres boutons */
#downloadBtn:hover, #whatsappBtn:hover {
  opacity: 0.8;
}

/*================= SHARE BUTTON =================*/
#whatsappBtn {
  margin-right: 5px;
  background-color: #29A71A;
  border-radius: 50%;
  padding: 5px;
}

/*================= ARROWS (FLECHES) =================*/
.fleche {
  position: absolute;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  background-color: #fff;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
}

.fleche:hover {
  opacity: 0.8;
}

#fleche-precedente {
  left: 10px;
  top: 43%;
}

#fleche-suivante {
  right: 10px;
  top: 43%;
}

#fleche-logo-precedente {
  left: 10px;
  bottom: 43%;
}

#fleche-logo-suivante {
  right: 10px;
  bottom: 43%;
}

/*================= INFO BOXES =================*/
.info-container {
  display: flex;
  justify-content: space-between;
}

.info-couleur-fond, .info-couleur-logo {
  position: absolute;
  bottom: 5px;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.info-couleur-fond {
  left: 5px;
}

.info-couleur-logo {
  right: 5px;
}

/*================= COLOR PALETTE =================*/
.palette-wrapper {
  position: absolute;
  bottom: 105px;
  right: 60px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 15px;
  width: 40px;
  height: 40px;
  overflow: visible;
}

.color-suggestion {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: red;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.palette-wrapper:hover .color-suggestion {
  opacity: 1;
}

#color1 { transform: translate(-50%, -50%) translateY(-40px); }
#color2 { transform: translate(-50%, -50%) rotate(45deg) translateY(-40px) rotate(-45deg); }
#color3 { transform: translate(-50%, -50%) rotate(90deg) translateY(-40px) rotate(-90deg); }
#color4 { transform: translate(-50%, -50%) rotate(135deg) translateY(-40px) rotate(-135deg); }
#color5 { transform: translate(-50%, -50%) rotate(180deg) translateY(-40px) rotate(-180deg); }
#color6 { transform: translate(-50%, -50%) rotate(225deg) translateY(-40px) rotate(-225deg); }
#color7 { transform: translate(-50%, -50%) rotate(270deg) translateY(-40px) rotate(-270deg); }
#color8 { transform: translate(-50%, -50%) rotate(315deg) translateY(-40px) rotate(-315deg); }

/*================= RESPONSIVE STYLES =================*/
@media (max-width: 1200px) {
  h1 {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 44px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }
}

#paletteCouleurBouton {
  position: absolute;
  top: 110%;
  left: 110%;
  z-index: 3;
}

#paletteCouleurBouton img {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  display: block;
}

#paletteCouleurBouton:hover {
  opacity: 0.8;
}