@charset "UTF-8";

/*
* Theme Name: Charlotte
* Author: Charlotte Dujardin
* Description: Thème du site ressources pour mon site d'auteure
* Version: 1.0
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/


/* ---------------------- MENU ---------------------- */


/* 1. Style général
        1.1. Polices
        1.2. Variables globales
        1.3. Normalisation
        1.4. Éditeur de thème
        1.5. Mise en page globale
   2. En-tête (header)
        2.1. En-tête général
        2.2. En-tête de première page
        2.3. Fil d'Ariane
        2.4. Connexion
   3. Pied-de-page (footer)
   4. Pages
        4.1. Par défaut
        4.2. En construction
        4.3. Erreur 404
        4.4. Jeu en ligne
*/


/* ---- 1. STYLE GÉNÉRAL ---------------------------- */


/* ---------- 1.1. Polices -------------------------- */


/* Import des polices de caractères */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Mrs+Saint+Delafield&display=swap');
@font-face {
    font-family: "Bahnschrift";
    src: url('./fonts/bahnschrift.ttf') format('truetype');
    font-weight: normal;
}

:root {
    /* Définition des polices */
    --police-principale: "Bahnschrift", Helvetica, sans-serif;
    --police-decorative: "Bebas Neue", "Oswald", sans-serif;
    --police-signature: "Mrs Saint Delafield", cursive;
    /* Définition des tailles de polices */
    --police-taille-xs: 0.76rem;
    --police-taille-sm: 0.855rem;
    --police-taille-md: 0.95rem;
    --police-taille-lg: 1.14rem;
    --police-taille-xl: 1.51rem;
    --police-taille-xxl: 2.37rem;
    --police-taille-xxxl: 3.04rem;
    --police-taille-base: var(--police-taille-md);
    /* Définition des hauteurs de ligne */
    --ligne-hauteur-corps: 1.4;
    --ligne-hauteur-titre: 1.1;
}


/* ---------- 1.2. Variables globales --------------- */

:root {
    /* Définition des codes couleurs */
    --code--noir: 0, 0, 0;
    --code--gris: 40, 38, 38;
    --code--gris-clair: 212, 212, 212;
    --code--rouge: 118, 4, 14;
    --code--bleu: 19, 22, 75;
    --code--blanche: 47, 46, 46;
    --code--blanc: 255, 255, 255;
    /* Définition des couleurs */
    --noir: rgb(0, 0, 0);
    --gris: rgb(40, 38, 38);
    --gris-clair: rgb(212, 212, 212);
    --rouge: rgb(118, 4, 14);
    --bleu: rgb(19, 22, 75);
    --blanche: rgb(47, 46, 46);
    --blanc: rgb(255, 255, 255);
    --texte: var(--noir);
    /* Définition de l'agencement */
    --hauteur-header-lg: 12vh;
    --marges-internes-lg: calc(var(--hauteur-header-lg)/2) 60px;
}


/* ---------- 1.3. Normalisation -------------------- */

* {
    margin: 0;
    padding: 0;
    outline: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: var(--police-principale);
    font-size: var(--police-taille-base);
    color: var(--texte);
    line-height: var(--ligne-hauteur-corps);
}


/* ---------- 1.4. Éditeur de thème ----------------- */

.has-black-background-color {
    background-color: #000000;
}

.has-black-color {
    color: #000000;
}

.has-grey-background-color {
    background-color: #282626;
}

.has-grey-color {
    color: #282626;
}

.has-red-background-color {
    background-color: #76040E;
}

.has-red-color {
    color: #76040E;
}

.has-blue-background-color {
    background-color: #13164B;
}

.has-blue-color {
    color: #13164B;
}

.has-grey_white-background-color {
    background-color: #2F2E2E;
}

.has-grey_white-color {
    color: #2F2E2E;
}

.has-white-background-color {
    background-color: #FFFFFF;
}

.has-white-color {
    color: #FFFFFF;
}

.contrast h2,
.contrast h3,
.contrast h4,
.contrast h5,
.contrast p,
.contrast span,
.contrast a {
    color: var(--gris) !important;
    border-color: var(--gris) !important;
}

.contrast h2:after,
.contrast h3:after,
.contrast h4:after,
.contrast h5:after {
    background-color: var(--gris) !important;
}


/* ---------- 1.5. Mise en page globale ------------- */


/* Titres */

h1,
h2,
h3,
h4,
h5 {
    line-height: var(--ligne-hauteur-titre);
}

h1,
h2,
h3 {
    font-family: var(--police-decorative);
}

h1 {
    font-size: var(--police-taille-xxxl);
}

h2 {
    font-size: var(--police-taille-xxl);
}

h3 {
    font-size: var(--police-taille-xl);
    margin-bottom: 0.8rem;
}

h4 {
    font-size: var(--police-taille-lg);
}

h5 {
    font-size: var(--police-taille-md);
}


/* Liens */

a {
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
}


/* Barre de défilement */

::-webkit-scrollbar {
    width: 10px;
}

 ::-webkit-scrollbar-track {
    background: transparent;
}

 ::-webkit-scrollbar-thumb {
    background: rgba(var(--code--gris-clair), 0.8);
    border-radius: 10px;
}

 ::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--code--gris), 0.8);
}


/* Couleur de sélection */

::-moz-selection {
    color: var(--noir);
    background: rgba(var(--code--gris), 0.3);
}

 ::selection {
    color: var(--noir);
    background: rgba(var(--code--gris), 0.3);
}


/* Agencement */

body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    position: relative;
    background-image: url('./images/fond.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
}

section.content-area:not(.home) {
    margin: 1em;
    margin-top: calc( var(--hauteur-header-lg) + 1em);
    min-height: 100vh;
}

section.content-area.page {
    background-color: rgba(var(--code--blanc), 0.9);
}


/* Écrans moyens (tablettes en mode paysage, 768px et plus) */

@media only screen and (min-width: 768px) and (orientation: landscape) {
    main {
        position: relative;
    }
    section.content-area:not(.home) {
        padding: var(--marges-internes-lg);
    }
}


/* ---- 2. EN-TÊTE (HEADER) ------------------------- */


/* ---------- 2.1. En-tête général ------------------ */

header.head {
    position: fixed;
    width: 100%;
    height: var(--hauteur-header-lg);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1.5em;
    background-color: var(--gris);
    z-index: 20;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

header.head.front-header {
    position: absolute;
    background-color: rgba(var(--code--gris), 0.5);
}

header.head.hide {
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
}

header.head a,
header.head h1 {
    color: var(--blanc);
    font-weight: normal;
}

header.head h1 span.forname,
header.head h1 span.lastname {
    color: inherit;
    font-size: 0.8em;
}

header.head h1 span.forname {
    font-family: var(--police-signature);
    margin-right: 1.2rem;
}

header.head h1 span.lastname {
    font-family: inherit;
}

header.head.front-header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--gris);
}


/* Écrans larges (ordinateurs portables et fixes, 992px et plus) */

@media only screen and (min-width: 992px) {
    header.head {
        padding: 1.5em 5em;
    }
}


/* ---------- 2.2. En-tête de première page --------- */


/* ---------- 2.3. Fil d'Ariane --------------------- */


/* ---- 3. PIED-DE-PAGE (FOOTER) ------------------- */

footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: var(--gris);
    padding: 2em;
}

footer input::-webkit-input-placeholder,
footer textarea::-webkit-input-placeholder {
    color: var(--gris);
    opacity: 0.8;
}

footer input::-moz-placeholder,
footer textarea::-moz-placeholder {
    color: var(--gris);
    opacity: 0.8;
}

footer input:-ms-input-placeholder,
footer textarea:-ms-input-placeholder {
    color: var(--gris);
    opacity: 0.8;
}

footer input::-ms-input-placeholder,
footer textarea::-ms-input-placeholder {
    color: var(--gris);
    opacity: 0.8;
}

footer input::placeholder,
footer textarea::placeholder {
    color: var(--gris);
    opacity: 0.8;
}

footer a,
footer p,
footer h6 {
    color: var(--blanc);
    font-weight: normal;
}

footer section.left p:first-of-type {
    font-family: var(--police-decorative);
    font-size: var(--police-taille-xxl);
}

footer section.left p span.forname,
footer section.left p span.lastname {
    color: inherit;
    font-size: 0.8em;
}

footer section.left p span.forname {
    font-family: var(--police-signature);
    margin-right: 1.1rem;
}

footer section.left p span.lastname {
    font-family: inherit;
}

footer section.left p.legend,
footer section.left p.copyright {
    font-weight: 100;
}

footer section.left p,
footer section.left div.social-media {
    text-align: center;
}

footer section.left p.legend {
    font-size: var(--police-taille-sm);
}

footer section.left p.copyright {
    font-size: var(--police-taille-xs);
}

footer section.left div.social-media a {
    margin: 0.2em;
}

footer section.left div.social-media a i {
    color: var(--blanc);
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

footer section.left div.social-media a:hover i {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

footer section.left p.contact {
    margin: 0.5rem;
}

footer section.left p.contact a {
    background-color: var(--blanc);
    border: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    color: var(--gris);
}

footer section.right {
    display: none;
}


/* Écrans larges (ordinateurs portables et fixes, 992px et plus) */

@media only screen and (min-width: 992px) {
    footer {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row nowrap;
        flex-flow: row nowrap;
        padding: 2em 6em;
    }
    footer section.left p,
    footer section.left div.social-media {
        text-align: left;
    }
    footer section.left p.contact {
        display: none;
    }
    footer section.right {
        display: block;
        max-width: 400px;
        width: 30vw;
    }
    footer section.right h6 {
        font-family: var(--police-decorative);
        font-size: var(--police-taille-lg);
        font-weight: 400;
    }
}

.loader {
    position: fixed;
    left: calc(50% - 2.5rem);
    top: calc(50% - 2.5rem);
    z-index: 1;
    width: 5rem;
    height: 5rem;
    background-image: url('./images/loader.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    -webkit-animation: breathe 0.4s ease-in infinite alternate;
    animation: breathe 0.4s ease-in infinite alternate;
}

@-webkit-keyframes breathe {
    0% {
        -webkit-transform: scale(1);
    }
    100% {
        -webkit-transform: scale(1.1);
    }
}

@keyframes breathe {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
}

.loading {
    display: none;
}


/* Écrans moyens (tablettes en mode paysage, 768px et plus) */

@media only screen and (min-width: 768px) and (orientation: landscape) {
    .loader {
        position: absolute;
    }
}