/* Container de la bannière */
#cookieConsentContainer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #36573B 0%, #36573B 100%);
  color: #ecf0f1;
  padding-block: 25px;
  text-align: center;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;

}

#cookieConsentContainer.show {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* En-tête et texte */
#cookieConsentContainer h2 {
  color: #ecf0f1;
  margin: 0 0 10px;
 font-size: 12px;
}

#cookieConsentContainer>p {
  font-weight: 300;
  font-size: 1rem;
  text-wrap: balance;
  max-width: 600px;
  margin-inline: auto;
}

#cookieConsentContainer a {
  color: #38c087;
  text-decoration: underline;
}

/* Groupe de boutons */
#cookieConsentButtons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  margin-inline: auto;
}



#cookieConsentButtons button {
  min-width: 120px;
  width: auto;  
}

/* Options détaillées */
#detailedOptions {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  margin-top: 25px;

}

#detailedOptions ul {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#detailedOptions li {
  margin-bottom: 15px;
  width: 100%;
}

.cookieOption {
  display: flex;
  align-items: center;
  background: rgba(236, 240, 241, 0.1);
  padding: 20px;
  border-radius: 6px;

}

.cookieOption input[type="checkbox"] {
  margin: 0 0 0 40px;
  transform: scale(1.2);
}

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


.cookieText label {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: left;
  width: 100%.
}

.cookieText p {
  font-size: 0.9em;
  text-align: left;
  margin: 0;
}

/* Boutons génériques */
button {
  background-color: #95a5a6;
  border: none;
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

/* Boutons spécifiques */
button[onclick="acceptAll()"] {
  background-color: #008d51;
}

button[onclick="acceptAll()"]:hover {
  background-color: #007945;
}

button[onclick="declineAll()"] {
  background-color: #2c4e31;
}

button[onclick="declineAll()"]:hover {
  background-color: #254429;
}

button[onclick="toggleDetails()"] {
  background-color: #2c4e31;
}

button[onclick="toggleDetails()"]:hover {
  background-color: #254429;
}

button[onclick="savePrefs()"] {
  background-color: #254429;
}

button[onclick="savePrefs()"]:hover {
  background-color: #1a361e;
}

/* Message de confirmation: positionné en bas */
#confirmMessage {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 100%;
  padding: 25px 10%;
  background: #007041;
  color: #ecf0f1;
  text-align: center;
  border-radius: 5px 5px 0 0;
  font-size: 1rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
#confirmMessage p { 
  max-width: 600px; margin-inline: auto;
}

#confirmMessage p a {
  color: #36573B;
  text-decoration: underline;
}

/* ===== Responsive Mobile ===== */
@media (max-width: 1000px) {
  #cookieConsentContainer {
    padding: 15px 5%;
    text-align: center;
  }

  #cookieConsentContainer h2 {
    font-size: 1.2rem;
  }

  #cookieConsentContainer>p {
    font-size: 0.9rem;
    max-width: 90%;

  }

  /* Boutons empilés verticalement */
  #cookieConsentButtons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }

  #cookieConsentButtons button {
    width: 100%;
    margin: 5px 0;
  }


  #detailedOptions {
    max-width: calc(100%);
    width: calc(100%);
  }


  #confirmMessage {
    width: 100%;
    border-radius: 0;
    font-size: 0.95rem;
  }
}