/* Reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	vertical-align: baseline;
}

/* Texte & Marges */

h1, h2, legend {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #FFFFFF;
    
    margin: 0.5em 0;
    padding: 0.5em 1em;

    display: inline-block;    
    border-radius: 30pt;
}

h1 {
    font-weight: bolder;
    background-color: rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 15pt;
    font-weight: bold;

    margin: 0.5em 0;
}

p, li, label, a, th, td, label, input, textarea {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 12pt;
}

p, article li, aside li, label {
    margin: 0.5em 0;
}

table {
    table-layout: auto;
}

th {
    width: max-content;
    font-weight: bold;
}

th, td {
    margin: 0;
    padding: 0.5em;
    border: 0.1em solid black;
}

a {
    color: #003f9e;
    text-decoration: none;
}

figcaption {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 10pt;
    font-style: italic;

    padding: 0.5em 0.75em;

    background-color: #FFFFFF;
    border-radius: 20pt;
}

main h2 {
    background-color: #2da02d;
}

aside h2 {
    background-color: #003f9e;

}

body > header {
    background-color: #1e1e1e;
}

body > header, .corps, footer {
    padding: 1em 2em;
}

body > footer {
    color: #FFFFFF;
    background-color: #FF0000;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
    flex-direction: row;
}

.logo img {
    width: 100px;
    vertical-align: middle;
}

.logo p {
    display: inline;
    width: fit-content;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 20pt;
    color: #FFFFFF;
    font-weight: bolder;
    text-align: left;
}

/* Barre de navigation */

nav {
    display: flex;
    flex-flow: column wrap;
    row-gap: 1em;
    align-items: center;
    justify-content: space-between;
}

nav ul {
    display: none;
    list-style-type: none;
}

nav input[type=checkbox]:checked + ul {
    display: flex;
    flex-flow: column wrap;
    width: 100%;
}

nav input[type=checkbox] {
    display: none;
}

nav label {
    background-color: #FF0000;
    color: #FFFFFF;
    border-radius: 1.5em;

    padding: 0.75em;
}

nav li {
    list-style: none;
    text-align: center;

    background-color: rgb(70, 70, 70);
    border-radius: 1.5em;
    padding: 1em;
    margin: 0.25em;

    transition: background-color 0.5s;
}

nav li a {
    color: #FFFFFF;
}

nav li:hover {
    background-color: #FF0000;
    transition: background-color 0.5s;
}

@media screen and (min-width: 900px) {
    .logo p {
        display: none;
    }

    nav {
        flex-flow: row;
        column-gap: 1em;
    }

    nav ul, nav input[type=checkbox]:checked + ul {
        display: flex;
        flex-flow: row;
        width: auto;
        align-items: center;
    }

    nav input[type=checkbox], nav label {
        display: none;
    }
}

@media screen and (min-width: 1200px) {
    .logo p {
        display: inline;
    }
}

/* Article */

main header {
    display: flex;
    align-items: center;
}

main header h1 {
    font-size: 15pt;
    position: absolute;
    margin: 1em 1em;
}

main header figure {
    display: flex;
    align-items: flex-end;
    justify-content: right;
    width: 100%;
}

main header img {
    width: 100%;
}

main header figcaption {
    position: absolute;
    margin: 0.5em 2em;
}

main ul {
    padding-left: 1em;
}

main footer {
    margin: 1em 0;
}

main footer a {
    color: black;
    text-decoration: none;

    background-color: rgb(210, 210, 210);
    border-radius: 1.5em;

    padding: 1em;

    transition: color 0.5s, background-color 0.5s;
}

@media screen and (min-width: 900px) {
    main header h1 {
        font-size: 25pt;
    }

    main header figcaption {
        font-size: 14pt;
        border-radius: 28pt;
    }

    .corps {
        display: flex;
        flex-flow: row;
        justify-content: space-between;
        column-gap: 10%;
        margin: 0 15%;
    }

    .corps .contenu {
        width: 60%;
    }

    .corps aside {
        width: 30%;
    }

    main footer {
        margin: 1em 15%;
        text-align: right;
    }

    main footer a:hover {
        color: #FFFFFF;
        background-color: #FF0000;

        transition: color 0.5s, background-color 0.5s;
    }
}

/* Formulaire */

form legend {
    font-size: 15pt;
    font-weight: bold;
    background-color: #FF0000;

}

form label {
    display: block;
    margin: 0.5em 0;
}

form label, form input {
    font-size: 13pt;
}

form textarea, .form-texte {
    border-color: rgb(210, 210, 210);
    border-style: solid;
    border-radius: 26pt;

    transition: border-color 0.5s;
}

form textarea:hover, .form-texte:hover {
    border-color: rgb(180, 180, 180);

    transition: border-color 0.5s;
}

form textarea:focus-visible, .form-texte:focus-visible {
    border-color: #003f9e;
    outline: none;

    transition: border-color 0.25s;
}

.form-texte {
    padding: 0.5em;
}

.form-texte-invalid {
    border-color: #FF0000;
    border-style: solid;
    border-radius: 26pt;
    padding: 0.5em;

    transition: border-color 0.5s;
}

.form-texte-invalid:hover {
    border-color: #CC0000;

    transition: border-color 0.5s;
}

.form-texte-invalid:focus-visible {
    border-color: #AA0000;
    background-color: #FFAAAA;
    outline: none;

    transition: border-color 0.25s;
}

.form-bouton {
    background-color: rgb(210, 210, 210);
    border-style: none;
    border-radius: 26pt;
    
    margin: 0.5em 0;
    padding: 0.75em;

    transition: background-color 0.5s;
}

.form-bouton:hover, .form-bouton:focus {
    background-color: rgb(180, 180, 180);
    transition: background-color 0.5s;
}

.form-bouton:active {
    background-color: rgb(120, 120, 120);
}

form textarea {
    width: 95%;
    resize: vertical;
    padding: 1em;
}

noscript p {
    font-size: 14pt;
    padding: 1em;
    font-weight: bolder;
    color: #FFFFFF;
    background-color: #FF0000;
    border-radius: 28pt;
}

/* Messages */

.message {
    margin: 0.5em 0;

    color: black;
    text-decoration: none;

    background-color: rgb(210, 210, 210);
    border-radius: 1.5em;

    padding: 1em;
}

.message-header {
    font-weight: bold;
    font-size: 14pt;
}

/* Pied-de-page */

body > footer {
    background-image: url("../img/ttrema.png");
    background-repeat: no-repeat;
    background-size: 5em;
    background-position: 2em 1em;

    display: flex;
    flex-flow: column;
    text-align: right;

    padding-left: 9em;
}

body > footer a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

@media screen and (min-width: 900px) {
    body > footer {
        background-position: top;
        background-size: 7em;

        flex-flow: row;
        justify-content: space-between;
        text-align: left;

        padding: 1em 15%;
    }
}