* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: rgb(33, 37, 41);
    color: rgb(233, 236, 239);
    min-height: 100vh;
    /* Motif échiquier subtil en fond */
    background-image: repeating-conic-gradient(
        rgba(255, 255, 255, 0.025) 0% 25%,
        transparent 0% 50%
    );
    background-size: 80px 80px;
}

/* ── Page d'accueil ─────────────────────────────────────────── */

.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
}

/* ── En-tête ────────────────────────────────────────────────── */

.home-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-logo img {
    height: 7vh;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.4));
}

.home-title {
    font-size: clamp(2.5rem, 6vh, 4.5rem);
    font-weight: bold;
    letter-spacing: 0.05em;
    color: rgb(233, 236, 239);
}

.home-subtitle {
    font-size: clamp(0.9rem, 2vh, 1.1rem);
    color: rgb(160, 165, 170);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Cartes de mode ─────────────────────────────────────────── */

.mode-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mode-card {
    width: 200px;
    background: rgb(44, 49, 54);
    border: 2px solid rgb(60, 65, 72);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.mode-card:hover:not(.mode-disabled) {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.12);
}

.mode-card.mode-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.mode-piece {
    height: 90px;
    width: 90px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s;
}

.mode-card:hover:not(.mode-disabled) .mode-piece {
    transform: scale(1.08);
}

.mode-title {
    font-size: 1.15rem;
    font-weight: bold;
    text-align: center;
}

.mode-desc {
    font-size: 0.82rem;
    color: rgb(155, 160, 168);
    text-align: center;
    line-height: 1.4;
}

.mode-btn {
    margin-top: auto;
    background: rgba(255, 215, 0, 0.9);
    color: rgb(33, 37, 41);
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1.4rem;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
}

.mode-btn:hover {
    background: rgb(255, 215, 0);
}

.mode-soon {
    margin-top: 0.4rem;
    background: rgb(55, 60, 67);
    color: rgb(130, 135, 142);
    border-radius: 6px;
    padding: 0.45rem 1.4rem;
    font-size: 0.82rem;
    text-align: center;
    width: 100%;
    letter-spacing: 0.03em;
}

/* Badge "Bientôt" en coin */
.mode-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgb(70, 75, 85);
    color: rgb(180, 185, 195);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
