/* Styles responsive pour l'image de badge fixe */
.responsive-badge,
img.w-20.h-20.object-contain[style*="position: fixed"] {
    position: fixed;
    right: 38px;
    top: 65%;
    object-fit: contain;
    margin-left: auto;
    z-index: 40; /* Lower than header's z-50 to stay below it */
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
}

/* Desktop - Grands écrans */
@media (min-width: 1200px) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        width: 80px;
        height: 80px;
        right: 50px;
        top: 65%;
        margin-left: auto;
    }
}

/* Desktop - Écrans moyens */
@media (min-width: 768px) and (max-width: 1199px) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        width: 60px;
        height: 60px;
        right: 40px;
        top: 65%;
        margin-left: auto;
    }
}

/* Tablette */
@media (min-width: 481px) and (max-width: 767px) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        width: 50px;
        height: 50px;
        right: 30px;
        top: 65%;
        margin-left: auto;
    }
}

/* Mobile - Grands téléphones */
@media (min-width: 376px) and (max-width: 480px) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        width: 115px;
        height: 100px;
        right: 20px;
        top: 65%;
        margin-left: auto;
    }
}

/* Mobile - Petits téléphones */
@media (max-width: 375px) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        width: 35px;
        height: 35px;
        right: 15px;
        top: 65%;
        margin-left: auto;
    }
}

/* Animation au survol (desktop uniquement) */
@media (min-width: 768px) {
    .responsive-badge:hover,
    img.w-20.h-20.object-contain[style*="position: fixed"]:hover {
        transform: scale(1.1);
        filter: brightness(1.1);
    }
}

/* Support tactile pour mobile */
@media (hover: none) and (pointer: coarse) {
    .responsive-badge:hover,
    img.w-20.h-20.object-contain[style*="position: fixed"]:hover {
        transform: none;
    }
    
    .responsive-badge:active,
    img.w-20.h-20.object-contain[style*="position: fixed"]:active {
        transform: scale(0.95);
    }
}

/* Support pour les appareils avec écran tactile */
@media (pointer: coarse) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Support pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Animation d'entrée */
.responsive-badge,
img.w-20.h-20.object-contain[style*="position: fixed"] {
    animation: badgeEntrance 0.5s ease-out;
}

@keyframes badgeEntrance {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Effet de brillance */
.responsive-badge::after,
img.w-20.h-20.object-contain[style*="position: fixed"]::after {
    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.5s ease;
    pointer-events: none;
}

.responsive-badge:hover::after,
img.w-20.h-20.object-contain[style*="position: fixed"]:hover::after {
    left: 100%;
}

/* Mode sombre (si nécessaire) */
@media (prefers-color-scheme: dark) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        filter: brightness(0.9);
    }
}

/* Mode paysage sur mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        width: 45px;
        height: 45px;
        right: 25px;
        top: 50%;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .responsive-badge,
    img.w-20.h-20.object-contain[style*="position: fixed"] {
        animation: none;
        transition: none;
    }
    
    .responsive-badge:hover,
    img.w-20.h-20.object-contain[style*="position: fixed"]:hover {
        transform: none;
    }
} 