/* csp-styles.css — Classes CSS pour remplacer les attributs style="" inline
   Permet de retirer 'unsafe-inline' de style-src dans le CSP. */

/* ── admin/index.html ── */
.analytics-card--flex2 { flex: 2; }
.chart-container--fixed { height: 250px; position: relative; }
.chart-canvas { display: block; width: 100%; height: 100%; }
.chart-empty-icon { width: 40px; height: 40px; margin-bottom: 8px; opacity: 0.4; }
.chart-empty-text { font-size: 14px; font-weight: 500; margin: 0; }
.chart-empty-sub { font-size: 12px; opacity: 0.7; margin: 0; }
.analytics-card--center { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.analytics-card--center h3 { border: none; }
.analytics-card--center p { text-align: center; color: #666; margin-bottom: 15px; }
.dashboard-pro-link { padding: 12px 20px; font-size: 14px; background: var(--color-primary); color: #fff; text-decoration: none; border-radius: 6px; font-weight: bold; }

/* ── promo_flash.html ── */
.promo-flash-box--pos { position: relative; overflow: hidden; margin-top: 12px; }
.promo-flash-bg { position: absolute; inset: 0; opacity: 0.04; background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, #fff 10px, #fff 11px); }
.promo-flash-icon-wrap { background: rgba(255,255,255,0.2); padding: 8px; border-radius: 12px; }
.promo-flash-icon { width: 24px; height: 24px; }
.promo-flash-discount { color: #fde047; font-weight: 900; font-size: 1.25em; }
.promo-flash-countdown-box { background: rgba(0,0,0,0.3); padding: 6px 10px; border-radius: 8px; min-width: 44px; }
.promo-flash-countdown-num { display: block; line-height: 1; }
.promo-flash-cta { background: #ffffff; color: #b91c1c; box-shadow: 0 4px 12px rgba(0,0,0,0.2); text-decoration: none; }
.promo-flash-cta-icon { width: 16px; height: 16px; }

/* ── _hero_slide.html ── */
.hero-slide { min-width: 100%; }
.hero-slide-img { object-position: 65% center; }
.hero-slide-overlay { background: linear-gradient(to right, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.70) 40%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.10) 100%); }
.hero-slide-content { padding-left: clamp(16px, 5vw, 56px); text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.6); }
.hero-slide-label { color: #ffffff; }
.hero-slide-title { color: #ffffff; }
.hero-slide-desc { color: #f5f5f5; }

/* ── hero_carousel.html ── */
.hero-carousel-box { height: clamp(340px, 55vw, 400px); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 30; cursor: pointer; background: rgba(0,0,0,0.35); border: 0; border-radius: 50%; backdrop-filter: blur(4px); transition: background 0.3s; }
.carousel-arrow:hover { background: rgba(0,0,0,0.5); }
.carousel-arrow-icon { width: 28px; height: 28px; }
.carousel-arrow--prev { left: 8px; }
.carousel-arrow--next { right: 8px; }

/* ── dashboard.html ── */
.dash-chart-wrap { height: 256px; }

/* ── navbar.html ── */
.cart-popover { top: 100%; right: 0; width: 320px; max-width: 90vw; }
.cat-nav-bar { overflow-y: visible; }
.nav-dropdown-z { z-index: 9999; }

/* ── catalog_section.html ── */
.catalog-scroll-touch { -webkit-overflow-scrolling: touch; }
.catalog-flex-center { justify-content: center; }
.badge-error-bg { background-color: var(--color-error); }

/* ── cookie_banner.html ── */
.cookie-banner-hidden { display: none; }
.cookie-modal-hidden { display: none; }

/* ── email_step_initial.html ── */
.auth-logo-center { text-align: center; }
.oauth-icon { width: 18px; height: 18px; }
.oauth-icon-fb { width: 18px; height: 18px; fill: #1877f2; }

/* ── mobile_nav.html ── */
.mobile-search-results { top: 100%; }

/* ── footer.html ── */
.footer-multicol { column-count: 3; column-gap: 1rem; }

/* ── base.html ── */
.gtm-noscript { display: none; visibility: hidden; }

/* ── support.html ── */
.hp-field-hidden { position: absolute; left: -9999px; opacity: 0; }

/* ── rds_hub_icon_inline.html ── */
.rds-icon-block { display: block; }

/* ── recent_products_section.html ── */
.recent-scroll-hide { scrollbar-width: none; -ms-overflow-style: none; }
.recent-scroll-hide::-webkit-scrollbar { display: none; }

/* ── reset_password_step.html ── */
.pwd-strength-fill { width: 0%; }

/* ── cart.html ── */
.paypal-btn { border-color: #003087; color: #003087; }

/* ── index.html (shop) ── */
.hero-typewriter-hidden { visibility: hidden; }
.hero-cursor-blink { animation: hero-blink 0.8s step-end infinite; visibility: hidden; }
.hero-subtitle-fade { transition: opacity 400ms ease-out; }

/* ── requests_list.html ── */
/* Progress bar width is dynamic — handled via CSS variable */
.progress-bar-dynamic { width: var(--progress-width, 0%); }

/* ── bundles_section.html ── */
.bundle-savings-badge { background-color: var(--color-error); }

/* ── change_form.html (admin) ── */
.admin-info-box { background: #e8f4f8; padding: 10px 12px; margin-bottom: 15px; border-left: 4px solid #417690; }
.admin-info-box p { margin: 0; color: #264b5d; }
.admin-info-box a { color: #417690; font-weight: 600; }

/* ── change_list.html (admin) ── */
.admin-search-hint { font-size: 13px; color: #666; margin-top: 4px; }
.admin-add-link { background-color: #417690; }

/* ── quick_bundle.html (admin) ── */
.quick-bundle-help { margin-bottom: 20px; }
.quick-bundle-cancel { margin-left: 12px; }

/* ── footer.html ── */
.footer-multicol { column-count: 3; column-gap: 1rem; }
.footer-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: pulse 2s infinite; }

/* ── ai_chat_widget.html ── */
.chat-bubble-user { padding: 10px 16px; max-width: 85%; }
.chat-bubble-text { font-size: 14px; white-space: pre-wrap; line-height: 1.5; margin: 0; }
.chat-toggle-btn { background: conic-gradient(from 180deg, #6366f1, #8b5cf6, #6366f1); box-shadow: 0 8px 24px -4px rgba(99,102,241,0.5); }
.chat-panel { max-height: min(600px, 75vh); box-shadow: 0 20px 60px -12px rgba(0,0,0,0.25); }
.chat-header { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.chat-header-pattern { background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px), radial-gradient(circle at 80% 20%, white 1px, transparent 1px); background-size: 24px 24px; }
.chat-messages-scroll { scroll-behavior: smooth; }
.chat-typing-dot-1 { animation-delay: 0s; }
.chat-typing-dot-2 { animation-delay: 0.15s; }
.chat-typing-dot-3 { animation-delay: 0.3s; }
.chat-send-btn { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 12px -2px rgba(99,102,241,0.4); }
.chat-ai-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; font-weight: bold; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.chat-wa-link { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 8px 14px; border-radius: 9999px; background: #10b981; color: white; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: background 0.2s; text-decoration: none; }
.chat-wa-icon { width: 16px; height: 16px; }
.chat-bubble-user-dyn { padding: 10px 16px; max-width: 85%; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #ffffff; border-radius: 16px 16px 4px 16px; box-shadow: 0 2px 8px -2px rgba(79,70,229,0.3); }
.chat-bubble-ai-dyn { padding: 10px 16px; max-width: 85%; background: var(--b1); border-radius: 16px 16px 4px 16px; border: 1px solid var(--b3); box-shadow: 0 1px 3px rgba(0,0,0,0.05); color: var(--bc); }

/* ── shop_extras.py (mark_safe HTML) ── */
.cart-badge-desktop { position: absolute; top: -6px; right: -6px; background: #e30613; color: #ffffff; font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.cart-badge-mobile { position: absolute; top: -6px; right: -4px; background: #e30613; color: #ffffff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 2px; line-height: 1; }

/* ── honeypot.py / support.html ── */
.hp-field-hidden { position: absolute; left: -9999px; opacity: 0; }

/* ── shop/partials/flash_purchase.html ── */
@keyframes flashToastIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
.flash-toast { position: fixed; z-index: 50; animation: flashToastIn 0.4s ease-out; transition: opacity 0.4s ease; }
.flash-toast--hiding { opacity: 0; }
.flash-toast--desktop { bottom: 1.5rem; left: 1.5rem; max-width: 24rem; }
.flash-toast--mobile { bottom: 5rem; left: 0.75rem; max-width: calc(100vw - 6rem); }
@media (min-width: 768px) { .flash-toast--mobile { display: none !important; } }
@media (max-width: 767px) { .flash-toast--desktop { display: none !important; } }
.flash-toast-card { background: rgba(15, 23, 42, 0.96); backdrop-filter: blur(12px); border: 1px solid rgba(148, 163, 184, 0.15); }
.flash-toast-thumb { background: #1e293b; }
.flash-toast-thumb-icon { color: #475569; }
.flash-toast-label { color: #34d399; }
.flash-toast-dot { background: #34d399; }
.flash-toast-title { color: #f1f5f9; }
.flash-toast-title--mobile { max-width: 180px; }
.flash-toast-time { color: #64748b; }
.flash-toast-close { color: #64748b; }
.flash-toast-close:hover { color: #94a3b8; background: rgba(148, 163, 184, 0.1); }
