/* ============================================
   DESIGN FUTURISTE & MODERNE - GDM PLATFORM
   ============================================ */

:root {
    /* Couleurs modernes avec gradients */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Couleurs solides */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #f5576c;
    --accent-color: #4facfe;
    --success-color: #43e97b;
    --danger-color: #fa709a;
    
    /* Background moderne avec glassmorphism */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    
    /* Surface moderne */
    --surface: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.12);
    --surface-light: rgba(255, 255, 255, 0.15);
    
    /* Texte */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Bordures avec glow */
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(102, 126, 234, 0.5);
    
    /* Ombres modernes avec glow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(102, 126, 234, 0.5);
    
    /* Effets néon */
    --neon-primary: 0 0 10px rgba(102, 126, 234, 0.8), 0 0 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.4);
    --neon-accent: 0 0 10px rgba(79, 172, 254, 0.8), 0 0 20px rgba(79, 172, 254, 0.6);
}

/* Mode jour (light mode) */
body.light-mode {
    /* Background clair */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    
    /* Surface claire */
    --surface: rgba(255, 255, 255, 0.9);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --surface-light: rgba(255, 255, 255, 1);
    
    /* Texte sombre */
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.7);
    --text-muted: rgba(26, 26, 26, 0.5);
    
    /* Bordures */
    --border: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(102, 126, 234, 0.3);
    
    /* Ombres claires */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.2);
    --shadow-glow-lg: 0 0 40px rgba(102, 126, 234, 0.3);
}

body.light-mode {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #f0f4f8 100%);
    background-attachment: fixed;
}

/* Empêcher le zoom sur mobile et s'assurer que le contenu s'affiche correctement */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    html, body {
        touch-action: manipulation; /* autorise le pan horizontal pour les carrousels */
        /* -webkit-overflow-scrolling déprécié depuis iOS 13+, non nécessaire dans les navigateurs modernes */
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Toggle du thème */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: 0.3s;
    border-radius: 26px;
}

.theme-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 50%;
}

.theme-toggle input:checked + .theme-toggle-slider {
    background-color: var(--primary-color);
}

.theme-toggle input:checked + .theme-toggle-slider:before {
    transform: translateX(24px);
}

.theme-toggle-slider:hover {
    box-shadow: var(--shadow-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro', 'SF UI', 'Alibaba sans', 'Segoe UI', Ubuntu, Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 87, 108, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 172, 254, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(67, 233, 123, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    position: relative;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.3s ease, color 0.3s ease;
}

.hidden {
    display: none !important;
}

/* ============================================
   ANIMATIONS GLOBALES
   ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: var(--shadow-glow-lg); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   SPLASH SCREEN FUTURISTE
   ============================================ */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Particules animées en arrière-plan */
.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loading-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    animation: float-particle 8s ease-in-out infinite;
}

.loading-particles .particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.loading-particles .particle:nth-child(2) {
    left: 20%;
    top: 60%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.loading-particles .particle:nth-child(3) {
    left: 80%;
    top: 30%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.loading-particles .particle:nth-child(4) {
    left: 70%;
    top: 70%;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

.loading-particles .particle:nth-child(5) {
    left: 50%;
    top: 10%;
    animation-delay: 0.5s;
    animation-duration: 7.5s;
}

.loading-particles .particle:nth-child(6) {
    left: 30%;
    top: 80%;
    animation-delay: 2.5s;
    animation-duration: 8.5s;
}

.loading-particles .particle:nth-child(7) {
    left: 90%;
    top: 50%;
    animation-delay: 1.2s;
    animation-duration: 7.2s;
}

.loading-particles .particle:nth-child(8) {
    left: 5%;
    top: 50%;
    animation-delay: 3s;
    animation-duration: 9s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -100px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.9;
    }
}

/* Conteneur du logo */
.loading-logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

/* Rayons de lumière rotatifs */
.loading-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate-rays 3s linear infinite;
}

.loading-rays .ray {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, 
        rgba(79, 172, 254, 0.8) 0%,
        rgba(102, 126, 234, 0.6) 50%,
        transparent 100%);
    transform-origin: bottom center;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.6);
    top: 50%;
    left: 50%;
    margin-left: -1px;
    margin-top: -80px;
}

.loading-rays .ray-1 { transform: rotate(0deg); }
.loading-rays .ray-2 { transform: rotate(45deg); }
.loading-rays .ray-3 { transform: rotate(90deg); }
.loading-rays .ray-4 { transform: rotate(135deg); }
.loading-rays .ray-5 { transform: rotate(180deg); }
.loading-rays .ray-6 { transform: rotate(225deg); }
.loading-rays .ray-7 { transform: rotate(270deg); }
.loading-rays .ray-8 { transform: rotate(315deg); }

@keyframes rotate-rays {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

/* Cercles rotatifs avec gradient */
.loading-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-color);
    border-right: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin-ring 2s linear infinite;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5),
                0 0 40px rgba(102, 126, 234, 0.3),
                inset 0 0 20px rgba(79, 172, 254, 0.2);
}

.loading-ring-inner {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px solid transparent;
    border-bottom: 2px solid var(--secondary-color);
    border-left: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin-ring-reverse 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(245, 87, 108, 0.4),
                inset 0 0 15px rgba(79, 172, 254, 0.2);
}

@keyframes spin-ring {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.5),
                    0 0 40px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(79, 172, 254, 0.8),
                    0 0 60px rgba(102, 126, 234, 0.5);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.5),
                    0 0 40px rgba(102, 126, 234, 0.3);
    }
}

@keyframes spin-ring-reverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Logo principal avec effets */
.loading-logo {
    position: relative;
    width: 120px;
    height: 120px;
    z-index: 10;
    animation: logo-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.6))
            drop-shadow(0 0 40px rgba(102, 126, 234, 0.4));
}

.loading-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.6))
                drop-shadow(0 0 40px rgba(102, 126, 234, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(79, 172, 254, 0.9))
                drop-shadow(0 0 60px rgba(102, 126, 234, 0.6))
                drop-shadow(0 0 80px rgba(79, 172, 254, 0.3));
    }
}

@keyframes logo-glow {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.9;
        filter: brightness(1.2);
    }
}

/* Effet de scan */
.loading-scan {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(79, 172, 254, 0.8) 50%,
        transparent 100%);
    top: 0;
    left: 0;
    animation: scan-move 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.8);
    z-index: 15;
}

@keyframes scan-move {
    0% {
        top: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Barre de progression */
.loading-progress {
    position: absolute;
    bottom: -30px;
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--accent-color) 0%,
        var(--primary-color) 50%,
        var(--secondary-color) 100%);
    border-radius: 2px;
    animation: progress-load 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.8),
                0 0 20px rgba(102, 126, 234, 0.6);
}

@keyframes progress-load {
    0% {
        width: 0%;
        box-shadow: 0 0 10px rgba(79, 172, 254, 0.8);
    }
    50% {
        width: 70%;
        box-shadow: 0 0 20px rgba(79, 172, 254, 1),
                    0 0 30px rgba(102, 126, 234, 0.8);
    }
    100% {
        width: 100%;
        box-shadow: 0 0 15px rgba(79, 172, 254, 0.9);
    }
}

/* Texte de chargement */
.loading-text {
    margin-top: 60px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loading-dots {
    display: inline-block;
}

.loading-dots .dot {
    animation: dot-bounce 1.4s ease-in-out infinite;
    animation-fill-mode: both;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mode jour pour le loading */
body.light-mode .splash-screen {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #f0f4f8 100%);
}

body.light-mode .loading-text {
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE - LOADING ANIMATION MOBILE
   ============================================ */

@media (max-width: 768px) {
    .loading-logo-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 30px;
    }
    
    .loading-ring {
        width: 140px;
        height: 140px;
        border-width: 2px;
    }
    
    .loading-ring-inner {
        width: 120px;
        height: 120px;
        border-width: 1.5px;
    }
    
    .loading-logo {
        width: 90px;
        height: 90px;
    }
    
    .loading-rays .ray {
        height: 60px;
        margin-top: -60px;
        width: 1.5px;
    }
    
    .loading-progress {
        width: 150px;
        height: 3px;
        bottom: -25px;
    }
    
    .loading-text {
        margin-top: 50px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .loading-particles .particle {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .loading-logo-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 25px;
    }
    
    .loading-ring {
        width: 110px;
        height: 110px;
        border-width: 2px;
    }
    
    .loading-ring-inner {
        width: 95px;
        height: 95px;
        border-width: 1px;
    }
    
    .loading-logo {
        width: 70px;
        height: 70px;
    }
    
    .loading-rays .ray {
        height: 50px;
        margin-top: -50px;
        width: 1px;
    }
    
    .loading-progress {
        width: 120px;
        height: 2px;
        bottom: -20px;
    }
    
    .loading-text {
        margin-top: 40px;
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .loading-particles .particle {
        width: 2px;
        height: 2px;
    }
    
    /* Réduire le nombre de particules sur très petits écrans */
    .loading-particles .particle:nth-child(5),
    .loading-particles .particle:nth-child(6),
    .loading-particles .particle:nth-child(7),
    .loading-particles .particle:nth-child(8) {
        display: none;
    }
}

/* ============================================
   AUTH SCREEN MODERNE
   ============================================ */

.auth-screen {
    min-height: 100vh;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(at 20% 50%, rgba(102, 126, 234, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(245, 87, 108, 0.3) 0px, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
}

.auth-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.auth-container {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    max-width: 500px;
    width: 100%;
    padding: 48px;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}

.auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

/* Logo dans l'app bar */
.app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.auth-header h1 {
    font-size: 26px;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--bg-glass);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.tab-button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-button.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 400;
}

.form-group select {
    background-color: var(--bg-secondary) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select:focus {
    background-color: var(--bg-secondary) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.form-group select option {
    background-color: var(--bg-secondary) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: 10px;
}

.form-group select optgroup {
    background-color: var(--bg-secondary) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Pour les dropdowns natifs du navigateur */
.form-group select::-ms-expand {
    display: none;
}

/* Forcer le fond sombre pour les selects sur tous les navigateurs */
select {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

select option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--shadow-glow);
    background: var(--surface-hover);
}

.input-with-prefix {
    display: flex;
    align-items: center;
}

.prefix {
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 16px 0 0 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.input-with-prefix input {
    flex: 1;
    border-left: none;
    border-radius: 0 16px 16px 0;
}

.code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro', 'SF UI', 'Alibaba sans', 'Segoe UI', Ubuntu, Helvetica, Arial, sans-serif;
    font-weight: 500;
}

/* ============================================
   BOUTONS MODERNES
   ============================================ */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-family: inherit;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 87, 108, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(250, 112, 154, 0.3);
}

.btn-logout {
    margin-bottom: 12px;
    width: 100%;
}

.btn-delete-account {
    width: 100%;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(250, 112, 154, 0.5);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 8px;
    flex-wrap: wrap;
}

.form-actions .btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: -webkit-fill-available;
    min-width: -webkit-fill-available;
    max-width: 100%;
}

.text-muted {
    color: var(--text-secondary) !important;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   APP BAR MODERNE
   ============================================ */

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-bar {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-bar-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.app-bar-title .icon {
    font-size: 32px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Le badge dans app-bar-title ne doit pas hériter du texte transparent */
.app-bar-title #user-badge {
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

.app-bar-title #user-badge *,
.app-bar-title #user-badge i,
.app-bar-title #user-badge span {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

.badge {
    padding: 5px 14px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-glow);
}

/* Badge de type de compte utilisateur dans l'app bar */
#user-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    margin-left: 12px;
    border-radius: 16px;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0;
    white-space: nowrap;
    border: none;
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    /* Forcer la couleur du texte - surcharger les styles du parent app-bar-title */
    -webkit-text-fill-color: #ffffff !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
    color: #ffffff !important;
}

/* Styles spécifiques par type de compte */
#user-badge.badge-client {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

#user-badge.badge-vendeur {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

#user-badge.badge-demarcheur {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

#user-badge.badge-admin {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Forcer la couleur blanche pour tous les éléments du badge */
#user-badge,
#user-badge *,
#user-badge i,
#user-badge span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Annuler l'effet de gradient du parent app-bar-title - garder le fond du badge */
.app-bar-title #user-badge {
    -webkit-background-clip: padding-box !important;
    background-clip: padding-box !important;
    /* Le fond sera défini par les classes badge-client, badge-vendeur, etc. */
}

#user-badge i {
    font-size: 12px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

#user-badge span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Mode jour - Badge avec ombre plus marquée pour visibilité */
body.light-mode #user-badge {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.light-mode #user-badge.badge-client {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.light-mode #user-badge.badge-vendeur {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.light-mode #user-badge.badge-demarcheur {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.light-mode #user-badge.badge-admin {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.light-mode #user-badge,
body.light-mode #user-badge * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-button {
    position: relative;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-gradient);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(250, 112, 154, 0.6);
    border: 2px solid var(--bg-primary);
}

.avatar-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: 2px solid var(--border);
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}

.avatar-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-lg);
}

.user-menu {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    min-width: 240px;
    overflow: hidden;
    z-index: 200;
    animation: slideIn 0.3s ease-out;
}

.dropdown-item {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--surface-hover);
}

.dropdown-item.danger {
    color: var(--danger-color);
}

.dropdown-item .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ============================================
   NOTIFICATIONS PANEL
   ============================================ */

.notifications-panel {
    position: fixed;
    top: 90px;
    right: 32px;
    width: 400px;
    max-height: 600px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 150;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

.notifications-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    font-size: 18px;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notifications-list {
    overflow-y: auto;
    padding: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-glass);
    border: 1px solid var(--border);
}

.notification-item:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
}

.notification-item.unread {
    background: var(--surface);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    padding-bottom: 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.page {
    display: none;
    width: 100%;
}

.page.active {
    display: block;
    animation: fadeIn 0.15s ease-out;
    width: 100%;
    min-height: calc(100vh - 200px);
}

.page-content {
    animation: fadeIn 0.15s ease-out;
    width: 100%;
    padding-bottom: 60px;
}

/* ============================================
   BOTTOM NAVIGATION MODERNE
   ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
    height: 60px;
    box-sizing: border-box;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    border-radius: 16px;
    transition: opacity 0.3s;
}

.nav-item.active {
    color: white;
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item .icon {
    font-size: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.nav-item span {
    display: none;
}

.nav-item:hover .icon {
    transform: translateY(-4px) scale(1.1);
}

.nav-item.active .icon {
    transform: scale(1.2);
}

/* ============================================
   STATS GRID MODERNE
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-tile {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-color);
}

.stat-tile:hover::before {
    transform: scaleX(1);
}

.stat-tile .icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.stat-tile-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-tile-content p {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* ============================================
   PRODUCT CARDS FUTURISTES
   ============================================ */

/* Grille générique des produits (recherche, favoris, admin, etc.) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 60px;
    width: 100%;
    scroll-behavior: smooth;
}

/* Limiter la largeur maximale des cartes pour éviter l'étirement excessif */
.products-grid .product-card {
    max-width: 260px;
    width: 100%;
    min-width: 0;
    justify-self: start;
    box-sizing: border-box;
}

/* Conteneur des résultats de recherche - layout vertical */
.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 60px;
    width: 100%;
}

/* Section de catégorie dans les résultats de recherche */
.search-category-section {
    width: 100%;
}

.search-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding: 0 8px;
}

/* S'assurer que les cartes dans les favoris sont bien alignées */
#favorites-list.products-grid .product-card,
#following-list.products-grid .product-card {
    max-width: 100%;
    width: 100%;
}

/* Limiter à 4 colonnes maximum sur grand écran */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .products-grid .product-card {
        max-width: 100%;
        width: 100%;
    }
}

/* S'assurer que toutes les cartes dans products-grid respectent la grille */
.products-grid .product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Style pour les produits dans les paramètres - organisés par catégorie */
#my-products-list {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 60px auto;
}

#my-products-list .search-category-section {
    margin-bottom: 32px;
}

#my-products-list .search-category-title {
    font-size: 1.2em;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-left: 8px;
    color: var(--text-primary);
}

#my-products-list .products-row {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: calc((240px * 6) + (16px * 5) + 8px);
    margin-left: auto;
    margin-right: auto;
}

/* Cartes de gestion des produits - taille compacte */
#my-products-list .product-card-manage {
    flex: 0 0 240px;
    max-width: 240px;
    min-width: 240px;
    width: 240px;
    height: auto;
    min-height: auto;
}

#my-products-list .product-card-manage .product-image-container {
    height: 120px;
    width: 100%;
}

#my-products-list .product-card-manage .product-info {
    padding: 6px;
}

#my-products-list .product-card-manage .product-title {
    font-size: 11px;
    margin-bottom: 3px;
}

#my-products-list .product-card-manage .product-location {
    font-size: 10px;
    margin-bottom: 6px;
}

#my-products-list .product-card-manage .product-price {
    font-size: 12px;
    margin-bottom: 4px;
}

/* Boutons avec seulement des icônes */
.btn-icon {
    padding: 4px 6px !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-icon i {
    margin: 0 !important;
    font-size: 14px !important;
}

.btn-icon span,
.btn-icon::after {
    display: none !important;
}

/* Badge de compteur d'images */
.product-images-count {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 11;
}

.product-images-count i {
    margin-right: 4px;
}

/* Placeholder d'image */
.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 32px;
    opacity: 0.5;
}

.product-image-placeholder i {
    font-size: 32px;
}

/* Responsive pour les produits dans les paramètres */
@media (max-width: 1024px) {
    #my-products-list .product-card-manage {
        flex: 0 0 220px;
        max-width: 220px;
        min-width: 220px;
        width: 220px;
    }
    
    #my-products-list .products-row {
        max-width: calc((220px * 6) + (16px * 5) + 8px);
    }
}

@media (max-width: 768px) {
    #my-products-list .product-card-manage {
        flex: 0 0 200px;
        max-width: 200px;
        min-width: 200px;
        width: 200px;
    }
    
    #my-products-list .products-row {
        max-width: calc((200px * 3) + (16px * 2) + 8px);
        padding: 0 8px 16px;
    }
    
    #my-products-list .search-category-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .btn-icon {
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
        padding: 3px 5px !important;
    }
    
    .btn-icon i {
        font-size: 12px !important;
    }
}

/* Badges de statut pour les produits */
.product-card .badge,
.product-image-container .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    color: white;
}

.badge-available {
    background: #10B981;
}

.badge-sold {
    background: #EF4444;
}

.badge-rented {
    background: #6B7280;
}

/* Rangée horizontale de produits pour les catégories (slider) */
.products-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 16px;
    margin-top: 12px;
    margin-bottom: 24px;
    scroll-behavior: smooth;
    scroll-snap-type: none;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
    /* Optimisations performance */
    -webkit-overflow-scrolling: touch; /* Retiré car déprécié, mais gardé pour compatibilité iOS ancien */
    contain: layout style;
    will-change: scroll-position;
    transform: translateZ(0); /* Force GPU acceleration pour le scroll */
}

/* Grille pour les produits sur l'accueil et la recherche - maximum 6 cartes par ligne */
.search-category-section .products-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 8px 4px 16px;
    margin-top: 12px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
    max-width: calc((240px * 6) + (16px * 5) + 8px);
    margin-left: auto;
    margin-right: auto;
}

/* Exception : garder le comportement flex pour les paramètres */
#my-products-list .products-row {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: calc((240px * 6) + (16px * 5) + 8px);
}

/* Cartes dans la grille (accueil et recherche) */
.search-category-section .products-row .product-card {
    flex: none;
    max-width: 240px;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.products-row::-webkit-scrollbar {
    height: 8px;
}

.products-row::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.products-row::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    transition: background 0.2s;
}

.products-row::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.8);
}

/* Améliorer la fluidité du scroll */
.products-row {
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
}

/* Cartes dans la rangée horizontale (catégories, produits vendeur, recherche) */
.products-row .product-card {
    flex: 0 0 240px;
    max-width: 240px;
    min-width: 240px;
    width: 240px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-shrink: 0;
    /* scroll-snap-align retiré pour un scroll plus fluide */
}

/* Exception : garder le comportement flex pour les paramètres */
#my-products-list .products-row .product-card {
    flex: 0 0 240px;
    max-width: 240px;
    min-width: 240px;
    width: 240px;
    flex-shrink: 0;
}

/* Responsive pour la grille (accueil et recherche) */
@media (max-width: 1600px) {
    .search-category-section .products-row {
        grid-template-columns: repeat(6, 1fr);
        max-width: calc((240px * 6) + (16px * 5) + 8px);
    }
}

@media (max-width: 1024px) {
    .products-row .product-card {
        flex: 0 0 220px;
        max-width: 220px;
        min-width: 220px;
        width: 220px;
    }
    
    /* Grille : 5 cartes par ligne sur tablette */
    .search-category-section .products-row {
        grid-template-columns: repeat(5, 1fr);
        max-width: calc((220px * 5) + (16px * 4) + 8px);
    }
    
    .search-category-section .products-row .product-card {
        max-width: 220px;
    }
    
    /* Exception : garder le comportement flex pour les paramètres */
    #my-products-list .products-row .product-card {
        flex: 0 0 220px;
        max-width: 220px;
        min-width: 220px;
        width: 220px;
    }
}

@media (max-width: 768px) {
    .products-row .product-card {
        flex: 0 0 200px;
        max-width: 200px;
        min-width: 200px;
        width: 200px;
    }
    
    /* Grille : 3 cartes par ligne sur mobile */
    .search-category-section .products-row {
        grid-template-columns: repeat(3, 1fr);
        max-width: calc((200px * 3) + (16px * 2) + 8px);
    }
    
    .search-category-section .products-row .product-card {
        max-width: 200px;
    }
    
    /* Exception : garder le comportement flex pour les paramètres */
    #my-products-list .products-row .product-card {
        flex: 0 0 200px;
        max-width: 200px;
        min-width: 200px;
        width: 200px;
    }
    
    .search-category-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    /* Grille : 2 cartes par ligne sur très petit écran */
    .search-category-section .products-row {
        grid-template-columns: repeat(2, 1fr);
        max-width: calc((200px * 2) + 16px + 8px);
    }
    
    .search-category-section .products-row .product-card {
        max-width: 200px;
    }
}

/* S'assurer que les cartes dans products-row ont les mêmes styles que les autres */
.products-row .product-card .product-image-container {
    width: 100%;
    height: 120px;
    flex-shrink: 0;
}

.products-row .product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 6px;
}

/* Style de base d'une carte produit */
.product-card {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
    position: relative;
    contain: layout style paint;
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
}

.product-card .product-image-container {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: 120px;
    position: relative;
    transition: transform 0.2s ease-out;
    contain: layout style paint;
    will-change: transform;
}

.product-card .product-image-container:hover {
    transform: scale(1.01);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    will-change: transform, opacity;
    transform: translateZ(0); /* Force GPU acceleration */
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-glass) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    will-change: background-position;
    contain: layout style paint;
}

.product-card:hover .product-image-container img {
    transform: scale(1.02) translateZ(0); /* Réduire le zoom pour moins de consommation */
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-2px) translateZ(0); /* Réduire le mouvement pour moins de consommation */
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    opacity: 0.1;
}

/* Ombres spécifiques au mode jour pour éviter l'effet de halo */
body.light-mode .product-card {
    box-shadow:
        0 18px 32px rgba(15, 23, 42, 0.12),
        0 6px 14px rgba(15, 23, 42, 0.06);
}

body.light-mode .product-card:hover {
    box-shadow:
        0 24px 40px rgba(15, 23, 42, 0.15),
        0 10px 18px rgba(102, 126, 234, 0.12);
}

body.light-mode .product-card::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(102, 126, 234, 0.12) 100%
    );
}

body.light-mode .product-card:hover::before {
    opacity: 0.06;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease-out;
    display: block;
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
}

.product-card:hover .product-image {
    transform: scale(1.02) translateZ(0); /* Réduire le zoom */
}

/* Optimisation pour les images lazy loaded */
.product-image[data-src] {
    opacity: 0;
}

.product-image.lazy-loaded {
    opacity: 1;
    transition: opacity 0.2s ease-in;
}

.product-info {
    padding: 6px;
    position: relative;
    z-index: 1;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.product-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-primary);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-location {
    color: var(--text-secondary);
    font-size: 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-location::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
}

.product-price {
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.product-actions {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 20;
    margin-top: 4px;
    padding: 0 2px;
    opacity: 1;
    visibility: visible;
}

.product-actions > div {
    position: relative;
    z-index: 20;
}

.product-actions .btn {
    flex: 1;
    padding: 4px 6px;
    font-size: 9px;
    min-width: 32px;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 20;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-actions .btn.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Bouton favoris actif (produit déjà en favoris) */
.product-actions .btn.btn-outline.favorite-active {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    border-color: #ff6b9d;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
}

.product-actions .btn.btn-outline.favorite-active:hover {
    background: linear-gradient(135deg, #ff5288 0%, #b83d5d 100%);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
}

.product-actions .btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.product-actions .btn i {
    margin-right: 0;
    font-size: 12px;
}

.product-actions .btn:not(:has(i)) {
    padding: 8px 16px;
}

/* ============================================
   SEARCH FORM MODERNE
   ============================================ */

.search-form-card {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.search-title {
    margin: 0;
}

.search-filters-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    animation: slideDown 0.15s ease-out;
}

.search-filters-section.hidden {
    display: none;
}

#toggle-filters-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

#toggle-filters-btn.active:hover {
    opacity: 0.9;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.location-display {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.media-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.media-item button {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 8px;
    transition: transform 0.2s;
}

.media-item button:hover {
    transform: scale(1.2);
}

.text-muted.small {
    font-size: 13px;
    margin-top: 6px;
    color: var(--text-muted);
}

.form-group h3 {
    margin-top: 32px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.results-count {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

/* ============================================
   MESSAGES MODERNE
   ============================================ */

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversation-item {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.conversation-item:hover {
    background: var(--surface-hover);
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.conversation-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.messages-view {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.messages-header {
    padding: 20px 24px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 20px;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-out;
}

/* Messages de localisation : plus larges */
.message[data-message-type="location"] {
    max-width: 90%;
    min-width: 320px;
}

.message.sent {
    align-self: flex-end;
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-glow);
}

.message.received {
    align-self: flex-start;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message {
    position: relative;
}

.message-actions {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.message.sent .message-actions {
    left: -35px;
}

.message.received .message-actions {
    right: -35px;
}

.message:hover .message-actions {
    opacity: 1;
}

.icon-button-small {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 12px;
    transition: all 0.2s;
    padding: 0;
}

.icon-button-small:hover {
    background: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: scale(1.1);
}

.message-deleted {
    opacity: 0.6;
    font-style: italic;
}

.message-deleted .message-content {
    color: var(--text-secondary) !important;
}

/* Responsive pour les actions de message */
@media (max-width: 768px) {
    .message-actions {
        opacity: 1;
        position: static;
        transform: none;
        display: inline-flex;
        margin-left: 8px;
        vertical-align: middle;
    }
    
    .message.sent .message-actions,
    .message.received .message-actions {
        left: auto;
        right: auto;
    }
    
    .icon-button-small {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

.message-input-container {
    padding: 20px 24px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-input-container > div:last-child {
    display: flex;
    gap: 8px;
    align-items: center;
}

.message-input-container .btn {
    white-space: nowrap;
    overflow: visible;
    min-width: 90px;
    max-width: 120px;
    padding: 14px 16px;
    flex-shrink: 0;
    font-size: 13px;
    text-align: center;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-sizing: border-box;
}

.message-input-container .btn-primary {
    min-width: 80px;
    max-width: 100px;
    padding: 14px 16px;
    flex-shrink: 0;
    font-size: 13px;
    text-align: center;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-sizing: border-box;
    white-space: nowrap;
}

.message-input-container input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 400;
    min-height: 44px;
    box-sizing: border-box;
    align-self: stretch;
    min-width: 0;
    max-width: 100%;
}

.message-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.message-input-container .btn-outline {
    min-width: 40px;
    max-width: 40px;
    width: 40px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
}

.message-input-container .location-buttons-group {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.message-input-container .message-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.message-input-container .btn-outline.recording {
    background: var(--danger-color);
    color: white;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

/* Améliorations pour mobile */
@media (max-width: 768px) {
    .message-input-container {
        padding: 12px 12px;
        gap: 8px;
    }
    
    .message-input-container > div:last-child,
    .message-input-container .flex-row {
        display: flex;
        gap: 4px;
        align-items: stretch;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
    }
    
    .message-input-container .btn-outline {
        min-width: 36px;
        max-width: 36px;
        width: 36px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 10px;
    }
    
    .message-input-container .btn-outline i {
        font-size: 14px;
    }
    
    .message-input-container input {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 20px;
        min-height: 40px;
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
    
    .message-input-container .btn-primary {
        min-width: 65px;
        max-width: 75px;
        padding: 10px 10px;
        font-size: 11px;
        border-radius: 20px;
        height: 40px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    /* Grouper les boutons de localisation sur mobile */
    .message-input-container .location-buttons-group {
        display: flex;
        gap: 3px;
        align-items: center;
        flex-shrink: 0;
    }
    
    .message-input-container .location-buttons-group .btn-outline {
        margin: 0;
    }
    
    .message-input-container .message-input-row {
        display: flex;
        gap: 4px;
        align-items: stretch;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .message-input-container {
        padding: 10px 8px;
        gap: 6px;
    }
    
    .message-input-container > div:last-child,
    .message-input-container .flex-row {
        gap: 3px;
    }
    
    .message-input-container .btn-outline {
        min-width: 34px;
        max-width: 34px;
        width: 34px;
        height: 38px;
    }
    
    .message-input-container .btn-outline i {
        font-size: 13px;
    }
    
    .message-input-container input {
        padding: 9px 10px;
        font-size: 13px;
        min-height: 38px;
        min-width: 0;
    }
    
    .message-input-container .btn-primary {
        min-width: 60px;
        max-width: 70px;
        padding: 9px 8px;
        font-size: 10px;
        height: 38px;
        white-space: nowrap;
    }
    
    .message-input-container .location-buttons-group {
        gap: 2px;
    }
}

@keyframes pulse-recording {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Styles pour les messages audio */
.message-audio {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-audio audio {
    border-radius: 12px;
    outline: none;
}

.audio-duration {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Styles pour les messages de localisation */
.message-location {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    width: 100%;
    min-width: 100%;
}

/* Responsive pour les cartes de localisation */
@media (max-width: 768px) {
    .message[data-message-type="location"] {
        max-width: 95%;
        min-width: 100%;
    }
    
    .location-map-preview {
        height: 300px;
        min-height: 300px;
    }
    
    .message-location {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .message[data-message-type="location"] {
        max-width: 100%;
        min-width: 100%;
    }
    
    .location-actions {
        flex-direction: column;
    }
    
    .location-action-btn {
        width: 100%;
        min-width: unset;
    }
}

.location-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 12px;
}

.location-info i {
    color: var(--danger-color);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.location-address {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-address-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.location-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.location-action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.location-action-btn i {
    font-size: 14px;
}

.location-action-btn:active {
    transform: translateY(0);
}

.realtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.realtime-badge i {
    font-size: 6px;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.message-location {
    padding: 0;
    background: transparent;
}

/* Styles pour les cartes Leaflet */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

#audio-visualizer {
    display: none;
}

#audio-visualizer:not([style*="display: none"]) {
    display: block !important;
}

/* ============================================
   FAB MODERNE
   ============================================ */

.fab {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: var(--shadow-glow-lg), 0 0 40px rgba(102, 126, 234, 0.8);
}

/* ============================================
   MODAL MODERNE
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.1s;
    transition: opacity 0.1s ease-out;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.1s ease-out;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
    animation: scaleIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-primary);
    line-height: 1.6;
}

#map-container {
    width: 100%;
    height: 500px;
    margin: 24px 0;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

#map-selected-info {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

.contact-dropdown {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 1000;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.contact-option {
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-option:hover {
    background: var(--surface-hover);
}

.contact-option:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.contact-option .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ============================================
   PRODUITS SIMILAIRES
   ============================================ */

.similar-products-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
}

.similar-product-card {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 160px;
    -webkit-user-select: none;
    user-select: none;
}

.similar-product-card * {
    cursor: pointer;
    pointer-events: auto;
}

.similar-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-color);
}

.similar-product-image {
    width: 100%;
    height: 90px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    cursor: pointer;
}

.similar-product-image img {
    cursor: pointer;
    pointer-events: auto;
}

.similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.similar-product-card:hover .similar-product-image img {
    transform: scale(1.1);
}

.similar-product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.similar-product-title {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.similar-product-price {
    font-size: 13px;
    font-weight: 500;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: auto;
}

.similar-product-location {
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

.similar-product-location i {
    font-size: 10px;
}

/* ============================================
   SLIDER IPAD POUR PRODUITS POPULAIRES
   ============================================ */

.popular-products-slider-section {
    margin: 40px 0;
    padding: 20px 0;
}

.unique-ipad-holder > div:first-child {
    margin-top: 30px;
    width: 100%;
    overflow: visible;
    padding: 0 150px;
}

@media (max-width: 767px) {
    .unique-ipad-holder > div:first-child {
        margin-top: 10px;
        padding: 0 80px;
    }
}

.unique-ipad-holder > div:last-child {
    margin-top: 30px;
    margin-bottom: 40px;
}

.unique-ipad-holder > div:last-child .unique-dots {
    z-index: 20;
    font-size: 1px;
    text-align: center;
}

.unique-ipad-holder > div:last-child .unique-dots > div {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 100%;
    background: #d1cfcc;
    margin: 0 10px;
    -webkit-transition: background 0.2s ease-in;
    -ms-transition: background 0.2s ease-in;
    transition: background 0.2s ease-in;
    cursor: pointer;
}

.unique-ipad-holder > div:last-child .unique-dots > div.unique-active {
    background: var(--primary-color);
}

.unique-ipad {
    width: 456px;
    height: 632px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 767px) {
    .unique-ipad {
        width: 228px;
        height: 316px;
    }
}

.unique-ipad .unique-image {
    position: absolute;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.4s linear;
    -ms-transition: all 0.4s linear;
    transition: all 0.4s linear;
    cursor: pointer;
}

.unique-ipad .unique-image > img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unique-ipad .unique-image.unique-image-1 {
    z-index: 3;
    width: 74.1%;
    height: 71.2%;
    left: -150%;
    top: 13.7%;
    display: block;
}

.unique-ipad .unique-image.unique-image-2 {
    z-index: 4;
    width: 74.1%;
    height: 71.2%;
    left: -72%;
    top: 13.7%;
    display: block;
}

.unique-ipad .unique-image.unique-image-3 {
    z-index: 5;
    width: 89.5%;
    height: 86.1%;
    left: 5.3%;
    top: 6.9%;
    display: block;
}

.unique-ipad .unique-image.unique-image-4 {
    z-index: 4;
    width: 74.1%;
    height: 71.2%;
    left: 95%;
    top: 13.7%;
    display: block;
}

.unique-ipad .unique-image.unique-image-5 {
    z-index: 2;
    width: 74.1%;
    height: 71.2%;
    left: 172%;
    top: 13.7%;
    display: block;
}

.unique-ipad .unique-ipad-background {
    position: absolute;
    z-index: 11;
    width: 100%;
    height: 100%;
    background-image: url('landing-ipad.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 1;
}

/* Popup Styles */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.image-popup.active {
    display: flex;
}

.image-popup img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
    pointer-events: auto;
}

.image-popup .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.image-popup .close-btn:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.slider-nav.prev {
    left: -25px;
}

.slider-nav.next {
    right: -25px;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: -20px;
    }
    
    .slider-nav.next {
        right: -20px;
    }
    
    .slider-nav svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    /* Grille verticale pour mobile - 2 colonnes */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 8px;
        margin-top: 16px;
        margin-bottom: 60px;
        max-width: 100%;
    }
    
    .products-grid .product-card {
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }
    
    /* S'assurer que la page recherche fonctionne bien sur mobile */
    #search-results.products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* S'assurer que les favoris fonctionnent bien */
    #favorites-list.products-grid,
    #following-list.products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Appliquer aussi les styles de cartes compactes pour fenêtres réduites */
    .product-card .product-image-container {
        height: 90px;
        border-radius: 6px 6px 0 0;
    }
    
    .product-card {
        border-radius: 6px;
    }
    
    .product-info {
        padding: 5px;
        gap: 2px;
    }
    
    .product-title {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .product-location {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .product-price {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .product-actions {
        margin-top: 3px;
        gap: 3px;
    }
    
    .product-actions .btn {
        padding: 3px 5px;
        min-width: 28px;
        font-size: 9px;
    }
    
    .product-actions .btn i {
        font-size: 9px;
    }
}

/* Fenêtres desktop réduites - appliquer les styles compacts */
@media (max-width: 1200px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .products-grid .product-card {
        max-width: 100%;
        width: 100%;
    }
    
    /* S'assurer que la page recherche fonctionne bien */
    #search-results.products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Très petits écrans - 2 colonnes */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0 4px;
    }
    
    .product-card .product-image-container {
        height: 95px;
    }
}

@media (max-width: 768px) {
    .similar-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .similar-product-image {
        height: 70px;
    }
    
    .similar-product-info {
        padding: 6px;
    }
    
    .similar-product-title {
        font-size: 10px;
    }
    
    .similar-product-price {
        font-size: 11px;
    }
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--surface-hover);
    border-color: var(--danger-color);
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* ============================================
   SETTINGS MODERNE
   ============================================ */

.settings-card {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.settings-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-item {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.settings-item:hover {
    padding-left: 12px;
    border-color: var(--primary-color);
}

.settings-item:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   CATEGORY BANNER - Bannière de présentation des catégories
   ============================================ */

.category-banner {
    width: 100%;
    margin: 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.category-banner img {
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    height: auto;
    aspect-ratio: 1216 / 304;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.category-banner img:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.35);
}

/* Responsive pour la bannière de catégorie */
@media (max-width: 768px) {
    .category-banner {
        margin: 20px 0;
        padding: 0 4px; /* Aligné avec products-grid padding */
        width: 100%;
    }
    
    .category-banner img {
        max-height: 140px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
    }
}

@media (max-width: 480px) {
    .category-banner {
        margin: 16px 0;
        padding: 0 4px; /* Aligné avec products-grid padding */
    }
    
    .category-banner img {
        max-height: 120px;
        border-radius: 10px;
    }
}

/* Alignement avec les produits-grid sur desktop */
@media (min-width: 769px) {
    .category-banner {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ============================================
   PRODUCT MANAGEMENT CARDS
   ============================================ */

.product-management-card {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.product-management-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.product-actions-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-actions-buttons .btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 18px;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .auth-screen {
        padding: 16px;
        z-index: 10000;
    }
    
    .auth-container {
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .main-content {
        padding: 20px 16px;
        padding-bottom: 160px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .page-content {
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding-bottom: 90px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
        padding: 0 4px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .notifications-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .app-bar-content {
        padding: 16px 20px;
    }

    .app-bar-title {
        font-size: 16px;
        gap: 8px;
        flex-wrap: nowrap;
        align-items: center;
        overflow: hidden;
    }
    
    .app-bar-title span:not(#user-badge) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .app-bar-title #user-badge {
        margin-left: 6px !important;
        font-size: 10px !important;
        padding: 4px 8px !important;
        align-self: center;
        flex-shrink: 0;
        order: 3;
        line-height: 1.2;
    }
    
    .app-bar-title .app-logo {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
    }

    .modal-content {
        padding: 24px;
        border-radius: 24px;
    }

    .fab {
        width: 56px;
        height: 56px;
        font-size: 24px;
        bottom: 100px;
        right: 20px;
    }
}

/* ============================================
   SCROLLBAR MODERNE
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* ============================================
   FLÈCHES DE NAVIGATION POUR LE SCROLL
   ============================================ */

.products-row-wrapper {
    position: relative;
    width: 100%;
}

.products-row-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.products-row-scroll-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.products-row-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.products-row-scroll-btn.left {
    left: -20px;
}

.products-row-scroll-btn.right {
    right: -20px;
}

.products-row-scroll-btn.hidden {
    display: none;
}

/* Responsive pour les flèches */
@media (max-width: 768px) {
    .products-row-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .products-row-scroll-btn.left {
        left: -12px;
    }
    
    .products-row-scroll-btn.right {
        right: -12px;
    }
}

@media (max-width: 480px) {
    .products-row-scroll-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        opacity: 0.6;
    }
    
    .products-row-scroll-btn.left {
        left: -8px;
    }
    
    .products-row-scroll-btn.right {
        right: -8px;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 15px;
    font-weight: 500;
}

/* Amélioration des icônes Font Awesome */
.fa, .fas, .far, .fal, .fab {
    font-weight: 900;
}

/* ============================================
   BANNIÈRE PUBLICITAIRE CARROUSEL
   ============================================ */

.ad-banner-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ad-banner-track {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.ad-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.ad-banner-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.ad-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ad-banner-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ad-banner-image-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ad-banner-image {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Media queries pour bannières sur mobile */
@media (max-width: 768px) {
    .ad-banner-track {
        height: 250px;
    }
    
    .ad-banner-image-container {
        min-height: 250px;
    }
    
    .ad-banner-image {
        min-height: 250px;
        object-fit: cover;
        object-position: center;
    }
    
    .ad-banner-carousel {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .ad-banner-track {
        height: 200px;
    }
    
    .ad-banner-image-container {
        min-height: 200px;
    }
    
    .ad-banner-image {
        min-height: 200px;
        object-fit: cover;
        object-position: center;
    }
}

/* ============================================
   OVERLAYS DE TEXTE SUR LES BANNIÈRES
   ============================================ */

/* Overlay général */
.ad-banner-welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Bannière Immobilier - Texte en bas */
.banner-immo-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(
        to top,
        rgba(10, 14, 39, 0.85) 0%,
        rgba(10, 14, 39, 0.6) 30%,
        transparent 70%
    );
}

.banner-immo-text {
    text-align: center;
    width: 100%;
    max-width: 1000px;
    animation: banner-immo-fade-in 1.2s ease-out;
}

.banner-immo-title {
    font-size: 42px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-violet {
    color: #9d4edd;
    text-shadow: 
        0 0 20px rgba(157, 78, 221, 0.9),
        0 0 40px rgba(157, 78, 221, 0.7),
        0 0 60px rgba(157, 78, 221, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4);
    animation: violet-glow 3s ease-in-out infinite;
}

.text-cyan {
    color: #06b6d4;
    text-shadow: 
        0 0 20px rgba(6, 182, 212, 0.9),
        0 0 40px rgba(6, 182, 212, 0.7),
        0 0 60px rgba(6, 182, 212, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4);
    animation: cyan-glow 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes banner-immo-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes violet-glow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(157, 78, 221, 0.9),
            0 0 40px rgba(157, 78, 221, 0.7),
            0 0 60px rgba(157, 78, 221, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(157, 78, 221, 1),
            0 0 60px rgba(157, 78, 221, 0.9),
            0 0 90px rgba(157, 78, 221, 0.7),
            0 0 120px rgba(157, 78, 221, 0.4),
            0 4px 8px rgba(0, 0, 0, 0.4);
        transform: scale(1.02);
    }
}

@keyframes cyan-glow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(6, 182, 212, 0.9),
            0 0 40px rgba(6, 182, 212, 0.7),
            0 0 60px rgba(6, 182, 212, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(6, 182, 212, 1),
            0 0 60px rgba(6, 182, 212, 0.9),
            0 0 90px rgba(6, 182, 212, 0.7),
            0 0 120px rgba(6, 182, 212, 0.4),
            0 4px 8px rgba(0, 0, 0, 0.4);
        transform: scale(1.02);
    }
}

/* Bannière Automobile - Texte à gauche */
.banner-auto-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
    background: linear-gradient(
        to right,
        rgba(10, 14, 39, 0.75) 0%,
        rgba(10, 14, 39, 0.5) 40%,
        transparent 70%
    );
}

.banner-auto-text {
    text-align: left;
    max-width: 600px;
    animation: banner-auto-slide-in 1.5s ease-out;
}

.banner-auto-subtitle {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #10b981;
    text-shadow: 
        0 0 15px rgba(16, 185, 129, 0.8),
        0 0 30px rgba(16, 185, 129, 0.6),
        0 0 45px rgba(16, 185, 129, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    animation: teal-wave 4s ease-in-out infinite;
    position: relative;
}

.banner-auto-subtitle::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent,
        #10b981,
        transparent
    );
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    animation: teal-line-pulse 2s ease-in-out infinite;
}

@keyframes banner-auto-slide-in {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes teal-wave {
    0%, 100% {
        text-shadow: 
            0 0 15px rgba(16, 185, 129, 0.8),
            0 0 30px rgba(16, 185, 129, 0.6),
            0 0 45px rgba(16, 185, 129, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3);
        transform: translateX(0);
    }
    25% {
        text-shadow: 
            0 0 20px rgba(16, 185, 129, 1),
            0 0 40px rgba(16, 185, 129, 0.8),
            0 0 60px rgba(16, 185, 129, 0.6),
            0 0 80px rgba(16, 185, 129, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.3);
        transform: translateX(3px);
    }
    50% {
        text-shadow: 
            0 0 25px rgba(16, 185, 129, 1),
            0 0 50px rgba(16, 185, 129, 0.9),
            0 0 75px rgba(16, 185, 129, 0.7),
            0 0 100px rgba(16, 185, 129, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3);
        transform: translateX(0);
    }
    75% {
        text-shadow: 
            0 0 20px rgba(16, 185, 129, 1),
            0 0 40px rgba(16, 185, 129, 0.8),
            0 0 60px rgba(16, 185, 129, 0.6),
            0 0 80px rgba(16, 185, 129, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.3);
        transform: translateX(-3px);
    }
}

@keyframes teal-line-pulse {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(16, 185, 129, 1),
                    0 0 30px rgba(16, 185, 129, 0.6);
    }
}

/* Mode jour pour les overlays */
body.light-mode .banner-immo-overlay {
    background: linear-gradient(
        to top,
        rgba(245, 247, 250, 0.9) 0%,
        rgba(232, 236, 241, 0.7) 30%,
        transparent 70%
    );
}

body.light-mode .banner-auto-overlay {
    background: linear-gradient(
        to right,
        rgba(245, 247, 250, 0.85) 0%,
        rgba(232, 236, 241, 0.6) 40%,
        transparent 70%
    );
}

body.light-mode .text-violet {
    color: #7c3aed;
    text-shadow: 
        0 0 15px rgba(124, 58, 237, 0.6),
        0 0 30px rgba(124, 58, 237, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-mode .text-cyan {
    color: #0891b2;
    text-shadow: 
        0 0 15px rgba(8, 145, 178, 0.6),
        0 0 30px rgba(8, 145, 178, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-mode .banner-auto-subtitle {
    color: #059669;
    text-shadow: 
        0 0 12px rgba(5, 150, 105, 0.6),
        0 0 24px rgba(5, 150, 105, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .banner-immo-overlay {
        padding: 30px 20px;
    }
    
    .banner-immo-title {
        font-size: 28px;
        gap: 6px;
    }
    
    .banner-auto-overlay {
        padding: 30px 24px;
    }
    
    .banner-auto-subtitle {
        font-size: 24px;
    }
    
    .banner-auto-subtitle::before {
        left: -12px;
        width: 3px;
    }
}

@media (max-width: 480px) {
    .banner-immo-overlay {
        padding: 24px 16px;
    }
    
    .banner-immo-title {
        font-size: 22px;
        gap: 4px;
    }
    
    .banner-auto-overlay {
        padding: 24px 20px;
    }
    
    .banner-auto-subtitle {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .banner-auto-subtitle::before {
        left: -10px;
        width: 2px;
    }
}

/* ============================================
   BANNIÈRE 3 - VOITURE (Texte blanc vers bleu)
   ============================================ */

.banner-voiture-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
    background: linear-gradient(
        to right,
        rgba(10, 14, 39, 0.7) 0%,
        rgba(10, 14, 39, 0.4) 50%,
        transparent 80%
    );
}

.banner-voiture-text {
    text-align: left;
    max-width: 650px;
    animation: banner-voiture-fade-in 1.2s ease-out;
}

.banner-voiture-subtitle {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 30%,
        #3b82f6 70%,
        #2563eb 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: white-to-blue-gradient 4s ease-in-out infinite;
    position: relative;
}

@keyframes banner-voiture-fade-in {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes white-to-blue-gradient {
    0%, 100% {
        background: linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 40%,
            #60a5fa 60%,
            #3b82f6 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% {
        background: linear-gradient(
            90deg,
            #e0e7ff 0%,
            #c7d2fe 20%,
            #3b82f6 50%,
            #2563eb 80%,
            #1d4ed8 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Mode jour pour bannière voiture */
body.light-mode .banner-voiture-overlay {
    background: linear-gradient(
        to right,
        rgba(245, 247, 250, 0.8) 0%,
        rgba(232, 236, 241, 0.5) 50%,
        transparent 80%
    );
}

body.light-mode .banner-voiture-subtitle {
    background: linear-gradient(
        90deg,
        #1a1a1a 0%,
        #1a1a1a 30%,
        #3b82f6 70%,
        #2563eb 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   BANNIÈRE 4 - AUTO 3 (Texte noir avec dropdown)
   ============================================ */

.banner-auto3-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 60px;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 70%
    );
}

.banner-auto3-text {
    text-align: right;
    max-width: 650px;
    animation: banner-auto3-dropdown 1.5s ease-out;
}

.banner-auto3-subtitle {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #000000;
    text-shadow: 
        0 2px 4px rgba(255, 255, 255, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: text-dropdown-bounce 2s ease-in-out infinite;
}

@keyframes banner-auto3-dropdown {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    60% {
        transform: translateY(10px);
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes text-dropdown-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Mode jour pour bannière auto3 */
body.light-mode .banner-auto3-overlay {
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.25) 30%,
        transparent 70%
    );
}

body.light-mode .banner-auto3-subtitle {
    color: #000000;
    text-shadow: 
        0 2px 4px rgba(255, 255, 255, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive pour les nouvelles bannières */
@media (max-width: 768px) {
    .banner-voiture-overlay {
        padding: 30px 24px;
    }
    
    .banner-voiture-subtitle {
        font-size: 24px;
    }
    
    .banner-auto3-overlay {
        padding: 30px 24px;
    }
    
    .banner-auto3-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .banner-voiture-overlay {
        padding: 24px 20px;
    }
    
    .banner-voiture-subtitle {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .banner-auto3-overlay {
        padding: 24px 20px;
    }
    
    .banner-auto3-subtitle {
        font-size: 20px;
        line-height: 1.3;
    }
}

/* ============================================
   BANNIÈRE 5 - IMMO 1 (Texte rouge gradient)
   ============================================ */

.banner-immo1-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
    background: linear-gradient(
        to right,
        rgba(10, 14, 39, 0.75) 0%,
        rgba(10, 14, 39, 0.5) 45%,
        transparent 75%
    );
}

.banner-immo1-text {
    text-align: left;
    max-width: 700px;
    animation: banner-immo1-slide-scale 1.4s ease-out;
}

.banner-immo1-subtitle {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    background: linear-gradient(
        135deg,
        #ef4444 0%,
        #dc2626 25%,
        #b91c1c 50%,
        #991b1b 75%,
        #7f1d1d 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
    animation: red-gradient-shimmer 3.5s ease-in-out infinite;
}

.banner-immo1-subtitle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer-sweep 3.5s ease-in-out infinite;
}

@keyframes banner-immo1-slide-scale {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.9);
    }
    60% {
        transform: translateX(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes red-gradient-shimmer {
    0%, 100% {
        background: linear-gradient(
            135deg,
            #ef4444 0%,
            #dc2626 25%,
            #b91c1c 50%,
            #991b1b 75%,
            #7f1d1d 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: brightness(1);
    }
    25% {
        background: linear-gradient(
            135deg,
            #f87171 0%,
            #ef4444 25%,
            #dc2626 50%,
            #b91c1c 75%,
            #991b1b 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: brightness(1.2);
    }
    50% {
        background: linear-gradient(
            135deg,
            #fca5a5 0%,
            #f87171 25%,
            #ef4444 50%,
            #dc2626 75%,
            #b91c1c 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: brightness(1.4);
    }
    75% {
        background: linear-gradient(
            135deg,
            #f87171 0%,
            #ef4444 25%,
            #dc2626 50%,
            #b91c1c 75%,
            #991b1b 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: brightness(1.2);
    }
}

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

/* Mode jour pour bannière immo1 */
body.light-mode .banner-immo1-overlay {
    background: linear-gradient(
        to right,
        rgba(245, 247, 250, 0.85) 0%,
        rgba(232, 236, 241, 0.6) 45%,
        transparent 75%
    );
}

body.light-mode .banner-immo1-subtitle {
    background: linear-gradient(
        135deg,
        #dc2626 0%,
        #b91c1c 25%,
        #991b1b 50%,
        #7f1d1d 75%,
        #6b1d1d 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive pour bannière immo1 */
@media (max-width: 768px) {
    .banner-immo1-overlay {
        padding: 30px 24px;
    }
    
    .banner-immo1-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .banner-immo1-overlay {
        padding: 24px 20px;
    }
    
    .banner-immo1-subtitle {
        font-size: 20px;
        line-height: 1.3;
    }
}

/* ============================================
   BANNIÈRE 6 - IMMO 4 (Texte noir vers gauche)
   ============================================ */

.banner-immo4-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.25) 35%,
        transparent 70%
    );
}

.banner-immo4-text {
    text-align: left;
    max-width: 680px;
    animation: banner-immo4-typewriter 2s ease-out;
}

.banner-immo4-subtitle {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #000000;
    text-shadow: 
        0 2px 6px rgba(255, 255, 255, 0.9),
        0 4px 12px rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: text-fade-in-left 2.5s ease-out, text-float 4s ease-in-out infinite 2.5s;
}

.banner-immo4-subtitle::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #000000,
        transparent
    );
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    animation: line-grow 2s ease-out;
}

@keyframes banner-immo4-typewriter {
    0% {
        opacity: 0;
        transform: translateX(-80px);
        clip-path: inset(0 100% 0 0);
    }
    50% {
        opacity: 0.5;
        clip-path: inset(0 50% 0 0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes text-fade-in-left {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes text-float {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 
            0 2px 6px rgba(255, 255, 255, 0.9),
            0 4px 12px rgba(255, 255, 255, 0.7),
            0 1px 2px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(-5px);
        text-shadow: 
            0 4px 10px rgba(255, 255, 255, 1),
            0 6px 16px rgba(255, 255, 255, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.15);
    }
}

@keyframes line-grow {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        height: 100%;
        opacity: 1;
    }
}

/* Mode jour pour bannière immo4 */
body.light-mode .banner-immo4-overlay {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 35%,
        transparent 70%
    );
}

body.light-mode .banner-immo4-subtitle {
    color: #000000;
    text-shadow: 
        0 2px 6px rgba(255, 255, 255, 1),
        0 4px 12px rgba(255, 255, 255, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.15);
}

body.light-mode .banner-immo4-subtitle::before {
    background: linear-gradient(
        to bottom,
        transparent,
        #000000,
        transparent
    );
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Responsive pour bannière immo4 */
@media (max-width: 768px) {
    .banner-immo4-overlay {
        padding: 30px 24px;
    }
    
    .banner-immo4-subtitle {
        font-size: 24px;
    }
    
    .banner-immo4-subtitle::before {
        left: -12px;
        width: 4px;
    }
}

@media (max-width: 480px) {
    .banner-immo4-overlay {
        padding: 24px 20px;
    }
    
    .banner-immo4-subtitle {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .banner-immo4-subtitle::before {
        left: -10px;
        width: 3px;
    }
}

/* ============================================
   BANNIÈRE 7 - IMMO 3 (Texte blanc avec vague verte)
   ============================================ */

.banner-immo3-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
    background: linear-gradient(
        to right,
        rgba(10, 14, 39, 0.8) 0%,
        rgba(10, 14, 39, 0.6) 40%,
        transparent 75%
    );
}

.banner-immo3-text {
    text-align: left;
    max-width: 700px;
    animation: banner-immo3-fade-in 1.3s ease-out;
}

.banner-immo3-subtitle {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: text-glow-white 3s ease-in-out infinite;
}

.banner-immo3-subtitle::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #10b981;
    text-shadow: 
        0 0 20px rgba(16, 185, 129, 0.8),
        0 0 40px rgba(16, 185, 129, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.5);
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    animation: green-wave-sweep 4s ease-in-out infinite;
    z-index: 1;
}

.banner-immo3-subtitle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(16, 185, 129, 0.3),
        transparent
    );
    animation: green-wave-glow 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes banner-immo3-fade-in {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes green-wave-sweep {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    25% {
        clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%);
    }
    50% {
        clip-path: polygon(0 0, 60% 0, 60% 100%, 0 100%);
    }
    75% {
        clip-path: polygon(0 0, 90% 0, 90% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes green-wave-glow {
    0% {
        left: -100%;
        opacity: 0;
    }
    25% {
        left: 0%;
        opacity: 0.5;
    }
    50% {
        left: 50%;
        opacity: 0.8;
    }
    75% {
        left: 100%;
        opacity: 0.5;
    }
    100% {
        left: 200%;
        opacity: 0;
    }
}

@keyframes text-glow-white {
    0%, 100% {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.5),
            0 4px 16px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.5),
            0 4px 16px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
}

/* Mode jour pour bannière immo3 */
body.light-mode .banner-immo3-overlay {
    background: linear-gradient(
        to right,
        rgba(245, 247, 250, 0.9) 0%,
        rgba(232, 236, 241, 0.7) 40%,
        transparent 75%
    );
}

body.light-mode .banner-immo3-subtitle {
    color: #1a1a1a;
    text-shadow: 
        0 2px 4px rgba(255, 255, 255, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .banner-immo3-subtitle::before {
    color: #059669;
    text-shadow: 
        0 0 15px rgba(5, 150, 105, 0.7),
        0 0 30px rgba(5, 150, 105, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive pour bannière immo3 */
@media (max-width: 768px) {
    .banner-immo3-overlay {
        padding: 30px 24px;
    }
    
    .banner-immo3-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .banner-immo3-overlay {
        padding: 24px 20px;
    }
    
    .banner-immo3-subtitle {
        font-size: 20px;
        line-height: 1.3;
    }
}

/* ============================================
   BANNIÈRE 8 - IMMO 2 (Texte au centre avec effet split)
   ============================================ */

.banner-immo2-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 39, 0.7) 0%,
        rgba(26, 31, 58, 0.5) 50%,
        rgba(10, 14, 39, 0.7) 100%
    );
}

.banner-immo2-text {
    text-align: center;
    max-width: 900px;
    animation: banner-immo2-zoom-in 1.5s ease-out;
}

.banner-immo2-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.banner-immo2-line1 {
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(79, 172, 254, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4);
    animation: line1-split-reveal 1.8s ease-out, line1-glow 3s ease-in-out infinite 1.8s;
    transform-origin: left center;
}

.banner-immo2-line2 {
    color: #fbbf24;
    text-shadow: 
        0 0 20px rgba(251, 191, 36, 0.9),
        0 0 40px rgba(251, 191, 36, 0.7),
        0 4px 8px rgba(0, 0, 0, 0.4);
    animation: line2-split-reveal 1.8s ease-out 0.3s, line2-glow 3s ease-in-out infinite 2.1s;
    transform-origin: right center;
    opacity: 0;
}

@keyframes banner-immo2-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes line1-split-reveal {
    0% {
        opacity: 0;
        transform: translateX(-100px) scaleX(0);
    }
    60% {
        transform: translateX(10px) scaleX(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
}

@keyframes line2-split-reveal {
    0% {
        opacity: 0;
        transform: translateX(100px) scaleX(0);
    }
    60% {
        transform: translateX(-10px) scaleX(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
}

@keyframes line1-glow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(79, 172, 254, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.4);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(79, 172, 254, 0.9),
            0 0 90px rgba(79, 172, 254, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

@keyframes line2-glow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(251, 191, 36, 0.9),
            0 0 40px rgba(251, 191, 36, 0.7),
            0 4px 8px rgba(0, 0, 0, 0.4);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(251, 191, 36, 1),
            0 0 60px rgba(251, 191, 36, 0.9),
            0 0 90px rgba(251, 191, 36, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Mode jour pour bannière immo2 */
body.light-mode .banner-immo2-overlay {
    background: linear-gradient(
        135deg,
        rgba(245, 247, 250, 0.85) 0%,
        rgba(232, 236, 241, 0.7) 50%,
        rgba(245, 247, 250, 0.85) 100%
    );
}

body.light-mode .banner-immo2-line1 {
    color: #1a1a1a;
    text-shadow: 
        0 0 15px rgba(79, 172, 254, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-mode .banner-immo2-line2 {
    color: #d97706;
    text-shadow: 
        0 0 15px rgba(217, 119, 6, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive pour bannière immo2 */
@media (max-width: 768px) {
    .banner-immo2-title {
        font-size: 32px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .banner-immo2-title {
        font-size: 24px;
        gap: 6px;
    }
}

/* ============================================
   BANNIÈRE 9 - AUTO 5 (Texte à droite avec effet neon)
   ============================================ */

.banner-auto5-overlay {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 60px;
    background: linear-gradient(
        to left,
        rgba(10, 14, 39, 0.8) 0%,
        rgba(10, 14, 39, 0.5) 40%,
        transparent 75%
    );
}

.banner-auto5-text {
    text-align: right;
    max-width: 650px;
    animation: banner-auto5-slide-right 1.4s ease-out;
}

.banner-auto5-subtitle {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(139, 92, 246, 0.8),
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 30px rgba(139, 92, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: neon-purple-pulse 2.5s ease-in-out infinite;
}

.banner-auto5-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.8),
        rgba(139, 92, 246, 1),
        rgba(139, 92, 246, 0.8),
        transparent
    );
    box-shadow: 0 0 20px rgba(139, 92, 246, 1);
    animation: neon-line-extend 2.5s ease-in-out infinite;
}

@keyframes banner-auto5-slide-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes neon-purple-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(139, 92, 246, 0.8),
            0 0 20px rgba(139, 92, 246, 0.6),
            0 0 30px rgba(139, 92, 246, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(139, 92, 246, 1),
            0 0 40px rgba(139, 92, 246, 0.9),
            0 0 60px rgba(139, 92, 246, 0.7),
            0 0 80px rgba(139, 92, 246, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

@keyframes neon-line-extend {
    0%, 100% {
        width: 60px;
        opacity: 0.8;
    }
    50% {
        width: 100px;
        opacity: 1;
    }
}

/* Mode jour pour bannière auto5 */
body.light-mode .banner-auto5-overlay {
    background: linear-gradient(
        to left,
        rgba(245, 247, 250, 0.9) 0%,
        rgba(232, 236, 241, 0.6) 40%,
        transparent 75%
    );
}

body.light-mode .banner-auto5-subtitle {
    color: #6d28d9;
    text-shadow: 
        0 0 10px rgba(109, 40, 217, 0.6),
        0 0 20px rgba(109, 40, 217, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive pour bannière auto5 */
@media (max-width: 768px) {
    .banner-auto5-overlay {
        padding: 30px 24px;
    }
    
    .banner-auto5-subtitle {
        font-size: 24px;
    }
    
    .banner-auto5-subtitle::before {
        right: -15px;
        width: 50px;
    }
}

@media (max-width: 480px) {
    .banner-auto5-overlay {
        padding: 24px 20px;
    }
    
    .banner-auto5-subtitle {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .banner-auto5-subtitle::before {
        right: -12px;
        width: 40px;
    }
}

/* ============================================
   BANNIÈRE 10 - AUTO 6 (Texte en bas à gauche avec effet particules)
   ============================================ */

.banner-auto6-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px 60px;
    background: linear-gradient(
        to top,
        rgba(10, 14, 39, 0.85) 0%,
        rgba(10, 14, 39, 0.6) 30%,
        transparent 70%
    );
}

.banner-auto6-text {
    text-align: left;
    max-width: 700px;
    animation: banner-auto6-rise-up 1.6s ease-out;
    position: relative;
}

.banner-auto6-subtitle {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(59, 130, 246, 0.8),
        0 0 30px rgba(59, 130, 246, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: text-sparkle 3s ease-in-out infinite;
}

.banner-auto6-subtitle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(
        circle at 20% 30%,
        rgba(59, 130, 246, 0.3) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 70%,
        rgba(59, 130, 246, 0.3) 0%,
        transparent 50%
    );
    border-radius: 8px;
    animation: particles-float 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes banner-auto6-rise-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes text-sparkle {
    0%, 100% {
        text-shadow: 
            0 0 15px rgba(59, 130, 246, 0.8),
            0 0 30px rgba(59, 130, 246, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.5);
    }
    25% {
        text-shadow: 
            0 0 20px rgba(59, 130, 246, 1),
            0 0 40px rgba(59, 130, 246, 0.8),
            0 0 60px rgba(59, 130, 246, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 
            0 0 25px rgba(59, 130, 246, 1),
            0 0 50px rgba(59, 130, 246, 0.9),
            0 0 75px rgba(59, 130, 246, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.5);
    }
    75% {
        text-shadow: 
            0 0 20px rgba(59, 130, 246, 1),
            0 0 40px rgba(59, 130, 246, 0.8),
            0 0 60px rgba(59, 130, 246, 0.5),
            0 4px 8px rgba(0, 0, 0, 0.5);
    }
}

@keyframes particles-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(10px, -10px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-10px, 10px) scale(0.9);
        opacity: 0.4;
    }
}

/* Mode jour pour bannière auto6 */
body.light-mode .banner-auto6-overlay {
    background: linear-gradient(
        to top,
        rgba(245, 247, 250, 0.9) 0%,
        rgba(232, 236, 241, 0.7) 30%,
        transparent 70%
    );
}

body.light-mode .banner-auto6-subtitle {
    color: #1e40af;
    text-shadow: 
        0 0 12px rgba(30, 64, 175, 0.6),
        0 0 24px rgba(30, 64, 175, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive pour bannière auto6 */
@media (max-width: 768px) {
    .banner-auto6-overlay {
        padding: 30px 24px;
    }
    
    .banner-auto6-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .banner-auto6-overlay {
        padding: 24px 20px;
    }
    
    .banner-auto6-subtitle {
        font-size: 20px;
        line-height: 1.3;
    }
}

/* ============================================
   ONGLETS FAVORIS / FOLLOWING
   ============================================ */

.page-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-glass);
}

.tab-btn i {
    font-size: 16px;
}

.ad-banner-inner {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Slide 1: Big Sale */
.ad-banner-header {
    margin-bottom: 12px;
}

.ad-banner-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    font-weight: 400;
}

.ad-timer-label {
    position: relative;
    top: 1px;
}

.ad-banner-main-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin: 12px 0;
}

.ad-banner-promo-codes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.ad-promo-codes-container {
    padding: 12px;
    border-radius: 12px;
}

.ad-promo-codes-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ad-promo-code-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 140px;
}

.ad-promo-code-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ad-promo-amount {
    font-size: 16px;
    font-weight: 600;
}

.ad-promo-condition {
    font-size: 12px;
    font-weight: 400;
}

.ad-promo-code-box {
    margin-top: 4px;
}

.ad-code-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Classes utilitaires pour les styles répétitifs de la bannière publicitaire */
.ad-bg-red {
    background-color: #FF0055;
}

.ad-bg-pink {
    background-color: #FFCEDE;
}

.ad-bg-blue {
    background-color: #CDE3FF;
}

.ad-bg-beige {
    background-color: #FFEFDD;
}

.ad-bg-light-pink {
    background-color: #FFCEDE;
}

.ad-bg-gray {
    background-color: #E1E8ED;
}

.ad-text-red {
    color: #FF0055;
}

.ad-text-pink {
    color: #FF80AA;
}

.ad-text-blue {
    color: #00648F;
}

.ad-text-orange {
    color: #9F5600;
}

.ad-text-black {
    color: #000000;
}

.ad-text-white {
    color: #FFFFFF;
}

.ad-badge-white {
    background: #FFFFFF;
    color: #FF0055;
}

.ad-badge-red {
    background: #D3031C;
    color: #FFFFFF;
}

.ad-code-text {
    font-size: 14px;
}

.ad-shop-btn-white {
    --btnColor: #FFFFFF;
    --btnBgColor: #000000;
}

.ad-shop-btn-black {
    --btnColor: #fff;
    --btnBgColor: #000;
}

.ad-banner-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    /* Support pour Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Support pour WebKit (Chrome, Safari, Edge) */
.ad-banner-categories::-webkit-scrollbar {
    height: 4px;
}

.ad-banner-categories::-webkit-scrollbar-track {
    background: transparent;
}

.ad-banner-categories::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.ad-banner-categories::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.ad-category-item {
    flex-shrink: 0;
    width: 120px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s;
}

.ad-category-item:hover {
    transform: translateY(-2px);
}

.ad-category-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ad-category-image {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.ad-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-category-info {
    text-align: center;
}

.ad-category-title {
    font-size: 11px;
    font-weight: 500;
    margin: 0;
}

.ad-category-price {
    margin-top: 4px;
}

.ad-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Slide 2: Welcome Deal */
.ad-welcome-deal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    justify-content: center;
}

.ad-welcome-product {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.ad-product-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    flex-shrink: 0;
}

.ad-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.ad-product-discount {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 0;
    right: 0;
}

.ad-welcome-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-welcome-title {
    font-size: 20px;
    font-weight: 600;
}

.ad-welcome-subtitle {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.ad-shop-button {
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--btnBgColor, #000);
    color: var(--btnColor, #fff);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-block;
    width: fit-content;
}

.ad-shop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ad-welcome-products {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.ad-welcome-mini-product {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.ad-mini-price {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.ad-mini-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.ad-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide 3: Winter Essentials */
.ad-winter-essentials {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: center;
}

.ad-winter-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-winter-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.ad-winter-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.ad-winter-products {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ad-winter-product {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100px;
}

.ad-winter-product-image {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.ad-winter-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-winter-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ad-price-current {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.ad-price-old {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

/* Contrôles du carrousel */
.ad-banner-prev,
.ad-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.ad-banner-prev {
    left: 12px;
}

.ad-banner-next {
    right: 12px;
}

.ad-banner-prev:hover,
.ad-banner-next:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-glow);
    transform: translateY(-50%) scale(1.1);
}

.ad-banner-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ad-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.ad-indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .ad-banner-track {
        height: 300px;
    }
    
    .ad-banner-inner {
        padding: 12px;
    }
    
    .ad-banner-main-image {
        max-height: 120px;
    }
    
    .ad-promo-codes-list {
        flex-direction: column;
    }
    
    .ad-promo-code-item {
        width: 100%;
    }
    
    .ad-banner-categories {
        gap: 6px;
    }
    
    .ad-category-item {
        width: 100px;
    }
    
    .ad-winter-essentials {
        flex-direction: column;
        gap: 12px;
    }
    
    .ad-banner-prev,
    .ad-banner-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .ad-banner-prev {
        left: 8px;
    }
    
    .ad-banner-next {
        right: 8px;
    }
}

/* ============================================
   GALERIE D'IMAGES PRODUIT
   ============================================ */

.image-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.image-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.image-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 120px;
    z-index: 1;
}

.image-gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
    pointer-events: auto;
}

.image-gallery-close:hover {
    background: var(--surface-hover);
    border-color: var(--danger-color);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.image-gallery-main {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 60px;
}

.image-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.image-gallery-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.image-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.image-gallery-nav:hover:not(:disabled) {
    background: var(--surface-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.image-gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-gallery-prev {
    left: 20px;
}

.image-gallery-next {
    right: 20px;
}

.image-gallery-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 90%;
    overflow-x: auto;
    /* Support pour Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Support pour WebKit (Chrome, Safari, Edge) */
.product-modal-description::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.product-modal-description::-webkit-scrollbar-track {
    background: transparent;
}

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

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

.image-gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.image-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 3px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}

.gallery-thumbnail:hover {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.product-gallery {
    /* Support pour Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* Support pour WebKit (Chrome, Safari, Edge) */
.product-gallery::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.product-gallery::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.product-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.product-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.product-gallery::-webkit-scrollbar {
    height: 6px;
}

.product-gallery::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.product-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .image-gallery-container {
        padding: 40px 10px 100px;
    }
    
    .image-gallery-main {
        margin: 0 40px;
    }
    
    .image-gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .image-gallery-prev {
        left: 10px;
    }
    
    .image-gallery-next {
        right: 10px;
    }
    
    .image-gallery-thumbnails {
        bottom: 10px;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .image-gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ============================================
   SYSTÈME D'ADMINISTRATION
   ============================================ */

.admin-container {
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 200px);
}

.admin-nav {
    width: 240px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.admin-nav-btn {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav-btn:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.admin-nav-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.admin-nav-btn i {
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    margin: 0 0 24px 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-filters input,
.admin-filters select {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    min-width: 200px;
}

.admin-filters input:focus,
.admin-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Classes pour remplacer les styles inline */
.admin-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-filters-flex {
    flex: 1;
}

.admin-actions-group {
    display: flex;
    gap: 8px;
}

.publish-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ai-btn-small {
    font-size: 12px;
    padding: 6px 12px;
}

.ai-status {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-visits-section {
    margin-top: 32px;
}

#admin-visits-chart {
    margin-top: 24px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

#visits-chart-container {
    height: 200px;
    margin-top: 16px;
}

.admin-table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
}

.admin-table thead {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: var(--surface);
}

.admin-table tbody tr.banned {
    opacity: 0.6;
    background: rgba(239, 68, 68, 0.05);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-width: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--surface);
    color: var(--text-primary);
}

.badge-client {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.badge-vendeur {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-demarcheur {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-sold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-rented {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-nav {
        width: 100%;
        position: static;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .admin-nav-btn {
        white-space: nowrap;
        min-width: 140px;
    }
    
    .admin-filters {
        width: 100%;
    }
    
    .admin-filters input,
    .admin-filters select {
        flex: 1;
        min-width: 150px;
    }
    
    .admin-table-container {
        overflow-x: scroll;
    }
    
    .admin-table {
        min-width: 800px;
    }
}

/* ============================================
   PHOTO DE PROFIL
   ============================================ */

.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.profile-photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-photo-display {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    border: 4px solid var(--border);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

.profile-photo-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-button img {      
    width: 100%;
    height: 100%;
    object-fit: cover;    
    border-radius: 50%;   
}

/* ============================================
   CLASSES UTILITAIRES POUR REMPLACER LES STYLES INLINE
   ============================================ */

/* Flexbox utilities */
.flex-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Display utilities */
.inline-block {
    display: inline-block;
}

/* Cursor utilities */
.cursor-pointer {
    cursor: pointer;
}

/* Margin utilities */
.mt-12 {
    margin-top: 12px;
}

/* ============================================
   GUIDE D'INSTALLATION PWA ÉLÉGANT
   ============================================ */

.pwa-install-guide {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pwa-install-guide.hidden {
    display: none;
}

.pwa-install-guide.show {
    opacity: 1;
    visibility: visible;
}

.pwa-install-guide-content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-install-guide.show .pwa-install-guide-content {
    transform: scale(1) translateY(0);
}

.pwa-install-guide-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    z-index: 1;
}

.pwa-install-guide-close:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.pwa-install-guide-header {
    text-align: center;
    margin-bottom: 24px;
}

.pwa-install-guide-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.pwa-install-guide-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pwa-install-guide-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.pwa-install-instructions {
    margin-bottom: 24px;
}

.pwa-install-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.pwa-install-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.pwa-install-actions {
    margin-bottom: 20px;
}

.pwa-install-actions .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
}

.pwa-install-benefits {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pwa-install-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.pwa-install-benefit i {
    font-size: 20px;
    color: var(--primary-color);
}

.pwa-install-benefit span {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 480px) {
    .pwa-install-guide-content {
        padding: 24px 20px;
        max-width: 95%;
    }
    
    .pwa-install-guide-header h3 {
        font-size: 20px;
    }
    
    .pwa-install-step {
        gap: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .step-content strong {
        font-size: 14px;
    }
    
    .step-content p {
        font-size: 12px;
    }
}

/* ============================================
   ANCIEN POPUP D'INSTALLATION PWA (DÉSACTIVÉ)
   ============================================ */

.pwa-install-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pwa-install-popup.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.pwa-install-popup:not(.hidden).pwa-install-show {
    opacity: 1 !important;
    visibility: visible !important;
}

.pwa-install-popup.pwa-install-hide {
    opacity: 0;
    visibility: hidden;
}

.pwa-install-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.pwa-install-content {
    position: relative;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(102, 126, 234, 0.3);
    max-width: 420px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.pwa-install-popup.pwa-install-show .pwa-install-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.pwa-install-popup.pwa-install-hide .pwa-install-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.pwa-install-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    z-index: 1;
}

.pwa-install-close:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--primary-color);
}

.pwa-install-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.pwa-install-icon {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

.pwa-install-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.pwa-install-icon-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: glowRotate 4s linear infinite;
    pointer-events: none;
}

.pwa-install-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.pwa-install-description {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

.pwa-install-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pwa-install-button,
.pwa-dismiss-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.pwa-install-button {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* S'assurer que le bouton est visible par défaut */
#pwa-install-btn:not([style*="display: none"]) {
    display: flex !important;
    visibility: visible !important;
}

.pwa-install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.5);
}

.pwa-install-button:active {
    transform: translateY(0);
}

.pwa-install-button i {
    font-size: 16px;
}

.pwa-dismiss-button {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.pwa-dismiss-button:hover {
    background: var(--surface-hover);
    border-color: var(--primary-color);
}

.pwa-install-features {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pwa-install-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.pwa-install-feature i {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.pwa-install-feature span {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes glowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mode jour */
body.light-mode .pwa-install-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.light-mode .pwa-install-content {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(102, 126, 234, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .pwa-install-popup {
        padding: 16px;
        align-items: flex-end;
    }
    
    .pwa-install-content {
        padding: 24px 20px;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
    }
    
    .pwa-install-icon {
        width: 70px;
        height: 70px;
    }
    
    .pwa-install-title {
        font-size: 20px;
    }
    
    .pwa-install-description {
        font-size: 14px;
    }
    
    .pwa-install-features {
        flex-wrap: wrap;
    }
    
    .pwa-install-feature {
        min-width: 80px;
    }
}

.mt-8 {
    margin-top: 8px;
}
