:root {
    --primary: #d4251f;
    --dark: #0f0f0f;
    --darker: #1a1a1a;
    --light: #f5f5f5;
    --gray: #2a2a2a;
    --gray-light: #444;
    --brown: #4a3728;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark);
    background-image:
        linear-gradient(rgba(212, 37, 31, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 37, 31, 0.055) 1px, transparent 1px),
        linear-gradient(rgba(212, 37, 31, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 37, 31, 0.022) 1px, transparent 1px);
    background-size: 55px 55px, 55px 55px, 11px 11px, 11px 11px;
    animation: gridBgScroll 22s linear infinite;
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes gridBgScroll {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 55px 55px, 55px 55px, 11px 11px, 11px 11px; }
}

.navbar {
    background-color: var(--darker);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 2px solid var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

/* Bouton Burger (masqué par défaut sur PC) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero {
    padding: 80px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.hero-right h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 24px;
    color: var(--gray-light);
    margin-bottom: 20px;
    font-weight: 300;
}

.description {
    font-size: 16px;
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary {
    background-color: var(--gray);
    border-color: var(--gray);
    color: var(--light);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--gray-light);
    border-color: var(--gray-light);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-link:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

.games-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--light);
    font-weight: 700;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background-color: var(--darker);
    border: 1px solid var(--gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.game-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: linear-gradient(135deg, rgba(212, 37, 31, 0.1), rgba(74, 55, 40, 0.1));
}

.card-header.minecraft { background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(139, 195, 74, 0.1)); }
.card-header.roblox { background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 165, 0, 0.1)); }
.card-header.geometry { background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(33, 150, 243, 0.1)); }

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body p {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray);
}

.info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
}

.info-item strong { color: var(--primary); }
.info-item span { color: var(--light); }

.page-header {
    background-color: var(--darker);
    border-bottom: 2px solid var(--primary);
    padding: 60px 30px;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 16px;
    color: var(--gray-light);
}

.profile-section {
    margin-bottom: 60px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-box {
    background-color: var(--darker);
    border: 1px solid var(--gray);
    padding: 30px;
    border-radius: 8px;
}

.info-box h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-field {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray);
}

.info-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-field label {
    display: block;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-field p {
    font-size: 16px;
    color: var(--light);
}

.text-content {
    font-size: 15px;
    color: var(--light);
    line-height: 1.8;
}

.points-list { list-style: none; }
.points-list li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--light);
    padding-left: 20px;
    position: relative;
}

.points-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form-box,
.contact-info-box {
    background-color: var(--darker);
    border: 1px solid var(--gray);
    padding: 30px;
    border-radius: 8px;
}

.contact-form-box h2,
.contact-info-box h2 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    background-color: var(--gray);
    border: 1px solid rgba(212, 37, 31, 0.3);
    color: var(--light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.social-box {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray);
}

.social-box:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.social-box h4 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-handle {
    font-size: 16px;
    color: var(--light);
    margin-bottom: 12px;
    font-weight: 600;
}

.back-nav {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray);
}

.footer {
    background-color: var(--darker);
    border-top: 2px solid var(--primary);
    padding: 30px;
    text-align: center;
    margin-top: 60px;
    font-size: 14px;
    color: var(--gray-light);
}

/* RESPONSIVE DESIGN & ADAPTATION ÉCRAN */
@media (max-width: 768px) {
    /* Activation visuelle du bouton burger */
    .burger-menu {
        display: flex;
    }

    /* Transformation du menu en tiroir mobile vertical complet */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--darker);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.1, 1, 0.1, 1);
        border-top: 1px solid var(--gray);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 18px;
    }

    .nav-menu a.active::after {
        bottom: -4px;
    }

    /* Animation du bouton burger quand il est ouvert (X shape) */
    .burger-menu.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .burger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Ajustement des grilles globales */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-right h1 { font-size: 40px; }
    .profile-grid, .contact-grid, .games-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 36px; }
    .container { padding: 40px 20px; }
    .games-section h2 { font-size: 28px; }
}

/* ===== CRAZY BUTTON ===== */
.crazy-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: linear-gradient(135deg, #ff6b00, #ff0099, #6b00ff, #ff6b00);
    background-size: 300% 300%;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 9000;
    animation: crazyPulse 2s ease-in-out infinite, crazyGrad 3s ease infinite;
    box-shadow: 0 0 18px rgba(255, 107, 0, 0.6), 0 0 36px rgba(255, 0, 153, 0.3);
    transition: transform 0.15s ease;
    user-select: none;
}
.crazy-btn:hover  { transform: scale(1.12) rotate(-3deg); }
.crazy-btn:active { transform: scale(0.93) rotate(3deg); }

@keyframes crazyPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(255,107,0,0.6), 0 0 36px rgba(255,0,153,0.3); }
    50%       { box-shadow: 0 0 30px rgba(255,107,0,0.9), 0 0 60px rgba(255,0,153,0.5), 0 0 90px rgba(107,0,255,0.35); }
}
@keyframes crazyGrad {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== COPY BUTTON ===== */
.pseudo-copy-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}
.copy-btn {
    background: none;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    color: var(--gray-light);
    cursor: pointer;
    padding: 1px 6px;
    font-size: 12px;
    line-height: 1.6;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { border-color: #4caf50; color: #4caf50; background: rgba(76,175,80,0.08); }

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    .logo-section { gap: 10px; font-size: 18px; }
    .logo { width: 40px; height: 40px; }
    .hero { padding: 40px 15px; }
    .hero-img { width: 200px; height: 200px; }
    .hero-right h1 { font-size: 32px; }
    .subtitle { font-size: 18px; }
    .page-header { padding: 40px 15px; }
    .page-header h1 { font-size: 28px; }
    .container { padding: 30px 15px; }
    .info-box, .contact-form-box, .contact-info-box { padding: 20px; }
    .games-section h2 { font-size: 24px; margin-bottom: 25px; }
}