/* RESET */
html, body, header, nav, footer, main, section, div, span, h1, h2, h3, h4, h5, h6, p, a, figure, figcaption, picture, img, ul, li, dl, dt, dd, form, label, input, textarea, button, svg, strong, b, address, time, table, caption, thead, tbody, th, td, tr
{
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
}
a
{
	display: inline-block;
}
ul
{
	list-style: none;
}
/* VARIABLES */
:root
{
    /* couleurs */
    --couleur-background: rgb(237, 233, 219);
    --couleur-froid: rgb(157, 166, 182);
    --couleur-chaud: rgb(61, 28, 11);
    --couleur-alert: red;
    --couleur-succes: green;

    /* espaces */
    --espace-xxl: 30vw;
    --espace-xl: 20vw;
    --espace-s: 3vw;
    --espace-xs: 1vw;
}
/* BASE */
/* BASE : racine */
html
{
    overflow-x: hidden;
	font-size: clamp(16px, 1vw, 1vw);
    font-family: Arial, Helvetica, sans-serif;
}
body
{
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-size: 100vw auto;
    background-color: var(--couleur-background);
}
/* BASE : header */
header
{
    padding: var(--espace-s) var(--espace-s);
    border-bottom: 1px solid var(--couleur-froid);
}
header nav ul
{
    display: flex;
    justify-content: flex-end;
}
header nav li:not(:first-of-type)
{
    margin-left: 2rem;
}
header nav li:first-of-type
{
    margin-right: auto;
}
header nav a
{
    text-decoration: none;
    color: var(--couleur-chaud);
}
.active
{
    font-weight: bold;
}
/* BASE : footer */
footer
{
    padding: var(--espace-xs) var(--espace-s);
    border-top: 1px solid var(--couleur-froid);
}
/* BASE : main */
main
{
    padding: var(--espace-s) var(--espace-s);
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}
main section
{
    margin-bottom: 2rem;
}
main a
{
    font-size: 0.8rem;
    color: var(--couleur-chaud);
}
main h1
{
    margin-bottom: 2rem;
}
main h2
{
    margin-bottom: 1rem;
}
main p:not(:last-of-type)
{
    margin-bottom: 1rem;
}
main button
{
    padding: var(--espace-xs);
    border-radius: 8rem;
    white-space: nowrap;
    text-transform: uppercase;
    color: white;
    background-color: var(--couleur-chaud);
}
main button:hover
{
    cursor: pointer;
}
/* BASE : formulaires */
form
{
    min-width: 300px;
    max-width: 60%;
    width: 100%;
}
form > p:first-of-type
{
    text-align: right;
    font-size: 0.7rem;
}
form > p:first-of-type > span
{
    color: var(--couleur-alert);
}
form div
{
    margin-bottom: 0.5rem;
}
form div:last-of-type
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
form label
{
    margin-bottom: 0.2rem;
    display: block;
}
form label.required::after
{
    content: '*';
    color: var(--couleur-alert)
}
form input, form textarea
{
    padding: 0.3rem;
    border: 1px solid var(--couleur-froid);
    border-radius: 0.5rem;
    width: 100%;
}
form textarea
{
    resize: vertical;
    min-height: 150px;
}
form p.alert, form p.succes
{
    font-size: 0.8rem;
}
form p.alert
{
    color: var(--couleur-alert);
}
form p.succes
{
    color: var(--couleur-succes);
}
form button.boutonLien
{
    margin-left: auto;
    padding: 0;
    border: none;
    text-decoration: underline;
    text-transform: none;
    font-size: 0.8rem;
    color: var(--couleur-chaud);
    background-color: transparent;
}
/* ANIMATIONS */
@keyframes chargement 
{
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#sectionChargement
{
    align-items: center;
    justify-content: center;
}
.chargement 
{
    border: 6px solid rgb(74, 141, 65);
    border-top: 6px solid var(--couleur-background);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: chargement 1s linear infinite;
    margin-right: 15px;
}
/* PAGE : wp-admin */
#connexionWpAdmin main section
{
    display: flex;
    flex-direction: column;
    flex: 1;
}
main section#sectionTroll div#videoConteneur
{
    flex: 1;
}
@media (min-width: 800px) 
{
    /* header */
    header
    {
        padding: var(--espace-s) var(--espace-xl);
    }
    /* footer */
    footer
    {
        padding: var(--espace-xs) var(--espace-xl);
    }
    /* main */
    main
    {
        padding: var(--espace-s) var(--espace-xl);
    }
}