/* Custom styles for Solutions For You SARL */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap');

/* Poppins Font Global */
* {
    font-family: 'Poppins', sans-serif;
}

/* Rethink Sans for Solutions For You in header */
.rethink-sans {
    font-family: 'Rethink Sans', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Styles */
.header-transparent {
    background: transparent !important;
    backdrop-filter: none;
}

.header-solid {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Slider Styles - Transition WHOUAH */
.slide {
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.slide.active {
    opacity: 1 !important;
    z-index: 2;
}

.slide:not(.active) {
    opacity: 0;
}

/* Animation spectaculaire de l'image - Zoom + Rotation */
.slide.transitioning-out {
    animation: imageZoomOut 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 1;
}

.slide.transitioning-in {
    animation: imageZoomIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 2;
}

@keyframes imageZoomOut {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
    50% {
        transform: scale(1.1) rotate(-2deg);
        opacity: 0.7;
        filter: blur(3px) brightness(0.8);
    }
    100% {
        transform: scale(1.2) rotate(-5deg);
        opacity: 0;
        filter: blur(5px) brightness(0.5);
    }
}

@keyframes imageZoomIn {
    0% {
        transform: scale(0.8) rotate(5deg);
        opacity: 0;
        filter: blur(5px) brightness(1.5);
    }
    50% {
        transform: scale(0.95) rotate(2deg);
        opacity: 0.7;
        filter: blur(2px) brightness(1.2);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

/* Animation WHOUAH du contenu texte */
.hero-content.transitioning {
    animation: textSlideDown 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes textSlideDown {
    0% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
        filter: blur(10px);
    }
    30% {
        transform: translateY(-50vh) scale(0.9);
        opacity: 0.3;
        filter: blur(5px);
    }
    60% {
        transform: translateY(-10px) scale(1.05);
        opacity: 0.8;
        filter: blur(1px);
    }
    80% {
        transform: translateY(5px) scale(1.02);
        opacity: 0.95;
        filter: blur(0px);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

/* Effet particules pendant la transition */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 126, 34, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(142, 68, 173, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(52, 152, 219, 0.2) 0%, transparent 50%);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.slide.transitioning-in::after {
    animation: particleEffect 1.2s ease-out;
}

@keyframes particleEffect {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Mosaic Animation Keyframes */
@keyframes mosaicIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

@keyframes mosaicOut {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(0px);
    }
}

/* Mosaic Pattern Background */
.mosaic-pattern {
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    animation: mosaicMove 20s linear infinite;
}

@keyframes mosaicMove {
    0% { background-position: 0 0, 0 30px, 30px -30px, -30px 0px; }
    100% { background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px; }
}

/* Hero Content Animation */
.hero-content {
    animation: heroContentIn 1s ease-out 0.5s forwards;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Dots Styles - Simple */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white !important;
    transform: scale(1.2);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Header styles */
.header-shadow {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.btn-primary {
    @apply bg-blue-900 text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

.btn-primary:hover {
    @apply bg-blue-800 transform scale-105 shadow-lg;
}

.btn-secondary {
    @apply border-2 border-blue-900 text-blue-900 px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

.btn-secondary:hover {
    @apply bg-blue-900 text-white transform scale-105 shadow-lg;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Hero background pattern */
.hero-pattern {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

/* Gradient overlays */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(29, 78, 216, 0.8) 100%);
}

/* Loading animation for images */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Partner logos styling */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.1);
    font-family: serif;
}

/* Mobile navigation */
.mobile-nav {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
}

/* Form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    @apply form-input resize-vertical min-h-32;
}

/* Statistics counter animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Progress bars */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.3);
    animation: progress 2s ease-in-out;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible styles */
.focus-visible:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Back to top button avec cercle de progression */
.back-to-top-btn {
    backdrop-filter: blur(10px);
}

.back-to-top-btn:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.back-to-top-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Animation du cercle de progression */
#progress-circle {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

/* Effet pulse au hover */
.back-to-top-btn:hover #progress-circle {
    animation: progressPulse 1.5s infinite;
}

@keyframes progressPulse {
    0% {
        filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
    }
}

/* Preloader Animation */
@keyframes slideIn {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* Masquer le contenu pendant le chargement */
body.loading {
    overflow: hidden;
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        /* Dark mode styles will be added here */
    }
}

/* CSS pour l'effet vidéo 3D - Section Qui Sommes-Nous */
.video_block_one .video-inner{
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    padding: 160px 30px 150px 30px;
    width: 100%;
    height: 451px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.video_block_one .video-box .image-layer .image-1{
    position: absolute;
    left: 30px;
    top: 0px;
    border-radius: 10px;
    opacity: 0.2;
    transform: rotate(8deg);
    height: 450px;
}

.video_block_one .video-box .image-layer .image-2{
    position: absolute;
    left: 30px;
    top: 5px;
    border-radius: 10px;
    opacity: 0.2;
    transform: rotate(4deg);
    height: 450px;
}

.video_block_one .video-box .image-layer img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Animation d'ondulations qui s'agrandissent et deviennent floues */
@keyframes ripple-expand {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0px);
    }
    30% {
        transform: scale(1.5);
        opacity: 0.8;
        filter: blur(0px);
    }
    70% {
        transform: scale(2.5);
        opacity: 0.3;
        filter: blur(1px);
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
        filter: blur(2px);
    }
}

/* Indicateur de progression circulaire */
.progress-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.progress-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    z-index: 1;
}

.progress-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: #f97316;
    border-radius: 50%;
    z-index: 2;
    transform: rotate(-90deg);
    animation: progress-fill 5s linear forwards;
}

@keyframes progress-fill {
    0% {
        transform: rotate(-90deg);
    }
    100% {
        transform: rotate(-90deg) rotate(360deg);
    }
}

@media only screen and (max-width: 991px) {
    .video_block_one .video-box .image-layer {
        display: none;
    }
}