.cvr-faq {
  --cvr-faq-ink: #17151f;
  --cvr-faq-muted: #666270;
  --cvr-faq-line: #e8e4ee;
  --cvr-faq-soft: #f7f5fa;
  --cvr-faq-surface: #ffffff;
  --cvr-faq-input: #ffffff;

  --cvr-faq-primary: #6d28d9;
  --cvr-faq-primary-dark: #4c1d95;
  --cvr-faq-accent: #e11d48;

  --cvr-faq-success: #087f5b;
  --cvr-faq-danger: #b42318;

  color: var(--cvr-faq-ink);

  margin: 0 auto;
  max-width: 1080px;
}

.cvr-faq *,
.cvr-faq *::before,
.cvr-faq *::after {
  box-sizing: border-box;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.cvr-faq__heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.cvr-faq__eyebrow {
  margin: 0 0 .6rem;

  color: var(--cvr-faq-primary);

  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cvr-faq__heading h2,
.cvr-faq__ask h3 {
  margin: 0;

  color: var(--cvr-faq-ink);

  line-height: 1.08;
}

.cvr-faq__heading h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -.04em;
}

.cvr-faq__heading > p:last-child {
  margin: 1rem 0 0;

  color: var(--cvr-faq-muted);

  font-size: 1.08rem;
  line-height: 1.65;
}


/* =========================================================
   RECHERCHE
   ========================================================= */

.cvr-faq__toolbar {
  position: relative;

  display: flex;
  align-items: center;
  gap: .75rem;

  padding: .45rem .55rem .45rem 1rem;

  border: 1px solid var(--cvr-faq-line);
  border-radius: 18px;

  background: var(--cvr-faq-surface);

  box-shadow:
    0 15px 45px rgba(38, 24, 58, .08);
}

.cvr-faq__search-icon {
  position: relative;

  display: block;
  flex: 0 0 16px;

  width: 16px;
  height: 16px;

  border: 2px solid var(--cvr-faq-primary);
  border-radius: 50%;
}

.cvr-faq__search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -5px;

  width: 2px;
  height: 7px;

  border-radius: 2px;

  background: var(--cvr-faq-primary);

  content: "";

  transform: rotate(-45deg);
}

.cvr-faq__search {
  appearance: none;

  flex: 1;
  min-width: 0;
  min-height: 50px;

  padding: 0 .25rem !important;

  border: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  color: var(--cvr-faq-ink);

  font: inherit;
  font-size: 1rem;

  outline: none;
}

.cvr-faq__search::placeholder {
  color: #8b8690;
  opacity: 1;
}

.cvr-faq__clear {
  padding: .8rem 1rem;

  border: 0;
  border-radius: 12px;

  background: var(--cvr-faq-soft);
  color: var(--cvr-faq-muted);

  cursor: pointer;

  font: inherit;
  font-size: .86rem;
  font-weight: 700;
}


/* =========================================================
   FILTRES
   ========================================================= */

.cvr-faq__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;

  margin: 1.15rem 0 .5rem;
}

.cvr-faq__filters button {
  padding: .75rem 1rem;

  border: 1px solid var(--cvr-faq-line);
  border-radius: 999px;

  background: transparent;
  color: var(--cvr-faq-muted);

  cursor: pointer;

  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1;

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

.cvr-faq__filters button:hover,
.cvr-faq__filters button:focus-visible {
  border-color: var(--cvr-faq-primary);

  color: var(--cvr-faq-primary);

  transform: translateY(-1px);
}

.cvr-faq__filters button.is-active {
  border-color: var(--cvr-faq-primary);

  background: var(--cvr-faq-primary);
  color: #ffffff;
}

.cvr-faq__count {
  margin: 1rem 0;

  color: var(--cvr-faq-muted);

  font-size: .86rem;
}


/* =========================================================
   LISTE FAQ
   ========================================================= */

.cvr-faq__list {
  display: grid;
  gap: .8rem;
}

.cvr-faq__item {
  overflow: clip;

  border: 1px solid var(--cvr-faq-line);
  border-radius: 18px;

  background: var(--cvr-faq-surface);

  box-shadow:
    0 8px 25px rgba(31, 20, 46, .035);

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.cvr-faq__item:hover {
  border-color: #d8cbed;

  transform: translateY(-1px);
}

.cvr-faq__item[open] {
  border-color: #cdb9ed;

  box-shadow:
    0 18px 40px rgba(70, 35, 110, .09);
}

.cvr-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 1.25rem 1.35rem;

  color: var(--cvr-faq-ink);

  cursor: pointer;

  list-style: none;
}

.cvr-faq__item summary::-webkit-details-marker {
  display: none;
}

.cvr-faq__question-wrap {
  display: grid;
  gap: .38rem;
}

.cvr-faq__category {
  color: var(--cvr-faq-primary);

  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cvr-faq__question {
  color: var(--cvr-faq-ink);

  font-size: clamp(1rem, 2vw, 1.14rem);
  font-weight: 800;
  line-height: 1.35;
}

.cvr-faq__toggle {
  position: relative;

  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  border: 1px solid var(--cvr-faq-line);
  border-radius: 50%;
}

.cvr-faq__toggle::before,
.cvr-faq__toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;

  background: var(--cvr-faq-primary);

  content: "";

  transform: translate(-50%, -50%);

  transition: transform .18s ease;
}

.cvr-faq__toggle::before {
  width: 12px;
  height: 2px;
}

.cvr-faq__toggle::after {
  width: 2px;
  height: 12px;
}

.cvr-faq__item[open] .cvr-faq__toggle::after {
  transform:
    translate(-50%, -50%)
    rotate(90deg);
}

.cvr-faq__answer {
  margin: 0 1.35rem;
  padding: 1.1rem 0 1.35rem;

  border-top: 1px solid var(--cvr-faq-line);

  color: #4e4958;

  line-height: 1.7;
}

.cvr-faq__answer > :first-child {
  margin-top: 0;
}

.cvr-faq__answer > :last-child {
  margin-bottom: 0;
}

.cvr-faq__answer a,
.cvr-faq__consent a {
  color: var(--cvr-faq-primary-dark);

  font-weight: 700;

  text-underline-offset: .18em;
}


/* =========================================================
   AUCUN RÉSULTAT
   ========================================================= */

.cvr-faq__no-results,
.cvr-faq__empty-admin {
  display: grid;
  gap: .35rem;

  margin-top: 1rem;
  padding: 1.4rem;

  border: 1px dashed #cabddd;
  border-radius: 18px;

  background: var(--cvr-faq-soft);
  color: var(--cvr-faq-ink);
}


/* =========================================================
   POSER UNE QUESTION
   ========================================================= */

.cvr-faq__ask {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(0, .8fr)
    minmax(0, 1.2fr);
  gap: 2rem;

  margin-top: 3.5rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);

  overflow: hidden;

  border-radius: 26px;

  background:
    radial-gradient(
      circle at top right,
      rgba(225, 29, 72, .16),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #21162f 0%,
      #4c1d95 100%
    );

  color: #ffffff;
}

.cvr-faq__ask .cvr-faq__eyebrow {
  color: #d9c7ff;
}

.cvr-faq__ask h3 {
  color: #ffffff;

  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -.035em;
}

.cvr-faq__ask-copy > p:last-child {
  color: rgba(255, 255, 255, .78);

  line-height: 1.65;
}


/* =========================================================
   FORMULAIRE
   ========================================================= */

.cvr-faq__form-wrap {
  padding: clamp(1.15rem, 3vw, 1.7rem);

  border-radius: 20px;

  background: var(--cvr-faq-surface);
  color: var(--cvr-faq-ink);
}

.cvr-faq__form {
  display: grid;
  gap: .8rem;
}

.cvr-faq__form label {
  color: var(--cvr-faq-ink);

  font-size: .9rem;
  font-weight: 800;
}

.cvr-faq__optional {
  color: var(--cvr-faq-muted);

  font-weight: 500;
}

.cvr-faq__form input[type="text"],
.cvr-faq__form input[type="email"],
.cvr-faq__form textarea {
  width: 100%;

  margin: .35rem 0 0;
  padding: .85rem .95rem;

  border: 1px solid #dcd6e3;
  border-radius: 12px;

  background: var(--cvr-faq-input);
  color: var(--cvr-faq-ink);

  box-shadow: none;

  font: inherit;

  outline: none;
}

.cvr-faq__form input::placeholder,
.cvr-faq__form textarea::placeholder {
  color: #918b96;
  opacity: 1;
}

.cvr-faq__form input:focus,
.cvr-faq__form textarea:focus {
  border-color: var(--cvr-faq-primary);

  box-shadow:
    0 0 0 3px rgba(109, 40, 217, .12);
}

.cvr-faq__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}


/* =========================================================
   CAPTCHA
   ========================================================= */

.cvr-faq__captcha {
  display: grid;
  gap: .55rem;

  margin-top: .15rem;
}

.cvr-faq__captcha-label {
  color: var(--cvr-faq-ink);

  font-size: .9rem;
  font-weight: 700;
}

.cvr-faq__captcha .cf-turnstile {
  min-height: 65px;
}


/* =========================================================
   CONSENTEMENT
   ========================================================= */

.cvr-faq__consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;

  margin-top: .35rem;

  color: var(--cvr-faq-muted);

  font-size: .82rem !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.cvr-faq__consent input {
  flex: 0 0 auto;

  margin-top: .2rem;

  accent-color: var(--cvr-faq-primary);
}


/* =========================================================
   BOUTON ENVOI
   ========================================================= */

.cvr-faq__submit {
  justify-self: start;

  padding: .95rem 1.25rem;

  border: 0;
  border-radius: 12px;

  background: var(--cvr-faq-accent);
  color: #ffffff;

  cursor: pointer;

  font: inherit;
  font-weight: 800;

  transition:
    filter .18s ease,
    transform .18s ease;
}

.cvr-faq__submit:hover,
.cvr-faq__submit:focus-visible {
  filter: brightness(.94);

  transform: translateY(-1px);
}

.cvr-faq__form-note {
  margin: 0;

  color: var(--cvr-faq-muted);

  font-size: .78rem;
}


/* =========================================================
   NOTIFICATIONS
   ========================================================= */

.cvr-faq__notice {
  margin-bottom: 1rem;
  padding: .9rem 1rem;

  border-radius: 12px;

  font-size: .9rem;
  font-weight: 700;
}

.cvr-faq__notice--success {
  background: #e7f8f1;
  color: var(--cvr-faq-success);
}

.cvr-faq__notice--error {
  background: #fff0ee;
  color: var(--cvr-faq-danger);
}

.cvr-faq__honeypot {
  position: absolute;
  top: auto;
  left: -10000px;
}

.cvr-faq [hidden] {
  display: none !important;
}


/* =========================================================
   MODE SOMBRE CONVAINCRE
   ========================================================= */

html[data-cv-theme="dark"] .cvr-faq {
  --cvr-faq-ink: #f8f4fa;
  --cvr-faq-muted: #beb4c3;
  --cvr-faq-line: #403449;
  --cvr-faq-soft: #28202f;
  --cvr-faq-surface: #211a27;
  --cvr-faq-input: #18131d;

  --cvr-faq-primary: #9a70bf;
  --cvr-faq-primary-dark: #c09bda;
  --cvr-faq-accent: #e94d47;

  --cvr-faq-success: #91d9b1;
  --cvr-faq-danger: #ff9da4;

  color-scheme: dark;

  color: var(--cvr-faq-ink);
}


/* Titres */

html[data-cv-theme="dark"] .cvr-faq__heading h2 {
  color: #fbf8fc !important;
}

html[data-cv-theme="dark"] .cvr-faq__eyebrow {
  color: #aa7fd0 !important;
}

html[data-cv-theme="dark"] .cvr-faq__heading > p:last-child {
  color: #c3b8c8 !important;
}


/* Recherche */

html[data-cv-theme="dark"] .cvr-faq__toolbar {
  border-color: #403449 !important;

  background: #211a27 !important;

  box-shadow:
    0 15px 45px rgba(5, 3, 7, .22);
}

html[data-cv-theme="dark"] .cvr-faq__search {
  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .cvr-faq__search::placeholder {
  color: #817687 !important;
}

html[data-cv-theme="dark"] .cvr-faq__clear {
  background: #30263a !important;

  color: #c5bac9 !important;
}


/* Filtres */

html[data-cv-theme="dark"] .cvr-faq__filters button {
  border-color: #4a3b55 !important;

  color: #bcb2c1 !important;
}

html[data-cv-theme="dark"] .cvr-faq__filters button:hover,
html[data-cv-theme="dark"] .cvr-faq__filters button:focus-visible {
  border-color: #9a70bf !important;

  color: #b990d3 !important;
}

html[data-cv-theme="dark"] .cvr-faq__filters button.is-active {
  border-color: #7650a0 !important;

  background: #7650a0 !important;

  color: #ffffff !important;
}

html[data-cv-theme="dark"] .cvr-faq__count {
  color: #a89dac !important;
}


/* Questions */

html[data-cv-theme="dark"] .cvr-faq__item {
  border-color: #403449 !important;

  background: #211a27 !important;

  box-shadow:
    0 10px 28px rgba(5, 3, 7, .12);
}

html[data-cv-theme="dark"] .cvr-faq__item:hover {
  border-color: #594565 !important;

  background: #251d2c !important;
}

html[data-cv-theme="dark"] .cvr-faq__item[open] {
  border-color: #765695 !important;

  background: #251d2c !important;

  box-shadow:
    0 18px 42px rgba(5, 3, 7, .2);
}

html[data-cv-theme="dark"] .cvr-faq__item summary {
  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .cvr-faq__question {
  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .cvr-faq__category {
  color: #aa7fd0 !important;
}

html[data-cv-theme="dark"] .cvr-faq__toggle {
  border-color: #54425f !important;

  background: #18131d;
}

html[data-cv-theme="dark"] .cvr-faq__toggle::before,
html[data-cv-theme="dark"] .cvr-faq__toggle::after {
  background: #aa7fd0 !important;
}


/* Réponses */

html[data-cv-theme="dark"] .cvr-faq__answer {
  border-top-color: #403449 !important;

  color: #c6bccb !important;
}

html[data-cv-theme="dark"] .cvr-faq__answer p,
html[data-cv-theme="dark"] .cvr-faq__answer li {
  color: #c6bccb !important;
}

html[data-cv-theme="dark"] .cvr-faq__answer strong {
  color: #f5eff7 !important;
}

html[data-cv-theme="dark"] .cvr-faq__answer a,
html[data-cv-theme="dark"] .cvr-faq__consent a {
  color: #bf98da !important;
}


/* Aucun résultat */

html[data-cv-theme="dark"] .cvr-faq__no-results,
html[data-cv-theme="dark"] .cvr-faq__empty-admin {
  border-color: #50405b !important;

  background: #241d2b !important;

  color: #c8bdcc !important;
}


/* Bloc poser une question */

html[data-cv-theme="dark"] .cvr-faq__ask {
  background:
    radial-gradient(
      circle at top right,
      rgba(95, 124, 245, .13),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #18121f 0%,
      #392448 100%
    ) !important;

  color: #ffffff !important;
}

html[data-cv-theme="dark"] .cvr-faq__ask h3 {
  color: #ffffff !important;
}

html[data-cv-theme="dark"] .cvr-faq__ask .cvr-faq__eyebrow {
  color: #c5a0dc !important;
}

html[data-cv-theme="dark"] .cvr-faq__ask-copy > p:last-child {
  color: rgba(255, 255, 255, .74) !important;
}


/* Formulaire question */

html[data-cv-theme="dark"] .cvr-faq__form-wrap {
  border: 1px solid #403449;

  background: #211a27 !important;

  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .cvr-faq__form label,
html[data-cv-theme="dark"] .cvr-faq__captcha-label {
  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .cvr-faq__optional,
html[data-cv-theme="dark"] .cvr-faq__consent,
html[data-cv-theme="dark"] .cvr-faq__form-note {
  color: #aaa0af !important;
}

html[data-cv-theme="dark"] .cvr-faq__form input[type="text"],
html[data-cv-theme="dark"] .cvr-faq__form input[type="email"],
html[data-cv-theme="dark"] .cvr-faq__form textarea {
  border-color: #493b54 !important;

  background: #18131d !important;

  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .cvr-faq__form input::placeholder,
html[data-cv-theme="dark"] .cvr-faq__form textarea::placeholder {
  color: #817687 !important;
}

html[data-cv-theme="dark"] .cvr-faq__form input:focus,
html[data-cv-theme="dark"] .cvr-faq__form textarea:focus {
  border-color: #5f7cf5 !important;

  box-shadow:
    0 0 0 3px rgba(95, 124, 245, .16) !important;
}


/* Bouton */

html[data-cv-theme="dark"] .cvr-faq__submit {
  background: #e94d47 !important;

  color: #ffffff !important;
}


/* Notices */

html[data-cv-theme="dark"] .cvr-faq__notice--success {
  background: #15251e !important;

  color: #91d9b1 !important;
}

html[data-cv-theme="dark"] .cvr-faq__notice--error {
  background: #2d171d !important;

  color: #ff9da4 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
  .cvr-faq__ask,
  .cvr-faq__form-grid {
    grid-template-columns: 1fr;
  }

  .cvr-faq__toolbar {
    border-radius: 14px;
  }

  .cvr-faq__item,
  .cvr-faq__ask,
  .cvr-faq__form-wrap {
    border-radius: 16px;
  }

  .cvr-faq__item summary {
    padding: 1rem;
  }

  .cvr-faq__answer {
    margin: 0 1rem;
  }

  .cvr-faq__clear {
    padding-inline: .75rem;
  }
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .cvr-faq *,
  .cvr-faq *::before,
  .cvr-faq *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}