/* =============================================================
   Albasy Marketplace — Premium Effects Layer
   DA v2 : 60% blanc / 30% jaune #FFD600 / 10% vert
   Dépendances : alb-design-system, alb-mobile-first, alb-animations
   ============================================================= */

/* ─── 1. TOKENS EFFETS ─────────────────────────────────────── */
:root {
    --alb-glass-bg      : rgba(255, 255, 255, 0.18);
    --alb-glass-border  : rgba(255, 255, 255, 0.35);
    --alb-glass-blur    : blur(20px) saturate(180%);
    --alb-glow-yellow   : 0 0 32px rgba(255, 214, 0, 0.55);
    --alb-glow-green    : 0 0 32px rgba(0, 200, 83, 0.45);
    --alb-glow-white    : 0 0 40px rgba(255, 255, 255, 0.8);
    --alb-tilt-rx       : 0deg;
    --alb-tilt-ry       : 0deg;
    --alb-glare-x       : 50%;
    --alb-glare-y       : 50%;
    --alb-glare-opacity : 0;
    --alb-aurora-speed  : 8s;
    --alb-skeleton-base : #F0F0F0;
    --alb-skeleton-shine: #E0E0E0;
}

/* ─── 2. GLASSMORPHISM ─────────────────────────────────────── */
.alb-glass {
    background   : var(--alb-glass-bg) !important;
    backdrop-filter        : var(--alb-glass-blur);
    -webkit-backdrop-filter: var(--alb-glass-blur);
    border       : 1px solid var(--alb-glass-border) !important;
    box-shadow   : 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.6) !important;
}

.alb-glass-dark {
    background   : rgba(26, 26, 46, 0.72) !important;
    backdrop-filter        : blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border       : 1px solid rgba(255, 255, 255, 0.1) !important;
    color        : #fff !important;
}

.alb-glass-yellow {
    background   : rgba(255, 214, 0, 0.15) !important;
    backdrop-filter        : var(--alb-glass-blur);
    -webkit-backdrop-filter: var(--alb-glass-blur);
    border       : 1px solid rgba(255, 214, 0, 0.35) !important;
}

/* ─── 2b. AURORA + GLASS COMBO — glass inside aurora context ─ */
/* When an element has both alb-aurora-bg and needs glass children,
   apply alb-glass only to inner elements, not on aurora itself.
   This rule ensures aurora bg always wins over glass !important bg */
.alb-aurora-bg.alb-glass {
    background: linear-gradient(-45deg,
        rgba(255,214,0,.85) 0%,
        rgba(255,249,196,.9) 25%,
        rgba(232,245,233,.9) 50%,
        rgba(255,255,255,.95) 70%,
        rgba(255,214,0,.85) 100%
    ) !important;
    background-size: 400% 400% !important;
    animation: alb-aurora var(--alb-aurora-speed, 8s) ease infinite !important;
}

/* Page-header aurora — add breathing room */
.alb-page-header.alb-aurora-bg {
    padding: 2.5rem 1.5rem !important;
    border-radius: 14px;
    margin-bottom: 2rem;
}

/* ─── 3. AURORA / GRADIENT ANIMÉ ──────────────────────────── */
@keyframes alb-aurora {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes alb-aurora-rotate {
    0%   { transform: rotate(0deg)   scale(1); }
    50%  { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

.alb-aurora-bg {
    position  : relative;
    background: linear-gradient(-45deg,
        #FFD600 0%,
        #FFF9C4 25%,
        #E8F5E9 50%,
        #FFFFFF 70%,
        #FFD600 100%
    );
    background-size: 400% 400%;
    animation : alb-aurora var(--alb-aurora-speed, 8s) ease infinite;
    overflow  : hidden;
}

.alb-aurora-bg::before {
    content  : '';
    position : absolute;
    inset    : -50%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,214,0,.35) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(0,200,83,.2)   0%, transparent 60%);
    animation: alb-aurora-rotate 12s linear infinite;
    pointer-events: none;
}

/* Header aurora compact */
.alb-aurora-header {
    background: linear-gradient(135deg,
        #FFD600 0%,
        #FFF176 40%,
        #E8F5E9 70%,
        #FFFFFF 100%
    );
    background-size: 200% 200%;
    animation : alb-aurora 6s ease infinite;
}

/* ─── 4. 3D TILT CARD ──────────────────────────────────────── */
.alb-tilt {
    transform-style : preserve-3d;
    transform       : perspective(900px)
                      rotateX(var(--alb-tilt-rx))
                      rotateY(var(--alb-tilt-ry));
    transition      : transform 0.1s ease, box-shadow 0.3s ease;
    will-change     : transform;
    position        : relative;
    overflow        : hidden;
}

.alb-tilt:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), var(--alb-glow-yellow);
}

/* Glare overlay — injecté par JS */
.alb-tilt-glare {
    position      : absolute;
    inset         : 0;
    background    : radial-gradient(
        circle at var(--alb-glare-x) var(--alb-glare-y),
        rgba(255,255,255,0.6) 0%,
        transparent 60%
    );
    opacity       : var(--alb-glare-opacity);
    pointer-events: none;
    border-radius : inherit;
    transition    : opacity 0.2s ease;
    z-index       : 2;
}

/* Inner content lifted in Z */
.alb-tilt > *:not(.alb-tilt-glare) {
    transform : translateZ(12px);
}

/* ─── 5. SKELETON SHIMMER ──────────────────────────────────── */
@keyframes alb-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.alb-skeleton,
.alb-skeleton-text,
.alb-skeleton-card {
    background     : linear-gradient(
        90deg,
        var(--alb-skeleton-base)  25%,
        var(--alb-skeleton-shine) 50%,
        var(--alb-skeleton-base)  75%
    );
    background-size: 200% 100%;
    animation      : alb-shimmer 1.4s infinite;
    border-radius  : 8px;
    color          : transparent !important;
    pointer-events : none;
    user-select    : none;
}

.alb-skeleton-text  { height: 1em;   width: 80%; display: block; margin-bottom: .4em; }
.alb-skeleton-text.alb-sk-short  { width: 45%; }
.alb-skeleton-text.alb-sk-full   { width: 100%; }

.alb-skeleton-card {
    min-height    : 180px;
    border-radius : 14px;
}

/* Skeleton avatar */
.alb-skeleton-avatar {
    width         : 44px;
    height        : 44px;
    border-radius : 50%;
    flex-shrink   : 0;
    background    : linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation     : alb-shimmer 1.4s infinite;
}

/* Skeleton grid — 1 col mobile, 2-3 col desktop */
.alb-skeleton-grid {
    display              : grid;
    grid-template-columns: 1fr;
    gap                  : 1rem;
}
@media (min-width: 600px) {
    .alb-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .alb-skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── 6. GRADIENT TEXT ─────────────────────────────────────── */
.alb-text-gradient {
    background          : linear-gradient(135deg, #FFD600 0%, #F9A825 50%, #00C853 100%);
    -webkit-background-clip: text;
    background-clip     : text;
    -webkit-text-fill-color: transparent;
    display             : inline-block;
}

.alb-text-gradient-dark {
    background          : linear-gradient(135deg, #1A1A2E 0%, #212121 100%);
    -webkit-background-clip: text;
    background-clip     : text;
    -webkit-text-fill-color: transparent;
    display             : inline-block;
}

/* ─── 7. GLOW EFFECTS ──────────────────────────────────────── */
.alb-glow-yellow { box-shadow: var(--alb-glow-yellow) !important; }
.alb-glow-green  { box-shadow: var(--alb-glow-green)  !important; }

.alb-btn-glow {
    position  : relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alb-btn-glow::after {
    content       : '';
    position      : absolute;
    inset         : -4px;
    border-radius : inherit;
    background    : inherit;
    filter        : blur(12px);
    opacity       : 0;
    z-index       : -1;
    transition    : opacity 0.3s ease;
}

.alb-btn-glow:hover::after { opacity: 0.5; }

.alb-btn-glow:hover {
    transform  : translateY(-3px);
    box-shadow : 0 12px 40px rgba(255, 214, 0, 0.5);
}

/* ─── 8. MAGNETIC BUTTON ───────────────────────────────────── */
.alb-btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.2s ease !important;
    will-change: transform;
}

.alb-btn-magnetic:hover {
    box-shadow: 0 16px 48px rgba(255, 214, 0, 0.45) !important;
}

/* ─── 9. STAGGER 3D GRID ENTRANCE ─────────────────────────── */
@keyframes alb-stagger-3d {
    from {
        opacity  : 0;
        transform: perspective(600px) rotateX(20deg) translateY(30px) scale(0.94);
    }
    to {
        opacity  : 1;
        transform: perspective(600px) rotateX(0deg) translateY(0) scale(1);
    }
}

.alb-stagger-3d > * {
    opacity  : 0;
    animation: alb-stagger-3d 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Delays pour 8 enfants */
.alb-stagger-3d > *:nth-child(1) { animation-delay: 0.05s; }
.alb-stagger-3d > *:nth-child(2) { animation-delay: 0.12s; }
.alb-stagger-3d > *:nth-child(3) { animation-delay: 0.19s; }
.alb-stagger-3d > *:nth-child(4) { animation-delay: 0.26s; }
.alb-stagger-3d > *:nth-child(5) { animation-delay: 0.33s; }
.alb-stagger-3d > *:nth-child(6) { animation-delay: 0.40s; }
.alb-stagger-3d > *:nth-child(7) { animation-delay: 0.47s; }
.alb-stagger-3d > *:nth-child(8) { animation-delay: 0.54s; }

/* ─── 10. PAGE / SECTION TRANSITIONS ──────────────────────── */
@keyframes alb-page-in {
    from {
        opacity  : 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity  : 1;
        transform: translateY(0)    scale(1);
    }
}

@keyframes alb-page-out {
    from {
        opacity  : 1;
        transform: translateY(0)     scale(1);
    }
    to {
        opacity  : 0;
        transform: translateY(-16px) scale(0.98);
    }
}

.alb-page-enter {
    animation: alb-page-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.alb-page-exit {
    animation: alb-page-out 0.25s ease both;
}

/* Section slide-in from sides */
@keyframes alb-slide-left {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes alb-slide-right {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.alb-slide-left  { animation: alb-slide-left  0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.alb-slide-right { animation: alb-slide-right 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ─── 11. FLOATING BADGES / TAGS ──────────────────────────── */
@keyframes alb-float {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-6px); }
}

@keyframes alb-float-rotate {
    0%, 100% { transform: translateY(0)   rotate(-3deg); }
    50%       { transform: translateY(-8px) rotate(3deg);  }
}

.alb-float        { animation: alb-float        3s ease-in-out infinite; }
.alb-float-rotate { animation: alb-float-rotate 4s ease-in-out infinite; }

/* Floating badge pill */
.alb-badge-float {
    display      : inline-flex;
    align-items  : center;
    gap          : .35rem;
    padding      : .35rem .85rem;
    border-radius: 9999px;
    font-size    : .78rem;
    font-weight  : 700;
    box-shadow   : 0 4px 16px rgba(0,0,0,0.12);
    animation    : alb-float 2.5s ease-in-out infinite;
}

.alb-badge-float-yellow {
    background: #FFD600;
    color      : #1A1A2E;
}

.alb-badge-float-green {
    background: #00C853;
    color      : #fff;
}

/* ─── 12. NEON BORDER PULSE ─────────────────────────────────  */
@keyframes alb-neon-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255,214,0,.4),  0 0 24px rgba(255,214,0,.2); }
    50%       { box-shadow: 0 0 16px rgba(255,214,0,.8), 0 0 48px rgba(255,214,0,.4); }
}

.alb-neon-border {
    border    : 2px solid #FFD600 !important;
    animation : alb-neon-pulse 2.4s ease-in-out infinite;
}

/* ─── 13. MORPHING BLOB ────────────────────────────────────── */
@keyframes alb-blob-morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    33%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    66%       { border-radius: 40% 60% 30% 70% / 40% 50% 70% 30%; }
}

.alb-blob {
    animation : alb-blob-morph 8s ease-in-out infinite;
    background: linear-gradient(135deg, #FFD600, #FFF176);
}

/* ─── 14. COUNTER BADGE BOUNCE ─────────────────────────────── */
@keyframes alb-badge-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.5); }
    60%  { transform: scale(0.85); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.alb-badge-updated {
    animation: alb-badge-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── 15. PROGRESS RING ─────────────────────────────────────── */
.alb-progress-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.alb-progress-ring-circle {
    fill            : none;
    stroke          : #FFD600;
    stroke-linecap  : round;
    stroke-dashoffset: var(--alb-ring-offset, 0);
    transition      : stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── 16. SPOTLIGHT HOVER ──────────────────────────────────── */
.alb-spotlight {
    position: relative;
    overflow: hidden;
}

.alb-spotlight::before {
    content   : '';
    position  : absolute;
    width     : 200px;
    height    : 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,214,0,.2) 0%, transparent 70%);
    transform : translate(-50%, -50%);
    left      : var(--alb-spot-x, 50%);
    top       : var(--alb-spot-y, 50%);
    pointer-events: none;
    opacity   : 0;
    transition: opacity 0.3s ease;
}

.alb-spotlight:hover::before { opacity: 1; }

/* ─── 17. PARTICLES CANVAS ─────────────────────────────────── */
.alb-particle-bg { position: relative; overflow: hidden; }

.alb-particles-canvas {
    position      : absolute;
    inset         : 0;
    pointer-events: none;
    opacity       : 0.35;
    z-index       : 0;
}

.alb-particle-bg > *:not(.alb-particles-canvas) { position: relative; z-index: 1; }

/* ─── 18. CONFETTI CANVAS ──────────────────────────────────── */
.alb-confetti-canvas {
    position      : fixed;
    inset         : 0;
    pointer-events: none;
    z-index       : 9999;
}

/* ─── 19. CARD FLIP 3D ─────────────────────────────────────── */
.alb-flip-card {
    perspective: 1000px;
}

.alb-flip-card-inner {
    position         : relative;
    width            : 100%;
    height           : 100%;
    transform-style  : preserve-3d;
    transition       : transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alb-flip-card:hover .alb-flip-card-inner,
.alb-flip-card.is-flipped .alb-flip-card-inner {
    transform: rotateY(180deg);
}

.alb-flip-front,
.alb-flip-back {
    position          : absolute;
    inset             : 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius     : inherit;
}

.alb-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #FFD600, #FFF176);
    display   : flex;
    align-items: center;
    justify-content: center;
}

/* ─── 20. REDUCED MOTION OVERRIDES ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .alb-aurora-bg,
    .alb-aurora-bg::before,
    .alb-aurora-header,
    .alb-float,
    .alb-float-rotate,
    .alb-badge-float,
    .alb-blob,
    .alb-neon-border,
    .alb-skeleton,
    .alb-skeleton-text,
    .alb-skeleton-card,
    .alb-skeleton-avatar {
        animation: none !important;
    }

    .alb-tilt {
        transform: none !important;
    }

    .alb-stagger-3d > * {
        animation: none !important;
        opacity  : 1 !important;
    }

    .alb-page-enter,
    .alb-page-exit,
    .alb-slide-left,
    .alb-slide-right {
        animation: none !important;
        opacity  : 1 !important;
        transform: none !important;
    }

    .alb-flip-card-inner {
        transition: none !important;
    }
}

/* =============================================================
   AUTO-APPLICATION — Effets appliqués sur TOUTES les classes DA
   Sans toucher chaque template individuellement.
   ============================================================= */

/* ─── A. PAGE HEADERS → Aurora animé sur toutes les pages ──── */
.alb-page-header {
    background   : linear-gradient(-45deg, #FFD600 0%, #FFF9C4 25%, #E8F5E9 55%, #FFFFFF 75%, #FFD600 100%) !important;
    background-size: 400% 400% !important;
    animation    : alb-aurora 9s ease infinite !important;
    padding      : 2.75rem 1.5rem !important;
    border-radius: var(--alb-radius-lg, 16px);
    margin-bottom: 2rem;
    overflow     : hidden;
    position     : relative;
    text-align   : center;
}

/* Lueur radiale derrière le header */
.alb-page-header::before {
    content  : '';
    position : absolute;
    inset    : -40%;
    background: radial-gradient(ellipse at 35% 50%, rgba(255,214,0,.4) 0%, transparent 55%),
                radial-gradient(ellipse at 65% 50%, rgba(0,200,83,.25) 0%, transparent 55%);
    animation: alb-aurora-rotate 14s linear infinite;
    pointer-events: none;
    z-index  : 0;
}

.alb-page-header > * { position: relative; z-index: 1; }

/* ─── B. TITRES → Gradient text sur toutes les pages ────────── */
.alb-page-title,
.ape-page-title {
    background          : linear-gradient(135deg, #1A1A2E 0%, #424242 60%, #1A1A2E 100%);
    -webkit-background-clip: text;
    background-clip     : text;
    -webkit-text-fill-color: transparent;
    display             : inline-block;
}

/* Titres des sections */
.alb-lc__section-title,
.alb-card-header h2,
.acd-card-header h3,
.acd-content-header h3 {
    background          : linear-gradient(135deg, #1A1A2E 0%, #616161 100%);
    -webkit-background-clip: text;
    background-clip     : text;
    -webkit-text-fill-color: transparent;
    display             : inline-block;
}

/* ─── C. CARDS → Effet verre léger sur toutes les pages ─────── */
.alb-card,
.acd-card,
.alb-zone-card,
.alb-top-product-item,
.ape-order-card,
.acd-order-row,
.alb-lc__redeem-card {
    background  : rgba(255, 255, 255, 0.88) !important;
    backdrop-filter       : blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border      : 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow  : 0 4px 24px rgba(0, 0, 0, 0.06),
                  inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition  : transform 0.2s ease, box-shadow 0.3s ease !important;
}

.alb-card:hover,
.acd-card:hover,
.alb-zone-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.10),
                0 0 0 1px rgba(255,214,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

/* ─── D. STAT CARDS → Glass + prêt pour tilt JS ─────────────── */
.alb-stat-card,
.acd-stat-card:not([class*="alb-glass"]) {
    background  : rgba(255, 255, 255, 0.88) !important;
    backdrop-filter       : blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border      : 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow  : 0 4px 24px rgba(0, 0, 0, 0.05),
                  inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* ─── E. BOUTONS PRIMAIRES → Glow aura sur toutes les pages ─── */
.alb-btn.alb-btn-primary,
.ape-btn.ape-btn-primary,
.acd-btn-primary {
    position : relative;
    overflow : visible;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s ease !important;
}

.alb-btn.alb-btn-primary::after,
.ape-btn.ape-btn-primary::after,
.acd-btn-primary::after {
    content      : '';
    position     : absolute;
    inset        : -4px;
    border-radius: inherit;
    background   : #FFD600;
    filter       : blur(14px);
    opacity      : 0;
    z-index      : -1;
    transition   : opacity 0.3s ease;
}

.alb-btn.alb-btn-primary:hover::after,
.ape-btn.ape-btn-primary:hover::after,
.acd-btn-primary:hover::after { opacity: 0.5; }

.alb-btn.alb-btn-primary:hover,
.ape-btn.ape-btn-primary:hover,
.acd-btn-primary:hover {
    transform : translateY(-3px) !important;
    box-shadow: 0 12px 36px rgba(255, 214, 0, 0.5) !important;
}

/* ─── F. GRILLES → Classe stagger-3d ajoutée via JS ─────────── */
/* Les grilles reçoivent la classe via initAutoEffects() en JS   */
/* Ici on s'assure que les enfants directs ont overflow visible   */
.alb-zones-grid,
.acd-badges-grid,
.ape-orders-full-list {
    overflow: visible;
}

/* ─── G. SECTION ENTRÉE → Animation douce sur page load ─────── */
[class*="-page"].alb-fade-in,
[class*="-page"][class*="alb-fade"] {
    animation: alb-page-in 0.45s cubic-bezier(0.34,1.56,0.64,1) both !important;
}

/* ─── H. EMPTY STATES → Plus visuels ────────────────────────── */
.alb-empty-state,
.ape-empty-state,
.acd-empty-state {
    background  : linear-gradient(135deg, rgba(255,214,0,.06) 0%, rgba(255,255,255,1) 100%);
    border      : 2px dashed rgba(255,214,0,.4);
    border-radius: 16px;
    padding     : 3rem 2rem;
}

.alb-empty-state i,
.ape-empty-state i,
.acd-empty-state i {
    color : #FFD600;
    filter: drop-shadow(0 4px 12px rgba(255,214,0,.5));
    animation: alb-float 3s ease-in-out infinite;
}

/* ─── I. BADGES → Float animé ───────────────────────────────── */
.alb-badge,
.ape-order-badge,
.acd-badge-item {
    animation: alb-float 3.5s ease-in-out infinite;
    animation-delay: calc(var(--badge-i, 0) * 0.3s);
}

/* ─── J. ICÔNE DE STAT ─────────────────────────────────────── */
.acd-stat-icon,
.alb-kpi-icon {
    animation: alb-float 4s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ─── K. REDUCED MOTION — tout désactiver ───────────────────── */
@media (prefers-reduced-motion: reduce) {
    .alb-page-header,
    .alb-page-header::before,
    .alb-empty-state i, .ape-empty-state i, .acd-empty-state i,
    .alb-badge, .ape-order-badge, .acd-badge-item,
    .acd-stat-icon, .alb-kpi-icon,
    [class*="-page"].alb-fade-in {
        animation: none !important;
    }
    .alb-btn.alb-btn-primary:hover,
    .ape-btn.ape-btn-primary:hover,
    .acd-btn-primary:hover {
        transform: none !important;
    }
}

/* ─── CATEGORIES GRID v5 ──────────────────────────────────── */
.alb-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}
@media (min-width: 600px) { .alb-categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .alb-categories-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 1280px) { .alb-categories-grid { grid-template-columns: repeat(6, 1fr); } }

.alb-cat-card {
    position: relative; display: block; border-radius: 14px; overflow: hidden;
    aspect-ratio: 1; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.alb-cat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.alb-cat-img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; display:block; }
.alb-cat-card:hover .alb-cat-img { transform: scale(1.08); }

.alb-cat-svg-placeholder {
    width:100%; height:100%;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFD600 100%);
    display: flex; align-items: center; justify-content: center;
}
.alb-cat-svg-placeholder i { color: #1A1A2E; opacity: 0.8; font-size: 2.5rem; }

.alb-cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, transparent 55%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
    transition: background .3s ease;
}
.alb-cat-card:hover .alb-cat-overlay { background: linear-gradient(to top, rgba(26,26,46,0.92) 0%, rgba(26,26,46,0.2) 55%); }
.alb-cat-name { color:#fff; font-family:'Playfair Display',serif; font-size:.95rem; font-weight:700; margin:0 0 .2rem; }
.alb-cat-count { color:rgba(255,255,255,.7); font-size:.75rem; font-family:'DM Sans',sans-serif; }
.alb-cat-cta { color:#FFD600; font-size:.75rem; font-weight:600; margin-top:.35rem; opacity:0; transform:translateY(4px); transition:opacity .2s ease, transform .2s ease; }
.alb-cat-card:hover .alb-cat-cta { opacity:1; transform:translateY(0); }
