/* ================================
   FONT FACES
   ================================ */

@font-face {
  font-family: "Stratum";
  src: url(/fonts/stratum2_black.otf) format("opentype");
}

@font-face {
  font-family: "Futura";
  src: url(/fonts/futura_pt_medium.otf) format("opentype");
}

/* ================================
   BODY ET LAYOUT PRINCIPAL
   ================================ */

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Futura", Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Vidéo d'arrière-plan */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}

.parent {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 2px;
  grid-row-gap: 2px;
  height: 90vh;
  width: 90%;
}

/* ================================
   STYLES GÉNÉRAUX DES DIVS
   ================================ */

[class^="div"] {
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #999;
  position: relative;
}

[class^="div"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease, filter 2s ease;
}

/* ================================
   POSITIONNEMENT DES DIVS
   ================================ */

.div1 {
  grid-area: 1 / 1 / 3 / 4;
}
.div2 {
  grid-area: 3 / 1 / 4 / 4;
}
.div3 {
  grid-area: 1 / 4 / 2 / 5;
}
.div4 {
  grid-area: 1 / 5 / 2 / 6;
}
.div5 {
  grid-area: 2 / 4 / 3 / 6;
}
.div6 {
  grid-area: 3 / 4 / 4 / 6;
}
.div7 {
  grid-area: 1 / 6 / 2 / 7;
}
.div8 {
  grid-area: 2 / 6 / 3 / 7;
}
.div9 {
  grid-area: 3 / 6 / 4 / 7;
}

/* ================================
   CLASSES DE STATUT
   ================================ */

/* Les classes .NA et .soon sont utilisées uniquement pour les hovers */

/* ================================
   STYLES DES TEXTES
   ================================ */

/* Texte principal en haut à gauche */
.text-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: "Futura", Arial, sans-serif;
  font-weight: bold;
  font-size: 40px;
  z-index: 10;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Texte de statut en bas à gauche */
.status-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  font-family: "Futura", Arial, sans-serif;
  font-weight: bold;
  font-size: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* ================================
   EFFETS HOVER GÉNÉRAUX
   ================================ */

/* Hover par défaut pour toutes les divs */
[class^="div"]:hover {
  border: 8px solid transparent;
  border-image: linear-gradient(45deg, #ed2b39, white, #ed2b39, white) 1;
  animation: gradientShift 2s infinite;
}

[class^="div"]:hover img {
  transform: scale(1.5);
}

/* ================================
   EFFETS HOVER SPÉCIFIQUES
   ================================ */

/* Hover pour les divs NA (Not Available) */
.NA:hover {
  border: 8px solid #666;
  border-image: none;
  animation: none;
}

.NA:hover img {
  filter: grayscale(100%);
  transform: scale(1.1);
}

.NA:hover .status-text {
  opacity: 1;
  transform: translateY(0);
}

/* Hover pour les divs SOON */

.soon:hover img {
  transform: scale(1.3);
}

.soon:hover .status-text {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   ANIMATIONS KEYFRAMES
   ================================ */

/* Animation pour les bordures normales (rouge/blanc) */
@keyframes gradientShift {
  0% {
    border-image: linear-gradient(45deg, #ed2b39, white, #ed2b39, white) 1;
  }
  25% {
    border-image: linear-gradient(135deg, white, #ed2b39, white, #ed2b39) 1;
  }
  50% {
    border-image: linear-gradient(225deg, #ed2b39, white, #ed2b39, white) 1;
  }
  75% {
    border-image: linear-gradient(315deg, white, #ed2b39, white, #ed2b39) 1;
  }
  100% {
    border-image: linear-gradient(45deg, #ed2b39, white, #ed2b39, white) 1;
  }
}