/* SkyblockMC : ciel de nuit, cartes en verre, accents cyan et or */
:root,
[data-bs-theme=dark] {
    --nuit: #070d1f;
    --nuit-2: #0f1c3d;
    --cyan: #5ec8ff;
    --or: #ffd36b;
    --verre: rgba(255, 255, 255, 0.06);
    --bord: rgba(255, 255, 255, 0.12);
    --texte-doux: #b9c6e4;
    --bs-body-bg: var(--nuit);
    --bs-body-color: #e8eefc;
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 18px;
    --bs-tertiary-bg: var(--nuit-2);
    --bs-secondary-bg: var(--nuit-2);
}

html, body { min-height: 100%; }

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0a1430 0%, var(--nuit) 60%);
    background-attachment: fixed;
}

/* starry sky behind everything */
.ciel {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 10% 20%, #fff, transparent),
        radial-gradient(1px 1px at 30% 70%, #cfe8ff, transparent),
        radial-gradient(2px 2px at 55% 15%, #fff, transparent),
        radial-gradient(1px 1px at 75% 45%, #fff, transparent),
        radial-gradient(1px 1px at 90% 80%, #cfe8ff, transparent),
        radial-gradient(2px 2px at 20% 90%, #fff, transparent),
        radial-gradient(1px 1px at 65% 85%, #fff, transparent),
        radial-gradient(600px 400px at 85% 10%, rgba(94, 200, 255, 0.12), transparent),
        radial-gradient(500px 400px at 5% 60%, rgba(200, 107, 255, 0.10), transparent);
    background-size: 400px 400px, 300px 300px, 500px 500px, 350px 350px, 450px 450px, 600px 600px, 380px 380px, 100% 100%, 100% 100%;
    animation: scintille 6s ease-in-out infinite alternate;
}

@keyframes scintille { from { opacity: .7; } to { opacity: 1; } }

#app { flex-shrink: 0; padding-bottom: 2rem; }

a { text-decoration: none; color: var(--cyan); }
a:hover { color: #9adcff; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; }

.content { margin-top: 3rem; margin-bottom: 3rem; }
.content > h1:first-child, .content h1 { text-align: center; margin-bottom: 2rem; }

.pixel { image-rendering: pixelated; }

/* Cards everywhere (Azuriom pages, shop, vote, profile) get the glass look */
.card, .carte {
    background: var(--verre);
    border: 1px solid var(--bord);
    border-radius: var(--bs-border-radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card-header, .card-footer { background: rgba(255, 255, 255, 0.04); border-color: var(--bord); }
.list-group-item { background: transparent; border-color: var(--bord); }
.list-group-item.active { background: rgba(94, 200, 255, 0.2); border-color: var(--cyan); color: #fff; }
.form-control, .form-select { background-color: rgba(0, 0, 0, 0.25); border-color: var(--bord); }
.form-control:focus, .form-select:focus { border-color: var(--cyan); box-shadow: 0 0 0 .2rem rgba(94, 200, 255, .25); }
.dropdown-menu { background: #101b38; border-color: var(--bord); }

/* Buttons */
.btn { border-radius: 999px; font-weight: 700; padding-left: 1.2em; padding-right: 1.2em; }

.btn-primary, .btn-ciel {
    background: linear-gradient(135deg, #5ec8ff, #3b7dff);
    border: 0;
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 125, 255, 0.35);
    transition: transform .15s, box-shadow .15s;
}

.btn-primary:hover, .btn-ciel:hover, .btn-ciel.copie {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(59, 125, 255, 0.5);
    background: linear-gradient(135deg, #7fd6ff, #4d8bff);
}

.btn-verre {
    background: var(--verre);
    border: 1px solid var(--bord);
    color: #fff;
}

.btn-verre:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.copier { position: relative; }
.copier.copie::after {
    content: 'Copié !';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: var(--or);
    color: #241a00;
    font-size: .8rem;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Navbar */
.barre {
    background: rgba(7, 13, 31, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bord);
}

.barre-logo { height: 44px; image-rendering: pixelated; transition: transform .2s; }
.navbar-brand:hover .barre-logo { transform: rotate(-6deg) scale(1.08); }
.barre-nom { font-weight: 800; font-size: 1.25rem; }

.barre .nav-link { color: var(--texte-doux); font-weight: 600; padding: .5rem .9rem !important; border-radius: 999px; }
.barre .nav-link:hover { color: #fff; }
.barre .nav-link.active { color: #fff; background: rgba(94, 200, 255, 0.15); }
.barre .navbar-nav .nav-item { list-style: none; }

/* Home */
.hero { padding: 5rem 0 4rem; }

.pastille {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(255, 211, 107, 0.12);
    border: 1px solid rgba(255, 211, 107, 0.35);
    color: var(--or);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 1.2rem;
}

.hero-titre { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; text-align: inherit; text-transform: none; margin-bottom: 1.2rem; }

.degrade {
    background: linear-gradient(90deg, var(--cyan), #c8a6ff, var(--or));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-texte { font-size: 1.2rem; color: var(--texte-doux); max-width: 34rem; margin: 0 auto 2rem; }
@media (min-width: 992px) { .hero-texte { margin-left: 0; } }

.ile-flottante {
    width: min(380px, 80%);
    image-rendering: pixelated;
    border-radius: 28px;
    filter: drop-shadow(0 30px 40px rgba(94, 200, 255, 0.25));
    animation: flotte 5s ease-in-out infinite;
}

@keyframes flotte { 50% { transform: translateY(-16px); } }

@media (prefers-reduced-motion: reduce) {
    .ile-flottante, .ciel { animation: none; }
}

.statut { color: var(--texte-doux); }
.voyant { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff5d6c; margin-right: 6px; }
.voyant.en-ligne { background: #3ee07a; box-shadow: 0 0 0 0 rgba(62, 224, 122, .6); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 122, 0); } }

.section-titre { text-align: center; margin-bottom: 2rem; font-size: 2rem; }

.atout { padding: 1.8rem; transition: transform .2s, border-color .2s; }
.atout:hover { transform: translateY(-4px); border-color: rgba(94, 200, 255, 0.45); }
.atout img { margin-bottom: 1rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.atout h3 { font-size: 1.2rem; }
.atout p { color: var(--texte-doux); margin-bottom: 0; }

.etapes { padding-left: 1.2rem; margin: 1rem 0 0; color: var(--texte-doux); }
.etapes li { margin-bottom: .6rem; }
.etapes strong { color: #fff; }

.code {
    font-family: ui-monospace, Consolas, monospace;
    background: rgba(94, 200, 255, 0.12);
    border: 1px solid rgba(94, 200, 255, 0.35);
    color: #fff;
    border-radius: 8px;
    padding: 1px 8px;
    cursor: pointer;
}

.article { color: inherit; overflow: hidden; transition: transform .2s; }
.article:hover { color: inherit; transform: translateY(-4px); }
.article-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.article p { color: var(--texte-doux); }

.appel { background: linear-gradient(135deg, rgba(94, 200, 255, 0.15), rgba(200, 107, 255, 0.15)); }
.appel p { color: var(--texte-doux); margin-bottom: 1.5rem; }

/* Footer */
.pied { background: rgba(4, 8, 20, 0.85); border-top: 1px solid var(--bord); color: var(--texte-doux); }
.pied h4 { color: #fff; font-size: 1rem; letter-spacing: .08em; }
.pied a { color: var(--texte-doux); }
.pied a:hover { color: #fff; }
.pied hr { border-color: var(--bord); }
