/* Card flottante en bas à droite. */
.cl-ctc {
  --cl-ctc-accent: #e3000b;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483647;
  box-sizing: border-box;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 24px 20px 20px;
  font-family: 'Circular-Book', Helvetica, Arial, Lucida, sans-serif !important;
  color: #575756 !important;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.cl-ctc[hidden],
.cl-ctc [hidden],
.cl-ctc-reopen[hidden] {
  display: none !important;
}

.cl-ctc__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-family: inherit;
  font-size: 26px;
  line-height: 1;
  color: #5b6470;
  background: none;
  border: 0;
  cursor: pointer;
}

.cl-ctc__close:hover,
.cl-ctc__close:focus-visible {
  color: #000;
}

.cl-ctc__title {
  margin: 0 0 12px;
  font-family: 'Museo500-Regular', 'Museo-500-Regular', Helvetica, Arial, Lucida, sans-serif !important;
  color: #000 !important;
  padding-right: 20px;
  font-size: 1.2em;
  line-height: 1.25;
}

.cl-ctc__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9em;
}

.cl-ctc__input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1.1em;
  color: #575756 !important;
  border: 1px solid #c4c9d0;
  border-radius: 6px;
  box-sizing: border-box;
}

.cl-ctc__input:focus {
  outline: 2px solid var(--cl-ctc-accent);
  outline-offset: 1px;
}

/* Champ piège anti-robot : ne doit jamais être visible. */
.cl-ctc__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cl-ctc__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 0.75em;
  line-height: 1.4;
}

.cl-ctc__button {
  width: 100%;
  padding: 14px;
  font-family: 'Museo-900-Regular', Helvetica, Arial, Lucida, sans-serif !important;
  font-size: 1.1em;
  color: #fff !important;
  background: var(--cl-ctc-accent);
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease !important;
}

.cl-ctc__button:hover:not(:disabled),
.cl-ctc__button:focus-visible {
  color: #fff !important;
  background-color: #b8000a;
}

.cl-ctc__button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cl-ctc__feedback {
  margin: 12px 0 0;
  font-size: 0.9em;
}

.cl-ctc__feedback.is-success {
  color: #1a7f37;
}

.cl-ctc__feedback.is-error {
  color: #b42318;
}

.cl-ctc__inactive {
  margin: 0;
  padding-right: 20px;
  text-align: center;
}

/* Bouton de réouverture, affiché quand la card est fermée. */
.cl-ctc-reopen {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483647;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-family: 'Museo-900-Regular', Helvetica, Arial, Lucida, sans-serif !important;
  font-size: 1.1em;
  color: #fff !important;
  background: #e3000b;
  border: 0;
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background-color 0.3s ease !important;
}

.cl-ctc-reopen:hover,
.cl-ctc-reopen:focus-visible {
  color: #fff !important;
  background-color: #b8000a;
}

@media (max-width: 480px) {
  .cl-ctc {
    right: 16px;
    bottom: 16px;
  }

  /* Mobile : bouton rond avec l'icône seule. */
  .cl-ctc-reopen {
    right: 16px;
    bottom: 16px;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
  }

  .cl-ctc-reopen__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cl-ctc-reopen__icon {
    width: 24px;
    height: 24px;
  }
}
