/* ===== Team Break - Bandeau de gestion des cookies ===== */
#tb-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
}

#tb-cookie-overlay.tb-hidden {
  display: none;
}

#tb-cookie-banner {
  background: #fff;
  color: #1a1a1a;
  width: 100%;
  max-width: 620px;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  overflow: hidden;
  font-size: 14px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}

#tb-cookie-banner .tb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
}

#tb-cookie-banner .tb-logo {
  height: 56px;
  display: flex;
  align-items: center;
}

#tb-cookie-banner .tb-logo img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}

#tb-cookie-banner .tb-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

#tb-cookie-banner .tb-tab {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  font-weight: 600;
  color: #6e6e6e;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  user-select: none;
  transition: color .15s, border-color .15s;
}

#tb-cookie-banner .tb-tab.active {
  color: #E2001A;
  border-bottom-color: #E2001A;
}

#tb-cookie-banner .tb-panel {
  display: none;
  padding: 20px 24px;
}

#tb-cookie-banner .tb-panel.active {
  display: block;
}

#tb-cookie-banner .tb-panel p {
  margin: 0 0 12px 0;
  line-height: 1.5;
  color: #333;
}

#tb-cookie-banner .tb-panel a {
  color: #E2001A;
  text-decoration: underline;
}

#tb-cookie-banner .tb-accordion-item {
  border-bottom: 1px solid #eee;
}

#tb-cookie-banner .tb-accordion-item:last-child {
  border-bottom: none;
}

#tb-cookie-banner .tb-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
}

#tb-cookie-banner .tb-accordion-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

#tb-cookie-banner .tb-accordion-chevron {
  display: inline-block;
  font-size: 11px;
  color: #6e6e6e;
  transition: transform .2s;
}

#tb-cookie-banner .tb-accordion-item.open .tb-accordion-chevron {
  transform: rotate(90deg);
}

#tb-cookie-banner .tb-accordion-body {
  display: none;
  padding: 0 0 16px 22px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #6e6e6e;
  line-height: 1.5;
  border-bottom: 1px solid #f3f3f3;
}

#tb-cookie-banner .tb-accordion-item.open .tb-accordion-body {
  display: block;
}

#tb-cookie-banner .tb-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #eee;
}

#tb-cookie-banner .tb-category {
  padding: 16px 10px;
  text-align: center;
  border-right: 1px solid #eee;
}

#tb-cookie-banner .tb-category:last-child {
  border-right: none;
}

#tb-cookie-banner .tb-category-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

#tb-cookie-banner .tb-category-desc {
  font-size: 11px;
  color: #6e6e6e;
  margin-top: 8px;
  line-height: 1.4;
  display: none;
}

#tb-cookie-banner .tb-panel#tb-panel-details .tb-category-desc {
  display: block;
}

#tb-cookie-banner .tb-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

#tb-cookie-banner .tb-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#tb-cookie-banner .tb-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1a1a1a;
  border-radius: 24px;
  transition: background-color .2s;
}

#tb-cookie-banner .tb-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform .2s;
}

#tb-cookie-banner .tb-switch input:checked + .tb-slider {
  background-color: #E2001A;
}

#tb-cookie-banner .tb-switch input:checked + .tb-slider::before {
  transform: translateX(20px);
}

#tb-cookie-banner .tb-switch input:disabled + .tb-slider {
  background-color: #E2001A;
  opacity: 0.6;
  cursor: not-allowed;
}

#tb-cookie-banner .tb-actions {
  display: flex;
  border-top: 1px solid #eee;
}

#tb-cookie-banner .tb-btn {
  flex: 1;
  padding: 16px 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #1a1a1a;
  border-right: 1px solid #eee;
  transition: background-color .15s;
}

#tb-cookie-banner .tb-btn:last-child {
  border-right: none;
}

#tb-cookie-banner .tb-btn:hover {
  background: #f7f7f7;
}

#tb-cookie-banner .tb-btn.tb-btn-primary {
  background: #E2001A;
  color: #fff;
}

#tb-cookie-banner .tb-btn.tb-btn-primary:hover {
  background: #c70016;
}

@media (max-width: 480px) {
  #tb-cookie-banner .tb-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  #tb-cookie-banner .tb-category:nth-child(2) { border-right: none; }
  #tb-cookie-banner .tb-category:nth-child(odd) { border-bottom: 1px solid #eee; }
  #tb-cookie-banner .tb-actions {
    flex-direction: column;
  }
  #tb-cookie-banner .tb-btn {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  #tb-cookie-banner .tb-btn:last-child { border-bottom: none; }
}

/* ===== Bouton flottant pour ré-ouvrir le bandeau ===== */
#tb-cookie-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#tb-cookie-reopen.tb-visible {
  display: flex;
}
