/* --- MENU BURGER MOBILE --- */
@media (max-width: 700px) {
    nav {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: 0;
        width: 75vw;
        max-width: 340px;
        height: 100vh;
        background: rgba(35,39,42,0.98);
        box-shadow: -4px 0 24px #181a1b55;
        z-index: 1002;
        padding: 44px 28px 28px 28px;
        gap: 22px;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.36s cubic-bezier(.23,1.02,.32,1), opacity 0.22s;
    }
    .mobile-nav.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-nav-overlay {
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.38);
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s;
    }
    .mobile-nav-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-nav a {
        color: #f1f1f1;
        font-size: 1.22em;
        padding: 16px 0 16px 12px;
        border-radius: 10px;
        text-align: left;
        transition: background 0.18s, color 0.18s;
        outline: none;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    .mobile-nav a:hover, .mobile-nav .active {
        background: #f7c87333;
        color: #f7c873;
    }
    .mobile-nav-toggle {
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 1100;
        background: #23272aee;
        color: #f7c873;
        border: none;
        border-radius: 14px;
        padding: 14px 18px;
        font-size: 2.2em;
        cursor: pointer;
        box-shadow: 0 2px 12px #181a1b33;
        display: block;
        transition: background 0.2s, color 0.2s, transform 0.2s;
        touch-action: manipulation;
    }
    .mobile-nav-toggle:focus {
        outline: 2.5px solid #f7c873;
        outline-offset: 2.5px;
        transform: scale(1.10);
    }
    body.mobile-menu-open {
        overflow: hidden;
        touch-action: none;
    }
}

@media (min-width: 701px) {
    .mobile-nav-toggle, .mobile-nav {
        display: none !important;
    }
}
/* Réduction de l’espace entre hero et contenu sur toutes les pages hors accueil */
.hero-tight {
    padding-bottom: 8px !important;
}
.about-content .section-title,
.features-content .section-title,
.contact-content .section-title {
    margin-top: 10px !important;
}
/* Réduction de l’espace entre hero et contenu sur rejoindre.html uniquement */
.hero-tight {
    padding-bottom: 8px !important;
}
.join-content .section-title {
    margin-top: 10px !important;
}
/* Réduction de l’espace sous les titres sur toutes les pages sauf l’accueil */
.page-content h1, .page-content .section-title {
    margin-bottom: 16px !important;
}
.container {
    /* ...existing code... */
    transition: box-shadow 0.25s, transform 0.22s;
}
.container:hover {
    box-shadow: 0 12px 40px 0 #181a1b66, 0 2px 8px #181a1b33;
    transform: translateY(-4px) scale(1.012);
}

@media (max-width: 800px) {
    .container {
        max-width: 98vw;
        padding: 18px 2vw 18px 2vw;
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero-logo {
        width: 80px;
        height: 80px;
    }
}

/* Animation d’apparition */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.8s cubic-bezier(.23,1.02,.32,1) forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}
.hero, .container h1, .section-title {
    animation: fadeInUp 0.8s cubic-bezier(.23,1.02,.32,1) both;
}
/* Fond animé particules */
#particles-js {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

/* Section hero */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding-top: 48px;
    padding-bottom: 32px;
    text-align: center;
}
.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #5865f2;
    box-shadow: 0 4px 32px #181a1b55;
    margin-bottom: 18px;
    background: #23272a;
}
.hero h1 {
    font-size: 2.8em;
    color: #f7c873;
    margin: 0 0 10px 0;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 16px #181a1b77;
}
.hero .desc {
    font-size: 1.25em;
    color: #e0e0e0;
    margin-bottom: 22px;
    margin-top: 0;
}
.hero-btn {
    font-size: 1.18em;
    padding: 14px 36px;
    margin-bottom: 18px;
    margin-top: 0;
    border-radius: 14px;
    box-shadow: 0 4px 16px #181a1b33;
}
.ip-hero {
    font-size: 1.22em;
    color: #43b581;
    font-weight: bold;
    margin-top: 8px;
    letter-spacing: 1px;
    background: #202225cc;
    border-radius: 8px;
    display: inline-block;
    padding: 7px 22px;
    box-shadow: 0 2px 8px #181a1b22;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #23272a 0%, #181a1b 100%);
    background-size: 200% 200%;
    animation: gradientMove 12s ease-in-out infinite;
    color: #f1f1f1;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background 0.5s, color 0.5s;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Thème clair */
body.theme-light {
    background: linear-gradient(120deg, #f7f7fa 0%, #e3e6f3 100%);
    color: #23272a;
}
body.theme-light header {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 16px #bfc8e6cc;
}
body.theme-light .container {
    background: rgba(255,255,255,0.98);
    color: #23272a;
}
body.theme-light .section-title, body.theme-light .hero h1 {
    color: #5865f2;
}
body.theme-light .button-main {
    background: linear-gradient(90deg, #5865f2 60%, #43b581 100%);
    color: #fff;
}
body.theme-light .button-main:hover {
    background: linear-gradient(90deg, #43b581 0%, #5865f2 100%);
}
body.theme-light .info, body.theme-light .ip-hero {
    background: #e3e6f3cc;
    color: #23272a;
}
body.theme-light nav a {
    color: #23272a;
}
body.theme-light nav a:hover, body.theme-light nav .active {
    background: #5865f222;
    color: #5865f2;
}
body.theme-light .plugins-list li:before {
    color: #5865f2;
}
body.theme-light .logo-header, body.theme-light .hero-logo {
    background: #fff;
    border-color: #5865f2;
}
body.theme-light footer {
    color: #5865f2;
}

/* Thème "aqua" (exemple) */
body.theme-aqua {
    background: linear-gradient(120deg, #43e8d8 0%, #5865f2 100%);
    color: #181a1b;
}
body.theme-aqua header {
    background: rgba(67,232,216,0.95);
    box-shadow: 0 2px 16px #5865f2cc;
}
body.theme-aqua .container {
    background: rgba(255,255,255,0.92);
    color: #181a1b;
}
body.theme-aqua .section-title, body.theme-aqua .hero h1 {
    color: #5865f2;
}
body.theme-aqua .button-main {
    background: linear-gradient(90deg, #43e8d8 60%, #5865f2 100%);
    color: #fff;
}
body.theme-aqua .button-main:hover {
    background: linear-gradient(90deg, #5865f2 0%, #43e8d8 100%);
}
body.theme-aqua .info, body.theme-aqua .ip-hero {
    background: #e3e6f3cc;
    color: #181a1b;
}
body.theme-aqua nav a {
    color: #181a1b;
}
body.theme-aqua nav a:hover, body.theme-aqua nav .active {
    background: #43e8d822;
    color: #43e8d8;
}
body.theme-aqua .plugins-list li:before {
    color: #43e8d8;
}
body.theme-aqua .logo-header, body.theme-aqua .hero-logo {
    background: #fff;
    border-color: #43e8d8;
}
body.theme-aqua footer {
    color: #5865f2;
}
/* Sélecteur de thème */
    /* --- VERSION UNIQUE ET AMÉLIORÉE --- */
    .container {
        max-width: 700px;
        margin: 48px auto 32px auto;
        background: rgba(35,39,42,0.72);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.32);
        padding: 40px 28px 32px 28px;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: box-shadow 0.25s, transform 0.22s, background 0.3s;
        backdrop-filter: blur(12px) saturate(1.2);
        -webkit-backdrop-filter: blur(12px) saturate(1.2);
    }
    .container:hover {
        box-shadow: 0 12px 40px 0 #181a1b66, 0 2px 8px #181a1b33;
        transform: translateY(-4px) scale(1.012);
        background: rgba(35,39,42,0.82);
    }
    .button-main {
        display: inline-block;
        margin-top: 12px;
        background: linear-gradient(90deg, #5865f2 60%, #4752c4 100%);
        color: #fff;
        padding: 12px 28px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1em;
        box-shadow: 0 2px 8px #181a1b33;
        transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
        border: none;
        outline: none;
    }
    .button-main:hover, .button-main:focus {
        background: linear-gradient(90deg, #4752c4 0%, #5865f2 100%);
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 4px 16px #5865f288;
    }
    .button-main:focus {
        outline: 2px solid #f7c873;
        outline-offset: 2px;
    }
    .theme-switcher {
        position: fixed;
        top: 18px;
        right: 18px;
        z-index: 200;
        background: #23272aee;
        color: #f1f1f1;
        border-radius: 12px;
        box-shadow: 0 2px 8px #181a1b33;
        padding: 8px 18px;
        font-size: 1em;
        border: none;
        cursor: pointer;
        outline: none;
        transition: background 0.2s, color 0.2s, transform 0.2s;
        font-weight: bold;
        letter-spacing: 1px;
        opacity: 0.92;
        animation: themePulse 2.5s infinite alternate;
    }
    .theme-switcher:focus {
        outline: 2px solid #f7c873;
        outline-offset: 2px;
        transform: scale(1.08);
    }
    @keyframes themePulse {
        0% { box-shadow: 0 2px 8px #181a1b33; }
        100% { box-shadow: 0 4px 18px #f7c87355; }
    }
.theme-switcher {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 200;
    background: #23272aee;
    color: #f1f1f1;
    border-radius: 12px;
    box-shadow: 0 2px 8px #181a1b33;
    padding: 8px 18px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background 0.2s, color 0.2s;
}
body.theme-light .theme-switcher {
    background: #fff;
    color: #23272a;
    box-shadow: 0 2px 8px #bfc8e6cc;
}
body.theme-aqua .theme-switcher {
    background: #43e8d8;
    color: #181a1b;
    box-shadow: 0 2px 8px #5865f2cc;
}
header {
    background: rgba(35,39,42,0.82);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    animation: fadeInUp 0.7s cubic-bezier(.23,1.02,.32,1) both;
}
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 14px 0 14px 0;
    background: transparent;
    border-radius: 14px;
    box-shadow: 0 2px 12px #181a1b22;
    margin: 0 18px;
}
nav a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.13em;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
    position: relative;
    z-index: 1;
    outline: none;
}
nav a:hover, nav .active {
    background: #f7c87333;
    color: #f7c873;
    box-shadow: 0 2px 12px #f7c87333;
    transform: translateY(-2px) scale(1.04);
}
.logo-header {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 18px;
    border: 2.5px solid #5865f2;
    background: #23272a;
    vertical-align: middle;
    box-shadow: 0 4px 16px #181a1b55;
    transition: box-shadow 0.2s, border 0.2s;
    outline: none;
}
.container {
    max-width: 700px;
    margin: 48px auto 32px auto;
    background: rgba(35,39,42,0.97);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.32);
    padding: 40px 28px 32px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
h1 {
    margin-top: 0;
    font-size: 2.5em;
    color: #f7c873;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px #181a1b55;
}
.desc {
    font-size: 1.18em;
    color: #e0e0e0;
    margin-bottom: 24px;
}
.info {
    background: #202225;
    border-radius: 12px;
    padding: 18px 0 12px 0;
    margin-bottom: 24px;
    color: #b9bbbe;
    font-size: 1.13em;
    box-shadow: 0 2px 8px #181a1b33;
}
.ip {
    font-size: 1.25em;
    color: #43b581;
    font-weight: bold;
    letter-spacing: 1px;
}
.button-main {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(90deg, #5865f2 60%, #4752c4 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    box-shadow: 0 2px 8px #181a1b33;
    transition: background 0.18s, transform 0.18s;
    border: none;
}
.button-main:hover {
    background: linear-gradient(90deg, #4752c4 0%, #5865f2 100%);
    transform: translateY(-2px) scale(1.04);
}
.plugins-list {
    margin: 18px 0 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.plugins-list li {
    margin: 10px 0;
    padding-left: 0;
    font-size: 1.08em;
    position: relative;
    padding-left: 18px;
}
.plugins-list li:before {
    content: '•';
    color: #f7c873;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: 0;
}
.section-title {
    color: #f7c873;
    margin-top: 38px;
    margin-bottom: 14px;
    font-size: 1.35em;
    border-bottom: 1.5px solid #333;
    display: inline-block;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}
input, textarea {
    background: #202225;
    border: 1.5px solid #444;
    color: #f1f1f1;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
    width: 90%;
    font-size: 1.05em;
    box-shadow: 0 1px 4px #181a1b22;
}
form label {
    display: block;
    margin-bottom: 7px;
    text-align: left;
    margin-left: 5%;
    font-size: 1.05em;
    color: #f7c873;
}
form button {
    background: #43b581;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.08em;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    font-weight: 600;
    box-shadow: 0 2px 8px #181a1b22;
}
form button:hover {
    background: #357a4b;
    transform: translateY(-1px) scale(1.03);
}
footer {
    margin-top: 56px;
    color: #b9bbbe;
    font-size: 1.08em;
    text-align: center;
    padding-bottom: 28px;
    letter-spacing: 0.2px;
    background: transparent;
    border-top: 1.5px solid #23272a33;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 -2px 12px #181a1b22;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
