#top{
    background: linear-gradient(to right, #0084FF, #FF0000);
    font-family: "Jaro";
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}
p{
    line-height: 1.4;
    padding-left: clamp(0px, 5%, 50px);
    padding-right: clamp(0px, 5%, 50px);
}

/* partie du bouton back to top*/
.backToTop{
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms, transform 400ms;
    height: 100px;
    width: 100px;
    border: 2px solid black;
    border-radius: 50%;
    background-image: url('images/trash_pp_rouge.jpg');
    background-size: cover;
    position: fixed;
    bottom: 8%;
    right: 5%;
    text-decoration: none;
    color: #ffffff;
    z-index: 9999;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.backToTop--show{
    display: block;
    opacity: 1;
    pointer-events: auto;
}
.backToTop--show:hover{
    transform: scale(1.1);
}
/* partie du bouton back to top*/

.intro-accueil{
    display: flex;
    justify-content: center;
    font-size: 3em;
    color: white;
    text-decoration: underline overline;
    margin: 10px;
}

.appel-click{
    display: inline-block; /* je me suis arreté ici*/
    background-color: black;
    border-radius: 15px;
    color: #ffffff;
    justify-content: center;
    align-self: center;
    text-align: center;
    border: solid 2px;
    position: relative;
    top: 5em;
    font-size: 32px;
    padding: 0px 10px;
    text-decoration: underline;
    transition: opacity 1s ease;
}
.choix-pick{
    width: 100%;
    text-decoration: underline;
    font-size: 2em;
    display: inline-block;
    color: #ffffff;
    text-align: center;
}

.container-pp-dessin{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.dessin-profil{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.dessin-profil:hover{
    box-shadow: 0 0 25px 8px rgba(255, 255, 255, 0.6); /* à reprendre à partir d'ici*/
}

/*JavaScript du pile/face et les infos bulles*/
.pile-face{
    transform: rotateY(720deg);
}

.info-leo{
    text-align: center;
    position: absolute;
    background-color: #ffffff;
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 24px;

    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 10;
}
.info-leo.show{
    opacity: 1;
}
.fact-1 { 
    top: 20%; left: 50%; transform: translate(-50%, -50%) scale(0); 
}
.fact-1.show { 
    transform: translate(-50%, -50%) scale(1); 
}

.fact-2 { 
    top: 30%; right: 20%; transform: translate(50%, -50%) scale(0); 
}
.fact-2.show { 
    transform: translate(50%, -50%) scale(1); 
}

.fact-3 { 
    top: 50%; right: 15%; transform: translate(50%, -50%) scale(0); 
}
.fact-3.show { 
    transform: translate(50%, -50%) scale(1); 
}

.fact-4 { 
    bottom: 30%; right: 20%; transform: translate(50%, 50%) scale(0); 
}
.fact-4.show { 
    transform: translate(50%, 50%) scale(1); 
}

.fact-5 { 
    bottom: 20%; left: 50%; transform: translate(-50%, 50%) scale(0); 
}
.fact-5.show { 
    transform: translate(-50%, 50%) scale(1); 
}

.fact-6 { 
    bottom: 30%; left: 20%; transform: translate(-50%, 50%) scale(0); 
}
.fact-6.show { 
    transform: translate(-50%, 50%) scale(1); 
}

.fact-7 { 
    top: 50%; left: 15%; transform: translate(-50%, -50%) scale(0); 
}
.fact-7.show { 
    transform: translate(-50%, -50%) scale(1); 
}

.fact-8 { 
    top: 30%; left: 20%; transform: translate(-50%, -50%) scale(0); 
}
.fact-8.show { 
    transform: translate(-50%, -50%) scale(1); 
}
/*JavaScript du pile/face et les infos bulles*/


.header-banniere{
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/leo_banniere_tech.png');
    height: 17em;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 25px;
}

.nav-accueil{
    display: flex;
    width: 90%;
    justify-content: space-between;
    gap: 20px;
}
.btn-procri, .btn-avis{
    font-size: 38px;
    color: rgb(255, 255, 255);
    background-color: black;
    padding: 35px 70px;
    margin: 35px;
    border-radius: 50px;
    border: 1px solid #ffffff;
    box-shadow: 2px 2px  4.8px rgb(188, 188, 188);
    text-decoration: none;
    transition: 400ms;
}
.btn-procri:hover, .btn-avis:hover {
    transform: scale(1.1);
    color: yellow; /* trouver une meilleure couleur*/
}



/* ici commence la partie pré-promo et pré-critique*/
.page-promo-critique{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.leos {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    width: 100%; 
    overflow: hidden;
    gap: 0; 
    margin: 0;
    padding: 0;
}

.leos img {
    width: 100%;    
    height: 100%;   
    display: block; 
}


.un {
    justify-self: start;
}

.deux {
    justify-self: end;
}

.leo-gauche,
.leo-droite{
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.leo-droite:hover{
    transform: scale(1.1);
    filter: sepia(100%) hue-rotate(300deg) saturate(300%);
}

.leo-gauche:hover{
    transform: scale(1.1);
    filter: sepia(100%) hue-rotate(100deg) saturate(250%);
}

.leos:hover img:not(:hover){
    filter: grayscale(100%)
}

/*ici commence le css de la page html promotive*/
.promo-bod{
    background: linear-gradient(210deg, #0084FF 50%, #004F99 50%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: white;
    font-family: "Jaro", sans-serif;
}

.angel-title{
    display: flex;
    justify-content: center;
    font-size: 6em;
    letter-spacing: 2px;
    -webkit-text-stroke: 2px black; /* pense à fair eun fall back avec txt shado*/
    text-shadow: 
    -2px -2px 0 black,
    2px -2px 0 black,
    -2px 2px 0 black,
    2px -2px 0 black;
}
.sa-promo{
    display: grid;
    align-content: end;
    justify-content: end;
    background-image: url('images/leo_sans_fond_gauche.png');
    background-repeat: no-repeat;
    background-size: auto 90%;
    background-position: left -1em bottom 0 ; /*reprendre ici*/
}
.sa-promo, .sa-critique{
    overflow: hidden; 
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
}
.chibi{
    position: absolute;
    z-index: -1;
    transform: rotate(-15deg);
    width: 30em;
    height: 40em;
    bottom: 8em;
    right: 50em;
}
.ange{
    position: absolute;
    width: auto;
    height: auto;
    top: 8%;
    left: 5%;
    z-index: -1;
}
.bulles-promo{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    width: 50em;
    height: 45em;
    font-size: 1.2em;
    color: black;
}

.bulles-promo > div{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: solid 1px black;
    border-radius: 20px;
    text-align: justify;
    background-color: white;
    box-shadow: inset 4px 4px 25px 1px rgb(0, 0, 0, 0.2);
}
.bulles-promo > div p{
    margin: 0;
}
.primo{
    grid-column: 1/2;
    grid-row: 1/2;
}
.secundo{
    grid-column: 2/3;
    grid-row: 1/2;
}
.tertio{
    grid-column: 1/2;
    grid-row: 2/3;
}
.quartus{
    grid-column: 2/3;
    grid-row: 2/3;
}
.quintus{
    grid-column: 1/3;
    grid-row: 3/4;
}

.btn-retour{
    background-color: black;
    cursor: pointer;
    text-decoration: none;
    position: absolute;
    top: 1%;
    left: 1em;
    padding: 25px 70px;
    border-radius: 25px;
    font-size: 3em;
    transition: 400ms;
    color: white;
}

.btn-fropro-tocri{
    background-color: black;
    cursor: pointer;
    text-decoration: none;
    position: absolute;
    bottom: 1%;
    left: 1%;
    padding: 25px 70px;
    border-radius: 25px;
    font-size: 3em;
    transition: 400ms;
    color: #ffffff;
}
.btn-fropro-tocri:hover, .btn-retour:hover{
    transform: scale(1.1);
    color: yellow;
}
/*fin de la partie promotive*/

/*Début de la partie critique*/
.critique-bod{
    background: linear-gradient(210deg, #ff0000 50%, #990000 50%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: white;
    font-family: "Jaro", sans-serif;
}

.devil-title{
    display: flex;
    justify-content: center;
    font-size: 6em;
    letter-spacing: 2px;
    -webkit-text-stroke: 2px black; /* pense à fair eun fall back avec txt shado*/
    text-shadow: 
    -2px -2px 0 black,
    2px -2px 0 black,
    -2px 2px 0 black,
    2px -2px 0 black;
}
.sa-critique{
    display: grid;
    align-content: end;
    justify-content: start;
    background-image: url('images/leo_clean_droite.png');
    background-repeat: no-repeat;
    background-size: auto 90%;
    background-position: right -1em bottom 0 ; /*reprendre ici*/
}
.carte{
    position: absolute;
    z-index: -1;
    transform: rotate(15deg);
    width: 30em;
    height: 40em;
    bottom: 0em;
    left: 50em;
}
.devil{
    position: absolute;
    width: auto;
    height: auto;
    top: 5%;
    right: 9.5%;
    z-index: 1;
}
.bulles-critique{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    width: 50em;
    height: 45em;
    font-size: 1.2em;
    color: black;
}

.bulles-critique > div{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: solid 1px black;
    border-radius: 20px;
    text-align: justify;
    background-color: white;
    box-shadow: inset 4px 4px 25px 1px rgb(0, 0, 0, 0.2);
}
.bulles-critique > div p{
    margin: 0;
}
.hun{
    grid-column: 1/2;
    grid-row: 1/2;
}
.duo{
    grid-column: 2/3;
    grid-row: 1/2;
}
.tria{
    grid-column: 1/2;
    grid-row: 2/3;
}
.tessera{
    grid-column: 2/3;
    grid-row: 2/3;
}
.pente{
    grid-column: 1/3;
    grid-row: 3/4;
}

.btn-back{
    background-color: black;
    cursor: pointer;
    text-decoration: none;
    position: absolute;
    top: 1%;
    right: 1em;
    padding: 25px 70px;
    border-radius: 25px;
    font-size: 3em;
    transition: 400ms;
    color: white;
}

.btn-frocri-topro{
    background-color: black;
    cursor: pointer;
    text-decoration: none;
    position: absolute;
    bottom: 1%;
    right: 1%;
    padding: 25px 70px;
    border-radius: 25px;
    font-size: 3em;
    transition: 400ms;
    color: #ffffff;
}
.btn-frocri-topro:hover, .btn-back:hover{
    transform: scale(1.1);
    color: yellow;
}

/*Ici commence le css de la page AVIS*/
.avis-bod{
    background: linear-gradient(
    150deg, #451093 0%, #451093 33.3%,
    #DE2827 33.3%, #DE2827 66.6%,
    #1DA1F2 66.6%, #1DA1F2 100%);
    background-attachment: fixed; /*IMPORTANT ALIASING*/
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: Jaro;
}
.second-title{
    font-size: 2.5em;
}
.second-title, .avis-title{
    -webkit-text-stroke: 2px black; /* pense à fair eun fall back avec txt shado*/
    text-shadow: 
    -2px -2px 0 black,
    2px -2px 0 black,
    -2px 2px 0 black,
    2px -2px 0 black;
}
.avis-title{
    font-size: 6em;
}
.main-avis{
    font-size: 2em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    max-width: 1000px;
    width: 90%;
    row-gap: 15vh;
    margin-top: 50px;
}
.main-avis p{
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
}
.groupe-texte-one{
    grid-column: 1;
    grid-row: 1;
    text-align: left;
}
.groupe-texte-two{
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    margin-top: 10vh;
}
.groupe-texte-three{
    grid-column: 1;
    grid-row: 3;
    text-align: left;
    margin-top: 10vh;
}

/*Fin de page AVIS*/

/*Début du footer*/
footer{
    display: flex; /*reprendre ici*/
    justify-content: center;
    font-size: 24px;
    padding: 50px;
    font-weight: 200;
    text-decoration: none;
}
footer *{
    color: white;
}

/*fin du footer*/


/*Partie des mediaqueries assisté par IA Gemini mode pro*/
@media screen and (max-width: 1024px){
    
    html, body{ 
        overflow-x: hidden; width: 100%; position: relative; 
    }

    .btn-procri, .btn-avis, .btn-back, .btn-retour, .btn-fropro-tocri, .btn-frocri-topro {
        padding: 15px 30px;
        font-size: 1.5rem;
        margin: 10px auto;
        width: 80%;
        display: block;
        position: relative;
        top: auto; 
        left: auto; 
        right: auto; 
        bottom: auto;
    }

    .nav-accueil{ 
        flex-direction: column; 
        width: 100%; 
        align-items: center; 
    }
    .header-banniere{ 
        height: 15em; 
    }


    .main-avis {
        display: flex;
        flex-direction: column;
        width: 95%;
    }
    .groupe-texte-one, .groupe-texte-two, .groupe-texte-three {
        width: 100%;
        margin: 20px 0;
        text-align: left;
    }
    .bulles-promo, .bulles-critique {
        width: 95%;
        height: auto;
        display: flex;
        flex-direction: column;
        font-size: 1rem;
    }
    .bulles-promo > div, .bulles-critique > div {
        width: 100%;
        margin-bottom: 15px;
    }
    .sa-promo, .sa-critique {
        background-size: contain;
        background-position: center bottom;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .avis-title, .angel-title, .devil-title {
        font-size: 3rem;
        text-align: center;
    }
    .chibi, .ange, .carte, .devil {
        opacity: 0.3;
        pointer-events: none;
        width: 200px;
        height: auto;
    }
}