/* ==========================================
   ATTRIBUTS HTML ET REGLES GENERALES
   ========================================== */

*,
::before,
::after {
    box-sizing: border-box;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

a {
    color: var(--bleu-fonce);
    text-decoration: none;
}

body {
    background-color: var(--bleu-clair);
    box-sizing: border-box;
    color: var(--bleu-fonce);
    display: flex;
    flex-direction: column;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
    min-height: 100vh;
    padding: 10px;
}

button,
input,
label,
select,
textarea {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

footer {
    display: flex;
    display: none;
    flex-shrink: 0;
    justify-content: flex-end;
    max-height: 5vh;
    width: 100%;
}

footer img {
    height: 5vh;
    width: auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: .5em;
}

h1 {
    text-shadow: 2px 2px 5px var(--bleu-fonce);
}

header {
    display: flex;
    height: fit-content;
    justify-content: center;
    text-align: center;
    width: 100%;
}

header img {
    height: 30vh;
    object-fit: contain;
    width: auto;    
}

html {
    --blanc: #FFF;
    --bleu-clair: #74c4df;
    --bleu-fonce: #1e2f41;
    --noir: #000;
    --orange-clair: #fccd68;
    --orange-fonce: #dc641a;
    --vert: #7fba8c;
    font-size: 100%;
}

html,
body {
    max-width: 100%;
}

img {
    height: auto;
    max-width: 100%;
}

input {
    border: var(--bleu-fonce) solid 1px;
    border-radius: .3em;
    box-sizing: border-box;
    color: var(--bleu-fonce);
    max-width: 100%;
    padding: .5em;
    width: 100%;
}

/* Force le champ file à séparer le bouton et le texte du fichier */
input[type="file"]::-webkit-file-upload-button {
    display: block;
    margin: 0 auto 8px auto;
}

section {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1em;
    height: fit-content;
    justify-content: center;
    margin: 0 auto;
    width: 90%;
}

select {
    border: var(--bleu-fonce) solid 1px;
    border-radius: .3em;
    padding: .5em;
}

textarea {
    border: 1px solid var(--bleu-fonce);
    border-radius: .3em;
    box-sizing: border-box;
    color: var(--bleu-fonce);
    height: 150px;
    max-width: 100%;
    overflow-y: auto;
    padding: .5em;
    resize: vertical;
    width: 100%;
}

/* ==========================================
   MEDIA QUERIES
   ========================================== */

@media (max-width: 600px) {
    .sf-minitoolbar,
    .sf-toolbar {
        display: none !important;
    }
}

@media (min-width: 768px) {
    footer {
        display: flex;
    }

    h1 {
        font-size: 3em;
    }

    header {
        max-height: auto;
        justify-content: normal;
    }

    section {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2em;
        justify-content: space-around;
    }
}