/**
 * Theme Name: GeneratePress-child
 * Template:   generatepress
 * ...other header fields
 */

/* ---------------- Header Container ---------------- */
.cg-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #0f172a; /* dark, modern */
  color: #fff;
  font-family: 'Arial', sans-serif;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Inner container */
.cg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo */
.cg-logo img {
  height: 80px;
  transition: transform 0.3s ease;
}
.cg-logo img:hover {
  transform: scale(1.05);
}

/* Hamburger button */
.cg-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  z-index: 1001;
}
.cg-hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Nav Menu */
.cg-nav {
  flex: 1;
}
.cg-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.cg-menu a,
.cg-drop-btn {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  display: inline-block;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}
.cg-menu a:hover,
.cg-drop-btn:hover {
  background: #1f2937; /* subtle hover effect */
}

/* Dropdown */
.cg-dropdown {
  position: relative;
}
.cg-submenu {
  position: absolute;
  top: 42px;
  left: 0;
  background: #111827;
  padding: 8px 0;
  min-width: 160px;
  display: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  z-index: 999;
}
.cg-submenu li a {
  padding: 10px 16px;
  display: block;
}
.cg-dropdown.open > .cg-submenu {
  display: block;
}

/* Search & CTA button */
.cg-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cg-search input {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 14px;
}
.cg-search button {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: #1f2937;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cg-search button:hover {
  background: #374151;
}
.cg-cta {
  background: #ef4444;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}
.cg-cta:hover {
  background: #f87171;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .cg-hamburger {
    display: flex;
  }

  .cg-menu {
    flex-direction: column;
    width: 100%;
    display: none;
    background: #0f172a;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .cg-menu.open {
    display: flex;
  }

  .cg-submenu {
    position: static;
    display: none;
    padding-left: 16px;
    margin-top: 4px;
  }
  .cg-dropdown.open > .cg-submenu {
    display: flex;
    flex-direction: column;
  }

  .cg-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }
}

/* Small touch improvements */
.cg-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.cg-hamburger.open span:nth-child(2) { opacity: 0; }
.cg-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/*--------------------------------------------------------------------------------------------*/

/* style de la grid page principale */
/* ---------- Container ---------- */
.pg-masonry-grid {
    column-count: 6;
    column-gap: 16px;
    margin: 20px auto;
    max-width: 1400px;
    width: 100%;
	 grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* responsive squares */
	
}


.pg-card {
	
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pg-card img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.pg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Grandes cartes */
.pg-card-large {
    break-inside: avoid;
    height: 200px;
}

/* Petites cartes */
.pg-card-small {
    break-inside: avoid;
    height: 140px;
}

/* Responsive */
@media (max-width: 1200px) {
    .pg-masonry-grid { column-count: 4; }
	
}
@media (max-width: 960px) {
    .pg-masonry-grid { column-count: 3;}

}
@media (max-width: 640px) {
    .pg-masonry-grid { column-count: 2; }
	
}
@media (max-width: 480px) {
    .pg-masonry-grid { column-count: 2;}

}


/* FIN */
/* margin body */
body.container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2%;
	background: radial-gradient(circle at 30% 20%, #38bdf8, #0ea5e9 60%, #0369a1 100%);
    }
/* FIN */
/*colorbakcground site*/
body.home {
    
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
	
}


/* Single posts css----*/

.pg-single {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pg-game-title {
  font-size: 2rem;
  text-align: center;
  color: #111827;
  margin-bottom: 30px;
}

.pg-game-player {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 25px;
}

.pg-game-player iframe,
.pg-game-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.pg-game-description {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.pg-game-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 50px;
  text-align: center;
}

.pg-related-games {
  background: #f9fafb;
  padding: 50px 0;
  border-top: 1px solid #e5e7eb;
}

.pg-related-games h2 {
  text-align: center;
  color: #111827;
  margin-bottom: 30px;
}

.pg-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 0 20px;
}

.pg-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.pg-card:hover {
  transform: translateY(-5px);
}

.pg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



}
/*************/
/* iframe full screen */

iframe {
    display: block;
    width: 100vw; /* 100% of viewport width */
    height: 100vh; /* 100% of viewport height */
    border: none;
    position: fixed; /* Positions the iframe relative to the viewport */
    top: 0;
    left: 0;
    z-index: 9999; /* Ensures the iframe is on top of other content */
}

/***/