/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400..700&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --tile-size: 400px;
}

body {
    margin: 0;
    background: #ccc;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h2 {
    font-weight: 900;
    text-align: center;
}

#loader {
    position: fixed;
    left: 0; top: 0;
    width: 100vw;
    height: 100vh;
    background: #181818;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    z-index: 100;
    transition: opacity .4s;
}
#loader.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    justify-content: flex-start;
    align-items: flex-start;
}

.flip-card {
    box-sizing: border-box;
    width: var(--tile-size);
    height: var(--tile-size);
    perspective: 1000px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s;
}

.flip-card.visible {
    opacity: 1;
    transition: opacity 0.6s;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    object-fit: cover;
    border: 2px solid #fff;
}

.flip-card-front {
    background-color: #bbb;
}

.flip-card-back {
    background-color: #2980b9;
    transform: rotateY(180deg);
}

#fin-galerie a.to-top-link {
    color: #272822;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    font-size: .6em;
    font-family: "Kode Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
}

#fin-galerie a.to-top-link:hover {
    color: #fff;
    text-shadow: 1px 1px 8px #cccccc;
}

header {
    margin: 1em;
    text-align: right;
}

header ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #ababab;
}

header li { float: right; }

header li a {
    display: block;
    color: #454545;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

header li a:hover {
    background-color: #c1c1c1;
    color: #000000;
}

.fouteur { text-align: center; }

.fouteur p { line-height: 0.6em; }

.fouteur p { font-size: 1.2em; }

.soustitre {
    font-size: 1.2em !important;
    font-family: "Kode Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

a.lienFoute {
    color: #686868;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    font-family: "Kode Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
}

a.lienFoute:hover {
    text-shadow: 1px 1px 8px #cccccc;
    color: #000000;
}

.maj {
    font-size: 0.8em !important;
    font-style: italic;
    color: #999;
}