/* Custom CSS pour le site Cuisine Thaïlandaise */

/* Effet hover sur les cartes */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Style pour les badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Amélioration du header */
.menuzord-logo-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Style pour les images de plats */
.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Amélioration des formulaires */
.form-select, .form-control {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    padding: 0.625rem 0.875rem;
}

.form-select:focus, .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Style pour les boutons */
.btn {
    border-radius: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* Footer */
.footer {
    margin-top: 50px;
}

/* Hero section responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px !important;
        margin-top: 70px !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Amélioration de la navigation */
.menuzord-menu > li.active > a {
    color: #667eea !important;
}

/* Logo personnalisé */
.menuzord-logo-brand img {
    display: block;
    transition: transform 0.3s ease;
}

.menuzord-logo-brand:hover img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .menuzord-logo-brand img {
        height: 40px !important;
    }
}

/* Style pour les niveaux d'épices */
.fa-pepper-hot {
    font-size: 1.2rem;
}

/* Amélioration des cartes d'information */
.card {
    border: none;
    border-radius: 0.5rem;
}

/* Animation pour les icônes */
.card-body i {
    transition: transform 0.3s ease;
}

.card:hover .card-body i {
    transform: scale(1.1);
}

/* Style pour les listes */
.list-unstyled li {
    padding: 0.5rem 0;
}

/* Amélioration du responsive */
@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Style pour les filtres */
#filterForm .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Amélioration de l'espacement */
.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Style pour les images avec fallback */
img[onerror] {
    background-color: #f8f9fa;
}

/* Amélioration de la lisibilité */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
}

/* Style pour les sections */
section {
    position: relative;
}

/* Amélioration du contraste */
.text-muted {
    color: #6c757d !important;
}

/* Style pour les badges de catégorie */
.badge.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
}

/* Animation de chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Style pour les prix */
.text-primary {
    color: #667eea !important;
}

/* Amélioration des ombres */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Style pour le footer */
.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Sélecteur de langue compatible Menuzord */
.menuzord-menu > li .lang-selector-link {
    display: flex;
    align-items: center;
}

.menuzord-menu .lang-dropdown {
    min-width: 180px;
}

.menuzord-menu .lang-dropdown li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
}

.menuzord-menu .lang-dropdown li a:hover {
    background-color: #f5f5f5 !important;
}

/* Sélecteur de devise compatible Menuzord */
.menuzord-menu > li .currency-selector-link {
    display: flex;
    align-items: center;
}

.menuzord-menu .currency-dropdown {
    min-width: 180px;
}

.menuzord-menu .currency-dropdown li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
}

.menuzord-menu .currency-dropdown li a:hover {
    background-color: #f5f5f5 !important;
}

/* Ancien style - à supprimer si non utilisé */
.language-dropdown {
    display: inline-block;
    position: relative;
}

.menuzord-menu > li .language-dropdown {
    display: flex;
    align-items: center;
    height: 100%;
}

@media (min-width: 992px) {
    .menuzord-menu > li .language-dropdown {
        padding: 37px 0;
    }
}

.lang-dropdown-btn {
    background: rgba(102, 126, 234, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
}

.lang-dropdown-btn:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.lang-dropdown-menu a:hover {
    background: #f5f5f5;
}

.language-selector {
    display: inline-flex !important;
    gap: 5px;
    align-items: center;
}

.language-selector .lang-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

.language-selector .lang-link:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    transform: scale(1.1);
}

.language-selector .lang-link.active {
    background: rgba(102, 126, 234, 0.2) !important;
    font-weight: bold;
}

/* Pour le menu Menuzord */
.menuzord-menu .language-selector {
    margin-left: 10px;
}
