/* style.css - TRIX MUSIK V8.1 */

* { box-sizing: border-box; }

:root {
    --bg-color: #e6e6e6;
    --dark-section: #1a1a1a;
    --primary-color: #02a6cf;
    --text-color: #3b3b3e;
    --white: #ffffff;
    --matrix-green: #00ff41;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-section);
    background-image: url('background.png'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0; padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* --- THEME QUANTUM --- */
body[data-theme="quantum"] {
    background-image: url('matrix-bg.gif'); 
    background-size: cover;
    background-attachment: fixed;
    color: #ddd;
}

body[data-theme="quantum"] header {
    background: rgba(26, 26, 26, 0.95); 
    border-bottom: none; /* DEMANDE: Retire la ligne verte sous le menu */
}

/* On garde la ligne sous le Hero pour Quantum, ou on l'enlève si tu préfères. 
   Ici je l'ai laissée pour séparer le logo du contenu, dis-moi si tu veux l'enlever aussi. */
body[data-theme="quantum"] .hero {
    border-bottom: 2px solid var(--matrix-green);
}

body[data-theme="quantum"] .feature-card {
    background: #0a0a0a;
    border: 1px solid #004400;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}
body[data-theme="quantum"] .feature-card h3 { color: var(--matrix-green); }

body[data-theme="quantum"] .badge-wip {
    background: var(--matrix-green); 
    color: black; 
    box-shadow: 0 0 10px var(--matrix-green);
}

body[data-theme="quantum"] footer {
    border-top: 2px solid var(--matrix-green);
}

/* --- HEADER & NAV --- */
header {
    background: rgba(26, 26, 26, 0.95); 
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4); 
    padding: 0;
}

nav ul {
    display: flex; justify-content: center; list-style: none;
    gap: 20px; padding: 15px 0; margin: 0; align-items: center; flex-wrap: wrap;
}

nav a {
    color: var(--white); text-decoration: none; font-weight: 600;
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: 0.3s;
}
nav a:hover, nav a.active {
    color: var(--primary-color); text-shadow: 0 0 10px rgba(2, 166, 207, 0.6);
}

.lang-btn {
    background: transparent; border: none; color: white; padding: 5px; 
    cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; gap: 5px;
}

/* --- HERO --- */
.hero {
    background: var(--dark-section); color: var(--white);
    text-align: center; padding: 0.5rem 0; border-bottom: 2px solid var(--primary-color); 
}
.hero img.logo { width: 90%; max-width: 250px; height: auto; display: block; margin: 0 auto; }
.hero p { font-style: italic; opacity: 0.9; font-size: 0.95rem; font-weight: bold; letter-spacing: 1px; margin: -5px 0 2px 0; }

/* --- GLOBAL LAYOUT --- */
.container { max-width: 1450px; margin: 0 auto; padding: 2rem; flex: 1; width: 100%; position: relative; }

/* NOUVEAU: Centrage des titres de section */
.section-header {
    margin-bottom: 2rem; 
    border-left: 5px solid var(--primary-color);
    background: white; padding: 15px 25px; border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header.centered {
    display: table; /* Ou block avec margin auto */
    margin: 0 auto 30px auto;
    text-align: center;
    border-left: none;
    border-top: 5px solid var(--primary-color);
}
/* Exception pour Quantum en mode centré */
body[data-theme="quantum"] .section-header.centered {
    background: #000;
    border: 1px solid var(--matrix-green);
    border-top: 5px solid var(--matrix-green);
}
body[data-theme="quantum"] .section-header h2 { color: var(--matrix-green); }


.section-header h2 { margin: 0 0 5px 0; color: #333; font-size: 1.6rem; }
.section-header p { margin: 0; color: #555; font-size: 1rem; }

/* --- GRILLES & CARTES --- */
.hub-grid, .grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; 
    margin-top: 30px; 
    justify-content: center;
    padding-bottom: 40px;
}

/* Feature Card (Utilisé partout maintenant) */
.feature-card {
    background: white; border-radius: 12px; overflow: hidden;
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex; flex-direction: column; transition: 0.3s; position: relative;
    width: 100%; max-width: 400px; margin: 0 auto;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* Images dans les cartes */
.feature-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 4px solid var(--primary-color); }

/* Vidéos dans les cartes (MAO) */
.feature-card .video-wrapper {
    width: 100%; height: 200px; /* Force la même taille que les images */
    border-bottom: 4px solid var(--primary-color);
}

.feature-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.feature-card h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.3rem; margin-top:0; }

.badge-wip {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    background: #ff9800; color: black; font-weight: bold;
    padding: 3px 10px; border-radius: 4px; font-size: 0.7rem; text-transform: uppercase;
}

.btn-feature {
    background: var(--text-color); color: white; padding: 10px 25px;
    border-radius: 50px; text-decoration: none; margin-top: 15px; display: inline-block; font-size: 0.9rem;
    transition: 0.3s;
}
.btn-feature:hover { background: var(--primary-color); }

/* --- NAVIGATION LATÉRALE (Boutons Transparents) --- */
.side-nav-btn {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.3); color: white;
    width: 50px; height: 100px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; text-decoration: none; z-index: 90;
    border-radius: 8px; transition: 0.3s; cursor: pointer;
}
.side-nav-btn:hover { background: rgba(2, 166, 207, 0.8); }
.side-nav-left { left: 0; border-top-right-radius: 50px; border-bottom-right-radius: 50px; }
.side-nav-right { right: 0; border-top-left-radius: 50px; border-bottom-left-radius: 50px; }

/* Masquer les boutons latéraux sur mobile */
@media (max-width: 900px) {
    .side-nav-btn { display: none; }
}

/* --- FOOTER --- */
footer {
    background: var(--dark-section); color: var(--white);
    text-align: center; padding: 3rem 2rem; margin-top: auto;
    border-top: 2px solid var(--primary-color);
}
.footer-links a { color: #aaa; text-decoration: none; margin: 0 10px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-color); }

.btn-donate { display: inline-block; color: white; padding: 10px 25px; margin: 5px; border-radius: 50px; text-decoration: none; font-weight: bold;}
.btn-paypal { background: #0070ba; } 
.btn-tipeee { background: #d63031; }

/* VIDEO WRAPPER STANDARD */
.video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; cursor: pointer;
}
.video-wrapper iframe, .video-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.play-button {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px; background: rgba(255,0,0,0.85); border-radius: 50%; pointer-events: none;
}
.play-button::after {
    content: ''; border-style: solid; border-width: 8px 0 8px 16px; border-color: transparent transparent transparent white;
    position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%);
}

/* --- FORMS --- */
form { background: white; padding: 2rem; max-width: 800px; margin: 0 auto; border-radius: 8px; }
form input, form textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; background-color: #f9f9f9; }
form button { background: var(--primary-color); color: white; border: none; padding: 12px; cursor: pointer; width: 100%; }

/* --- DOCU LAYOUT --- */
.docu-layout { display: flex; gap: 40px; align-items: flex-start; }
.docu-content { flex: 3; background: white; padding: 40px; border-radius: 8px; color: #333; }
.docu-sidebar { flex: 1; background: var(--dark-section); color: white; padding: 20px; border-radius: 8px; position: sticky; top: 100px; }

@media (max-width: 900px) {
    .docu-layout { flex-direction: column; }
    .docu-sidebar { width: 100%; position: static; }
}