/* ================================================
   CSS POPUP COOKIES - AIDES-INFOS.FR
   Style France Rénov'
   ================================================ */

/* Forcer les radio buttons désactivés à être bleus */
input[type="radio"]:disabled:checked {
  accent-color: #000090 !important;
  opacity: 1 !important;
}

/* ========== BANNIÈRE PRINCIPALE ========== */
#cookieBanner {
  background: #f6f6f5;
  border: 1px solid #e0e0df;
  border-radius: 0;
  bottom: -300px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  font-family: 'Marianne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  left: 40px;
  max-width: 640px;
  padding: 32px;
  position: fixed;
  width: 640px;
  z-index: 9999;
  transition: bottom 0.5s ease;
}

#cookieBanner.show {
  bottom: 40px;
}

#cookieBanner h2 {
  color: #2a2a2a;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  margin: 0 0 16px 0;
  text-align: left !important;
}

#cookieBanner p {
  color: #4a4a4a;
  font-size: 15.5px;
  line-height: 24px;
  margin: 0;
  text-align: left !important;
}

#cookieBanner p:last-of-type {
  margin-bottom: 29px;
}

#cookieBanner a {
  color: #4a4a4a;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.2s ease;
}

#cookieBanner a:hover {
  text-decoration-thickness: 2px;
}

/* ========== BOUTONS BANNIÈRE ========== */
.cookie-buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 29px;
}

.personnaliser-link {
  color: #4a4a4a;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.personnaliser-link:hover {
  text-decoration-thickness: 2px;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
}

.cookie-btn {
  border: none;
  cursor: pointer;
  font-weight: 400;
  font-family: inherit;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-accepter-selection {
  background: #000090;
  color: white;
  font-size: 16.5px;
  width: 200px;
  padding: 10px 20px;
}

.btn-accepter-selection:hover {
  background: #00006b;
}

.btn-tout-accepter {
  background: white;
  border: 1px solid #000090;
  color: #000090;
  font-size: 15.5px;
  width: 145px;
  padding: 10px 20px;
}

.btn-tout-accepter:hover {
  background: #ececec;
}

/* ========== PANNEAU DE GESTION ========== */
#cookieSettings {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 800px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  filter: drop-shadow(0px 3px 9px rgba(0, 0, 18, 0.16));
  z-index: 10000;
  display: none;
  font-family: 'Marianne', arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #4a4a4a;
}

#cookieSettingsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
}

/* ========== MODAL CONFIRMATION REFUS ========== */
#rejectConfirmation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 700px) {
  #cookieBanner {
    left: 0;
    right: 0;
    bottom: -500px;
    width: 100%;
    max-width: none;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 0;
  }
  
  #cookieBanner.show {
    bottom: 0;
  }
  
  #cookieSettings {
    width: 95%;
    max-height: 85vh;
  }
}

@media (max-width: 500px) {
  .cookie-buttons-container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-accepter-selection, 
  .btn-tout-accepter {
    width: 100%;
  }
}
