body {
    background-color: rgba(255, 255, 255);
    padding-top: 50px;
    counter-reset: numexo;
    /*numero d'exercices*/
    counter-reset: numdef;
    /*numero de definition*/
    counter-reset: numprop;
    /*numero de propriété*/
    counter-reset: numth;
    /*numero de theoreme*/
    counter-reset: nump;
    /*numero de partie*/
    counter-reset: numsp;
    /*numero de sous partie*/
    counter-reset: numex;
    /*numero d'exemples'*/
    counter-reset: numqcm;
    /*numero des QCM*/
    counter-reset: numco;
    /*numero d'exemples'*/
    padding-bottom: 400px
}

h2 {
    counter-increment: nump;
    counter-reset: numsp;
}

h2:before {
    content: counter(nump) ". ";
}

h3 {
    counter-increment: numsp;
}

h3:before {
    content: counter(nump)"." counter(numsp)". ";
}

table {
    /*mise en forme des tableaux*/
    width: auto;
    /* S'adapte au contenu */
    border: 2px solid black;
    border-collapse: collapse;
    text-align: center;
}

th {
    /*Mise en forme des cellules du tableau*/
    border: 1px solid black;
    width: 3%;
    padding: 5px;
    text-align: center;
}

.requi {
    /*prérequis*/
    border-left: 3px solid rgb(190, 13, 111);
    background-color: rgb(199, 179, 190);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.requi:before {
    content: "Prérequis ";
    color: rgb(190, 13, 111);
    font-weight: bold;
}

.hist {
    /*pour l'histoire des sciences*/
    background-image: url(parch.jpg);
    padding: 10px 50px 20px 10px;
    border: 2px solid rgb(230, 188, 52);
    margin-bottom: 1em;
}

.hist:before {
    content: "Un peu d'histoire... ";
    display: block;
    width: 400px;
    height: 40px;
    text-decoration: underline;
}

.cul {
    /*pour la culture des sciences*/
    background-image: url(cul.jpg);
    padding: 10px 50px 20px 10px;
    background-size: 40%;
    margin-bottom: 1em;
}

.cul:before {
    content: "Soif de culture";
    font: italic small-caps bold 16px/2 cursive;
}

.sean {
    /*pour le cahier de texte*/
    counter-increment: numdef;
    border-left: 3px solid rgb(168, 180, 114);
    background-color: rgb(240, 252, 231);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.sean:before {
    content: "Séance du ";
    text-decoration: underline;
}

.todo {
    /*pour donner les devoirs à faire*/
    counter-increment: numdef;
    border-left: 3px solid rgb(182, 64, 113);
    background-color: rgb(248, 222, 236);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.todo:before {
    content: "à faire pour le ";
    color: rgb(182, 64, 113);
    font-weight: bold;
}

.def {
    /*définitions*/
    counter-increment: numdef;
    border-left: 3px solid blue;
    background-color: rgb(231, 233, 252);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.def:before {
    content: "Définition " counter(numdef);
    color: blue;
    display: block;
    width: 400px;
    height: 40px;
    font-weight: bold;
}

.prop {
    /*propriété*/
    counter-increment: numprop;
    border-left: 3px solid green;
    background-color: rgb(245, 255, 245);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.prop:before {
    content: "Propriété " counter(numprop);
    color: green;
    display: block;
    width: 400px;
    height: 40px;
    font-weight: bold;
}

.th {
    /*théorème*/
    counter-increment: numth;
    border-left: 3px solid red;
    background-color: rgb(255, 239, 239);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.th:before {
    content: "Théorème " counter(numth);
    color: red;
    display: block;
    width: 400px;
    height: 40px;
    font-weight: bold;
}

.cor {
    /*corollaire*/
    counter-increment: numco;
    border-left: 3px solid red;
    background-color: rgb(255, 239, 239);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.cor:before {
    content: "Corollaire " counter(numco);
    color: red;
    font-weight: bold;
}

.demo {
    /*démonstration*/
    border-left: 3px solid rgb(124, 72, 120);
    border-bottom: 3px solid rgb(124, 72, 120);
    background-color: rgb(218, 208, 216);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.demo:before {
    content: "Démonstration  ";
    font-weight: bold;
    display: block;
    width: 400px;
    height: 40px;
    color: rgb(124, 72, 120);
}

.exo {
    /*exercices*/
    counter-increment: numexo;
    border-left: 4px solid black;
    border-bottom: 4px solid black;
    background-color: rgb(252, 252, 252);
    margin-bottom: 1em;
    font-size: 16px;
    padding: 5px;
}

.exo:before {
    content: "Exercice " counter(numexo) ".";
    display: block;
    width: 400px;
    height: 40px;
    text-decoration: underline;
}

.qcm {
    /*exercices*/
    counter-increment: numqcm;
    border-left: 4px solid black;
    border-bottom: 4px solid black;
    background-color: rgb(240, 220, 252);
    margin-bottom: 1em;
    font-size: 16px;
    padding: 5px;
}

.qcm:before {
    content: "Q.C.M. " counter(numqcm) " :";
    display: block;
    width: 400px;
    height: 40px;
    text-decoration: underline;
}

.expe {}

.expe:after {
    content: url(p3.jpg)
}

.fonda {}

.fonda:after {
    content: url(p1.jpg)
}

.confi {}

.confi:after {
    content: url(p2.jpg)
}

.exp {}

.exp:before {
    background: url(p3.jpg);
    background-size: 75px 28px;
    background-repeat: no-repeat;
    background-position: top 0px left 100px;
}

.conf {}

.conf:before {
    background: url(p2.jpg);
    background-size: 75px 28px;
    background-repeat: no-repeat;
    background-position: top 0px left 100px;
}

.fond {}

.fond:before {
    background: url(p1.jpg);
    background-size: 75px 28px;
    background-repeat: no-repeat;
    background-position: top 0px left 100px;
}

.renf {}

.renf:before {
    background: url(p4.jpg);
    background-size: 75px 28px;
    background-repeat: no-repeat;
    background-position: top 0px left 100px;
}

.exow {
    /*exercices de warm up*/
    counter-increment: numexo;
    border-left: 4px solid black;
    border-bottom: 4px solid black;
    background-color: rgb(252, 252, 252);
    margin-bottom: 1em;
    font-size: 25px;
    padding: 5px;
}

.exow:before {
    content: "Exercice " counter(numexo) ".";
    display: block;
    width: 400px;
    height: 40px;
    text-decoration: underline;
}

.sav {
    /*balise Bilan indiquer ce qu'il y a à savoir*/
    border-right: 4px solid black;
    border-bottom: 4px solid black;
    font-style: italic;
    background-color: rgb(240, 160, 240);
}

.sav:before {
    content: "Savoir ";
    text-decoration: underline;
}

.sf {
    /*balise Bilan indiquer ce qu'il y a à savoir faire*/
    border-right: 4px solid black;
    border-bottom: 4px solid black;
    font-style: italic;
    background-color: rgb(238, 212, 248);
}

.sf:before {
    content: "Savoir Faire  ";
    text-decoration: underline;
}

.algo {
    /*algorithmes*/
    background-color: rgb(243, 204, 217);
    border-left: 2px solid red;
    margin-bottom: 1em;
}

.com {
    /*à utiliser pour mettre un commentaire ou une remarque*/
    border: 2px outset;
    background-color: rgb(209, 206, 165);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.com:before {
    content: "Remarque(s) : ";
    display: block;
    width: 400px;
    height: 40px;
    text-decoration: underline;
}

.indic {
    /*à utiliser pour mettre une indication*/
    border: 2px outset;
    background-color: rgb(206, 205, 205);
    font-size: 24px
}

.val {
    /*à utiliser pour mettre en valeur un élément du texte*/
    font-weight: bolder;
    font-family: "Gill Sans", sans-serif;
    background: content-box radial-gradient(rgb(231, 230, 125), rgb(240, 101, 110));
}

.enc {
    /*à utiliser plutôt avec span pour encadrer et étiqueter exptert au autre*/
    border: 2px solid rgb(128, 26, 0);
    padding-top: 15px;
    padding-bottom: 15px;
    margin: 2px;
}

.ex {
    /*exemples*/
    counter-increment: numex;
    border-left: 3px solid rgb(148, 237, 240);
    background-color: rgb(243, 253, 251);
    padding: 5px;
    margin-bottom: 1em;
    font-size: 16px;
}

.ex:before {
    content: "Exemple " counter(numex) ". ";
    display: block;
    width: 400px;
    height: 40px;
}

.navbar {
    max-height: 200px;
}

.navbar .container .navbar-brand {
    font-size: 17px;
}


/* pour gérer des tableaux : https://www.zonecss.fr/faq/les-tableaux-et-les-css.html */

.tableau {
    table-layout: fixed;
    /*seule la première ligne du tableau est prise en compte pour calculer la taille de chaque colonne*/
    width: 100%;
    border-collapse: collapse;
    /* Fusion des bordures des cellules du tableau HTML entre elles */
    text-align: center;
    /* Les cellules du tableau présenteront un alignement horizontal centré (sinon right, left ou justify*/
    border: medium solid rgb(0, 0, 0);
}

.tableau th {
    border: thin solid rgb(0, 0, 0);
    /*padding: 5px;  Toutes les balises TH du tableau auront une marge intérieure*/
    background-color: rgb(177, 203, 204);
    vertical-align: middle;
    /* Toutes les balises TH du tableau auront un alignement vertical centré , sinon changer en top ou bottom*/
    text-align: center;
    /* Les cellules du tableau présenteront un alignement horizontal centré (sinon right, left ou justify*/
    font-weight: bold;
}

.tableau td {
    border: thin solid rgb(0, 0, 0);
}

#retour_haut {
    position: fixed;
    width: 35px;
    height: 35px;
    bottom: 60px;
    right: 40px;
}