/* =========================================================
   Cookie Consent - Jean-Marc Renaud
   Couleurs reprises du site : #232332 (fonce), #d6b161 (accent),
   #444 / #666 / #999 (gris), #fff (blanc). Polices: Dosis / Open Sans.
   ========================================================= */

#cc-banner, #cc-modal, #cc-modal * {
  box-sizing: border-box;
}

/* ---------- Bandeau ---------- */
#cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #232332;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  padding: 22px 30px;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
#cc-banner.cc-visible {
  transform: translateY(0);
}
#cc-banner .cc-inner {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
#cc-banner .cc-text {
  flex: 1 1 420px;
  font-size: 14px;
  line-height: 1.6;
  color: #e6e6ea;
}
#cc-banner .cc-text strong {
  font-family: 'Dosis', sans-serif;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
#cc-banner .cc-text a {
  color: #d6b161;
  text-decoration: underline;
}
#cc-banner .cc-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Boutons ---------- */
.cc-btn {
  -moz-user-select: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  font-family: 'Dosis', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cc-btn-accept {
  background: #d6b161;
  color: #232332;
}
.cc-btn-accept:hover {
  background: transparent;
  border-color: #d6b161;
  color: #d6b161;
}
.cc-btn-refuse {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.cc-btn-refuse:hover {
  background: #fff;
  color: #232332;
}
.cc-btn-personalize {
  background: transparent;
  border-color: transparent;
  color: #fff;
  text-decoration: underline;
  padding: 10px 6px;
}
.cc-btn-personalize:hover {
  color: #d6b161;
}
.cc-btn-save {
  background: #d6b161;
  color: #232332;
}
.cc-btn-save:hover {
  background: #232332;
  color: #d6b161;
  border-color: #d6b161;
}

/* ---------- Modale de preferences ---------- */
#cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(20, 20, 28, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cc-modal-overlay.cc-visible {
  display: flex;
}
#cc-modal {
  background: #fff;
  color: #444;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
#cc-modal .cc-modal-header {
  background: #232332;
  color: #fff;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#cc-modal .cc-modal-header h2 {
  font-family: 'Dosis', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 19px;
  margin: 0;
  color: #fff;
}
#cc-modal .cc-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 15px;
}
#cc-modal .cc-modal-close:hover {
  color: #d6b161;
}
#cc-modal .cc-modal-body {
  padding: 25px 30px 5px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}
#cc-modal .cc-category {
  border-top: 1px solid #eceff8;
  padding: 18px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
#cc-modal .cc-category:last-of-type {
  border-bottom: 1px solid #eceff8;
}
#cc-modal .cc-category-info h3 {
  font-family: 'Dosis', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #232332;
  margin: 0 0 6px;
}
#cc-modal .cc-category-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
#cc-modal .cc-tag-required {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #d6b161;
  letter-spacing: 0.5px;
}

/* Interrupteur (toggle) */
.cc-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-switch .cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}
.cc-switch .cc-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.cc-switch input:checked + .cc-slider {
  background: #d6b161;
}
.cc-switch input:checked + .cc-slider:before {
  transform: translateX(20px);
}
.cc-switch input:disabled + .cc-slider {
  background: #232332;
  opacity: 0.5;
  cursor: not-allowed;
}

#cc-modal .cc-modal-footer {
  padding: 20px 30px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Lien discret pour rouvrir les preferences (pied de page) */
.cc-settings-link {
  cursor: pointer;
}

@media (max-width: 767px) {
  #cc-banner {
    padding: 18px 16px;
  }
  #cc-banner .cc-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .cc-btn {
    padding: 9px 16px;
  }
  #cc-modal .cc-modal-header,
  #cc-modal .cc-modal-body,
  #cc-modal .cc-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  #cc-modal .cc-category {
    flex-direction: column;
  }
}
