/* ============================================================
   Tarteaucitron — Styles conformes RGPD & design Bryf
   ============================================================ */

#tarteaucitronRoot {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #171717;
  font-size: 14px;
  line-height: 1.5;
  z-index: 2147483640;
}

#tarteaucitronAlertBig {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid #E9E7E3;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2147483640;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

@media (max-width: 860px) {
  #tarteaucitronAlertBig {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 14px;
  }
}

#tarteaucitronDisclaimerAlert {
  flex: 1;
  font-size: 13px;
  color: #171717;
  margin: 0;
}

#tarteaucitronDisclaimerAlert strong {
  color: #171717;
  font-weight: 700;
}

#tarteaucitronDisclaimerAlert a {
  color: #C2411C;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tarteaucitronButtons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .tarteaucitronButtons {
    justify-content: stretch;
  }
  .tarteaucitronButtons button {
    flex: 1;
    min-width: 120px;
  }
}

.tarteaucitronBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tarteaucitronBtnPrimary {
  background: #C2411C;
  color: #FFFFFF;
  border-color: #C2411C;
}

.tarteaucitronBtnPrimary:hover {
  background: #A63514;
}

.tarteaucitronBtnOutline {
  background: #F5F4F2;
  color: #171717;
  border-color: #E9E7E3;
}

.tarteaucitronBtnOutline:hover {
  background: #EDEBE7;
  border-color: #6B6862;
}

.tarteaucitronBtnGhost {
  background: transparent;
  color: #6B6862;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 8px;
}

.tarteaucitronBtnGhost:hover {
  color: #171717;
}

/* Modal Panneau de personnalisation */
#tarteaucitronBack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 2147483645;
  display: none;
}

#tarteaucitron {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFFFFF;
  border: 1px solid #E9E7E3;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 2147483646;
  padding: 24px;
  display: none;
}

#tarteaucitronTitle {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #171717;
}

#tarteaucitronSub {
  font-size: 13px;
  color: #6B6862;
  margin-bottom: 20px;
}

.tarteaucitronService {
  border: 1px solid #E9E7E3;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tarteaucitronServiceTitle {
  font-weight: 700;
  font-size: 14px;
  color: #171717;
}

.tarteaucitronServiceDesc {
  font-size: 12px;
  color: #6B6862;
  margin-top: 2px;
}

.tarteaucitronServiceActions {
  display: flex;
  gap: 6px;
}

.tarteaucitronServiceActions button {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #E9E7E3;
  background: #F5F4F2;
  color: #171717;
}

.tarteaucitronServiceActions button.active-allow {
  background: #30A46C;
  color: #FFFFFF;
  border-color: #30A46C;
}

.tarteaucitronServiceActions button.active-deny {
  background: #E5484D;
  color: #FFFFFF;
  border-color: #E5484D;
}

#tarteaucitronCloseModal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #6B6862;
  cursor: pointer;
}

/* Pastille discrète de rappel */
#tarteaucitronManager {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: #FFFFFF;
  border: 1px solid #E9E7E3;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #6B6862;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 80;
  display: none;
  transition: all 0.15s ease;
}

#tarteaucitronManager:hover {
  color: #C2411C;
  border-color: #C2411C;
  transform: translateY(-1px);
}
