/* =====================================================
 * TAONSA Tech — Bannières premium + Section Offres du moment
 * Inspiré Fnac mais en version premium (glassmorphism, animations)
 * Charge ce fichier APRÈS style.css.
 * ===================================================== */

/* =========================================================
 * BANNIÈRES (2 côte-à-côte sur desktop, empilées sur mobile)
 * ========================================================= */
.taonsa-banners-wrap {
    padding: 24px 0 8px;
}
.taonsa-banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 1024px) {
    .taonsa-banners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.taonsa-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 32px 28px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.18);
    isolation: isolate;
}
@media (max-width: 640px) {
    .taonsa-banner {
        padding: 24px 20px;
        min-height: 260px;
    }
}

/* Variante AMBRE (programme fidélité) */
.taonsa-banner-amber {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #1f2937;
}
.taonsa-banner-amber .taonsa-banner-shape-1 { background: #fde68a; }
.taonsa-banner-amber .taonsa-banner-shape-2 { background: #fcd34d; }
.taonsa-banner-amber .taonsa-banner-shape-3 { background: #fef3c7; }

/* Variante TEAL (retrait magasin) */
.taonsa-banner-teal {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #047857 100%);
    color: #ffffff;
}
.taonsa-banner-teal .taonsa-banner-shape-1 { background: #5eead4; }
.taonsa-banner-teal .taonsa-banner-shape-2 { background: #2dd4bf; }
.taonsa-banner-teal .taonsa-banner-shape-3 { background: #ccfbf1; }

/* Bruit subtil (texture) */
.taonsa-banner-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.07;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
    pointer-events: none;
}

/* Shapes flottantes (cercles décoratifs) */
.taonsa-banner-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.taonsa-banner-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    filter: blur(4px);
    animation: taonsa-banner-float 8s ease-in-out infinite;
}
.taonsa-banner-shape-1 {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
}
.taonsa-banner-shape-2 {
    width: 100px;
    height: 100px;
    bottom: 20px;
    left: 30%;
    animation-delay: -2s;
}
.taonsa-banner-shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 20%;
    animation-delay: -5s;
}
@keyframes taonsa-banner-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -10px); }
}

/* Contenu */
.taonsa-banner-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 60%;
}
@media (max-width: 640px) {
    .taonsa-banner-content {
        max-width: 100%;
    }
}

.taonsa-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.taonsa-banner-badge i {
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
}
.taonsa-banner-amber .taonsa-banner-badge {
    background: rgba(31, 41, 55, 0.18);
    color: #1f2937;
    border-color: rgba(31, 41, 55, 0.25);
}
.taonsa-banner-badge-light {
    background: rgba(255, 255, 255, 0.95);
    color: #0f766e;
    border-color: rgba(255, 255, 255, 1);
}

.taonsa-banner-title {
    font-size: 1.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
}
@media (min-width: 1024px) {
    .taonsa-banner-title { font-size: 2rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */ }
}
@media (max-width: 480px) {
    .taonsa-banner-title { font-size: 1.5rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */ }
}
.taonsa-banner-title-accent {
    background: linear-gradient(90deg, currentColor 0%, currentColor 100%);
    background-position: 0 90%;
    background-repeat: no-repeat;
    background-size: 100% 6px;
    padding-bottom: 4px;
    display: inline-block;
}
.taonsa-banner-amber .taonsa-banner-title-accent {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    background-position: 0 90%;
    background-repeat: no-repeat;
    background-size: 100% 8px;
    padding-bottom: 4px;
    color: #1f2937;
}
.taonsa-banner-teal .taonsa-banner-title-accent {
    background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 100%);
    background-position: 0 92%;
    background-repeat: no-repeat;
    background-size: 100% 8px;
    color: #ffffff;
    padding-bottom: 4px;
}

.taonsa-banner-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.taonsa-banner-list li {
    font-size: 0.8125rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.taonsa-banner-list li i {
    font-size: 0.8125rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    color: rgba(255, 255, 255, 0.95);
}
.taonsa-banner-amber .taonsa-banner-list li i {
    color: #047857;
}
.taonsa-banner-list-light li i {
    color: #fcd34d;
}

.taonsa-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1f2937;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.875rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}
.taonsa-banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
}
.taonsa-banner-cta-light {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.taonsa-banner-cta-light:hover {
    background: #f0fdfa;
}

.taonsa-banner-footnote {
    margin: 10px 0 0;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    opacity: 0.7;
    font-weight: 500;
}
.taonsa-banner-footnote-light {
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

/* Illustration côté droit */
.taonsa-banner-illu {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 35%;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .taonsa-banner-illu {
        display: none;
    }
}

/* Carte fidélité (côté ambre) */
.taonsa-banner-card-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 70%);
    filter: blur(20px);
}
.taonsa-banner-loyalty-card {
    position: relative;
    width: 220px;
    aspect-ratio: 16/10;
    border-radius: 16px;
    background: linear-gradient(135deg, #18181b 0%, #1f2937 50%, #0f172a 100%);
    color: #fff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    transform: rotate(-6deg);
    transition: transform 0.4s ease;
}
.taonsa-banner:hover .taonsa-banner-loyalty-card {
    transform: rotate(-2deg) scale(1.04);
}
.taonsa-banner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.taonsa-banner-card-logo {
    font-size: 1.125rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 900;
    letter-spacing: -0.5px;
}
.taonsa-banner-card-logo span {
    color: #fbbf24;
}
.taonsa-banner-card-header i {
    font-size: 1.375rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    opacity: 0.7;
}
.taonsa-banner-card-chip {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.taonsa-banner-card-number {
    font-size: 0.875rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    letter-spacing: 2px;
    font-family: ui-monospace, monospace;
    opacity: 0.9;
}
.taonsa-banner-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem; /* FIX 2026-05-21 : 9px sub-WCAG bumped a 12px (0.75rem) */
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Pickup icon (côté teal) */
.taonsa-banner-pickup-icon {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
    transition: transform 0.4s ease;
}
.taonsa-banner-pickup-icon svg {
    width: 100%;
    height: 100%;
}
.taonsa-banner:hover .taonsa-banner-pickup-icon {
    transform: scale(1.05) rotate(-4deg);
}

/* =========================================================
 * SECTION OFFRES DU MOMENT (slider horizontal)
 * ========================================================= */
.taonsa-deals-section {
    padding: 32px 0 16px;
    background: #ffffff;
}

.taonsa-deals-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.taonsa-deals-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
}
.taonsa-deals-eyebrow i {
    color: #ef4444;
    animation: taonsa-deals-pulse 1.5s ease-in-out infinite;
}
@keyframes taonsa-deals-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.taonsa-deals-title {
    font-size: 2rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin: 0;
}
.taonsa-deals-title-accent {
    color: #0d9488;
    background: linear-gradient(180deg, transparent 60%, rgba(13, 148, 136, 0.18) 60%, rgba(13, 148, 136, 0.18) 90%, transparent 90%);
    padding: 0 4px;
}
.taonsa-deals-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.875rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    max-width: 540px;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .taonsa-deals-title { font-size: 1.5rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */ }
    .taonsa-deals-subtitle { font-size: 0.8125rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */ }
}

/* Trust strip sous le slider */
.taonsa-deals-trust {
    margin-top: 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .taonsa-deals-trust {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}
.taonsa-deals-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.taonsa-deals-trust-item i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    box-shadow: 0 4px 8px rgba(13, 148, 136, 0.15);
    flex-shrink: 0;
}
.taonsa-deals-trust-title {
    margin: 0;
    font-size: 0.8125rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.taonsa-deals-trust-sub {
    margin: 2px 0 0;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    color: #64748b;
}

.taonsa-deals-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.taonsa-deals-link {
    color: #0d9488;
    font-size: 0.875rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.taonsa-deals-link:hover {
    text-decoration: underline;
}
.taonsa-deals-arrows {
    display: none;
    gap: 6px;
}
@media (min-width: 1024px) {
    .taonsa-deals-arrows { display: flex; }
}
.taonsa-deals-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.taonsa-deals-arrow:hover:not(:disabled) {
    background: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
    transform: scale(1.05);
}
.taonsa-deals-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Track horizontal scroll-snap */
.taonsa-deals-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 16px;
    scroll-snap-type: x mandatory;
    scroll-padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.taonsa-deals-track::-webkit-scrollbar {
    height: 6px;
}
.taonsa-deals-track::-webkit-scrollbar-track {
    background: transparent;
}
.taonsa-deals-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.taonsa-deals-track::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Skeleton loaders (avant render) */
.taonsa-deals-skeleton-row {
    display: flex;
    gap: 16px;
}
.taonsa-deals-skeleton {
    flex-shrink: 0;
    width: 240px;
    height: 320px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    border-radius: 16px;
    animation: taonsa-deals-shimmer 1.4s ease-in-out infinite;
}
@keyframes taonsa-deals-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Card produit dans le slider */
.taonsa-deal-card {
    flex-shrink: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
@media (max-width: 640px) {
    .taonsa-deal-card { width: 200px; }
}
.taonsa-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.18);
    border-color: #ccfbf1;
}

.taonsa-deal-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}
.taonsa-deal-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.taonsa-deal-card:hover .taonsa-deal-image {
    transform: scale(1.08);
}

/* Ribbon de prix style "torn paper" rouge */
.taonsa-deal-ribbon {
    position: absolute;
    top: 12px;
    right: -4px;
    z-index: 2;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    padding: 8px 12px 8px 16px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    transform: rotate(-2deg);
    text-align: center;
    line-height: 1.1;
}
.taonsa-deal-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 8px solid #991b1b;
    border-right: 4px solid transparent;
}
.taonsa-deal-ribbon-old {
    display: block;
    font-size: 0.75rem; /* FIX 2026-05-21 : 9px sub-WCAG bumped a 12px (0.75rem) */
    font-weight: 600;
    text-decoration: line-through;
    opacity: 0.85;
    margin-bottom: -2px;
}
.taonsa-deal-ribbon-new {
    display: block;
    font-size: 1rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Body */
.taonsa-deal-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.taonsa-deal-cat {
    font-size: 0.75rem; /* FIX 2026-05-21 : 10px sub-WCAG bumped a 12px (0.75rem) */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin: 0;
}
.taonsa-deal-name {
    font-size: 0.8125rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.taonsa-deal-name a {
    color: inherit;
    text-decoration: none;
}
.taonsa-deal-name a:hover { color: #0d9488; }

.taonsa-deal-price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}
.taonsa-deal-prices {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.taonsa-deal-price-old {
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}
.taonsa-deal-price-new {
    font-size: 1rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 900;
    color: #dc2626;
    letter-spacing: -0.3px;
    font-feature-settings: "tnum" on;
}
.taonsa-deal-add {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0d9488;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
    font-size: 0.875rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
}
.taonsa-deal-add:hover {
    background: #0f766e;
    transform: scale(1.06);
}
.taonsa-deal-add:active {
    transform: scale(0.96);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .taonsa-banner-shape,
    .taonsa-deals-eyebrow i,
    .taonsa-deals-skeleton {
        animation: none !important;
    }
    .taonsa-banner-loyalty-card,
    .taonsa-deal-card,
    .taonsa-deal-image {
        transition: none !important;
    }
}
