/*
Theme Name: Gabon Report - Observateur des Prix
Author: Gabon Report Team
Description: Plateforme citoyenne pour le suivi des prix et de la vie chère au Gabon. Design moderne, interactif et mobile-first.
Version: 2.0
Text Domain: gabon-report-obs
*/

/* 1. POLICE ET BASE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
    --blue-gabon: #1e3a8a;
    --red-alert: #dc2626;
    --yellow-gabon: #facc15;
    --green-gabon: #059669;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 2. HEADER ET NAVIGATION */
header {
    transition: all 0.3s ease;
}

/* Style spécifique pour le bouton "Signaler" dans le menu */
/* Important : Ajoutez la classe 'menu-alert' dans Apparence > Menus */
.menu-alert a {
    background-color: var(--red-alert) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 99px !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.4);
    animation: alert-pulse 2s infinite;
    display: inline-block !important;
}

.menu-alert a:hover {
    background-color: #b91c1c !important;
    transform: scale(1.05);
}

/* 3. ANIMATIONS */

/* Clignotement du bouton Signaler */
@keyframes alert-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Barre défilante (Ticker) */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Entrée progressive des cartes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. COMPOSANTS INTERACTIFS */

/* Cartes de prix et d'actualités */
.item-card, .news-card {
    animation: fadeInUp 0.6s ease backwards;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.item-card:hover, .news-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--yellow-gabon);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Boutons de catégories sur la mercuriale */
.cat-btn {
    transition: all 0.3s ease;
}

.cat-btn.active {
    background-color: white !important;
    color: var(--blue-gabon) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--yellow-gabon);
}

/* Barre de recherche "Glow" */
input:focus {
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.3) !important;
}

/* 5. MENU MOBILE ET RESPONSIVE */

#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Cacher la scrollbar sur les filtres horizontaux */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ajustement menu mobile pour le bouton alerte */
@media (max-width: 768px) {
    #mobile-menu .menu-alert a {
        width: 100%;
        text-align: center;
        margin-top: 15px;
        font-size: 14px;
    }
    
    .logo-container img {
        max-height: 40px;
    }
}

/* 6. CLASSES UTILITAIRES */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shadow-premium {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}