/* ============================================================
   Habillage du bandeau cookies (tarteaucitron) aux couleurs
   Green Brick PPF : lime #d4ef25, texte #111, police Poppins.
   Chargé après le CSS injecté par la lib → !important requis.
   ============================================================ */

/* ------------------------------------------------------------
   1) Bandeau d'accueil (bas de page)
   ------------------------------------------------------------ */
#tarteaucitronRoot div#tarteaucitronAlertBig {
  background: #ffffff !important;
  color: #111 !important;
  border-top: 4px solid #d4ef25 !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12) !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  padding: 18px 24px !important;
}

#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert strong {
  color: #111 !important;
  font-size: 14px !important;
}

#tarteaucitronRoot .tarteaucitronCTAButton {
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  margin: 4px 6px !important;
}

/* Accepter : lime, comme les CTA du site */
#tarteaucitronRoot .tarteaucitronCTAButton.tarteaucitronAllow {
  background: #d4ef25 !important;
  color: #111 !important;
  border: none !important;
}

/* Refuser : aussi visible que Accepter (exigence CNIL), style inversé */
#tarteaucitronRoot .tarteaucitronCTAButton.tarteaucitronDeny {
  background: #ffffff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
}

/* Lien Personnaliser, discret */
#tarteaucitronRoot #tarteaucitronCloseAlert {
  background: transparent !important;
  color: #555 !important;
  text-decoration: underline !important;
  border: none !important;
}

/* ------------------------------------------------------------
   2) Panneau « Personnaliser » — fond blanc, cartes, pills
   ------------------------------------------------------------ */

/* Voile derrière la popup : sombre pour détacher le panneau de la page */
#tarteaucitronRoot button#tarteaucitronBack {
  background: #111 !important;
  opacity: 0.6 !important;
}

#tarteaucitronRoot div#tarteaucitron {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35) !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  padding: 8px 0 16px !important;
  overflow: hidden !important;
}

#tarteaucitron #tarteaucitronServices {
  box-shadow: none !important;
  margin-top: 8px !important;
}

#tarteaucitron #tarteaucitronServices,
#tarteaucitron .tarteaucitronBorder,
#tarteaucitron #tarteaucitronMainLineOffset,
#tarteaucitron #tarteaucitronServices .tarteaucitronHidden {
  background: #ffffff !important;
  border: none !important;
}

/* Titre du panneau */
#tarteaucitronRoot .tarteaucitronH1 {
  color: #111 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  margin: 18px 24px 6px !important;
}

/* Texte d'intro */
#tarteaucitron #tarteaucitronInfo {
  background: #f6f7ef !important;
  color: #444 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  margin: 10px 24px 16px !important;
  font-size: 13px !important;
}

/* Bouton Fermer : pastille noire intégrée en haut à droite du panneau */
#tarteaucitron #tarteaucitronClosePanel {
  background: #111 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 8px 16px !important;
  width: auto !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 100 !important;
}

/* Ligne « Préférences pour tous les services » */
#tarteaucitron #tarteaucitronServices .tarteaucitronMainLine {
  background: #f6f7ef !important;
  border: none !important;
  border-radius: 10px !important;
  margin: 0 24px 14px !important;
  padding: 10px 14px !important;
}
#tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronName b,
#tarteaucitron #tarteaucitronServices .tarteaucitronMainLine .tarteaucitronName {
  color: #111 !important;
}

/* Titres de catégories (+ Cookies obligatoires, + APIs, + Mesure d'audience,
   + Autre) : purement décoratifs, masqués pour une liste plate et minimale */
#tarteaucitron #tarteaucitronServices .tarteaucitronTitle,
#tarteaucitronRoot .asCatToggleBtn {
  display: none !important;
}

/* Lignes de services */
#tarteaucitron #tarteaucitronServices .tarteaucitronLine {
  background: #ffffff !important;
  border-bottom: 1px solid #eeeeee !important;
  padding: 14px 24px !important;
}
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName a,
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName .tarteaucitronH2,
li.tarteaucitronLine .tarteaucitronName span.tarteaucitronServiceDescription {
  color: #333 !important;
  background: transparent !important;
}

/* Liens « En savoir plus - Voir le site officiel » sous chaque service : masqués */
#tarteaucitron .tarteaucitronReadmoreInfo,
#tarteaucitron .tarteaucitronReadmoreSeparator,
#tarteaucitron .tarteaucitronReadmoreOfficial {
  display: none !important;
}

/* Boutons Autoriser / Interdire — pills cohérentes avec le bandeau */
#tarteaucitron .tarteaucitronAllow,
#tarteaucitron .tarteaucitronDeny {
  border-radius: 999px !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
  margin: 2px 4px !important;
  cursor: pointer !important;
}
#tarteaucitron .tarteaucitronAllow {
  background: #d4ef25 !important;
  color: #111 !important;
  border: 2px solid #d4ef25 !important;
}
#tarteaucitron .tarteaucitronDeny {
  background: #ffffff !important;
  color: #111 !important;
  border: 2px solid #dddddd !important;
}

/* État sélectionné : on marque visuellement le choix */
#tarteaucitron .tarteaucitronIsAllowed .tarteaucitronAllow {
  border-color: #111 !important;
}
#tarteaucitron .tarteaucitronIsDenied .tarteaucitronDeny {
  background: #111 !important;
  color: #ffffff !important;
  border-color: #111 !important;
}

/* Cookies obligatoires : bouton unique grisé */
#tarteaucitron #tarteaucitronServices #tarteaucitronServices_mandatory .tarteaucitronLine button.tarteaucitronAllow {
  background: #eeeeee !important;
  color: #777 !important;
  border-color: #eeeeee !important;
}

/* ------------------------------------------------------------
   3) Onglet de réouverture — en bas à droite, collé au bord
   inférieur, remonte au survol (à gauche de la bulle de chat)
   ------------------------------------------------------------ */
#tarteaucitronIcon {
  left: auto !important;
  right: 90px !important;
  top: auto !important;
  bottom: 0 !important;
}
#tarteaucitronIcon #tarteaucitronManager {
  display: block !important;
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18) !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px 20px 14px !important;
  /* Au repos, seul le haut de la pastille dépasse du bas de l'écran */
  transform: translateY(calc(100% - 14px));
  transition: transform 0.25s ease;
}
#tarteaucitronIcon #tarteaucitronManager:hover,
#tarteaucitronIcon #tarteaucitronManager:focus {
  transform: translateY(0);
}
#tarteaucitronIcon #tarteaucitronManager img {
  display: none !important;
}
#tarteaucitronIcon #tarteaucitronManager::before {
  content: 'Gérer le consentement';
  display: block;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
  white-space: nowrap;
}
