/* ================================================================
   Gorée Hero Slider — slider.css v1.0.0
   Palette : Bleu #1B4FA8 | Marine #0D2E6E | Or #C9951A | Rouge #C8102E
   Typo    : Playfair Display (titres) + Source Sans 3 (corps)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
.gorn-hs-wrap {
  --gorn-primary:  #1B4FA8;
  --gorn-dark:     #0D2E6E;
  --gorn-gold:     #C9951A;
  --gorn-gold-lt:  #E8B84B;
  --gorn-red:      #C8102E;
  --gorn-sable:    #F7F2E8;
}

/* ── Wrapper ────────────────────────────────────────────────── */
.gorn-hs-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0D2E6E;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  user-select: none;
  height: var(--gorn-hs-height, 580px);
}

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

/* ── Slide ──────────────────────────────────────────────────── */
.gorn-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;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
  z-index: 1;
}
.gorn-hs-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: absolute;
  z-index: 2;
}

/* Image de fond */
.gorn-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 */
.gorn-hs-transition-fade .gorn-hs-slide         { transition: opacity 0.75s ease; }
.gorn-hs-transition-fade .gorn-hs-slide.active   { opacity: 1; }

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

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

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

/* ── Contenu — ancré en bas ──────────────────────────────────── */
.gorn-hs-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 64px 0;
}
.gorn-hs-inner {
  padding: 0 64px;
  max-width: 760px;
  animation: gorn-slide-in 0.65s ease both;
}
@keyframes gorn-slide-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gorn-hs-slide:not(.active) .gorn-hs-inner { animation: none; }

/* Trait doré décoratif */
.gorn-hs-inner::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gorn-gold);
  margin-bottom: 18px;
  border-radius: 2px;
}

/* ── Badge catégorie ────────────────────────────────────────── */
.gorn-hs-cat {
  display: inline-block;
  background: var(--gorn-gold);
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 14px;
  margin-bottom: 14px;
  border-radius: 3px;
  transition: background 0.2s;
}
.gorn-hs-cat:hover { background: var(--gorn-gold-lt); color: #fff; }

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

/* ── Titre ───────────────────────────────────────────────────── */
.gorn-hs-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: 0;
}
.gorn-hs-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.gorn-hs-title a:hover { color: var(--gorn-gold-lt); }

/* ── Extrait ─────────────────────────────────────────────────── */
.gorn-hs-excerpt {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 560px;
}

/* ── Boutons CTA ─────────────────────────────────────────────── */
.gorn-hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: filter 0.2s, transform 0.2s, background 0.2s;
}
.gorn-hs-btn:hover { transform: translateY(-2px); }

/* Or (défaut Gorée) */
.gorn-hs-btn-or {
  background: var(--gorn-gold);
  color: #fff;
  border-color: var(--gorn-gold);
}
.gorn-hs-btn-or:hover { filter: brightness(1.12); color: #fff; }

/* Bleu */
.gorn-hs-btn-bleu {
  background: var(--gorn-primary);
  color: #fff;
  border-color: var(--gorn-primary);
}
.gorn-hs-btn-bleu:hover { filter: brightness(1.15); color: #fff; }

/* Rouge alerte */
.gorn-hs-btn-rouge {
  background: var(--gorn-red);
  color: #fff;
  border-color: var(--gorn-red);
}
.gorn-hs-btn-rouge:hover { filter: brightness(1.1); color: #fff; }

/* Blanc */
.gorn-hs-btn-blanc {
  background: #fff;
  color: var(--gorn-dark);
  border-color: #fff;
}
.gorn-hs-btn-blanc:hover { background: var(--gorn-sable); color: var(--gorn-dark); }

/* Contour blanc */
.gorn-hs-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.gorn-hs-btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ── Flèches ─────────────────────────────────────────────────── */
.gorn-hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(13, 46, 110, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
}
.gorn-hs-arrow:hover {
  background: var(--gorn-gold);
  border-color: var(--gorn-gold);
  transform: translateY(-50%) scale(1.08);
}
.gorn-hs-prev { left: 22px; }
.gorn-hs-next { right: 22px; }

/* ── Points de navigation ────────────────────────────────────── */
.gorn-hs-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.gorn-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;
}
.gorn-hs-dot.active {
  background: var(--gorn-gold);
  border-color: var(--gorn-gold);
  width: 28px;
  border-radius: 5px;
}
.gorn-hs-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.65); }

/* ── Compteur ────────────────────────────────────────────────── */
.gorn-hs-counter {
  position: absolute;
  bottom: 24px;
  right: 26px;
  z-index: 10;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  gap: 3px;
  align-items: center;
}
.gorn-hs-current { color: var(--gorn-gold); font-size: 18px; font-weight: 700; }

/* ── Barre de progression ────────────────────────────────────── */
.gorn-hs-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 10;
}
.gorn-hs-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gorn-primary), var(--gorn-gold));
  width: 0%;
  animation: gorn-progress linear forwards;
}
@keyframes gorn-progress {
  0%   { width: 0%; }
  100% { width: 100%; }
}
.gorn-hs-wrap.paused .gorn-hs-progress-bar { animation-play-state: paused; }

/* ── Bouton pause ────────────────────────────────────────────── */
.gorn-hs-pause {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 10;
  background: rgba(13, 46, 110, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.gorn-hs-pause:hover {
  background: var(--gorn-gold);
  color: #fff;
}

/* ── Message vide ────────────────────────────────────────────── */
.gorn-hs-empty {
  padding: 48px;
  text-align: center;
  color: #888;
  font-style: italic;
  background: var(--gorn-sable);
  border: 2px dashed #ddd;
  border-radius: 8px;
}

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

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

/* ── Accessibilité ───────────────────────────────────────────── */
.gorn-hs-arrow:focus-visible,
.gorn-hs-dot:focus-visible,
.gorn-hs-pause:focus-visible {
  outline: 3px solid var(--gorn-gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .gorn-hs-slide,
  .gorn-hs-bg-img,
  .gorn-hs-inner { animation: none !important; transition: none !important; }
}
