/* ============================
   AAO – FULL TAC OVERRIDE
   ============================ */

/* Reset de base */
#tarteaucitronRoot, #tarteaucitronRoot * {
  box-sizing: border-box;
  font-family: inherit;
}

/* Conteneur principal */
#tarteaucitronRoot {
  position: absolute;
  inset: 0;
  z-index: 2147483640;
  font-size: 14px;
  line-height: normal;
  color: #222;
}

/* ===== BANNIÈRE PRINCIPALE ===== */
#tarteaucitronRoot #tarteaucitronAlertBig {
  position: fixed !important;
  bottom: 0 !important;
  top: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2147483645 !important;

  display: none; /* TAC l’affiche en JS */
  width: unset;
  max-width: 760px;

  margin: 0 0 16px 0;
  padding: 20px 56px 20px 20px; /* espace pour la croix */

  background: #fff;
  color: #222;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  text-align: center;
}

/* Bloc de texte dans la bannière */
#tarteaucitronDisclaimerAlert {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

/* ===== BOUTONS ===== */
#tarteaucitronRoot #tarteaucitronButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

#tarteaucitronRoot #tarteaucitronButtons button {
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Accepter = Rouge AAO */
#tarteaucitronAllAllowed {
  background: #dd3333 !important;
  color: #fff !important;
}

/* Refuser = Gris clair */
#tarteaucitronAllDenied {
  background: #ccc !important;
  color: #222 !important;
}

/* Personnaliser (CloseAlert dans ton DOM) */
#tarteaucitronCloseAlert {
  background: #ccc !important;
  color: #222 !important;
  border: 2px solid #222 !important;
  position: static !important;
}

/* Politique de confidentialité (PrivacyUrl) */
#tarteaucitronPrivacyUrl {
  display: inline-block !important;
  background: #fff !important;
  color: #222 !important;
  border: 2px solid #222 !important;
  border-radius: 10px;
  padding: 10px 20px;
}

/* ===== CROIX DE FERMETURE (CloseCross) ===== */
#tarteaucitronCloseCross {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border: none !important;
  color: #222;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

/* ===== PANNEAU DE GESTION ===== */
#tarteaucitronBack {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(0, 0, 0, .5);
}

#tarteaucitron {
  display: none;
  position: fixed;
  z-index: 2147483647;
  left: 50%;
  top: 6%;
  margin-left: -430px;
  width: 860px;
  max-height: 80%;
  background: #fff;
  border: 2px solid #333;
  border-top: 0;
  overflow: auto;
}
@media (max-width: 900px) {
  #tarteaucitron {
    left: 0;
    right: 0;
    margin: 0 5%;
    width: 90%;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  #tarteaucitronRoot #tarteaucitronAlertBig {
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom)) 14px !important;
  }

  #tarteaucitronRoot #tarteaucitronButtons {
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  #tarteaucitronRoot #tarteaucitronButtons button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 16px !important;
  }

  #tarteaucitronRoot #tarteaucitronAlertBig h2 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  #tarteaucitronRoot #tarteaucitronAlertBig p {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }
}