/* Styles personnalisés pour Prof Najib avec Dark Mode */

/* Configuration Tailwind Dark Mode */
.dark {
    color-scheme: dark;
}

/* Variables CSS pour les transitions */
:root {
    --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* =========================
   MODAL D'IMAGE - ZOOM SCREENSHOTS
   ========================= */

.image-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.modal-backdrop {
    cursor: pointer;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-image {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.modal-content:hover .modal-image {
    transform: scale(1.02);
}

/* CSS MODAL DÉSACTIVÉ - PROBLÈME DE SCROLL RÉSOLU */
/*
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}
*/

/* Responsive pour le modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

/* ===== STYLES POUR SCROLL HORIZONTAL DES SCREENSHOTS ===== */

/* Container principal du scroll horizontal */
.horizontal-scroll-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.horizontal-scroll-container {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 197, 94, 0.5) transparent;
}

/* Webkit scrollbar styling */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.6);
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.8);
}

/* Cards des screenshots */
.screenshot-card {
    min-width: 320px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Images dans les cards */
.screenshot-card img {
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.screenshot-card:hover img {
    transform: scale(1.02);
}

/* Support pour le défilement tactile */
.horizontal-scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.screenshot-card {
    scroll-snap-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .screenshot-card {
        min-width: 280px;
    }
}

@media (max-width: 640px) {
    .screenshot-card {
        min-width: 260px;
    }
}

/* Animations pour les boutons de navigation */
.flex.justify-center.mt-6 button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.flex.justify-center.mt-6 button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.flex.justify-center.mt-6 button:active {
    transform: translateY(0);
}

/* Dark mode adjustments */
.dark .screenshot-card {
    border: 1px solid rgba(55, 65, 81, 0.3);
}

.dark .screenshot-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}


/* ===== SECTION DES AVANTAGES ===== */

/* Cartes d'avantages stylisées */
.advantage-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover::before {
    left: 100%;
}

.advantage-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark .advantage-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Animation des icônes dans les cartes d'avantages */
.advantage-card i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.advantage-card:hover i {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(1.2);
}

/* Effets de gradient adaptatifs pour le mode sombre */
.dark .advantage-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
}

/* Styles pour le bouton Dark Mode */
.dark-mode-toggle {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

/* Animation des icônes du mode sombre */
.dark-icon, .light-icon {
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover .dark-icon,
.dark-mode-toggle:hover .light-icon {
    transform: rotate(180deg);
}

/* Styles pour les éléments en mode sombre */
.dark .glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .presentation-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.dark .presentation-card:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
/* =========================
   MODAL D'IMAGE - ZOOM SCREENSHOTS
   ========================= */

.image-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.modal-backdrop {
    cursor: pointer;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-image {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.modal-content:hover .modal-image {
    transform: scale(1.02);
}

/* Prévention du scroll du body quand modal ouvert */
body.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

/* Responsive pour le modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

/* Améliorations pour les cartes en mode sombre */
.dark .package-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark .package-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Styles pour les skill cards en mode sombre */
.dark .skill-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dark .skill-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* Amélioration des dégradés en mode sombre */
.dark .bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, rgb(17 24 39), rgb(67 56 202));
}

/* Scrollbar personnalisée pour le mode sombre */
.dark ::-webkit-scrollbar {
    width: 8px;
}

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Animation pour le hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title, .hero-subtitle {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation-delay: 0.3s;
}

/* Nouvelles animations pour la section présentation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.4);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Effet de particules flottantes */
.floating-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 70px 70px;
    animation: float 6s ease-in-out infinite;
}

/* Effets de survol pour les cartes de présentation */
.presentation-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.presentation-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Effet de brillance sur les badges */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.8s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Animation des icônes */
.icon-rotate {
    transition: transform 0.3s ease;
}

.icon-rotate:hover {
    transform: rotate(360deg);
}

/* Effet de gradient animé */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

/* Support RTL pour l'arabe */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .language-dropdown {
    left: 0;
    right: auto;
}

[dir="rtl"] .flex {
    flex-direction: row-reverse;
}

/* Animation des cartes */
.package-card {
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.package-card:hover::before {
    left: 100%;
}

/* Effet de survol pour les compétences */
.skill-card {
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

/* Style pour les captures WhatsApp */
.whatsapp-screenshot {
    transition: transform 0.3s ease;
}

.whatsapp-screenshot:hover {
    transform: scale(1.05);
}

/* Animation du sélecteur de langue */
.language-selector:hover .language-dropdown {
    display: block;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animations d'entrée */
.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bouton flottant WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Effet de rebond pour les flèches */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0);
    }
    70% {
        transform: translate3d(0,-4px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Responsive design amélioré */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .package-card {
        margin-bottom: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .presentation-card {
        padding: 1.5rem;
    }
    
    .dark-mode-toggle {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Styles pour les langues */
.lang-ar {
    font-family: 'Amiri', 'Arial Unicode MS', serif;
    direction: rtl;
}

.lang-en {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.lang-fr {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Animation des prix */
.price-highlight {
    position: relative;
}

.price-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    border-radius: 2px;
}

/* Effet de brillance sur les boutons */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-shine:hover::before {
    left: 100%;
}

/* Indicateur de scroll */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Styles pour les témoignages */
.testimonial-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Animation de chargement */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Nouveaux effets glass morphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Animation de texte qui apparaît */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Effet de particules */
.particles {
    position: relative;
    overflow: hidden;
}

.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 100px 100px, 50px 50px;
    animation: float 10s linear infinite;
    pointer-events: none;
}

/* Notification toast styles */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-toast.show {
    transform: translateX(0);
}

.dark .notification-toast {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Sélection de texte personnalisée */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: inherit;
}

.dark ::selection {
    background: rgba(139, 92, 246, 0.4);
}

/* Focus visible amélioré */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}

.dark *:focus-visible {
    outline-color: #8b5cf6;
}

/* ===== GESTION DES IMAGES ===== */

/* Lazy loading des images */
img.lazy {
    opacity: 0;
    transition: opacity 0.6s;
    filter: blur(5px);
}

img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Styles pour les captures WhatsApp */
.whatsapp-screenshot img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.whatsapp-screenshot:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Mode sombre pour les images */
.dark .whatsapp-screenshot img {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark .whatsapp-screenshot:hover img {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

/* Animation de chargement pour les images */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.dark .image-placeholder {
    background: linear-gradient(90deg, #374151 25%, #4B5563 37%, #374151 63%);
}

/* Responsive des images */
@media (max-width: 768px) {
    .whatsapp-screenshot img {
        height: 200px;
        object-fit: cover;
    }
}

/* Effet de zoom sur les images au hover */
.image-zoom-container {
    overflow: hidden;
    border-radius: 8px;
}

.image-zoom-container img {
    transition: transform 0.3s ease;
}

.image-zoom-container:hover img {
    transform: scale(1.1);
}

/* =========================
   SECTION CONTACT STYLÉE
   ========================= */

.contact-section {
    color: white;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Floating Icons Animation */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(255,255,255,0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.floating-icon-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.floating-icon-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.floating-icon-5 {
    top: 60%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-40px) rotate(-5deg); }
    75% { transform: translateY(-20px) rotate(3deg); }
}

/* Title Animation */
.title-container {
    position: relative;
}

.contact-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.title-word {
    display: inline-block;
    background: linear-gradient(45deg, #ffffff, #f0f0f0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

.title-word:nth-child(1) { animation-delay: 0s; }
.title-word:nth-child(2) { animation-delay: 0.5s; }
.title-word:nth-child(3) { animation-delay: 1s; }

.title-question {
    display: inline-block;
    color: #ffd700;
    animation: questionPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px #ffd700;
}

@keyframes titleGlow {
    0%, 100% { transform: scale(1); text-shadow: 0 4px 20px rgba(255,255,255,0.3); }
    50% { transform: scale(1.05); text-shadow: 0 4px 30px rgba(255,255,255,0.6); }
}

@keyframes questionPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    margin: 0 auto;
    border-radius: 2px;
    animation: underlineExpand 2s ease-in-out infinite;
}

@keyframes underlineExpand {
    0%, 100% { width: 100px; }
    50% { width: 200px; }
}

/* Subtitle with Typewriter Effect */
.contact-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    position: relative;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.typewriter-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: #ffd700;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Enhanced CTA Button */
.cta-container {
    position: relative;
}

.cta-button {
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    overflow: hidden;
    border-radius: 50px;
    transform: perspective(1px) translateZ(0);
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05) translateY(-5px);
}

.button-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #25D366, #128C7E, #075E54);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover .button-background {
    background: linear-gradient(45deg, #2BDD73, #14A085, #0C6B5C);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.button-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s ease;
}

.button-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.button-text {
    margin-right: 1rem;
}

.button-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: 3;
}

.cta-button:hover .button-shine {
    left: 100%;
}

/* Contact Info Badges */
.contact-info {
    animation: fadeInUp 1s ease 0.5s both;
}

.info-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.info-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: badgeFloat 3s ease-in-out infinite;
}

.info-badge:nth-child(1) { animation-delay: 0s; }
.info-badge:nth-child(2) { animation-delay: 1s; }
.info-badge:nth-child(3) { animation-delay: 2s; }

.info-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* =========================
   FOOTER AVEC RÉSEAUX SOCIAUX
   ========================= */

/* Social Links Styling */
.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #9CA3AF;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.social-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.social-label {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Facebook Styling */
.facebook-link .social-icon-wrapper {
    background: linear-gradient(45deg, #1877F2, #42A5F5);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.facebook-link:hover {
    color: #1877F2;
    transform: translateY(-5px);
}

.facebook-link:hover .social-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

/* Instagram Styling */
.instagram-link .social-icon-wrapper {
    background: linear-gradient(45deg, #E4405F, #F56040, #FFDC80);
    color: white;
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.instagram-link:hover {
    color: #E4405F;
    transform: translateY(-5px);
}

.instagram-link:hover .social-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.5);
}

/* WhatsApp Styling */
.whatsapp-link .social-icon-wrapper {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
    color: #25D366;
    transform: translateY(-5px);
}

.whatsapp-link:hover .social-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    animation: whatsappPulse 0.6s ease-in-out;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .button-content {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .info-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .social-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* =========================
   LOADER/SPINNER ANIMATION
   ========================= */

.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s ease;
}

.loader-container {
    text-align: center;
    color: white;
}

.spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #ffffff;
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
    border-right-color: rgba(255,255,255,0.7);
    animation-duration: 2s;
    animation-direction: reverse;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: rgba(255,255,255,0.5);
    animation-duration: 2.5s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-content {
    animation: fadeInUp 1s ease 0.5s both;
}

.loader-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.loader-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

@keyframes loadingProgress {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 100%; transform: translateX(0%); }
    100% { width: 100%; transform: translateX(100%); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

/* Responsive pour le loader */
@media (max-width: 768px) {
    .spinner {
        width: 80px;
        height: 80px;
    }
    
    .loader-title {
        font-size: 2rem;
    }
    
    .loader-subtitle {
        font-size: 1rem;
    }
    
    .loading-bar {
        width: 150px;
    }
}

/* =========================
   GALERIE TÉMOIGNAGES ULTRA-MODERNE
   ========================= */

.testimonials-gallery-section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Header moderne de la galerie */
.gallery-header-modern {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.gallery-modern-title {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: titlePulse 3s ease-in-out infinite;
}

.dark .gallery-modern-title {
    color: #F3F4F6;
}

.title-accent {
    font-size: 2.5rem;
    animation: accentFloat 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes accentFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-5px) rotate(5deg); }
}

.gallery-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #10B981, #3B82F6);
    margin: 0 auto;
    border-radius: 2px;
    animation: underlineExpand 2s ease-in-out infinite;
}

@keyframes underlineExpand {
    0%, 100% { width: 80px; opacity: 1; }
    50% { width: 120px; opacity: 0.8; }
}

/* Container de scroll moderne */
.modern-scroll-container {
    position: relative;
    margin: 0 2rem;
}

.scroll-track-modern {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 0;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-track-modern::-webkit-scrollbar {
    display: none;
}

.scroll-track-modern:active {
    cursor: grabbing;
}

/* Cards d'images modernes */
.testimonial-image-card {
    flex: 0 0 350px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-wrapper-modern {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 25px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.4s ease;
}

.dark .image-wrapper-modern {
    background: linear-gradient(145deg, #1f2937, #111827);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.testimonial-image-card:hover .image-wrapper-modern {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 35px 60px -12px rgba(0, 0, 0, 0.15),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(16, 185, 129, 0.2);
}

.dark .testimonial-image-card:hover .image-wrapper-modern {
    box-shadow: 
        0 35px 60px -12px rgba(0, 0, 0, 0.4),
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(16, 185, 129, 0.3);
}

.testimonial-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 23px;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
    cursor: pointer;
}

.testimonial-image-card:hover .testimonial-screenshot {
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* Overlay moderne */
.image-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(16, 185, 129, 0.85) 0%,
        rgba(59, 130, 246, 0.85) 50%,
        rgba(147, 51, 234, 0.85) 100%
    );
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 23px;
    backdrop-filter: blur(10px);
}

.testimonial-image-card:hover .image-overlay-modern {
    opacity: 1;
}

.zoom-indicator {
    color: white;
    font-size: 3rem;
    animation: zoomPulse 2s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes zoomPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 1; 
    }
}

/* Navigation moderne */
.modern-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.nav-btn-modern {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #64748b;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .nav-btn-modern {
    background: linear-gradient(145deg, #374151, #1f2937);
    border-color: #4b5563;
    color: #9ca3af;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.nav-btn-modern:hover {
    background: linear-gradient(145deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 20px 25px -5px rgba(16, 185, 129, 0.3),
        0 10px 10px -5px rgba(16, 185, 129, 0.1);
}

.nav-btn-modern:active {
    transform: scale(1.05) translateY(0px);
}

/* Barre de progression */
.scroll-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 300px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.dark .progress-bar {
    background: #374151;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #10b981, #3b82f6);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 12.5%; /* 1/8 initial */
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    min-width: 40px;
    text-align: center;
}

.dark .progress-text {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-scroll-container {
        margin: 0 1rem;
    }
    
    .testimonial-image-card {
        flex: 0 0 280px;
    }
    
    .image-wrapper-modern {
        height: 400px;
    }
    
    .gallery-modern-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modern-navigation {
        gap: 1rem;
        flex-direction: column;
    }
    
    .nav-btn-modern {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .scroll-progress {
        order: -1;
        max-width: 200px;
    }
    
    .zoom-indicator {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonial-image-card {
        flex: 0 0 250px;
    }
    
    .image-wrapper-modern {
        height: 350px;
    }
    
    .gallery-modern-title {
        font-size: 1.3rem;
    }
}

/* =========================
   GALERIE HORIZONTALE SIMPLE
   ========================= */

.horizontal-gallery-wrapper {
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.horizontal-gallery-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(10px); }
}

.horizontal-scroll-container {
    position: relative;
    margin: 0 2rem;
    z-index: 2;
}

.scroll-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-track::-webkit-scrollbar {
    display: none;
}

.scroll-track:active {
    cursor: grabbing;
}

.screenshot-card {
    flex: 0 0 300px;
    height: 400px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.image-container {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1.1) contrast(1.1);
    border-radius: 20px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102,126,234,0.8), rgba(118,75,162,0.8));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border-radius: 20px;
}

.screenshot-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.screenshot-card:hover .overlay-content {
    transform: translateY(0);
}

.zoom-icon {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation */
.scroll-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: white;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.nav-arrow {
    font-size: 1.2rem;
    font-weight: bold;
}

.scroll-indicator {
    flex: 1;
    max-width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.indicator-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.indicator-thumb {
    height: 100%;
    width: 30%;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    border-radius: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

/* Hover Effects pour les cartes */
.screenshot-card:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10;
}

.screenshot-card:hover .image-container {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .horizontal-scroll-container {
        margin: 0 1rem;
    }
    
    .screenshot-card {
        flex: 0 0 250px;
        height: 350px;
    }
    
    .scroll-navigation {
        gap: 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .scroll-indicator {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .screenshot-card {
        flex: 0 0 220px;
        height: 300px;
    }
    
    .zoom-icon {
        font-size: 2rem;
    }
}

/* Grille responsive moderne */
.screenshots-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

/* Cartes modernes individuelles */
.screenshot-modern-card {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark .screenshot-modern-card {
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.4), 
        rgba(0, 0, 0, 0.2)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animation d'entrée */
.screenshot-modern-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Effet de fond animé */
.card-background-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(59, 130, 246, 0.3),
        transparent,
        rgba(139, 92, 246, 0.3),
        transparent
    );
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screenshot-modern-card:hover .card-background-effect {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Conteneur d'image moderne */
.image-container-modern {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

/* Image moderne */
.modern-screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1.1) saturate(1.1);
}

.screenshot-modern-card:hover .modern-screenshot-image {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

/* Overlay moderne avec effets */
.image-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.screenshot-modern-card:hover .image-overlay-modern {
    opacity: 1;
}

/* Icône WhatsApp flottante */
.whatsapp-floating-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transform: scale(0) rotate(180deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

.screenshot-modern-card:hover .whatsapp-floating-icon {
    transform: scale(1) rotate(0deg);
}

/* Effets de lumière */
.screenshot-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
}

.screenshot-modern-card:hover::before {
    opacity: 1;
}

/* Animations d'entrée décalées */
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 0.2s; }
.card-3 { animation-delay: 0.4s; }
.card-4 { animation-delay: 0.6s; }
.card-5 { animation-delay: 0.8s; }
.card-6 { animation-delay: 1s; }

/* Responsive design moderne */
@media (max-width: 1024px) {
    .screenshots-modern-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .screenshots-modern-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .modern-screenshots-container {
        padding: 30px 15px;
    }
    
    .whatsapp-floating-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .screenshots-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .screenshot-modern-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Effet de pulsation pour l'icône WhatsApp */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

.whatsapp-floating-icon {
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

/* ===== SECTION TÉMOIGNAGES OPTIMISÉE MOBILE ===== */

/* Animations fluides */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section principale des témoignages */
.testimonials-section {
    position: relative;
    min-height: auto;
}

/* Container des screenshots optimisé */
.screenshots-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Screenshots Mobile - Optimisation prioritaire */
#whatsapp-screenshots-mobile {
    padding: 0 10px;
}

#whatsapp-screenshots-mobile .screenshot-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
    max-width: 100%;
    overflow: hidden;
}

.dark #whatsapp-screenshots-mobile .screenshot-item {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Image des screenshots mobile */
#whatsapp-screenshots-mobile .screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    max-width: 350px; /* Limite la largeur maximale */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Screenshots Desktop */
#whatsapp-screenshots-desktop .screenshot-item {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

.dark #whatsapp-screenshots-desktop .screenshot-item {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

#whatsapp-screenshots-desktop .screenshot-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.dark #whatsapp-screenshots-desktop .screenshot-item:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

#whatsapp-screenshots-desktop .screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#whatsapp-screenshots-desktop .screenshot-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Navigation dots pour mobile */
#screenshot-dots {
    padding: 10px 0;
}

.screenshot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-dot.active {
    background: #10b981;
    transform: scale(1.3);
}

.dark .screenshot-dot {
    background: #6b7280;
}

.dark .screenshot-dot.active {
    background: #34d399;
}

/* Styles pour les titres et badges */
.testimonials-section h3 {
    line-height: 1.2;
}

.testimonials-section .badge {
    backdrop-filter: blur(10px);
}

/* Optimisations spécifiques mobiles */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    #whatsapp-screenshots-mobile .screenshot-item {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 15px;
    }
    
    #whatsapp-screenshots-mobile .screenshot-item img {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .testimonials-section h3 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .testimonials-section .badge {
        font-size: 0.875rem;
        padding: 10px 16px;
    }
}

/* Optimisations pour très petits écrans */
@media (max-width: 480px) {
    .screenshots-container {
        margin: 0 -10px;
    }
    
    #whatsapp-screenshots-mobile {
        padding: 0 5px;
    }
    
    #whatsapp-screenshots-mobile .screenshot-item {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    #whatsapp-screenshots-mobile .screenshot-item img {
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
    
    .testimonials-section h3 {
        font-size: 1.75rem;
    }
}

/* Optimisations pour tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    #whatsapp-screenshots-desktop {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    #whatsapp-screenshots-desktop .screenshot-item {
        padding: 20px;
    }
}

/* Optimisations pour grands écrans */
@media (min-width: 1025px) {
    #whatsapp-screenshots-desktop {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    #whatsapp-screenshots-desktop .screenshot-item {
        padding: 30px;
    }
}

/* Animation d'apparition progressive */
.screenshot-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.screenshot-item:nth-child(1) { animation-delay: 0.1s; }
.screenshot-item:nth-child(2) { animation-delay: 0.2s; }
.screenshot-item:nth-child(3) { animation-delay: 0.3s; }
.screenshot-item:nth-child(4) { animation-delay: 0.4s; }
.screenshot-item:nth-child(5) { animation-delay: 0.5s; }
.screenshot-item:nth-child(6) { animation-delay: 0.6s; }

/* Loading placeholder pour les images */
.screenshot-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
    border-radius: 15px;
    height: 400px;
    width: 100%;
}

.dark .screenshot-loading {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Amélioration de l'accessibilité */
.screenshot-item:focus-within {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Gestion des images en erreur */
.screenshot-item img[alt]:after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    padding: 20px;
}
