/* Styles personnalisés pour le thème Coworkings Paris */

/* Réinitialisation des liens pour éviter les conflits WordPress */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Classes utilitaires pour le line-clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Styles pour les filtres d'arrondissement */
.arrondissement-filter-label input:checked + .arrondissement-filter-card {
    background-color: #1E40AF !important;
    color: white !important;
    border-color: #1E40AF !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.arrondissement-filter-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrondissement-filter-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour les cartes de coworking */
.coworking-card {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.coworking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Styles pour les étoiles de notation */
.fa-star, .fa-star-half-alt {
    font-size: 0.875rem;
}

/* Responsive pour les badges */
@media (max-width: 640px) {
    .badge-responsive {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Styles pour le menu mobile */
.mobile-menu-transition {
    transition: all 0.3s ease-in-out;
}

/* Styles pour les boutons hover */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover-effect:hover::before {
    left: 100%;
}

/* Styles pour les images avec effet zoom */
.image-zoom-effect {
    overflow: hidden;
}

.image-zoom-effect img {
    transition: transform 0.7s ease;
}

.image-zoom-effect:hover img {
    transform: scale(1.1);
}

/* Styles pour le spinner de chargement */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1E40AF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour les transitions douces */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Styles pour les ombres personnalisées */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Styles pour les dégradés */
.gradient-primary {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
}

/* Styles pour les overlays */
.overlay-gradient {
    background: linear-gradient(to right, rgba(30, 64, 175, 0.8), rgba(30, 64, 175, 0.6), transparent);
}

/* Styles pour le parallax effet */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* Styles pour les formulaires */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.2);
}

/* Styles pour les badges animés */
.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .8;
    }
}

/* Styles responsifs supplémentaires */
@media (max-width: 768px) {
    .responsive-text-sm {
        font-size: 0.875rem;
    }
    
    .responsive-padding {
        padding: 1rem;
    }
    
    .responsive-margin {
        margin: 0.5rem;
    }
}

/* Fix pour les icônes Font Awesome */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Styles pour l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states pour l'accessibilité */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Styles pour les alertes et notifications */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #10B981;
    color: white;
}

.alert-error {
    background-color: #EF4444;
    color: white;
}

.alert-info {
    background-color: #3B82F6;
    color: white;
}