/* ============================================================================
   COOKIE CONSENT BANNER - Styles OLDER RADIO
   ============================================================================ */

#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(12, 9, 8, 0.98) 0%, rgba(5, 3, 2, 0.99) 100%);
  border-top: 2px solid #e59033;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* === CONTENEUR PRINCIPAL === */
.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* === TEXTE === */
.cookie-banner-text {
  flex: 1;
  color: #c9b49a;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner-text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  color: #e59033;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cookie-banner-text p {
  margin: 0 0 8px 0;
}

.cookie-banner-note {
  font-size: 11px !important;
  color: #a89580;
  border-left: 2px solid #e59033;
  padding-left: 12px;
  margin-top: 10px;
}

/* === BOUTONS === */
.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  white-space: nowrap;
}

.cookie-btn {
  padding: 8px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-weight: 600;
}

.cookie-btn-primary {
  background: linear-gradient(180deg, #c44018 0%, #701d06 100%);
  color: #fff;
  border: 1px solid #e06038;
}

.cookie-btn-primary:hover {
  background: linear-gradient(180deg, #d64a20 0%, #801d08 100%);
  box-shadow: 0 0 10px rgba(196, 68, 24, 0.5);
}

.cookie-btn-secondary {
  background: transparent;
  color: #d4c4b0;
  border: 1px solid #7a5c3e;
}

.cookie-btn-secondary:hover {
  border-color: #e59033;
  color: #e59033;
  background-color: rgba(229, 144, 51, 0.1);
}

.cookie-link {
  color: #d4c4b0;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  border-bottom: 1px dotted #7a5c40;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-link:hover {
  color: #e59033;
  border-bottom-color: #e59033;
}

/* === BOUTON PARAMÈTRES (Roue) === */
.cookie-settings-btn {
  position: absolute;
  bottom: -50px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #c44018 0%, #701d06 100%);
  color: #fff;
  border: 2px solid #e06038;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cookie-settings-btn:hover {
  background: linear-gradient(180deg, #d64a20 0%, #801d08 100%);
  box-shadow: 0 6px 16px rgba(196, 68, 24, 0.6);
  transform: rotate(90deg);
}

/* ============================================================================
   MODAL PARAMÈTRES
   ============================================================================ */

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal.open {
  display: flex;
  opacity: 1;
}

/* --- CONTENU MODAL --- */
.cookie-modal-content {
  background: #0c0908;
  border: 1px solid #3d2b1d;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px dashed #3d2b1d;
}

.cookie-modal-header h2 {
  font-family: 'Oswald', sans-serif;
  color: #e59033;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: #a89580;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cookie-modal-close:hover {
  color: #e59033;
}

/* --- CATÉGORIES DE COOKIES --- */
.cookie-modal-body {
  padding: 20px;
  max-height: 50vh;
  overflow-y: auto;
}

.cookie-category {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #3d2b1d;
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* --- TOGGLE SWITCH --- */
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.cookie-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #e59033;
}

.cookie-toggle input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toggle-label {
  color: #c9b49a;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- STATUS BADGE --- */
.cookie-status {
  background: rgba(229, 144, 51, 0.1);
  color: #e59033;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border: 1px solid #e59033;
}

/* --- DESCRIPTION --- */
.cookie-description {
  color: #a89580;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

/* --- FOOTER MODAL --- */
.cookie-modal-footer {
  padding: 20px;
  border-top: 1px dashed #3d2b1d;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-modal-footer .cookie-btn {
  flex: 0 0 auto;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .cookie-banner-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .cookie-banner-text {
    order: 1;
  }

  .cookie-banner-buttons {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-settings-btn {
    bottom: auto;
    top: 15px;
    right: 15px;
  }

  .cookie-banner-text h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .cookie-banner-text p {
    font-size: 12px;
  }

  .cookie-btn {
    font-size: 11px;
    padding: 6px 12px;
  }

  .cookie-link {
    font-size: 10px;
  }

  .cookie-modal-content {
    max-width: 95%;
  }

  .cookie-modal-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .cookie-modal-header h2 {
    font-size: 16px;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-banner-container {
    padding: 12px;
  }

  .cookie-banner-buttons {
    gap: 8px;
  }

  .cookie-btn {
    font-size: 10px;
    padding: 5px 10px;
  }

  .cookie-banner-text h3 {
    font-size: 13px;
  }

  .cookie-banner-text p {
    font-size: 11px;
  }

  .cookie-banner-note {
    font-size: 10px !important;
    margin-top: 8px;
  }
}