/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fontdiner+Swanky&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mogra&display=swap');


/* ---------------------------------------- */
/* ---------------------------------------- */
/* STYLES GÉNÉRAUX & BASE        */
/* ---------------------------------------- */
/* ---------------------------------------- */

:root {
  /* Couleurs Light */
  --bg-page: #ffffff;
  --text-page: #333333;
  --bg-header: rgba(255,255,255,0.55);
  --link-color: #007bff;
  --btn-primary-bg: #007bff;
  --btn-primary-color: #ffffff;
  --ariane-color: #585858  ;
  --ariane-color-hover: #828282;
  --search-bar-bg: #d5d5d5;
  --search-bar-txt:#1a1a1a ;
  --bg-fiche-jeu: rgba(230, 230, 230, 0.8);
  
  --card-bg:          #fff;
  --card-text:        #333;
  --card-border:      #ddd;
  --card-shadow:      rgba(0,0,0,0.1);
  --btn-bg:           #007bff;
  --btn-text:         #fff;
  --btn-hover-bg:     #0056b3;
  --card-text-muted: #aaa;
}

[data-theme="dark"] {
  /* Couleurs Dark */
  --bg-page: #272d36;
  --text-page: #e0e0e0;
  --bg-header: rgba(0,0,0,0.95);
  --link-color: #5a48e2;
  --btn-primary-bg: #5a48e2;
  --btn-primary-color: #ffffff;
  --ariane-color: #c2c2c2;
  --ariane-color-hover: #ffffff;
  --search-bar-bg:#1a1a1a;
  --search-bar-txt: #f0f0f0;
  --bg-fiche-jeu: rgba(62, 62, 62, 0.7);
  
  --card-bg:          #2a2a2a;
  --card-text:        #eee;
  --card-border:      #444;
  --card-shadow:      rgba(0,0,0,0.6);
  --btn-bg:           #375a7f;
  --btn-text:         #fff;
  --btn-hover-bg:     #2c3e50;
  --card-text-muted: #888;
}

/* Styles pour l'élément racine HTML et le corps de la page */
html, body {
	width: 100%;
    height: 100%; /* S'assure que html et body prennent toute la hauteur de la fenêtre */
    margin: 0;
    display: flex;
    flex-direction: column; /* Organise les éléments enfants en colonne */
}

/* Styles pour le corps de la page */
body {
    font-family: 'Inter', sans-serif;
	  background: var(--bg-page);
	  color: var(--text-page);
}

/* Pseudo-élément pour l'image de fond */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/assets/site/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.03; /* Transparence de l'image de fond */
    z-index: -1;
    pointer-events: none; /* Permet d'interagir avec les éléments derrière */
}


/* Cache le badge reCAPTCHA v3 */
.grecaptcha-badge { 
  visibility: hidden; /* ou display:none; */
}


/* ---------------------------------------- */
/* ---------------------------------------- */
/* CONTENEURS               				*/
/* ---------------------------------------- */
/* ---------------------------------------- */

/* Conteneur générique (peut être remplacé par les classes Bootstrap container/container-fluid) */
.container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2; /* S'assure que le conteneur est au-dessus du fond */

}

.container-head {
	display: flex !important;
    width: 100%;
	height:50px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000; /* S'assure que le conteneur est au-dessus du fond */
	
	
}

/* ****************** */
/* MENU HEADER - ALIGN ICONS */
/* ****************** */

/* 1) Ne pas laisser <nav> grossir :
   on lui donne un flex minimal */
.container-head nav {
  flex: 0 0 auto;
}

/* 2) Faire du UL un inline-flex qui s’ajuste
   à son contenu et justifier à droite */
.container-head nav > ul {
  display: inline-flex;      /* ne prend QUE la place de ses LI */
  align-items: center;       /* centre verticalement dans le header */
  justify-content: flex-end; /* aligne les icônes à droite */
  gap: 0.75rem;              /* espace régulier entre les icônes */
  margin: 0; padding: 0;     /* on enlève tout padding/margin parasite */
}

/* 3) Chaque <li> n’hérite plus de grandeur bizarre */
.container-head nav ul li {
  flex: 0 0 auto;
  align-items: center;
}

/* 4) Les liens <a> et .user-toggle gardent juste la taille de leurs enfants */
.container-head nav ul li a,
.container-head nav ul li .user-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.5rem;    /* optionnel, pour cliquer plus confortablement */
  text-decoration: none; /* plus de tiret sous l’icône */
}


.container-footer {
    width: 90%;
    margin: 0 auto;	
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2; /* S'assure que le conteneur est au-dessus du fond */
	position: relative;
}

/* Conteneur principal centré avec espace pour le header */
.container-central {
    width: 90%;
    margin: 0px auto 0 auto; /* marge en haut de 40px */
    padding: 0 2rem 100px; /* padding bas pour le footer */
    flex-grow: 1;
    z-index: 2;
    display: block;
    text-align: center;
	position: static;

}


/* Conteneur réutilisable pour le contenu centré */
.container-centered {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;


}

/* Conteneur pour le fil d'Ariane */
.container_ariane {
    width: 90%;
    position: absolute; /* Positionnement absolu pour le placer par rapport au parent */
    padding: 2px; 
    left: 50%;
    transform: translateX(-50%); /* Centrage horizontal */
    text-align: center;
    color: #c2c2c2; /* Correction de la couleur, doit être hex ou nom */
    font-size: 10vw; /* Taille dynamique selon la largeur de la fenêtre */
    border-radius: 10px;
    z-index: 0;
    white-space: nowrap; /* Empêche le retour à la ligne */

}

/* Conteneur pour le carousel */
.container_carousel {
    position: relative;
    margin-top: 100px; /* ajuste à ton besoin réel */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    z-index: 10;
}

h2 {
  color: var(--text-page);
}

/* 4) Vérifiez aussi que vos balises .text-center ou .mb-4 n’outrepassent pas cette couleur */
.text-center h2 {
  color: var(--text-page) !important;
}

/* Exemple plus spécifique si nécessaire : */
.container-centered h2 {
  color: var(--text-page);
}



/* ---------------------------------------- */
/* ---------------------------------------- */
/* HEADER                   				*/
/* ---------------------------------------- */
/* ---------------------------------------- */

header {
    position: fixed; /* Reste visible en haut de l'écran */
    top: 0px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 1);
    padding: 0.5rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999; /* S'assure que le header est au-dessus de tout */
    border-bottom: 1px solid white;
}

/* Logo et titre dans le header */
.logo-title-wrapper {
    position: relative; /* Pour positionner l'image de fond du logo */
    display: inline-block;
    margin-left: 1rem;
}

.background-logo {
    position: absolute;
    top: 5px;
    left: -40px;
    width: 50px;
    z-index: 0;
    pointer-events: none; /* Ignore les événements de souris */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
}

.logo-title-wrapper h1 {
    position: relative; /* Pour que le titre soit au-dessus du logo de fond */
    z-index: 1;
}

/* Styles du lien du titre H1 dans le header */
header h1 a {
    font-family: 'Fontdiner Swanky', cursive;
    color: white;
    font-size: 1.7rem; /* Taille de base pour desktop, ajustée plus bas par media queries */
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    animation: sprayIn 1s ease-out forwards; /* Assurez-vous que l'animation 'sprayIn' est définie ailleurs */

    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

header h1 a:hover {
    transform: scale(1.05) rotate(-1.5deg);
    text-shadow:
        0 0 6px #fff,
        0 0 12px #fff,
        0 0 16px #6a11cb,
        0 0 22px #6a11cb,
        0 0 28px #2575fc,
        0 0 36px #2575fc;
}


.search-bar-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  margin: 0 20px;
}

.search-form {
  display: flex;
  align-items: center;
  max-width: 600px;
  width: 100%;
  background-color: #222;
  border: 1px solid #444;
  border-radius: 25px;
  padding: 3px 10px;
}

.search-form input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
}

.search-form input::placeholder {
  color: #bbb;
}

.search-form button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}


/* ---------------------------------------- */
/* ---------------------------------------- */
/* NAVIGATION                 */
/* ---------------------------------------- */
/* ---------------------------------------- */

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem; /* Espace entre les éléments de la liste */
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
    font-size: clamp(14px, 2vw, 20px); /* Taille adaptative pour les liens de navigation */
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Texte superposé (généralement utilisé comme filigrane ou titre en arrière-plan) */
.overlay-text {
    width: 100%;
    max-width: 1200px;
    position: absolute;
    font-family: 'Fontdiner Swanky', cursive;
    top: 65px;
    opacity: 0.2;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-page);
    font-size: 4vw;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* ---------------------------------------- */
/* ---------------------------------------- */
/* FIL D'ARIANE               */
/* ---------------------------------------- */
/* ---------------------------------------- */

.breadcrumb {
    font-size: 0.8rem;
    color: var(--ariane-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›"; /* Icône de séparation */
    color: var(--ariane-color);
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--ariane-color);
}

.breadcrumb-item a:hover {
    ccolor: var(--ariane-color-hover);
}

.breadcrumb-item.active {
    color: var(--ariane-color);; /* Couleur pour l'élément actif */
}

/* ---------------------------------------- */
/* ---------------------------------------- */
/* CONTENU PRINCIPAL        */
/* ---------------------------------------- */
/* ---------------------------------------- */

/* Styles pour le wrapper de contenu principal */
#content {
    margin-top: 40px; /* Ajuste selon le besoin, pour laisser de la place au header fixe */
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    color: white;
    flex: 1; /* Prend tout l'espace disponible entre le header et le footer */
}

#content.fade-out {
    opacity: 0;
}

/* Styles pour les sections spécifiques du contenu */
body > .jeux-wrapper {
    flex: 1; /* Assure que le wrapper de jeux prend l'espace disponible */
}

/* ---------------------------------------- */
/* ---------------------------------------- */
/* ADMIN PANEL              */
/* ---------------------------------------- */
/* ---------------------------------------- */

.admin-panel {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
}

.admin-panel h2 {
    font-size: 2rem;
    font-weight: bold;
}

.admin-panel table {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.admin-panel .badge {
    font-size: 0.9rem;
    padding: 0.5em;
}

.admin-panel .btn {
    padding: 0.25rem 0.5rem;
}

/* ---------------------------------------- */
/* ---------------------------------------- */
/* ICÔNES NAV             */
/* ---------------------------------------- */
/* ---------------------------------------- */

.nav-tabs .nav-link {
    color: black;
}

.nav-tabs .nav-link.active {
    background: #007bff;
    color: white;
}

.nav-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.icon-link {
    text-decoration: none;
    color: inherit;
    flex: 1 1 150px; /* Flexibilité pour les cartes d'icônes */
    max-width: 150px;
}

.icon-link:hover .icon-container {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.icon-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    height: 200px; /* Taille fixe pour toutes les cartes */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.icon-container i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.icon-container span {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.social-icons a {
  color: white;
  transition: color .2s;
    text-decoration: none;
}
.social-icons a:hover {
  color: #5a48e2;
    text-decoration: none;
}
.social-icons i {
  /* déjà mis fa-2x pour la taille, mais tu peux ajuster : */
  font-size: 1.5rem;
}


/* ---------------------------------------- */
/* ---------------------------------------- */
/* CAROUSEL                */
/* ---------------------------------------- */
/* ---------------------------------------- */

.carousel-wrapper {
    position: relative;
    max-width: 50%;
    margin: auto;
}

.scroll-container {
    display: flex;
    overflow-x: auto; /* Permet le défilement horizontal */
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 10px;
    scrollbar-width: none; /* Cache la barre de défilement pour Firefox */
    width: 100%;
    margin: 0 auto;
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Cache la barre de défilement pour Chrome/Safari */
}

.carousel-img {
    height: 130px;
    width: 90px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.carousel-img:hover {
    transform: scale(1.08);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border: 5px; /* Cette propriété n'est pas valide, probablement une erreur de frappe */
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
}

.carousel-arrow.left {
    left: -50px;
}

.carousel-arrow.right {
    right: -50px;
}

/* ---------------------------------------- */
/* ---------------------------------------- */
/* MENU UTILISATEUR         */
/* ---------------------------------------- */
/* ---------------------------------------- */

/* ─ Dropdown utilisateur ─────────────────────────────────────────────────── */
.user-menu { position: relative; }
.user-toggle { cursor: pointer; }
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2b2b2b;
}

/* Le menu (caché / affiché) */
.dropdown-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: #1f1f1f;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 10000;
}
.dropdown-user-menu.show {
  display: block;
}

/* ─ Correction de l’affichage en colonne de la dropdown-user-menu ─────────── */
.dropdown-user-menu .user-actions {
  display: block;    /* force l’ensemble de la liste en bloc */
  padding: 0;
  margin: 0;
  list-style: none;
}

.dropdown-user-menu .user-actions li {
  display: block;    /* chaque item occupe toute la largeur */
  border-top: 1px solid #3a3a3a;
  margin: 0;
}

.dropdown-user-menu .user-actions li:first-child {
  border-top: none;
}

.dropdown-user-menu .user-actions li a {
  display: flex;          /* icône + texte alignés */
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  color: #ccc;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-user-menu .user-actions li a i {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

.dropdown-user-menu .user-actions li a:hover {
  background: #333;
  color: #fff;
}


/* En-tête */
.user-header {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #2b2b2b;
}
.dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #3a3a3a;
}
.dropdown-username {
  color: #fff;
  font-size: 0.95rem;
}

/* Liste d’actions */
.user-actions {
  list-style: none;
  margin: 0;
  padding: 0;
}
.user-actions li + li {
  border-top: 1px solid #3a3a3a;
}
.user-actions li a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: #ccc;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-size: 0.9rem;
}
.user-actions li a i {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}
.user-actions li a:hover {
  background: #333;
  color: #fff;
}

/* JS : toggle .show */


/* ---------------------------------------- */
/* ---------------------------------------- */
/* MODAL                  */
/* ---------------------------------------- */
/* ---------------------------------------- */

/* =============================== */
/* MODAL PRINCIPALE                */
/* =============================== */

.modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

/* =============================== */
/* CONTENU DE LA MODALE           */
/* =============================== */

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-content.profil-modal {
  max-width: 800px;
}

/* Bouton de fermeture (croix) */
.modal-content .close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* =============================== */
/* FORMULAIRES (champs + bouton)  */
/* =============================== */

.modal-content form input {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Ancien bouton unique pleine largeur */
.modal-content form button {
    padding: 0.7rem;
    background: #5a48e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

.modal-content form button:hover {
    background: #4538c7;
}

/* Bouton “info” en grand, fond transparent */
.info-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;      /* taille de l’icône */
  padding: 0.5rem;        /* espace autour de l’icône */
  color: var(--search-bar-txt);       
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Effet hover pour agrandir un peu */
.info-btn:hover {
  transform: scale(1.2);
  color: #ffd78b;         /* un ton plus foncé au survol */
}

/* Permet d’enchaîner proprement les modales */
.info-btn:focus {
  outline: none;
}

.achat-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;      /* taille de l’icône */
  padding: 0.5rem;        /* espace autour de l’icône */
  color: var(--search-bar-txt);          
  cursor: pointer;
  transition: transform 0.2s ease;
  text-decoration: none;
  display: inline-block;  
}

/* Effet hover pour agrandir un peu */
.achat-btn:hover {
  transform: scale(1.2);
  color: #d8d8d8;         /* un ton plus foncé au survol */
  text-decoration: none;
}

/* Permet d’enchaîner proprement les modales */
.achat-btn:focus {
  outline: none;
}

/* ================================= */
/* BOUTON FAVORIS                     */
/* ================================= */

/* Style de base du bouton (contient l’icône) */
.fav-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;       /* taille de l’icône FontAwesome */
  padding: 0.5rem;         /* espace autour de l’icône */
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fav-btn:focus {
  outline: none;
}

/* Icône « vide » (far fa-heart) = couleur du texte courant */
.fav-btn i.empty {
  color: var(--text-page);
  transition: color 0.2s ease;
}

/* Icône « pleine » (fas fa-heart) = rouge vif, quel que soit le thème */
.fav-btn i.filled {
  color: crimson;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Effets au survol du bouton principal */
.fav-btn:hover {
  transform: scale(1.2);
}

/* Si l’icône est “empty” pendant le hover, on passe à la couleur des liens */
.fav-btn:hover i.empty {
  color: var(--link-color);
}

/* Si l’icône est “filled”, on agrandit légèrement le cœur */
.fav-btn:hover i.filled {
  transform: scale(1.1);
}




/* =============================== */
/* PIED DE MODALE À 2 BOUTONS     */
/* =============================== */

.modal-content .modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1.5rem;
}

.modal-content .modal-footer button {
    flex: 1;
    padding: 0.7rem 1rem;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    cursor: pointer;
}

/* Annuler (gris clair) */
.modal-content .modal-footer .btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.modal-content .modal-footer .btn-cancel:hover {
    background-color: #c5c5c5;
}

/* Valider / Modifier (violet) */
.modal-content .modal-footer .btn-submit {
    background-color: #5a48e2;
    color: white;
}

.modal-content .modal-footer .btn-submit:hover {
    background-color: #4538c7;
}

/* =============================== */
/* TEXTE ET LIENS DANS LA MODALE  */
/* =============================== */

.modal-content p {
    margin-top: 1rem;
    text-align: center;
}

.modal-content a {
    color: #5a48e2;
    text-decoration: underline;
    cursor: pointer;
}

/* =============================== */
/* MODALE ALTERNATIVE (non utilisée ?) */
/* =============================== */

.custom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-danger:hover {
  background-color: #bb2d3b;
}

/* === MODALE PERSONNALISÉE === */
.custom-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.custom-modal.hidden {
  display: none;
}

/* contenu intérieur */
.custom-modal .modal-content {
  background: #656565;
  border-radius: 8px;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  position: relative;
  padding: 1.5rem;
  z-index: 2000;
}

/* bouton fermer */
.custom-modal .close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* pied de la modale */
.custom-modal .modal-footer {
  text-align: right;
  margin-top: 1rem;
  z-index: 2000;
}

/* Taille du logo dans la modale d'info */
.modal-logo {
  max-width: 300px;    /* largeur maximale */
  width: 100%;         /* sinon s'adapte à son conteneur */
  height: auto;        /* conserve les proportions */
  display: inline-block;
}

/* Si tu veux centrer automatiquement */
.custom-modal .modal-content {
  text-align: center;
  z-index: 2000;
}



/* ---------------------------------------- */
/* ---------------------------------------- */
/* FOOTER                 */
/* ---------------------------------------- */
/* ---------------------------------------- */

footer {
    background-color: #333;
	z-index: 1;
    color: white;
    text-align: center;
    margin-top: auto; /* Permet au footer de se coller en bas si le contenu est court */
    padding: 120px;
    /* margin-top: 250; cette ligne était une erreur de frappe et redondante avec margin-top: auto; */
}

/* Optionnel : Style pour les icônes sociales dans le footer */
footer i {
    font-size: 1.5rem;
}

/* ---------------------------------------- */
/* ---------------------------------------- */
/* MEDIA QUERIES             */
/* ---------------------------------------- */
/* ---------------------------------------- */

/* Styles pour les écrans de moins de 1024px (tablettes) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }

    .overlay-text {
        font-size: 5vw;
    }

    header h1 a {
        font-size: 2.5rem; /* Réduit la taille du titre */
    }
}

/* Styles pour les écrans de moins de 768px (mobiles) */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Les éléments s'empilent verticalement */
        text-align: center;
    }

    .site-header { /* Cette classe n'est pas définie dans votre HTML, mais gardée au cas où */
        padding: 0.5rem 0; /* Réduit l’espace sur mobile */
    }

    .overlay-text {
        font-size: 6vw; /* Augmente la taille du texte sur mobile */
        top: 50px; /* Ajuste la position */
    }

    nav ul {
        flex-direction: column; /* Le menu passe en vertical */
        align-items: center;
    }

    nav ul li {
        margin-bottom: 10px; /* Ajoute un peu d’espace entre les éléments du menu */
    }

    .admin-panel table {
        overflow-x: auto; /* Permet le défilement horizontal si le tableau est trop large */
        display: block;
        width: 100%;
    }
}




/* JEUX */

.fiche-jeu-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

/* Colonne de gauche : jaquette + infos */
.fiche-jeu-gauche {
  flex: 0 0 200px; /* largeur fixe */

}

/* Colonne de droite : mods et filtres */
.fiche-jeu-droite {
  flex: 1; /* prend le reste */
  min-width: 300px;
  background-color: var(--bg-fiche-jeu);
  padding: 0.5rem;   /* éventuellement pour respirer */
  border-radius: 0.5rem; /* si tu veux des angles arrondis */
  margin-top: 2.5rem;
  color: var(--card-text);
}

/* 2) Remonter la barre d’onglets dans la colonne droite */
.fiche-jeu-droite .nav-pills.fiche-tabs {
  /* annule tout margin-bottom/mb-4 éventuel */
  margin-bottom: 0;
  /* remonte la barre de 1rem (16px) – ajuste la valeur à ta guise */
  margin-top: -3.5rem;
}



.fiche-jeu-global {
  position: relative;       /* pour que ::before soit calé dessus */
  overflow: hidden;         /* si besoin de masquer les débordements */
  /* styles existants… */
  justify-content: center;
  max-width: 100%;
  flex: 1;
  flex-wrap: wrap;
  min-width: 300px;
  border-radius: 2rem;
  margin-top: 2.5rem;
  align-items: center;
  margin: 0 auto;
  padding: 1.5rem;
  /* border: 5px solid #000; */

}

.fiche-mods-upload {
  position: relative;       /* pour que ::before soit calé dessus */
  overflow: hidden;         /* si besoin de masquer les débordements */
  /* styles existants… */
  justify-content: center;
  max-width: 80%;
  flex: 1;
  flex-wrap: wrap;
  min-width: 300px;
  border-radius: 2rem;
  margin-top: 2.5rem;
  align-items: center;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: var(--search-bar-bg);
  color: var(--search-bar-txt);
  /* border: 5px solid #000; */

}

.fiche-jeu-global::before {
  content: "";
  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; */
  /* background: url('/assets/images/site/nouveaute-epic-clean.png') center/cover no-repeat; */
  opacity: 0.4;             /* ← règle ici l’opacité du visuel */
  z-index: -1;              /* derrière le contenu */
  border-radius: inherit;   /* récupère l’arrondi du parent */
}

/* Jaquette avec taille fixe */
.jaquette-fixe {
  width: 200px;
  height: 286px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.jeux-wrapper {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding-bottom: 60px;
	color: var(--text-page);
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    font-size: 1rem;
    background-color: var(--search-bar-bg);
    color: var(--search-bar-txt);
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); */
}

select.search-bar {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #444;
    font-size: 1rem;
    background-color: var(--search-bar-bg);
    color: var(--search-bar-txt);
    appearance: none;
}



.alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}
.lettre-btn {
    padding: 5px 10px;
    background-color: #222;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.85rem;
}
.lettre-btn:hover:not(.disabled) {
    background-color: #444;
    color: white;
}
.lettre-btn.selected {
    background-color: red;
    color: white;
}
.lettre-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}
.lettre-section {
    margin-top: 40px;
    color: #c8ccd1;
}
.lettre-title {
    background-color: var(--search-bar-bg);
    padding: 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--search-bar-txt);
    text-align: center;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid white;
}
.jeux-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.jeu-item img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s ease;
}
.jeu-item img:hover {
    transform: scale(1.1);
}


/* Onglets de la fiche-jeu */
.fiche-tabs {
  background: none;
  position: relative;
  margin-top: -2rem;
  padding-left: 0rem;
  z-index: 2;
}

/* Style général des onglets */
.fiche-tabs .nav-link {
  background: rgba(0,0,0,0.6);
  color: #ddd;
  border-radius: 0.4rem 0.4rem 0 0;
  margin-right: 0.2rem;
  padding: 0.5rem 1rem;
  transition: background 0.2s, color 0.2s;
}
.fiche-tabs .nav-link:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
}

/* Onglet actif : fond plus clair, texte sombre */
.fiche-tabs .nav-link.active {
  background-color: rgba(62, 62, 62, 0.7);
  color: #fff;

}

/* Panel sous les onglets */
.fiche-tab-content {
  background: rgba(26,26,26,0.8);
  padding: 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  margin-top: -1rem;
  color: #eee;
}


/* ----------------------------------------
   1) ON FORCE LE <li> À FAIRE DU FLEX ET À CENTRER
   ---------------------------------------- */
.theme-switch-wrapper {
  display: flex;
  width: 100%;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  padding: 0.5rem 0;       /* un petit padding pour respirer */
  /* Si votre menu a un background spécifique, adapter ici : */
  /* background-color: transparent; */
}

/* ----------------------------------------
   2) CONTENEUR INTERNE (soleil + slider + lune)
   ---------------------------------------- */
.theme-switch-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* espace entre soleil, toggle et lune */
}

/* ----------------------------------------
   3) ICÔNES SOLEIL / LUNE
   ---------------------------------------- */
.theme-icon {
  font-size: 1rem;
  line-height: 1; /* pour bien aligner verticalement */
}
.theme-icon-sun {
  color: #FFD700; /* jaune “soleil” */
}
.theme-icon-moon {
  color: #ADD8E6; /* bleu clair “lune” */
}

/* ----------------------------------------
   4) SLIDER (background + petit cercle)
   ---------------------------------------- */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 40px;   /* largeur du slider */
  height: 20px;  /* hauteur du slider */
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;           /* fond gris quand OFF */
  transition: background-color 0.3s, box-shadow 0.3s;
  border-radius: 20px;              /* arrondir en « pill » */
}
.theme-switch .slider::before {
  content: "";
  position: absolute;
  height: 16px;         /* diamètre du cercle */
  width: 16px;          /* diamètre du cercle */
  left: 2px;            /* marge gauche quand OFF */
  bottom: 2px;          /* marge basse quand OFF */
  background-color: #fff; /* cercle blanc */
  transition: transform 0.3s;
  border-radius: 50%;
}
.theme-switch input:checked + .slider {
  background-color: #adfdb1; /* vert vif quand ON */
}
.theme-switch input:checked + .slider::before {
  transform: translateX(20px);
}
.theme-switch .slider:hover {
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.theme-switch input:focus + .slider {
  box-shadow: 0 0 2px 2px rgba(76, 175, 80, 0.5);
}


/* =========================================
   STYLES GÉNÉRAUX DE LA FICHE-JEUX
   ========================================= */

.fiche-jeu-wrapper {
  width: 100%;
}

.fiche-jeu-gauche {
  flex: 0 0 200px;
}

.fiche-jeu-droite {
  flex: 1;
  min-width: 300px;
  background-color: var(--bg-fiche-jeu);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

/* Jaquette (colonne gauche) */
.jaquette-fixe {
  width: 200px;
  height: 286px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Modale “Info” */
.custom-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.custom-modal.hidden {
  display: none;
}
.custom-modal .modal-content {
  background: #656565;
  border-radius: 8px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 1.5rem;
  text-align: center;
}
.custom-modal .close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Boutons “Acheter” / “Favoris” / “Info” */
.achat-btn, .fav-btn, .info-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  padding: 0.5rem;
  color: var(--search-bar-txt);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
.achat-btn:hover, .fav-btn:hover, .info-btn:hover {
  transform: scale(1.2);
  color: #ffd78b;
}
.achat-btn:focus, .fav-btn:focus, .info-btn:focus {
  outline: none;
}
/* Cœur plein (= favori) */
.filled.text-danger {
  color: crimson !important;
}

/* Onglets “Recherche” / “DLC” / “Les Tops” (Bootstrap 5) */
.nav-pills .nav-link {
  color: #ddd;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.4rem 0.4rem 0 0;
}
.nav-pills .nav-link.active {
  background: rgba(62, 62, 62, 0.8);
  color: #fff;
}

/* Selects dynamiques (petite marge entre eux) */
#categoryFilters select {
  margin-right: 0.5rem;
}

/* Responsive (écrans < 768px) */
@media (max-width: 768px) {
  .fiche-jeu-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .fiche-jeu-gauche {
    margin-bottom: 2rem;
  }
  .fiche-jeu-droite {
    margin-top: 0.5rem;
    width: 100%;
    min-width: auto;
  }
  #categoryFilters {
    flex-direction: column;
  }
  #categoryFilters select {
    width: 100% !important;
    margin-bottom: 0.5rem;
  }
  #resetFiltersBtn {
    width: 100%;
  }
}


/* --------------------------------------- */
/*  STYLING PERSONNALISÉ POUR LES FILTRES  */
/* --------------------------------------- */

  #categoryFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  /* Style des <select> imbriqués */
  .filter-select {
    background-color: var(--search-bar-bg);
    color: var(--search-bar-txt);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
  .filter-select option {
    background-color: var(--search-bar-bg);
    color: var(--search-bar-txt);
  }

.custom-btn {
  background-color: #b0b0b0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  transition: background-color 0.2s, transform 0.1s;
  cursor: pointer;
}

.custom-btn:hover {
  background-color: var(--search-bar-bg);
  transform: translateY(-1px);
}

.custom-btn:active {
  background-color: var(--search-bar-bg);
  transform: translateY(0);
}

/* Remplace l’ancienne “ms-2” sur #resetFiltersBtn */
#resetFiltersBtn.custom-btn {
  margin-left: 0.5rem;
}

/* Espace vertical si plusieurs “select” s’empilent */
#categoryFilters select.custom-select {
  margin-bottom: 0.25rem;
}


/* ========================================
   Styles de base pour toutes les cartes
   ======================================== */
   
/* 1) On passe le row en flexbox pour contrôler le wrapping */
.row.gx-3.gy-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;               /* espace entre cartes */
  justify-content: center; /* centrer dans le container */
}

/* 2) On fixe la largeur des cartes et on empêche leur redimensionnement */
.basic-card,
.dlc-card,
.top-card {
  /* wrapper de chaque carte */
  flex: 0 0 335px;         /* ne grow pas, ne shrink pas, base = 250px */
  max-width: 335px;        /* limite stricte */
}

/* 3) Si vous voulez la même règle pour .mod-card */
.mod-card {
  flex: 0 0 335px;
  max-width: 335px;
}

/* 4) Assurez-vous que .card prend 100% de son wrapper */
.basic-card .card,
.dlc-card   .card,
.top-card   .card {
  width: 100%;
}

/* 5) Vous pouvez toujours ajuster la hauteur ou laisser auto */
.basic-card .card,
.dlc-card   .card,
.top-card   .card {
  height: auto;
}
   
.card {
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--card-shadow);
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    border-color 0.3s,
    transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 16px var(--card-shadow);
  transform: translateY(-4px);
}

/* Image en haut de la carte */
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Corps de la carte */
.card-body {
  padding: 1rem;
  text-align: center;
  position: relative;    /* nécessaire pour l’absolu interne */
  min-height: 120px;     /* ajuste pour que tous tes bodies fassent la même hauteur */
  height: 220px;
}

.card-body-droite {
  padding: 1rem;
  text-align: center;
  position: relative;    /* nécessaire pour l’absolu interne */
  min-height: 120px;     /* ajuste pour que tous tes bodies fassent la même hauteur */
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* on laisse 2 lignes maximum, à toi d’ajuster */
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-text {
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Lien qui englobe toute la carte */
.card-link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* On autorise le débordement pour les badges sur toutes les cartes */
.basic-card .card,
.dlc-card   .card,
.top-card   .card {
  overflow: visible;    /* au lieu de hidden */
}

/* ========================================
   Badges & plateforme (position absolute)
   ======================================== */
.card-img-wrapper {
  position: relative;
}

.cert-badge {
  position: absolute;
  top: -23px;      /* distance depuis le haut de la carte */
  right: -20px;    /* distance depuis le bord droit */
  width: 80px;
  z-index: 10;
  pointer-events: none;
}


.modhub-badge {
  position: absolute;
  bottom: -12px;  /* chevauchement vers le body */
  right: 12px;
  width: 50px;
  z-index: 10;
  pointer-events: none;
}

.top-badge {
  position: absolute;
  top: -28px;
  left: -25px;
  width: 85px;
  z-index: 10;
  pointer-events: none;
}
.platform-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.5);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
}
.platform-bar i {
  font-size: 1.2rem;
  color: #333;
}

.etoile-bar {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
}
.etoile-bar i {
  font-size: 0.8rem;
  color: #333;
}

.stats {
  font-size: 0.7rem;
}

/* on s’assure que .card-body est le conteneur relatif */
.card-body {
  position: relative;
}

/* Badge “Nouveau” chevauchant en haut à gauche de la card-body */
.new-badge {
  position: absolute;
  bottom: -28px;    /* ajuste la hauteur */
  left: -39px;    /* ajuste le décalage depuis la gauche */
  width: 180px;   /* ou la taille que vous préférez */
  height: auto;
  z-index: 5;
  pointer-events: none;
}

/* Badge “Nouveau” chevauchant en haut à gauche de la card-body */
.new-badge2 {
  position: absolute;
  bottom: -30px;    /* ajuste la hauteur */
  left: -305px;    /* ajuste le décalage depuis la gauche */
  width: 180px;   /* ou la taille que vous préférez */
  height: auto;
  z-index: 5;
  pointer-events: none;
}



/* ========================================
   Variantes par type de carte
   ======================================== */
/* BASIQUE */
.basic-card .card {
  border: 2px solid #666;
}
.basic-card .card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* DLC */
.dlc-card .card {
  border: 2px solid #f0a500;  /* or range */
}

/* TOP (bordure + badge déjà gérée) */
.top-card .card {
  border: 3px solid #888;    /* fallback */
}


/* Top 1 (or) */
.top-card.top-1 .card {
  border: 5px solid gold;
  box-shadow: 0 4px 12px rgba(255, 215,   0,   0.6);
}

/* Top 2 (argent) */
.top-card.top-2 .card {
  border: 5px solid #888888;
  box-shadow: 0 4px 12px rgba(136, 136, 136, 0.6);
}

/* Top 3 (bronze/peru) */
.top-card.top-3 .card {
  border: 5px solid peru;
  box-shadow: 0 4px 12px rgba(205, 133,  63,  0.6);
}

/* Date de publication sous le titre */
.card-body .pub-date {
  font-size: 0.85rem;
  color: var(--card-text-muted);
}


/* ========== CONTENEUR PODIUM ========== */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  margin: 5rem 0;
  padding: 2rem;
  background: var(--tab-bg);
  border-radius: 8px;
  width: 100%;
}

/* On empêche les items flex d’écraser ou d’étirer les podium-spots */
.podium-spot {
  flex: 0 0 auto;      /* ni grow, ni shrink, taille auto */
  text-align: center;
  position: relative;
  padding: 2rem;
}

/* On fixe une largeur de base sur la carte, et on la laisse scaler */
.podium-spot .card {
  width: 350px;         /* largeur standard */

}

/* First : plus grand et au centre */
.podium-spot.first {
  transform: translateY(-10px) scale(1.1);
  z-index: 3;
}


/* Second : un peu plus bas à gauche */
.podium-spot.second {
  transform: translateY(20px) scale(1);
  z-index: 2;
}


/* Third : plus bas à droite et un peu plus petit */
.podium-spot.third {
  transform: translateY(40px) scale(0.9);
  opacity: 0.9;
  z-index: 1;
}

/* Hover sur la carte */
.podium-spot .card:hover {
  box-shadow: 0 8px 16px var(--card-shadow);
  transform: translateY(-4px);
}

.podium-intro {
  font-size: 2rem;
  font-family: 'MOGRA', sans-serif;
  color: var(--card-text);
}
/* Si tu veux vraiment qu’il colle au contour supérieur du podium-container */
.podium-container {
  padding-top: 3rem; /* laisse de la place pour l’intro */
  position: relative; /* pas forcément nécessaire ici */
}
.podium-intro {
  width: 100%;
  position: absolute;
  top: -1em;            /* distance depuis le haut du container */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);  /* fond semi-transparent noir */
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  padding-top: 0.5rem;   
  border-radius: 8px;     /* arrondir les angles */
  pointer-events: none;
  z-index: 10;
}


/* ========================================
   Hero Featured
   ======================================== */
.hero-featured {
  position: relative;
  width: 90%;             /* plein container */
         /* borne ta bannière si tu veux */
  margin: 0 auto -3rem;     /* centre + marge basse */
  height: 40vh;            /* ton ratio */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  box-shadow: 0 8px 16px var(--card-shadow);

}
.hero-featured::before {
  content:"";
  position:absolute;
  inset:0;
  overflow: visible;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.hero-label {
  display: inline-block;
  background: #28a745;
  padding: .3rem .8rem;
  border-radius: 4px;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: 3rem;
  margin: .5rem 0 1.5rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.7);
}
.btn-cta {
  display: inline-block;
  background: linear-gradient(45deg, #ff8a00, #e52e71);
  padding: .8rem 1.5rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 50px;
  transition: transform .3s, box-shadow .3s;
}
.btn-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}


/* ========================================
   Masonry Grid centrée (en CSS Grid)
   ======================================== */
.mods-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  justify-items: center; /* ✅ centre chaque carte */
}

.masonry-item {
  transform: rotate(var(--rotate));
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 330px; /* empêche les cartes d’être trop larges */
}

.masonry-item:hover {
  transform: rotate(0deg) scale(1.03);
}


.mod-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 1.2rem 2rem rgba(0, 0, 0, 0.7); /* ombre plus forte */
  transition: transform 0.3s, box-shadow 0.3s;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.masonry-item2 {
	
  max-width: 100%;

  transform: rotate(var(--rotate, 0deg));
}


/* Si tu veux aussi gérer la hauteur, tu peux fixer une min-height sur .card-body, etc. */

/* ========================================
   AOS (animations au scroll)
   ======================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="zoom-in"] {
  transform: scale(1.1) !important;
}
[data-aos="zoom-in"].aos-animate {
  transform: scale(1) !important;
}


/* Titres de sections */
.slider-title {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
  text-align: center;
}

/* Ajustement des slides */
.splide__slide {
  display: flex;
  justify-content: center;
}

/* Optionnel : un max-width sur chaque carte pour garder du blanc autour */
#dlc-slider .basic-card {
  max-width: 300px;
}

/* 1) Les slides doivent s'ajuster à la hauteur de leur contenu */
.dlc-swiper .swiper-slide {
  height: auto !important;
  display: flex;           /* pour que le contenu utilise tout l'espace vertical */
  align-items: stretch;    /* idem */

}

/* 2) On donne un aspect-ratio à .hero-featured pour qu'il garde toujours
      le même ratio, et background bien centré/couvert */
.dlc-swiper .hero-featured {
  position: relative;          
  width: 90%;
  aspect-ratio: 16 / 9;        /* ratio largeur/hauteur → tu peux ajuster (4/3, 21/9...) */
  background-size: cover;      
  background-position: center; 
  overflow: hidden;           /* évite les débordements si tu as des arrondis */
  margin: 0 auto; 
}

/* Ruban diagonal en haut à droite */
.hero-featured {
  position: relative;
  overflow: visible;
}

.hero-featured .ribbon {
  width: 150px;
  height: 150px;
  overflow: visible;
  position: absolute;
  top: -10px;
  right: -10px;
  pointer-events: none;

}

.hero-featured .ribbon span {
  position: absolute;
  display: block;
  width: 225px;
  padding: 10px 0;
  background: #28a745;      /* vert vif : ajuste à ta charte */
  color: #fff;
  font-weight: bold;
  text-align: center;
  transform: rotate(45deg);
  top: 30px;
  right: -55px;
  box-shadow: 0 12px 16px rgba(0,0,0,.5);
  text-transform: uppercase;
  font-size: .85rem;
  overflow: visible;
}


.game-logo-wrapper {
  position: absolute;
  top: -25px;              /* ajuste la distance depuis le haut */
  left: 50%;             /* centre horizontalement */
  transform: translateX(-50%);
  width: 180px;           /* largeur fixe du cadre logo */
  height: 50px;          /* hauteur fixe du cadre logo */
  overflow: hidden;      /* cache tout ce qui dépasse */
  display: flex;         /* pour centrer le <img> */
  align-items: center;
  justify-content: center;
  /* background: rgba(150,152,238,1); */
  /* padding: 2px; */
  /* border-radius: 4px; */
  z-index: 5;            /* au-dessus de l’image mod */
}

.game-logo-wrapper-2 {
  position: relative;
  top: 50px;              /* ajuste la distance depuis le haut */
  left: 50%;             /* centre horizontalement */
  transform: translateX(-50%);
  height: 100px;          /* hauteur fixe du cadre logo */
  overflow: hidden;      /* cache tout ce qui dépasse */
  display: flex;         /* pour centrer le <img> */
  align-items: center;
  justify-content: center;
  /* background: rgba(150,152,238,0.8); */
  padding: 2px;
  border-radius: 6px;
  z-index: 5;            /* au-dessus de l’image mod */
  overflow: visible;
}


.game-logo {
  max-width: 100%;       /* ne dépassera jamais la largeur du wrapper */
  max-height: 100%;      /* ne dépassera jamais la hauteur du wrapper */
  object-fit: contain;   /* garde les proportions */
  display: block;
}




.fiche-mod img {
  object-fit: cover;
  max-height: 300px;
}

.mod-title {
  font-weight: bold;
  font-size: 2rem;
}

.badge {
  font-size: 0.85rem;
  padding: 0.4em 0.75em;
}

.fiche-mod .btn-success {
  font-weight: 600;
  padding: 0.5em 1.5em;
  border-radius: 0.5em;
}

/* Appliquer style carte aux images de la fiche mod (masonry) */
.fiche-mod .masonry-item img {
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  transform: rotate(var(--rotate, -1deg));
  transition: transform 0.3s ease;
}

/* Effet au hover */
.fiche-mod .masonry-item img:hover {
  transform: rotate(0deg) scale(1.03);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}


.mod-similaire-section {
  background-color: rgba(255, 255, 255, 0.03); /* adaptatif clair/foncé */
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}

.mod-similaire-section h3 {
  font-family: 'Mogra', sans-serif;
  font-size: 2rem;
  color: var(--text-page);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}


h3.text-center {
  text-align: center !important;
  display: block;
  float: none !important;
  margin-left: auto;
  margin-right: auto;
}


.star-btn {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  color: #f1c40f;
  transition: transform 0.2s ease;
}

.star-btn:hover:not(:disabled) {
  transform: scale(1.25);
}

.star-btn:disabled {
  cursor: default;
  opacity: 0.6;
}


.creator-studio {
    min-height: 80vh;
	box-shadow: 0 12px 16px rgba(0,0,0,.5);
	border-radius: 1rem;

}

.studio-sidebar {
    width: 260px;
    background-color: var(--search-bar-bg);
    border-radius: 1rem 0 0 1rem;
	color: var(--card-text);
}

.studio-table {
	background-color: var(--search-bar-bg);
	color: var(--card-text);
	
}

.btn-creator{	
	background-color: var(--search-bar-bg);
	color: var(--card-text);
	
}

.studio-menu .studio-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 0.75rem 1rem;
	color: var(--card-text);
    font-weight: 600;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}

.studio-menu .studio-btn.active,
.studio-menu .studio-btn:hover {
    background-color: #292929;
    color: #bada55;
}

.studio-content {
    background-color: var(--bg-fiche-jeu);
    border-radius: 0 1rem 1rem 0;
}

.studio-table .w-15 { width: 15%; }
.studio-table .w-10 { width: 10%; }
.studio-table .w-25 { width: 25%; }

.badge.bg-dark {
    background-color: #333;
}

.mod-item:hover {
    background-color: var(--bg-fiche-jeu);
}




/* Container des catégories */
#categories-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Container des marques */
#brands-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;               /* espace horizontal ET vertical */
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
  /* margin: 0 0.5rem 0.5rem 0;  <-- retirez cette ligne */
}

/* Si vous voulez un petit « fallback » margin au cas où gap ne serait pas supporté */
#brands-wrapper .category-bubble {
  margin: 0 0.5rem 0.5rem 0;  /* droite et bas */
}


/* Chaque bulle reprend le même style que pour les catégories */
#brands-wrapper .category-bubble {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.65rem;
  border-radius: 20px;
  background-color: #e6f9ea;  /* fond vert pâle */
  color: #063;                /* texte vert foncé */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
}

/* État sélectionné */
#brands-wrapper .category-bubble.selected {
  background-color: #0a8;     /* vert plus soutenu */
  color: #fff;                /* texte blanc */
}


/* Séparateur visuel entre niveaux */
.category-level-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--bs-secondary);
}

/* Style de base pour les bulles */
.category-bubble {
  padding: 3px 12px;
  font-size: 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
  border: 1px solid transparent;
  background-color: var(--bs-light);
  color: var(--bs-dark);
}

/* Couleurs par niveau */
.category-level-0 .category-bubble { background-color: #e3fcef; }
.category-level-1 .category-bubble { background-color: #e6f0ff; }
.category-level-2 .category-bubble { background-color: #fff6e6; }

/* Bulle sélectionnée */
.category-bubble.selected {
  background-color: var(--bs-success);
  color: white;
  border-color: var(--bs-success);
  font-weight: 600;
}

.category-level-group {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-bubble {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid #888;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  color: #ccc;
  background: #222;
}

.platform-icon input {
  display: none;
}

.platform-icon:hover {
  border-color: #28a745;
  color: #28a745;
}

.platform-icon.selected {
  border-color: #28a745;
  background-color: #28a74520;
  color: #28a745;
}

/* Overlay */
.modl-sup-mod-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}
.modl-sup-mod-overlay.hidden {
  display: none;
}

/* Modale */
.modl-sup-mod {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modl-sup-mod.hidden {
  display: none;
}

.modl-sup-mod-content {
  background: #1c1c1c;
  color: #fff;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  animation: pop 0.3s ease-out;
}

@keyframes pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modl-sup-mod-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modl-sup-mod-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modl-sup-mod-text {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.modl-sup-mod-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-cancel, .btn-confirm {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-cancel {
  background: #333;
  color: white;
}

.btn-confirm {
  background: #e63946;
  color: white;
}


.fade-alert {
  position: relative;
  margin: 0 auto 20px;
  padding: 10px 20px;
  max-width: 400px;
  background-color: #28a745;
  color: white;
  text-align: center;
  font-weight: bold;
  border-radius: 50px;
  opacity: 0;
  animation: fadeIn 0.6s forwards, fadeOut 0.8s 4.2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}







































/* ======================================== */
/* RÈGLES GÉNÉRALES SUR MOBILE (<768px)    */
/* ======================================== */
@media (max-width: 768px) {

  /* 0) Empêche tout débordement horizontal */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
	overflow-y: auto;
  }

  /* 1) Conteneurs pleins écrans avec padding interne */
  .container-head,
  .container,
  .container-central {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem;
  }

  /* 2) Header plus compact */
  header h1 a {
    font-size: clamp(1rem, 5vw, 1.4rem);
  }
  .container-head {
    padding: 0.5rem 1rem;
  }

  /* 3) Menu hamburger */
  .hamburger {
    display: block !important;
  }
  header nav > ul {
    display: none !important;
  }
  header nav > ul.open {
    display: flex !important;
    flex-direction: column;
    background: var(--bg-header);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
  }

  /* 4) Fiche-jeu pleine largeur */
  .fiche-jeu-global {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 1rem;
    /* border-width: 2px; */
  }
  .fiche-jeu-global h1,
  .fiche-jeu-global h2 {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
    line-height: 1.2;
  }

  /* 5) Carousel responsive */
  .carousel-wrapper {
    display: block;
    width: 100% !important;
    /* margin: 1rem 0; */
    padding: 0;
    position: relative;
	top: 10px;
  }
  .scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding: 0 1rem;
    margin: 0;
  }
  .carousel-img {
    flex: 0 0 100%;
    scroll-snap-align: start;

  }
  .carousel-arrow {
    display: none !important;
  }

  /* 6) Overlay & footer */
  .overlay-text {
    font-size: 1.5rem;  /* réduire la taille du texte */
    padding: 0.5rem;    /* réduire l’espacement si besoin */
    top: 80px;
  }
  footer {
    padding: 2rem 1rem;
  }
}

/* ======================================== */
/* RÈGLES SPÉCIFIQUES PETITS ÉCRANS (<480px) */
/* ======================================== */
@media (max-width: 480px) {

  /* Box-sizing plus prévisible */
  html {
    box-sizing: border-box;
  }
  *, *::before, *::after {
    box-sizing: inherit;
  }

  /* Menu empilé */
  .container,
  .container-head nav > ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li a {
    padding: 0.4rem 0.6rem;
    font-size: 14px;
  }
}

/* === BOUTON HAMBURGER === */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  color: var(--btn-primary-color);
  cursor: pointer;
  position: absolute;
  top: 0.2rem;
  right: 1rem;
  z-index: 1001;
}

@media (max-width: 600px) {
  .basic-card {
    max-width: none;     /* supprime la limite desktop */
    width: 90%;	/* pleine largeur du conteneur parent */
	height: auto;
    margin-bottom: 1rem; /* espace entre cartes */
	margin: 0 auto 1rem;
  }
  
  .mods-masonry {
    top: 2rem;
  }

}

