/* ========================= */
/* RESET & BASE              */
/* ========================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-y: auto;
}

body {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  min-height: 100vh;
  background-color: #000f06;
  color: #d25e25;
  padding: 50px 20px;
  box-sizing: border-box;

  /* ✅ Masquer scrollbar mais garder le scroll */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

/* ========================= */
/* CURSEURS PERSOS           */
/* ========================= */
body,
button,
.card,
.nav-card,
.logo a,         /* ✅ ajouté */
.logo img,
.top-bar .social a,
.top-bar .social img,
.carousel-item img img,
.blog-header,             /* ✅ ajouté */
.comment-form button,     /* ✅ ajouté */
.blog-content a,           /* ✅ ajouté */
.lang-switcher img {
  cursor: url("../images/cursors/Pointer.png"), auto !important;
}
button:hover,
.card:hover,
.nav-card,
.logo a:hover,   /* ✅ ajouté */
.logo img:hover,
.top-bar .social a:hover,
.top-bar .social img:hover,
.carousel-item img:hover,
.blog-header,             /* ✅ ajouté */
.comment-form button,     /* ✅ ajouté */
.blog-content a,           /* ✅ ajouté */
.lang-switcher img:hover {
  cursor: url("../images/cursors/PointerHoover.png"), auto !important;
}
.blog-content a {
  text-decoration: none; /* pas de soulignement */
  color: inherit;        /* garde la couleur du texte environnant */
  cursor: url("../images/cursors/Pointer.png"), auto !important;
}

.blog-content a:hover {
  text-decoration: none; /* même au hover */
  color: inherit;        /* ne change pas de couleur */
  cursor: url("../images/cursors/PointerHoover.png"), auto !important;
}

/* ========================= */
/* TOP BAR (Réseaux + Langues) */
/* ========================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-radius: 8px;
  width: 100%;
  max-width: 1000px;
}
.top-bar .social {
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-bar .social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s;
}
.top-bar .social img:hover { transform: scale(1.2); }

.top-bar .lang-switcher {
  display: flex;
  gap: 8px;
}
.top-bar .lang-switcher img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  transition: transform 0.2s;
}
.top-bar .lang-switcher img:hover { transform: scale(1.1); }

/* ========================= */
/* CARDS                     */
/* ========================= */
.container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  grid-template-areas:
    "big small1 small2"
    "big small3 small4";
  width: 100%;
  max-width: 1000px;
}

.card {
  background-color: #d3e4f0;
  border-radius: 12px;
  padding: 0 20px;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
  position: relative;
}
.card:hover { transform: scale(1.05); }

.card img.game-thumb {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 4px;
  display: block;
}

/* ✅ Big card */
.card.big {
  grid-area: big;
  aspect-ratio: 341 / 245;
  background: url("../images/DARKKORNER.png") center/cover no-repeat;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
}
.card.big .content {
  position: relative;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #fff;
  text-align: center;
  z-index: 2;
}
.card.big::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1;
}

/* ✅ Petites cards */
.small1 { grid-area: small1; background-color: #92c1fe; color: #b77e21; }
.small2 { grid-area: small2; background-color: #b79ed9; color: #f2f0fb; }
.small3 { grid-area: small3; background-color: #d5a035; color: #f2f0fb; }
.small4 { grid-area: small4; background-color: #d44626; color: #f2f0fb; }

/* ========================= */
/* TEXTES & FULL TEXT        */
/* ========================= */
.full-text,
.card {
  font-family: 'Pixelify Sans', sans-serif;
}

.full-text {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 20px;
  background: #2a7046;
  color: #fff9a0;
  border-radius: 8px;
  padding: 20px;
  text-align: justify;
  opacity: 1;
  width: 60vw;
  box-sizing: border-box;
}

.full-text h3,
.card h3 {
  font-size: 21px;
  font-weight: bold;
  line-height: 1.2;
  margin: 5px 0 4px;
  color: #fff9a0;
}

.full-text p,
.card p {
  font-size: 17px;
  line-height: 1.6;
  color: #fff9a0;
  margin-top: 5px;
}

.full-text img.full-thumb {
  display: block;
  max-width: 200px;
  max-height: 120px; 
  object-fit: contain;
  margin: 10px auto;
  border-radius: 8px;
}

.full-text .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.full-text .gallery img.full-thumb {
  max-width: 120px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.full-text.fade-out { opacity: 0; }

/* ========================= */
/* NAVIGATION (Logo + Liens) */
/* ========================= */
.nav-bar {
  display: grid;
  grid-template-columns: auto auto;
  gap: 20px;
  width: fit-content;
  margin: 20px 0;
  align-items: start;
}
.nav-bar .logo {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  margin-top: 20px; /* 👈 espace sous la barre sociale */
}


.nav-bar .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: none;
  transition: none !important;
}


/* Liens (stack verticaux avec spacing) */
.nav-bar .links {
  display: flex;
  flex-direction: column;
  gap: 24px; /* ✅ spacing vertical propre */
  align-items: flex-start;
}

/* Boutons */
.nav-bar .nav-card {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
  height: 30px;
  padding: 0 17px;
  min-width: 160px;

  font-family: "Pixelify Sans", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #fff9a0;

  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.nav-bar .nav-card:hover {
  transform: scale(1.05);
  opacity: 1;
  cursor: pointer;
}
.nav-bar .nav-card.active {
  opacity: 1; /* bouton actif = bien visible */
}

/* État focus (accessibilité, mais discret) */
.nav-bar .nav-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 249, 160, 0.25);
}

/* Styles spécifiques */
.nav-bar .finished { background: #d44626; }
.nav-bar .ongoing  { background: #5b5b95; }
.nav-bar .blog     { background: #c98e2b; }

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "big"
      "small1"
      "small2"
      "small3"
      "small4"
      "fulltext";
  }
  .card.big { min-height: 200px; aspect-ratio: auto; }
  .top-bar { flex-direction: column; gap: 10px; }
}
#fullText {
  transition: opacity 0.3s ease;
  opacity: 1;
}

#fullText.fade-out {
  opacity: 0;
}
.presentation {
  text-align: center;
  margin: 2rem 0;
}

.presentation-img {
  max-width: 66%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  
  display: inline-block; /* permet le centrage */
}



.carousel {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.carousel-item {
  display: flex;
  justify-content: center;
}

.carousel-item img {
  width: 125px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.carousel-item img:hover {
  transform: scale(1.15);
}

/* Lightbox moderne */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease; /* animation douce */
}

#lightbox.show {
  display: flex;
  opacity: 1;
}

#lightbox.fade-out {
  opacity: 0;
}


.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  animation: zoomIn 0.3s ease forwards;
}

/* Animations */
/* Effet ouverture (fade + zoom in) */
#lightbox.show .lightbox-content {
  animation: zoomIn 0.4s ease forwards;
}

/* Effet fermeture (fade + zoom out) */
#lightbox.fade-out .lightbox-content {
  animation: zoomOut 0.4s ease forwards;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(0.8); opacity: 0; }
}


/* ========================= */
/* BLOG               */
/* ========================= */
.blog-post {
  margin-top: 20px;
  border: 2px solid #fff9a0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}

.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #104224;
  color: #fff9a0;
  cursor: pointer;
  font-family: "Pixelify Sans", sans-serif;
}

.blog-header h2 {
  font-size: 18px;
  margin: 0;
  flex: 1;
}

.blog-header .date {
  font-size: 14px;
  color: #ffd47f;
  margin-right: 10px;
  white-space: nowrap;
}

.toggle-icon {
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s;
}

.blog-post.open .toggle-icon {
  transform: rotate(45deg); /* Le + devient × */
}

.blog-content {
  display: none;
  padding: 15px;
  background: #135c33;
  color: #fff9a0;
  font-size: 16px;
  line-height: 1.6;
}

.blog-post.open .blog-content {
  display: block;
}

