/* mahu-styles.css - Fichier de style centralisé */
:root {
    /* Thème Sombre */
    --primary-color: #ffffff; /* Blanc pour les éléments principaux (boutons, etc.) */
    --secondary-color: #0a0a0a; /* Noir pour le texte sur les éléments clairs */
    --background-color: #000000; /* Fond noir pur */
    --card-background: #1a1a1a; /* Gris foncé pour les cartes */
    --text-primary: #f0f0f0; /* Blanc cassé pour le texte principal */
    --text-secondary: #a0a0a0; /* Gris clair pour le texte secondaire */
    --border-color: #333333; /* Gris foncé pour les bordures */
    --blue: #007bff; /* Gardé pour certains éléments comme les icônes */
}

/* Règle globale pour un dimensionnement prévisible */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    position: relative; /* Nécessaire pour l'effet de lumière */
    overflow-x: hidden; /* Empêche le défilement horizontal causé par l'effet */
}

/* Effet de lumière blanche floue */
body::before {
    content: '';
    position: absolute;
    top: -200px; /* Positionné en haut */
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    filter: blur(100px);
    z-index: -1; /* Derrière tout le contenu */
    pointer-events: none; /* Non cliquable */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barre de Navigation Améliorée */
header {
    background-color: transparent; /* Le fond est géré dans index.html */
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333; /* Bordure plus sombre pour le thème noir */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    transition: transform 0.3s ease;
    height: 50px; 
    vertical-align: middle;
}

.logo:hover img {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

nav ul a:hover::after {
    width: 100%;
    left: 0;
}

nav a:hover, .logo:hover {
    color: #cccccc; /* Léger gris au survol */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions a.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.nav-actions a.primary:hover {
    background-color: #f0f0f0;
    color: var(--secondary-color);
}

/* Menu Burger pour mobile */
.menu-burger {
    display: none; /* Caché sur bureau */
    font-size: 1.8em;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 1001;
}

.nav-links-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.98); /* Fond sombre pour le menu mobile */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 1.5em;
}
.nav-links-mobile.active {
    display: flex;
}
.nav-links-mobile a {
    color: var(--text-primary); /* Le texte est déjà clair, c'est parfait */
}
body.no-scroll {
    overflow: hidden;
}

/* Sections Générales */
section {
    padding: 80px 0;
}

h1, h2, h3 {
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

/* Grilles et Cartes */
.grid-2, .grid-3 { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
    color: var(--text-primary);
    margin-top: 0;
}

/* Boutons */
.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: var(--text-primary); /* Bouton blanc */
    color: var(--secondary-color); /* Texte noir */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}
.btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
.btn-gradient {
    background: var(--text-primary);
}