#mainContainer1 {

    font-size: medium;
    max-width: 1200px;
    margin: auto;
    background-color: var(--fondblocsgris);

}

html {
    scroll-behavior: smooth;
}


/*** GENERIQUE SUR TOUTE LA FEUILLE ***/
* input {
    text-align: center;
    border-radius: 5px;
    background-color: white;
    color: black;
    border: none;
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.8);
    font-size: 15px;

}

* select {
    text-align: center;
    border-radius: 5px;
    background-color: white;

    color: black;
    border: none;
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.8);
    font-size: 15px;

}

input:disabled {
    opacity: 1;
    /* Supprime l'opacité réduite */
    cursor: not-allowed;
    /* Changement du curseur pour indiquer que le champ est désactivé */

}



/***** Styles pour les sliders -> CESU_QM*****/



/*** FIN - GENERIQUE SUR TOUTE LA FEUILLE ***/



#calculatrice1 {
    width: 100%
}


#introEtudiantQM {
    font-size: 1.5em;
}

h1 {

    text-align: center;
    font-size: 3em;
    margin: 0px;
}


#titreIntro {

    position: relative;
    height: 45vw;

    font-size: 1.5vw;
    color: var(--bruntexte);
    background-image: url(/images/cailloux.jpg);
    background-position: center;
    background-size: cover;


}

i {
    font-style: normal;
}

#titreIntro h1 {

    padding: 10px;

    margin-left: 40px;
    margin-right: 40px;
    font-size: 2em;
    font-family: arial, sans-serif;
    border-radius: 5px;
    line-height: 100%;
    text-align: center;

    background-color: rgb(255, 255, 255, 0.5);



}



#h2Introbis {

    background-color: rgba(255, 255, 255, 0.5);
    padding: 0vw;
    margin: 40px;
    margin-top: 10vw;
    color: black;
    font-size: 1.8vw;
    text-align: justify;
    box-shadow: 0 0 80px 80px rgba(255, 255, 255, 0.5);
    width: 60vw;


}

#introTopSC {
    display: none;
}


#logoIntro {
    position: absolute;
    bottom: 20px;
    right: 5%;
    width: 10%;
    filter: invert(100%);

}




#bloc1 {

    max-width: 1200px;
    padding: 30px;
    margin-top: 50px;
    margin: auto;
}



#introTexte h2 {
    text-align: justify;
    line-height: 1.5;
    font-weight: 300;
    font-size: 20px;


}


#introLigne1,
#introLigne2 {
    width: 70%;
    margin: auto;
    display: grid;
    grid-template-columns: 20% 80%;
    align-content: center;
    color: var(--bruntexte);
    font-size: 2.2vw;


}


#intro1 {
    border: none;
}

#checkList1,
#checkList2 {
    height: 30px;
    width: auto;
    align-self: center;
    justify-self: end;
    padding-right: 20px;
}



/* 3 blocs intro avec arrière plan */
#intro {
    display: grid;
    grid-template-columns: 30% 30% 30%;
    text-align: center;
    gap: 5%;


}

#intro1,
#intro2,
#intro3 {
    padding: 10px;
    border: 2px solid var(--bruntexte);
    border-radius: 0px 30px 0px 30px;
    background-color: var(--fondblocsgris);
    font-size: 18px;


}

.spanIntro {
    font-weight: bold;
    color: var(--bruntexte);


}

/* FIN 3 blocs intro avec arrière plan */
/* 3 blocs intro sans arrière plan ni cadre */
#introbis {
    display: grid;
    grid-template-columns: 33% 34% 33%;
    text-align: center;
    gap: 0%;


}

#intro1bis,
#intro2bis,
#intro3bis {
    padding-left: 30px;
    padding-right: 30px;
    font-size: 18px;
}

#intro1bis,
#intro2bis {
    border-right: 5px solid var(--bruntexte);
}

.spanIntrobis {
    font-weight: bold;
    color: var(--bruntexte);
    line-height: 2;
}



/*COMMENT POSSIBLE BUTTON*/

#commentPossibleDiv {
    display: flex;

    font-size: 2em;
    color: var(--bruntexte);

}


#boulier {

    width: 40vw;

    margin-right: 20px;
}

#commentPossibleTitre {
    font-weight: bolder;
    margin-top: 0px;
    margin-bottom: 5px;
}


#CMPexpldiv {
    height: 80%;
    align-content: center;
}

#commentPossibleExpl {
    /* pour ne pas afficher san hover*/

    font-size: 18px;
    text-align: justify;
    width: 90%;
    padding: 10px;
    border-radius: 0px 0px 0px 0px;
    color: var(--texte);
    margin-top: 0px;
    margin-bottom: 0px;


}

#CMPexpldivSscreens {
    display: none;
}



/**** EXEMPLES****/

#exempleBloc {

    background-color: var(--fondgris);
    position: relative;

}

#exTitre {
    color: var(--bruntexte);
    position: relative;
    margin: auto;


}


#exempleSousTitre {
    display: none;
    color: var(--texte);

}

#exempleTitre {
    text-align: center;
    font-size: 3vw;
    font-weight: bolder;
    margin-bottom: 30px;
}

.exemples {

    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;


}

#exemple1,
#exemple2,
#exemple3 {


    background-color: var(--fondblocsgris);
    padding: 20px;
    border-radius: 0px 0px 0px 0px;
    font-size: 16px;
    margin-top: 20px;


}


#imageExemple1,
#imageExemple2,
#imageExemple3 {
    border-radius: 0px;
    width: 100%;
    margin-top: 20px;
}



.autourTetes {
    color: transparent;
    height: 0px;

}

.noteBaspageExemples {
    font-size: smaller;
    font-style: italic;
}

.column {
    flex-basis: 30%;
    margin: 10px;
    text-align: center;

    flex-direction: column;

    /* Ajout */
    align-items: center;
    /* Ajout */

}

.column img {


    margin-bottom: 10px;
    /* Ajout */

}

.column p {
    text-align: justify;
    /* Ajout */
    margin: 0 0 0px;
    /* Ajout */

    font-size: small;



}

.column p .greenFormatting {
    color: var(--bruntexte);
    font-size: larger;

}


/* listes déroulantes */


.buttonsExTrav {
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: var(--fondblocsgris);




}

.dropdButton {

    box-sizing: border-box;
    height: auto;
    width: 15em;
    border-radius: 10px;
    background-color: var(--fondgris);
    color: var(--texte);
    font-size: 1.5vw;
    cursor: pointer;
    border-left: 5px;
    border: 2px solid var(--texte);
    line-height: 200%;




}

.listeExemples {
    box-sizing: border-box;
    position: absolute;
    display: none;
    font-size: 1.5vw;
    background-color: var(--fondgris);
    margin-top: 0px;
    padding-left: 0px;
    padding-bottom: 10px;
    width: 15em;
    color: var(--bruntexteDark);
    border-radius: 0px 0px 10px 10px;
    border: 2px solid var(--texte);
    border-top: 0px solid transparent;
    text-align: center;
    list-style-type: none;
    font-style: italic;


}

.liSmall {
    font-size: 0.6em;
}

.dropdButton:hover {
    border-radius: 10px 10px 0px 0px;
    border-bottom: 0px solid transparent;
}

.dropdButton:hover+.listeExemples {
    display: block;
}


#fleche {
    width: 100%;
    color: var(--bruntexte);
    font-size: 10em;
    text-align: center;
}

#fleche p {
    margin: 20px;
}

/* simulation*/
#questionAncre1 {
    height: 0px;
}

#blocSimuation {
    background-color: var(--fondgris);

}

.sTitreSim {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.1);
    text-align: center;
    font-style: italic;
}

#titreSimulSimple {
    text-align: center;
    font-size: 2vw;
    font-weight: 900;
    color: var(--bruntexte);

}

#titreSimulSimple p {
    padding: 5px;
    margin-bottom: 30px;
}

/* questions champs #nr enfants et 1ere année CESU*/


#questions {

    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 20px 20px 20px;
    border: 2px solid var(--bruntexte);
    background-color: var(--fondblocsgris);
    margin: auto;
    width: 60%;
    margin-top: 5px;
    border-radius: 0px 0px 0px 0px;
    margin-bottom: 30px;

}


#zoneCalcul {

    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 20px 20px 20px;
    border: 2px solid var(--bruntexte);
    background-color: var(--fondblocsgris);
    margin: auto;
    width: 60%;
    margin-top: 5px;
    margin-bottom: 50px;
    border-radius: 0px 0px 0px 0px;
}

.row {
    display: grid;

}

#nbreEnfantsRattAvant,
#premAneeCesu {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(0, 172, 174);
    border-radius: 50%;
    font-size: 12px;
    text-align: center;
    background-color: rgb(253, 233, 236);
}

#buttonsnbreEnfantsRattAvant {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;

}

#buttonsPremAneeCesu {

    display: grid;
    grid-template-columns: 50% 50%;

}

.col-65 {
    margin-top: 6px;
    text-align: center;
    height: fit-content;



}


#buttonsnbreEnfantsRattAvant button,
#buttonsPremAneeCesu button {

    width: 50%;
    margin: auto;
    color: black;
    border-radius: 5px;
    border: 1px solid black;
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.8);
    height: 30px;
    margin-bottom: 30px;
    margin-top: 10px;
    cursor: pointer;
    background-color: var(--fondgris);

}

#buttonsnbreEnfantsRattAvant button:hover,
#buttonsPremAneeCesu button:hover {
    background-color: lightblue;

}





/* Clear floats after the columns */
.row::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */

/* css pour icones ?*/








/* entrée du montant à tester + button*/
.testSimple label {
    font-size: 22px;
    text-align: center;
}

.testSimple {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;


}

#montantTest {
    margin-left: auto;
    margin-right: auto;
    padding: 5px 20px;
    font-size: 30px;
    width: 100px;
    height: 30px;
    text-align: center;
    background-color: var(--bruntexte);
    border-radius: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    color: var(--fondgris);

}


/* button " calculer"*/

#buttonSim {
    border: 1px solid black;
    color: white;
    margin-top: 40px;
    cursor: pointer;
    background: var(--bruntexte);
    padding: 12px 20px;
    border-radius: 5px;

}

#buttonSim:hover {

    background: var(--bruntexteDark);
    font-weight: bolder;

}





/* champ résultats*/
.resultSim {
    /*display defini en JS - none vs flex*/
    flex-direction: row;
    justify-content: space-around;
    align-content: center;

}

.blockResult {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;



}

.resultSim input {
    max-width: 150px;
    width: 90%;
    height: 100px;
    font-size: 30px;
    text-align: center;
    font-weight: 900;

    text-align: center;
    margin-bottom: 10px;
    background-color: var(--fondgris);
    border: 2px solid var(--resultpositif);





}

.resultSim label {
    padding-right: 0;
    font-weight: 700;

    margin: auto;

    text-align: center;
}

#montantTestRange {
    width: 80%;
}

#commentOptimums {
    font-style: italic;
    font-size: 12px;
}

/* paragraphes commentaires résultats*/

.commentResult {
    font-style: italic;
    text-align: justify;
    font-size: medium;

}

#commentResultTitre {
    text-decoration: underline;
    text-align: center;
}

/* section pour poursuivre page suivante*/

#imgContainerIdx {
    background-image: url(/images/murDeVerre_basse.jpg);
    background-size: 100% 100%;
    display: none;
}

#mainContainer2 {
    letter-spacing: 0.1em;
    font-size: 18px;
    max-width: 1200px;
    width: 80%;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: black;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 30px;

}

#commentFinPage {
    padding: 10px;

}

.simulNextPage {
    text-align: justify;
    font-size: 1em;



}





.buttonSimDet {

    text-align: center;
    border-style: solid;
    border: 5px solid white;
    max-width: 400px;
    border-radius: 20px;
    text-decoration-line: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--bruntexte);
    padding: 10px;
    font-size: 1.5vw;
    cursor: pointer;
    color: var(--fondgris);

}

.buttonSimDet a {

    text-decoration-line: none;


}

.buttonSimDet:hover {
    background-color: var(--bruntexteDark);

}

#commentResultSimulateur a {
    color: var(--bruntexte);
    font-style: normal;
    font-weight: bold;
}

#troisMinutes {
    font-style: italic;
    text-align: center;

}

#calculatriceDiv {
    position: sticky;
    bottom: 0px;
}

#calculatrice {

    display: none;
    margin: auto;
    box-sizing: border-box;
    width: 10%;
    height: 10%;
    max-height: 100px;
    max-width: 82px;
    border: 7px solid var(--bruntexte);
    border-radius: 20px;
    padding: 5px;
    background-color: white;
    bottom: 30px;
    z-index: 50000;
    text-decoration: none;
}

#calculatrice:hover {
    border-color: var(--bruntexte);

}

#textCalcuatrice {
    display: none;
    margin: auto;
    font-size: 2vw;
    text-align: center;
    border: 2px solid var(--bruntexte);
    background-color: white;
    border-radius: 10px;
    width: fit-content;
    color: var(--bruntexte);
    left: 0%;
    z-index: 50001;
    position: relative;

}

#calculatrice:hover+#textCalcuatrice {
    display: block;
    margin: auto;
    font-size: 2vw;
    text-align: center;
    border: 2px solid var(--bruntexte);
    background-color: white;
    border-radius: 10px;
    width: fit-content;
    color: var(--bruntexte);
    left: 0%;
    z-index: 50001;


}


#calculatriceDiv {
    position: sticky;
}

#calculatriceDiv a {
    text-decoration: none;
}





@media screen and (max-width: 768px) {

    body {
        min-width: 100%;
        font-size: 3vw;
        box-sizing: border-box;
    }

    h1 {
        font-size: 1.7em;
    }


    /*  BODY ***  */


    #titreIntro {
        background-image: url(/images/cailloux.jpg);
        height: 70vw;
        display: flex;
        flex-direction: column;
        height: 170vw;
        background-position: center;
    }

    #titreIntroFilter {
        height: 170vW;
        background-color: rgb(255, 255, 255, 0.25);
    }

    #titreIntro h1 {
        box-sizing: border-box;
        line-height: 100%;
        letter-spacing: 0em;
        color: var(--bruntexte);
        text-shadow: none;
        margin: 3vw;
        font-size: 4em;

        padding-top: 10px;
        width: 90vw;

    }

    #h2Introbis {
        box-sizing: border-box;
        margin: 3vw;
        width: 90vw;
        margin-top: 12vw;
        font-size: 3em;
        background-color: rgba(255, 255, 255, 0.65);
        box-shadow: 0 0 60px 60px rgba(255, 255, 255, 0.65);

    }

    #introTopSC {
        display: block;
    }

    #introTop {
        display: none;
    }

    #logoIntro {
        right: 5%;
        width: 20%;
    }

    #introLigne1,
    #introLigne2 {
        grid-template-columns: 20% 80%;
        font-size: 2.5em;
        width: 100%;
        color: black;

    }

    #introLigne1 {
        margin-top: 25px;
    }

    #bloc1 {
        padding: 10px;
    }

    #intro {
        width: 80%;
        display: flex;
        flex-wrap: wrap;
        margin: auto;
    }

    #intro1,
    #intro2 {
        margin-bottom: 10px;
    }

    #introTexte h2 {

        line-height: 1.5;
        font-size: 18px;
        font-weight: 300;

    }

    #CMPexpldiv {
        display: none;
    }

    #CMPexpldivSscreens {
        display: block;
    }



    #commentPossibleDiv {
        flex-direction: column-reverse;
    }

    #boulierImage {
        align-content: center;
        text-align: center;
    }

    #boulier {
        width: 95%;
        margin-right: 0px;
        padding: 10px;



    }

    #texteCommentPossible {
        align-self: center;
    }

    #commentPossibleTitre {
        font-size: 5vw;
    }

    #commentPossibleExplSscreens {
        font-size: 1.1em;
        text-align: justify;
        padding: 10px;
    }




    /* exemples*/
    #exempleTitre {
        font-size: 5vw;
    }

    #exempleSousTitre {
        display: block;
        text-align: center;
    }

    #exemple1,
    #exemple2,
    #exemple3 {
        width: 75vw;
    }

    .exemple {
        display: none;
    }

    .column {
        /*annule les CSS*/
        display: grid;
        grid-row: auto;
        margin: 0px;
    }

    #iconeExemple1,
    #iconeExemple3 {
        grid-row: 1;
        margin-top: 40px;
        margin-bottom: 10px;
    }

    #iconeExemple2 {
        margin-top: 40px;
        margin-bottom: 10px;
    }

    .column img {
        /*annule les CSS*/
        min-width: 0px;


    }

    #imageExemple1,
    #imageExemple2,
    #imageExemple3 {

        height: 150px;
        width: 150px;
        border-radius: 50%;
        cursor: pointer;
    }

    /*formatting texte autour têtes*/
    .autourTetes {
        color: black;
        height: auto;
        font-size: 20px;
    }

    #nomexemple1,
    #nomexemple2,
    #nomexemple3 {
        font-size: large;
        text-align: center;
        margin-bottom: 5px;
        font-weight: bolder;
        color: var(--bruntexte);
        text-transform: uppercase;


    }

    #chiffresExemple1,
    #chiffresExemple2,
    #chiffresExemple3 {
        font-size: large;
        text-align: center;
        margin-bottom: 0px;
        font-weight: bold;
        color: var(--bruntexte);

    }

    /* click en dessus des têtes */
    #imageExemple1:hover,
    #imageExemple2:hover,
    #imageExemple3:hover {
        box-sizing: border-box;
        border: 5px solid var(--bruntexte);
    }



    /*formatting dropdown buttons types de taches et types de dépenses*/
    .dropdButton {
        font-size: 3vw;
        font-weight: bold;
    }

    .listeExemples {
        font-size: 3vw;

    }


    #titreSimulSimple p {
        font-size: 5vw;
    }

    /* test*/

    #questions,
    #zoneCalcul {
        width: 90%;
        padding-left: 2px;
        padding-right: 2px;

    }

    .testSimple label {
        font-size: 1.5em;
        font-weight: bold;


    }

    #dropdownContentQM1,
    #dropdownContentQM2,
    #dropdownContentQM3 {
        font-size: 1em;
        max-width: auto;
        left: initial;

    }

    .questions input,
    select {
        align-items: center;
    }

    #resultSim input {
        font-size: 2em;
        width: 70%;
    }

    #resultSim label {

        width: 90%;
    }


    .commentResult {
        font-size: 1.2em;
        text-align: justify;
        padding-left: 5%;
        padding-right: 5%;
    }

    .simulNextPage {
        font-size: 16px;
    }

    #mainContainer2 {
        letter-spacing: normal;

        width: 90%;
        margin: auto;

        padding: 10px;

    }

    .buttonSimDet {
        font-size: 16px;
    }

    /* annulé car trop de place sur l'écran
    #clickCalculatrice {
        display: block;
    }

    #calculatrice {
        display: block;
        border: 5px solid var(--bruntexte);
        padding: 2px;
        border-radius: 10px;
        bottom: 0px;
    }

    #textCalcuatrice {
        display: block;
    }
     */
}