/* 
 * Styles publics FALC Icons
 */

/* Icône individuelle */
.falc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Tailles */
.falc-icon-small {
    width: 24px;
    height: 24px;
}

.falc-icon-medium {
    width: 48px;
    height: 48px;
}

.falc-icon-large {
    width: 64px;
    height: 64px;
}

/* Types avec formes distinctives */
.falc-type-decorative {
    border: 2px solid #3498db;
    background: #ebf5fb;
    border-radius: 4px;
    padding: 4px;
}

.falc-type-action {
    border: 2px solid #e74c3c;
    background: #fadbd8;
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.falc-type-action:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* SVG et images */
.falc-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.falc-type-decorative svg {
    stroke: #2980b9;
    fill: none;
}

.falc-type-action svg {
    stroke: #c0392b;
    fill: none;
}

.falc-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Grille d'icônes */
.falc-icons-grid {
    display: grid;
    gap: 20px;
    padding: 20px 0;
}

.falc-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.falc-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.falc-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.falc-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.falc-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Item de grille */
.falc-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.falc-icon-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Mode haute visibilité */
.falc-high-visibility .falc-type-decorative {
    border-width: 3px;
    border-color: #000;
}

.falc-high-visibility .falc-type-action {
    border-width: 3px;
    border-color: #000;
}

/* Mode impression */
@media print {
    .falc-icon {
        border: 1px solid #000 !important;
        background: white !important;
    }
    
    .falc-icon svg {
        stroke: #000 !important;
    }
    
    .falc-type-action:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .falc-cols-4,
    .falc-cols-5,
    .falc-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .falc-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .falc-cols-2,
    .falc-cols-3,
    .falc-cols-4,
    .falc-cols-5,
    .falc-cols-6 {
        grid-template-columns: 1fr;
    }
}

/* Accessibilité - Focus visible */
.falc-type-action:focus {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

/* Animation de chargement */
@keyframes falc-spin {
    to { transform: rotate(360deg); }
}

.falc-icon-loading {
    animation: falc-spin 1s linear infinite;
    opacity: 0.5;
}

/* Thème sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .falc-icon-label {
        color: #e0e0e0;
    }
    
    .falc-type-decorative {
        background: #1e3a5f;
        border-color: #4a90e2;
    }
    
    .falc-type-action {
        background: #5f1e1e;
        border-color: #e24a4a;
    }
}
