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

body {
  font-family: 'ABC Diatype', sans-serif;
  background-color: #000000;
  color: #ffffff;
  /* Ajoute éventuellement un padding-top si ta navbar fixe chevauche le contenu */
}

/* =======================
   STYLES POUR LES ICÔNES
========================= */
.icon {
  transition: transform 0.2s ease;
}

.icon:hover {
  transform: scale(1.1);
}

/* ========= HEADER (Navbar) ========= */
.navbar {
  z-index: 100;
  position: fixed; /* Navbar fixe */
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* On utilise display:flex pour la structure globale */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  font-weight: bold;
}

/* Zone gauche : logo & icônes (version desktop ou mobile selon besoin) */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-left .logo {
  height: 40px;
}

.navbar-left .icon {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

/* Zone centrale : liens (MEDIA & GIGS) */
/* Sur desktop, on force le centrage absolu par rapport au header */
.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

.navbar-center li a {
  font-family: 'ABC Diatype', sans-serif;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.navbar-center li a:hover {
  color: #ff0080;
}

/* Zone droite : ici on souhaite n'afficher que les icônes (réseaux de Kosmic) */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kosmic-name {
  /* On masque le nom sur mobile, sur desktop il peut être affiché si désiré */
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.socials {
  display: flex;
  gap: 0.5rem;
}

.socials .icon {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

/* ========= Responsive (Mobile, max-width: 768px) ========= */
@media (max-width: 768px) {
  /* On masque la zone gauche pour alléger le header */
  .navbar-left {
    display: none;
  }
  
  /* Pour la zone centrale, on retire l'absolu et on centre via flex */
  .navbar-center {
    position: static;
    transform: none;
    flex: 1; /* occupe l'espace restant */
    justify-content: center;
    gap: 2rem;
  }
  
  /* On masque le texte "KOSMIC" pour garder uniquement les icônes dans la zone droite */
  .navbar-right .kosmic-name {
    display: none;
  }
  
  /* On ajuste les tailles et espacements */
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-center li a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
  }
  
  .socials .icon {
    width: 20px;
    height: 20px;
  }
}

/* =======================
   EPK CONTAINER
========================= */
.epk-container {
  margin-top: 60px; /* espace pour la navbar fixe */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 0;
}

.epk-image {
  width: 50vw;
  height: auto;
  display: block;
}

/* =======================
   FOOTER
========================= */
.custom-footer {
  background-color: #000;
  color: #ffffff;
  padding: 2rem;
}

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

.footer-left .footer-logo {
  height: 60px;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
}

/* =======================
   SECTION MÉDIAS
========================= */
.medias {
  padding: 5rem 2rem;
  text-align: center;
}

.medias h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.media-item {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.media-item:hover {
  transform: scale(1.05);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* -----------------------
   Section Vidéos (YouTube)
--------------------------- */
.video iframe {
  width: 100%;
  height: 315px;         /* hauteur agrandie */
  max-width: 100%;
  aspect-ratio: 16 / 9;  /* conserve le ratio 16:9 */
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.video iframe:hover {
  transform: scale(1.05);
}

/* Ajustement responsive pour les vidéos */
@media (max-width: 768px) {
  .video iframe {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* =======================
   SECTION GIGS
========================= */
.gigs {
  padding: 5rem 2rem;
  text-align: center;
}

.gigs h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* Grille responsive pour affiches de concerts */
.gigs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Un item dans la grille */
.gigs-item {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gigs-item:hover {
  transform: scale(1.05);
}

/* Les images s'adaptent et gardent leur ratio */
.gigs-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


/* =======================
   BONUS : Ajustement pour très petits écrans
========================= */
@media (max-width: 600px) {
  .media-gallery {
    grid-template-columns: 1fr;
  }
}

/* =======================
   RESPONSIVE MODIFICATIONS POUR MOBILE (max-width: 768px)
========================= */
@media (max-width: 768px) {
  
  /* Pour le header, on masque la zone gauche et on cache le texte "kosmic name" 
     afin de ne garder que les liens au centre et les icônes à droite. */
  .navbar-left {
    display: none;
  }
  
  .navbar-right .kosmic-name {
    display: none;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-center li a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
  }
  
  .socials .icon {
    width: 20px;
    height: 20px;
  }
  
  /* Pour l'image EPK, on prend toute la largeur de l'écran sur mobile */
  .epk-image {
    width: 100vw;
  }
}
