/* ============================================================
   FSF Hero Slider — slider.css
   ============================================================ */

.fsf-hs-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #001a10;
  font-family: 'Lato', 'Oswald', sans-serif;
  user-select: none;
  /* La hauteur est définie via style="min-height:Xpx" en inline —
     on force aussi height pour que les slides absolus aient une référence */
  height: var(--fsf-hs-height, 560px);
}

/* ── TRACK ── */
.fsf-hs-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── SLIDE ── */
.fsf-hs-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;        /* contenu ancré en bas */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
  z-index: 1;
}
.fsf-hs-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: absolute;           /* reste absolu — hauteur pilotée par le wrap */
  z-index: 2;
}

/* Image de fond — couvre toute la zone, hauteur fixe */
.fsf-hs-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: block;
}

/* ── TRANSITIONS ── */

/* Fade */
.fsf-hs-transition-fade .fsf-hs-slide {
  transition: opacity 0.7s ease;
}
.fsf-hs-transition-fade .fsf-hs-slide.active {
  opacity: 1;
}

/* Slide horizontal */
.fsf-hs-transition-slide .fsf-hs-track {
  display: flex;
}
.fsf-hs-transition-slide .fsf-hs-slide {
  flex: 0 0 100%;
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zoom (Ken Burns) */
.fsf-hs-transition-zoom .fsf-hs-slide {
  transition: opacity 0.8s ease;
}
.fsf-hs-transition-zoom .fsf-hs-slide.active .fsf-hs-bg-img {
  animation: fsf-kenburns 8s ease-in-out forwards;
}
@keyframes fsf-kenburns {
  0%   { transform: scale(1)    translateX(0); }
  100% { transform: scale(1.08) translateX(-1%); }
}

/* ── OVERLAY ── */
.fsf-hs-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── CONTENU — position fixe en bas de la zone ── */
.fsf-hs-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 60px 0;   /* ancré en bas, padding fixe */
}
.fsf-hs-inner {
  padding: 0 120px;
  max-width: 720px;
  animation: fsf-slide-in 0.6s ease both;
}

@keyframes fsf-slide-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fsf-hs-slide:not(.active) .fsf-hs-inner { animation: none; }

/* Badge catégorie */
.fsf-hs-cat {
  display: inline-block;
  background: #E2001A;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 14px;
  font-weight: 700;
}

/* Date */
.fsf-hs-date {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Titre */
.fsf-hs-title {
  line-height: 1.1;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 1px;
}
.fsf-hs-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.fsf-hs-title a:hover { color: #FDEF00; }

/* Extrait */
.fsf-hs-excerpt {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 540px;
  font-weight: 300;
}

/* Bouton */
.fsf-hs-btn {
  display: inline-block;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 13px 32px;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}
.fsf-hs-btn:hover {
  filter: brightness(0.88);
  transform: translateY(-2px);
  color: #fff;
}

/* ── FLÈCHES ── */
.fsf-hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
}
.fsf-hs-arrow:hover {
  background: #00843D;
  border-color: #00843D;
  transform: translateY(-50%) scale(1.08);
}
.fsf-hs-prev { left: 20px; }
.fsf-hs-next { right: 20px; }

/* ── POINTS ── */
.fsf-hs-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.fsf-hs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, width 0.25s;
}
.fsf-hs-dot.active {
  background: #FDEF00;
  border-color: #FDEF00;
  width: 28px;
  border-radius: 5px;
}
.fsf-hs-dot:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* ── COMPTEUR ── */
.fsf-hs-counter {
  position: absolute;
  bottom: 22px;
  right: 24px;
  z-index: 10;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  gap: 3px;
  align-items: center;
}
.fsf-hs-current { color: #FDEF00; font-size: 18px; font-weight: 700; }

/* ── BARRE DE PROGRESSION ── */
.fsf-hs-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.fsf-hs-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00843D, #FDEF00);
  width: 0%;
  animation: fsf-progress linear forwards;
  transform-origin: left;
}
@keyframes fsf-progress {
  0%   { width: 0%; }
  100% { width: 100%; }
}
.fsf-hs-wrap.paused .fsf-hs-progress-bar { animation-play-state: paused; }

/* ── BOUTON PAUSE ── */
.fsf-hs-pause {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 10;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.fsf-hs-pause:hover { background: rgba(0,132,61,0.6); color: #fff; }

/* ── MESSAGE VIDE ── */
.fsf-hs-empty {
  padding: 40px;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .fsf-hs-inner   { margin: 0 20px; padding: 0; }
  .fsf-hs-content { padding: 40px 0; }
  .fsf-hs-title   { font-size: 28px !important; }
  .fsf-hs-excerpt { font-size: 14px; }
  .fsf-hs-arrow   { width: 38px; height: 38px; }
  .fsf-hs-prev    { left: 10px; }
  .fsf-hs-next    { right: 10px; }
  .fsf-hs-dots    { bottom: 14px; }
  .fsf-hs-counter { bottom: 14px; right: 14px; font-size: 11px; }
  .fsf-hs-btn     { padding: 11px 22px; font-size: 13px; }
}

@media (max-width: 480px) {
  .fsf-hs-title   { font-size: 22px !important; }
  .fsf-hs-excerpt { display: none; }
  .fsf-hs-arrow   { display: none; }
}

/* ── ACCESSIBILITÉ ── */
.fsf-hs-arrow:focus-visible,
.fsf-hs-dot:focus-visible,
.fsf-hs-pause:focus-visible {
  outline: 3px solid #FDEF00;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .fsf-hs-slide,
  .fsf-hs-bg-img,
  .fsf-hs-inner  { animation: none !important; transition: none !important; }
}
