/* Structure générale */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #0d0d0d;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* En-tête */
header {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    color: #f0f0f0;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.top-bar {
    display: inline-flex; /* rend le bloc aussi large que son contenu */
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.top-bar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.top-bar h1 {
    font-size: 2.5em;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #00ffcc;
    margin: 0;
}

.subtitle {
    font-size: 1em;
    font-weight: 300;
    color: #00b3b3;
    margin-top: 10px;
    font-style: italic;
}   

/* Navigation */
/* BARRE LATERALE GAUCHE */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 60px;
    background-color: #1a1a1a;
    overflow-x: hidden;
    transition: width 0.3s ease;
    display: flex;
    justify-content: flex-start; /* aligner à gauche quand on élargit */    
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 1000;
    border-right: 1px solid #00ffcc;
}

.sidebar:hover {
    width: 200px;
    align-items: flex-start;
    padding-left: 15px;
}

.sidebar:hover .sidebar-link {
    justify-content: flex-start; /* aligner à gauche quand on élargit */
}

.sidebar:hover .sidebar-link .text {
    opacity: 1;
    margin-left: 60px;
}

/* Liens dans la sidebar */
.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center; /* centrer les emojis quand la barre est réduite */
    color: #00ffcc;
    text-decoration: none;
    padding: 15px 10px;
    transition: background-color 0.2s ease;
    width: 100%;
    min-width: 60px;
    position: relative;
}

.sidebar-link .icon {
  font-size: 1.5rem;
  display: flex;
  justify-content: center; /* centrer les emojis quand la barre est réduite */
  width: 60px;
  text-align: center;
  margin: 0;
  position: absolute;
}

.sidebar-link .text {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease, margin-left 0.3s ease;
    margin-left: 0;
}

.sidebar-link img{
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.sidebar-link:hover {
    background-color: #00ffcc22;
}

/* Recherche dans la barre latérale */
.search-container {
    position: relative;
    width: 95%;
    margin-bottom: 20px;
}

.search-bar {
    width: 100%;
    padding: 10px 35px 10px 10px;
    border: none;
    border-radius: 5px;
    background-color: #0d0d0d;
    color: #00ffcc;
    border: 1px solid #00ffcc;
    font-size: 0.9em;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffcc;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #1a1a1a; /* légèrement plus clair que le header */
    border: 1px solid #00ffcc; /* accent cyan */
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/*styliszation de la scrollbar vertical*/
/* Chrome, Edge, Safari */
.search-results::-webkit-scrollbar {
    width: 6px; /* largeur de la barre */
    background: transparent; /* pas de fond */
}

.search-results::-webkit-scrollbar-thumb {
    background-color: #000000; /* couleur de la barre */
    border-radius: 3px; /* coins arrondis */
}

/* Firefox */
.search-results {
    scrollbar-width: thin; /* fine */
    scrollbar-color: #000000 transparent; /* couleur barre / fond */
}


.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: #f0f0f0;
    text-decoration: none;
    border-bottom: 1px solid #0d0d0d;
    transition: background 0.2s, transform 0.2s;
}

.search-item img {
    width: 55px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
}

.search-item span.title {
    font-size: 1em;
    font-weight: 500;
    color: #00ffcc;
}

.search-item span.developer {
    display: block;
    font-size: 0.7em;
    color: #00b3b3;
    margin-top: 3px;
}


.search-item:hover {
    background-color: #0d0d0d; /* effet hover subtil */
    transform: scale(1.02);
}

.search-results p {
    padding: 12px;
    color: #00b3b3;
    text-align: center;
}

/* Aside*/
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    background-color: #1a1a1a;
    padding: 30px 20px;
    margin: 30px 20px 20px 80px; /* marge gauche plus grande que 60px */
    border-left: 5px solid #00ffcc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    gap: 1.5rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #f0f0f0;
    max-width: 160px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.feature p, .feature h3 {
    margin: 0;
    font-size: 0.95em;
}

.feature strong {
    color: #00ffcc;
}

/* Main */
main {
    margin: 0 auto;
    padding: 20px;
}

main section {
    margin-bottom: 40px;
}

main h2 {
    font-size: 2em;
    color: #00ffcc;
    margin-bottom: 15px;
    text-align: center;
}

.see-more {
    font-size: 0.4em;
    margin-left: 10px;
    text-decoration: none;
    color: #00b3b3;
    transition: color 0.3s;
}

.see-more:hover {
    color: #00ffcc;
}

article {
    background-color: #262626;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    text-align: center;
}

article:hover {
    transform: scale(1.02);
}

article h6 {
    color: #d9d9d9;
    font-size: 1em;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 2rem 0;
    color: #d9d9d9;
    text-align: center;
    border-top: 0.2rem solid #00ffcc;
    font-size: 0.9em;
    line-height: 1.8;
}

footer a {
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00b3b3;
}


/* Décale le contenu principal à droite */
main, header, aside, footer {
    margin-left: 60px;
    transition: margin-left 0.3s ease;
}

.sidebar:hover ~ main,
.sidebar:hover ~ header,
.sidebar:hover ~ aside,
.sidebar:hover ~ footer {
    margin-left: 200px;
}

/*page contact*/
.contact h1{
    font-size: 2em;
    color: #00ffcc;
    margin-bottom: 15px;
}

.contact p {
    font-family: sans-serif;
}

/*reseaux sociaux contact*/
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-links a img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px #00ffcc);
}

/*formulaire contact*/
form {
    background-color: #1a1a1a;
    border-left: 3px solid #00ffcc;
    padding: 30px 20px;
    margin: 30px auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 255, 204, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form label {
    color: #00ffcc;
    font-weight: bold;
    font-size: 1em;
}

form input, form textarea {
    background-color: #0d0d0d;
    border: 1px solid #00ffcc;
    border-radius: 5px;
    padding: 10px;
    color: #f0f0f0;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box; /* pour ne pas dépasser les limites */
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #00b3b3;
    box-shadow: 0 0 5px #00b3b3;
}

form textarea {
    resize: vertical;
}

form button[type="submit"] {
    background-color: #00ffcc;
    color: #0d0d0d;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 12px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button[type="submit"]:hover {
    background-color: #00b3b3;
    transform: scale(1.03);
}

/* arboressence action*/
.arborescence a {
    color: #00b3b3;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.arborescence a:hover {
    color: #00ffcc;
}

.arborescence h1 {
    color: #00ffcc;
    padding-left: 15px;
}

.arborescence p{
    padding-left: 15px;
}

/* jeu*/
.games-carousel {
    position: relative;
    background-color: #262626;
    padding: 20px 40px; /* espace pour les flèches */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.games-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.games-wrapper::-webkit-scrollbar {
    display: none; /* Masque la scrollbar sur Chrome/Safari */
}
.games-wrapper {
    -ms-overflow-style: none;  /* Masque la scrollbar sur IE/Edge */
    scrollbar-width: none;     /* Masque la scrollbar sur Firefox */
}

/* Style général des flèches */
/* Boutons en forme de bande verticale transparente */
.carousel-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px; /* largeur de la bande */
    background-color: rgba(0, 0, 0, 0.5); /* fond semi-transparent */
    border: none;
    color: #00ffcc; /* couleur de la flèche */
    font-size: 5rem;
    cursor: pointer;
    opacity: 0; /* caché par défaut */
    pointer-events: none; /* clic désactivé par défaut */
    transition: opacity 0.3s, background-color 0.2s;
    display: flex;
    align-items: center; /* centre la flèche verticalement */
    justify-content: center; /* centre la flèche horizontalement */
}

/* Afficher uniquement au survol du carrousel */
.games-carousel:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Placement gauche et droite */
.carousel-btn.left {
    left: 0;
}
.carousel-btn.right {
    right: 0;
}

/* Effet au survol de la bande */
.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8); /* plus sombre au survol */
    color: #00b3b3;
}

.game-container {
    flex: 0 0 auto;
    width: 290px;
    height: auto;
    display: flex;
    flex-direction: column; /* Image au-dessus, texte en dessous */
    align-items: center; /* Centre le titre horizontalement */
}

.Image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
}

.Image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.Titre {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
    font-size: 1rem;
}

iframe {
    width: 100%;
    height: 500px;
    border: none;
    margin-bottom: 20px;
}

.detail-container {
    display: flex;
    gap: 20px; /* espace entre la description et la pub */
    flex-wrap: wrap; /* pour mobile */
}

.detail {
    background-color: #262626;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    flex: 2;          /* prend plus de place */
    max-width: 70%;   /* largeur maximale pour laisser de la place à la pub */
}

.game-ad {
    flex: 1;          /* prend moins de place */
    min-width: 250px; /* largeur minimale pour le bloc pub */
}


.donnee {
    font-size: 1em;
    font-weight: 300;
    color: #00b3b3;
    padding-left: 20px;
}

/*partie categories*/
/* faire en sorte que les jeux s'affiche en page et non en ligne'comme dans l'index)*/
.categorie .games-wrapper{
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
}

.categorie .game-container {
    flex: 0 0 auto;
    width: 265px;
    height: auto;
    display: flex;
    flex-direction: column; /* Image au-dessus, texte en dessous */
    align-items: center; /* Centre le titre horizontalement */
}

/*game*/
.game {
    border: 3px solid #00ffcc;
    border-radius: 10px;
    padding: 5px;
    background: #1a1a1a;
    box-shadow: 0 0 15px #00b3b3;
    max-width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

#game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    display: block;
    margin: 0;
}

.game-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d0d0d;
    border-left: 2px solid #00ffcc;
    border-radius: 3px;
    padding: 5px 10px;
}

.toolbar-left img.toolbar-logo {
    height: 43px;
    width: 43px;
    border-radius: 50%;
}

.toolbar-right {
    display: flex;
    gap: 8px;
}

.game-toolbar button {
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.game-toolbar button:hover {
    background-color: rgba(255,255,255,0.2);
}

/* mentions legales*/
/* Section principale */
.mentionsLegales {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.08);
}

/* Titre principal */
.mentionsLegales > h1 {
    font-size: 2.2em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #00ffcc;
    margin-bottom: 30px;
    border-bottom: 2px solid #00b3b3;
    padding-bottom: 10px;
}

/* Chaque article */
.mentionsLegales article {
    background: #0d0d0d;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    border-left: 4px solid #00ffcc;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Effet au survol */
.mentionsLegales article:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

/* Titres des articles */
.mentionsLegales article h2 {
    font-size: 1.4em;
    color: #00ffcc;
    margin-bottom: 10px;
    border-bottom: 1px solid #00b3b3;
    padding-bottom: 5px;
}

/* Paragraphes */
.mentionsLegales article p {
    margin: 10px 0;
    color: #f0f0f0;
    font-size: 1em;
    line-height: 1.6;
}

/* Liens dans le texte */
.mentionsLegales a {
    color: #00ffcc;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed #00b3b3;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.mentionsLegales a:hover {
    color: #00b3b3;
    border-bottom-color: #00ffcc;
}