/* --- Réinitialisation des marges, polices et autres éléments de base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out; /* Transition globale */
}

/* --- Fond noir de la page --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212; /* Fond sombre avec nuance */
    color: #f0f0f0; /* Texte légèrement plus clair pour le contraste */
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* Transition fluide */
}

body.light-mode {
    background-color: #ffffff; /* Fond blanc */
    color: #333333; /* Texte gris foncé pour un meilleur contraste */
}

/* Exemple pour ajuster le header en mode clair */
body.light-mode header {
    background: linear-gradient(135deg, #f0f0f0, #dcdcdc); /* Fond dégradé clair pour le header */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); /* Ombre légère pour ajouter de la profondeur */
}

body.light-mode header .container {
    background-color: #f8f8f8; /* Fond clair pour le container dans le mode clair */
    padding: 15px 30px; /* Espace autour du contenu */
    box-sizing: border-box; /* Inclut padding et bordure dans le calcul de la taille */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); /* Ombre subtile pour ajouter de la profondeur */
    border-bottom: 1px solid #e0e0e0; /* Bordure claire pour séparer le header du reste */
}

/* --- Header --- */
header {
    background: linear-gradient(135deg, #2b2b2b, #383838);
    padding: 15px 30px; /* Réduit l'espace autour du contenu */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Ombre pour effet de profondeur */
    border-bottom: 1px solid #444;
    transition: padding 0.3s ease, box-shadow 0.3s ease; /* Transition pour un effet fluide */
}

header.shrink {
    padding: 10px 30px; /* Réduit l'espace interne du header */
    background: linear-gradient(135deg, #1c1c1c, #333); /* Change la couleur du fond si tu veux */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Ombre plus légère quand il est réduit */
}

/* Autres styles du header */
header .container {
    display: flex;
    justify-content: space-between; /* Répartit l'espace entre les éléments */
    align-items: center; /* Aligne les éléments verticalement */
    width: 100%; /* Assure-toi que l'élément prend toute la largeur */
    background-color: #2c2c2c; /* Couleur de fond gris pour mode sombre */
    transition: background-color 0.3s ease; /* Transition pour la couleur de fond */
}

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

header .logo h1 {
    font-size: 32px;
    color: #00c2ff; /* Bleu plus doux pour le logo */
    font-weight: 700;
}

header .logo .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

header .logo .logo-img:hover {
    transform: scale(1.1); /* Effet de zoom sur le logo */
}

/* --- Menu de navigation --- */
.nav {
    display: flex;
    gap: 25px;
    justify-content: flex-end; /* Aligne les éléments à droite */
    align-items: center; /* Centre les éléments verticalement */
    width: 100%; /* Assure-toi que la nav prend toute la largeur */
}

.nav a {
    background-color: #4b7bec; /* Bleu un peu plus doux */
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav a:hover {
    background-color: #3754cc; /* Plus clair sur le survol */
    transform: scale(1.1); /* Effet d’agrandissement au survol */
}

/* --- Contenu principal (en dessous du header) --- */
main {
    padding-top: 120px; /* Ajoute de l'espace pour compenser la barre fixe */
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Hero */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 40px;
    color: #00c2ff; /* Texte bleu doux */
    margin-bottom: 25px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 25px;
}

.hero .btn-cta {
    background-color: #4b7bec; /* Bleu doux */
    padding: 14px 28px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn-cta:hover {
    background-color: #3754cc; /* Légèrement plus clair au survol */
    transform: scale(1.1); /* Effet de zoom sur le bouton */
}

/* --- Membres en ligne --- */
.members-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    margin-top: 30px;
    padding: 0 10px;
}

/* Carte de membre */
.member-card {
    background-color: #f5f5f5; /* Fond plus clair pour les cartes */
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    width: 230px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Ombre douce */
}

.member-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15); /* Ombre plus marquée */
    transform: translateY(-5px); /* Légère élévation */
}

/* Avatar */
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #00c2ff; /* Couleur plus claire pour l'avatar */
    transition: 0.3s;
}

.avatar:hover {
    border-color: #007acc;
    transform: scale(1.1); /* Effet de zoom sur l’avatar */
}

/* Statut des membres */
.status {
    font-size: 0.9rem;
    font-weight: bold;
    color: #777; /* Couleur plus claire pour le statut */
    margin-top: 10px;
}

/* Bouton pour rejoindre le serveur */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #00c2ff; /* Bleu doux */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: 0.3s;
    margin-top: 20px;
    font-size: 1rem;
}

.btn:hover {
    background-color: #007acc;
}

/* --- Contenu principal --- */
main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* --- Titre principal --- */
h1 {
    font-size: 3rem;
    color: #00c2ff; /* Bleu doux */
    text-align: center;
    margin-bottom: 40px;
}

/* --- Sections --- */
section {
    margin-bottom: 40px;
}

/* --- Section Présentation --- */
.presentation h2 {
    font-size: 2.5rem;
    color: #00c2ff; /* Texte bleu clair */
    margin-bottom: 15px;
}

.presentation p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #777; /* Texte plus clair */
    margin-bottom: 20px;
}

.presentation h3 {
    font-size: 1.5rem;
    color: #00c2ff;
    margin-bottom: 10px;
}

.presentation ul {
    list-style-type: none;
    padding: 0;
}

.presentation ul li {
    font-size: 1.1rem;
    color: #555;
    margin: 5px 0;
}

/* --- Section Support --- */
.support h3 {
    font-size: 1.8rem;
    color: #00c2ff; /* Bleu clair */
    margin-bottom: 15px;
}

.support p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #777; /* Texte plus clair */
    margin-bottom: 20px;
}

.support .btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: #4b7bec;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.support .btn:hover {
    background-color: #3754cc;
    transform: scale(1.1);
}

/* --- Section Fonctionnalités --- */
.fonctionnalites h3 {
    font-size: 1.8rem;
    color: #00c2ff;
    margin-bottom: 15px;
}

.fonctionnalites ul {
    list-style-type: none;
    padding: 0;
}

.fonctionnalites ul li {
    font-size: 1.1rem;
    color: #555;
    margin: 5px 0;
}

/* --- Section Personnalisation --- */
.personnalisation h3 {
    font-size: 1.8rem;
    color: #00c2ff;
    margin-bottom: 15px;
}

.personnalisation p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #777; /* Texte plus clair */
    margin-bottom: 20px;
}

.personnalisation .form-group {
    margin-bottom: 15px;
}

.personnalisation label {
    font-size: 1.1rem;
    color: #333;
}

.personnalisation select,
.personnalisation input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.personnalisation button {
    background-color: #00c2ff;
    color: white;
    padding: 12px 25px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.personnalisation button:hover {
    background-color: #007acc;
}

/* --- Section Contact --- */
.contact h3 {
    font-size: 1.8rem;
    color: #00c2ff;
    margin-bottom: 15px;
}

.contact p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #777;
    margin-bottom: 20px;
}

/* --- Pied de page --- */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #00c2ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Mode Sombre pour les utilisateurs --- */
body.dark-mode {
    background-color: #121212; /* Fond sombre */
    color: #f0f0f0; /* Texte clair */
}

body.dark-mode header {
    background: linear-gradient(135deg, #2b2b2b, #383838);
}

body.dark-mode header .container {
    background-color: #2c2c2c;
}

/* --- Modifier les couleurs de l'avatar --- */
.avatar {
    border: 3px solid #00c2ff;
}

.avatar:hover {
    border-color: #007acc;
}

.boutique-section {
    text-align: center;
}

.sous-titre {
    color: #777;
    margin-bottom: 2rem;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: auto;
}

.produit-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.produit-card:hover {
    transform: translateY(-5px);
}

.produit-card img {
    max-width: 100%;
    border-radius: 10px;
}

.produit-card h3 {
    margin-top: 1rem;
}

.prix-et-btn {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prix {
    font-weight: bold;
    color: #1e1e2f;
}

.btn-acheter {
    padding: 0.5rem 1rem;
    background-color: #1e1e2f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-acheter:hover {
    background-color: #3f3f5e;
}


/* --- Résponsive --- */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}
