/* ── Cookie Consent ─────────────────────────────────────────── */
#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #16181D;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(.22,.6,.32,1);
}

#cc-banner.cc-show {
  transform: translateY(0);
}

/* ── Conteneur commun ─────────────────────────────────────────── */
.cc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* ── Vue principale ───────────────────────────────────────────── */
.cc-view-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cc-text { flex: 1; min-width: 220px; }

.cc-text strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cc-text p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,.55);
}

.cc-text p b {
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

.cc-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Boutons ──────────────────────────────────────────────────── */
.cc-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}

.cc-btn-accept { background: #B9712A; color: #fff; }
.cc-btn-accept:hover { background: #925515; }

.cc-btn-custom {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.28);
}
.cc-btn-custom:hover { color: #fff; border-color: rgba(255,255,255,.55); }

.cc-btn-refuse {
  background: transparent;
  color: rgba(255,255,255,.45);
  border: 1.5px solid rgba(255,255,255,.15);
}
.cc-btn-refuse:hover { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.35); }

/* ── Vue panneau ──────────────────────────────────────────────── */
.cc-view-panel { padding-top: 18px; padding-bottom: 18px; }

.cc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cc-panel-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; }

.cc-back {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.cc-back:hover { color: rgba(255,255,255,.8); }

/* ── Lignes catégories ────────────────────────────────────────── */
.cc-rows {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-bottom: 16px;
}

.cc-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.cc-row-info { flex: 1; }

.cc-row-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #B9712A;
  border: 1px solid rgba(185,113,42,.5);
  padding: 2px 7px;
  border-radius: 2px;
}

.cc-row-desc {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,.45);
}

/* ── Toggle switch ────────────────────────────────────────────── */
.cc-toggle { flex-shrink: 0; cursor: pointer; display: block; }

.cc-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cc-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.18);
  transition: background .22s;
}

.cc-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: transform .22s, background .22s;
}

.cc-checkbox:checked + .cc-track { background: #B9712A; }
.cc-checkbox:checked + .cc-track .cc-thumb { transform: translateX(20px); background: #fff; }
.cc-checkbox:focus-visible + .cc-track { outline: 2px solid #B9712A; outline-offset: 2px; }

/* Toggle toujours actif (verrouillé) */
.cc-toggle-locked { cursor: default; }
.cc-track-on { background: rgba(185,113,42,.5); }
.cc-track-on .cc-thumb { transform: translateX(20px); background: rgba(255,255,255,.65); }

.cc-panel-footer { display: flex; justify-content: flex-end; }

/* ── Bouton flottant ──────────────────────────────────────────── */
#cc-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(185,113,42,.55);
  background: #16181D;
  color: #fff;
  cursor: pointer;
  display: none; /* affiché par JS */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: border-color .25s, transform .2s, box-shadow .25s;
  padding: 0;
}

#cc-float:hover {
  border-color: #B9712A;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

#cc-float svg {
  display: block;
  color: rgba(255,255,255,.75);
  transition: color .2s;
}

#cc-float:hover svg { color: #fff; }

/* Animation d'entrée (1ère apparition après fermeture du bandeau) */
@keyframes ccFloatIn {
  0%   { opacity: 0; transform: scale(0.4) rotate(-30deg); }
  60%  { transform: scale(1.12) rotate(8deg); }
  80%  { transform: scale(0.96) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

#cc-float.cc-float-enter {
  animation: ccFloatIn 0.5s cubic-bezier(.22,.6,.32,1) forwards;
}

/* Animation wiggle au clic */
@keyframes ccWiggle {
  0%   { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-18deg) scale(1.15); }
  45%  { transform: rotate(18deg) scale(1.15); }
  65%  { transform: rotate(-10deg) scale(1.05); }
  82%  { transform: rotate(8deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

#cc-float.cc-wiggle {
  animation: ccWiggle 0.5s cubic-bezier(.22,.6,.32,1);
}

/* ── Responsive mobile ────────────────────────────────────────── */
@media (max-width: 600px) {
  .cc-inner {
    padding: 14px 16px;
  }

  /* Vue principale : texte + boutons en colonne */
  .cc-view-main {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cc-text { min-width: 0; }

  .cc-btns {
    flex-direction: column;
    gap: 7px;
  }

  .cc-btn {
    width: 100%;
    text-align: center;
    padding: 11px 16px;
    font-size: 12px;
  }

  /* Vue panneau */
  .cc-view-panel {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .cc-panel-title { font-size: 12px; }

  .cc-row {
    gap: 12px;
    padding: 11px 0;
  }

  .cc-row-desc {
    font-size: 10px;
    line-height: 1.5;
  }

  .cc-row-name { font-size: 11px; }

  /* Bouton flottant plus petit */
  #cc-float {
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  #cc-float svg {
    width: 18px;
    height: 18px;
  }
}
