/* Comparateur sectoriel : tous les styles sont limités à #secteurs. */
#secteurs.fc {
  --fc-ink: #10263e;
  --fc-navy: #112d48;
  --fc-paper: #f4f5f1;
  --fc-muted: #536879;
  --fc-line: #cdd6d7;
  --fc-accent: #a8d5cc;
  box-sizing: border-box;
  padding: clamp(4.5rem, 8vw, 8.5rem) 0;
  background: var(--fc-paper);
  color: var(--fc-ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

#secteurs.fc *,
#secteurs.fc *::before,
#secteurs.fc *::after {
  box-sizing: border-box;
}

#secteurs.fc [hidden] {
  display: none !important;
}

#secteurs.fc .fc-inner {
  width: min(100% - 3rem, 1200px);
  margin: 0 auto;
}

#secteurs.fc .fc-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 3rem;
  padding-bottom: clamp(2.75rem, 5vw, 4.75rem);
}

#secteurs.fc p,
#secteurs.fc h2,
#secteurs.fc h3,
#secteurs.fc h4 {
  margin: 0;
}

#secteurs.fc .fc-kicker,
#secteurs.fc .fc-eyebrow,
#secteurs.fc .fc-example-kicker,
#secteurs.fc .fc-card-label,
#secteurs.fc .fc-card-index {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.45;
}

#secteurs.fc .fc-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  color: #38566b;
}

#secteurs.fc .fc-kicker span {
  width: 2.2rem;
  height: 1px;
  background: #557b82;
}

#secteurs.fc h2,
#secteurs.fc h3,
#secteurs.fc .fc-card-text {
  font-family: "Playfair Display", Georgia, serif;
}

#secteurs.fc h2 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

#secteurs.fc h2 em {
  color: #476c79;
  font-weight: inherit;
}

#secteurs.fc .fc-intro-aside {
  max-width: 22rem;
  justify-self: end;
  padding-bottom: 0.35rem;
  color: #3f5667;
  font-size: 1.05rem;
  line-height: 1.7;
}

#secteurs.fc .fc-intro-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid #a9bdbe;
  border-radius: 50%;
  color: #355d68;
  font-size: 1rem;
}

#secteurs.fc .fc-intro-note {
  margin-top: 1rem;
  color: #536879;
  font-size: 0.8rem;
  line-height: 1.5;
}

#secteurs.fc .fc-selector-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--fc-line);
}

#secteurs.fc .fc-selector-head > p:first-child {
  font-size: 0.92rem;
  font-weight: 700;
}

#secteurs.fc .fc-key-hint {
  color: var(--fc-muted);
  font-size: 0.75rem;
}

#secteurs.fc .fc-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

#secteurs.fc .fc-sector {
  appearance: none;
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem;
  width: 100%;
  min-height: 6rem;
  padding: 1.05rem 0.95rem;
  border: 1px solid #d1dadb;
  border-radius: 3px;
  background: #fcfcf9;
  color: var(--fc-ink);
  cursor: pointer;
  font:
    700 0.86rem/1.35 "DM Sans",
    Arial,
    sans-serif;
  text-align: left;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

#secteurs.fc .fc-sector:hover {
  border-color: #68858b;
  background: #e9efed;
}

#secteurs.fc .fc-sector[aria-pressed="true"],
#secteurs.fc .fc-sector[aria-pressed="true"]:hover {
  border-color: var(--fc-navy);
  background: var(--fc-navy);
  color: #fff;
}

#secteurs.fc .fc-sector-number {
  padding-top: 0.1rem;
  color: #687e85;
  font-size: 0.67rem;
  font-weight: 500;
}

#secteurs.fc .fc-sector small {
  display: block;
  margin-top: 0.35rem;
  color: #536879;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.3;
}

#secteurs.fc .fc-sector-arrow {
  color: #526f78;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

#secteurs.fc .fc-sector[aria-pressed="true"] .fc-sector-number,
#secteurs.fc .fc-sector[aria-pressed="true"] small,
#secteurs.fc .fc-sector[aria-pressed="true"] .fc-sector-arrow {
  color: #c4dfdd;
}

#secteurs.fc :is(button, a):focus-visible {
  outline: 3px solid #2672ad;
  outline-offset: 3px;
  position: relative;
  z-index: 2;
}

#secteurs.fc .fc-panels {
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
}

#secteurs.fc .fc-panel:not([hidden]) ~ .fc-panel:not([hidden]) {
  margin-top: 4.5rem;
}

#secteurs.fc .fc-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--fc-line);
}

#secteurs.fc .fc-eyebrow {
  margin-bottom: 0.55rem;
  color: #526c78;
}

#secteurs.fc h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

#secteurs.fc .fc-status {
  flex: 0 0 auto;
  padding: 0.38rem 0.7rem;
  border: 1px solid #bdd0cd;
  border-radius: 999px;
  background: #e6efeb;
  color: #28564e;
  font-size: 0.72rem;
  font-weight: 700;
}

#secteurs.fc .fc-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

#secteurs.fc .fc-examples > span {
  margin-right: 0.35rem;
  color: #4d6270;
  font-size: 0.82rem;
}

#secteurs.fc .fc-examples button {
  appearance: none;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #b6c8ca;
  border-radius: 999px;
  background: transparent;
  color: var(--fc-ink);
  cursor: pointer;
  font:
    700 0.78rem/1.3 "DM Sans",
    Arial,
    sans-serif;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

#secteurs.fc .fc-examples button:hover {
  background: #e2ebea;
}

#secteurs.fc .fc-examples button[aria-pressed="true"],
#secteurs.fc .fc-examples button[aria-pressed="true"]:hover {
  border-color: var(--fc-navy);
  background: var(--fc-navy);
  color: #fff;
}

#secteurs.fc .fc-example {
  margin-top: 1.9rem;
}

#secteurs.fc .fc-example:not([hidden]) ~ .fc-example:not([hidden]) {
  margin-top: 3rem;
}

#secteurs.fc .fc-example-kicker {
  margin-bottom: 0.25rem;
  color: #5a737c;
  font-size: 0.62rem;
}

#secteurs.fc h4 {
  margin-bottom: 0.9rem;
  font:
    700 0.95rem/1.4 "DM Sans",
    Arial,
    sans-serif;
}

#secteurs.fc .fc-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

#secteurs.fc .fc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid #d6dfdf;
  background: #fff;
}

#secteurs.fc .fc-card::after {
  position: absolute;
  right: -4.6rem;
  bottom: -7.4rem;
  width: 14rem;
  height: 14rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

#secteurs.fc .fc-card--with {
  border-color: var(--fc-navy);
  background: var(--fc-navy);
  color: #fff;
}

#secteurs.fc .fc-card-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #536a75;
}

#secteurs.fc .fc-card--with .fc-card-label {
  color: #c7e4df;
}

#secteurs.fc .fc-card-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #91a6ac;
}

#secteurs.fc .fc-card--with .fc-card-dot {
  background: var(--fc-accent);
}

#secteurs.fc .fc-card-text {
  position: relative;
  z-index: 1;
  max-width: 31rem;
  margin: auto 0;
  padding: 2rem 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.42;
}

#secteurs.fc .fc-card-index {
  position: relative;
  z-index: 1;
  color: #637985;
  font-size: 0.6rem;
}

#secteurs.fc .fc-card--with .fc-card-index {
  color: #bdd9d7;
}

#secteurs.fc .fc-disclaimer {
  display: flex;
  gap: 0.65rem;
  max-width: 57rem;
  margin-top: 1.6rem;
  color: #4d6270;
  font-size: 0.78rem;
  line-height: 1.6;
}

#secteurs.fc .fc-disclaimer span {
  color: #3d6f71;
  font-size: 1rem;
  line-height: 1.2;
}

#secteurs.fc .fc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 850px) {
  #secteurs.fc .fc-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #secteurs.fc .fc-intro-aside {
    max-width: 35rem;
    justify-self: start;
  }

  #secteurs.fc .fc-sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #secteurs.fc .fc-inner {
    width: min(100% - 2rem, 1200px);
  }

  #secteurs.fc h2 {
    font-size: clamp(2.7rem, 11vw, 3.8rem);
  }

  #secteurs.fc .fc-selector-head {
    display: block;
  }

  #secteurs.fc .fc-key-hint {
    margin-top: 0.35rem;
  }

  #secteurs.fc .fc-sector {
    grid-template-columns: 1.3rem minmax(0, 1fr);
    gap: 0.35rem;
    min-height: 6.1rem;
    padding: 0.9rem 0.7rem;
    font-size: 0.8rem;
  }

  #secteurs.fc .fc-sector-arrow {
    display: none;
  }

  #secteurs.fc .fc-panel-head {
    align-items: start;
    flex-direction: column;
    gap: 0.85rem;
  }

  #secteurs.fc .fc-examples > span {
    flex-basis: 100%;
  }

  #secteurs.fc .fc-pair {
    grid-template-columns: 1fr;
  }

  #secteurs.fc .fc-card {
    min-height: 14.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #secteurs.fc .fc-sector,
  #secteurs.fc .fc-examples button {
    transition: none;
  }
}

#secteurs.fc .fc-next {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 13px 0 8px;
  border-bottom: 1px solid #87aaa6;
  color: #245d5b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
#secteurs.fc .fc-next:hover {
  color: #112d48;
}
