/* Tabler Icons & Compact Cards styling — Andromeda */
.tabler-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.tabler-icon svg { stroke: currentColor; fill: none; }

/* Palette de commande rapide Ctrl+K / Alt+A */
.andromeda-palette-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.andromeda-palette-modal { width: min(640px, 94vw); background: #ffffff; border-radius: 14px; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25); border: 1px solid var(--ligne, #cbd5e1); overflow: hidden; animation: paletteApparition 0.15s ease-out; }
@keyframes paletteApparition { from { opacity: 0; transform: scale(0.97) translateY(-8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.andromeda-palette-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.andromeda-palette-header svg { color: #64748b; flex: 0 0 20px; }
.andromeda-palette-input { width: 100%; border: 0; background: transparent; font-size: 15px; outline: none; color: #0f172a; font-family: inherit; }
.andromeda-palette-hint { font-size: 11px; color: #94a3b8; background: #e2e8f0; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.andromeda-palette-results { max-height: 380px; overflow-y: auto; padding: 8px 0; }
.andromeda-palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; border-left: 3px solid transparent; transition: background 0.1s; }
.andromeda-palette-item:hover, .andromeda-palette-item.selectionne { background: #f1f5f9; border-left-color: #0284c7; }
.andromeda-palette-item .item-icon { width: 28px; height: 28px; border-radius: 6px; background: #e0f2fe; color: #0284c7; display: grid; place-items: center; font-size: 13px; }
.andromeda-palette-item .item-info { flex: 1; min-width: 0; }
.andromeda-palette-item .item-title { font-size: 13.5px; font-weight: 600; color: #1e293b; }
.andromeda-palette-item .item-sub { font-size: 11.5px; color: #64748b; }
.andromeda-palette-item .item-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: #e2e8f0; color: #475569; }

/* Tuiles compactes 4 colonnes PC, 2 colonnes Mobile */
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr) !important; gap: 12px !important; margin-top: 10px; }
@media (max-width: 960px) { .tiles-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 520px) { .tiles-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; } }

.tile-compact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #ffffff; border: 1px solid var(--ligne, #e2e8f0); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; position: relative; }
.tile-compact:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); border-color: rgba(202,175,119,0.7); }
.tile-compact .tile-icon-wrap { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: #f1f5f9; color: #0f172a; }
.tile-compact .tile-content { flex: 1; min-width: 0; }
.tile-compact .tile-title { font-size: 13.5px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-compact .tile-sub { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tile-compact .tile-badge { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 12px; margin-left: auto; flex-shrink: 0; }

/* Bannière d'accueil compacte (Format ruban compact - 50% hauteur) */
html[data-andromeda="true"] .andromeda-home-hero { min-height: 84px !important; max-height: 120px !important; padding: 12px 20px !important; margin: 0 0 12px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; }
html[data-andromeda="true"] .andromeda-home-hero h1 { margin: 2px 0 0 !important; font-size: 20px !important; line-height: 1.2 !important; }
html[data-andromeda="true"] .andromeda-home-hero .andromeda-hero-actions { margin-top: 0 !important; }
html[data-andromeda="true"] .andromeda-home-hero .andromeda-home-art { display: none !important; }

/* Séparateurs discrets de la barre latérale en 3 blocs */
.andromeda-sidebar .nav-bloc-section { margin-bottom: 12px; }
.andromeda-sidebar .nav-bloc-header { padding: 8px 12px 4px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.15em; color: #94a3b8; text-transform: uppercase; border-top: 1px solid rgba(226, 211, 177, 0.12); margin-top: 6px; }
.andromeda-sidebar .nav-bloc-section:first-child .nav-bloc-header { border-top: 0; margin-top: 0; }
