/* Flux Strategiques - Styles complémentaires pour la nouvelle architecture frontend
   Complète flux-strategiques.css existant avec les classes des nouveaux composants */

/* ================================================
   STRUCTURE DE BASE
   ================================================ */
.flux-header {
    background: linear-gradient(135deg, var(--flux-dark) 0%, var(--flux-slate) 100%);
    border-bottom: 1px solid var(--flux-border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.flux-header__brand {
    display: flex;
    flex-direction: column;
}

.flux-header__brand h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--flux-primary);
    margin: 0;
    line-height: 1;
}

.flux-header__subtitle {
    color: var(--flux-text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.flux-nav {
    display: flex;
    gap: 0.5rem;
    background: var(--flux-slate);
    border: 1px solid var(--flux-border);
    border-radius: 12px;
    padding: 0.25rem;
}

.flux-nav__item {
    background: transparent;
    border: none;
    color: var(--flux-text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flux-nav__item:hover {
    color: var(--flux-text);
    background: rgba(255, 255, 255, 0.05);
}

.flux-nav__item--active {
    color: var(--flux-primary);
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.flux-region-selector select {
    background: var(--flux-slate);
    color: var(--flux-text);
    border: 1px solid var(--flux-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
}

.flux-region-selector select:focus {
    outline: none;
    border-color: var(--flux-primary);
}

.flux-view-container {
    padding: 2rem;
    min-height: 60vh;
}

.flux-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--flux-text-muted);
}

.flux-loading__spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--flux-border);
    border-top-color: var(--flux-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.flux-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem;
    text-align: center;
}

.flux-error__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flux-error__icon {
    font-size: 2rem;
}

.flux-error__retry {
    background: linear-gradient(135deg, var(--flux-primary) 0%, var(--flux-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flux-error__retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.flux-footer {
    border-top: 1px solid var(--flux-border);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--flux-text-muted);
    font-size: 0.875rem;
}

.flux-footer a {
    color: var(--flux-primary);
    text-decoration: none;
}

.flux-footer a:hover {
    text-decoration: underline;
}

/* ================================================
   VUE MATÉRIAU
   ================================================ */
.flux-material-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flux-material-loading,
.flux-material-error {
    text-align: center;
    padding: 3rem;
    color: var(--flux-text-muted);
}

.flux-material-header {
    background: linear-gradient(135deg, var(--flux-slate) 0%, var(--flux-slate-light) 100%);
    border: 1px solid var(--flux-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.flux-material-header__main {
    flex: 1;
    min-width: 300px;
}

.flux-material-header__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--flux-text);
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.flux-material-header__category {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--flux-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.flux-material-header__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--flux-text-muted);
    font-size: 0.875rem;
}

.flux-material-header__code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.flux-risk-score {
    background: linear-gradient(135deg, var(--flux-slate) 0%, var(--flux-slate-light) 100%);
    border: 1px solid var(--flux-border);
    border-radius: 12px;
    padding: 2rem;
}

.flux-risk-score__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.flux-risk-score__gauge {
    flex-shrink: 0;
}

.flux-risk-score__circle {
    position: relative;
    width: 250px;
    height: 250px;
}

.flux-risk-score__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.flux-risk-score__bg {
    fill: none;
    stroke: var(--flux-border);
    stroke-width: 8;
}

.flux-risk-score__progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.flux-risk-score__value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.flux-risk-score__info {
    flex: 1;
    min-width: 300px;
}

.flux-risk-score__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--flux-text);
    margin: 0 0 0.5rem 0;
}

.flux-risk-score__category {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.flux-risk-score__description {
    color: var(--flux-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   SECTION INDICATORS
   ================================================ */
.flux-indicators {
    background: linear-gradient(135deg, var(--flux-slate) 0%, var(--flux-slate-light) 100%);
    border: 1px solid var(--flux-border);
    border-radius: 12px;
    padding: 2rem;
}

.flux-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--flux-text);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--flux-border);
}

.flux-indicators__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.flux-indicator {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--flux-border);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.flux-indicator:hover {
    border-color: var(--flux-primary);
    transform: translateY(-2px);
}

.flux-indicator__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.flux-indicator__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--flux-text);
    margin: 0;
}

.flux-indicator__score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--flux-primary);
}

.flux-indicator__description {
    font-size: 0.875rem;
    color: var(--flux-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.flux-indicator__progress {
    width: 100%;
    height: 8px;
    background: var(--flux-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.flux-indicator__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--flux-primary) 0%, var(--flux-primary-dark) 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.flux-indicator__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.flux-indicator__contribution {
    color: var(--flux-text-muted);
}

.flux-indicator__trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.flux-indicator__trend--up {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.flux-indicator__trend--down {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
}

.flux-indicator__trend--stable {
    background: rgba(148, 163, 184, 0.1);
    color: var(--flux-text-muted);
}

/* ================================================
   PRODUCERS SECTION
   ================================================ */
.flux-producers {
    background: linear-gradient(135deg, var(--flux-slate) 0%, var(--flux-slate-light) 100%);
    border: 1px solid var(--flux-border);
    border-radius: 12px;
    padding: 2rem;
}

.flux-producers__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flux-producer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--flux-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.flux-producer:hover {
    border-color: var(--flux-primary);
    transform: translateX(4px);
}

.flux-producer__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.flux-producer__country {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--flux-text);
}

.flux-producer__share {
    font-size: 0.875rem;
    color: var(--flux-text-muted);
}

.flux-producer__risk {
    text-align: right;
}

.flux-producer__risk-score {
    font-size: 1rem;
    font-weight: 600;
}

/* ================================================
   ALERTS SECTION
   ================================================ */
.flux-alerts {
    background: linear-gradient(135deg, var(--flux-slate) 0%, var(--flux-slate-light) 100%);
    border: 1px solid var(--flux-border);
    border-radius: 12px;
    padding: 2rem;
}

.flux-alerts__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flux-alert {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--flux-border);
    border-radius: 8px;
}

.flux-alert__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.flux-alert__content {
    flex: 1;
}

.flux-alert__header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.flux-alert__date {
    color: var(--flux-text-muted);
}

.flux-alert__type {
    color: var(--flux-primary);
    font-weight: 600;
}

.flux-alert__severity {
    color: var(--flux-text-muted);
}

.flux-alert__location {
    font-size: 0.875rem;
    color: var(--flux-text);
    margin-bottom: 0.25rem;
}

.flux-alert__impact {
    font-size: 0.875rem;
    color: var(--flux-text-muted);
}

.flux-alerts__more {
    text-align: center;
    color: var(--flux-text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--flux-border);
}

/* ================================================
   SOURCES SECTION
   ================================================ */
.flux-sources {
    background: linear-gradient(135deg, var(--flux-slate) 0%, var(--flux-slate-light) 100%);
    border: 1px solid var(--flux-border);
    border-radius: 12px;
    padding: 2rem;
}

.flux-sources__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flux-source {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.flux-source__name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--flux-text-muted);
    font-weight: 600;
}

.flux-source__value {
    font-size: 0.875rem;
    color: var(--flux-text);
}

.flux-sources__disclaimer {
    font-size: 0.875rem;
    color: var(--flux-text-muted);
    line-height: 1.6;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 6px;
    margin: 0;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.flux-no-data {
    text-align: center;
    padding: 2rem;
    color: var(--flux-text-muted);
    font-style: italic;
}

/* ================================================
   COMPOSANTS GÉNÉRIQUES
   ================================================ */
.flux-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.flux-button--primary {
    background: linear-gradient(135deg, var(--flux-primary) 0%, var(--flux-primary-dark) 100%);
    color: white;
}

.flux-button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.flux-button--secondary {
    background: var(--flux-slate);
    color: var(--flux-text);
    border: 1px solid var(--flux-border);
}

.flux-button--secondary:hover {
    background: var(--flux-slate-light);
    border-color: var(--flux-primary);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .flux-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .flux-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .flux-nav__item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .flux-view-container {
        padding: 1rem;
    }

    .flux-material-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .flux-material-header__title {
        font-size: 1.75rem;
    }

    .flux-risk-score__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .flux-risk-score__circle {
        width: 200px;
        height: 200px;
    }

    .flux-risk-score__value {
        font-size: 3rem;
    }

    .flux-indicators__grid {
        grid-template-columns: 1fr;
    }

    .flux-sources__list {
        grid-template-columns: 1fr;
    }
}