/* Bandeau et modal de consentement cookies conforme CNIL - iciminiprix */
#imp-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999998;
  background: #FFFFFF;
  border-top: 2px solid #FF5A1F;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
  padding: 18px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1E293B;
  display: none;
  animation: impCookieSlideUp 0.3s ease-out;
}

@keyframes impCookieSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.imp-cookie-wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.imp-cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}

.imp-cookie-text h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: #1B2A4A;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.imp-cookie-text p {
  margin: 0;
}

.imp-cookie-text a {
  color: #FF5A1F;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

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

.imp-cookie-btn {
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  text-align: center;
}

.imp-cookie-btn-accept {
  background: #FF5A1F;
  color: #FFFFFF;
  border-color: #FF5A1F;
}
.imp-cookie-btn-accept:hover {
  background: #E0470F;
  border-color: #E0470F;
}

.imp-cookie-btn-reject {
  background: #F8FAFC;
  color: #1E293B;
  border-color: #CBD5E1;
}
.imp-cookie-btn-reject:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}

.imp-cookie-btn-custom {
  background: transparent;
  color: #64748B;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 12px;
}
.imp-cookie-btn-custom:hover {
  color: #1B2A4A;
}

/* Modal de personnalisation CNIL */
#imp-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.imp-cmodal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: impCmodalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes impCmodalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.imp-cmodal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #E2E8F0;
}

.imp-cmodal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1B2A4A;
}

.imp-cmodal-close {
  background: #F1F5F9;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
}
.imp-cmodal-close:hover {
  background: #E2E8F0;
}

.imp-cmodal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}

.imp-cmodal-row {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #F8FAFC;
}

.imp-cmodal-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.imp-cmodal-row-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #1B2A4A;
}

.imp-cmodal-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #DCFCE7;
  color: #15803D;
}

.imp-cmodal-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.imp-cmodal-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 24px;
}

.imp-cmodal-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.imp-cmodal-toggle input:checked + .imp-cmodal-slider {
  background-color: #FF5A1F;
}

.imp-cmodal-toggle input:checked + .imp-cmodal-slider:before {
  transform: translateX(20px);
}

.imp-cmodal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
}

@media (max-width: 768px) {
  #imp-cookie-banner { padding: 16px 18px; }
  .imp-cookie-wrap { flex-direction: column; align-items: stretch; gap: 14px; }
  .imp-cookie-actions { justify-content: stretch; }
  .imp-cookie-btn { flex: 1; }
  .imp-cookie-btn-custom { text-align: center; }
}
