/* ===========================================================
 *  UP Paragliders — Widget Cartes Windy
 * =========================================================== */

.up-windy-widget {
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    border: 1px solid #E8E6E0;
    border-radius: 12px;
    overflow: hidden;
}

/* ----- Contrôles haut ----- */
.up-windy-controls {
    padding: 16px 20px;
    background: #FAFAF7;
    border-bottom: 1px solid #E8E6E0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.up-windy-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.up-windy-control-group label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
}

.up-windy-spot {
    padding: 8px 14px;
    border: 1px solid #E8E6E0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    background: #fff;
    cursor: pointer;
    min-width: 240px;
}
.up-windy-spot:focus {
    outline: none;
    border-color: #A1131B;
    box-shadow: 0 0 0 3px rgba(255, 77, 31, 0.15);
}

/* ----- Boutons couches ----- */
.up-windy-layers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}

.up-windy-layer-btn {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #E8E6E0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: #3A3A3A;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.up-windy-layer-btn:hover {
    border-color: #A1131B;
    color: #0A0A0A;
}
.up-windy-layer-btn.is-active {
    background: #A1131B;
    border-color: #A1131B;
    color: #fff;
    font-weight: 600;
}

/* ----- Iframe ----- */
.up-windy-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #1B3A5B;
}

@media (max-width: 768px) {
    .up-windy-iframe-wrap { aspect-ratio: 4 / 5; }
}

.up-windy-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ----- Disclaimer / fullscreen ----- */
.up-windy-disclaimer {
    padding: 12px 20px;
    background: #FAFAF7;
    border-top: 1px solid #E8E6E0;
    font-size: 0.8125rem;
    color: #3A3A3A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.up-windy-current-layer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.up-windy-fullscreen {
    color: #A1131B;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
}
.up-windy-fullscreen:hover {
    text-decoration: underline;
}

/* ----- Erreur ----- */
.up-windy-error {
    padding: 32px;
    text-align: center;
    background: #FDF2EF;
    color: #C73E1D;
    border-radius: 12px;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .up-windy-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .up-windy-control-group {
        flex-direction: column;
        align-items: stretch;
    }
    .up-windy-spot { width: 100%; }
    .up-windy-layers {
        justify-content: flex-start;
    }
    .up-windy-layer-btn { font-size: 0.75rem; padding: 6px 10px; }
}
