/**
 * Produits page hero carousel — redesign 2026-07-21
 * Clean editorial split: aspect image frame, no red glow under photos, smaller PC titles.
 * Revert: use produits-hero-carousel.ORIGINAL.css instead.
 */
.hero-carousel {
    background-color: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.hero-carousel .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 2rem 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .carousel-slide {
        padding: 2.75rem 0 1.25rem;
    }
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .slide-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.slide-text {
    order: 2;
}

@media (min-width: 1024px) {
    .slide-text {
        order: 1;
    }
}

.slide-image-wrapper {
    order: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .slide-image-wrapper {
        order: 2;
        justify-content: stretch;
    }
}

/* Aspect-ratio frame — even crop, no red wash */
.slide-image-wrapper .slide-image,
.slide-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 0.875rem;
    background-color: #e5e7eb;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 1024px) {
    .slide-image {
        border-radius: 1rem;
    }
}

.carousel-slide.active .slide-image {
    animation: slideImageIn 0.7s ease forwards;
}

@keyframes slideImageIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-image:hover {
    transform: scale(1.015);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.22);
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--brand-red, #d90429), #ff4757);
    color: white;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 14px rgba(217, 4, 41, 0.35);
}

.slide-badge svg {
    width: 16px;
    height: 16px;
}

/* Smaller titles — avoid awkward stacking on PC */
.slide-title {
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--grey-900, #111827);
    margin: 0 0 0.85rem 0;
}

@media (min-width: 640px) {
    .slide-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .slide-title {
        font-size: 2.125rem;
        line-height: 1.22;
    }
}

.slide-title .highlight {
    color: var(--brand-red, #d90429);
    position: relative;
}

.slide-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-red, #d90429);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.carousel-slide.active .slide-title .highlight::after {
    transform: scaleX(1);
}

.slide-description {
    font-size: 0.975rem;
    color: var(--grey-600, #4b5563);
    margin: 0 0 1.25rem 0;
    line-height: 1.65;
}

@media (min-width: 640px) {
    .slide-description {
        font-size: 1.05rem;
    }
}

.slide-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    margin-bottom: 1.35rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-red, #d90429);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--grey-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.65rem;
    background: var(--brand-red, #d90429);
    color: white;
    font-weight: 700;
    font-size: 0.975rem;
    border-radius: 0.75rem;
    border: 2px solid var(--brand-red, #d90429);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -5px rgba(217, 4, 41, 0.35);
    text-decoration: none;
}

.slide-btn:hover {
    background: white;
    color: var(--brand-red, #d90429);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.12);
}

.slide-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.slide-btn:hover svg {
    transform: translateX(4px);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
    z-index: 10;
}

@media (min-width: 1024px) {
    .carousel-controls {
        padding: 0 0.75rem;
    }
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    transition: all 0.3s ease;
    color: var(--grey-700, #374151);
}

.carousel-btn:hover {
    background: var(--brand-red, #d90429);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.carousel-btn svg {
    width: 22px;
    height: 22px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0 1.25rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grey-300, #d1d5db);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-indicator::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.carousel-indicator:hover {
    background: var(--grey-400, #9ca3af);
}

.carousel-indicator.active {
    background: var(--brand-red, #d90429);
    transform: scale(1.15);
}

.carousel-indicator.active::after {
    border-color: rgba(217, 4, 41, 0.25);
}

.carousel-pause-btn {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--brand-red, #d90429);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    color: var(--brand-red, #d90429);
    z-index: 20;
}

.carousel-pause-btn:hover {
    background: var(--brand-red, #d90429);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.carousel-pause-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 640px) {
    .carousel-pause-btn {
        bottom: 0.85rem;
        right: 0.85rem;
        width: 38px;
        height: 38px;
    }

    .carousel-pause-btn svg {
        width: 15px;
        height: 15px;
    }

    .slide-stats {
        gap: 1rem 1.25rem;
    }
}
