@font-face {
    font-family: 'Mojangles';
    src: url('fonts/Mojangles.ttf') format('truetype');
}

:root {
    --bg: #f2f2f2;
    /* quartz base */
    --panel: #ffffff;
    --accent: #d8d2ce;
    /* light quartz */
    --muted: #444;
    --tile-size: 12px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Mojangles, system-ui, sans-serif;
    background: var(--bg);
    color: #1a1a1a
}

header {
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 calc(var(--tile-size) * 1), transparent calc(var(--tile-size) * 1) calc(var(--tile-size) * 2)), linear-gradient(180deg, #e7e3e1 0%, #d9d3cf 100%);
    padding: 18px;
    border-bottom: 6px solid #bfbab6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15)
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center
}

.logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(180deg, #ece9e7, #c8c4c2);
    border: 4px solid #000;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
    display: grid;
    place-items: center;
    font-family: Mojangles;
    font-size: 14px;
    color: #2b2b2b;
    text-shadow: 1px 1px #fff
}

nav {
    margin-left: auto;
    font-family: Mojangles;
    font-size: 14px
}

nav a {
    color: #2b2b2b;
    text-decoration: none;
    margin: 0 8px;
    padding: 6px 10px;
    border: 2px solid #aaa;
    background: #fff;
    box-shadow: 2px 2px 0 #aaa;
    transition: all .1s
}

nav a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #aaa
}

.infobox {
    float: right;
    width: 280px;
    margin: 16px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.infobox h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 8px;
}

.infobox-img {
    display: block;
    margin: 0 auto 12px auto;
    width: 120px;
    border-radius: 8px;
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox th {
    text-align: left;
    font-weight: 600;
    padding: 4px;
    width: 40%;
    vertical-align: top;
}

.infobox td {
    padding: 4px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: center;
    padding: 36px 0
}

.hero h1 {
    font-family: Mojangles;
    font-size: 28px;
    margin: 0 0 12px;
    color: #2b2b2b
}

.hero p {
    color: #444;
    margin: 0 0 14px
}

.card {
    background: var(--panel);
    border: 2px solid #cfcac6;
    padding: 14px;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #cfcac6;
}

.card.visible {
    animation: appear 0.4s forwards ease-out
}

section {
    margin: 22px 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px
}

h2 {
    font-family: Mojangles;
    font-size: 16px;
    margin: 0 0 8px
}

ul {
    padding-left: 18px
}

.coords {
    font-family: Mojangles;
    font-size: 13px;
    color: #666
}

footer {
    border-top: 4px solid #cfcac6;
    padding: 18px;
    margin-top: 28px;
    color: #666;
    font-size: 13px
}

.contributors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.pill {
    background: #f4f3f2;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 12px;
}

.pill.visible {
    animation: pop 0.3s forwards ease-out
}

.btn {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 6px;
    background: #cfcac6;
    color: #222;
    font-weight: 700;
    text-decoration: none;
    font-size: 12px;
    border: 2px solid #a09c99;
    box-shadow: 2px 2px 0 #a09c99;
    transition: all .1s
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #a09c99
}

@media (max-width:880px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 58px;
        height: 58px
    }
}

.image-slot {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid #bfbab6;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #cfcac6;
}

.image-caption {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}



.bouton-tarif {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 6px;
    background: #cfcac6;
    color: #222;
    font-weight: 700;
    text-decoration: none;
    font-size: 12px;
    border: 2px solid #a09c99;
    box-shadow: 2px 2px 0 #a09c99;
    transition: all .1s
}

@keyframes pop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8)
    }

    80% {
        opacity: 1;
        transform: translateY(-2px) scale(1.05)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateX(20deg)
    }

    70% {
        opacity: 1;
        transform: scale(1.05) rotateX(0deg)
    }

    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg)
    }
}
