/* === FONTS RÉTRO === */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Creepster&family=Bungee&display=swap');

/* === VARIABLES CSS === */
:root {
    --neon-pink: #ff1493;
    --neon-green: #00ff00;
    --neon-blue: #00bfff;
    --neon-purple: #8a2be2;
    --neon-yellow: #ffff00;
    --neon-cyan: #00ffff;
    --neon-orange: #ff4500;
    --neon-red: #ff0000;
    --dark-bg: #000033;
    --retro-border: #ff00ff;
}

/* === CURSEUR RÉTRO AVEC EFFETS MFMF2FM === */
/* Les effets de curseur sont maintenant gérés par cursor.js */
* {
    cursor: url('https://cur.cursors-4u.net/nature/nat-11/nat1021.cur'), auto !important;
}

body {
    cursor: url('https://cur.cursors-4u.net/nature/nat-11/nat1021.cur'), auto;
}

/* === BODY ET LAYOUT === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(45deg, #000033, #330033, #003333, #333300);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Arrière-plan animé avec patterns */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 20, 147, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 0, 0.2) 0%, transparent 50%);
    animation: backgroundPulse 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* === HEADER === */
header {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-green), var(--neon-yellow));
    border: 3px solid var(--retro-border);
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 0 30px var(--neon-pink);
    overflow: hidden;
}

marquee {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
}

.header-content {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.header-content h1 {
    font-family: 'Bungee', cursive;
    font-size: 3em;
    margin: 0;
    text-shadow: 3px 3px 0px var(--neon-pink), 6px 6px 0px var(--neon-blue);
}

.pixel-art-border {
    border: 5px dashed var(--neon-yellow);
    padding: 10px;
    margin: 20px auto;
    width: fit-content;
    background: rgba(255, 255, 255, 0.1);
}

.welcome-gif {
    max-width: 200px;
    height: auto;
}

/* === CONTAINER ET LAYOUT === */
.container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* === SIDEBARS === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    border: 3px solid;
    border-radius: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px currentColor;
    position: relative;
    overflow: hidden;
}

.sidebar-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.neon-pink { border-color: var(--neon-pink); color: var(--neon-pink); }
.neon-green { border-color: var(--neon-green); color: var(--neon-green); }
.neon-blue { border-color: var(--neon-blue); color: var(--neon-blue); }
.neon-purple { border-color: var(--neon-purple); color: var(--neon-purple); }
.neon-yellow { border-color: var(--neon-yellow); color: var(--neon-yellow); }
.neon-cyan { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.neon-orange { border-color: var(--neon-orange); color: var(--neon-orange); }
.neon-red { border-color: var(--neon-red); color: var(--neon-red); }

.section-title {
    font-family: 'Bungee', cursive;
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* === LECTEUR MUSICAL === */
.music-player {
    text-align: center;
}

.now-playing {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.player-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.retro-btn {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    border: 2px solid var(--neon-yellow);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.retro-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 20, 147, 0.8);
    animation: buttonBounce 0.5s ease;
}

@keyframes buttonBounce {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

.volume-control {
    margin-top: 15px;
}

.volume-control input {
    width: 100%;
    margin-top: 5px;
}

/* === NAVIGATION === */
.retro-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.retro-nav li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.retro-nav a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.retro-nav a:hover {
    text-shadow: 0 0 10px currentColor;
    transform: translateX(5px);
}

/* === STATS === */
.stats p {
    margin: 8px 0;
    font-weight: bold;
}

.counter {
    font-family: 'Courier New', monospace;
    background: rgba(0, 255, 0, 0.2);
    padding: 2px 8px;
    border-radius: 5px;
}

.counter-gif {
    width: 100%;
    margin-top: 10px;
}

/* === BLINKIES === */
.blinkies-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.blinkie {
    max-width: 100%;
    height: auto;
    border: 1px solid currentColor;
}

.custom-blinkie {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-green));
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
    border: 2px solid var(--neon-yellow);
}

/* === CONTENU PRINCIPAL === */
.main-content {
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid var(--neon-cyan);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px var(--neon-cyan);
    position: relative;
}

.content-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--neon-yellow);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 20px 0;
}

.feature-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.feature-box {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid;
    background: rgba(0, 0, 0, 0.7);
}

.feature-box h3 {
    margin: 0 0 10px 0;
    font-family: 'Bungee', cursive;
}

.animated-gifs {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.animated-gifs img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 10px currentColor);
}

/* === STAMPS === */
.stamps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stamp {
    width: 88px;
    height: 31px;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
}

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

.custom-stamp {
    font-family: 'Comic Neue', cursive;
    text-transform: uppercase;
}

/* === LIENS COOL === */
.cool-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.retro-link {
    color: inherit;
    text-decoration: none;
    padding: 8px;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: bold;
}

.retro-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* === LIVRE D'OR === */
.guestbook-entry {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid currentColor;
    font-size: 14px;
}

/* === ZONE INTERACTIVE === */
.interactive-zone {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.click-counter {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.2em;
}

/* === EFFETS DE TEXTE === */
.rainbow-text {
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowMove 3s ease-in-out infinite;
    font-weight: bold;
}

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

.glitter-text {
    color: #ffff00;
    text-shadow: 
        0 0 5px #ffff00,
        0 0 10px #ffff00,
        0 0 15px #ffff00,
        0 0 20px #ff1493,
        0 0 35px #ff1493,
        0 0 40px #ff1493;
    animation: glitter 1.5s ease-in-out infinite alternate;
}

@keyframes glitter {
    0% { 
        text-shadow: 
            0 0 5px #ffff00,
            0 0 10px #ffff00,
            0 0 15px #ffff00,
            0 0 20px #ff1493,
            0 0 35px #ff1493,
            0 0 40px #ff1493;
    }
    100% { 
        text-shadow: 
            0 0 2px #ffff00,
            0 0 5px #ffff00,
            0 0 8px #ffff00,
            0 0 12px #00ffff,
            0 0 18px #00ffff,
            0 0 25px #00ffff;
    }
}

.blink-text {
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.sparkle-text {
    color: #ffffff;
    text-shadow: 
        0 0 5px #ffff00,
        0 0 10px #ff1493,
        0 0 15px #00ffff;
    animation: sparkleText 2s ease-in-out infinite;
}

@keyframes sparkleText {
    0%, 100% { 
        text-shadow: 
            0 0 5px #ffff00,
            0 0 10px #ff1493,
            0 0 15px #00ffff;
    }
    50% { 
        text-shadow: 
            0 0 10px #ffff00,
            0 0 20px #ff1493,
            0 0 30px #00ffff,
            0 0 40px #ffffff;
    }
}

.neon-text {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% { text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor; }
    100% { text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor; }
}

/* === FOOTER === */
footer {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-red), var(--neon-orange));
    border: 3px solid var(--neon-cyan);
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 0 30px var(--neon-purple);
    overflow: hidden;
}

.footer-content {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
}

.footer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-btn {
    height: 31px;
    width: auto;
}

.custom-btn {
    padding: 5px 15px;
    border: 2px solid var(--neon-yellow);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    font-weight: bold;
    font-size: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 250px 1fr 250px;
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
    }
    
    .sidebar-box {
        min-width: 250px;
        flex-shrink: 0;
    }
    
    .header-content h1 {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .sidebar {
        flex-direction: column;
    }
    
    .sidebar-box {
        min-width: auto;
    }
    
    .feature-boxes {
        grid-template-columns: 1fr;
    }
    
    .stamps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === ANIMATIONS SUPPLÉMENTAIRES === */
.spinning-gif {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.flame-gif {
    animation: flicker 0.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

.star-gif {
    animation: twinkle 1s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* === SCROLLBAR CUSTOM === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-green));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

/* === SÉLECTION DE TEXTE === */
::selection {
    background: var(--neon-pink);
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

::-moz-selection {
    background: var(--neon-pink);
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* === APERÇU LIVRE D'OR === */
.guestbook-preview {
    text-align: center;
}

#recent-messages {
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.recent-message {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 3px solid var(--neon-pink);
    text-align: left;
    font-size: 0.85em;
    animation: messageSlideIn 0.5s ease-out;
}

.recent-message .message-author {
    font-weight: bold;
    color: var(--neon-yellow);
    font-size: 0.9em;
}

.recent-message .message-text {
    color: #ffffff;
    margin-top: 4px;
    line-height: 1.3;
    /* Limiter à 2 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-message .message-date {
    color: var(--neon-cyan);
    font-size: 0.75em;
    margin-top: 4px;
    font-style: italic;
}

.loading-messages {
    color: var(--neon-cyan);
    font-style: italic;
    padding: 15px;
    text-align: center;
}

.no-recent-messages {
    color: var(--neon-yellow);
    font-style: italic;
    padding: 15px;
    text-align: center;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive pour l'aperçu */
@media (max-width: 768px) {
    #recent-messages {
        max-height: 150px;
    }
    
    .recent-message {
        padding: 6px;
        font-size: 0.8em;
    }
}