/* ============================================
   RÉINITIALISATION ET BASE
   ============================================ */

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

body {
    font-family: 'PixelFont', 'Courier New', monospace;
    background-color: #353535;
    min-height: 100vh;
    color: white;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

p {
    font-family: 'PixelFont', 'Courier New', monospace;
    font-size: 0.85em;
}

/* Mode clair */
body.light-mode {
    background-color: #d0d0d0;
    color: #2d2d2d;
}

/* ============================================
   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: #f5f5f5;
    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.9em;
    color: #aaa;
    font-style: italic;
}

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;
}

/* ============================================
   LAYOUT PRINCIPAL - PAGE D'ACCUEIL
   ============================================ */

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

/* Layout 2/3 - 1/3 (texte - cards) */
.main-layout {
    display: flex;
    height: calc(100vh - 100px);
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    padding: 20px;
}

/* Section texte (2/3) avec scroll */
.text-section {
    flex: 2;
    overflow-y: auto;
    padding-right: 30px;
}

/* Section cards (1/3) avec scroll */
.cards-column {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 10px;
}

/* ============================================
   STYLES SECTION TEXTE
   ============================================ */

/* Titres généraux */
.text-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00d4ff 0%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

body.light-mode .text-section h1 {
    filter: none;
}

.text-section h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #aaa;
}

body.light-mode .text-section h2 {
    color: #666;
}

/* Bandeau header avec logo */
.header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 30px;
}

.header-titles {
    flex: 1;
    border-bottom: 1px solid #444;
}

.header-titles h1 {
    margin-bottom: 10px;
}

.header-titles h2 {
    margin-bottom: 0;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 120px;
    width: auto;
    display: block;
}

/* Blocs univers */
.universe-intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.universe-block h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #00d4ff;
}

.universe-block p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.55em !important;
    font-family: 'PixelFont', 'Courier New', monospace !important;
}

body.light-mode .universe-block p {
    color: #2d2d2d;
}

/* Section CTA (Call To Action) */
.cta-section {
    background: rgba(255, 215, 0, 0.08);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

body.light-mode .cta-section {
    background: rgba(255, 215, 0, 0.12);
}

.cta-section p {
    font-size: 0.64em !important;
    line-height: 1.6;
    font-family: 'PixelFont', 'Courier New', monospace !important;
}

/* ============================================
   THÈMES PAR UNIVERS
   ============================================ */

/* === UNIVERS TGGAMES - ROUGE === */

body.universe-tggames .text-section h1,
body.universe-tggames h1 {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.universe-tggames .universe-block h3,
body.universe-tggames h3 {
    color: #ff4444;
}

body.universe-tggames.light-mode h3 {
    color: #cc0000;
}

body.universe-tggames .steam-btn,
body.universe-tggames .action-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

body.universe-tggames .steam-btn:hover,
body.universe-tggames .action-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.6);
}

body.universe-tggames .back-btn {
    color: #ff4444;
    border-color: #ff4444;
}

body.universe-tggames.light-mode .back-btn {
    color: #cc0000;
    border-color: #cc0000;
}

body.universe-tggames .back-btn:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* === UNIVERS BLOPEUR - BLEU === */

body.universe-blopeur .text-section h1,
body.universe-blopeur h1 {
    background: linear-gradient(135deg, #00d4ff 0%, #0088cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.universe-blopeur .universe-block h3,
body.universe-blopeur h3 {
    color: #00d4ff;
}

body.universe-blopeur.light-mode h3 {
    color: #0088cc;
}

body.universe-blopeur .action-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0088cc 100%);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

body.universe-blopeur .action-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

body.universe-blopeur .back-btn {
    color: #00d4ff;
    border-color: #00d4ff;
}

body.universe-blopeur.light-mode .back-btn {
    color: #0088cc;
    border-color: #0088cc;
}

body.universe-blopeur .back-btn:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* ============================================
   STYLES SPÉCIFIQUES PAGE D'ACCUEIL
   ============================================ */

/* Titre principal de l'accueil sans gradient */
body.home-page .text-section h1 {
    font-size: 3.8em;
    color: white;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    margin-bottom: 3px;
}

body.home-page.light-mode .text-section h1 {
    color: #2d2d2d;
}

/* Titres des blocs univers */
body.home-page .universe-block h3 {
    font-size: 1.8em;
    text-decoration: none;
}

body.home-page .universe-block a {
    text-decoration: none;
}

body.home-page .universe-block a:hover h3 {
    text-decoration: none;
    opacity: 0.8;
}

/* Couleurs spécifiques des titres h3 */
body.home-page .universe-block:first-child h3 {
    color: #ff4444; /* TGGames en rouge */
}

body.home-page .universe-block:last-child h3 {
    color: #00d4ff; /* Blopeur en bleu */
}

/* Sous-titres h4 */
body.home-page .universe-block h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #aaa;
    font-weight: 400;
}

body.home-page.light-mode .universe-block h4 {
    color: #666;
}

/* ============================================
   MINI CARDS (Colonne droite)
   ============================================ */

.card-mini {
    border-radius: 15px;
    padding: 25px;
    min-height: 180px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Card TGGames (gradient rouge) */
.card-mini.card-tggames {
    background: linear-gradient(135deg, #8b4a4a 0%, #c54b6c 50%, #e91e63 100%);
}

body.light-mode .card-mini.card-tggames {
    background: linear-gradient(135deg, #a85a5a 0%, #d55b7c 50%, #e91e63 100%);
}

body.light-mode .card-mini.card-tggames h3,
body.light-mode .card-mini.card-tggames p {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Blopeur (gradient bleu) */
.card-mini.card-blopeur {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a4a7c 50%, #1e3c72 100%);
}

body.light-mode .card-mini.card-blopeur {
    background: linear-gradient(135deg, #2a5a8c 0%, #3a6aac 50%, #2e5c92 100%);
}

body.light-mode .card-mini.card-blopeur h3,
body.light-mode .card-mini.card-blopeur p {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Structure interne des cards */
.card-mini-text {
    flex: 2;
}

.card-mini-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-mini-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.card-mini-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Réduction pour l'icône Twitch */
.card-mini.card-blopeur .card-mini-icon img {
    width: 80%;
    height: 80%;
}

.card-mini-icon .icon-emoji {
    font-size: 3.5em;
}

.card-mini-icon .icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Texte des cards */
.card-mini h3 {
    font-size: 1.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-mini p {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.95;
    flex: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Bouton des cards */
.card-btn {
    background-color: #1b2838;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    align-self: flex-start;
    margin-top: 10px;
}

.card-btn:hover {
    background-color: #2a475e;
}

/* ============================================
   BARRES DE DÉFILEMENT PERSONNALISÉES
   ============================================ */

/* Scrollbar colonne cards (cyan) */
.cards-column::-webkit-scrollbar {
    width: 8px;
}

.cards-column::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.cards-column::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.cards-column::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Scrollbar section texte (violet) */
.text-section::-webkit-scrollbar {
    width: 8px;
}

.text-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.text-section::-webkit-scrollbar-thumb {
    background: rgba(155, 89, 182, 0.3);
    border-radius: 10px;
}

.text-section::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 89, 182, 0.5);
}

/* ============================================
   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: #f5f5f5;
}

.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.9em;
    color: #aaa;
    margin: 0 0 10px 0;
}

.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;
}

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: 0.8em;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablettes (968px et moins) */
@media (max-width: 968px) {
    .main-layout {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }
    
    .text-section {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .cards-column {
        height: 600px;
    }
}

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

    .main-layout {
        padding: 10px;
    }
    
    .text-section h1 {
        font-size: 2em;
    }
    
    .text-section h2 {
        font-size: 1.2em;
    }

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

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

