
/* Styles personnalisés pour les corrections spécifiques */
/* Les styles de navigation sont maintenant dans navigation-optimized.css */

/* =====================================================
   LOGO RESPONSIVE - KAPTMEDIA (logo.png partout)
   ===================================================== */

/* Composant site-logo : responsive par défaut */
.site-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Styles de base pour le logo */
.logo-image {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Container du logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .logo-image {
        height: 65px;
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 55px;
        max-width: 200px;
    }
}

@media (max-width: 375px) {
    .logo-image {
        height: 50px;
        max-width: 180px;
    }
}

@media (max-width: 320px) {
    .logo-image {
        height: 45px;
        max-width: 160px;
    }
}

/* Styles spécifiques pour la navigation moderne */
.main-logo .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================
   PROFILE LAYOUT UNIFIÉ
   ===================== */
.profile-layout .profile-sidebar {
    position: sticky;
    top: 1rem;
}

.profile-sidebar .avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-tabs .btn {
    width: 100%;
}

@media (max-width: 992px) {
    .profile-layout .profile-sidebar { position: static; }
}

/* ===== Spacing below fixed/complex header ===== */
.modern-header + main {
    padding-top: 40px; /* extra space on desktop */
}

@media (max-width: 992px) {
    .modern-header + main {
        padding-top: 72px; /* tablet spacing for stacked header */
    }
}

@media (max-width: 576px) {
    .modern-header + main {
        padding-top: 96px; /* generous mobile spacing */
    }
}

.main-logo .logo-image {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Responsive pour la navigation moderne */
@media (max-width: 768px) {
    .main-logo .logo-image {
        height: 65px;
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .main-logo .logo-image {
        height: 55px;
        max-width: 200px;
    }
}

@media (max-width: 375px) {
    .main-logo .logo-image {
        height: 50px;
        max-width: 180px;
    }
}

@media (max-width: 320px) {
    .main-logo .logo-image {
        height: 45px;
        max-width: 160px;
    }
}

/* Optimisation de la navigation - Alignement et design */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    height: 100%;
    flex: 1;
    justify-content: flex-end;
}

/* Filtres de régions dans la navigation principale */
.desktop-regions-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.375rem;
    align-items: center;
    margin-right: 0.75rem;
}

/* Filtres de régions - Styles pour la navigation */
.region-filter-btn {
    flex: 0 0 auto;
    min-width: 70px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 32px;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #374151;
    background: #f9fafb;
    border: 2px solid transparent;
}

.region-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #111827;
}

.region-filter-btn-all {
    background: #1f2937;
    color: white;
    border: 2px solid #374151;
}

.region-filter-btn-all:hover {
    background: #111827;
    color: white;
    border-color: #1f2937;
}


/* Container d'abonnement - Alignement */
.subscribe-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.subscribe-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bouton pour utilisateur connecté - My Subscription */
.subscribe-btn-connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.subscribe-btn-connected:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.subscribe-btn-connected i {
    color: white;
    font-size: 0.875rem;
}

/* Bouton pour invité - Subscribe avec couronne */
.subscribe-btn-guest {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.subscribe-btn-guest:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    text-decoration: none;
}

.subscribe-btn-guest i {
    color: #fbbf24;
    font-size: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Container utilisateur - Alignement */
.user-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    position: relative;
}

.user-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-btn {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-1px);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.user-dropdown-container.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px 6px 0 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.user-role {
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6b7280;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.logout-item {
    color: #dc2626 !important;
}

.logout-item:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.logout-item i {
    color: #dc2626 !important;
}

/* Badge premium */
.premium-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
}

/* Alignement global de la navbar */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.navbar-brand {
    flex: 0 0 auto;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Correction de l'alignement vertical pour tous les éléments de navigation */
.navbar .container-fluid {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 60px;
}

.navbar .navbar-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Optimisation pour les écrans moyens */
@media (max-width: 1200px) {
    .navbar-right {
        gap: 0.75rem;
    }
    
    .subscribe-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .user-btn {
        width: 36px;
        height: 36px;
    }
}

/* Optimisation pour les tablettes */
@media (max-width: 992px) {
    .navbar-right {
        gap: 0.5rem;
    }
    
    .subscribe-container {
        display: none;
    }
    
    .user-container {
        display: none;
    }
}

/* Amélioration de l'espacement mobile */
@media (max-width: 768px) {
    .navbar-right {
        justify-content: center;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .mobile-regions-filter {
        order: -1;
        margin-bottom: 0.5rem;
    }
}

/* Filtres de régions dans le drawer mobile */
.mobile-regions-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.mobile-regions-filter-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mobile-region-filter-btn {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #374151;
    background: #f9fafb;
    border: 2px solid transparent;
}

.mobile-region-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #111827;
}

/* Responsive pour les filtres de régions */
@media (max-width: 1200px) {
    .desktop-regions-filter {
        gap: 0.25rem;
        margin-right: 0.5rem;
    }
    
    .region-filter-btn {
        min-width: 60px;
        max-width: 80px;
        height: 28px;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    .desktop-regions-filter {
        display: none;
    }
}

/* ===== LOGO ACCUEIL (taille forcée, ne dépasse jamais) ===== */
.home-logo-link__wrap {
    display: inline-block;
    width: 80px;
    height: 80px;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}
.home-logo-link__wrap .home-logo-link__img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    transition: transform 0.3s ease;
}
.home-logo-link.group:hover .home-logo-link__img {
    transform: scale(1.05);
}
@media (min-width: 640px) {
    .home-logo-link__wrap {
        width: 112px;
        height: 112px;
    }
}

/* ===== FOOTER MODERNE ===== */
.modern-footer {
    background: #000000;
    color: #f1f5f9;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Section Brand */
.footer-brand {
    max-width: 360px;
}

.footer-logo {
    margin-bottom: 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.footer-logo-image {
    height: 80px;
    max-width: 320px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

.footer-description {
    color: #b8c5d4;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Titres des sections */
.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 50px;
}

/* Liens */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links li a {
    color: #b8c5d4;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: block;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: #3b82f6;
}

.footer-links li a:hover {
    color: #3b82f6;
    transform: translateX(5px);
    padding-left: 15px;
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Newsletter */
.footer-newsletter-form {
    margin-bottom: 1rem;
}

.footer-newsletter-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.footer-newsletter-form .form-control::placeholder {
    color: #94a3b8;
}

.footer-newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.3);
    color: #f1f5f9;
}

.footer-newsletter-form .btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.footer-newsletter-form .btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

.newsletter-note {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    color: #b8c5d4;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.footer-social-mobile {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-mobile .social-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #b8c5d4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #3b82f6;
}

.separator {
    color: #94a3b8;
    font-size: 0.8rem;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        max-width: none;
        text-align: center;
    }
    
    .footer-logo-image {
        height: 65px;
        max-width: 260px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-legal {
        justify-content: center;
        order: 2;
    }
    
    .footer-copyright {
        text-align: center;
        order: 3;
    }
    
    .social-links {
        justify-content: center;
        order: 1;
    }
}

@media (max-width: 576px) {
    .modern-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
}
