/* ============================================
   STYLES HEADER ET FOOTER
   ============================================ */

/* ============================================
   HEADER - BARRE DE NAVIGATION STICKY
   ============================================ */

header {
    background-color: #252525;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #00d4ff 0%, #9b59b6 50%, #ffd700 100%) 1;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

body.light-mode header {
    background-color: #e3dfdf;
    color: #2d2d2d;
}

/* Logo et titre */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.3em;
    letter-spacing: 1px;
    color: white;
}

body.light-mode .logo-text h1 {
    color: #2d2d2d;
}

.logo-text p {
    font-size: 0.5em;
    color: #aaa;
    font-style: italic;
    font-family: 'PixelFont', 'Courier New', monospace;
}

body.light-mode .logo-text p {
    color: #666;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 500;
    transition: color 0.3s;
}

body.light-mode nav a {
    color: #2d2d2d;
}

nav a:hover {
    color: #b0b0b0;
}

body.light-mode nav a:hover {
    color: #1a1a1a;
}

/* Toggle thème */
.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s;
}

body.light-mode .theme-toggle {
    color: #2d2d2d;
}




/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #252525;
    padding: 10px 40px;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #00d4ff 0%, #9b59b6 50%, #ffd700 100%) 1;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

body.light-mode footer {
    background-color: #e3dfdf;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.footer-links p {
    font-size: 0.5em;
    color: #aaa;
    margin: 0 0 10px 0;
    font-family: 'PixelFont', 'Courier New', monospace;
    line-height: 1.1; /* Réduit l'interligne */
}

.footer-links p:last-child {
    margin-bottom: 0;
}

body.light-mode .footer-links p {
    color: #666;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0px;
    transition: color 0.3s;
    font-size: 0.9em; /* Augmente la taille des liens */
    font-family: 'PixelFont', 'Courier New', monospace;
    line-height: 1.3;
}

body.light-mode .footer-links a {
    color: #2d2d2d;
}

body.universe-tggames .footer-links a {
    color: #ff4444;
}

body.universe-tggames.light-mode .footer-links a {
    color: #cc0000;
}

body.universe-blopeur .footer-links a {
    color: #00d4ff;
}

body.universe-blopeur.light-mode .footer-links a {
    color: #0088cc;
}

.footer-links a:hover {
    color: #b0b0b0;
}

body.light-mode .footer-links a:hover {
    color: #666;
}

.social-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid #444;
}

body.light-mode .social-icons {
    border-top: 1px solid #ccc;
}

.social-icons a {
    color: #aaa;
    font-size: 1em; /* Taille augmentée */
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: #00d4ff;
    transform: scale(1.2);
}



/* ============================================
   RESPONSIVE HEADER ET FOOTER
   ============================================ */

/* Mobiles (768px et moins) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }
}
