/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  color: white;
  padding-top: 90px;
  background: radial-gradient(circle at center, #4aa1d8 0%, #87ceeb 50%, #cce7f9 100%);
  /* overflow: hidden;  <-- SUPPRIMÉ pour permettre le scroll */
  position: relative; /* utile pour positionner les éléments */
}

/* Conteneur pour les éléments animés en fond */
.background-elements {
  position: fixed; /* reste en fond */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* ne bloque pas les clics */
  z-index: 0;
}

.cloud {
  position: absolute;
  width: 100px;
  height: 60px;
  background-image: url('https://www.123-stickers.com/7290-thickbox/sticker-nuage-mario.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  animation: moveClouds 60s linear infinite;
}

/* Animations */
@keyframes moveClouds {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(110vw); }
}

/* HEADER PRINCIPAL */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #ff0000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

header .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Press Start 2P', cursive;
  color: #ffd700;
  font-size: 14px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 11px;
  color: white;
  padding: 8px 14px;
  border: 2px solid #ffd700;
  border-radius: 8px;
  background: #ff0000;
  box-shadow: 0 4px #b30000;
  transition: all 0.2s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
  background: #ffd700;
  color: #ff0000;
  transform: translateY(2px);
  box-shadow: 0 2px #b30000;
}


/* =========================
   CONTAINER OBSERVATOIRE
========================= */
.observatoire {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  color: #000;
  padding: 50px 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  margin: 120px auto 50px auto;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  animation: pop 0.4s ease;
  z-index: 1;

  /* Ajout d'une bordure dorée */
  border: 3px solid #ffd700;

  /* Animation subtile hover */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.observatoire:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}




/* Calendrier global */
.calendar {
    display: grid;
    grid-template-rows: auto 1fr; /* entête + corps */
    max-width: 95%;
    margin: 20px auto;
    border: 2px solid #ffd700;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
    overflow-x: auto;
    font-family: 'Press Start 2P', cursive;
}

/* Entête du calendrier (jours) */
.calendar-header {
    display: grid;
    grid-template-columns: 50px repeat(7, 1fr); /* 50px pour heures, 7 colonnes */
    position: sticky;
    top: 0;
    background: rgba(255,0,0,0.9);
    border-bottom: 2px solid #ffd700;
    z-index: 10;
}

.day-header {
    text-align: center;
    color: #ffd700;
    font-size: 12px;
    padding: 4px 0;
    border-left: 1px solid rgba(255,255,255,0.2);
    text-shadow: 1px 1px 2px black;
}

/* Corps du calendrier */
.calendar-body {
    display: grid;
    grid-template-columns: 50px 1fr; /* colonne heures + colonnes jours */
}

.hours-column {
    display: grid;
    /* grid-template-rows: repeat(24, 30px);  <-- retirer cette ligne */
    color: white;
    font-size: 8px;
    text-align: right;
    padding-right: 4px;
    border-right: 2px solid #ffd700;
}

/* Colonnes des jours */
.days-columns {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: relative; /* pour position:absolute des cartes */
}

/* Colonne d’un jour */
.day-column {
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.2);
}

/* Cartes de tournoi */
.tournoi-card {
    position: absolute;
    left: 3px;
    right: 3px;
    background: #ffd700;
    color: #ff0000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    font-size: 7px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tournoi-card img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
}

.tournoi-card div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Responsive */
@media (max-width: 700px) {
    .calendar-header, .days-columns {
        grid-template-columns: repeat(7, 1fr);
    }
    .hours-column {
        display: none; /* masqué sur petit écran */
    }
    .day-header {
        font-size: 10px;
    }
    .tournoi-card {
        font-size: 6px;
        padding: 1px 2px;
    }
    .tournoi-card img {
        width: 24px;
        height: 24px;
    }
}

/* =========================
   FOOTER STYLÉ
========================= */


.site-footer {
  margin: 80px auto 20px;
  max-width: 1100px;
  padding: 0 15px;
  color: #aaa;
  font-size: 11px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-brand {
  color: #ffdd00;
  font-weight: bold;
}

.footer-sep {
  opacity: 0.4;
}

.site-footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffdd00;
}

.footer-bottom {
  margin-top: 8px;
  text-align: center;
  opacity: 0.4;
}

/* Mobile */
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
