:root {
    --color-dark: #121212;
    --color-card-bg: #1e1e1e;
    --color-accent: #3e93d3;
    --color-text-light: #ffffff;
    --color-text-muted: #aaaaaa;
    --color-error: #a30000;
    --footer-bg: #090a0c;
}

/* --- PERSONNALISATION DE LA SÉLECTION --- */
::selection {
    background-color: #ff0000;
    color: #ffffff;
}
::-moz-selection {
    background-color: #ff0000;
    color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrap { flex: 1; }
a { text-decoration: none; color: white; transition: 0.3s; }
ul { list-style: none; }

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: #000000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; padding: 5px 0;}
.nav-links a:hover { opacity: 1; color: var(--color-accent); }
.nav-links i { margin-right: 5px; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.bar { width: 100%; height: 3px; background-color: white; transition: all 0.3s ease-in-out; }

/* --- HEADER --- */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
}

.hero-background {
    width: 100%;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: 
        linear-gradient(to top, var(--color-dark) 0%, rgba(18, 18, 18, 0.5) 40%, rgba(18, 18, 18, 0.1) 100%), 
        url('https://portal2communityedition.com/_app/immutable/assets/autumn1.XKmKmQ4n.webp') no-repeat center center/cover;
    box-shadow: inset 0 -20px 20px rgba(0, 0, 0, 0.5);
}

.hero-logo-img {
    max-width: 600px;
    width: 90%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}

.subtitle { font-size: 1.1rem; color: #ccc; margin-bottom: 20px; max-width: 600px; }

.powered-by-rev {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -15px;
    margin-bottom: 30px;
}

.prerequisite-note {
    background-color: rgba(62, 147, 211, 0.2);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 0.9rem;
    max-width: 90%;
    font-weight: bold;
}

.btn-group { display: flex; justify-content: center; gap: 15px; padding: 0 20px; flex-wrap: wrap; }

.btn {
    padding: 12px 30px;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.btn-primary { 
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(62, 147, 211, 0.4);
    min-width: 280px;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-github { background-color: #24292e; border-color: #24292e; }

.container { max-width: 1100px; margin: 0 auto; padding: 50px 20px; }

.section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-left: 5px solid var(--color-accent);
    padding-left: 15px;
    text-transform: uppercase;
    font-weight: bold;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.card {
    background: var(--color-card-bg);
    border-radius: 8px;
    border: 1px solid #333;
    transition: 0.3s;
    overflow: hidden;
}

.card:hover { transform: translateY(-5px); border-color: var(--color-accent); }

.card-image { width: 100%; height: 150px; background-size: cover; background-position: center; }
.card-image-1 { background-image: url('https://cdn.discordapp.com/attachments/1456026965432602687/1480253234621845785/screenshot.jpg?ex=69af00c0&is=69adaf40&hm=85bc9b36857a839bb1324b3f8b557d5cec84eacf033557fd3b9d777cfd315a37'); }
.card-image-2 { background-image: url('https://cdn.discordapp.com/attachments/1456026965432602687/1480254124053368842/p2ce_background_laser_intro.png?ex=69af0194&is=69adb014&hm=223ff0a9fb78f44a92e8918db10ca53d8cc2a9fde6a23d62524bc9b6057e8f39&'); }
.card-image-3 { background-image: url('https://cdn.discordapp.com/attachments/1456026965432602687/1480254125013729290/p2ce_background_gentle_hum.png?ex=69af0195&is=69adb015&hm=51124fda8f1dd11bedf2d7c00ed2636ff37ac218de258c7b14036c0c888676d4&'); }

.card-content { padding: 15px; }

/* --- STYLE FAQ --- */
.faq-item {
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    background: #252525;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: 0.3s;
}

.faq-question:hover {
    background: #2c2c2c;
    color: var(--color-accent);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: var(--color-card-bg);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 15px 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- FOOTER --- */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid #1a1c1e;
    padding: 40px 50px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left { display: flex; flex-direction: column; gap: 15px; }
.footer-mono-logo { height: 45px; width: auto; filter: brightness(0.9); }
.copyright { color: var(--color-text-muted); font-size: 0.85rem; font-weight: 500; }

.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.footer-socials { display: flex; gap: 15px; }
.footer-socials img { height: 24px; width: 24px; filter: invert(0.7); transition: 0.3s; }
.footer-socials img:hover { filter: invert(1); }

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    nav { padding: 12px 20px; }
    .hamburger { display: flex; }
    
    .nav-links {
        width: 100%; 
        flex-direction: column; 
        position: absolute; 
        top: 67px; 
        left: 0;
        background: #000; 
        border-top: 1px solid #333; 
        max-height: 0; 
        opacity: 0; 
        overflow: hidden; 
        transition: 0.5s;
        align-items: center; 
        justify-content: center;
        gap: 20px;
    }

    .nav-links.active { 
        max-height: 400px; 
        padding: 20px 0; 
        opacity: 1; 
    }

    .footer-container { flex-direction: column; align-items: center; text-align: center; }
    .footer-right { align-items: center; }
}