 
        /* ... (le CSS reste globalement identique avec ces ajouts) ... */
        
        :root {
            --bg-color: #f8fafc;
            --card-bg: #ffffff;
            --text-main: #1e293b;
            --text-light: #64748b;
            --text-lighter: #94a3b8;
            --primary: #3b82f6;
            --primary-light: #eff6ff;
            --primary-dark: #1d4ed8;
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --accent-yellow: #f59e0b;
            --accent-purple: #8b5cf6;
            --border-color: #e2e8f0;
            --border-light: #f1f5f9;
            --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.05);
            --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
            --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.2);
            --radius-lg: 16px;
            --radius-md: 12px;
            --radius-sm: 8px;
            --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
            --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            --gradient-hero: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
        }
      
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }
      
        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }
      
        body {
            font-family: 'Nunito', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.5;
            min-height: 100vh;
            padding: 15px 10px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
            background-image: radial-gradient(circle at 1% 1%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
        }
      
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 8px;
        }
      
        /* ==================== HEADER COMPACT ==================== */
        .header {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 0.9rem 1.2rem;
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow-medium);
            border: 1px solid var(--border-light);
            position: sticky;
            top: 10px;
            z-index: 100;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        }
      
        @keyframes slideDown {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
      
        .header h1 {
            font-weight: 800;
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 40%;
        }
      
        .header-right {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            flex-shrink: 0;
        }
      
        .gama-points {
            background: var(--primary-light);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            padding: 0.6rem 1rem;
            font-weight: 700;
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: var(--shadow-soft);
            font-size: clamp(0.75rem, 1.5vw, 0.85rem);
            min-width: 0;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }
      
        .gama-points:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }
      
        .gama-points i {
            font-size: 0.9rem;
            flex-shrink: 0;
            animation: pulse 2s infinite;
        }
      
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }
      
        .gama-points span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
      
        .create-btn, .filter-btn {
            background: var(--gradient-primary);
            color: #fff;
            border: none;
            border-radius: 50px;
            padding: 0.7rem 1.2rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
            font-size: clamp(0.75rem, 1.5vw, 0.85rem);
            white-space: nowrap;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
        }
      
        .create-btn::before, .filter-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.6s;
        }
      
        .create-btn:hover::before, .filter-btn:hover::before {
            left: 100%;
        }
      
        .create-btn:hover, .filter-btn:hover {
            transform: translateY(-3px) scale(1.03);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
        }
      
        .create-btn:active, .filter-btn:active {
            transform: translateY(0) scale(0.98);
        }
      
        .create-btn i, .filter-btn i {
            font-size: 0.9rem;
            transition: transform 0.3s ease;
        }
      
        .create-btn:hover i, .filter-btn:hover i {
            transform: rotate(15deg);
        }
      
        .search-box {
            position: relative;
            flex: 1;
            min-width: 100px;
        }
      
        .search-box input {
            width: 100%;
            padding: 0.7rem 1rem 0.7rem 2.5rem;
            border: 1px solid var(--border-color);
            border-radius: 50px;
            font-family: inherit;
            font-size: clamp(0.8rem, 1.5vw, 0.9rem);
            background: var(--card-bg);
            transition: all 0.3s ease;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
        }
      
        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), inset 0 1px 3px rgba(0,0,0,0.05);
            transform: scale(1.02);
        }
      
        .search-box i {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            font-size: 0.9rem;
        }
      
        /* ==================== GRILLE ANNONCES RESPONSIVE ==================== */
        #annonces {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
            gap: clamp(0.8rem, 2vw, 1.2rem);
            animation: fadeInGrid 0.5s ease;
        }
      
        @keyframes fadeInGrid {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
      
        .annonce {
            background: var(--gradient-card);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-medium);
            overflow: hidden;
            position: relative;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border-light);
            height: 100%;
            animation: cardAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) backwards;
        }
      
        .annonce:nth-child(even) { animation-delay: 0.1s; }
        .annonce:nth-child(odd) { animation-delay: 0.05s; }
      
        @keyframes cardAppear {
            from { opacity: 0; transform: translateY(30px) rotate(2deg); }
            to { opacity: 1; transform: translateY(0) rotate(0deg); }
        }
      
        .annonce:hover {
            transform: translateY(-8px) scale(1.01);
            box-shadow: var(--shadow-hover);
            border-color: var(--primary);
        }
      
        .annonce.is-owner {
            background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
            border-color: #86efac;
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
        }
      
        .annonce.is-viewed {
            opacity: 0.92;
            filter: saturate(0.9);
        }
      
        .annonce.hidden {
            display: none;
            animation: fadeOut 0.3s ease;
        }
      
        @keyframes fadeOut {
            from { opacity: 1; transform: scale(1); }
            to { opacity: 0; transform: scale(0.95); }
        }
      
        /* ==================== IMAGE HERO SECTION ==================== */
        .image-hero-container {
            position: relative;
            width: 100%;
            height: 220px;
            overflow: hidden;
            background: var(--gradient-hero);
            border-bottom: 1px solid var(--border-light);
        }
      
        .image-hero {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
      
        .annonce:hover .image-hero {
            transform: scale(1.08);
        }
      
        .image-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.6));
            padding: 1.2rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            color: white;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
      
        .annonce:hover .image-overlay {
            transform: translateY(0);
        }
      
        .image-count-badge {
            background: rgba(0,0,0,0.7);
            padding: 0.3rem 0.7rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 700;
            backdrop-filter: blur(5px);
        }
      
        .enlarge-hero-btn {
            background: rgba(255,255,255,0.9);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 700;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.2s ease;
        }
      
        .enlarge-hero-btn:hover {
            background: white;
            transform: scale(1.05);
        }
      
        /* ==================== MINIATURES GALERIE ==================== */
        .gallery-thumbs-horizontal {
            display: flex;
            gap: 6px;
            padding: 0.6rem 1.2rem;
            overflow-x: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--primary) var(--border-light);
            -webkit-overflow-scrolling: touch;
            background: var(--bg-color);
            border-bottom: 1px solid var(--border-light);
        }
      
        .gallery-thumbs-horizontal::-webkit-scrollbar {
            height: 4px;
        }
      
        .gallery-thumbs-horizontal::-webkit-scrollbar-track {
            background: var(--border-light);
            border-radius: 10px;
        }
      
        .gallery-thumbs-horizontal::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }
      
        .thumb-small {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: var(--radius-sm);
            border: 2px solid var(--border-color);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            flex-shrink: 0;
            filter: brightness(0.9);
        }
      
        .thumb-small:hover {
            transform: scale(1.15) rotate(3deg);
            border-color: var(--primary);
            box-shadow: var(--shadow-soft);
            filter: brightness(1);
            z-index: 2;
        }
      
        .card-top {
            padding: 1.2rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
      
        .annonce-title {
            font-size: clamp(1.05rem, 2vw, 1.15rem);
            font-weight: 800;
            margin-bottom: 0.6rem;
            color: var(--text-main);
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            word-break: break-word;
            transition: color 0.3s ease;
        }
      
        .annonce:hover .annonce-title {
            color: var(--primary-dark);
        }
      
        .annonce-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.8rem;
            align-items: center;
        }
      
        .annonce-location {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--text-light);
            font-size: clamp(0.75rem, 1.5vw, 0.8rem);
            font-weight: 600;
            background: rgba(139, 92, 246, 0.1);
            padding: 0.3rem 0.7rem;
            border-radius: 30px;
            border: 1px solid rgba(139, 92, 246, 0.2);
            max-width: fit-content;
            transition: all 0.3s ease;
        }
      
        .annonce:hover .annonce-location {
            background: rgba(139, 92, 246, 0.15);
            transform: translateX(3px);
        }
      
        .annonce-location i {
            color: var(--accent-purple);
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }
      
        .annonce:hover .annonce-location i {
            transform: scale(1.2);
        }
      
        .timer-display {
            font-size: clamp(0.75rem, 1.5vw, 0.8rem);
            color: var(--accent-red);
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            background: rgba(239, 68, 68, 0.1);
            padding: 0.3rem 0.7rem;
            border-radius: 30px;
            border: 1px solid rgba(239, 68, 68, 0.2);
            max-width: fit-content;
            animation: pulseTimer 2s infinite;
            transition: all 0.3s ease;
        }
      
        @keyframes pulseTimer {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.1); }
            50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.05); }
        }
      
        .annonce:hover .timer-display {
            transform: scale(1.05);
        }
      
        .timer-display i {
            font-size: 0.8rem;
            transition: transform 0.5s ease;
        }
      
        .annonce:hover .timer-display i {
            transform: rotate(360deg);
        }
      
        .price-tag {
            display: inline-flex;
            align-items: center;
            font-size: clamp(1.2rem, 2vw, 1.3rem);
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 0.8rem;
            background: var(--primary-light);
            padding: 0.5rem 0.9rem;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            max-width: fit-content;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        }
      
        .annonce:hover .price-tag {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
            color: white;
            transform: scale(1.05) translateY(-2px);
            border-color: transparent;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }
      
        .price-tag span {
            color: var(--primary);
            margin-left: 4px;
            font-size: 0.9rem;
            opacity: 0.9;
            font-weight: 600;
            transition: color 0.3s ease;
        }
      
        .annonce:hover .price-tag span {
            color: rgba(255,255,255,0.8);
        }
      
        .contact-display {
            font-family: 'SF Mono', Monaco, monospace;
            font-size: clamp(0.95rem, 2vw, 1rem);
            color: var(--accent-green);
            font-weight: 800;
            letter-spacing: 0.5px;
            padding: 0.7rem 0.9rem;
            background: rgba(16, 185, 129, 0.1);
            border-radius: var(--radius-md);
            border: 1px dashed var(--accent-green);
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            animation: fadeIn 0.5s ease, slideInLeft 0.4s ease;
        }
      
        .contact-hidden {
            font-size: clamp(0.8rem, 1.5vw, 0.85rem);
            color: var(--text-light);
            font-weight: 700;
            padding: 0.7rem 0.9rem;
            background: rgba(245, 158, 11, 0.1);
            border-radius: var(--radius-md);
            border: 1px dashed var(--accent-yellow);
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-align: center;
            transition: all 0.3s ease;
        }
      
        .annonce:hover .contact-hidden {
            background: rgba(245, 158, 11, 0.15);
            transform: translateX(5px);
        }
      
        @keyframes slideInLeft {
            from { transform: translateX(-20px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
      
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }
      
        .description {
            font-size: clamp(0.85rem, 1.5vw, 0.9rem);
            color: var(--text-light);
            margin-bottom: 1rem;
            line-height: 1.5;
            flex-grow: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            word-break: break-word;
            transition: all 0.3s ease;
        }
      
        .annonce:hover .description {
            color: var(--text-main);
            -webkit-line-clamp: 4;
        }
      
        .details-btn {
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            padding: 0.75rem 1.2rem;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin: 0 1.2rem 1.2rem;
            box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
            font-size: clamp(0.85rem, 1.5vw, 0.9rem);
            position: relative;
            overflow: hidden;
        }
      
        .details-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.6s;
        }
      
        .details-btn:hover::before {
            left: 100%;
        }
      
        .details-btn:hover {
            transform: translateY(-3px) scale(1.03);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
        }
      
        .details-btn:active {
            transform: translateY(0) scale(0.98);
        }
      
        .details-btn i {
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        }
      
        .details-btn:hover i {
            transform: translateX(5px) scale(1.2);
        }
      
        .tickets-section {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            padding: 1rem;
            border-top: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100px;
            transition: all 0.3s ease;
        }
      
        .tickets-label {
            font-size: clamp(0.7rem, 1.5vw, 0.75rem);
            text-transform: uppercase;
            color: var(--text-lighter);
            margin-bottom: 0.6rem;
            letter-spacing: 0.5px;
            font-weight: 800;
            text-align: center;
        }
      
        .life-ticket {
            display: flex;
            gap: 5px;
            justify-content: center;
            align-items: flex-end;
            width: 100%;
        }
      
        .ticket-strip {
            width: 22px;
            height: 55px;
            background: linear-gradient(180deg, var(--accent-yellow) 0%, #fbbf24 100%);
            border-radius: 10px 10px 4px 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            cursor: pointer;
            position: relative;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.1), 0 2px 3px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.3);
            overflow: hidden;
        }
      
        .ticket-strip::before {
            content: '';
            position: absolute;
            top: 5px;
            left: 50%;
            transform: translateX(-50%);
            width: 10px;
            height: 10px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
        }
      
        .ticket-strip::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 12px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
            border-radius: 10px 10px 0 0;
        }
      
        .ticket-strip:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 8px;
            right: -3px;
            width: 2px;
            height: 35px;
            background: var(--border-color);
            border-radius: 1px;
        }
      
        .ticket-strip.active {
            background: linear-gradient(180deg, var(--accent-yellow) 0%, #d97706 100%);
            box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(245, 158, 11, 0.25);
            border-color: rgba(245, 158, 11, 0.5);
        }
      
        .ticket-strip.active:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.15), 0 6px 12px rgba(245, 158, 11, 0.35);
        }
      
        /* [NOUVEAU] Style pour les tickets déjà consommés (shadow) */
        .ticket-strip.consumed {
            background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
            transform: translateY(2px) scale(0.95);
            opacity: 0.6;
            cursor: default;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
            border-color: var(--border-color);
        }
        
        .ticket-strip.consumed::before {
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
        }
        
        .ticket-strip.consumed .ticket-icon {
            opacity: 0.5;
            transform: rotate(-15deg);
        }
      
        .ticket-icon {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.75rem;
            margin-bottom: 6px;
            z-index: 1;
        }
      
        .ticket-strip.tearing {
            animation: tearAnimation 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }
      
        @keyframes tearAnimation {
            0% {
                transform: translateY(0) rotate(0deg) scale(1);
                opacity: 1;
            }
            30% {
                transform: translateY(-15px) rotate(-10deg) scale(1.1);
                opacity: 0.9;
            }
            70% {
                transform: translateY(12px) rotate(20deg) scale(0.8);
                opacity: 0.6;
            }
            100% {
                transform: translateY(60px) rotate(45deg) scale(0.5);
                opacity: 0;
            }
        }
      
        /* ==================== MODALES RESPONSIVE ==================== */
        .modal {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 2000;
            justify-content: center;
            align-items: flex-start;
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 15px 10px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
      
        .modal.active {
            display: flex;
            opacity: 1;
        }
      
        .modal-content {
            background: var(--gradient-card);
            border-radius: var(--radius-lg);
            width: 100%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-modal);
            transform: translateY(20px);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            border: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
        }
      
        .modal.active .modal-content {
            transform: translateY(0);
        }
      
        .modal-header {
            background: var(--gradient-primary);
            color: white;
            padding: 1.2rem 1.5rem;
            border-radius: var(--radius-lg) var(--radius-lg) 0 0;
            position: sticky;
            top: 0;
            z-index: 10;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
      
        .modal-header h2 {
            font-weight: 800;
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            margin: 0;
            line-height: 1.3;
            word-break: break-word;
            padding-right: 1rem;
        }
      
        .close-modal {
            background: rgba(255,255,255,0.2);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            color: white;
            font-size: 1.3rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
      
        .close-modal:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg) scale(1.1);
        }
      
        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
      
        .modal-section {
            margin-bottom: 1.8rem;
        }
      
        .modal-section h3 {
            font-size: clamp(1rem, 2vw, 1.1rem);
            font-weight: 800;
            color: var(--text-main);
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding-bottom: 0.4rem;
            border-bottom: 2px solid var(--border-light);
        }
      
        .modal-section h3 i {
            font-size: 1rem;
        }
      
        .modal-description {
            font-size: clamp(0.95rem, 2vw, 1rem);
            color: var(--text-main);
            line-height: 1.6;
            background: var(--primary-light);
            padding: 1.2rem;
            border-radius: var(--radius-md);
            border-left: 4px solid var(--primary);
            font-weight: 500;
            word-break: break-word;
        }
      
        .modal-price {
            font-size: clamp(1.5rem, 3vw, 1.8rem);
            font-weight: 800;
            color: var(--primary-dark);
            background: var(--primary-light);
            padding: 1rem 1.4rem;
            border-radius: var(--radius-md);
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            box-shadow: var(--shadow-soft);
            flex-wrap: wrap;
        }
      
        .modal-price span {
            font-size: clamp(1rem, 2vw, 1.1rem);
            opacity: 0.9;
            font-weight: 600;
        }
      
        .modal-location {
            font-size: clamp(0.95rem, 2vw, 1rem);
            font-weight: 800;
            color: var(--accent-purple);
            background: rgba(139, 92, 246, 0.1);
            padding: 0.8rem 1.2rem;
            border-radius: var(--radius-md);
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            border-left: 4px solid var(--accent-purple);
            word-break: break-word;
            transition: all 0.3s ease;
        }
      
        .modal-location:hover {
            transform: translateX(5px);
            background: rgba(139, 92, 246, 0.15);
        }
      
        .modal-location i {
            font-size: 1rem;
            transition: transform 0.3s ease;
        }
      
        .modal-location:hover i {
            transform: scale(1.2);
        }
      
        .modal-phone {
            font-family: 'SF Mono', Monaco, monospace;
            font-size: clamp(1.2rem, 2vw, 1.3rem);
            font-weight: 800;
            color: var(--accent-green);
            background: rgba(16, 185, 129, 0.1);
            padding: 1rem 1.4rem;
            border-radius: var(--radius-md);
            border: 2px dashed var(--accent-green);
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            animation: fadeIn 0.5s ease, slideInLeft 0.4s ease;
            word-break: break-all;
        }
      
        .modal-phone-hidden {
            font-size: clamp(0.9rem, 2vw, 1rem);
            color: var(--text-light);
            font-weight: 700;
            padding: 1.2rem;
            background: rgba(245, 158, 11, 0.1);
            border-radius: var(--radius-md);
            border: 1px dashed var(--accent-yellow);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.8rem;
        }
      
        .modal-tickets-section {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            padding: 1.2rem;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            margin-top: 1.2rem;
            box-shadow: var(--shadow-soft);
        }
      
        .modal-tickets-label {
            font-size: clamp(0.8rem, 1.5vw, 0.85rem);
            text-transform: uppercase;
            color: var(--text-light);
            margin-bottom: 1rem;
            letter-spacing: 0.5px;
            font-weight: 800;
            text-align: center;
        }
      
        .modal-life-ticket {
            display: flex;
            gap: 8px;
            justify-content: center;
            align-items: flex-end;
            width: 100%;
            flex-wrap: wrap;
        }
      
        .modal-ticket-strip {
            width: 26px;
            height: 65px;
            background: linear-gradient(180deg, var(--accent-yellow) 0%, #d97706 100%);
            border-radius: 12px 12px 6px 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            cursor: pointer;
            position: relative;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(245, 158, 11, 0.25);
            border: 1px solid rgba(245, 158, 11, 0.5);
        }
      
        .modal-ticket-strip:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.15), 0 6px 12px rgba(245, 158, 11, 0.35);
        }
      
        .modal-ticket-strip.modal-consumed {
            background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
            transform: translateY(3px) scale(0.95);
            opacity: 0.6;
            cursor: default;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }
      
        .modal-ticket-strip.modal-tearing {
            animation: tearAnimation 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }
      
        .modal-images-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
            gap: 1rem;
        }
      
        .modal-image-item {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            border: 2px solid var(--border-light);
        }
      
        .modal-image-item:hover {
            transform: scale(1.05) rotate(1deg);
            border-color: var(--primary);
            box-shadow: var(--shadow-soft);
            filter: brightness(1.05);
        }
      
        .modal-no-images {
            text-align: center;
            padding: 2rem;
            color: var(--text-lighter);
            background: var(--border-light);
            border-radius: var(--radius-md);
            transition: all 0.3s ease;
        }
      
        .modal-no-images:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-soft);
        }
      
        .modal-no-images i {
            font-size: 2.5rem;
            margin-bottom: 0.8rem;
            opacity: 0.5;
        }
      
        /* ==================== FORMULAIRES RESPONSIVE ==================== */
        .form-group {
            margin-bottom: 1.2rem;
        }
      
        .form-group label {
            display: block;
            font-size: clamp(0.85rem, 1.5vw, 0.9rem);
            font-weight: 800;
            margin-bottom: 0.4rem;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
      
        .form-group label i {
            font-size: 0.9rem;
            transition: transform 0.3s ease;
        }
      
        .form-group:hover label i {
            transform: scale(1.2);
        }
      
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.9rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: clamp(0.9rem, 1.5vw, 0.95rem);
            background: var(--card-bg);
            transition: all 0.3s ease;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
        }
      
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), inset 0 1px 3px rgba(0,0,0,0.05);
            transform: translateY(-2px);
        }
      
        .file-upload-container {
            position: relative;
            overflow: hidden;
            display: inline-block;
            width: 100%;
        }
      
        .file-upload-input {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }
      
        .file-upload-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            border: 2px dashed var(--border-color);
            border-radius: var(--radius-md);
            background: var(--card-bg);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            text-align: center;
            color: var(--text-light);
        }
      
        .file-upload-label:hover {
            border-color: var(--primary);
            background: var(--primary-light);
            transform: translateY(-3px);
            box-shadow: var(--shadow-soft);
        }
      
        .file-upload-label i {
            font-size: 1.8rem;
            margin-bottom: 0.4rem;
            color: var(--primary);
            transition: transform 0.3s ease;
        }
      
        .file-upload-label:hover i {
            transform: scale(1.2);
        }
      
        .file-upload-label span {
            font-weight: 700;
            font-size: clamp(0.9rem, 1.5vw, 0.95rem);
        }
      
        .file-preview {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 0.8rem;
        }
      
        .file-preview-item {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: var(--radius-sm);
            border: 2px solid var(--border-color);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        }
      
        .file-preview-item:hover {
            transform: scale(1.1) rotate(3deg);
            border-color: var(--primary);
        }
      
        .btn-submit {
            width: 100%;
            background: var(--gradient-primary);
            color: white;
            padding: 1rem;
            border: none;
            border-radius: var(--radius-md);
            font-weight: 800;
            font-size: clamp(0.95rem, 2vw, 1rem);
            cursor: pointer;
            margin-top: 1.2rem;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
            position: relative;
            overflow: hidden;
        }
      
        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.6s;
        }
      
        .btn-submit:hover::before {
            left: 100%;
        }
      
        .btn-submit:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
        }
      
        .btn-submit:active {
            transform: translateY(0) scale(0.98);
        }
      
        /* ==================== TOAST NOTIFICATIONS ==================== */
        .toast-container {
            position: fixed;
            bottom: 15px;
            right: 15px;
            z-index: 4000;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
            align-items: flex-end;
            max-width: 90%;
        }
       
        .toast {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 0.9rem 1.2rem;
            box-shadow: var(--shadow-modal);
            border-left: 4px solid var(--primary);
            display: flex;
            align-items: center;
            gap: 0.6rem;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            max-width: 300px;
            font-weight: 700;
            font-size: clamp(0.8rem, 1.5vw, 0.9rem);
            pointer-events: auto;
        }
       
        .toast.show {
            transform: translateX(0);
        }
       
        .toast.error {
            border-left-color: var(--accent-red);
            color: var(--accent-red);
        }
       
        .toast.success {
            border-left-color: var(--accent-green);
            color: var(--accent-green);
        }
       
        .toast.warning {
            border-left-color: var(--accent-yellow);
            color: var(--accent-yellow);
        }
       
        .toast i {
            font-size: 1.1rem;
            transition: transform 0.3s ease;
        }
       
        .toast:hover i {
            transform: scale(1.2);
        }
       
        /* ==================== LOADER ==================== */
        .loader-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            z-index: 5000;
            display: none;
            justify-content: center;
            align-items: center;
        }
       
        .loader-overlay.active {
            display: flex;
            animation: fadeInLoader 0.3s ease;
        }
       
        @keyframes fadeInLoader {
            from { opacity: 0; }
            to { opacity: 1; }
        }
       
        .loader {
            width: 50px;
            height: 50px;
            border: 3px solid var(--border-light);
            border-top: 3px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
        }
       
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
      
        /* ==================== RESPONSIVE ADAPTATIONS ==================== */
        @media (max-width: 768px) {
            body { padding: 12px 8px; }
            .container { padding: 0 6px; }
            .header {
                padding: 0.8rem 1rem;
                border-radius: var(--radius-sm);
                top: 8px;
                flex-wrap: wrap;
                gap: 0.5rem;
            }
            .header h1 { max-width: 100%; }
            .header-right {
                gap: 0.6rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            .gama-points { padding: 0.5rem 0.8rem; }
            .create-btn, .filter-btn { padding: 0.6rem 1rem; }
            .search-box {
                flex: 1 1 100%;
                min-width: 100%;
            }
            .search-box input { padding: 0.8rem 1rem 0.8rem 2.6rem; }
            #annonces {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            .image-hero-container { height: 180px; }
            .card-top { padding: 1rem; }
            .annonce-title {
                -webkit-line-clamp: 2;
                max-height: 2.6em;
            }
            .annonce-meta { gap: 0.4rem; }
            .annonce-location, .timer-display { padding: 0.25rem 0.6rem; }
            .price-tag { padding: 0.4rem 0.8rem; }
            .contact-display, .contact-hidden { padding: 0.6rem 0.8rem; }
            .description {
                -webkit-line-clamp: 3;
                max-height: 4.5em;
            }
            .thumb-small {
                width: 45px;
                height: 45px;
            }
            .details-btn {
                margin: 0 1rem 1rem;
                padding: 0.7rem 1rem;
            }
            .tickets-section {
                padding: 0.8rem;
                min-height: 90px;
            }
            .ticket-strip {
                width: 20px;
                height: 50px;
            }
            .modal { padding: 10px 8px; }
            .modal-content { max-height: 85vh; }
            .modal-header { padding: 1rem 1.2rem; }
            .close-modal {
                width: 32px;
                height: 32px;
                font-size: 1.2rem;
            }
            .modal-body { padding: 1.2rem; }
            .modal-section { margin-bottom: 1.5rem; }
            .modal-price {
                padding: 0.8rem 1.2rem;
                font-size: clamp(1.2rem, 2vw, 1.5rem);
            }
            .modal-phone {
                font-size: clamp(1rem, 2vw, 1.1rem);
                padding: 0.8rem 1.2rem;
            }
            .modal-phone-hidden { padding: 1rem; }
            .modal-images-grid {
                grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
                gap: 0.8rem;
            }
            .modal-image-item { height: 140px; }
            .modal-ticket-strip {
                width: 24px;
                height: 60px;
            }
            .gallery-thumbs-horizontal { padding: 0.5rem 1rem; }
            .image-overlay { padding: 1rem; }
        }
      
        @media (max-width: 480px) {
            body {
                padding: 10px 6px;
                font-size: 14px;
            }
            .container { padding: 0 4px; }
            .header {
                padding: 0.7rem 0.8rem;
                top: 6px;
                flex-direction: column;
                align-items: stretch;
            }
            .header h1 { text-align: center; }
            .header-right {
                gap: 0.4rem;
                flex-direction: row;
                justify-content: space-around;
            }
            .gama-points { padding: 0.45rem 0.7rem; }
            .create-btn, .filter-btn { padding: 0.5rem 0.8rem; }
            .search-box {
                flex: 1 1 100%;
                min-width: 100%;
            }
            .search-box input {
                font-size: 0.8rem;
                padding: 0.6rem 0.8rem 0.6rem 2.2rem;
            }
            .search-box i {
                font-size: 0.8rem;
                left: 0.8rem;
            }
            .annonce-title {
                font-size: clamp(1rem, 2vw, 1.05rem);
                -webkit-line-clamp: 2;
                max-height: 2.6em;
            }
            .price-tag { font-size: clamp(1.1rem, 2vw, 1.2rem); }
            .modal-header h2 { font-size: clamp(1rem, 2vw, 1.1rem); }
            .modal-price { font-size: clamp(1.2rem, 3vw, 1.5rem); }
            .modal-phone { font-size: clamp(1rem, 2vw, 1.1rem); }
            .ticket-strip {
                width: 18px;
                height: 45px;
            }
            .modal-ticket-strip {
                width: 22px;
                height: 55px;
            }
            .thumb-small {
                width: 40px;
                height: 40px;
            }
            .image-hero-container { height: 150px; }
            .image-overlay { padding: 0.8rem; }
            #annonces { gap: 0.8rem; }
        }
      
        @media (max-width: 360px) {
            .header h1 {
                font-size: 1rem;
                max-width: 100%;
            }
            .gama-points {
                font-size: 0.7rem;
                padding: 0.4rem 0.6rem;
            }
            .gama-points span { display: none; }
            .gama-points span strong { display: inline; }
            .create-btn span, .filter-btn span { display: none; }
            .create-btn i, .filter-btn i {
                margin: 0;
                font-size: 1rem;
            }
            .annonce-title { font-size: clamp(0.95rem, 2vw, 1rem); }
            .price-tag { font-size: clamp(1rem, 2vw, 1.1rem); }
            .modal-images-grid { grid-template-columns: 1fr; }
            .thumb-small {
                width: 35px;
                height: 35px;
            }
            .image-hero-container { height: 130px; }
        }
      
        /* ==================== LIGHTBOX RESPONSIVE ==================== */
        .lightbox-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 3000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 10px;
            touch-action: pan-y;
        }
      
        .lightbox-modal.active {
            display: flex;
            opacity: 1;
        }
      
        .lightbox-container {
            position: relative;
            width: 100%;
            max-width: 900px;
            height: 80vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
      
        .lightbox-img {
            max-width: 100%;
            max-height: 70vh;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-hover);
            object-fit: contain;
            animation: zoomIn 0.3s ease;
        }
      
        @keyframes zoomIn {
            from { transform: scale(0.95); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
      
        .close-lightbox {
            position: absolute;
            top: 15px;
            right: 15px;
            background: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.3rem;
            cursor: pointer;
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-medium);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            z-index: 1001;
        }
      
        .close-lightbox:hover {
            transform: rotate(90deg) scale(1.1);
            background: var(--accent-red);
            color: white;
        }
      
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.9);
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-medium);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
            z-index: 1001;
        }
      
        .carousel-nav:hover {
            background: white;
            transform: translateY(-50%) scale(1.15);
        }
      
        .carousel-nav.prev { left: 10px; }
        .carousel-nav.next { right: 10px; }
      
        .carousel-indicators {
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 8px;
            z-index: 1001;
        }
      
        .carousel-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        }
      
        .carousel-indicator.active {
            background: white;
            transform: scale(1.25);
        }
      
        .image-counter {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 0.4rem 0.8rem;
            border-radius: 30px;
            font-weight: 800;
            font-size: clamp(0.8rem, 1.5vw, 0.85rem);
            z-index: 1001;
            backdrop-filter: blur(5px);
        }
      
        @media (max-width: 768px) {
            .lightbox-container { height: 75vh; }
            .lightbox-img { max-height: 65vh; }
            .close-lightbox {
                width: 35px;
                height: 35px;
                font-size: 1.2rem;
                top: 10px;
                right: 10px;
            }
            .carousel-nav {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            .carousel-nav.prev { left: 5px; }
            .carousel-nav.next { right: 5px; }
            .carousel-indicator {
                width: 8px;
                height: 8px;
            }
            .image-counter {
                top: 10px;
                left: 10px;
                font-size: clamp(0.75rem, 1.5vw, 0.8rem);
            }
        }
      
        @media (max-width: 480px) {
            .lightbox-container { height: 70vh; }
            .lightbox-img { max-height: 60vh; }
            .close-lightbox {
                width: 30px;
                height: 30px;
                font-size: 1rem;
            }
            .carousel-nav {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
        }
      
        /* ==================== UTILITY CLASSES ==================== */
        .text-truncate {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
      
        .text-small {
            font-size: clamp(0.8rem, 1.5vw, 0.85rem);
        }
      
        .text-xsmall {
            font-size: clamp(0.7rem, 1.5vw, 0.75rem);
        }
      
        .w-100 { width: 100%; }
        .mb-1 { margin-bottom: 0.5rem; }
        .mb-2 { margin-bottom: 1rem; }
        .mt-1 { margin-top: 0.5rem; }
        .mt-2 { margin-top: 1rem; }
 
