/* =========================================================
   Page Nos secteurs : panneaux photo extensibles + bande défilante
   ========================================================= */

.sx-section .section-head { max-width: 720px; }

/* ---------- Panneaux extensibles (desktop) ---------- */
.sx-showcase {
  display: flex;
  gap: 14px;
  height: 640px;
  margin-top: 8px;
}
.sx-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: flex 0.8s var(--ease), box-shadow 0.4s var(--ease);
}
.sx-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25,85,158,0.35) 0%, rgba(25,85,158,0.88) 100%);
  transition: opacity 0.6s var(--ease);
}
.sx-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(25,85,158,0.96) 0%, rgba(25,85,158,0.55) 45%, rgba(25,85,158,0) 75%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.sx-panel.active { flex: 4; box-shadow: var(--shadow-lg); }
.sx-panel.active::before { opacity: 0; }
.sx-panel.active::after { opacity: 1; }

.sx-num {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--gold);
}

/* Onglet replié : icône + titre vertical */
.sx-tab {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 28px 0;
  color: #fff;
  transition: opacity 0.4s var(--ease);
}
.sx-panel.active .sx-tab { opacity: 0; pointer-events: none; }
.sx-tab-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--gold);
  color: var(--gold-ink);
  transition: transform 0.4s var(--ease);
}
.sx-panel:hover .sx-tab-icon { transform: scale(1.12) rotate(-8deg); }
.sx-tab-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Contenu déployé */
.sx-content {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: min(100%, 560px);
  padding: 36px 40px 38px;
  color: #fff;
  pointer-events: none;
}
.sx-panel.active .sx-content { pointer-events: auto; }
.sx-content > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.sx-panel.active .sx-content > * { opacity: 1; transform: none; }
.sx-panel.active .sx-content > :nth-child(1) { transition-delay: 0.35s; }
.sx-panel.active .sx-content > :nth-child(2) { transition-delay: 0.45s; }
.sx-panel.active .sx-content > :nth-child(3) { transition-delay: 0.55s; }
.sx-panel.active .sx-content > :nth-child(4) { transition-delay: 0.65s; }

.sx-content .icon-tile {
  width: 50px;
  height: 50px;
  font-size: 20px;
  margin-bottom: 14px;
  background: var(--gold);
  color: var(--gold-ink);
}
.sx-content h3 { color: #fff; font-size: 30px; margin: 0 0 12px; }
.sx-content p { color: rgba(255,255,255,0.85); font-size: 14.5px; line-height: 1.65; margin: 0 0 20px; }
.sx-content h6 {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-chips span {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.sx-panel.active .sx-chips span {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.7s + var(--d, 0ms));
}
.sx-panel.active .sx-chips span:hover {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
  transition-delay: 0s;
}

/* Points de navigation */
.sx-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.sx-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #c3cddc;
  cursor: pointer;
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
}
.sx-dots button.on { width: 36px; background: var(--blue); }

/* ---------- Bande défilante ---------- */
.sx-marquee-wrap { padding: 64px 0 70px; overflow: hidden; }
.sx-marquee-head { margin-bottom: 34px; }
.sx-marquee {
  overflow: hidden;
  padding: 14px 0;
  margin: -14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.sx-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: sx-scroll 38s linear infinite;
}
.sx-marquee:hover .sx-track { animation-play-state: paused; }
.sx-track .badge-pill { white-space: nowrap; flex: none; }
@keyframes sx-scroll {
  to { transform: translateX(calc(-50% - 8px)); }
}

/* ---------- Mobile / tablette : cartes empilées ---------- */
@media (max-width: 991px) {
  .sx-showcase { flex-direction: column; height: auto; }
  .sx-panel, .sx-panel.active { flex: none; min-height: 520px; display: flex; align-items: flex-end; }
  .sx-panel::before { opacity: 0; }
  .sx-panel::after { opacity: 1; }
  .sx-tab { display: none; }
  .sx-content { position: relative; width: 100%; padding: 28px 24px 30px; pointer-events: auto; }
  .sx-content > *, .sx-chips span { opacity: 1; transform: none; transition-delay: 0s !important; }
  .sx-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-track { animation: none; }
}
