/* FlowBA — module autonome des cartes sectorielles.
   À charger après comparateur.css pour que ces styles prennent priorité. */
#secteurs.fc [data-fc-sector-controls][hidden] {
  display: none !important;
}

#secteurs.fc .fc-sector-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
  overflow: visible;
}

#secteurs.fc .fc-sector-card-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#secteurs.fc button.fc-sector-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  flex: 1 0 auto;
  flex-direction: column;
  overflow: hidden;
  appearance: none;
  padding: 0;
  border: 1px solid rgba(220, 224, 225, 0.94);
  border-radius: 0.9rem;
  background: #fff;
  color: #17283a;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 24px rgba(12, 28, 43, 0.08);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

#secteurs.fc button.fc-sector-card:hover {
  transform: translateY(-4px);
  border-color: #a88c4a;
  box-shadow: 0 15px 32px rgba(12, 28, 43, 0.16);
}

#secteurs.fc button.fc-sector-card[aria-pressed="true"],
#secteurs.fc button.fc-sector-card[aria-pressed="true"]:hover {
  border-color: #c9a95c;
  box-shadow:
    inset 0 0 0 2px #c9a95c,
    0 14px 30px rgba(12, 28, 43, 0.15);
}

#secteurs.fc button.fc-sector-card:focus-visible {
  z-index: 2;
  outline: 3px solid #e7c875;
  outline-offset: 4px;
}

#secteurs.fc .fc-sector-card-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  isolation: isolate;
  background: #142a40;
}

#secteurs.fc .fc-sector-card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 500ms ease;
}

#secteurs.fc button.fc-sector-card:hover .fc-sector-card-art {
  transform: scale(1.055);
}

#secteurs.fc .fc-sector-card-status {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100% - 3.4rem);
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 999px;
  background: rgba(9, 19, 31, 0.76);
  color: #fff;
  font: 600 0.64rem/1.25 "Inter", "DM Sans", Arial, sans-serif;
  letter-spacing: 0.025em;
  text-wrap: balance;
}

#secteurs.fc .fc-sector-card-status::before {
  width: 0.46rem;
  height: 0.46rem;
  flex: 0 0 0.46rem;
  border-radius: 50%;
  background: #75d1a1;
  content: "";
}

#secteurs.fc .fc-sector-card-status--launch::before {
  background: #e5c26c;
}

#secteurs.fc .fc-sector-card-status--soon::before {
  background: #a5b9d6;
}

#secteurs.fc .fc-sector-card-status--custom::before {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: transparent;
}

#secteurs.fc .fc-sector-card-number {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font: 600 0.72rem/1 "Inter", "DM Sans", Arial, sans-serif;
  letter-spacing: 0.12em;
}

#secteurs.fc .fc-sector-card-icon {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(201, 169, 92, 0.64);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: #e0c375;
  backdrop-filter: blur(5px);
}

#secteurs.fc .fc-sector-card-icon svg {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

#secteurs.fc .fc-sector-card-body {
  display: flex;
  min-height: 12.8rem;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.05rem;
  background: #fbfaf7;
}

#secteurs.fc .fc-sector-card-overline {
  color: #6b747d;
  font: 600 0.62rem/1.35 "Inter", "DM Sans", Arial, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#secteurs.fc .fc-sector-card-title {
  color: #17283a;
  font: 600 clamp(1.02rem, 1.28vw, 1.22rem)/1.2 "Space Grotesk", "Inter", Arial, sans-serif;
  letter-spacing: -0.02em;
}

#secteurs.fc .fc-sector-card-description {
  color: #46515d;
  font: 400 0.79rem/1.48 "Inter", "DM Sans", Arial, sans-serif;
}

#secteurs.fc .fc-sector-card-footer {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid #e0ded7;
  color: #5b6472;
  font: 400 0.7rem/1.4 "Inter", "DM Sans", Arial, sans-serif;
}

#secteurs.fc .fc-sector-card-role strong {
  color: #17283a;
  font-weight: 650;
}

#secteurs.fc .fc-sector-card-arrow {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
  place-items: center;
  border: 1px solid #d4d0c7;
  border-radius: 50%;
  color: #17283a;
  font-size: 0.95rem;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

#secteurs.fc button.fc-sector-card:hover .fc-sector-card-arrow,
#secteurs.fc button.fc-sector-card[aria-pressed="true"] .fc-sector-card-arrow {
  border-color: #17283a;
  background: #17283a;
  color: #fff;
}

#secteurs.fc .fc-sector-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.85rem;
  padding: 0.8rem 0.15rem 0.1rem;
  color: var(--fc-muted, #536879);
  font: 500 0.72rem/1.5 "Inter", "DM Sans", Arial, sans-serif;
}

#secteurs.fc .fc-sector-card-links-label {
  flex-basis: 100%;
  color: var(--fc-ink, #17283a);
  font-weight: 700;
}

#secteurs.fc .fc-sector-card-links a {
  color: #315e61;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

#secteurs.fc .fc-sector-card-links a:hover {
  color: #17283a;
}

#secteurs.fc .fc-sector-card-links a:focus-visible {
  border-radius: 2px;
  outline: 3px solid #2672ad;
  outline-offset: 3px;
}

#secteurs.fc .fc-sector-card-caveat,
#secteurs.fc .fc-sector-card-note {
  color: var(--fc-muted, #536879);
  font: 400 0.75rem/1.55 "Inter", "DM Sans", Arial, sans-serif;
}

#secteurs.fc .fc-sector-card-caveat {
  max-width: 54rem;
  margin-top: 0.2rem;
  padding-left: 0.75rem;
  border-left: 2px solid #c9a95c;
}

#secteurs.fc .fc-sector-card-note {
  margin-top: 1rem;
}

#secteurs.fc .fc-sector-card-swipe {
  display: none;
  margin-top: 0.7rem;
  color: var(--fc-muted, #536879);
  font: 500 0.75rem/1.45 "Inter", "DM Sans", Arial, sans-serif;
}

@media (max-width: 850px) {
  #secteurs.fc .fc-sector-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  #secteurs.fc .fc-sector-card-title {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  }
}

@media (max-width: 560px) {
  #secteurs.fc .fc-sector-card-grid {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.45rem 1rem 1.15rem;
    margin: 0 -1rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 92, 0.8) transparent;
    -webkit-overflow-scrolling: touch;
  }

  #secteurs.fc .fc-sector-card-grid::-webkit-scrollbar {
    height: 4px;
  }

  #secteurs.fc .fc-sector-card-grid::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(201, 169, 92, 0.8);
  }

  #secteurs.fc .fc-sector-card-item {
    width: min(82vw, 21rem);
    min-width: min(82vw, 21rem);
    scroll-snap-align: center;
  }

  #secteurs.fc button.fc-sector-card {
    min-height: 100%;
  }

  #secteurs.fc .fc-sector-card-visual {
    aspect-ratio: 16 / 8.5;
  }

  #secteurs.fc .fc-sector-card-body {
    min-height: 12rem;
    padding: 0.95rem 1rem 1rem;
  }

  #secteurs.fc .fc-sector-card-title {
    font-size: 1.18rem;
  }

  #secteurs.fc .fc-sector-card-swipe {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  #secteurs.fc button.fc-sector-card,
  #secteurs.fc .fc-sector-card-art,
  #secteurs.fc .fc-sector-card-arrow {
    scroll-behavior: auto;
    transition: none !important;
  }

  #secteurs.fc button.fc-sector-card:hover {
    transform: none;
  }
}

#secteurs.fc .fc-sector-legend { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin: 0 0 1.5rem; color: #536879; font-size: .72rem; }
#secteurs.fc .fc-sector-legend span { display: inline-flex; align-items: center; gap: .42rem; }
#secteurs.fc .fc-sector-legend i { width: .48rem; height: .48rem; border-radius: 50%; background: #3e9c73; }
#secteurs.fc .fc-sector-legend .fc-sector-legend-launch { background: #b18b36; }
#secteurs.fc .fc-sector-legend .fc-sector-legend-soon { background: #7890b2; }
#secteurs.fc .fc-sector-legend .fc-sector-legend-custom { background: transparent; border: 1px solid #61727f; }
