/*************** Mobile first ***************/
*, ::before, ::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    /*overflow-x: hidden;  Sécurité : empêche le scroll horizontal absolu */
}

a{
    text-decoration: none;
    color: var(--bleu-fonce);
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    background-color: var(--bleu-clair);
    color: var(--bleu-fonce);
    font-family: 'Quicksand', sans-serif;
    font-weight: 900;    
    font-size: 1rem;
    /*************************************/
}

button, input, label, select, textarea{
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

footer{    
    width: 100%;
    max-height: 5vh;
    display: flex;
    display: none;
    justify-content: flex-end;
    flex-shrink: 0;
}

footer img{
    height: 5vh;
}

form{
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: .5em;
}

h1{
    text-shadow: 2px 2px 5px var(--bleu-fonce);
}

header{
    /*display: flex;*/
    width: 100%;
    max-height: 30vh;
    /*justify-content: center;*/
    flex-shrink: 0;
    text-align: center;
}

header img{
    height: 30vh;
}

html{
    font-size: 100%;
    --blanc: #FFF;
    --bleu-clair: #74c4df;
    --bleu-fonce: #1e2f41;
    --noir: #000;
    --orange-clair: #fccd68;
    --orange-fonce: #dc641a;
    --vert: #7fba8c;
}

img {
    max-width: 100%;
    height: auto;
}

input{
    color: var(--bleu-fonce);
    padding: .5em;
    border: var(--bleu-fonce) solid 1px;
    border-radius: .3em;
}

section {
    width: 90%;          /* On passe à 90% pour exploiter au mieux l'espace mobile */
    margin: 0 auto;      /* MAGIE : Centre la section horizontalement dans l'écran */
    height: fit-content; 
    display: flex;       /* Assure que le comportement flexbox est actif */
    flex-direction: column; /* Sur mobile, on aligne d'abord les cartes les unes sous les autres */
    align-items: center; 
    justify-content: center;
    gap: 1em; 
}

select{
    padding: .5em;
    border: var(--bleu-fonce) solid 1px;
    border-radius: .3em;
}

/***************** Media queries *****************/
@media (min-width: 768px){
    footer{
        display: flex;
    }

    h1{
        font-size: 3em;
    }

    section{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 2em;
    }
}

