/* Questions fréquentes — extends site-shell */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.faq-page {
  --faq-sticky: 104px;
  --faq-line: #dcebef;
  --faq-muted: #607d94;
}

.faq-page main {
  background: #fff;
}

.faq-page h1,
.faq-page h2,
.faq-page h3 {
  font-family: "Poppins", "Figtree", sans-serif;
}

/* Hero */

.faq-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, .95), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(0, 183, 199, .1), transparent 34%),
    linear-gradient(100deg, #effafe 0%, #f8fcfd 52%, #e8f7f9 100%);
}

.faq-hero-inner {
  max-width: 900px;
  padding: clamp(48px, 7vw, 84px) 24px clamp(40px, 5vw, 60px);
  text-align: center;
}

.faq-kicker {
  width: max-content;
  margin: 0 auto 20px;
  padding: 7px 21px;
  color: #3288a0;
  background: #e5f7fa;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  line-height: 1.45;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(40px, 5vw, 63px);
  font-weight: 600;
  letter-spacing: -2.4px;
  line-height: 1.05;
}

.faq-hero h1 span {
  color: var(--cyan);
}

.faq-hero-lead {
  max-width: 640px;
  margin: 0 auto 30px;
  color: #476b88;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.45;
}

/* Search */

.faq-search {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.faq-search input {
  width: 100%;
  height: 64px;
  padding: 0 60px 0 60px;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid #cfe7ee;
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(14, 74, 112, .1);
  font: 500 17px/1 "Figtree", sans-serif;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-search input::placeholder {
  color: #8aa2b3;
  font-weight: 400;
}

.faq-search input::-webkit-search-cancel-button {
  display: none;
}

.faq-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 183, 199, .16), 0 14px 38px rgba(14, 74, 112, .1);
}

.faq-search-icon {
  position: absolute;
  top: 50%;
  left: 24px;
  width: 22px;
  height: 22px;
  color: var(--cyan-dark);
  transform: translateY(-50%);
  pointer-events: none;
}

.faq-search-clear {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--navy);
  background: #eef8fa;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.faq-search-clear[hidden] {
  display: none;
}

.faq-search-clear .icon {
  width: 16px;
  height: 16px;
}

.faq-search-clear:hover {
  background: #dff3f6;
}

.faq-search-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--faq-muted);
  font-size: 14px;
}

.faq-search-status strong {
  color: var(--navy);
}

.faq-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--faq-muted);
  font-size: 13px;
}

.faq-suggestions button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, .8);
  border: 1px solid #d3eaf0;
  border-radius: 999px;
  font: 600 13px/1 "Figtree", sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.faq-suggestions button:hover {
  background: #fff;
  border-color: var(--cyan);
}

/* Filters */

.faq-filters {
  position: sticky;
  top: var(--faq-sticky);
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--faq-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.faq-chips {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.faq-chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1100px) {
  .faq-chips {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
}

.faq-chip {
  flex: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #d3eaf0;
  border-radius: 999px;
  font: 600 14px/1 "Figtree", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.faq-chip span {
  min-width: 24px;
  padding: 4px 7px;
  color: #3288a0;
  background: #e8f8fa;
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.faq-chip:hover {
  border-color: var(--cyan);
}

.faq-chip.is-active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.faq-chip.is-active span {
  color: var(--navy);
  background: #fff;
}

.faq-chip.is-empty {
  opacity: .45;
}

/* Groups */

.faq-body {
  padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 70px);
}

.faq-body-inner {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4.5vw, 54px);
}

.faq-group {
  scroll-margin-top: calc(var(--faq-sticky) + 90px);
}

.faq-group[hidden] {
  display: none;
}

.faq-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.faq-group-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--cyan-dark);
  background: #e8f8fa;
  border-radius: 50%;
}

.faq-group-icon .icon {
  width: 22px;
  height: 22px;
}

.faq-group-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  letter-spacing: -.8px;
  line-height: 1.15;
}

.faq-group-count {
  margin-left: auto;
  color: var(--faq-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.faq-list {
  background: #fff;
  border: 1px solid var(--faq-line);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item {
  scroll-margin-top: calc(var(--faq-sticky) + 90px);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--faq-line);
}

.faq-item[hidden] {
  display: none;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: background .2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: #f7fcfd;
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(0, 183, 199, .4);
  outline-offset: -3px;
}

.faq-plus {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  background: #e8f8fa;
  border: 1px solid #cfeef2;
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--cyan-dark);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: background .2s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-plus {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
  transform: rotate(45deg);
}

.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after {
  background: #fff;
}

.faq-item[open] summary {
  background: #f7fcfd;
}

.faq-a {
  padding: 0 72px 22px 24px;
  background: #f7fcfd;
}

.faq-a p {
  margin: 0;
  color: #4f6f86;
  font-size: 15px;
  line-height: 1.6;
}

.faq-a a {
  color: var(--cyan-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-page mark {
  padding: 0 2px;
  color: inherit;
  background: #ccf2f6;
  border-radius: 3px;
}

/* Empty state */

.faq-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

.faq-empty[hidden] {
  display: none;
}

.faq-empty .faq-group-icon {
  margin: 0 auto 16px;
}

.faq-empty h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 600;
}

.faq-empty p {
  margin: 0 0 22px;
  color: var(--faq-muted);
  font-size: 15px;
}

.faq-empty .button {
  display: inline-flex;
}

/* CTA */

.faq-cta {
  padding: 0 0 clamp(48px, 6vw, 80px);
}

.faq-cta-inner {
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 3.5vw, 40px) clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 183, 199, .22), transparent 40%),
    var(--navy);
  border-radius: 20px;
}

.faq-cta h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.6px;
  line-height: 1.15;
}

.faq-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.45;
}

.faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

.faq-cta .button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
}

.faq-cta .button.secondary:hover {
  background: rgba(255, 255, 255, .1);
}

.faq-cta .button.secondary .icon:first-child {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .faq-hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .faq-hero h1 {
    letter-spacing: -1.4px;
  }

  .faq-search input {
    height: 56px;
    padding: 0 52px 0 50px;
    font-size: 16px;
  }

  .faq-search-icon {
    left: 19px;
    width: 19px;
    height: 19px;
  }

  .faq-search-clear {
    right: 9px;
    width: 36px;
    height: 36px;
  }

  .faq-suggestions span {
    width: 100%;
  }

  .faq-chips {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .faq-chip {
    min-height: 36px;
    font-size: 13px;
  }

  .faq-group-head {
    gap: 11px;
  }

  .faq-group-icon {
    width: 40px;
    height: 40px;
  }

  .faq-group-count {
    display: none;
  }

  .faq-list {
    border-radius: 14px;
  }

  .faq-item summary {
    padding: 17px 16px;
    font-size: 15px;
  }

  .faq-plus {
    width: 28px;
    height: 28px;
  }

  .faq-a {
    padding: 0 16px 18px;
  }

  .faq-a p {
    font-size: 14.5px;
  }

  .faq-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-cta-actions,
  .faq-cta-actions .button {
    width: 100%;
  }

  .faq-cta-actions .button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-plus,
  .faq-plus::before,
  .faq-plus::after {
    transition: none;
  }
}
