/* Variables CSS */
:root {
    --primary-color: #ffffff;
    --secondary-color: #b0b0b0;
    --background-dark: #0a0a0a;
    --showcase-background: #111111;
    --border-color: #2a2a2a;
    --text-light: #ffffff;
    --text-muted: #888888;
    --hover-color: #1f1f1f;
    --old-price-color: #ff6b6b;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-intense: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--background-dark);
    font-size: 16px;
}

/* BANDEROLE D'ANNONCE */
.announcement-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 2px solid #ff4444;
    border-bottom: 2px solid #ff4444;
    padding: 24px 0;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.announcement-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 68, 68, 0.1) 0%, transparent 70%),
                radial-gradient(circle at 80% 50%, rgba(255, 68, 68, 0.1) 0%, transparent 70%);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.announcement-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.announcement-text {
    font-size: 2.2rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    line-height: 1.8;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    text-transform: uppercase;
}

.announcement-highlight {
    color: #ff4444;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
    position: relative;
}

.announcement-highlight::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Responsive pour la banderole */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 20px 0;
        margin-top: 32px;
        margin-bottom: 32px;
    }
    
    .announcement-content {
        padding: 0 20px;
    }
    
    .announcement-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .announcement-banner {
        padding: 16px 0;
        margin-top: 24px;
        margin-bottom: 24px;
    }
    
    .announcement-content {
        padding: 0 16px;
    }
    
    .announcement-text {
        font-size: 1.3rem;
        line-height: 1.6;
    }
}

/* Page Produits */
.products-page {
    min-height: 100vh;
    background: var(--background-dark);
    padding: 0;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Header de la page */
.products-header {
    margin: 60px 0 20px 0;
}

.page-title {
    font-size: clamp(2.2rem, 3.5rem, 3.8rem);
    font-weight: 600;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
}

.products-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Showcase des produits - Layout innovant */
.products-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Item de showcase - Design osé */
.product-showcase-item {
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
    box-shadow: var(--shadow-intense);
    border: 1px solid var(--border-color);
}

.product-showcase-item:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-hover);
}

.product-showcase-link {
    position: absolute;
    inset: 0;
    z-index: 20;
    cursor: pointer;
}

/* Visual avec image de fond - CORRIGÉ */
.product-showcase-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    border-radius: 24px;
    overflow: hidden;
    /* Suppression des propriétés background pour éviter la duplication */
}

/* Image de fond avec blur */
.product-showcase-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(1px);
    transform: scale(1.02);
    transition: var(--transition);
    z-index: 1;
}

.product-showcase-item:hover .product-showcase-visual::before {
    filter: blur(0px);
    transform: scale(1.07);
}

.product-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.85) 80%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 2;
    transition: var(--transition);
    border-radius: 24px;
}

.product-showcase-item:hover .product-showcase-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 0.9) 80%,
        rgba(0, 0, 0, 0.98) 100%
    );
}

/* Overlay supplémentaire pour le contenu */
.product-showcase-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -32px;
    right: -32px;
    bottom: -20px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 20%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 0.9) 100%
    );
    border-radius: 0 0 24px 24px;
    z-index: -1;
    transition: var(--transition);
}

.product-showcase-item:hover .product-showcase-content::before {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 20%,
        rgba(0, 0, 0, 0.8) 60%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

/* Badge de prix - Design flottant */
.product-showcase-price-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 200, 100, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 12px 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.product-showcase-item:hover .product-showcase-price-badge {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.showcase-current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.02em;
}

.showcase-old-price {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: line-through;
    font-weight: 500;
}

/* Contenu du produit - CORRIGÉ */
.product-showcase-content {
    position: relative;
    z-index: 5;
    padding: 32px;
    color: #fff;
    margin-top: auto;
    transform: translateY(20px);
    transition: var(--transition);
    margin-bottom: 20px;
}

.product-showcase-item:hover .product-showcase-content {
    transform: translateY(0);
}

/* Tags - Style minimaliste */
.product-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.showcase-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.product-showcase-item:hover .showcase-tag {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Titre du produit */
.product-showcase-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Description */
.product-showcase-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 24px;
    opacity: 0.9;
    transition: var(--transition);
}

.product-showcase-item:hover .product-showcase-description {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

/* CTA Button - Design innovant */
.product-showcase-cta {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.product-showcase-cta::before {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.product-showcase-item:hover .product-showcase-cta {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.product-showcase-item:hover .product-showcase-cta::before {
    opacity: 1;
}

.showcase-cta-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.showcase-cta-arrow {
    width: 18px;
    height: 18px;
    color: #fff;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.product-showcase-item:hover .showcase-cta-arrow {
    transform: translateX(4px);
}

/* Message si pas de produits */
.no-products {
    text-align: center;
    padding: 120px 20px;
    color: var(--text-muted);
    font-size: 1.4rem;
    grid-column: 1 / -1;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-showcase {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 32px;
    }
    
    .product-showcase-item {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .products-container {
        padding: 60px 20px;
    }
    
    .products-header {
        margin-bottom: 40px;
    }
    
    .page-title {
        font-size: 3.5rem;
    }
    
    .products-subtitle {
        font-size: 1.1rem;
    }
    
    .products-showcase {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .product-showcase-item {
        height: 400px;
    }
    
    .product-showcase-content {
        padding: 24px;
    }
    
    .product-showcase-title {
        font-size: 1.6rem;
    }
    
    .product-showcase-description {
        font-size: 0.9rem;
    }
    
    .product-showcase-price-badge {
        top: 20px;
        right: 20px;
        padding: 10px 16px;
    }
    
    .showcase-current-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .products-container {
        padding: 40px 16px;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    .products-showcase {
        gap: 24px;
    }
    
    .product-showcase-item {
        height: 350px;
    }
    
    .product-showcase-content {
        padding: 20px;
    }
    
    .product-showcase-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .product-showcase-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .product-showcase-price-badge {
        top: 16px;
        right: 16px;
        padding: 8px 12px;
    }
    
    .showcase-current-price {
        font-size: 1.1rem;
    }
    
    .showcase-old-price {
        font-size: 0.8rem;
    }
    
    .product-showcase-cta {
        padding: 10px 20px;
    }
    
    .showcase-cta-text {
        font-size: 0.8rem;
    }
    
    .showcase-cta-arrow {
        width: 16px;
        height: 16px;
    }
}

/* Animations avancées */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.product-showcase-item {
    animation: floatIn 0.8s ease-out;
}

/* Effet de parallaxe subtil */
.product-showcase-item:hover .product-showcase-visual::before {
    filter: blur(0px);
    transform: scale(1.07) translateZ(10px);
}

/* Glow effect sur hover */
.product-showcase-item:hover {
    box-shadow: 
        var(--shadow-hover),
        0 0 50px rgba(255, 107, 53, 0.1);
}

/* Effet de rotation 3D plus prononcé */
.product-showcase-item:hover {
    transform: translateY(-15px) rotateX(3deg) rotateY(-2deg);
}

/* Styles pour les tags en haut à droite */
.product-showcase-tags-top {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    max-width: 200px;
}

/* MODALE PRODUIT */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.product-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: translateY(50px) scale(0.9);
    transition: all 0.3s ease;
}

.product-modal.active .product-modal-content {
    transform: translateY(0) scale(1);
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.product-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.product-modal-close svg {
    width: 20px;
    height: 20px;
}

.product-modal-body {
    display: flex;
    min-height: 500px;
}

.product-modal-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-modal-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-modal-title-price {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.product-modal-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.modal-current-price {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-hover);
    letter-spacing: -0.02em;
}

.modal-old-price {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-weight: 300;
}

.product-modal-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    flex: 1;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.product-modal-description::-webkit-scrollbar {
    width: 4px;
}

.product-modal-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.product-modal-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.product-modal-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive pour la modale */
@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .product-modal-body {
        flex-direction: column;
        min-height: auto;
    }
    
    .product-modal-image {
        height: 300px;
    }
    
    .product-modal-info {
        padding: 30px 24px;
        gap: 20px;
    }
    
    .product-modal-title {
        font-size: 2rem;
    }
    
    .modal-current-price {
        font-size: 1.6rem;
    }
    
    .modal-old-price {
        font-size: 1.2rem;
    }
    
    .product-modal-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-modal-content {
        width: 98%;
        border-radius: 16px;
    }
    
    .product-modal-image {
        height: 250px;
    }
    
    .product-modal-info {
        padding: 24px 20px;
        gap: 16px;
    }
    
    .product-modal-title {
        font-size: 1.6rem;
    }
    
    .modal-current-price {
        font-size: 1.4rem;
    }
    
    .modal-old-price {
        font-size: 1rem;
    }
    
    .product-modal-description {
        font-size: 0.9rem;
    }
    
    .product-modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
    
    .product-modal-close svg {
        width: 18px;
        height: 18px;
    }
}

.showcase-tag-top {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    white-space: nowrap;
    text-shadow: none;
}

.product-showcase-item:hover .showcase-tag-top {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Container pour titre et prix sur la même ligne */
.product-showcase-title-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    min-height: 60px;
}

/* Titre du produit */
.product-showcase-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    flex: 1;
    min-width: 0;
    align-self: flex-end;
}

/* Prix inline à côté du titre */
.product-showcase-price-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    align-self: flex-end;
}

.showcase-current-price-inline {
    font-size: 2.2rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
}

.showcase-old-price-inline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    line-height: 1;
}

/* Responsive pour titre et prix */
@media (max-width: 768px) {
    .product-showcase-title-price {
        gap: 12px;
        min-height: 50px;
        margin-bottom: 10px;
    }
    
    .product-showcase-title {
        font-size: 1.6rem;
    }
    
    .showcase-current-price-inline {
        font-size: 1.8rem;
    }
    
    .showcase-old-price-inline {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .product-showcase-title-price {
        gap: 8px;
        min-height: 45px;
        margin-bottom: 8px;
    }
    
    .product-showcase-title {
        font-size: 1.4rem;
    }
    
    .showcase-current-price-inline {
        font-size: 1.6rem;
    }
    
    .showcase-old-price-inline {
        font-size: 1.1rem;
    }
}

/* Responsive pour les tags du haut */
@media (max-width: 768px) {
    .product-showcase-tags-top {
        top: 20px;
        right: 20px;
        max-width: 150px;
    }
    
    .showcase-tag-top {
        padding: 3px 8px;
        font-size: 0.55rem;
    }
    
    .product-showcase-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-showcase-tags-top {
        top: 16px;
        right: 16px;
        max-width: 120px;
    }
    
    .showcase-tag-top {
        padding: 2px 6px;
        font-size: 0.5rem;
    }
    
    .product-showcase-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}