/* Optimisation et styles spécifiques pour les images Chaumet */

/* Images Chaumet - Base */
.chaumet-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(12, 27, 84, 0.15);
    transition: all 0.3s ease;
}

.chaumet-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(12, 27, 84, 0.25);
}

/* Logo Chaumet dans différents contextes */
.chaumet-logo-small {
    height: 30px;
    width: auto;
}

.chaumet-logo-medium {
    height: 60px;
    width: auto;
}

.chaumet-logo-large {
    height: 120px;
    width: auto;
}

/* Overlay pour les images de bijoux */
.bijou-overlay {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 15px;
}

.bijou-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg, 
        rgba(12, 27, 84, 0.1) 0%, 
        rgba(212, 175, 55, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bijou-overlay:hover::after {
    opacity: 1;
}

/* Galerie d'images responsive */
.chaumet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(12, 27, 84, 0.2);
}

/* Optimisation pour différents formats d'écran */
@media (max-width: 1200px) {
    .chaumet-gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .chaumet-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .chaumet-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
}

/* Image loading states */
.chaumet-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Aspect ratio containers */
.aspect-ratio-16-9 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.aspect-ratio-4-3 {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
}

.aspect-ratio-1-1 {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
}

.aspect-ratio-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Image effects for luxury appeal */
.luxury-glow {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.luxury-blur-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.7);
    z-index: -1;
    transform: scale(1.1);
}

/* Print styles */
@media print {
    .chaumet-image,
    .chaumet-logo {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .chaumet-logo,
    .chaumet-bijou {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
