/* ===== BANNIÈRE COOKIES — LOI 25 ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid #F70000;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
}

.cookie-text h3 {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.cookie-text p {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.cookie-text a {
  color: #F70000;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-text a:hover {
  color: #000;
}

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

.cookie-btn-accept {
  background: #F70000;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 22px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  background: #000;
}

.cookie-btn-refuse {
  background: transparent;
  color: #333;
  border: 1.5px solid #ccc;
  border-radius: 50px;
  padding: 11px 22px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-refuse:hover {
  border-color: #333;
  color: #000;
}

.cookie-btn-settings {
  background: transparent;
  color: #888;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.2s;
}

.cookie-btn-settings:hover {
  color: #000;
}

/* MODAL PRÉFÉRENCES COOKIES */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-modal.open {
  display: flex;
}

.cookie-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal-box h2 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.cookie-modal-box > p {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.cookie-category {
  border: 1.5px solid #eee;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cookie-category-header strong {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.cookie-category p {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #F70000;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: #F70000;
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cookie-modal-actions .cookie-btn-accept {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.cookie-modal-actions .cookie-btn-refuse {
  flex: 1;
  text-align: center;
}

/* Lien gestion cookies dans footer */
.cookie-manage-link {
  font-size: 12px;
  color: #888;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: "Inter", sans-serif;
  padding: 0;
  transition: color 0.2s;
}

.cookie-manage-link:hover {
  color: #F70000;
}

@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-btn-accept,
  .cookie-btn-refuse {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}
