/* Styles CSS personnalisés pour l'amélioration - VERSION RESPONSIVE AMÉLIORÉE */

/* Base responsive - TRÈS IMPORTANT */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Navigation avec effet glassmorphism amélioré */
.nav-glass {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(147, 51, 234, 0.95));
    backdrop-filter: blur(25px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.1);
}

.nav-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-glass:hover::before {
    opacity: 1;
}
#navCheckButton {
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
}

/* Section hero avec des effets visuels avancés */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 1rem;
    width: 100%;
    min-height: 70vh;
}

.hero-section::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    opacity: 0.2;
    z-index: 1;
    animation: gentle-pulse 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
    z-index: 1;
}

.hero-section > div {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

/* Animations améliorées */
.floating-animation {
    animation: float-enhanced 6s ease-in-out infinite;
}

@keyframes float-enhanced {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(0.5deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(-0.5deg); 
    }
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.3; }
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse-ring {
    animation: pulse-enhanced 2s infinite;
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: inherit;
    opacity: 0.3;
    animation: pulse-ring-inner 2s infinite 0.5s;
}

@keyframes pulse-enhanced {
    0% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7),
                    0 0 0 0 rgba(34, 197, 94, 0.4); 
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.3),
                    0 0 0 20px rgba(34, 197, 94, 0.1); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0),
                    0 0 0 0 rgba(34, 197, 94, 0); 
    }
}

@keyframes pulse-ring-inner {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Cartes avec effet glassmorphism premium */
.glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 2.5rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-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.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Cartes de marque avec interactions avancées */
.brand-card {
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.05),
        0 0 0 1px rgba(0,0,0,0.02) inset;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.brand-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 0 0 1px rgba(102, 126, 234, 0.1) inset;
}

.brand-card:hover::after {
    transform: translateX(100%);
}

/* Showcase des cartes cadeaux */
.gift-cards-showcase {
    padding: 4rem 1rem;
    width: 100%;
    position: relative;
}

.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.card-image {
    border-radius: 0.75rem;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-image:hover {
    transform: scale(1.08) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.2),
        0 0 0 1px rgba(102, 126, 234, 0.2) inset;
}

.card-image:hover::before {
    opacity: 1;
}

/* Section statistiques avec effets visuels */
.stats-section {
    background: 
        linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(102,126,234,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(147,51,234,0.1)"/></svg>');
    padding: 5rem 1rem;
    width: 100%;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95)),
        white;
    border-radius: 1.5rem;
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.08),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 0 0 1px rgba(102, 126, 234, 0.1) inset;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Sections avec arrière-plan amélioré */
.section-bg {
    background: 
        linear-gradient(135deg, #fdfdfd 0%, #f9f9f9 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1" fill="rgba(102,126,234,0.05)"/></svg>');
    width: 100%;
}

/* Cartes de fonctionnalités premium */
.feature-card {
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,1)),
        white;
    border-radius: 1.5rem;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 0 0 1px rgba(255,255,255,0.3) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate-slow 10s linear infinite;
}

.feature-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.15),
        0 0 0 1px rgba(102, 126, 234, 0.1) inset;
}

.feature-card:hover::before {
    opacity: 1;
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer avec gradient amélioré */
.footer-section {
    background: 
        linear-gradient(135deg, #4F46E5 0%, #8B5CF6 50%, #6366F1 100%),
        linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    width: 100%;
    position: relative;
}

.footer-section::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"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

/* Sélecteur de langue avec interactions fluides */
.language-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    z-index: 1000;
}

.current-language {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-language:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.language-flag {
    width: 20px;
    height: 15px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    margin-right: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.current-language:hover .language-flag {
    transform: scale(1.1);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: 0.75rem;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    min-width: 150px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    pointer-events: auto !important; /* Force l'interaction */
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.language-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.language-option:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
    transform: translateX(5px);
}

.language-option:hover::before {
    transform: scaleY(1);
}

.language-option .language-flag {
    margin-right: 0.75rem;
}

/* Bouton hero avec effets premium */
.btn-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #F97316 0%, #EF4444 100%);
    color: white;
    font-weight: bold;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    font-size: clamp(1rem, 3vw, 1.5rem);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 20px rgba(249, 115, 22, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-decoration: none !important;
    width: auto;
    max-width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-hero-action::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 ease;
}

.btn-hero-action:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(249, 115, 22, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-hero-action:hover::before {
    left: 100%;
}

.btn-hero-action .fas {
    margin-right: 0.75rem;
    font-size: 1.8rem;
    transition: transform 0.2s ease;
}

.btn-hero-action:hover .fas {
    transform: scale(1.2) rotate(5deg);
}

/* Formulaire avec design premium */
.form-section-container {
    background: 
        linear-gradient(135deg, #e0f2fe 0%, #cfe2f3 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(102,126,234,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(147,51,234,0.1)"/></svg>');
    padding: 5rem 1rem;
    border-radius: 2rem;
    margin-top: -6rem;
    position: relative;
    z-index: 10;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.form-section-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.form-image-column {
    background-size: cover;
    background-position: center;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.form-image-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-image-column:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 20px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary::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.6s ease;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Section "Comment ça marche" avec design premium */
.how-it-works-step {
    text-align: center;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,1)),
        white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.07),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.how-it-works-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #8B5CF6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.how-it-works-step:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.12),
        0 0 0 1px rgba(102, 126, 234, 0.1) inset;
}

.how-it-works-step:hover::before {
    transform: scaleX(1);
}

.how-it-works-step img {
    max-height: 150px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.how-it-works-step:hover img {
    transform: scale(1.05) rotate(2deg);
}

.how-it-works-step .relative .w-24 {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    transition: all 0.3s ease;
}

.how-it-works-step:hover .relative .w-24 {
    transform: translateX(-50%) scale(1.1);
}

/* Champs de saisie avec design premium */
.code-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100%;
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.code-input:focus {
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.15),
        0 8px 16px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.remove-code-btn {
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
}

.remove-code-btn:hover {
    opacity: 1;
    transform: scale(1.2) rotate(90deg);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* MEDIA QUERIES RESPONSIVES (conservées) */

/* Tablettes */
@media (max-width: 1024px) {
    .form-image-column {
        margin-bottom: 2rem;
        min-height: 300px;
    }
    
    .glass-card {
        padding: 2rem;
    }
    
    .hero-section {
        padding: 5rem 1rem;
    }
}

/* Petites tablettes et grands mobiles */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 1rem;
        min-height: 60vh;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .btn-hero-action {
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }

    .form-section-container {
        padding: 4rem 1rem;
        margin-top: -4rem;
        border-radius: 1rem;
    }

    .form-image-column {
        min-height: 250px;
        margin-bottom: 2rem;
    }

    .cards-container {
        gap: 1rem;
    }

    .how-it-works-step {
        padding: 2rem;
    }

    .language-dropdown {
        right: -50px;
        min-width: 200px;
    }

    /* Réduction des effets sur mobile pour les performances */
    .hero-section::after {
        display: none;
    }
    
    .feature-card::before {
        display: none;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0.5rem;
        min-height: 50vh;
    }

    .hero-section::after {
        display: none;
    }

    .btn-hero-action {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        margin: 0.5rem;
    }

    .glass-card {
        padding: 1rem;
    }

    .form-section-container {
        padding: 3rem 0.5rem;
        margin-top: -3rem;
    }

    .form-image-column {
        min-height: 200px;
        border-radius: 1rem;
    }

    .how-it-works-step {
        padding: 1.5rem;
    }

    .how-it-works-step img {
        max-height: 120px;
    }

    .language-selector {
        margin-left: auto;
    }

    .language-dropdown {
        right: 0;
        min-width: 180px;
    }

    .cards-container {
        gap: 0.5rem;
    }

    /* Utilitaires mobiles */
    .flex-col-mobile {
        flex-direction: column !important;
    }

    .gap-mobile-4 > * + * {
        margin-top: 1rem !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .w-full-mobile {
        width: 100% !important;
    }

    /* Désactivation des animations complexes sur mobile */
    .feature-card::before,
    .glass-card::before,
    .brand-card::after {
        display: none;
    }
    
    .floating-animation {
        animation: float-mobile 4s ease-in-out infinite;
    }
    
    @keyframes float-mobile {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .hero-section {
        padding: 2rem 0.25rem;
    }

    .btn-hero-action {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .glass-card {
        padding: 0.75rem;
    }

    .form-section-container {
        padding: 2rem 0.25rem;
    }
    
    /* Simplification maximale pour les très petits écrans */
    * {
        animation: none !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
}

/* Animations d'entrée pour les éléments visibles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes utilitaires pour les animations d'entrée */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Effets de focus améliorés pour l'accessibilité */
input:focus,
button:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

/* Préchargement des animations pour éviter les saccades */
.preload * {
    transition: none !important;
    animation: none !important;
}

/* Effet de brillance pour les éléments interactifs */
.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 ease;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Amélioration des boutons avec état actif */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-enhanced:active {
    transform: scale(0.98);
}

.btn-enhanced::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-enhanced:active::after {
    width: 300px;
    height: 300px;
}

/* Indicateurs de chargement élégants */
.loading-dots {
    display: inline-flex;
    gap: 0.2rem;
}

.loading-dots span {
    width: 0.5rem;
    height: 0.5rem;
    background: currentColor;
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Amélioration des tooltips */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Sélection de texte personnalisée */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: inherit;
}

/*-------------------------------------------------------------------*/
@media (max-width: 768px), (hover: none) {
    .language-selector:hover .language-dropdown {
        /* Désactive l'ouverture au hover */
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px) scale(0.95);
    }
    .language-selector.active .language-dropdown {
        /* Active via JS */
        opacity: 1;
        visibility: visible;
        transform: translateY(5px) scale(1);
    }
}


/* Correction spécifique pour Safari */
@supports (-webkit-touch-callout: none) {
    .language-selector {
        -webkit-tap-highlight-color: transparent;
    }
    
    .language-option {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }
}

/*------------------- nouveau code css pour les 5 champs------------------------*/

    .code-field-group {
    margin-bottom: 0.5rem;
    }

    .remove-code-btn {
    min-width: 2rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    /* Sur mobile, réduisez l'espacement */
    @media (max-width: 640px) {
    .code-field-group {
        margin-bottom: 0.25rem;
    }
    }

