/*
 Theme Name:   Appli PC
 Theme URI:    https://apprau.app
 Description:  Version PC de l’app
 Author:       Toi
 Template:     appli
 Version:      1.0
*/

body .navbar.bg-light,
footer {
    background-color: transparent !important;
}

.main {
    padding-top: 35px;
    position: relative;
    padding-bottom: 30px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.deconnexion {
    position: absolute;
    right: 15px;
    top: 30px;
    transform: translateY(-50%);
    background-color: #9cc025 !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 300 !important;
    text-transform: uppercase;
    text-decoration: none;
    margin: 0 !important;
    border: none !important;
    z-index: 1060;
    transition: background-color 0.2s;
}

#load-more-promos {
    background-color: #9cc025 !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    font-weight: 300 !important;
    text-transform: uppercase;
    text-decoration: none;
    margin: 0 !important;
    border: none !important;

}

.deconnexion:hover {
    background-color: #8bb220 !important;
    color: #fff !important;
}

.deconnexion-mobile {
    background-color: #9cc025 !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 30px;
    font-size: 14px !important;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border: none !important;
    display: inline-block;
}

#navbarDesktop {
    flex-grow: 1;
    justify-content: flex-end;
    padding-right: 140px;
    /* Make space for the absolute button */
}

#navbarDesktop ul {
    align-items: center;
}

#navbarDesktop ul li a {
    color: #000;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

#navbarDesktop ul li a.disabled-menu-item {
    color: #b7b7b4 !important;
}

#navbarDesktop ul li a:hover {
    color: #9cc025 !important;
}

#navbarDesktop ul li a img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- MODERN ANIMATED SUB-MENU --- */

#navbarDesktop ul li {
    position: relative;
    padding: 10px 0;
    /* Add padding to bridge the gap for hover */
}

#navbarDesktop ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Arrow for the sub-menu */
#navbarDesktop ul .sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

#navbarDesktop ul li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#navbarDesktop .sub-menu li {
    padding: 0;
    width: 100%;
}

#navbarDesktop .sub-menu li a {
    color: #444 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: none !important;
    padding: 10px 25px !important;
    display: block !important;
    transition: all 0.2s ease !important;
    gap: 0 !important;
    justify-content: flex-start;
}

#navbarDesktop .sub-menu li a:hover {
    background-color: #f9fbf2 !important;
    color: #9cc025 !important;
    padding-left: 30px !important;
    /* Slight slide effect on hover */
}

/* Support for multiple levels if needed */
#navbarDesktop .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
    transform: translateY(15px);
}

#navbarDesktop .sub-menu li:hover>.sub-menu {
    transform: translateY(0);
}

/* Adjustments for the main-level links when they have children */
#navbarDesktop ul li.menu-item-has-children>a::after {
    content: '▾';
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s;
}

#navbarDesktop ul li.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

.grid-container {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(150px, 200px)); */
    gap: 10px;
    /* justify-content: start; */
    justify-content: space-between;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/*
.grid-container .post-item:first-child {
    /* Il démarre à la première colonne et finit à la dernière
    grid-column: 1 / -1;
}*/
.post-header {
    display: flex;
    align-items: center;
    border-radius: 40px;
    padding: 14px;
    margin-bottom: 20px;
    box-sizing: border-box;
    background-color: #dfebc8;

}

/* 1er bloc */
.post-image {
    flex: 0 0 130px;
}

.post-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 2e bloc */
.post-text {
    flex: 1 1 auto;
    padding: 0 1rem;
    font-size: 1.6em;
}

.post-text h2 {
    font-size: 1.6em;
}

.post-header {
    padding: 0 0 0 25px;
}

.post-header .image-item {
    margin: 0px;
}



.post-text,
.post-text h2 {
    color: black !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
}

.post-text p {
    font-size: 0.9em;
}

/* 3e bloc : 50% de la largeur, et l’image poussée à droite */
.image-block.home-image {
    flex: 0 0 70%;
    /* prend toujours 50% du conteneur */
    display: flex;
    justify-content: flex-end;
    /* pousse l’image à l’extrémité droite */
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .image-block.home-image {
        flex: 0 0 50%;
        /* prend toujours 50% du conteneur */
    }
}

@media (max-width: 768px) {
    .image-block.home-image {
        flex: 0 0 40%;
        /* prend toujours 50% du conteneur */
    }
}



.image-block img {
    display: block;
    width: 100%;
    /* remplit son conteneur (50% de .post-header) */
    max-width: 100%;
    /* sans jamais déborder */
    height: auto;
}

.btn.bvertclair.rouge {
    border-radius: 50%;
    background-color: white !important;
    border: solid 1px #2f2f2f;
    color: #2f2f2f !important;
    font-size: 16px;
    font-weight: 100;
}

.attachment-thumbnail.size-thumbnail.wp-post-image {
    width: auto;
    height: 64px;

    margin-bottom: 10px;
}

.box-equipementiers {
    width: 120px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* évite les débordements */
    background: transparent;
    /* optionnel */
}

.equipementiers img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* entière visible, pas de recadrage */
    display: block;
}

.page-template-page-home h1 {
    display: none;
}

.bonjour {
    margin: 35px 0;
    color: #000;
    font-size: 26px;
    font-weight: bold;
}

.post-item {
    border: 1px solid #ccc;
    padding: 14px;
    align-items: center;
    margin-bottom: 4px;
    line-height: 1;
    border-radius: 8px;
}

.btn.bvertclair.rouge:hover {
    background-color: #8fc400 !important;
    color: white !important;
}

.post-item p {
    color: #000;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.image-item {
    max-width: 50%;
    height: auto;
    margin: 10px
}


.post-item h2 {
    color: #000;
    font-size: 26px;
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1;
}


.post-thumbnail {
    flex: 0 0 100px;
    margin-right: 4px;
}

.post-content {
    padding-left: 25px;
}

.mini-flex {
    display: flex;
}

.element-droite {
    display: flex;
    flex: 0 60px;
    align-items: center;
    /* fixe 60px de largeur (si c’est ce que tu veux) */
    padding: 0 15px;
}

.element-gauche {
    display: flex;
    flex: 1 auto;
    padding: 0px;
    align-items: center;
}

/* Harmoniser l’item dans la grille desktop */
.grille-categorie .post-item {
    margin: 0;
    gap: 8px;
    background: #fff;
    border-radius: 40px;
    background-color: #dfebc8;
    border: 0px;
    /* mini grid dans chaque cellule */
    place-content: end start;
    /* bas + gauche ; ou: end center / end end */
    padding: 8px;
}

.grille-categorie .post-item .post-content {
    padding: 60px 12px 28px;

}

.equipementiers h2 {
    padding-top: 6px;
    height: 36px;
    font-size: 1.3em !important;
}

.cols-3 h2,
.cols-4 h2 {
    padding-top: 6px;
    height: 72px;
    font-size: 1.3em !important;
}


.bvertclair {
    background-color: #daddca !important;
    border: none !important;
    color: #ff0519 !important;
    text-transform: uppercase;
    padding: 4px 8px;
    font-size: 12px;
    margin-top: 8px;
}

.navbar-brand img {
    height: 120px !important;
    max-height: 100%;
}

.navbar::after {
    display: none;
}


.container.bis {
    padding-top: 30px;
}

.btn-success {
    background-color: transparent !important;
    /* On retire l'override global pour éviter des bugs */
}

.btn.btn-success.connexion {
    background: #9cc025 !important;
    border: none !important;
}

.disabled-menu-item {
    pointer-events: none;
    background-color: transparent !important;
    color: #adadad !important;
}

.offcanvas-backdrop.show {
    background-color: rgba(0, 0, 0, 0.6);
}

.offcanvas-fullscreen-md-down .offcanvas-body {
    background: #fff;
    /* ou ta couleur de fond */
    padding: 2rem;
}

/* Profil Picto */
.profil-picto {
    display: inline-block;
    width: 25px;
    height: 25px;
    min-width: 25px;
    /* Prevent shrinking */
    min-height: 25px;
    /* Prevent shrinking */
    flex-shrink: 0;
    /* Prevent shrinking in flex containers */
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
    vertical-align: middle;
    /* Fallback pour span */
    background-image: url("../../themes/appli/images/image_profil.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- MOBILE SUB-MENU STYLING --- */
.offcanvas-body .navbar-nav .sub-menu {
    list-style: none;
    padding: 0;
    margin: 5px 0 15px 0;
    background: rgba(156, 192, 37, 0.05);
    /* Very light green background */
    border-radius: 10px;
    border-left: 3px solid #9cc025;
}

.offcanvas-body .navbar-nav .sub-menu li a {
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: #333 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.offcanvas-body .navbar-nav .sub-menu li:last-child a {
    border-bottom: none;
}

.offcanvas-body .navbar-nav .menu-item-has-children>a::after {
    content: '▾';
    margin-left: 10px;
}

/* 1) Assurer que l’offcanvas est sous la barre d’admin */
body.admin-bar .offcanvas-fullscreen-sm-down {
    /* Décalage égal à la hauteur de la admin bar (32px) */
    top: 32px !important;
    height: calc(100% - 32px) !important;
}

/* 2) Mettre le bouton de fermeture au-dessus de la barre d’admin */
.offcanvas-fullscreen-sm-down .btn-close {
    z-index: 999999 !important;
}


footer {
    box-shadow: 5px 5px 15px 5px #6c6c6c;
}

/*media queris mobile :*/

@media (max-width:768px) {
    .navbar-brand img {
        height: 100px !important;
    }

    .btn.btn-success.me-2 {
        width: 100%;
        margin: 5px 10px;
        padding: 10px;
    }

}

.footer a {
    color: #9fc20c;

}

.footer {
    background-color: #f8f9fa;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links-list li {
    display: inline-block;
}

.footer-links-list li a {
    color: #9fc20c;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links-list li a:hover {
    text-decoration: underline;
}

.footer-links-list li:not(:last-child)::after {
    content: "·";
    margin-left: 15px;
    color: #6c757d;
}

/* Logo zone 1 */
.footer-logo {
    max-height: 100px;
    width: auto;
}

/* Texte des zones */
.footer-zone1 p,
.footer-zone2 p {
    font-size: 0.9rem;
    color: #6c757d;
}

.footer.bg-light.py-4 {
    margin-top: 30px;
}

.card {
    border: 0 !important;
    background-color: #ecf1e5 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.form-group .login-username *,
.form-group .login-password *,
.form-group .login-submit *,
#show-register-form2 {
    display: inline-block;
    width: 100%
}

input#user_login,
input#user_pass,
#wp-submit {
    width: 100%;
    padding: 10px;
    background: #fff !important;
    border: 1px solid #eee;
}

#wp-submit {
    background-color: transparent !important;
    border: solid 1px black
}


.forgot-password a {
    color: #1e1e1e;
}

.contenantedetail {
    padding: 0px !important;
    width: 100%;
}

/* Section par catégorie (on reste dans .grid-container pour garder le rythme de la page) */
.categorie-item {
    margin: 28px 0 36px;
}

.titre-categorie {
    padding-top: 50px;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 12px 0 14px;
    color: #232323;
    padding-left: 10px;
}

.grille-categorie {
    display: grid;
    gap: 12px;
}

/* Colonnes auto selon le nombre d’items */
.grille-categorie.cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grille-categorie.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grille-categorie.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grille-categorie.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grille-categorie.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grille-categorie.cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Breakpoints desktop → tablette → mobile */
@media (max-width: 1280px) {

    .grille-categorie.cols-6,
    .grille-categorie.cols-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {

    .grille-categorie.cols-6,
    .grille-categorie.cols-5,
    .grille-categorie.cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {

    .grille-categorie.cols-6,
    .grille-categorie.cols-5,
    .grille-categorie.cols-4,
    .grille-categorie.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .grille-categorie[class*="cols-"] {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}




/* Sur petits écrans : centrer chaque zone */
@media (max-width: 767.98px) {

    .footer-zone1,
    .footer-zone2 {
        text-align: center;
    }

    .footer-zone1 {
        justify-content: center;
    }

    .footer-zone2 {
        margin-top: 1rem;
    }
}

.page-template-templata-jeu-over .main {
    background-color: #102f24;

}

.thecontainer {
    position: relative;
    height: 956px !important;
    margin: 10px 0;
}

/*APPRAU GAME*/
.container-machine {
    display: flex;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    align-items: center;
    justify-content: center;
}

.promo-flash-preview {
    background: white;
    position: relative;
    width: 100%;
    max-width: 60% !important;
    height: auto !important;
    text-align: center;
    margin: auto !important;
}

h1 {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    /* Aligné sur le gutter de Bootstrap */
    padding-left: 30px;
    margin-bottom: 40px !important;
}

/* On reproduit les paliers Bootstrap 5 */
@media (min-width: 576px) {
    h1 {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    h1 {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    h1 {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    h1 {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    h1 {
        max-width: 1320px;
    }
}

/* Custom Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #9cc025;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #9cc025;
    font-size: 14px;
}

.pagination-container .page-numbers.current {
    background-color: #fff;
    color: #9cc025 !important;
    cursor: default;
}

.pagination-container .page-numbers:hover:not(.current) {
    background-color: #8bb220;
    border-color: #8bb220;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pagination-container .prev,
.pagination-container .next {
    width: auto !important;
    padding: 0 15px;
    border-radius: 20px !important;
}