/* Feuille de style commune à tout le site. */

/*
    Polices de caractères : Playpen Sans pour le français, Klee One pour le japonais.
    Importées avec <link> dans l’HTML.
*/

body {
    font-size: large;
    font-family: "Playpen Sans", "Klee One", sans-serif;
    font-optical-sizing: auto;
    /* Fond par Pawel Czerwinski (https://unsplash.com/photos/a-desert-scene-with-a-white-and-orange-background-D9czFsZwLSg) */
    background-image: url(./resources/pawel-czerwinski-D9czFsZwLSg-unsplash.webp);
    background-attachment: fixed;
    background-size: cover;
    --theme-color: #f3a616
}


/* Style des zones de la page. */
header,
main,
footer {
    padding: 1rem 2rem;
    margin-left: 25vw;
    margin-right: 25vw;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0px 5px 4px -2px color-mix(in srgb, var(--theme-color), #fff0 40%);
}

main {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

footer {
    font-size: initial;
}

@media only screen and (max-width: 1000px) {

    header,
    main,
    footer {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    figure,
    blockquote {
        margin-right: 0;
        margin-left: 0;
    }
}


/* Style des éléments individuels. */
h1 {
    margin-top: 0;
}

h2 {
    margin-bottom: 0;
    margin-top: 1.5rem;
}

a {
    text-decoration: underline;
}

a:hover {
    text-decoration: none;

}

em {
    font-style: normal;
    font-weight: bold;
}

blockquote {
    border-radius: 7px;
    border-left: 5px solid var(--theme-color);
    padding-left: 0.5rem;
}

img {
    max-width: 100%;
}

figcaption {
    font-weight: 200;
    font-size: initial;
}

table {
    border-collapse: collapse;
    border: 2px solid var(--theme-color);
}

th,
td {
    border: 1px solid var(--theme-color);
    padding: 0.5rem;
}

thead th {
    text-align: left;
    border-bottom: 2px solid var(--theme-color);
}


/* Pour l’impression. */
@media only print {

    body {
        background: none;
    }

    header {
        display: none;
    }

    main,
    footer {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        background-color: initial;
        box-shadow: none;
    }

    figure {
        text-align: center;
    }

    img {
        max-width: 60%;
    }

    a {
        color: inherit;
    }
}
