/**
 * Features Avancées - Styles
 */

/* === BADGES PRODUITS === */
.shop__icon-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #cf9816, #f0b429);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow:
        0 2px 8px rgba(207, 152, 22, 0.45),
        0 0 22px rgba(240, 180, 41, 0.35),
        0 0 50px rgba(240, 180, 41, 0.18);
    animation: pulse-badge 2s ease-in-out infinite;
    overflow: hidden;
    isolation: isolate;
}

.product-badge::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 62%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.70) 0%,
        rgba(255, 255, 255, 0.22) 35%,
        rgba(255, 255, 255, 0.00) 100%
    );
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.product-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 35%,
        rgba(255, 255, 255, 0.90) 50%,
        rgba(255, 255, 255, 0.0) 66%,
        transparent 100%
    );
    transform: translateX(-120%);
    animation: badge-shine 2.2s ease-in-out infinite;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes badge-shine {
    0% { transform: translateX(-120%); opacity: 0; }
    15% { opacity: 0.9; }
    45% { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(120%); opacity: 0; }
}

/* === INDICATEUR DE STOCK - DÉSACTIVÉ === */
.stock-indicator {
    display: none !important;
}

.stock-message {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(207, 22, 22, 0.12);
    border: 1px solid rgba(207, 22, 22, 0.35);
    color: #ffb4b4;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.is-out-of-stock {
    opacity: 1;
}

.is-out-of-stock .shop__card__purchase {
    width: 200px;
}

.is-out-of-stock .shop__card__purchase:disabled {
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.is-out-of-stock .shop__card__purchase:disabled::before {
    width: 0;
    height: 0;
}

.is-out-of-stock .shop__card__purchase[data-disabled="true"]::after {
    content: none !important;
}

.is-out-of-stock .stock-message {
    display: none;
}

/* === COMPARATEUR DE PRIX === */
.price-comparison {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.savings {
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* === BADGES DE CONFIANCE - DESIGN MODERNE 2025 (FAIBLE CONTRASTE) === */
.trust-badges {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 8px 0 16px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(40, 167, 69, 0.04));
    border: 1px solid rgba(40, 167, 69, 0.25);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #6ee7b7;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.08);
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transition: left 0.5s ease;
}

.trust-badge:hover::before {
    left: 100%;
}

.trust-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.12), rgba(40, 167, 69, 0.08));
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.15);
    color: #5ee9a8;
}

.trust-badge span {
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(135deg, #5ee9a8, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 3px rgba(94, 233, 168, 0.3));
    animation: pulse-check 2s ease-in-out infinite;
}

@keyframes pulse-check {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(94, 233, 168, 0.3));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 5px rgba(94, 233, 168, 0.5));
    }
}

/* Effet de brillance moderne */
.trust-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-badge:hover::after {
    opacity: 1;
}

/* === TOGGLE THÈME - DÉSACTIVÉ === */
.theme-toggle {
    display: none !important;
}

/* === BOUTON PANIER - DÉSACTIVÉ === */
.cart-button {
    display: none !important;
}

.add-to-cart-btn {
    display: none !important;
}

/* === POPUP VENTES RÉCENTES - DÉSACTIVÉ === */
.recent-sale-popup {
    display: none !important;
}

/* === POPUP NEWSLETTER - DÉSACTIVÉ === */
.newsletter-popup {
    display: none !important;
}

.newsletter-popup.show {
    opacity: 1;
}

.newsletter-content {
    background: #1a1a1a;
    border: 2px solid #cf9816;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.newsletter-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.newsletter-content h2 {
    color: #cf9816;
    margin-bottom: 16px;
}

.newsletter-content p {
    color: #ccc;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 14px;
}

.newsletter-form button {
    padding: 12px;
    background: #cf9816;
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #f0b429;
    transform: translateY(-2px);
}

/* === POPUP PROMOTION === */
.promo-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.8); */
    backdrop-filter: blur(2px);
    display: grid;
    place-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
}

/* Empêche le scroll du body quand la popup est ouverte */
body.promo-popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
    left: 0 !important;
    right: 0 !important;
    /* top sera défini dynamiquement par JavaScript pour préserver la position */
}

html.promo-popup-open {
    overflow: hidden !important;
    height: 100% !important;
}

.promo-popup.show {
    opacity: 1;
}

.promo-content {
    background: var(--backgroundSecond);
    border: 1px solid rgba(207, 22, 22, 0.3);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: promoSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    justify-self: center;
    align-self: center;
}

@keyframes promoSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.promo-illustration {
    background: linear-gradient(135deg, rgba(207, 22, 22, 0.1), rgba(207, 22, 22, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    /* Assure que l'illustration ne déborde pas */
    min-height: 0;
}

.promo-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(207, 22, 22, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.promo-illustration-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.promo-illustration-content .promo-icon {
    font-size: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(207, 22, 22, 0.3));
}

.promo-illustration-content .promo-logo {
    color: var(--colorMain);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.promo-form-section {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Assure que le formulaire ne déborde pas */
    min-height: 0;
    overflow: hidden;
}

.promo-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--colorText);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 8px 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.promo-close:hover {
    background: rgba(207, 22, 22, 0.3);
    color: var(--colorDefault);
    transform: rotate(90deg);
}

.promo-title {
    color: var(--colorDefault);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.promo-title .highlight {
    color: var(--colorMain);
    display: block;
    font-size: 36px;
    margin-top: 4px;
}

.promo-subtitle {
    color: var(--colorText);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.promo-code {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-code-label {
    color: var(--colorText);
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
}

.promo-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.promo-code-value {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(207, 22, 22, 0.15);
    border: 1px solid rgba(207, 22, 22, 0.35);
    padding: 8px 12px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
}

.promo-code-copy {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-code-copy:hover {
    background: rgba(255, 255, 255, 0.10);
}

.promo-timer {
    margin-bottom: 24px;
    text-align: center;
}

.promo-timer-label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.promo-timer-countdown {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Courier New', 'Consolas', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
    color: #fff;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.promo-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promo-form input {
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: var(--backgroundMain);
    color: var(--colorDefault);
    font-size: 15px;
    transition: all 0.3s ease;
}

.promo-form input:focus {
    outline: none;
    border-color: var(--colorMain);
    box-shadow: 0 0 0 3px rgba(207, 22, 22, 0.1);
}

.promo-form input::placeholder {
    color: var(--colorText);
}

.promo-unlock-btn {
    padding: 18px 32px;
    background: var(--colorMain);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.promo-unlock-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.promo-unlock-btn:hover::before {
    width: 300px;
    height: 300px;
}

.promo-unlock-btn:hover {
    background: var(--colorDefault);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(207, 22, 22, 0.4);
}

.promo-unlock-btn:active {
    transform: translateY(0);
}

.promo-skip {
    background: none;
    border: none;
    color: var(--colorText);
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    padding: 8px;
    transition: color 0.3s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.promo-skip:hover {
    color: var(--colorDefault);
    text-decoration-color: var(--colorDefault);
}

/* Responsive */
@media (max-width: 768px) {
    .promo-content {
        grid-template-columns: 1fr;
        max-width: 95%;
    }
    
    .promo-illustration {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .promo-illustration-content .promo-icon {
        font-size: 80px;
    }
    
    .promo-form-section {
        padding: 40px 30px;
    }
    
    .promo-title {
        font-size: 26px;
    }
    
    .promo-title .highlight {
        font-size: 30px;
    }
    
    .promo-timer-countdown {
        font-size: 20px;
        padding: 8px 14px;
    }
}

/* === RECHERCHE FAQ - DÉSACTIVÉ === */
.faq-search-container {
    display: none !important;
}

.faq-search {
    display: none !important;
}

/* === FILTRES PRODUITS - DÉSACTIVÉ === */
.product-filters {
    display: none !important;
}

.filter-btn {
    display: none !important;
}

/* === ANIMATIONS AMÉLIORÉES === */
.shop__card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.1);
}

.shop__card__purchase {
    position: relative;
    overflow: hidden;
}

.shop__card__purchase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.shop__card__purchase:hover::before {
    width: 300px;
    height: 300px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .theme-toggle,
    .cart-button {
        right: 10px;
        width: 45px;
        height: 45px;
    }

    .recent-sale-popup {
        left: 10px;
        right: 10px;
        min-width: auto;
    }

    .newsletter-content {
        margin: 20px;
        padding: 30px 20px;
    }

    .product-filters {
        padding: 0 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* === LOADING STATES AMÉLIORÉS === */
.shop__card.loading {
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* === GARANTIE VISIBLE === */
.shop__card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop__card:hover::after {
    opacity: 1;
}


/* === MODALE PANIER === */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.cart-modal.show {
    opacity: 1;
}

.cart-modal-content {
    background: #1a1a1a;
    border: 2px solid #cf9816;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.cart-modal-header h2 {
    margin: 0;
    color: #cf9816;
    font-size: 24px;
}

.cart-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.3s ease;
}

.cart-modal-close:hover {
    color: #cf9816;
}

.cart-items {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #222;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #cf9816;
    font-size: 14px;
}

.cart-item-remove {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #dc3545;
    color: #fff;
}

.cart-total {
    padding: 20px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.cart-total-price {
    color: #cf9816;
    font-size: 24px;
}

.cart-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.cart-clear {
    flex: 1;
    padding: 12px;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cart-clear:hover {
    background: #dc3545;
    color: #fff;
}

.cart-checkout {
    flex: 2;
    padding: 12px;
    background: #cf9816;
    border: none;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cart-checkout:hover {
    background: #f0b429;
    transform: translateY(-2px);
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty p {
    color: #999;
    margin-bottom: 24px;
}

.cart-empty-btn {
    padding: 12px 24px;
    background: #cf9816;
    border: none;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cart-empty-btn:hover {
    background: #f0b429;
    transform: translateY(-2px);
}

/* === RESPONSIVE PANIER === */
@media (max-width: 768px) {
    .cart-modal-content {
        max-height: 90vh;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-clear,
    .cart-checkout {
        width: 100%;
    }
}

