/* POPUP BAS */
.cookie-banner {
  position: fixed;
  bottom: 15px;
  right: 20px;
  width: 380px;
 

  background: #000000;
  padding: 10px;
  border-radius: 6px;

  box-shadow: 
  0 10px 30px rgba(0,0,0,0.5),
  0 0 0 1px rgba(255,255,255,0.08);
 
  font-family: 'Roboto', sans-serif;

  animation: slideUp 0.4s ease;
}

/* TITRE */
.cookie-banner h3 {
  font-size: 15px;
  margin: 0 0 6px 0;
  color: #fff;
}

/* TEXTE */
.cookie-banner p {
  font-size: 10px;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

/* BOUTONS */
.cookie-actions {
  display: flex;
  gap: 10px;
  margin: 0;
  
}

/* BOUTON PRINCIPAL */
.btn-primary {
  background: #85D424;
  color: white;
  border: none;
  padding: 6px 10px; 
  font-size: 12px;   
  flex: 1;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
  
}
/* HOVER BOUTON PRINCIPAL */
.btn-primary:hover {
  background: #6bbd1f; /* vert un peu plus foncé */
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.btn-primary a:active {
  transform: scale(0.98);
}

/* BOUTON SECONDAIRE */
.btn-secondary {
  background: #fff;
  border: none;
  padding: 6px 10px; 
  font-size: 12px; 
  flex: 1;
  border-radius: 4px;
  cursor: pointer;
}

/* HOVER BOUTON SECONDAIRE */
.btn-secondary:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.btn-secondary a:active {
  transform: scale(0.98);
}

/* ANIMATION */
@keyframes slideUp {
  from {
    transform: translateY(80px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===================== */
/* RESPONSIVE TABLETTE */
/* ===================== */
@media (max-width: 768px) {

  .cookie-banner {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
    padding: 18px;
  }

  .cookie-banner h3 {
    font-size: 18px;
  }

  .cookie-banner p {
    font-size: 13px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .cookie-footer-link {
    margin-top: 15px;
  }
}

/* ===================== */
/* RESPONSIVE MOBILE */
/* ===================== */
@media (max-width: 480px) {

  .cookie-banner {
    width: 92%;
    bottom: 10px;
    padding: 15px;
    border-radius: 12px;
  }

  .cookie-banner h3 {
    font-size: 16px;
  }

  .cookie-banner p {
    font-size: 12px;
    line-height: 1.4;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px;
    font-size: 14px;
  }

  .cookie-footer-link a {
    font-size: 13px;
  }
}

.cookie-banner {
  max-width: 400px;
}

/* LIEN BAS */

.cookie-footer-link {
  margin-top: 12px;
  
}

/* BOUTON STYLE INVISIBLE */
.cookie-footer-link a {
  display: block;
  width: 100%;
  text-align: center;

  padding: 10px;
  font-size: 12px;
  text-decoration: underline; 
  color: #ffffff;
 

  border-radius: 8px;

  border: 1px solid transparent; /* invisible */
  background: transparent;

  transition: all 0.3s ease;
}

/* HOVER = APPARITION CONTOUR */
.cookie-footer-link a:hover {
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

.cookie-footer-link a:active {
  transform: scale(0.98);
}





/* POPUP PARAMÈTRES */
/* ===================== */
/* ===================== */

/* HEADER VISUEL */
.cookie-header {
  position: relative;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px ;
  overflow: hidden;
  margin-bottom: 7px;
  flex-shrink: 0;
  }
  



/* IMAGE DE FOND */
.cookie-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),  /* Dégradé plus léger */
    url("81.png") center/cover no-repeat;
  z-index: 0;
  opacity: 10;
  filter: blur(1px); /* réduire l'intensité du flou */
}

/* CONTENU AU-DESSUS */
.cookie-header h2,
.cookie-desc,
.icon-close {
  position: relative;
  z-index: 1;
}


.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Ajouter cette animation dans la classe .cookie-modal */
.cookie-modal.is-open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.cookie-modal.is-open {
  display: flex;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(3px); /* Applique un flou de 5px */
}


.cookie-modal.is-open {
  display: flex;  /* Le modal s'affiche avec cette classe */
}

.cookie-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

/* BOX */

.cookie-box {
  background: #f5f6f7;
  width: 600px;
  max-width: 95%;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 90vh;
  max-height: 90vh;
  overflow-y: auto;
  overflow: hidden;
  animation: fadeScale 0.3s ease;
}


@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===================== */
/* HEADER */
/* ===================== */

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.cookie-header::before {
  filter: blur(1px);
}
.cookie-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin-bottom: -2px;
}

/* CLOSE ICON */
.icon-close {
  cursor: pointer;
  display: flex;
  align-items: right;
}

.icon-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}

.icon-close svg {
  width: 16px;
  height: 16px;
  fill: #85D424;
  transition: 0.3s;
}

.icon-close:hover svg {
  fill: #549208;
  transform: scale(1.1);
}

/* ===================== */
/* TEXT */
/* ===================== */
.cookie-header .cookie-desc {
  font-size: 15px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ===================== */
/* ITEMS */
/* ===================== */
.cookie-item {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
   background:#f0f0f0;
  border: 1px solid transparent;
  transition: 0.25s;
}

.cookie-item:hover {
  background: #eef1f3;
  border-color: #dee2e6;
}

.cookie-item.active {
  background: #ffffff;
  border-color: #ced4da;
}

/* HEADER ITEM */
.cookie-header-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.cookie-title {
  flex: 1;
  margin-left: 8px;
  font-weight: 500;
}

/* ===================== */
/* ARROW */
/* ===================== */
.arrow svg {
  width: 12px;
  height: 12px;
  fill: #0E6E51;
  transition: 0.3s;
}

.cookie-item.active .arrow svg {
  transform: rotate(180deg);
}

/* ===================== */
/* ACCORDÉON */
/* ===================== */
.cookie-content {
  max-height: 0;
  opacity: 2;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 10px;
  color: #555;
  margin-top: 10px;
}

.cookie-item.active .cookie-content {
  max-height: 200px;
  opacity: 1;
}

/* ===================== */
/* SWITCH */
/* ===================== */
.switch {
  position: relative;
  width: 48px;
  height: 24px;
}

/* INPUT */
.switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

/* BACKGROUND */
.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #549208;
  border-radius: 50px;
  transition: 0.3s;
}

/* CERCLE */
.slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #f1f1f1;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.3s;
  z-index: 2;
}

/* ICONES */
.icon {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.3s;
  z-index: 1;
}

/* OFF → droite */
.icon-off {
  right: 10px;
  fill: #fff;
  opacity: 1;
}

/* ON → gauche */
.icon-on {
  left: 10px;
  fill: white;
  opacity: 0;
}

/* ===================== */
/* ETAT ON */
/* ===================== */
input:checked + .slider {
  background: #85D424;
}

input:checked + .slider::after {
  transform: translateX(26px);
}

input:checked + .slider .icon-off {
  opacity: 0;
}

input:checked + .slider .icon-on {
  opacity: 1;
}

/* DISABLED */
.switch input:disabled + .slider {
  background: #85D424;
  cursor: not-allowed;
}

/* ===================== */
/* cookie-privacy */
/* ===================== */

.cookie-privacy {
  font-size: 12px;
  color: #555;
  margin-top: 10px;
  text-align: center;
}

.privacy-link {
  font-size: 12px;  
  color: #85D424;
  font-weight: 500;
  text-decoration: underline;
}

.privacy-link:hover {
  text-decoration: underline;
  color: #549208;
}

/* ===================== */
/* FOOTER */
/* ===================== */
.cookie-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-shrink: 0;
   
}

.cookie-footer button {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s;
  font-size: 11px;
}

#acceptAll {
  background: #85D424;
  color: white;
}

#acceptAll:hover {
  background: #63aa0c;
}

#rejectAll {
  background: #e5e7eb;
}

#rejectAll:hover {
  background: #d1d5db;
}

#saveCookies {
  background: #e5e7eb;
}

#saveCookies:hover {
  background: #d1d5db;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media (max-width: 768px) {
  .cookie-box {
    width: 95%;
  }

  .cookie-footer {
    flex-direction: column;
  }
}