/* Styles personnalisés pour Sopex Consulting */

.max-char {
    display: -webkit-box;
    max-width: 290px;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Styles pour les cartes de projets */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animation pour le menu mobile */
.navbar-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar-menu.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Styles pour les images responsives */
.responsive-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Couleurs personnalisées pour Sopex */
.sopex-blue {
    background-color: #2750A6;
}

.sopex-blue-text {
    color: #2750A6;
}

/* Animations pour les éléments interactifs */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Styles pour les formulaires */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #2750A6;
    box-shadow: 0 0 0 3px rgba(39, 80, 166, 0.1);
}

/* Styles pour les boutons */
.btn-primary {
    background-color: #2750A6;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #1e3a7a;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-hidden {
        display: none;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2750A6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}