/* ------------------ CONTENU PRINCIPAL ----------------------*/

main h1 {
    text-align: center;
    font-size: 220%;
    color: #069;
    text-shadow: 2px 2px 3px #036;
    counter-reset: h3;
}

main h2::before {
    counter-increment: h3;
    content: counter(h3, upper-roman) " - ";
}

main h2 {
    font-size: 150%;
    background-color: #069;
    color: #fff;
    padding:2px 2px 2px 8px;
    margin: 24px 0 0 -8px;
    border-radius: 6px;
    counter-reset: h4;
}

main h3::before {
    counter-increment: h4;
    content: counter(h3, upper-roman) "." counter(h4) " - ";
    font-style: normal;
}

main h3 {
    font-size: 150%;
    margin: 12px 0 0 0;
    color: #069;
    counter-reset: num_question;
}

main h4 {
    font-size: 110%;
    font-style: italic;
    color: #036;
    margin: 12px 0 0 0;
    counter-reset: num_question;
}

main p {
    margin: 10px 6px 0px 6px;
}

main .q {
    color:#036;
    font-weight: bold;
}

main ul {
    margin: 0;
}

main li {
    list-style: none;
}

main table {
    border-collapse: collapse;
    margin: 12px 0 20px 50px;
}

main td {
    text-align: center;
    border-right: solid 1px black;
    border-bottom: solid 1px black;
    padding: 0.2em
}

main th {
    text-align: center;
    border-right: solid 1px black;
    border-bottom: solid 1px black;
    background-color: #f0f0f0;
    padding: 0.2em
}

main table.t2 {
    border-collapse: collapse;
    margin: 12px 0 20px 50px;
}

main table.t2 td {
    text-align: center;
    border: solid 1px black;
    padding: 0.2em
}

main table.t2 th {
    text-align: center;
    border: solid 1px black;
    background-color: #f0f0f0;
    padding: 0.2em
}

main table.t2 caption {
    caption-side: bottom;
    font-style: italic;
}

main div.boite::before {
    display: block;
    text-align: center;
    background-color: #66666666;
    color: white;
    font-size: 110%;
    font-weight: bold;
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
    padding: 0px;
    margin-bottom: 20px;
    border-radius: 10px 10px 0 0;
}

main div.boite {
    padding-bottom: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

main div.boitehistoire::before {
    content: "Repères historiques";
}
main div.boitehistoire {
    background-color: #ccffcc99;
}

main div.boiteliens::before {
    content: "Liens externes";
}
main div.boiteliens {
    background-color: #ccddee66;
}

main a {
    text-decoration: none;
    font-weight: bold;
    color: #06c;
}

main a:hover {
    color: #039;
}

main figure {
    text-align: center;
    font-size: 0.9em;
    font-style: italic;
}

main figure img {
    max-width: 100%;
}

main sup {
    position: relative;
    font-size: 0.8rem;
    top: -0.2rem;
    margin: 0 0.1rem;
}

main .connaitre {
    border-left: 5px solid #009900;
    margin-left: 20px;
    padding-left: 8px;
}

main .rouge {
    color: #a00;
}
main .vert {
    color: #090;
}

main .decale {
    margin:0 0 0 2em;
}

main span.memo_python {
    display: inline-block;
    background-image: url('/commun_images/python.svg');
    background-repeat: no-repeat;
    background-size: 1.4em;
    background-position: 0.2em;
    padding: 0.1em 0.2em 0.1em 1.7em;
    border-radius: 0.5em;
    border:1px solid black;
    background-color: #ffff0020;
}
