:root {
    --black : black;
    --blanc : white;
    --fond : #e9e9e9;

    --primary-color: #ffcb06;
    --secondary-color: #45276d;
    --link-color: #0066f5;


    --height-top : 100px;
    --height-foot:150px;

    --largeur-ecran:570px;
    --hauteur-ecran:830px;
}
*{
    font-family:arial;
}

/*BODY*/
#body-pa
{
width:100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background:url('../imgs/fond-projet.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
overflow-x: hidden;
margin:0px;
position:relative;
}

#fond-sombre{
    position:absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}
p{
    margin: 0px;
}
.start-center{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}


/*Structure globale*/
#main-global
{
    width:100%;
    position: relative;
    width:var(--largeur-ecran);
    height:var(--hauteur-ecran);
    /*overflow: hidden;*/

}

#contain-colonne-nav
{
background: rgba(0, 0, 0, 0.95);
box-shadow: 0 5px 3px 2px;
position:absolute;
top:0;
left: -200;
z-index:1;
height: calc(100% + 22px);
width:200px;
transition: left 0.3s ease, opacity 0.3s ease;
opacity: 0;
display:none;
}

#contain-full-contenu
{
    position:relative;
}

#contain-partie-top
{
    padding:5px 5px 0px 5px;
    display: flex;
    flex-direction: column;
    height: var(--height-top);
}

#contain-partie-contain
{
    height: calc(100% - var(--height-top) - var(--height-foot));
    overflow-y:scroll;
    padding-bottom:20px;
}

#contain-foot
{
    height: var(--height-foot);
    border-radius: 0px 0px 10px 10px;
}


/*STRUCTURE NAV*/
#ouverture-nav
{
    margin: 0px;
    margin-right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#ouverture-nav img{
    width:40px;
}
.contain-close-nav{
    width:100%;
    display: flex;
    justify-content: space-between;
    margin-bottom:30px;
}
#fermeture-nav, #cog-modal{
    background: no-repeat;
    border: none;
    margin:10px 10px 0 10px;
}
#fermeture-nav img, #cog-modal img{
    width:25px;
}


#contain-choix-series, #contain-choix-parametres
{
    display: flex;
    flex-direction: column;
    padding:5px;
}
button.titre-nav{
    color:var(--blanc);
    background:rgba(255,255,255,0.2);
    border:1px white solid;
    text-align:center;
    font-weight: bold;
    font-size:20px;
    padding:10px 0;
    border-radius:10px;
}

.item-collection-nav{
    text-decoration: none;
    padding:10px 5px;
    background:var(--primary-color);
    color:var(--black);
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    font-weight: bold;
    font-size:14px;
    width:40%;
    text-align: center;

}

#contain-collections-nav{
    margin:20px 0;
    height: 0px;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    display: flex;
    flex-wrap:wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap:10px;
}
#contain-information-nav{
    height: 140px;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin:20px 0;
    gap:10px;

}
.item-information-nav{
    text-decoration: none;
    padding:10px 5px;
    background:var(--blanc);
    color:var(--black);
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    font-weight: bold;
    font-size:14px;
    width:80%;
    text-align: center;
}




/*STRUCTURE TOP*/
#nom-code-serie-active
{
    display: flex;
    justify-content: flex-start;
    align-items: bottom;
}
.nom-serie-active
{
    color:var(--blanc);
    font-size:28px;
    font-weight: bold;
}

.code-serie-active
{
    font-size:14px;
    font-weight: normal;
    margin-left: 10px;
    margin-top: 6px;
    color:var(--blanc);

}


#contain-data-serie-active
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom:10px;
}

#decompte-serie-active
{
    padding:5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color:var(--blanc);
}
p.decompte-global-serie{
    margin:0px;
    font-size:12px;
    font-weight: bold;
    
}
span.data-decompte-global-serie{
    font-size:14px;
    color:var(--blanc);
}

/*Qualité des cartes*/
#contain-choix-rarete
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:5px;
}

.contain-nb-type-serie
{
    padding:10px 10px;
    background:var(--primary-color);
    color:var(--black);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    gap:5px;
    font-weight: bold;
    font-size:14px;

}


/*STRUCTURE GRID CARD*/
#contain-affich-cartes
{
    width:100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:15px;

}

.carte-affiche-grid
{
    background:white;
    padding: 2px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position:relative;
}
.carte-affiche-grid .verso,
.carte-affiche-grid .recto
{
    width:100%;
    border-radius: 8px;
}
.carte-affiche-grid .info{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contain-info-carte-abso{
    position:absolute;
    top:0;
    left:0;
    display: flex;
    justify-content: space-between;
    width:100%;
    padding-top:5px;
}
.contain-info-carte-abso p{
    font-size:12px;
    font-weight: bold;
    padding:3px 10px;
    background:var(--blanc);
    color:var(--black);
    /*clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);*/
    border-radius:10px;
    margin:0px 5px;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2);
}
.nom-carte-grille{
    width:100%;
    padding:5px;
    font-weight: bold;
    color:var(--secondary-color);
    text-align: center;
}

/*Full info*/
.contain-rangs-carte-grid{
    display:flex;
    justify-content: space-around;
    align-items: center;
    padding:5px 0px;
    height:60px;
}
.rang-actuel-grid, .rang-suivant-grid{
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.rang-actuel-grid p, .rang-suivant-grid p{
    text-align: center;
    font-size:12px;
    font-weight: bold;
    color:var(--secondary-color);
}
.rang-actuel-grid p:last-of-type, .rang-suivant-grid p:last-of-type{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin-top:5px;
}


.sep-rang-actuel-suivant-grid img{
    width:20px;
    padding:10px
}
.ico-trophee{
    width:20px;
}


.contain-count-euro{
    width:100%;
    display:flex;
    justify-content: space-between;
    margin-top:10px;
    padding-bottom:5px;
}
.contain-count-euro p{
    font-size:12px;
    font-weight: bold;
    padding:3px 10px;
    background:var(--secondary-color);
    color:var(--blanc);
    /*clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);*/
    border-radius:10px;
    margin:0 5px;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2);
}

/*Structure Modal Gagnant*/
#Global-Modal
{
    position: absolute;
    top:0;
    left:0;
    height: 100%;
    z-index:999;
    display: none;
    min-width: var(--largeur-ecran);
    width: 100%;
    overflow: hidden;
}
#modalGagnant{
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: row;
    justify-content:flex-start;
    transition: margin-left 0.5s ease-in-out; /* Ajout d'une transition fluide */
}

.slide-modal
{
    width:100%;
    min-width: var(--largeur-ecran);
    height: 100%;
    display: flex;
    flex-direction:column;
    justify-content: flex-start;
    align-items: center;
}


#nav-modal
{
    width:var(--largeur-ecran);
    height:10%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.prev-modal, .next-modal{
    padding:10px 20px;
    color:black;
    border-radius:10px;
    cursor: pointer;
    font-weight: bold;
}
.prev-modal{
    background: white;
}

.next-modal{
    background:var(--primary-color);
}
.close-modal{
    display: flex;
    justify-content: center;
    align-items: center;
    width:150px;
    opacity: 0;
    transition: opacity ease-in-out 0.3s;
    color: var(--blanc);
    background: var(--secondary-color);
    border:none;
    border-radius:10px;
    padding:10px 20px;
    cursor: pointer;
    font-weight: bold;
}
.close-modal:hover{
    opacity: 1;
}


.gagnant-modal{
    font-size:26px;
    font-weight: bold;
    padding:30px;
    color:white;
}
.contain-image-carte-modal{
    background: white;
    border-radius:20px;
    padding:3px;
    box-shadow: 0 0 10px 5px rgba(255,255,255,0.8);
    position:relative;
}
.image-carte-modal{
    width:340px;
    border-radius:22px;
}

.contain-data-carte-modal{
    padding:30px 10px 20px 10px;
}
.ligne-nom-carte-modal{
    margin-bottom:20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.type-carte-modal, .numero-carte-modal{
    padding:15px;
    font-weight: bold;
    color:var(--blanc);
    font-size: 20px;
}
.nom-carte-modal{
    color:var(--blanc);
    border:1px var(--blanc) solid;
    background:rgba(255,255,255,0.2);
    border-radius:10px;
    font-size:25px;
    font-weight: bold;
    padding:10px 30px;
}



.nextrank-carte-modal{
    width:calc(var(--largeur-ecran)-100px);
    padding:20px;
    text-align: center;
}
.points-carte-modal, .nextrank-carte-modal{
    color:white;
}

.nbr-carte-modal{
    position:absolute;
    top:15px;
    right: 15px;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2);
    background:var(--primary-color);
    color:black;
    font-weight: bold;
    font-size:20px;
    padding:5px 15px;
    border-radius:10px;
}

.contain-pourquoi-points-modal{
    display: flex;
    justify-content: center;
    align-items: center;
}

.pourquoi-carte-modal{
    font-weight: bold;
    color:var(--blanc);
    font-size: 18px;
}

.points-carte-modal{
    font-size:20px;
    font-weight: bold;
    color:var(--primary-color);
    padding-left:20px;

}

/*INSIDE Modal*/











/*STRUCTURE FOOT*/
/*Barre Progression*/
.contain-avance-concept {
    width: 100%;
    position:relative;
    margin-top:-10px;
}
.contain-decompte-avance-concept{
    position:absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    padding:5px;
    font-weight: bold;
    font-size: 13px;
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: var(--blanc);
    border-radius:10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%; /* Début à 0, sera mis à jour via JS */
    background-color: var(--primary-color);
    transition: width 0.5s ease-in-out;
    border-radius: 10px;
}












/*2e PARTIE FOOT*/
#bas-foot{
    padding:10px 0 0 0;
    height: calc(100% - 10px);
    box-sizing:border-box;


}
.contain-jeux-grid
{
    display:flex;
    gap:30px;
}
.contain-jeux
{
}

.slider-container-foot{
    position: relative;
    overflow: hidden;
    width:100%;
    background: var(--fond);
    border-radius: 10px;
}
.slider-foot{
    width:100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;



}
.slide-foot{
    min-width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: stretch;

}
.col-slide-foot{
    padding:5px 50px;
    width:100%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
}
.nav-button-foot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
  }

  .prev-button-foot { left: 10px; }
  .next-button-foot { right: 10px; }


.titre-slide-foot{
    font-size:18px;
    font-weight: bold;
}
.contain-participants{
    display:flex;
    width:100%;
    justify-content:space-around;
}
.participant-slide-foot{
    padding-bottom:5px;
    text-align: center;
    font-size: 14px;
    padding:0 10px;
}
.btn-slide-foot{
    margin-top:5px;
    color:var(--blanc);
    background: var(--secondary-color);
    padding:8px 15px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.15);

}
.img-meilleur-hit-foot{
    width: 50px;
}



/*PERSONNALISATION BARRE DE SCROLL*/
/* Largeur de la scrollbar */
::-webkit-scrollbar {
    width: 10px; /* Ajustable */
    display: none;
}

/* Fond de la barre de scroll en transparent */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Curseur blanc */
::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 10px; /* Arrondi du curseur */
}

/* Flèches : fond blanc avec bord arrondi et icônes noires */
::-webkit-scrollbar-button {

    display: none;
}