/* =================================================================
   BRAZZA-MARKET - PAGE ARRONDISSEMENTS - DESIGN PROFESSIONNEL
   (Mis à jour avec le nouveau header dynamique)
================================================================= */

/* HERO AVEC IMAGE DE FOND */
.hero-arrondissements {
    position: relative;
    background: url('../CategorieBac.png') center/cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* BADGE DE BIENVENUE */
.badge-welcome {
    display: inline-block;
    background: #46955c;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(70, 149, 92, 0.4);
    animation: fadeInDown 0.6s ease;
}

.badge-welcome i {
    margin-right: 8px;
}

/* BOX HERO */
.hero-box {
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-box h1 {
    color: white;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin: 0;
}

/* CONTAINER PRINCIPAL */
.arrondissements-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* GRILLE DES ARRONDISSEMENTS */
.arrondissements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CARTE ARRONDISSEMENT */
.arrondissement-card {
    display: block;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.arrondissement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(70, 149, 92, 0.25);
}

/* BORDEURE VERTE EN HAUT */
.card-border-top {
    height: 5px;
    background: linear-gradient(90deg, #46955c 0%, #5cb85c 100%);
    width: 100%;
}

/* CONTENU DE LA CARTE */
.card-content {
    padding: 35px 30px;
    text-align: center;
}

.card-label {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title {
    color: #46955c;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-arrondissements {
        min-height: 350px;
        padding: 40px 15px;
    }
    
    .hero-box {
        padding: 30px 20px;
    }
    
    .hero-box h1 {
        font-size: 28px;
    }
    
    .hero-box p {
        font-size: 15px;
    }
    
    .badge-welcome {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .arrondissements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .arrondissements-container {
        margin: 40px auto;
    }
}

@media (max-width: 480px) {
    .hero-box h1 {
        font-size: 24px;
    }
    
    .card-title {
        font-size: 22px;
    }
}

/* =================================================================
   3. HEADER DYNAMIQUE - INTEGRATION AU DESIGN EXISTANT
================================================================= */

/* Logo (conserve la taille de 100px comme dans l'ancien design) */


/* Logo text (ajouté pour correspondre au nouveau design) */




/* Bouton mode sombre (style minimaliste) */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(70, 149, 92, 0.1);
  border: 2px solid rgba(70, 149, 92, 0.3);
  color: #46955c;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(70, 149, 92, 0.2);
  transform: rotate(15deg) scale(1.1);
}

/* Avatar utilisateur (style moderne mais avec les couleurs de l'ancien design) */
.user-avatar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(70, 149, 92, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #46955c, #1a5c34);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 8px rgba(70, 149, 92, 0.3);
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: #2d3436;
}

/* =================================================================
   4. MODE SOMBRE - ADAPTÉ À L'ANCIEN DESIGN
================================================================= */
body.dark-mode .hero-arrondissements {
  background: linear-gradient(135deg, rgba(10, 30, 20, 0.95) 0%, rgba(20, 60, 40, 0.9) 100%),
              url('../CategorieBac.png');
}

body.dark-mode .hero-box {
  background: rgba(10, 30, 20, 0.85);
}

body.dark-mode .badge-welcome {
  background: #1a5c34;
}

body.dark-mode .card-title {
  color: #73dd91;
}

body.dark-mode .arrondissement-card {
  background: #16213e;
  border: 1px solid #2d2d44;
}

body.dark-mode .menu li a {
  color: #eaeaea;
}

body.dark-mode .menu li a:hover {
  background: rgba(70, 149, 92, 0.2);
}

body.dark-mode .menu li a.active {
  background: #46955c;
  color: white;
}

body.dark-mode .theme-toggle {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

body.dark-mode .user-avatar-container {
  background: rgba(70, 149, 92, 0.2);
}

body.dark-mode .user-avatar {
  background: linear-gradient(135deg, #46955c, #1a5c34);
}

/* =================================================================
   5. RESPONSIVE - CONSERVE L'ANCIEN DESIGN
================================================================= */
@media (max-width: 900px) {
  .humburger {
    display: block !important;
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 9999 !important;
  }
  
  .user-avatar-container {
    display: flex !important;
    padding: 5px;
  }
  
  .user-name {
    display: none;
  }
}

@media (max-width: 600px) {
  .logo-container img {
    height: 40px;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .humburger {
    padding: 8px 12px;
    font-size: 22px;
  }
}
/* Animation de rotation du bouton mode sombre */
.theme-toggle.rotating i,
.theme-toggle-mobile.rotating i {
  animation: rotateIcon 0.5s ease;
}

@keyframes rotateIcon {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}







/* =================================================================
   BRAZZA-MARKET - PAGES ARRONDISSEMENTS (Design Unifié + Mode Sombre)
================================================================= */

/* =================================================================
   1. VARIABLES & MODE SOMBRE
================================================================= */
:root {
  --primary: #46955c;
  --primary-dark: #1a5c34;
  --primary-light: #73dd91;
  --accent: #ffd700;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* Activation du Mode Sombre */
body.dark-mode {
  --bg-body: #1a1a2e;
  --bg-card: #16213e;
  --text-main: #eaeaea;
  --text-muted: #b8b8b8;
  --border: #2d2d44;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Transition fluide pour le changement de thème */
body, .breadcrumb, .info-badge, .search-box, .category-card, .boutique-card-pro {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* =================================================================
   2. HERO SECTION
================================================================= */
.hero-arrondissement {
  position: relative;
  background: linear-gradient(rgba(26, 92, 52, 0.85), rgba(70, 149, 92, 0.85)), 
              url('../../CategorieBac.png') center/cover no-repeat;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

body.dark-mode .hero-arrondissement {
  background: linear-gradient(rgba(10, 30, 20, 0.9), rgba(20, 60, 40, 0.9)), 
              url('../../CategorieBac.png') center/cover no-repeat;
}

.badge-welcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-box h1 {
  color: white;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-box p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =================================================================
   3. FIL D'ARIANE (BREADCRUMB)
================================================================= */
.breadcrumb-container {
  max-width: 1200px;
  margin: -30px auto 20px; /* Chevauchement élégant sur le hero */
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.breadcrumb {
  background: var(--bg-card);
  padding: 15px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 10px;
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-main);
  font-weight: 600;
}

/* =================================================================
   4. BADGES D'INFORMATION
================================================================= */
.info-badges {
  display: flex;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.info-badge {
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.info-badge i {
  color: var(--primary);
  font-size: 16px;
}

.info-badge strong {
  color: var(--text-main);
}

/* =================================================================
   5. BARRE DE RECHERCHE
================================================================= */
.search-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.search-box {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 15px;
  border: 1px solid var(--border);
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg-body);
  color: var(--text-main);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  padding: 14px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 149, 92, 0.3);
}

/* =================================================================
   6. GRILLE DES CATÉGORIES
================================================================= */
.categories-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.category-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  padding: 20px 25px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.category-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.category-icon {
  font-size: 36px;
  margin-right: 20px;
  width: 50px;
  text-align: center;
}

.category-info {
  flex: 1;
}

.category-info h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.category-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.category-arrow {
  color: var(--primary);
  font-size: 20px;
  transition: var(--transition);
}

.category-card:hover .category-arrow {
  transform: translateX(5px);
}

/* =================================================================
   7. RÉSULTATS DES BOUTIQUES (Couleurs corrigées pour la marque)
================================================================= */
.resultats-container {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.resultats-title {
  color: var(--text-main);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resultats-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 28px;
  background: var(--primary);
  border-radius: 4px;
}

.boutiques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.boutique-card-pro {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.boutique-card-pro:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.boutique-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.boutique-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.boutique-card-pro:hover .boutique-image {
  transform: scale(1.05);
}

.badge-categorie {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--primary); /* Corrigé : était rouge (#e74c3c) */
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.boutique-details {
  padding: 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.boutique-nom {
  color: var(--text-main);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.boutique-arrondissement {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.boutique-adresse,
.boutique-telephone {
  color: var(--text-muted);
  font-size: 13px;
  margin: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.boutique-adresse i,
.boutique-telephone i {
  color: var(--primary);
  font-size: 14px;
}

.btn-en-savoir-plus {
  display: block;
  margin-top: auto;
  padding: 12px 20px;
  background: var(--primary); /* Corrigé : était rouge */
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-align: center;
}

.btn-en-savoir-plus:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 149, 92, 0.3);
}

.btn-en-savoir-plus i {
  margin-left: 6px;
}

/* =================================================================
   8. BOUTON RETOUR
================================================================= */
.retour-container {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
}

.btn-retour {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.btn-retour:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(70, 149, 92, 0.3);
}

/* =================================================================
   9. RESPONSIVE DESIGN
================================================================= */
@media (max-width: 768px) {
  .hero-arrondissement {
    min-height: 300px;
    padding: 40px 20px;
  }
  
  .hero-box h1 {
    font-size: 28px;
  }
  
  .breadcrumb-container {
    margin-top: -20px;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box button {
    width: 100%;
    justify-content: center;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .boutiques-grid {
    grid-template-columns: 1fr;
  }
  
  .resultats-title {
    font-size: 22px;
  }
  
  .boutique-nom {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .info-badges {
    flex-direction: column;
  }
  
  .info-badge {
    width: 100%;
    justify-content: center;
  }
  
  .category-card {
    padding: 15px;
  }
  
  .category-icon {
    font-size: 28px;
    margin-right: 15px;
    width: 40px;
  }
  
  .category-info h3 {
    font-size: 16px;
  }
  
  .btn-retour {
    width: 100%;
    justify-content: center;
  }
}
/* =================================================================
    FORCAGE DU MODE SOMBRE (pour écraser style.css)
================================================================= */
body.dark-mode {
  background-color: #0f1419 !important;
  color: #eaeaea !important;
}

body.dark-mode .container {
  background-color: transparent !important;
}

body.dark-mode .contact-grid {
  background-color: transparent !important;
}

body.dark-mode .contact-info {
  background-color: transparent !important;
}

body.dark-mode .contact-form-section {
  background-color: #16213e !important;
}

body.dark-mode .testimonials-section {
  background-color: #16213e !important;
}

body.dark-mode .faq-section {
  background-color: #16213e !important;
}
