/* Styles personnalisés pour le site */

/* Animation de scroll fluide */
html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300 !important;
}

/* Animation d'apparition pour les éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Effet de hover pour les cartes de services */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Animation pour les statistiques */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* Style pour le bouton de retour en haut */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* Amélioration des transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Style pour les inputs focus */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Animation pour le menu mobile */
.mobile-menu-enter {
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
}

/* Style pour les liens de navigation actifs */
.nav-link.active {
    color: #3b82f6;
    font-weight: 600;
}

/* Effet de parallaxe léger */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive design amélioré */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

/* Animation pour les icônes */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Style pour les tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Style pour les messages de succès/erreur */
.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    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 balises h1 */
h1 {
    text-transform: uppercase;
    font-weight: 700;
}

h2 {
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

h3 {
    text-transform: uppercase !important;
    font-weight: 400 !important;
}
/* Classes utilitaires */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.count-up {
    animation: countUp 0.8s ease-out;
}

.bounce {
    animation: bounce 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-text-center {
        text-align: center;
    }
}

/* Style pour tous les paragraphes */
p {
    text-align: justify !important;
}

/* Hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}




/* === Chaque slide === */
.logo-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* ✅ hauteur uniforme */
}

/* === Les images (logos) === */
.logo-slide img {
    max-height: 100%;     /* prend toute la hauteur du conteneur */
    max-width: 60%;       /* limite la largeur pour éviter que les horizontaux débordent */
    width: auto;
    height: auto;
    object-fit: contain;   /* garde les proportions */
    object-position: center;
    transition: transform 0.3s ease;
}








