/* ============================================
   VARIABLES - Modifiez ces valeurs pour changer les couleurs
   ============================================ */
:root {
    /* Couleurs chaudes apaisantes */
    --primary-orange: #ff9966;
    --primary-peach: #ffcc99;
    --primary-coral: #ff6b6b;
    --accent-gold: #ffd700;
    --bg-dark: #1a1410;
    --bg-card: rgba(40, 30, 25, 0.85);
    --text-light: #fff5eb;
    --text-muted: #d4b5a0;
    --glow-orange: rgba(255, 153, 102, 0.4);
    --glow-peach: rgba(255, 204, 153, 0.3);
    
    /* Typographie */
    --font-display: 'Righteous', cursive;
    --font-body: 'Poppins', sans-serif;
}

/* Pour changer les couleurs, modifiez les valeurs ci-dessus.
   Exemples :
   - Bleu/Violet : --primary-orange: #6b8aff; --primary-peach: #a8c0ff;
   - Vert/Émeraude : --primary-orange: #52d3aa; --primary-peach: #a8e6cf;
   - Rose/Magenta : --primary-orange: #ff6b9d; --primary-peach: #ffc1e3;
*/

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: blur(2px);
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(26, 20, 16, 0.85) 100%);
    z-index: 1;
}

/* ============================================
   BACKGROUND OVERLAY
   ============================================ */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 30%, var(--glow-orange) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--glow-peach) 0%, transparent 50%);
    opacity: 0.15;
    animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.15; transform: scale(1) rotate(0deg); }
    100% { opacity: 0.25; transform: scale(1.1) rotate(5deg); }
}

/* ============================================
   AUDIO PLAYER
   ============================================ */
.audio-player {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 153, 102, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.audio-player:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 8px 40px var(--glow-orange);
    transform: translateY(-2px);
}

.audio-toggle {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-coral));
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

.audio-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 0 25px var(--glow-orange);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 100px;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--glow-orange);
}

#volumeValue {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 40px;
    font-weight: 500;
}

/* ============================================
   VISIT COUNTER
   ============================================ */
.visit-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 153, 102, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.visit-counter:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 8px 40px var(--glow-orange);
    transform: translateY(-2px);
}

.counter-icon {
    font-size: 20px;
}

#visitCount {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-orange);
}

.counter-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--primary-orange);
    box-shadow: 0 0 50px var(--glow-orange);
    margin: 0 auto 30px;
    position: relative;
    overflow: hidden;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 50px var(--glow-orange);
        border-color: var(--primary-orange);
    }
    50% { 
        box-shadow: 0 0 70px var(--glow-peach), 0 0 100px var(--glow-orange);
        border-color: var(--primary-peach);
    }
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-peach), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 153, 102, 0.15), rgba(255, 204, 153, 0.1));
    border-radius: 10px;
    border: 2px solid rgba(255, 153, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out backwards;
    position: relative; /* pour le tooltip */
}

/* Tooltip instantané personnalisé pour les badges */
.badge-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(255, 153, 102, 0.95);
    color: var(--bg-dark);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1000;
}

.badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(255, 153, 102, 0.95);
}

.badge:hover .badge-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.3) rotate(-180deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.badge:nth-child(1) { animation-delay: 0.1s; }
.badge:nth-child(2) { animation-delay: 0.2s; }
.badge:nth-child(3) { animation-delay: 0.3s; }
.badge:nth-child(4) { animation-delay: 0.4s; }
.badge:nth-child(5) { animation-delay: 0.5s; }
.badge:nth-child(6) { animation-delay: 0.6s; }
.badge:nth-child(7) { animation-delay: 0.7s; }
.badge:nth-child(8) { animation-delay: 0.8s; }

.badge:hover {
    transform: translateY(-8px) scale(1.2) rotate(15deg);
    border-color: var(--primary-orange);
    box-shadow: 0 8px 25px var(--glow-orange);
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.member-since {
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    margin-bottom: 70px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), var(--primary-peach), transparent);
    border-radius: 2px;
}

/* ============================================
   DISCORD CARD - BLACK DESIGN
   ============================================ */
.discord-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 153, 102, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discord-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.1), transparent);
    transition: left 0.6s ease;
}

.discord-card:hover::before {
    left: 100%;
}

.discord-card:hover {
    border-color: #5865F2;
    box-shadow: 0 15px 60px rgba(88, 101, 242, 0.4);
    transform: translateY(-5px);
}

.discord-main-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Top Section */
.discord-top-section {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Avatar Section */
.discord-avatar-section {
    flex-shrink: 0;
}

.discord-avatar-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
}

.avatar-decoration {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 86px;
    height: 86px;
    z-index: 2;
    pointer-events: none;
    display: none;
    /* L'animation sera appliquée dynamiquement depuis Discord API */
}

.avatar-decoration.visible {
    display: block;
}

.discord-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.discord-status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background: #747F8D;
    z-index: 3;
}

.discord-status-badge.online { background: #43B581; }
.discord-status-badge.idle { background: #FAA61A; }
.discord-status-badge.dnd { background: #F04747; }

/* User Section */
.discord-user-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    justify-content: center;
    padding-top: 0;
}

.discord-username-line {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.discord-username {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2;
}

.discord-guild-tag {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 4px;
    padding: 2px 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: auto;
    line-height: 1;
}

#guildTagEmoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

#guildTagEmoji img {
    width: 13px;
    height: 13px;
    display: block;
    object-fit: contain;
    border-radius: 2px;
}

#guildTagText {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.discord-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.discord-badge {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    cursor: help;
}

.discord-badge:hover {
    transform: scale(1.3);
}

.discord-badge img {
    width: 100%;
    height: 100%;
    display: block;
}

.discord-status-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #747F8D;
    flex-shrink: 0;
}

.status-dot.online { background: #43B581; }
.status-dot.idle { background: #FAA61A; }
.status-dot.dnd { background: #F04747; }

.status-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Logo Section */
.discord-logo-section {
    flex-shrink: 0;
}

.discord-logo {
    width: 60px;
    height: 60px;
    background: #5865F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.5);
    transition: all 0.3s ease;
}

.discord-logo:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.7);
}

/* Activity Section */
.discord-activity-section {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.activity-icon-large {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#activityIconText {
    font-size: 32px;
}

.activity-icon-large img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.activity-details-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.activity-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.3;
}

.activity-details-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.activity-state-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.activity-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.activity-icon-small {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 4px;
    display: none;
}

.activity-icon-small.visible {
    display: block;
}

.activity-icon-small img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .discord-logo-section {
        display: none;
    }
}

@media (max-width: 640px) {
    .discord-card {
        padding: 16px;
    }

    .discord-top-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .discord-avatar-wrapper {
        width: 60px;
        height: 60px;
    }

    .discord-avatar {
        width: 60px;
        height: 60px;
    }

    .avatar-decoration {
        width: 76px;
        height: 76px;
    }

    .discord-username {
        font-size: 1.1rem;
    }

    .activity-icon-large {
        width: 50px;
        height: 50px;
    }

    #activityIconText {
        font-size: 26px;
    }
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 153, 102, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 102, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 15px 40px var(--glow-orange);
    transform: translateY(-8px) scale(1.03);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-peach));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.social-link {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 153, 102, 0.2);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 102, 0.15), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: var(--primary-orange);
    box-shadow: 0 20px 50px var(--glow-orange);
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: rgba(255, 153, 102, 0.1);
    transition: all 0.4s ease;
}

.social-link:hover .social-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-coral));
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 5px 20px var(--glow-orange);
}

.social-name {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

/* ============================================
   PROJECTS GRID
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 153, 102, 0.2);
    border-radius: 25px;
    padding: 35px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-orange), #ffffff);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-orange);
    box-shadow: 0 25px 60px var(--glow-orange);
}

/* Archived Projects */
.project-card.archived {
    opacity: 0.65;
    border-color: rgba(255, 255, 255, 0.1);
}

.project-card.archived::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    pointer-events: none;
}

.project-card.archived:hover {
    opacity: 0.8;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.archived-badge {
    background: rgba(100, 100, 100, 0.3);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.project-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-coral));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 5px 20px var(--glow-orange);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.7;
    font-size: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tag {
    background: rgba(255, 153, 102, 0.1);
    border: 1px solid rgba(255, 153, 102, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-orange);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-orange);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 15px;
    color: var(--accent-gold);
}

/* ============================================
   MODALE PROJET (popup)
   ============================================ */

.project-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.project-toggle {
    background: none;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-toggle:hover {
    background: var(--primary-orange);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Overlay (fond flouté) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

/* Modale (popup centré) */
.modal-content {
    background: var(--bg-card);
    border: 2px solid rgba(255, 153, 102, 0.3);
    border-radius: 25px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 0; /* pas de padding ici, on le met sur header/body pour que la scrollbar reste dans le cadre */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Bouton fermer (X) */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-orange);
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 153, 102, 0.1);
    transform: rotate(90deg);
}

/* Header modale */
.modal-header {
    padding: 40px 40px 0 40px;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-peach), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 30px 0;
    padding-right: 50px; /* espace pour le bouton X */
}

/* Corps modale */
.modal-body {
    color: var(--text-muted);
    line-height: 1.8;
    padding: 0 40px 40px 40px;
}

.modal-body h3 {
    color: var(--primary-orange);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.modal-body li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-body li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-body strong {
    color: var(--primary-orange);
}

/* Scrollbar modale */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 153, 102, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

/* Responsive modale */
@media (max-width: 768px) {
    .modal-header {
        padding: 30px 20px 0 20px;
    }
    
    .modal-body {
        padding: 0 20px 30px 20px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    border-top: 2px solid rgba(255, 153, 102, 0.1);
    margin-top: 100px;
}

.footer p {
    margin: 8px 0;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .username {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 15px;
    }

    .discord-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .audio-player {
        padding: 10px 18px;
        flex-wrap: wrap;
    }

    .volume-slider {
        width: 80px;
    }

    .visit-counter {
        padding: 10px 18px;
    }

    .stat-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .username {
        font-size: 2.2rem;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
}