/* ============================================================
   GLOBAL ESSOR — PAGE FAQ CENTRALE (sans CTA)
   Scope strict : #ge-faq
   ============================================================ */

#ge-faq,
#ge-faq *,
#ge-faq *::before,
#ge-faq *::after { box-sizing: border-box; }

#ge-faq h1, #ge-faq h2, #ge-faq h3 {
  display: block;
  white-space: normal;
  position: static;
  max-width: none;
  overflow: visible;
}

#ge-faq {
  --bb-ink:         #0B1B2B;
  --bb-ink-soft:    #3A4A5A;
  --bb-ink-mute:    #5A6B7B;
  --bb-line:        #E8EEF6;
  --bb-bg:          #FFFFFF;
  --bb-bg-soft:     #F7FAFE;
  --bb-radius:      18px;
  --bb-ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --bb-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  position: relative;
  font-family: var(--bb-font);
  background: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

#ge-faq::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 50% 0%,   rgba(47, 123, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 90% 100%, rgba(var(--color-blue-rgb), 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#ge-faq .ge-faq__container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 4rem 0 110px;
}

/* ============================================================
   HERO
   ============================================================ */
#ge-faq .ge-faq__hero {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

#ge-faq .ge-faq__kicker {
  position: relative;
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 7px 14px 7px 16px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: rgba(var(--color-blue-rgb), 0.08);
  border: 1px solid rgba(var(--color-blue-rgb), 0.16);
  color: var(--color-blue);
  font: 800 12.5px/1 var(--bb-font);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  overflow: hidden; isolation: isolate;
}
#ge-faq .ge-faq__kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: var(--color-blue); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(var(--color-blue-rgb), 0.55), 0 0 8px rgba(47, 123, 255, 0.65);
  animation: ge-faq-pulse 2.6s ease-out infinite;
}
#ge-faq .ge-faq__kicker::after {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(47, 123, 255, 0.24) 50%, transparent);
  animation: ge-faq-shimmer 8s ease-in-out infinite;
  pointer-events: none; z-index: -1;
}
@keyframes ge-faq-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--color-blue-rgb), 0.6), 0 0 8px rgba(47, 123, 255, 0.65); }
  70%  { box-shadow: 0 0 0 8px rgba(var(--color-blue-rgb), 0), 0 0 8px rgba(47, 123, 255, 0.65); }
  100% { box-shadow: 0 0 0 0 rgba(var(--color-blue-rgb), 0), 0 0 8px rgba(47, 123, 255, 0.65); }
}
@keyframes ge-faq-shimmer {
  0%, 72%, 100% { transform: translateX(0); opacity: 0; }
  82%           { opacity: 1; }
  92%           { transform: translateX(370%); opacity: 0; }
}

#ge-faq .ge-faq__title {
  max-width: 20ch;
  margin: 0 auto 18px;
  color: var(--bb-ink);
  font: 900 clamp(34px, 4vw, 56px)/1.06 var(--bb-font);
  letter-spacing: -0.028em;
  text-wrap: balance;
}

#ge-faq .ge-faq__title-accent {
  /* Style neutre : ni couleur bleue, ni surlignage.
     Le mot "fréquentes" prend la couleur du titre parent. */
  color: inherit;
  white-space: nowrap;
}
#ge-faq .ge-faq__title-accent::after { content: none !important; }

#ge-faq .ge-faq__subtitle {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--bb-ink-soft);
  font: 400 16.5px/1.7 var(--bb-font);
}

/* ============================================================
   SEARCH
   ============================================================ */
#ge-faq .ge-faq__search {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  display: flex; align-items: center;
}
#ge-faq .ge-faq__search-icon {
  position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--bb-ink-mute);
  pointer-events: none;
  transition: color 0.3s ease;
}
#ge-faq .ge-faq__search-input {
  width: 100%;
  min-height: 56px;
  padding: 0 56px 0 52px;
  border-radius: 16px;
  border: 1px solid rgba(11, 27, 43, 0.10);
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(11, 27, 43, 0.05);
  color: var(--bb-ink);
  font: 500 15.5px/1.4 var(--bb-font);
  letter-spacing: -0.005em;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s var(--bb-ease);
}
#ge-faq .ge-faq__search-input::placeholder { color: var(--bb-ink-mute); }
#ge-faq .ge-faq__search-input:focus {
  border-color: rgba(var(--color-blue-rgb), 0.35);
  box-shadow:
    0 14px 38px rgba(11, 27, 43, 0.07),
    0 0 0 4px rgba(var(--color-blue-rgb), 0.08);
}
#ge-faq .ge-faq__search:focus-within .ge-faq__search-icon { color: var(--color-blue); }

#ge-faq .ge-faq__search-clear {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: rgba(11, 27, 43, 0.06);
  border-radius: 999px; cursor: pointer;
  color: var(--bb-ink-soft);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}
#ge-faq .ge-faq__search-clear svg { width: 14px; height: 14px; }
#ge-faq .ge-faq__search-clear:hover { background: rgba(11, 27, 43, 0.10); }
#ge-faq .ge-faq__search-clear.is-visible {
  opacity: 1; pointer-events: auto;
}

/* Reveal Hero */
@media (prefers-reduced-motion: no-preference) {
  #ge-faq .ge-faq__kicker,
  #ge-faq .ge-faq__title,
  #ge-faq .ge-faq__subtitle,
  #ge-faq .ge-faq__search {
    opacity: 0; transform: translateY(28px); filter: blur(6px);
    transition: opacity 0.9s var(--bb-ease), transform 1s var(--bb-ease), filter 0.9s var(--bb-ease);
  }
  #ge-faq.is-in-view .ge-faq__kicker   { opacity:1; transform:none; filter:none; transition-delay: 0.05s; }
  #ge-faq.is-in-view .ge-faq__title    { opacity:1; transform:none; filter:none; transition-delay: 0.18s; }
  #ge-faq.is-in-view .ge-faq__subtitle { opacity:1; transform:none; filter:none; transition-delay: 0.32s; }
  #ge-faq.is-in-view .ge-faq__search   { opacity:1; transform:none; filter:none; transition-delay: 0.42s; }
}

/* ============================================================
   PILLS DE CATÉGORIES
   ============================================================ */
#ge-faq .ge-faq__filters {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 48px;
  max-width: 920px;

  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--bb-ease) 0.5s, transform 0.9s var(--bb-ease) 0.5s;
}
#ge-faq.is-in-view .ge-faq__filters { opacity: 1; transform: none; }

#ge-faq .ge-faq__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 27, 43, 0.10);
  background: #FFFFFF;
  color: var(--bb-ink-soft);
  font: 700 13.5px/1 var(--bb-font);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s var(--bb-ease);
}
#ge-faq .ge-faq__pill-count {
  font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(11, 27, 43, 0.06);
  color: var(--bb-ink-soft);
  font: 800 11px/1 var(--bb-font);
  letter-spacing: 0;
  transition: background 0.3s ease, color 0.3s ease;
}
#ge-faq .ge-faq__pill:hover {
  border-color: rgba(var(--color-blue-rgb), 0.25);
  color: var(--color-blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 27, 43, 0.06);
}
#ge-faq .ge-faq__pill.is-active {
  background: linear-gradient(180deg, var(--color-blue-bright) 0%, var(--color-blue) 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow:
    0 12px 26px rgba(var(--color-blue-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
#ge-faq .ge-faq__pill.is-active .ge-faq__pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

/* ============================================================
   CATÉGORIES
   ============================================================ */
#ge-faq .ge-faq__cat { margin: 0 0 56px; }
#ge-faq .ge-faq__cat:last-of-type { margin-bottom: 0; }

#ge-faq .ge-faq__cat.is-hidden { display: none; }
#ge-faq .ge-faq__item.is-hidden { display: none; }

#ge-faq .ge-faq__cat-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  padding: 0 4px;
  color: var(--bb-ink);
  font: 900 22px/1.2 var(--bb-font);
  letter-spacing: -0.02em;
}
#ge-faq .ge-faq__cat-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-blue-bright), var(--color-blue));
  box-shadow: 0 0 0 4px rgba(var(--color-blue-rgb), 0.10);
  flex-shrink: 0;
}

#ge-faq .ge-faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

/* ============================================================
   ITEM (accordion)
   ============================================================ */
#ge-faq .ge-faq__item {
  position: relative;
  border-radius: var(--bb-radius);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  border: 1px solid rgba(11, 27, 43, 0.08);
  box-shadow: 0 8px 24px rgba(11, 27, 43, 0.05);
  overflow: hidden; isolation: isolate;
  transition:
    border-color 0.4s ease,
    box-shadow 0.5s ease,
    background 0.4s ease;
}
#ge-faq .ge-faq__item::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(var(--color-blue-rgb), 0.55), rgba(47, 123, 255, 0.3) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none; z-index: 1;
}
#ge-faq .ge-faq__item:hover {
  border-color: rgba(var(--color-blue-rgb), 0.18);
  box-shadow: 0 12px 30px rgba(11, 27, 43, 0.07);
}
#ge-faq .ge-faq__item.is-open {
  border-color: rgba(var(--color-blue-rgb), 0.30);
  box-shadow: 0 20px 50px rgba(11, 27, 43, 0.10), 0 6px 16px rgba(var(--color-blue-rgb), 0.08);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
}
#ge-faq .ge-faq__item.is-open::before { opacity: 1; }

#ge-faq .ge-faq__q {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  gap: 18px;
  padding: 22px 22px 22px 24px;
  cursor: pointer; list-style: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#ge-faq .ge-faq__q::-webkit-details-marker { display: none; }
#ge-faq .ge-faq__q::marker { display: none; content: ""; }

#ge-faq .ge-faq__q-text {
  flex: 1 1 auto;
  color: var(--bb-ink);
  font: 700 16px/1.4 var(--bb-font);
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: color 0.3s ease;
}
#ge-faq .ge-faq__item:hover .ge-faq__q-text { color: var(--color-blue-deep); }

#ge-faq .ge-faq__toggle {
  position: relative; flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(var(--color-blue-rgb), 0.08);
  border: 1px solid rgba(var(--color-blue-rgb), 0.18);
  transition:
    background 0.45s var(--bb-ease),
    border-color 0.45s ease,
    transform 0.5s var(--bb-ease),
    box-shadow 0.45s ease;
}
#ge-faq .ge-faq__toggle::before,
#ge-faq .ge-faq__toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 1.8px; background: var(--color-blue); border-radius: 999px;
  transition: transform 0.5s var(--bb-ease), background 0.45s ease;
}
#ge-faq .ge-faq__toggle::before { transform: translate(-50%, -50%) rotate(0deg); }
#ge-faq .ge-faq__toggle::after  { transform: translate(-50%, -50%) rotate(90deg); }

#ge-faq .ge-faq__item:hover .ge-faq__toggle {
  background: rgba(var(--color-blue-rgb), 0.14);
  border-color: rgba(var(--color-blue-rgb), 0.30);
}
#ge-faq .ge-faq__item.is-open .ge-faq__toggle {
  background: linear-gradient(135deg, var(--color-blue-bright) 0%, var(--color-blue) 100%);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(var(--color-blue-rgb), 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: rotate(180deg);
}
#ge-faq .ge-faq__item.is-open .ge-faq__toggle::before { background:#FFF; transform: translate(-50%, -50%) rotate(45deg); }
#ge-faq .ge-faq__item.is-open .ge-faq__toggle::after  { background:#FFF; transform: translate(-50%, -50%) rotate(135deg); }

#ge-faq .ge-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--bb-ease), opacity 0.4s ease;
  opacity: 0;
}
#ge-faq .ge-faq__item.is-open .ge-faq__a {
  grid-template-rows: 1fr; opacity: 1;
}
#ge-faq .ge-faq__a-inner { min-height: 0; overflow: hidden; }
#ge-faq .ge-faq__a-inner p {
  margin: 0;
  padding: 0 24px 24px 24px;
  color: var(--bb-ink-soft);
  font: 400 14.5px/1.75 var(--bb-font);
}
#ge-faq .ge-faq__a-inner p::before {
  content: ""; display: block; width: 40px; height: 2px;
  margin: 0 0 16px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-blue-bright));
  border-radius: 2px;
  opacity: 0; transform: scaleX(0); transform-origin: left center;
  transition: opacity 0.4s ease 0.15s, transform 0.5s var(--bb-ease) 0.15s;
}
#ge-faq .ge-faq__item.is-open .ge-faq__a-inner p::before {
  opacity: 1; transform: scaleX(1);
}

/* ============================================================
   ÉTAT VIDE (no results)
   ============================================================ */
#ge-faq .ge-faq__empty {
  text-align: center;
  padding: 60px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFE 100%);
  border: 1px dashed rgba(var(--color-blue-rgb), 0.25);
}
#ge-faq .ge-faq__empty[hidden] { display: none; }
#ge-faq .ge-faq__empty svg {
  width: 56px; height: 56px;
  color: var(--color-blue);
  margin: 0 auto 18px; display: block;
  opacity: 0.6;
}
#ge-faq .ge-faq__empty h3 {
  margin: 0 0 8px;
  color: var(--bb-ink);
  font: 800 20px/1.3 var(--bb-font);
  letter-spacing: -0.015em;
}
#ge-faq .ge-faq__empty p {
  margin: 0 0 22px;
  color: var(--bb-ink-soft);
  font: 400 14.5px/1.6 var(--bb-font);
}
#ge-faq .ge-faq__reset {
  all: unset; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-blue);
  color: #FFFFFF;
  font: 800 13px/1 var(--bb-font);
  letter-spacing: -0.005em;
  transition: background 0.25s ease, transform 0.25s var(--bb-ease);
}
#ge-faq .ge-faq__reset:hover {
  background: var(--color-blue-deep);
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  #ge-faq .ge-faq__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  #ge-faq .ge-faq__container { padding: 72px 0 80px; }
  #ge-faq .ge-faq__hero      { margin-bottom: 36px; }
  #ge-faq .ge-faq__title     { font-size: 32px; }
  #ge-faq .ge-faq__title-accent { white-space: normal; }
  #ge-faq .ge-faq__subtitle  { font-size: 15.5px; margin-bottom: 28px; }

  #ge-faq .ge-faq__search-input { min-height: 52px; font-size: 15px; padding: 0 52px 0 48px; }
  #ge-faq .ge-faq__search-icon  { left: 16px; width: 18px; height: 18px; }

  /* Pills : scroll horizontal sur mobile */
  #ge-faq .ge-faq__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 20px;
    margin-left: -20px; margin-right: -20px;
    margin-bottom: 36px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  #ge-faq .ge-faq__filters::-webkit-scrollbar { display: none; }
  #ge-faq .ge-faq__pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 9px 14px;
    font-size: 13px;
  }

  #ge-faq .ge-faq__cat { margin-bottom: 40px; }
  #ge-faq .ge-faq__cat-title { font-size: 19px; }

  #ge-faq .ge-faq__q { padding: 18px; gap: 12px; }
  #ge-faq .ge-faq__q-text { font-size: 15px; }
  #ge-faq .ge-faq__toggle { width: 32px; height: 32px; }
  #ge-faq .ge-faq__a-inner p { padding: 0 18px 20px; font-size: 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #ge-faq *,
  #ge-faq *::before,
  #ge-faq *::after {
    animation: none !important;
    transition-duration: 0.1s !important;
  }
  #ge-faq .ge-faq__kicker,
  #ge-faq .ge-faq__title,
  #ge-faq .ge-faq__subtitle,
  #ge-faq .ge-faq__search,
  #ge-faq .ge-faq__filters {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  #ge-faq .ge-faq__title-accent::after { transform: scaleX(1) !important; }
}

/* WordPress defensive */
#ge-faq h1::before, #ge-faq h1::after,
#ge-faq h2::before, #ge-faq h2::after,
#ge-faq h3::before, #ge-faq h3::after,
#ge-faq summary::before, #ge-faq summary::after,
#ge-faq summary::-webkit-details-marker {
  background: none;
  content: none;
  display: none;
}
