/* Page mécanique — conditions météorologiques */

.meteo-general-info {
    display: flex;
    gap: 25px;
    align-items: center;
    width: 100%;
}

.meteo-image {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meteo-image img {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.meteo-description {
    flex: 1;
    min-width: 0;
}

.meteo-description p,
.meteo-description ul {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.65;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.meteo-description p {
    margin: 0 0 12px;
}

.meteo-description ul {
    margin: 0 0 12px 1.25rem;
    padding: 0;
}

.meteo-description li {
    margin-bottom: 4px;
}

.meteo-tabs-hint {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
}

/* Sélecteur de sous-sections */
.sub-section-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.sub-section-btn.is-active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.55);
}

.sub-section-panel {
    display: none;
}

.sub-section-panel.is-visible {
    display: block;
}

.sub-section-content {
    width: 100%;
}

/* Panneaux de contenu des onglets */
.meteo-text-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.meteo-text-panel p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.meteo-text-panel a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

.meteo-text-panel a:hover {
    color: white;
}

@media (max-width: 768px) {
    .meteo-general-info {
        flex-direction: column;
    }

    .meteo-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .meteo-description p,
    .meteo-description ul {
        font-size: 1rem;
    }

    .meteo-text-panel {
        padding: 18px 20px;
    }
}
