/* Reset simple */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

/* Fond global avec dégradé un peu plus clair */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #2c3157 0, #111827 40%, #020617 100%);
    color: #f5f5f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Conteneur principal */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(129, 140, 248, 0.45);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(120deg, #7dd3fc, #a855f7, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-sub {
    font-size: 0.8rem;
    color: #a1a4c5;
}

/* NAVIGATION */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: #e2e5ff;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 1px rgba(148, 163, 255, 0.2);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.main-nav a:hover {
    background: radial-gradient(circle at top, #4f46e5, #22c55e);
    color: #f9fafb;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
    transform: translateY(-1px);
}

/* CONTENU PRINCIPAL */
.main-content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    flex: 1;
}

h1 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.subtitle {
    font-size: 0.95rem;
    color: #b1b3d4;
    margin-bottom: 1.5rem;
}

/* GRILLE & CARTES GLOBALES */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    margin-top: 1.25rem;
}

/* Cartes */
.card {
    position: relative;
    border-radius: 1.4rem;
    padding: 1.3rem 1.4rem;
    background: rgba(24, 32, 63, 0.92);
    overflow: hidden;
    z-index: 0;
    color: #e5e7f5;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(148, 163, 255, 0.18);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.85),
        rgba(244, 114, 182, 0.7),
        rgba(34, 197, 94, 0.85)
    );
    opacity: 0.35;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0.5px;
    border-radius: 1.3rem;
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.05), rgba(15, 23, 42, 0.96));
    z-index: -1;
}

/* Effet survol : carte “surélevée + glow + clair” */
.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(191, 219, 254, 0.75);
    filter: brightness(1.05);
}

.card:hover::before {
    opacity: 0.9;
}

/* Espacement entre plusieurs cartes dans une même section */
section .card + .card {
    margin-top: 1.6rem;
}

/* Texte des cartes */
.card p,
.card ul {
    font-size: 0.95rem;
    color: #d7dcff;
}

.card ul {
    padding-left: 1.1rem;
    list-style: disc;
}

/* Liens bien visibles dans les cartes */
.card a {
    color: #4ade80;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.card a:hover {
    color: #bbf7d0;
    text-decoration-thickness: 2px;
}

/* Boutons */
.btn {
    display: inline-block;
    margin-top: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5, #22c55e);
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.55);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.75);
}

/* CODE INLINE */
code {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
    font-size: 0.9rem;
    border: 1px solid rgba(148, 163, 255, 0.55);
}

/* ===================== */
/* Accueil : bloc 2 colonnes */
/* ===================== */

.hero-main-card {
    padding: 1.6rem 1.8rem;
}

.hero-columns {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.hero-col {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 255, 0.25);
}

/* Icônes rondes pour Contact, Discord, etc. */
.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    color: #f9fafb;
    box-shadow: 0 0 16px rgba(15, 23, 42, 0.8);
    font-size: 1.2rem;
}

.icon-discord {
    background: #5865f2;
}

.icon-mail {
    background: #0ea5e9;
}

.icon-other {
    background: #22c55e;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid rgba(148, 163, 255, 0.3);
    background: rgba(15, 23, 42, 0.98);
    padding: 1.1rem 0;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
    font-size: 0.9rem;
    color: #a5a8c7;
}

.site-footer a {
    color: #c4c7ff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        justify-content: flex-start;
    }

    h1 {
        font-size: 1.7rem;
    }
}
