/*
 * Styles de la barre de recherche unifiée + comparateur (annuaire outils IA)
 * Extrait du <style> inline de iactualite_render_grid_shortcode() pour permettre
 * la mise en cache navigateur (auparavant retéléchargé/re-parsé sur CHAQUE page).
 */
        .ia-unified-bar-wrapper { margin: 0 auto 50px auto; max-width: 900px; width: 100%; position: relative; z-index: 10; }
        
        .ia-unified-container { 
            display: flex; 
            align-items: center; 
            background: rgba(20, 20, 25, 0.85) !important;
            border: 1px solid rgba(0, 242, 255, 0.2) !important;
            border-radius: 8px !important;
            padding: 8px; 
            box-shadow: 0 0 20px rgba(0, 242, 255, 0.1) !important;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .ia-unified-container:focus-within { border-color: #00f2ff !important; box-shadow: 0 0 25px rgba(0, 242, 255, 0.2) !important; }

        .ia-input-group.magic-group { 
            flex: 1; 
            min-width: 250px;
            display: flex; 
            align-items: center;
            padding-left: 10px;
        }
        
        .ia-icon { margin-right: 10px; color: #00f2ff !important; font-size: 18px; text-shadow: 0 0 10px rgba(0, 242, 255, 0.5) !important; }
        
        #ia_search_visible { 
            background: transparent !important; 
            border: none !important; 
            color: #fff !important; 
            font-size: 16px !important; 
            width: 100% !important; 
            padding: 10px 0 !important; 
            box-shadow: none !important; 
            outline: none !important; 
        }
        #ia_search_visible::placeholder { color: rgba(255, 255, 255, 0.5) !important; }

        .ia-divider { width: 1px; height: 30px; background: rgba(0, 242, 255, 0.2) !important; margin: 0 5px; }

        .select-group { flex-shrink: 0; display: flex; align-items: stretch; }
        
        .select-group select { 
            background: transparent !important; 
            border: none !important; 
            color: #e0e0e0 !important; 
            font-size: 14px !important; 
            cursor: pointer; 
            padding: 0 25px 0 10px !important; 
            outline: none !important; 
            box-shadow: none !important; 
            max-width: 160px;
            height: 44px !important;
line-height: 44px !important;
            appearance: none; -webkit-appearance: none; 
            background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300f2ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); 
            background-repeat: no-repeat; background-position: right 10px center; background-size: 10px; 
        }
        
        .select-group select option { background-color: #1a1a1a !important; color: #fff; padding: 10px; }

        .ia-main-btn { 
            background: rgba(0, 242, 255, 0.15) !important;
            border: 1px solid #00f2ff !important;
            color: #00f2ff !important;
            padding: 10px 25px; 
            border-radius: 0px !important;
            font-weight: 800 !important;
            text-transform: uppercase !important;
            font-size: 0.75rem !important;
            cursor: pointer; 
            transition: all 0.3s !important;
            white-space: nowrap; 
            height: 44px;
            margin-left: auto;
            box-shadow: 0 0 10px rgba(0, 242, 255, 0.1) !important;
        }
        .ia-main-btn:hover { 
            background: #00f2ff !important;
            color: #000 !important;
            box-shadow: 0 0 20px #00f2ff !important;
        }

        @media (max-width: 768px) {
            .ia-unified-container { flex-direction: column; align-items: stretch; gap: 15px; }
            .ia-divider { display: none; }
            .select-group select { max-width: 100%; width: 100%; border-bottom: 1px solid #333 !important; padding-bottom: 10px !important; }
            .ia-main-btn { width: 100%; margin-left: 0; }
        }
        
        .ia-fav-link-btn { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: #1a1a1a; border: 1px solid #333; border-radius: 50%; color: #ff4757; text-decoration: none; transition: all 0.3s; flex-shrink: 0; position: absolute; right: -70px; top: 5px; }
        .ia-fav-link-btn:hover { background: rgba(255, 71, 87, 0.15); border-color: #ff4757; box-shadow: 0 0 12px rgba(255,71,87,0.4); }
.ia-fav-link-btn:hover svg { fill: #ff0044; filter: drop-shadow(0 0 4px rgba(255,0,68,0.8)); }
        .ia-fav-link-btn .dashicons { font-size: 24px; width: 24px; height: 24px; }
        @media (max-width: 1024px) { .ia-fav-link-btn { position: static; margin-left: 10px; } .ia-unified-bar-wrapper { justify-content: center; } }
        
        .ia-grid-item:hover { border-color: #007bff !important; transform: translateY(-5px); }
        .ia-featured-item { border: 1px solid #FFD700 !important; background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, #1a1a1a 100%) !important; box-shadow: 0 0 20px rgba(255, 215, 0, 0.15) !important; transform: translateY(-2px); position: relative; }
        .ia-featured-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, #ffecb3 0%, #ffca28 100%); color: #3e2723; font-family: sans-serif; font-weight: 900; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px 6px 12px; border-radius: 0 0 8px 8px; z-index: 102; display: inline-flex; align-items: center; gap: 5px; line-height: 1; white-space: nowrap; pointer-events: none; }
        .ia-featured-badge .dashicons { font-size: 11px; width: 11px; height: 11px; color: #3e2723; }
        .ia-featured-item .ia-grid-logo-wrapper { padding-top: 35px !important; } .ia-featured-item .ia-grid-logo { margin-top: 10px; }
        
        .ia-compare-label { position: absolute !important; top: 55px !important; left: 10px !important; right: auto !important; z-index: 100 !important; cursor: pointer !important; display: block !important; }
        .ia-compare-checkbox { display: none; }
        .ia-compare-checkmark { width: 35px; height: 35px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #555; transition: all 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.1); font-size: 14px; }
        .ia-compare-label:hover .ia-compare-checkmark { transform: scale(1.1); color: #007bff; }
        .ia-compare-checkbox:checked + .ia-compare-checkmark { background: #007bff; color: white; transform: scale(1.1); box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); }
        #ia-compare-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #2c3e50; color: white; padding: 15px 25px; border-radius: 50px; display: flex; align-items: center; gap: 20px; z-index: 9999; box-shadow: 0 5px 20px rgba(0,0,0,0.3); animation: slideUp 0.3s ease; }
        @keyframes slideUp { from { transform: translate(-50%, 100px); } to { transform: translate(-50%, 0); } }
        .ia-modal { position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(8px); }
        .ia-modal-content { background-color: #ffffff !important; margin: 3% auto; padding: 0; border-radius: 16px; width: 95%; max-width: 1100px; height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); color: #333 !important; }
        .ia-close-modal { position: absolute; right: 25px; top: 20px; color: #888; font-size: 32px; font-weight: 300; cursor: pointer; z-index:10; transition: color 0.2s; }
        .ia-close-modal:hover { color: #000; }
        .ia-modal-content h2 { padding: 25px; border-bottom: 1px solid #eee; margin: 0; text-align: center; background: #f8f9fa !important; border-radius: 16px 16px 0 0; color: #111 !important; font-family: sans-serif; letter-spacing: -0.5px; }
        .ia-compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; }
        .ia-compare-table th, .ia-compare-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: middle; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #ffffff !important; color: #444 !important; }
        .ia-compare-table th { background-color: #fcfcfc !important; width: 140px; font-weight: 600; color: #666 !important; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; border-right: 1px solid #f0f0f0; }
        .ia-compare-header { padding-top: 40px !important; vertical-align: top !important; }
        .ia-compare-header h3 { color: #111 !important; font-size: 18px !important; margin: 15px 0 0 0 !important; font-weight: 700 !important; }
        .ia-compare-header img { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
        .ia-winner-col { background: linear-gradient(to bottom, #fffdf5, #fff) !important; }
        .ia-winner-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #ffc107; color: #000; font-weight: bold; padding: 5px 15px; border-radius: 20px; font-size: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); white-space: nowrap; z-index: 5; }
        .ia-compare-price { font-weight: 800; color: #111 !important; font-size: 1.4em !important; }
        .ia-price-free { color: #28a745 !important; }
        .ia-badge-statut { display: inline-block; background: #eee; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; color: #666; margin-top: 5px; }
        .ia-global-score { font-size: 2.5em; font-weight: 800; line-height: 1; }
        .ia-progress-bar { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; margin-top: 5px; }
        .ia-progress-fill { height: 100%; background: linear-gradient(90deg, #007bff, #00c6ff); border-radius: 4px; }
        .ia-compare-desc { font-size: 13px !important; line-height: 1.6 !important; color: #555 !important; }
        .ia-action-btn { background-color: #111 !important; color: #fff !important; width: 80%; padding: 12px !important; border-radius: 8px !important; text-align: center; text-decoration: none !important; transition: transform 0.2s, background 0.2s; border: none !important; display:inline-block; font-weight:bold; }
        .ia-action-btn:hover { background-color: #333 !important; transform: translateY(-2px); color:#fff !important; }
        
        body .ia-grid-title-wrapper,
        body .ia-alternatives-section .ia-grid-title-wrapper,
        body .single-outils-ia .ia-grid-title-wrapper {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            width: 100% !important;
            margin-top: 10px !important;
            margin-bottom: 5px !important;
            gap: 10px !important;
        }

        body .ia-grid-prix,
        body .ia-alternatives-section .ia-grid-prix,
        body .single-outils-ia .ia-grid-prix {
            background: rgba(0, 242, 255, 0.1) !important;
            border: 1px solid rgba(0, 242, 255, 0.4) !important;
            color: #00f2ff !important;
            font-family: 'Segoe UI', sans-serif !important;
            font-size: 0.8rem !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            padding: 4px 10px !important;
            border-radius: 4px !important;
            white-space: nowrap !important;
            box-shadow: 0 0 8px rgba(0, 242, 255, 0.15) !important;
            line-height: 1 !important;
            display: inline-block !important;
            min-width: auto !important;
            text-align: center !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        body .ia-grid-title,
        body .ia-alternatives-section .ia-grid-title {
            margin: 0 !important;
            padding: 0 !important;
            flex-grow: 1 !important;
        }
        
