/* Styles personnalisés pour DJILY INTERNATIONAL SERVICES */

/* Variables CSS pour les couleurs */
:root {
    --primary-blue: #1E40AF;
    --primary-orange: #F97316;
    --primary-gold: #FCD34D;
    --accent-purple: #7C3AED;
    --accent-pink: #EC4899;
    --accent-cyan: #06B6D4;
    --dark-blue: #1E293B;
    --light-gray: #F8FAFC;
}

/* Styles pour les boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-gold));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-orange);
    padding: 12px 24px;
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-orange);
    color: white;
}

/* Animation simple du logo */
.logo-3d {
    transition: all 0.3s ease;
}

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

/* Effet de survol simple pour les cartes */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Styles responsive */
@media (max-width: 768px) {
    .header-bg {
        min-height: 80vh;
    }
    
    .navbar-transparent {
        padding: 1rem 0;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .py-20 {
        padding: 3rem 0;
    }
}

/* Amélioration de l'accessibilité */
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Animations subtiles pour les images */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Navigation mobile responsive */
@media (max-width: 768px) {
    .navbar-transparent .hidden {
        display: none;
    }
    
    .navbar-transparent .flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-transparent a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Animation du logo avec rotation */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 20px rgba(252, 211, 77, 0.8);
    }
    25% {
        transform: scale(1.05) rotate(1deg);
        text-shadow: 0 0 30px rgba(252, 211, 77, 1);
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        text-shadow: 0 0 40px rgba(252, 211, 77, 0.6);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
        text-shadow: 0 0 30px rgba(252, 211, 77, 1);
    }
}

.logo-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Gradient animé multicolore */
@keyframes rainbow-gradient {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, 
        var(--primary-blue), 
        var(--primary-orange), 
        var(--accent-purple), 
        var(--accent-pink),
        var(--accent-cyan)
    );
    background-size: 400% 400%;
    animation: rainbow-gradient 12s ease infinite;
}

/* Bannière hero avec overlay */
.hero-banner {
    background: linear-gradient(
        135deg, 
        rgba(30, 64, 175, 0.9) 0%, 
        rgba(124, 58, 237, 0.8) 25%,
        rgba(249, 115, 22, 0.9) 50%,
        rgba(236, 72, 153, 0.8) 75%,
        rgba(6, 182, 212, 0.9) 100%
    ),
    url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(30, 64, 175, 0.3), 
        rgba(249, 115, 22, 0.2),
        rgba(124, 58, 237, 0.3)
    );
    animation: overlay-pulse 8s ease-in-out infinite;
}

@keyframes overlay-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Effet de particules flottantes */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(252, 211, 77, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 10px; height: 10px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 15px; height: 15px; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { width: 8px; height: 8px; left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { width: 12px; height: 12px; left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { width: 6px; height: 6px; left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { width: 14px; height: 14px; left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { width: 9px; height: 9px; left: 70%; animation-delay: 0.5s; }
.particle:nth-child(8) { width: 11px; height: 11px; left: 80%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Animation d'icônes améliorée */
@keyframes bounce-rotate {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    10% {
        transform: translateY(-5px) rotate(5deg);
    }
    40% {
        transform: translateY(-15px) rotate(-5deg);
    }
    60% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.icon-bounce {
    animation: bounce-rotate 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.icon-bounce:hover {
    animation-play-state: paused;
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-gold);
}

/* Effet de machine à écrire amélioré */
@keyframes typing-advanced {
    from { 
        width: 0;
        border-right-color: var(--primary-gold);
    }
    to { 
        width: 100%;
        border-right-color: transparent;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-gold);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing-advanced 4s steps(40, end) forwards, blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-gold); }
}

/* Scrollbar personnalisée moderne */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, var(--light-gray), #E2E8F0);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-orange), var(--accent-purple));
    border-radius: 6px;
    border: 2px solid var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
}

/* Animation d'apparition en cascade */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-in-up {
    animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }

/* QR codes avec effet néon */
.qr-code-placeholder {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, var(--dark-blue), var(--primary-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.5);
}

.qr-code-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.4), transparent);
    animation: qr-shine 3s infinite;
}

@keyframes qr-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Effet de survol pour les drapeaux */
.flag-hover {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1);
}

.flag-hover:hover {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.2) contrast(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Effet glow doré amélioré */
.glow-gold {
    text-shadow: 
        0 0 10px rgba(252, 211, 77, 0.8),
        0 0 20px rgba(252, 211, 77, 0.6),
        0 0 30px rgba(252, 211, 77, 0.4);
}

/* Effet de loading moderne */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(252, 211, 77, 0.3);
    border-left: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Animation de vague */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wave-animation {
    animation: wave 2s ease-in-out infinite;
}

.wave-animation:nth-child(2) { animation-delay: 0.2s; }
.wave-animation:nth-child(3) { animation-delay: 0.4s; }
.wave-animation:nth-child(4) { animation-delay: 0.6s; }

/* Effet de brillance sur le texte */
@keyframes text-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, 
        var(--primary-gold) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        var(--primary-gold) 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3s linear infinite;
}

/* Animation de zoom au survol */
.zoom-hover {
    transition: transform 0.3s ease;
}

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

/* Effet de couleur de fond dégradé pour les sections */
.section-gradient {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 1) 0%,
        rgba(241, 245, 249, 1) 50%,
        rgba(248, 250, 252, 1) 100%
    );
} 