.hero {
    background: linear-gradient(180deg, rgba(12, 15, 22, 0.55) 0%, rgba(12, 15, 22, 0.35) 45%, rgba(12, 15, 22, 0.95) 100%),
    url('./background.webp') center/cover no-repeat;
    min-height: 100vh;
    max-height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 6rem 1rem 3rem;
}

/* panneau GUI biseauté : la signature, version héro */
.hero-content {
    position: relative;
    max-width: 620px;
    background-color: rgba(12, 15, 22, 0.82);
    border-top: 3px solid var(--primary-color);
    border-bottom: 1px solid var(--edge-dark);
    padding: 2.5rem 2rem;
    box-shadow: inset 1px 1px 0 var(--edge-light),
    inset -2px -2px 0 var(--edge-dark),
    0 24px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
}

.hero h1 {
    margin-bottom: 0.75rem;
}

.hero h1 .accent {
    color: var(--primary-color);
    text-shadow: 0 0 24px rgba(54, 209, 127, 0.35);
}

.hero p {
    font-size: 1.12rem;
    color: var(--text-color-light);
    margin: 0 auto 0.4rem;
    max-width: 46ch;
}

.hero-note {
    font-size: 0.85rem !important;
    color: var(--muted) !important;
    margin-top: 1.2rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-note::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--diamond);
    box-shadow: 0 0 8px rgba(91, 233, 240, 0.6);
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    margin-top: 1.8rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* indicateur de statut */
.server-status {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.status-badge {
    width: 11px;
    height: 11px;
    border-radius: 0;
    margin-right: 0.6rem;
    background-color: var(--muted);
}

.status-badge.online {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(54, 209, 127, 0.7);
}

.status-badge.offline {
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(229, 72, 77, 0.6);
}

.status-badge.maintenance {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 190, 77, 0.6);
}

.vote-btn {
    background-color: var(--accent-color);
    color: #1A1206;
}

.vote-btn:hover {
    background-color: #FFCF7A;
}

/* bouton animé "Voter / Merci" */
.vote-thanks-container {
    --background: var(--primary-color);
    --color: var(--primary-color);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color);
    padding: 0.7em 1.8em;
    text-transform: uppercase;
    height: 56px;
    width: 180px;
    margin-top: 1rem;
    display: grid;
    place-items: center;
    border: 2px solid var(--color);
    clip-path: polygon(0 7px, 7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px));
}

.text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    transform-origin: -100%;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.vote-thanks-container span:last-child {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    color: #07160E;
    background-color: var(--background);
    z-index: -1;
    transform: scale(0);
    transform-origin: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: grid;
    place-items: center;
}

.vote-thanks-container:hover {
    border-color: transparent;
}

.vote-thanks-container:hover span:last-child {
    transform: scale(1);
    left: 0;
    z-index: 0;
}

.vote-thanks-container:hover .text {
    opacity: 0;
    top: 0;
    left: 100%;
    transform: scale(0);
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1rem;
    }
}