/* ========================================
   STYLES POUR LA MODAL BRA
   ======================================== */

.bra-modal-content {
    padding: 1rem;
}

.bra-data {
    max-width: 100%;
}

/* En-tête du BRA */
.bra-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bra-dates p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Container des risques */
.bra-risques {
    margin: 1.5rem 0;
}

.risques-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Item de risque */
.risque-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.risque-item:hover {
    transform: translateX(5px);
}

.risque-altitude {
    font-size: 1.1rem;
    font-weight: 700;
}

.risque-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.risque-number {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.risque-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections de texte */
.bra-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #2D9DD9;
    border-radius: 4px;
}

.bra-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.bra-text {
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

/* Légende */
.bra-legende {
    margin: 2rem 0;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.bra-legende h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2D9DD9;
}

.legende-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.legende-item {
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legende-item strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Footer */
.bra-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
}

.bra-footer .button {
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 639px) {
    .risque-level {
        flex-direction: column;
        gap: 0.25rem;
        text-align: right;
    }
    
    .risque-number {
        font-size: 1.5rem;
    }
    
    .risque-label {
        font-size: 0.85rem;
    }
    
    .legende-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation de chargement */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Ajustement du titre de la modal */
#modal-bra h3 {
    color: #2D9DD9;
    text-align: center;
    margin-bottom: 1rem;
}

/* Callout d'erreur */
.callout.alert {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.callout.alert h5 {
    color: #c62828;
    margin-top: 0;
}
