/* Variables CSS personnalisées */
:root {
    --color-green: #10B981;
    --color-orange: #FF6B35;
    --color-blue: #0066FF;
    --color-gray-dark: #1E293B;
    --color-gray: #64748B;
    --color-gray-light: #F1F5F9;
    --color-white: #FFFFFF;
}

/* Reset et base */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-gray-dark);
}

.font-space-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

/* Styles pour le logo */
.logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.2));
}

/* Animations et transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-10px);
    }

    70% {
        transform: translateY(-5px);
    }

    90% {
        transform: translateY(-2px);
    }
}

/* Animation au scroll */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Styles pour les cartes avec hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover: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);
}

/* Boutons avec animations */
.btn-animate {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-animate:active {
    transform: translateY(0);
}

/* Effet de survol pour les liens de navigation */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-green);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Styles pour la barre de recherche */
.search-input {
    transition: all 0.3s ease;
}

.search-input:focus {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

/* Styles pour les statistiques */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
}

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

.icon-pulse {
    animation: pulse 2s infinite;
}

/* Gradients personnalisés */
.gradient-green {
    background: linear-gradient(135deg, var(--color-green) 0%, #059669 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, var(--color-orange) 0%, #EA580C 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, var(--color-blue) 0%, #2563EB 100%);
}

/* Styles pour les témoignages */
.testimonial {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animation pour le logo */
.logo-animate {
    transition: all 0.3s ease;
}

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

/* Styles pour les badges */
.badge {
    background: linear-gradient(135deg, var(--color-orange) 0%, #EF4444 100%);
    animation: pulse 2s infinite;
}

/* Styles pour les accordéons FAQ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: #f8fafc;
}

/* Effet parallax léger pour les sections */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Responsive design amélioré */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Styles pour améliorer l'accessibilité */
.focus-visible:focus {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

/* Animation de chargement */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Styles pour les notifications toast (si nécessaire) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-green);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

/* Styles pour les modales (si nécessaire) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-content.show {
    transform: scale(1);
}

/* Amélioration des formulaires */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-input:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

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

.alert-success {
    background-color: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.alert-error {
    background-color: #FEE2E2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.alert-info {
    background-color: #DBEAFE;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

/* Effet de typing pour le hero */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--color-green);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--color-green);
    }
}

/* Styles pour les progress bars */
.progress-bar {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-green) 0%, var(--color-blue) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--color-gray-dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-gray-dark: #F1F5F9;
        --color-gray: #94A3B8;
        --color-gray-light: #1E293B;
        --color-white: #0F172A;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }
}