/* Style personnalisé pour le bandeau de cookies Tarteaucitron
   Format horizontal en une ligne, positionné sous le header */

/* Forcer le bandeau en mode horizontal sous le header */
#tarteaucitronAlertBig {
  position: fixed !important;
  top: 80px !important; /* Hauteur du header (ajuster selon votre header) */
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  transform: none !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-radius: 0 !important;
  z-index: 9999 !important; /* Réduit pour ne pas bloquer les boutons */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 15px !important;
  pointer-events: auto !important;
}

/* Texte du bandeau */
#tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #111827 !important;
  text-align: left !important;
}

/* Conteneur des boutons */
#tarteaucitronAlertBig .tarteaucitronAlertBigButtons {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Style des boutons */
#tarteaucitronAlertBig button,
#tarteaucitronAlertBig .tarteaucitronAllow,
#tarteaucitronAlertBig .tarteaucitronDeny,
#tarteaucitronAlertBig .tarteaucitronPersonalize,
#tarteaucitronAlertBig .tarteaucitronCross {
  margin: 0 !important;
  padding: 8px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  border: 2px solid transparent !important;
  height: auto !important;
  line-height: 1.4 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  z-index: 10000 !important;
  position: relative !important;
}

/* Bouton "Tout accepter" (bleu) */
#tarteaucitronAlertBig .tarteaucitronAllow {
  background: #0000ff !important;
  color: #ffffff !important;
  border-color: #0000ff !important;
}

#tarteaucitronAlertBig .tarteaucitronAllow:hover {
  background: #0000cc !important;
  border-color: #0000cc !important;
}

/* Bouton "Tout refuser" (rouge) */
#tarteaucitronAlertBig .tarteaucitronDeny {
  background: transparent !important;
  color: #dc2626 !important;
  border-color: transparent !important;
}

#tarteaucitronAlertBig .tarteaucitronDeny:hover {
  background: rgba(220, 38, 38, 0.1) !important;
}

/* Bouton "Personnaliser" (gris) */
#tarteaucitronAlertBig .tarteaucitronPersonalize {
  background: transparent !important;
  color: #6b7280 !important;
  border-color: transparent !important;
}

#tarteaucitronAlertBig .tarteaucitronPersonalize:hover {
  background: rgba(107, 114, 128, 0.1) !important;
}

/* Bouton "X" pour fermer */
#tarteaucitronAlertBig .tarteaucitronCross {
  background: transparent !important;
  color: #111827 !important;
  border: none !important;
  padding: 8px 12px !important;
  font-size: 18px !important;
  font-weight: bold !important;
}

#tarteaucitronAlertBig .tarteaucitronCross:hover {
  background: rgba(17, 24, 39, 0.1) !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  #tarteaucitronAlertBig {
    flex-wrap: wrap !important;
    padding: 15px !important;
  }
  
  #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
    width: 100% !important;
    margin-bottom: 10px !important;
    font-size: 13px !important;
  }
  
  #tarteaucitronAlertBig .tarteaucitronAlertBigButtons {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
  }
  
  #tarteaucitronAlertBig button {
    flex: 1 !important;
    min-width: auto !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}

/* Masquer l'overlay sombre derrière */
#tarteaucitronBack {
  display: none !important;
}

/* Ajuster le contenu de la page pour ne pas être caché par le bandeau */
body.tarteaucitron-active {
  padding-top: 0 !important; /* Pas besoin de padding car le bandeau est sous le header */
}

@media (max-width: 768px) {
  body.tarteaucitron-active {
    padding-top: 0 !important;
  }
  
  /* Ajuster la position du bandeau sur mobile */
  #tarteaucitronAlertBig {
    top: 70px !important; /* Header plus petit sur mobile */
  }
}
