:root {
  --bg: #111111;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --panel: rgba(255, 255, 255, 0.08);
  --footer-bg: rgba(4, 98, 56, 0.92);
  --footer-border: #0b8a52;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

/* ===== PLAYER ===== */

.player-page #app {
  display: flex;
  flex-direction:column;
  width: 100vw;
  height: 100vh;
}

#main-zone {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* One single fade system only */
.slide-fade {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition:
    transform 0.5s ease-in-out,
    opacity 0.5s ease-in-out;
  z-index: 1;
}

.slide-fade.is-visible {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.slide-fade.is-leaving {
  opacity: 0.85;
  transform: translateX(-100%);
  z-index: 1;
}

.loading,
.slide-error,
.forecast-error {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  font-size: 2rem;
  text-align: center;
  color: var(--muted);
}

.slide-item {
  width: 100%;
  height: 100%;
}

.slide-item.image-wrap,
.slide-item.video-wrap,
.slide-item.iframe-wrap {
  position: absolute;
  inset: 0;
}

.slide-image,
.slide-video,
.slide-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  display: block;
}

.fit-contain {
  object-fit: contain;
}

/* ===== FOOTER ===== */

.footer-zone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(
    to right,
    rgba(4, 98, 56, 0.96),
    rgba(11, 138, 82, 0.92)
  );
  border-top: 3px solid var(--footer-border);
  color: rgba(255, 255, 255, 0.96);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

#footer-location,
#footer-current,
#footer-forecast {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#footer-location {
  text-align: left;
}

#footer-current {
  text-align: center;
}

.footer-right,
#footer-forecast {
  text-align: right;
}

/* ===== PAGE PRÉVISIONS ===== */

.forecast-page {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.65)),
    #111111;
}

.forecast-layout {
  min-height: 100vh;
  padding: 26px 22px 28px;
}

.forecast-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}

.forecast-header h1,
#forecast-title {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.05;
}

.forecast-updated,
#forecast-updated {
  color: var(--muted);
  font-size: 1rem;
}

.forecast-current-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.forecast-current-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forecast-current-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fc-current-temp {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.fc-current-label,
#fc-current-extra {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.25;
}

.forecast-days {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.forecast-day {
  background: var(--panel);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.forecast-day-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.forecast-day-condition {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 12px;
}

.forecast-day-temps {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.forecast-day-extra {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ===== ÉCRANS UN PEU PLUS LARGES ===== */

@media (min-width: 700px) {

  .forecast-layout {
    padding: 30px 26px 32px;
  }

  .forecast-header h1,
  #forecast-title {
    font-size: 2.8rem;
  }

  .forecast-current-card {
    padding: 24px;
  }

  .fc-current-temp {
    font-size: 5rem;
  }

  .fc-current-label,
  #fc-current-extra {
    font-size: 1.3rem;
  }

  .forecast-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
