@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

:root {
    --bg-main: #060606;
    --bg-card: #0f0f0f;
    --bg-card-hover: #151515;
    --border-color: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.24);
    --text-primary: #ffffff;
    --text-secondary: #9e9e9e;
    --text-muted: #5e5e5e;
    --accent-white: #ffffff;
    --accent-silver: #e4e4e7;
    --accent-gray: #262626;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Halos d'ambiance - 100% Monochrome Noir & Blanc */
.ambient-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(6, 6, 6, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 24px 30px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 45px;
}

.main-logo-wrap {
    display: inline-block;
    margin-bottom: 18px;
    position: relative;
}

.main-logo-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.08);
}

.main-title {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

/* Section styling */
.section {
    margin-bottom: 35px;
}

.section-title {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 22px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 20px;
}

.grid-servers {
    grid-template-columns: repeat(3, 1fr);
}

.grid-projects {
    grid-template-columns: repeat(3, 1fr);
}

/* Base Card */
.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Server Cards (top row) */
.server-card {
    height: 240px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* WestSide Card monochrome */
.card-westside {
    background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.06) 0%, rgba(15, 15, 15, 0.98) 85%);
    cursor: pointer;
    text-decoration: none;
}

.card-westside:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-top {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
}

.discord-badge {
    position: relative;
    z-index: 10;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 0;
    outline: none;
    font-family: inherit;
}

.discord-badge:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.card-center {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.westside-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
    border-radius: 12px;
}

.brand-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
}

/* Soon server cards */
.card-soon {
    background: #0d0d0d;
    cursor: default;
}

.soon-overlay-1,
.soon-overlay-2 {
    background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.03) 0%, rgba(13, 13, 13, 0.98) 80%);
}

.soon-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
}

.soon-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.85;
}

.soon-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.soon-title {
    font-size: 1.25rem;
    color: #8c8c8c;
}

/* Card bottom */
.card-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: #ffffff;
}

.card:hover .card-arrow {
    transform: translateX(4px);
}

.arrow-pink,
.arrow-purple,
.arrow-cyan {
    color: #ffffff;
}

.arrow-muted {
    color: var(--text-muted);
}

/* Projects Cards (lower row) - Noir et Blanc */
.project-card {
    height: 120px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-boutique {
    background: linear-gradient(135deg, #0e0e0e 0%, #161616 100%);
    position: relative;
}

.project-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background: radial-gradient(ellipse at right center, rgba(255, 255, 255, 0.08) 0%, rgba(14, 14, 14, 0) 70%);
    pointer-events: none;
}

.card-boutique:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.06);
}

.project-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    color: #ffffff;
}

.project-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-communaute {
    background: linear-gradient(135deg, #0e0e0e 0%, #171717 100%);
    position: relative;
}

.project-glow-purple {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background: radial-gradient(ellipse at right center, rgba(255, 255, 255, 0.07) 0%, rgba(14, 14, 14, 0) 70%);
    pointer-events: none;
}

.card-communaute:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.06);
}

.card-project-soon {
    cursor: default;
    background: #0d0d0d;
}

.text-muted {
    color: #737373;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #5a5a5a;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.03em;
    flex-wrap: wrap;
}

.footer-sep {
    color: #3f3f46;
    user-select: none;
}

.footer-link {
    color: #8c8c8c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: #5a5a5a;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: #ffffff;
    font-weight: 800;
}

.lang-sep {
    color: #383838;
    font-size: 0.75rem;
    user-select: none;
}

.footer-by strong {
    color: #8c8c8c;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-servers, .grid-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-servers, .grid-projects {
        grid-template-columns: 1fr;
    }
    .main-title {
        font-size: 2.3rem;
    }
    .footer {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

/* ===================================
   Styles CGU / CGVU - Cartes comme la page d'accueil (Noir & Blanc)
   =================================== */
.cgu-container {
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.cgu-hero {
    position: relative;
    background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.06) 0%, rgba(15, 15, 15, 0.98) 85%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
    margin-bottom: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.cgu-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.cgu-hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cgu-hero p {
    color: #a0a0a0;
    font-size: 1rem;
    max-width: 680px;
    margin: 0 auto 15px;
    line-height: 1.6;
}

.cgu-date {
    display: inline-block;
    font-size: 0.78rem;
    color: #666666;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Grille de cartes CGU calquée sur la page d'accueil */
.cgu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.cgu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cgu-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.05);
}

.cgu-card-wide {
    grid-column: span 2;
}

.cgu-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.cgu-pill-num {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 20px;
    background: #ffffff;
    color: #000000;
    text-transform: uppercase;
}

.cgu-pill-theme {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

.cgu-card-center {
    flex-grow: 1;
    margin-bottom: 18px;
}

.cgu-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.cgu-card-desc {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.cgu-card-desc p {
    margin-bottom: 10px;
}

.cgu-card-desc p:last-child {
    margin-bottom: 0;
}

.cgu-card-list {
    margin: 10px 0 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cgu-card-list li {
    color: #c4c4c4;
    font-size: 0.88rem;
    line-height: 1.5;
}

.cgu-card-list li::marker {
    color: #ffffff;
}

.cgu-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 10px;
}

/* Boutons de référence légale - Monochrome ultra-soigné */
.cgu-ref-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.2s ease;
}

.cgu-ref-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cgu-ref-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cgu-ref-btn:hover svg {
    transform: translate(2px, -2px);
}

@media (max-width: 860px) {
    .cgu-grid {
        grid-template-columns: 1fr;
    }
    .cgu-card-wide {
        grid-column: span 1;
    }
}
