:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --gray: #bdbdbd;
    --card: #111;
    --border: #222;
}

body.light {
    --bg: #f5f5f5;
    --text: #0a0a0a;
    --gray: #444;
    --card: #ffffff;
    --border: #ddd;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.6s ease, color 0.6s ease;
    overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

body.light nav { background: rgba(255,255,255,0.7); }

nav img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text);
    transform: scale(1.25);
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.nav-links {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: 0.4s;
}

nav a:hover::after { width: 100%; }

.theme-switch {
    margin-left: 30px;
    width: 56px;
    height: 30px;
    background: var(--border);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.theme-switch span {
    width: 24px;
    height: 24px;
    margin-left: 3px;
    border-radius: 50%;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.45s ease;
}

body.light .theme-switch span {
    transform: translateX(26px) rotate(360deg);
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
}

.hero span {
    color: var(--gray);
    font-size: 2.85rem;
}

.hero p {
    margin-top: 25px;
    font-size: 1.2rem;
    max-width: 700px;
    color: var(--gray);
}

.hero button {
    margin-top: 45px;
    padding: 16px 45px;
    border: 2px solid var(--text);
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.hero button:hover {
    background: var(--text);
    color: var(--bg);
}

/* ===== SECTIONS ===== */
section {
    padding: 120px 20px;
    max-width: 1100px;
    margin: auto;
}

section h2 {
    font-size: 2.6rem;
    margin-bottom: 30px;
}

section p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 35px;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--text);
}

/* ===== DISCORD ===== */
.discord {
    text-align: center;
    background: var(--card);
    padding: 90px 20px;
}

.discord a {
    display: inline-block;
    margin-top: 35px;
    padding: 16px 55px;
    border: 2px solid var(--text);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.discord a:hover {
    background: var(--text);
    color: var(--bg);
}

/* ===== FORM ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

input, textarea {
    background: transparent;
    border: 1px solid var(--border);
    padding: 15px;
    color: var(--text);
    font-size: 1rem;
}

.submit {
    margin-top: 10px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: 2px solid var(--text);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, transform 0.2s ease, box-shadow 0.35s ease;
}

.submit:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ===== FOOTER ===== */
footer {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
    border-top: 1px solid var(--border);
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 140px 20px 60px 20px;
    max-width: 900px;
    margin: auto;
}

.page-content h1, .page-content h2 {
    font-weight: 800;
}

.page-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.page-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-content p, .page-content li {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.card-section {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: 0.3s;
}

.card-section:hover {
    transform: translateY(-3px);
    border-color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media(max-width: 1024px) {
    nav {
        padding: 15px 30px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    nav a {
        margin: 0 10px;
    }
    
    .theme-switch {
        margin-left: 15px;
    }
}

@media(max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero span {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .page-content h1 {
        font-size: 2.2rem;
    }
    
    .page-content h2 {
        font-size: 1.6rem;
    }
}

/* ===== TÉMOIGNAGES ===== */
.intro-text {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 600;
    text-align: right;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.testimonial-cta {
    text-align: center;
    padding: 40px;
}

.testimonial-cta h2 {
    margin-bottom: 20px;
}

.testimonial-cta p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}