a{text-decoration: none;}
a:link{font-family:"verdana"; font-size:14pt; color: #3476c6;}
a:visited{color: #4499FF;}
a:hover{color:#b70000; text-decoration:none;}

* {box-sizing: border-box;  margin: 0; padding: 0;}

body{ 
    width: 100%;
    font-size: 16px;
    font-family: verdana;
}

nav{
    height: 80px; 
    width: 100%;
    display: flex; 
    flex-direction: column;
    justify-content: center; /* 'center' vertical pour le texte 'retour' */
    padding-left: 30px;
    background-color: rgb(151, 185, 247);
}

main{
    display: flex; 
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding-top: 20px;
    background-color: cornflowerblue;
    line-height: 25px;
    min-height: calc(100vh - 80px);
}


h1{
    font-size: 1.5rem; 
    margin-top: 50px;
    letter-spacing: 3px;
    color: white;
}
h2{font-size: 1.3rem; margin: 20px 0;}
h3{font-size: 1rem;  margin: 20px 0;}

section{
    width: 80%; 
    max-width: 800px;
    text-align: justify;
    margin-top: 40px;
}

p{padding: 10px 0;}
p a.lien{color: rgb(158, 212, 227);}

ul, ul.chap3_1{padding-left: 20px;}
ul.chap3_1{margin-top: 20px;}

.yellow{color: yellow;}
.yellow2{color: rgb(207, 207, 56);}
.prime, .red{color: rgb(150, 16, 16);}

.pre{color: rgba(63, 59, 59, 0.7); text-align: center; margin-bottom: -5px;}
.pre:not(.f60) span{color: rgb(155, 66, 66);}
.preCalcul{color: rgba(63, 59, 59, 0.7); text-align: left;}
pre.spanRed span{color: rgb(150, 16, 16);}


#end{margin-bottom: 50px;} /* dernier p de la derniere section*/
.mb20{margin-bottom: 20px;} /* margin bottom 20px */
.end{margin-bottom: 40px;}  /* dernier p d'une section */

div{margin: 20px 0;}

/* ---- tables ------- */
#chap2Container_2halfTable{
    max-width: 95%;
    display: flex;
    flex-wrap: wrap;

    table{border-collapse: collapse;}

    th:nth-child(3){text-align: right;}
    th:nth-child(4){color: yellow;}
    /* th:nth-child(4){width: 100px; color: rgb(228, 228, 19);} */

    td:nth-child(1){width: 50px;}
    td:nth-child(2){width: 100px;}
    td:nth-child(3){width: 120px; text-align: right;}
    td:nth-child(4){width: 100px; text-align: center; color: rgb(175, 11, 11);}

    table td:nth-child(4).dash{color: rgb(104, 104, 104);}

    table tr.tryellow td:nth-child(2){border-top: 1px solid yellow;}
    table tr.tryellow td:nth-child(3){border-top: 1px solid yellow;}  
}


#containerGlobal_table_chap3_1, 
#containerGlobal_table_chap3_1final
{
    max-width: 95%;

    table{border-collapse: collapse;}

    th:nth-child(8){width: 80px; color: rgb(228, 228, 19);}

    td:not(td:nth-child(8)){width: 60px;}
    td:nth-child(8){
        width: 80px; 
        text-align: center; 
        /* color: rgb(175, 11, 11); // utile que dans le prochain <table>*/
        color: rgb(104, 104, 104);
    }

    table td:nth-child(8).dash{color: rgb(104, 104, 104);}

    table tr.tryellow td:nth-child(2){border-top: 1px solid yellow;}
    table tr.tryellow td:nth-child(3){border-top: 1px solid yellow;}
    table tr.tryellow td:nth-child(4){border-top: 1px solid yellow;}
    table tr.tryellow td:nth-child(5){border-top: 1px solid yellow;}
    table tr.tryellow td:nth-child(6){border-top: 1px solid yellow;}
    table tr.tryellow td:nth-child(7){border-top: 1px solid yellow;}
}

#containerGlobal_table_chap3_1final{
    td:nth-child(8){
        color: rgb(175, 11, 11);}
        .search{border: 1px solid green;}
}

#containerGlobal_table_chap3_2{

    max-width: 95%;

    table{border-collapse: collapse;}

    th:nth-child(11){width: 80px; color: rgb(228, 228, 19);}

    td:not(td:nth-child(11)){width: 60px;}
    td:nth-child(11){
        width: 80px; 
        text-align: center;
        color: rgb(104, 104, 104);
    }

    table td:nth-child(11).dash{color: rgb(104, 104, 104);}

    table tr.tryellow td:not(table tr.tryellow td:nth-child(1), table tr.tryellow td:nth-child(11)){
        border-top: 1px solid yellow;
    }

    td:nth-child(11){
        color: rgb(175, 11, 11);}
        .search{border: 1px solid green;}
}


/* ------ */ 

input{
    margin-left: 10px;
    padding: 5px;
    font-size: 1.1rem;
    border-radius: 10px;
    background-color: aliceblue;
}

button{
    font-size: 1.1rem;
    padding: 5px;
    border-radius: 5px;
    background-color: yellow;
}
button:hover{background-color: rgb(23, 188, 23);}


/* ------- calcul racine carree ------  */
#ecranRacine{ /* container principal - racine*/
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
}

#ecran1, #ecran2{padding: 50px 10px 10px 10px;}
#ecran1{color: rgb(82, 80, 80);}
.grey{color: rgb(82, 80, 80);}
.italic{font-style: italic;}

#tableRacine{ /* <table id="tableRacine"> dans ecran 2 */
    border-collapse: collapse; 
    text-align: center;
    
    &   td:not(td:last-child):not(td:nth-child(3)){
            width: 90px; 
            text-align: right;
            padding-right: 20px;
        }

        tbody tr:nth-child(1) td:nth-child(3){padding-left: 30px; color: yellow;}
        tbody tr:nth-child(1) td:nth-child(4){padding-left: 30px; color: yellow;}

        td:nth-child(3){width: 110px; padding: 0; text-align: left; padding-left: 5px;}

        td:last-child{width: 220px; text-align: left; padding-left: 20px;}
        
        td.borderLeft{
            border-left: 2px solid black;
        }
        
        td.borderBottom{
            border-bottom: 2px solid black;
        } 
}

#afterTableRacine{
    margin-top: 20px;
}



/* ------ tables de multiplication  --------- */
#ecranTables{
    display: flex;
    justify-content: center;
}




/* --------- media query  ------------ */

@media screen AND (width < 755px){

    #ecran2{
        margin-top: -90px;
    }
}

@media screen AND (width < 450px) {
    pre.spanRed{margin-left: -80px;}
}