* { margin: 0; padding: 0; box-sizing: border-box; }

.explorer-body {
    background: #000;
    font-family: 'Inter', sans-serif;
    color: white;
    min-height: 100vh; /* Utilise au moins 100% de la hauteur */
    overflow-y: auto;  /* Change 'hidden' par 'auto' pour permettre le scroll */
    overflow-x: hidden; /* Empêche le scroll horizontal indésirable */
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Couleur de fond */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Toujours au-dessus */
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db; /* Couleur de l'animation */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Transition de 0.5s pour le fondu */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Classe qu'on ajoutera en JavaScript */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Votre loader (le cercle qui tourne) */
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

*span{
    background-color: #2d3436;
}

.explorer-container {
    height: auto; /* Permet au contenu de s'étendre sur mobile */
    min-height: 100vh;
    padding: 80px 20px 40px 20px;
    justify-content: center;
    gap: 40px;
}
/* Navbar Style */
.top-nav {
    position: fixed;
    top: 0; width: 100%;
    display: flex; justify-content: space-between;
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.top-nav a { color: white; text-decoration: none; margin: 0 15px; font-size: 0.9rem; }

.search-mini {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 5px 20px;
}

.search-mini input { background: none; border: none; color: white; outline: none; }

/* Titre */
.main-title {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
    font-weight: 800;
}

/* Catégories (Bulles) */


.category-node {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-node:hover { transform: translateY(-15px); }

.node-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 10px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    background-size: cover;
}
/*PROFIL NAV BARRE 
/* --- Ajustement de la Navbar pour correspondre à l'index --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.1); 
    /* L'effet de flou magique */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Fond blanc comme l'index */
    position: fixed; /* Reste en haut */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* --- Gestion du Profil & Dropdown --- */
.profile-container {
    position: relative;
    display: inline-block;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.profile-container:hover .profile-dropdown {
    display: block;
}

.dropdown-item {
    color: #2d3436;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #ff4d6d;
}

.icon-link {
    color: #2d3436; /* Icônes foncées sur fond blanc */
    font-size: 1.4rem;
    transition: 0.3s;
}

.icon-link:hover {
    color: #ff4d6d;
}

/* Correction du titre car la navbar est maintenant plus haute */
.explorer-container {
    padding-top: 140px; 
}

/* Ajoutez vos propres icônes ou images ici */
.mode { border-color: #a855f7; }
.electro { border-color: #06b6d4; }
.beaute { border-color: #ec4899; }
.fashion { border-color: #3b82f6; }
.autres { border-color: #f59e0b; }

.category-node span { font-weight: bold; font-size: 1.2rem; }

/* Boutons */
.bottom-actions { display: flex; gap: 40px; }

.action-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.cyan { background: linear-gradient(90deg, #0891b2, #22d3ee); box-shadow: 0 0 15px #0891b2; }
.purple { background: linear-gradient(90deg, #7e22ce, #c084fc); box-shadow: 0 0 15px #7e22ce; }
.red{ background: linear-gradient(90deg, #e604c4, #e604c4); box-shadow: 0 0 15px #e604c4; }

.action-btn:hover { transform: scale(1.05); filter: brightness(1.2); }

/* Style commun pour tous les cercles */
.node-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 10px;
    background-size: cover;      /* L'image couvrira tout le cercle */
    background-position: center;  /* L'image sera centrée */
    background-repeat: no-repeat;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    border: 4px solid #fff;      /* Bordure par défaut */
}

.category-node span {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffffff;
    
    /* LE FOND DU TEXTE */
    background: rgba(0, 0, 0, 0.6); /* Fond noir semi-transparent */
    backdrop-filter: blur(5px);    /* Effet de flou derrière le texte */
    
    /* BORDURE ET FORME */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* OMBRE POUR L'EFFET NÉON */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-node:hover span {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Images spécifiques pour chaque catégorie */
.sport { 
    background-image: url('photos/sport\ img.png'); 
    border-color: #a855f7; /* Violet */
}

.electro { 
    background-image: url('photos/electronique\ img.png'); 
    border-color: #06b6d4; /* Cyan */
}

.beaute { 
    background-image: url('photos/beaute.png'); 
    border-color: #ec4899; /* Rose */
}

.fashion { 
    background-image: url('photos/fashion.png'); 
    border-color: #3b82f6; /* Bleu */
}

.autres { 
    background-image: url('photos/vintage.png'); 
    border-color: #f59e0b; /* Orange */
}
.promo{
    background-image: url('photos/promo.png'); 
    border-color: #ff6347; /* Rouge Tomate */
}

 

.explorer-container {
    width: 100%;
    min-height: 100vh; /* Permet au conteneur de grandir si le contenu dépasse */
    height: auto;      /* Écrase le height: 100% ou 100vh précédent */
    
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Aligne vers le haut pour laisser la place au scroll */
    padding: 120px 20px 50px 20px; /* Plus de padding en haut pour la navbar fixe */
    gap: 40px; /* Espace constant entre le titre, les bulles et les boutons */
}

/* --- CORRECTION ALIGNEMENT HORIZONTAL (MAX 3 PAR LIGNE) --- */
@media (max-width: 600px) {
    .nodes-wrapper {
        display: flex;
        flex-direction: row; /* Force l'alignement horizontal */
        flex-wrap: wrap;    /* Permet de passer à la ligne après le 3ème cercle */
        justify-content: center; /* Centre les cercles sur la ligne */
        align-items: flex-start; /* Aligne le haut des cercles */
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }

    .category-node {
        /* Calcule la largeur pour en mettre 3 par ligne (33% moins le gap) */
        flex: 0 0 calc(33.33% - 15px); 
        display: flex;
        flex-direction: column;
        align-items: center; /* Aligne le texte sous le cercle */
    }

    .node-circle {
        width: 80px;  /* Taille ajustée pour la ligne */
        height: 80px;
        margin-bottom: 5px;
    }

    .category-node span {
        font-size: 0.7rem;
        padding: 4px 8px;
        width: 100%; /* Le fond suit la largeur de la colonne */
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Coupe le texte proprement s'il est trop long */
    }

    .bottom-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 12px;
    }
}

/* 2. Gestion de la navigation */
@media (max-width: 768px) {
    .top-nav {
        padding: 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-center {
        order: 3; /* Place la barre de recherche en dessous sur mobile */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .main-title {
        font-size: 1.8rem;
        text-align: center;
        margin-top: 40px;
    }
}

/* 3. Grille adaptative pour les catégories */
.nodes-wrapper {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne */
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

@media (max-width: 600px) {
    .node-circle {
        width: 100px; /* Cercles plus petits sur petit écran */
        height: 100px;
    }

    .category-node span {
        font-size: 0.9rem;
        padding: 5px 15px;
    }
    
    .nodes-wrapper {
        gap: 15px;
    }
    /* 4. Ajustement des boutons du bas */
.bottom-actions {
    flex-direction: column; /* Boutons l'un sur l'autre sur mobile */
    gap: 15px;
    width: 100%;
    align-items: center;
}
}



@media (min-width: 768px) {
    .bottom-actions {
        flex-direction: row; /* Côte à côte sur tablette/PC */
    }
}

.action-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

/* --- Footer Styling (Identique à Index) --- */
.main-footer {
    background-color: #2d3436; /* Couleur sombre pro */
    color: #ffffff;
    padding: 60px 5% 20px 5%;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ff4d6d; /* Rose MyCityMall */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img { 
    height: 40px; 
}

.footer-logo span { 
    font-weight: 800; 
    font-size: 1.3rem; 
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b2bec3;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons a:hover { 
    color: #ff4d6d; 
    transform: translateY(-3px); 
}

.footer-col ul { 
    list-style: none; 
}

.footer-col ul li { 
    margin-bottom: 12px; 
}

.footer-col ul li a {
    color: #b2bec3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a:hover { 
    color: white; 
    padding-left: 5px; 
}

.btn-feedback {
    background: #ff4d6d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    width: 100%;
    transition: 0.3s;
}

.btn-feedback:hover { 
    background: #ff7e5f; 
}

.rating-display {
    margin-top: 15px;
    color: #f1c40f; /* Or pour les étoiles */
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-display span { 
    color: #b2bec3; 
    font-size: 0.85rem; 
    margin-left: 5px; 
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #636e72;
    font-size: 0.85rem;
    color: #636e72;
}

/* --- Responsive Footer --- */
@media (max-width: 768px) {
    .footer-container { 
        text-align: center; 
    }
    .footer-logo, .social-icons, .rating-display { 
        justify-content: center; 
    }
    .footer-col ul li a { 
        justify-content: center; 
    }
}
.explorer-body {
    /* Remplacez par votre image de fond réelle */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./photos/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* L'image reste fixe pendant le scroll */
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-footer {
    background: rgba(255, 255, 255, 0.05); /* Fond blanc très transparent */
    backdrop-filter: blur(15px); /* L'effet de flou crucial */
    -webkit-backdrop-filter: blur(15px); /* Pour la compatibilité Safari */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Fine bordure brillante */
    color: #ffffff;
    padding: 60px 5% 20px 5%;
    margin-top: auto; /* Pousse le footer en bas si le contenu est court */
    width: 100%;
}

/* On ajuste les textes pour qu'ils ressortent bien sur le flou */
.footer-col p, .footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2); /* Un peu plus sombre tout en bas */
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Crée des colonnes d'au moins 200px qui remplissent l'espace */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
/* --- Footer Responsive Mobile --- */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 20px; /* Réduit les marges sur les côtés */
    }

    .footer-container {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        text-align: center; /* Centre tout le texte */
    }

    .footer-logo, 
    .social-icons, 
    .rating-display {
        justify-content: center; /* Centre les icônes et le logo */
    }

    .footer-col ul li a {
        justify-content: center; /* Centre les liens de navigation */
    }

    .btn-feedback {
        max-width: 300px; /* Évite que le bouton soit trop large */
        margin: 15px auto;
    }
}

/* Amélioration du dropdown pour le choix du rôle */
.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 220px; /* Un peu plus large pour le texte */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 8px 0;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.dropdown-item i {
    font-size: 1.2rem;
    color: #ff4d6d; /* Couleur thématique */
    width: 25px;
    text-align: center;
}

.dropdown-item span strong {
    display: block;
    color: #2d3436;
}

.dropdown-item:hover {
    background-color: #fff0f3;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Fluidité Responsive (Overlays) --- */
.main-title {
    font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem);
}

.explorer-container {
    padding-top: clamp(110px, 12vh, 160px);
    padding-left: clamp(16px, 3vw, 28px);
    padding-right: clamp(16px, 3vw, 28px);
    gap: clamp(24px, 4vw, 48px);
}

.nodes-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: clamp(12px, 2.2vw, 24px);
    width: min(1000px, 92vw);
}

.node-circle {
    width: clamp(80px, 12vw, 140px);
    height: clamp(80px, 12vw, 140px);
}

.category-node span {
    font-size: clamp(0.7rem, 1.2vw, 1.1rem);
    padding: 6px clamp(8px, 2vw, 20px);
}

.bottom-actions {
    flex-wrap: wrap;
    gap: clamp(12px, 2.5vw, 28px);
}

.action-btn {
    width: min(320px, 92vw);
}

