*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family: 'Roboto', Courier, monospace;
  font-size: 1em;
  background-color: black !important;
  background: url("../images/bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  color: aliceblue !important;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none;
  /* IE and Edge */
}

h1 {
  font-family: "Tiny5", sans-serif;
  font-size: 3.2em;
  white-space: nowrap;
}

h2 {
  font-size: 1.2em;
  text-align: center;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px;
}

section p {
  margin-top: 20px;
}

a {
  color: white;
}

.container-text {
  width: 100%;
  max-width: 900px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

.disable-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.responsive-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

#section-header {
  width: 100%;
  min-height: 333px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

#section-header p {
  z-index: 3;
}

#section-header-video {
  margin-top: -20px;
  ;
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
}

#section-header-title {
  margin-top: -50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#section-header-logos {
  z-index: 2;
  margin: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  gap: 40px;
}

#section-header-logos img {
  max-width: 120px;
  max-height: 120px;
}

#section-header-logo-lols img {
  width: 100%;
}

#section-header-logo-hyldr {
  width: 200px;
}

#section-header-logo-hyldr img {
  width: 100%;
}

#section-sponsors {
  background-color: #0e1420;
}

#download-button {
  display: inline-flex;
  align-items: center;
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 15px 30px;
  margin-top: 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid white;
}

#download-button:hover {
  background-color: transparent;
  color: white;
  transform: scale(1.05);
}

#download-button img {
  height: 1.5em;
  margin-right: 10px;
}

#poster {
  width: 80%;
  max-width: 400px;
}

#section-sponsors-logos {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  max-width: 900px;
}

#section-sponsors-logos img {
  max-width: 66px;
  max-height: 66px;
}

@media (max-width: 400px) {
  #section-sponsors-logos {
    flex-wrap: wrap;
    justify-content: center;
  }

  #section-sponsors-logos img {
    flex-basis: 40%;
    margin: 10px;
  }
}

#iframe-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Section Liens */
#links-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.link-button {
  background-color: transparent;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid white;
}

.link-button:hover {
  background-color: white;
  color: black;
}

#container-presentation {
  display: flex;
  flex-direction: row;
  height: 300px;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
}

#container-presentation img {
  flex-grow: 1;
  width: 0;
  height: 100%;
  object-fit: cover;
  transition: flex-grow 0.5s ease;
  filter: grayscale(80%);
  cursor: pointer;
}

#container-presentation img:hover {
  flex-grow: 5;
  filter: grayscale(0%);
}

/* Styles pour la modale (pop-in) */
#popin {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
}

#popin-content {
  width: 100%;
  max-width: 900px;
  height: fit-content;
  margin: 20px 0;
  background-color: white;
  color: black;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

#popin-content p {
  margin-top: 20px;
}

#popin-content img {
  max-width: 350px;
  max-height: 200px;
}

#popin-btn-close {
  color: #000000;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  align-self: flex-end;
  order: -1;
}

#popin-btn-close:hover,
#popin-btn-close:focus {
  color: #0e1420;
  text-decoration: none;
  cursor: pointer;
}

.popin-description {
  flex-direction: column;
  align-items: center;
}

.popin-description img {
  margin-bottom: 20px;
}

/* Styles pour la modale du poster */
#popin-poster {
  display: none;
  position: fixed;
  z-index: 101;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
}

#popin-poster-img {
  max-width: 90vw;
  max-height: 90vh;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@supports selector(::details-content) {
  :root {
    --open-size: min(30vw, 300px);
    --focus-color: #0e1420;
    interpolate-size: allow-keywords;
  }
  details {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    transition: outline 0.3s;
  }
  ::details-content {
    transition: height 0.5s ease, content-visibility 0.5s allow-discrete;
    height: 0;
    overflow: hidden;
  }
  details[open]::details-content {
    height: auto;
  }
  details:hover {
    outline: 3px solid var(--focus-color);
  }
}

/* --- GESTION DES LANGUES --- */

/* Positionnement du sélecteur de langue */
#lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid white;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}
.lang-btn:hover, .lang-btn.active {
  background: white;
  color: #0e1420;
}

/* Logique d'affichage : on cache la langue non active */
body.lang-fr .lang-en { display: none !important; }
body.lang-en .lang-fr { display: none !important; }