/*
 * Futurist FareHarbor 3 Days
 * Toutes les couleurs principales peuvent etre modifiees dans :root ci-dessous.
 */
.fg-fh-3days {
  --fg-fh-bg: #11131a;
  --fg-fh-card: #191c25;
  --fg-fh-card-hover: #202430;
  --fg-fh-border: rgba(255, 255, 255, 0.12);
  --fg-fh-text: #ffffff;
  --fg-fh-muted: rgba(255, 255, 255, 0.68);
  --fg-fh-accent: #8b5cf6;
  --fg-fh-accent-2: #b49aff;
  --fg-fh-radius: 14px;
  --fg-fh-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);

  width: 100%;
  box-sizing: border-box;
  color: var(--fg-fh-text);
  font-family: inherit;
}

.fg-fh-3days *,
.fg-fh-3days *::before,
.fg-fh-3days *::after {
  box-sizing: border-box;
}

.fg-fh-toolbar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.fg-fh-status {
  min-width: 0;
  color: var(--fg-fh-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.fg-fh-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--fg-fh-border);
  border-radius: 12px;
  background: var(--fg-fh-card);
  color: var(--fg-fh-text);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.fg-fh-nav:hover,
.fg-fh-nav:focus-visible {
  transform: translateY(-1px);
  border-color: var(--fg-fh-accent);
  background: var(--fg-fh-card-hover);
  outline: none;
}

.fg-fh-nav:active {
  transform: translateY(0);
}

.fg-fh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fg-fh-day {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--fg-fh-border);
  border-radius: var(--fg-fh-radius);
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 246, 0.13), transparent 38%),
    var(--fg-fh-bg);
  box-shadow: var(--fg-fh-shadow);
}

.fg-fh-day-title {
  margin: 0 0 16px;
  color: var(--fg-fh-text);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: capitalize;
}

.fg-fh-day-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 11px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fg-fh-accent), var(--fg-fh-accent-2));
}

.fg-fh-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.fg-fh-slot {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--fg-fh-border);
  border-radius: 10px;
  background: var(--fg-fh-card);
  color: var(--fg-fh-text);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fg-fh-slot:hover,
.fg-fh-slot:focus-visible {
  transform: translateY(-2px);
  border-color: var(--fg-fh-accent);
  background: var(--fg-fh-card-hover);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.24);
  outline: none;
}

.fg-fh-slot:active {
  transform: translateY(0);
}

.fg-fh-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 10px;
  color: var(--fg-fh-muted);
  font-size: 14px;
  text-align: center;
}

.fg-fh-fallback {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--fg-fh-border);
  border-radius: 12px;
  background: var(--fg-fh-bg);
  color: var(--fg-fh-text);
  text-align: center;
}

.fg-fh-fallback p {
  margin: 0 0 12px;
  color: var(--fg-fh-muted);
}

.fg-fh-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--fg-fh-accent);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

@media (max-width: 980px) {
  .fg-fh-grid {
    grid-template-columns: 1fr;
  }

  .fg-fh-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fg-fh-toolbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .fg-fh-nav {
    width: 42px;
    height: 42px;
  }

  .fg-fh-status {
    font-size: 12px;
  }

  .fg-fh-day {
    padding: 15px;
  }

  .fg-fh-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fg-fh-nav,
  .fg-fh-slot {
    transition: none;
  }
}

/* V4 - etat complet */
.fg-fh-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fg-fh-slot-time { font: inherit; }
.fg-fh-slot-badge {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .08em;
  opacity: .9;
}
.fg-fh-slot.is-sold-out .fg-fh-slot-badge {
  font-weight: 800;
}

.fg-fh-slot.is-sold-out,
.fg-fh-slot.is-sold-out:hover {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(1);
  transform: none;
  box-shadow: none;
}
