@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');

@font-face {
    font-family: FutureEarth;
    src: url("/res/fonts/future_earth.ttf") format("truetype");
}

@font-face {
    font-family: MoonFlower;
    src: url("/res/fonts/moon_flower.otf") format("opentype");
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-weight: bold;
    font-family: 'Lato', serif;
    background: #242424;
    color: #ffffff;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card {
    margin: auto 1.5em;
}

.scroll-hint {
    position: absolute;
    bottom: 1.5em;
    left: 50%;
    transform: translateX(-50%);
    color: #eeeeee;
    font-size: 1.6em;
    text-decoration: none;
    opacity: 0.7;
    animation: scroll-hint-bounce 2s infinite;
}

.scroll-hint:hover {
    opacity: 1;
}

@keyframes scroll-hint-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

.logo-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 170px;
    max-width: 60%
}

h1 {
    font-size: 2.5em;
}

h1 > small {
    color: #eeeeee;
}

p {
    color: #ffffff;
    font-size: 1.8em;
}

a {
    color: #eeeeee;
}

.font-ft {
    font-family: 'FutureEarth', serif;
}

.comment-wrapper {
    display: flex;
    flex-direction: column;
}

.comment-wrapper > img {
    width: 60px;
    max-width: 20%
}

.comment-wrapper > p {
    margin-top: 0;
    font-size: 1.2em
}

.button {
    border: 1px #e07e2f solid;
    text-decoration: none;
    color: #e07e2f;
    font-family: 'Lato', serif;
    font-weight: 300;
    text-transform: uppercase;
    padding: 0.15em 0.6em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.button:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== Section événements ===== */

.events-section {
    width: 100%;
    box-sizing: border-box;
    padding: 3em 1.5em 4em;
}

.events-section > h2 {
    text-align: center;
    font-size: 2em;
    margin: 0 0 1.2em;
}

.mandats-wrapper > h3 {
    text-align: center;
    font-weight: 300;
    color: #cccccc;
    font-size: 1.2em;
    margin: 0 0 1.2em;
}

.tile {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #1b1b1b;
    cursor: default;
}

.tile-img,
.tile-gif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease-in-out;
}

.tile-gif {
    opacity: 0;
}

.tile:hover .tile-img {
    opacity: 0;
}

.tile:hover .tile-gif {
    opacity: 1;
}

.tile-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1em 0.9em 0.7em;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    pointer-events: none;
}

.tile-caption h4 {
    margin: 0 0 0.2em;
    font-size: 1.1em;
}

.tile-caption p {
    margin: 0;
    font-size: 0.78em;
    font-weight: 300;
    color: #dddddd;
}

.mandats-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.mandat-block {
    border-top: 1px solid #3a3a3a;
    padding: 1.6em 0;
}

.mandat-block:first-child {
    border-top: none;
}

.mandat-block > h3 {
    margin: 0 0 0.8em;
    font-size: 1.4em;
    color: #e07e2f;
}

.stats-row {
    display: flex;
    gap: 2em;
    margin-bottom: 1em;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.8em;
    color: #ffffff;
}

.stat-label {
    font-size: 0.75em;
    font-weight: 300;
    color: #aaaaaa;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    margin-top: 1.8em;
    display: flex;
    align-items: flex-start;
    gap: 1.8em;
    padding: 1.8em 0.3em 1em;
    overflow-x: auto;
    overflow-y: hidden;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 2.05em;
    left: 0.3em;
    right: 0.3em;
    height: 2px;
    background: #3a3a3a;
}

.timeline-item {
    position: relative;
    flex: 0 0 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-item.has-tile {
    flex: 0 0 240px;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #777777;
    border: 2px solid #242424;
    margin-bottom: 0.7em;
}

.timeline-item.majeur .timeline-dot {
    width: 14px;
    height: 14px;
    background: #e07e2f;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
}

.timeline-date {
    color: #888888;
    font-size: 0.75em;
    font-weight: 300;
    white-space: nowrap;
}

.timeline-name {
    font-size: 0.9em;
}

.timeline-item.majeur .timeline-name {
    font-size: 1em;
    color: #e07e2f;
}

.timeline-tile {
    margin-top: 0.7em;
    width: 240px;
}

.timeline-desc {
    margin: 0.5em 0 0;
    color: #aaaaaa;
    font-size: 0.75em;
    font-weight: 300;
    line-height: 1.4;
}
