/* seo-local.css - Styles pour les optimisations SEO locales */

/* Bannière locale */
.local-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}

.local-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.local-banner i {
    margin-right: 10px;
    font-size: 1.2em;
}

.local-banner span {
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: center;
}

.close-banner {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-banner:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Classes pour le contenu localisé */
.local-ci .hero-title::after {
    content: " 🇨🇮";
}

.local-ci .city-tag {
    position: relative;
}

.local-ci .city-tag::before {
    content: "📍 ";
}

/* Bouton mobile flottant */
.mobile-call-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 998;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.mobile-call-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Styles pour les indicateurs de localisation */
.local-indicator {
    display: inline-flex;
    align-items: center;
    background-color: rgba(58, 134, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 10px;
    color: var(--primary);
}

.local-indicator i {
    margin-right: 5px;
}

/* Optimisations pour le contenu local */
[data-local] {
    transition: color 0.3s ease;
}

.local-ci [data-local="country"] {
    font-weight: 700;
    color: var(--primary);
}

.local-ci [data-local="phone"] {
    font-weight: 600;
    letter-spacing: 1px;
}

/* Styles pour la carte interactive */
.map-point {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-point:hover {
    transform: scale(1.2);
}

.map-point .point-label {
    background-color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

.map-point:hover .point-label {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .local-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .local-banner span {
        margin: 10px 0;
        font-size: 0.9rem;
    }
    
    .close-banner {
        position: absolute;
        top: 5px;
        right: 5px;
        margin: 0;
    }
    
    .mobile-call-float {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .local-banner span {
        font-size: 0.8rem;
    }
    
    .local-indicator {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Impression */
@media print {
    .local-banner,
    .mobile-call-float,
    .whatsapp-float {
        display: none !important;
    }
}