/* ----------------------------- */
/*       Styles globaux          */
/* ----------------------------- */
body {
    background-image: url('/images/fond.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
}

.page-title {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-title h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

/* ----------------------------- */
/*       Boutons communs          */
/* ----------------------------- */
.btn-action,
.btn-jeux-action,
.btn-series-action {
    background: #f9fafa;
    color: #020202;
    border-radius: 20px;
    padding: 5px 15px;
    transition: all 0.2s ease;
}

.btn-action:hover { background: rgb(11, 94, 215); color: #fff; }
.btn-jeux-action:hover { background: rgb(220, 80, 80); color: #fff; }
.btn-series-action:hover { background: rgb(90, 180, 120); color: #fff; }

/* Boutons créer */
.btn-createC,
.btn-createJ,
.btn-createS {
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    color: #fff;
}

.btn-createC { background: rgb(11, 94, 215); }
.btn-createJ { background: rgb(220, 80, 80); }
.btn-createS { background: rgb(90, 180, 120); }


.btn-createC:hover { background: rgb(9, 78, 180); }
.btn-createJ:hover { background: rgb(200, 60, 60); }
.btn-createS:hover { background: rgb(70, 160, 100); }
.btn-createR:hover { background: #e6c850; }

/* ----------------------------- */
/*       Cards communes           */
/* ----------------------------- */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ----------------------------- */
/*       Cartes index spécifiques */
/* ----------------------------- */
.card-index {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Fond par type */
.jeux-card { background: rgba(202, 70, 70, 0.5); }
.series-card { background: rgba(90, 180, 120, 0.5); }
.console-card { background: rgba(66, 126, 206, 0.5); }

/* Hover avec bord coloré par type */
.jeux-card:hover { border: 3px solid rgba(220,80,80,1); }
.series-card:hover { border: 3px solid rgba(90,180,120,1); }
.console-card:hover { border: 3px solid rgba(66,126,206,1); }

.card-index:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Wrapper autour de l'image */
.image-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Images dans les cartes */
.card img.img-clickable {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.card img.img-clickable:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* ----------------------------- */
/*       Images grayscale selon statut */
.img-grayscale {
    filter: grayscale(100%);
}

/* ----------------------------- */
/*       Modals images            */
.modal-body img {
    max-width: 100%;
    max-height: 50vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* ----------------------------- */
/*       Pages Edit               */
.card.jeux-card > img.jeux-img,
.card.series-card > img.series-img,
.card.console-card > img.console-img {
    height: 250px;
    max-width: 100%;
    object-fit: contain;
    padding: 15px;
}

.btn-createR {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    background: #ffdd64; /* jaune soleil */
    color: #222;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Dégradé jaune pour les cartes seulement sur la page résultats */
.search-results .jeux-card {
    background: linear-gradient(to bottom, rgba(255, 221, 100, 0.3), rgba(220, 80, 80, 0.3));
}

.search-results .series-card {
    background: linear-gradient(to bottom, rgba(255, 221, 100, 0.3), rgba(90, 180, 120, 0.3));
}

.search-results .console-card {
    background: linear-gradient(to bottom, rgba(255, 221, 100, 0.3), rgba(66, 126, 206, 0.3));
}

/* Badge jaune */
.search-results .btn-createR {
    background: #ffdd64;
    color: #222;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.login-footer {

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffdd64;
    border-top: 1px solid #030303;
    z-index: 1100;
}
.login-footer .container {
    display: flex;
    justify-content: center; /* centré horizontalement */
    align-items: center;
}

.footer-base {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;             /* occupe toute la largeur */
  
    color: hsl(0, 0%, 100%);          /* texte gris */

    z-index: 1000;
    text-align: center;      /* centre le texte */
    padding: 0.5rem 0;
}