:root {
    /*colors*/
    --text: #e3eaf1;
    --background: #104070;
    --primary: #8ebbe8;
    --secondary: #10579f;
    --accent: #0681fd;
    --logo-blue: #207fdf;
    --logo-light-blue: #20dfdf;

    /*logo animation*/
    --logo-pixel-delay: 120ms;
    --logo-transition-duration: 20ms;
    --logo-transition-type: ease;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../FONTS/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 800;
    /* Plage de graisses disponibles dans le fichier */
    font-style: normal;
    font-display: swap;
    /* Évite le texte invisible pendant le chargement */
}

@font-face {
    font-family: 'Commodore 64 Pixelized';
    src: url('../FONTS/commodore-pixelized-v1_2.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    min-height: 100vh;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--text);
}

header,
main,
footer {
    width: 100%;
    max-width: 1200px;
}

main {
    flex: 1;
}

section.hero {
    /*max-width: 600px;
    margin-left: auto;
    margin-right: auto;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 1rem;*/
    padding-top: 8em;
    padding-bottom: 4em;
}

.logo-container svg rect {
    opacity: 0;
    transition: opacity var(--logo-transition-duration) var(--logo-transition-type);
}

.logo-container.is-loaded svg rect {
    opacity: 1;
}

.pixel-logo {
    width: 200px;
    height: auto;
}

.site-name {
    letter-spacing: 0.25rem;
}

.site-name span {
    opacity: 0;
    transition: opacity var(--logo-transition-duration) var(--logo-transition-type);
    text-align: center;
    font-size: 36px;
    font-family: 'Commodore 64 Pixelized';
    color: var(--logo-light-blue);
    font-weight: 300;
}

.site-name.is-loaded span {
    opacity: 1;
}

section.content {
    opacity: 0;
    transition: opacity 2s ease-in;
}

section.content.is-loaded {
    opacity: 1;
}

.auto-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 4em;
}

.auto-grid>div {
    background-color: var(--secondary);
    border: solid 3px var(--primary);
    border-radius: 20px;
    padding: 1em;
}

.auto-grid h2 {
    text-transform: uppercase;
}

h1 {
    text-align: center;
    font-size: xx-large;
    font-weight: 300;
}

h2 {
    text-align: center;
    font-size: x-large;
    font-weight: 300;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--text);
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
}

.card-icon div {
    width: 100px;
    height: 100px;
}

.flex {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    font-size: x-large;
    font-weight: 300;
}

.arobase {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.text-center {
    text-align: center;
}

.text-large {
    font-size: large;
}

ul {
    list-style-type: square;
}