/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes moveRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation Classes */
.floating {
    animation: float 6s ease-in-out infinite;
}

.travel-path {
    animation: moveRight 20s linear infinite;
}

.rotating {
    animation: rotate 20s linear infinite;
}

/* Travel Icons */
.travel-icon {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

/* Card 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);
}

/* Background Patterns */
.morocco-pattern {
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.05), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.05), transparent 50%);
}

.spain-pattern {
    background: radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.05), transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(251, 191, 36, 0.05), transparent 50%);
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* Dark Mode Adjustments */
.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #2563EB;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* Animations de base */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Styles pour les cartes et éléments interactifs */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Styles pour les icônes de voyage */
.travel-icon {
    position: absolute;
    opacity: 0.1;
    animation: floating 3s ease-in-out infinite;
}

.travel-path {
    animation: pulse 2s ease-in-out infinite;
}

/* Styles pour les patterns de fond */
.morocco-pattern {
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.05), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.05), transparent 50%);
}

.spain-pattern {
    background: radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.05), transparent 50%),
                radial-gradient(circle at 30% 80%, rgba(251, 191, 36, 0.05), transparent 50%);
}

/* Styles pour le défilement fluide */
html {
    scroll-behavior: smooth;
}

/* Styles pour la barre de défilement personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #C1272D, #006233);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #006233, #C1272D);
}

/* Styles pour le mode sombre */
.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #C1272D, #006233);
}

/* Styles pour les animations d'apparition */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour les boutons de chargement */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Styles pour les cartes de ville */
.city-card {
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.city-card:hover::before {
    opacity: 1;
}

/* Styles pour les badges et étiquettes */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

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

/* Styles pour les icônes de fonctionnalités */
.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Styles pour les sections avec dégradé */
.gradient-section {
    position: relative;
    overflow: hidden;
}

.gradient-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
    z-index: 0;
}

/* Styles pour les cartes de contact */
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-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);
}

/* Styles pour les animations de texte */
.text-gradient {
    background: linear-gradient(to right, #2563EB, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Styles pour les effets de survol sur les liens */
.hover-link {
    position: relative;
    display: inline-block;
}

.hover-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #2563EB, #10B981);
    transition: width 0.3s ease;
}

.hover-link:hover::after {
    width: 100%;
}

/* Styles pour les cartes de statistiques */
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stats-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);
}

/* Styles pour les animations de chargement */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

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

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

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Styles pour les notifications */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Styles pour les boutons de retour en haut */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2563EB, #10B981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
} 