/* ============================================================
   6MINUTES - CSS CONSOLIDÉ
   ============================================================ */

/* ======================== RESET & BASE ======================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  background-color: #282828;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ======================== VUES (SECTIONS) ======================== */
.view {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.view.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ======================== LOGO ======================== */
.logo {
  margin-top: 100px;
  min-width: 300px;
  max-width: 500px;
  width: 40vw;
  height: auto;
  display: block;
  cursor: pointer;
}

.logo-planning {
  margin-top: 30px;
}

/* ======================== VUE HOME & FINI ======================== */
.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  background-color: #242424;
}

.home-button {
  margin-top: 50px;
  font-size: 100px;
  width: 90%;
  max-width: 1000px;
  height: 300px;
  background-color: #666666;
  font-family: Arial, sans-serif;
  line-height: 1.25;
  color: #ffffff;
  text-transform: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

/* ======================== VUE ROUND ======================== */
.round-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #242424;
}

.round {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #c80356;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 75vh;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

.round-timer {
  height: 20vh;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ec8500;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 10vh;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}

/* États spéciaux du round */
.round.round-new {
  background-color: #209100;
}

.round.round-end {
  background-color: #fff;
  color: #c80356;
  font-size: 30vh;
  line-height: 1.25;
}

.round.round-now {
  font-size: 30vh;
}

/* ======================== VUE PLANNING ======================== */
.planning-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #242424;
  overflow-y: auto;
}

#planning-content {
  width: 100%;
  max-width: 1400px;
  padding: 20px 40px;
  text-align: left;
  color: #ffffff;
}

#planning-content p {
  font-size: 2rem;
  text-align: center;
  color: #999;
}

#planning-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#planning-content li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 30px 0;
}

.planning-time {
  font-weight: bold;
  margin-right: 40px;
  flex: 0 0 auto;
  font-size: clamp(1.5rem, 5vw, 5rem);
  color: #ffffff;
}

.planning-label {
  flex: 1 1 auto;
  font-size: clamp(1.3rem, 4vw, 4rem);
  line-height: 1.2;
  color: #ffffff;
}

#planning-content li.active .planning-time,
#planning-content li.active .planning-label {
  color: #4ade80;
  font-weight: bold;
}

/* Planning thème clair */
.planning-container.theme-light {
  background-color: #fafafa;
}

.planning-container.theme-light #planning-content {
  color: #333;
}

.planning-container.theme-light #planning-content p {
  color: #666;
}

.planning-container.theme-light .planning-time,
.planning-container.theme-light .planning-label {
  color: #333;
}

.planning-container.theme-light #planning-content li.active .planning-time,
.planning-container.theme-light #planning-content li.active .planning-label {
  color: #209100;
}

/* ======================== RESPONSIVE ======================== */

/* ---------- Petits écrans / Tablettes portrait (max 800px hauteur) ---------- */
@media (max-height: 800px) {
  .logo {
    margin-top: 20px;
    min-width: 200px;
    max-width: 350px;
  }

  .home-button {
    margin-top: 20px;
    font-size: 60px;
    height: 200px;
  }

  .round {
    font-size: 60vh;
  }

  .round.round-end,
  .round.round-now {
    font-size: 25vh;
  }

  .round-timer {
    height: 18vh;
    min-height: 120px;
    font-size: 8vh;
  }
}

/* ---------- Tablettes paysage (ex: Lenovo 1334x800, Mpad 1280x720) ---------- */
@media (min-width: 1024px) and (max-height: 800px) {
  .round {
    font-size: 65vh;
  }

  .round-timer {
    height: 20vh;
    font-size: 10vh;
  }
}

/* ---------- Écrans standards (1920x1080 Full HD) ---------- */
@media (min-height: 801px) and (max-height: 1200px) {
  .logo {
    margin-top: 80px;
  }

  .home-button {
    margin-top: 50px;
    font-size: 80px;
    height: 280px;
  }

  .round {
    font-size: 70vh;
  }

  .round.round-end,
  .round.round-now {
    font-size: 28vh;
  }

  .round-timer {
    height: 20vh;
    font-size: 11vh;
  }
}

/* ---------- Grands écrans / 4K (>1080px hauteur) ---------- */
@media (min-height: 1201px) {
  .logo {
    margin-top: 120px;
    max-width: 600px;
  }

  .home-button {
    margin-top: 80px;
    font-size: 120px;
    height: 400px;
    max-width: 1200px;
  }

  .round {
    font-size: 70vh;
  }

  .round.round-end,
  .round.round-now {
    font-size: 30vh;
  }

  .round-timer {
    height: 18vh;
    font-size: 12vh;
  }

  .planning-time {
    font-size: clamp(2rem, 5vw, 6rem);
  }

  .planning-label {
    font-size: clamp(1.8rem, 4vw, 5rem);
  }
}

/* ---------- Écrans 4K natifs (2560x1440+) ---------- */
@media (min-width: 2560px), (min-height: 1440px) {
  .round {
    font-size: 72vh;
  }

  .round.round-end,
  .round.round-now {
    font-size: 32vh;
  }

  .round-timer {
    font-size: 14vh;
  }

  .planning-time {
    font-size: 5.5vh;
  }

  .planning-label {
    font-size: 5vh;
  }
}

/* ---------- Très petits écrans (téléphones) ---------- */
@media (max-width: 600px) {
  .logo {
    margin-top: 30px;
    min-width: 150px;
    max-width: 280px;
  }

  .home-button {
    margin-top: 30px;
    font-size: 36px;
    height: 150px;
    border-radius: 15px;
  }

  .round {
    font-size: 40vh;
  }

  .round.round-end,
  .round.round-now {
    font-size: 15vh;
  }

  .round-timer {
    height: 22vh;
    font-size: 7vh;
    padding: 5px;
  }

  #planning-content {
    padding: 10px 20px;
  }

  #planning-content li {
    flex-direction: column;
    margin: 20px 0;
  }

  .planning-time {
    margin-right: 0;
    margin-bottom: 5px;
  }
}

/* ======================== UTILITAIRES ======================== */
.hidden {
  display: none !important;
}
