/* ==================== CYPRINUS MÉTÉO — Charte graphique ==================== */
/* Vert kaki · Marron doré · Noir                                              */

/* ==================== VARIABLES CSS ==================== */
:root {
    --primary-khaki:       #4A5C14;
    --primary-khaki-light: #6B7A2A;
    --cf-gold:             #C9A227;
    --cf-gold-light:       #D4B240;
    --cf-black:            #1A1A0F;
    --glass-white:         rgba(255, 255, 255, 0.60);
    --glass-white-hover:   rgba(255, 255, 255, 0.95);
    --glass-dark:          rgba(26, 26, 15, 0.82);
    --glass-dark-hover:    rgba(26, 26, 15, 0.96);
    --glass-border:        rgba(107, 122, 42, 0.25);
    --gold-border:         rgba(201, 162, 39, 0.35);
    --shadow-soft:         0 8px 32px rgba(74, 92, 20, 0.12);
    --shadow-medium:       0 12px 40px rgba(74, 92, 20, 0.18);
    --shadow-strong:       0 16px 48px rgba(74, 92, 20, 0.25);
    --text-primary:        #1d1d1f;
    --text-secondary:      #6e6e73;
    --glass-blur:          blur(20px) saturate(180%);
}

/* ==================== RESET ==================== */
.cyprinus-meteo-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==================== STRUCTURE PRINCIPALE ==================== */
.cyprinus-meteo-wrapper {
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#cyprinus-meteo-map {
    height: min(1000px, 95vh) !important;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--glass-border);
    touch-action: none;
}

/* ==================== LÉGENDE ET CONTRÔLES ==================== */
.cyprinus-meteo-legend-fixed {
    width: 100%;
    background: var(--glass-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1.5px solid var(--gold-border);
    margin-bottom: 20px;
}

.meteo-legend-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meteo-legend-main {
    flex: 0 0 auto;
}

.meteo-legend-main h4 {
    margin: 0 0 15px 0;
    text-align: center;
    background: linear-gradient(135deg, #C9A227, #D4B240);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 700;
}

.meteo-legend-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 240px;
}

.meteo-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    color: #e8e4c8;
    font-size: 12px;
    font-weight: 600;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
}

.meteo-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.meteo-legend-color-green {
    background: linear-gradient(135deg, #008040, #006630);
}

.meteo-legend-color-lightgreen {
    background: linear-gradient(135deg, #00ff80, #00cc66);
}

.meteo-legend-color-orange {
    background: linear-gradient(135deg, #ffbb33, #ff8800);
}

.meteo-legend-color-red {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.meteo-legend-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 160px;
}

/* ==================== SAISIE T°EAU PAR SPOT (POPUP) ==================== */
/* Section : hérite du style standard .meteo-popup-section (pas de surcharge) */

/* Titre de la section T°eau : utilise la charte olive-vert standard             */
/* + flex pour aligner le badge à droite                                          */
/* Affichage T°eau — section compacte popup */
.wt-current-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.wt-main-value {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1;
}

.wt-note {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
}

/* Zone saisie T°eau — ligne horizontale */
.popup-wt-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.meteo-popup-content .popup-wt-input {
    flex: 1;
    min-width: 0;
    min-height: 34px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1.5px solid rgba(107, 122, 42, 0.45) !important;
    background: white !important;
    color: #1d1d1f !important;
    font-size: 16px !important; /* ≥16px empêche le zoom auto sur mobile */
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.meteo-popup-content .popup-wt-input:focus {
    border-color: #6B7A2A !important;
    box-shadow: 0 0 0 2px rgba(107,122,42,0.15);
}

.meteo-popup-content .popup-wt-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.meteo-popup-content .popup-wt-btn {
    flex-shrink: 0;
    width: auto;
    min-width: 68px;
    min-height: 34px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #4A5C14, #6B7A2A) !important;
    border: none !important;
    border-radius: 8px;
    color: white !important;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.meteo-popup-content .popup-wt-btn:hover {
    opacity: 0.85;
    transform: none;
    box-shadow: none;
}

.meteo-popup-content .popup-wt-clear {
    flex-shrink: 0;
    width: 34px;
    min-height: 34px;
    padding: 0;
    background: rgba(220, 38, 38, 0.08) !important;
    border: 1.5px solid rgba(220, 38, 38, 0.30) !important;
    border-radius: 8px;
    color: #dc2626 !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.meteo-popup-content .popup-wt-clear:hover {
    background: rgba(220, 38, 38, 0.16) !important;
    transform: none;
    box-shadow: none;
}

.meteo-control-btn {
    background: rgba(201, 162, 39, 0.12);
    backdrop-filter: blur(20px);
    border: 1.5px solid var(--gold-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    color: #D4B240;
    font-weight: 600;
    flex: 1;
    min-width: 100px;
}

.meteo-control-btn:hover {
    transform: translateY(-2px);
    background: rgba(201, 162, 39, 0.22);
    box-shadow: var(--shadow-medium);
    color: #e8cc60;
}

/* ==================== MARQUEURS ==================== */
.meteo-marker {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.meteo-marker:hover {
    transform: scale(1.15);
    z-index: 1000;
}

.meteo-marker::before {
    content: attr(data-city-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.meteo-marker:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* ==================== POPUP - STRUCTURE COMPACTE ==================== */
.meteo-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-popup-content-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 20px !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 320px !important;
    font-size: 14px;
    line-height: 1.4;
}

/* Contenu de la popup */
.meteo-popup-content {
    background: var(--glass-white);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 1.5px solid var(--glass-border);
}

/* En-tête de la popup */
.meteo-popup-header {
    background: linear-gradient(135deg, #4A5C14, #6B7A2A);
    color: white;
    padding: 16px 20px;
    text-align: center;
    position: relative;
}

.meteo-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.custom-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
}

.delete-spot-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.55;
    color: white;
    transition: transform 0.2s;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
}

.delete-spot-icon:hover,
.delete-spot-icon:focus,
.delete-spot-icon:active {
    background: none !important;
    color: white !important;
    opacity: 0.55;
    transform: scale(1.25);
    box-shadow: none;
    outline: none;
}

/* Sections de la popup */
.meteo-popup-section {
    margin: 0;
    border-bottom: 1px solid var(--glass-border);
}

.meteo-popup-section:last-child {
    border-bottom: none;
}

.meteo-popup-section-title {
    background: linear-gradient(135deg, #4A5C14, #6B7A2A);
    color: white;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 12px;
}

.meteo-popup-section-activity-excellent .meteo-popup-section-title {
    background: linear-gradient(135deg, #008040, #006630);
}

.meteo-popup-section-activity-good .meteo-popup-section-title {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: white;
}

.meteo-popup-section-activity-moderate .meteo-popup-section-title {
    background: linear-gradient(135deg, #ffbb33, #ff8800);
}

.meteo-popup-section-activity-poor .meteo-popup-section-title {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.meteo-popup-section-content {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
}

/* Badge d'activité COMPACT */
.meteo-activity-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
    color: white;
}

.meteo-activity-badge.excellent {
    background: linear-gradient(135deg, #008040, #006630);
}

.meteo-activity-badge.good {
    background: linear-gradient(135deg, #15803d, #16a34a);
}

.meteo-activity-badge.moderate {
    background: linear-gradient(135deg, #ffbb33, #ff8800);
}

.meteo-activity-badge.poor {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

/* Détails d'activité COMPACT */
.activity-details {
    margin: 8px 0;
}

.activity-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.activity-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.activity-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.score {
    font-weight: 700;
}

.level {
    font-weight: 600;
}

.score.excellent,
.level.excellent {
    color: #008040;
}

.score.good,
.level.good {
    color: #15803d;
}

.score.moderate,
.level.moderate {
    color: #c07000;
}

.score.poor,
.level.poor {
    color: #e74c3c;
}

/* Bouton toggle analyse détaillée — spécificité haute pour écraser Astra */
.meteo-popup-content .meteo-toggle-details {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0 4px;
    background: rgba(74, 92, 20, 0.10) !important;
    border: 1.5px solid rgba(74, 92, 20, 0.35) !important;
    border-radius: 8px;
    color: #4A5C14 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
    display: block;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.meteo-popup-content .meteo-toggle-details:hover,
.meteo-popup-content .meteo-toggle-details:focus {
    background: rgba(74, 92, 20, 0.20) !important;
    border-color: rgba(74, 92, 20, 0.55) !important;
    transform: none;
    outline: none;
    box-shadow: none;
}

/* Contenu détaillé */
.meteo-details-content {
    display: none;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grille d'analyse COMPACT */
.analysis-grid {
    display: grid;
    gap: 8px;
}

.analysis-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-khaki);
}

.analysis-item h5 {
    margin: 0 0 6px 0;
    font-size: 11px !important;
    color: var(--text-primary);
    font-weight: 700;
}

/* En-tête de carte d'analyse avec mini barre de score */
.analysis-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.analysis-item-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.analysis-mini-bar {
    flex: 1;
    height: 5px;
    background: rgba(0,0,0,0.10);
    border-radius: 3px;
    overflow: hidden;
    min-width: 24px;
}

.analysis-mini-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.analysis-item-score {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== SPARKLINE PRESSION 6H ===== */
.pressure-sparkline-wrap {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 6px 8px 3px;
    margin-bottom: 8px;
}

.pressure-sparkline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 9.5px;
    color: #9ca3af;
    margin-bottom: 3px;
    font-weight: 600;
}

.analysis-details {
    font-size: 11px;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    padding: 1px 0;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* ==================== BOUTON RAFRAÎCHISSEMENT ==================== */
.meteo-refresh-control {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    touch-action: auto !important;
    pointer-events: auto !important;
}

.meteo-refresh-control button {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 0;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: auto !important;
    pointer-events: auto !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.meteo-refresh-control button:hover {
    transform: scale(1.1);
    background-color: var(--glass-white-hover);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

/* Masque l'emoji WordPress converti en <img> dans le bouton */
.meteo-refresh-control button img {
    display: none !important;
}

.meteo-refresh-control button.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==================== CORRECTIONS LEAFLET ==================== */
.leaflet-popup-tip {
    background: var(--glass-white) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
}

.leaflet-marker-icon {
    z-index: 500;
}

.leaflet-marker-icon:hover {
    z-index: 1001 !important;
}

/* ==================== BOUTON DE FERMETURE POPUP ==================== */
.leaflet-popup-close-button {
    color: white !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    background: transparent !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.leaflet-popup-close-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.1) !important;
    color: white !important;
}

.leaflet-popup-close-button:focus {
    outline: 2px solid white !important;
    outline-offset: 2px !important;
}

/* ==================== ANIMATIONS DE CHARGEMENT ==================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.meteo-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    display: inline-block;
}

.meteo-skeleton-text {
    height: 14px;
    width: 80%;
    margin: 4px 0;
}

.meteo-skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 10px;
}

.meteo-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(74, 92, 20, 0.1);
    border-left-color: var(--primary-khaki);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .meteo-legend-with-controls {
        flex-direction: column;
        align-items: center;
    }

    .meteo-legend-main {
        width: 100%;
        min-width: 100%;
        display: flex;
        justify-content: center;
    }

    .meteo-legend-controls {
        min-width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .leaflet-popup-content {
        min-width: 280px !important;
    }

    #cyprinus-meteo-map {
        height: min(900px, 95vh);
    }

    .meteo-popup-header {
        padding: 14px 16px;
    }

    .meteo-popup-section-content {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .cyprinus-meteo-legend-fixed {
        padding: 16px;
    }

    .meteo-legend-compact {
        gap: 10px;
    }

    .meteo-legend-item {
        padding: 6px 10px;
    }

    .leaflet-popup-content {
        min-width: 260px !important;
    }

    #cyprinus-meteo-map {
        height: 80vh;
        border-radius: 16px;
    }

    .meteo-popup-header {
        padding: 12px 14px;
    }

    .meteo-popup-header h3 {
        font-size: 15px;
    }

    .meteo-popup-section-content {
        padding: 8px 12px;
    }

    .meteo-activity-badge {
        padding: 5px 8px;
        font-size: 10px;
    }

    .activity-bar {
        height: 5px;
    }

    .analysis-grid {
        gap: 6px;
    }

    .analysis-item {
        padding: 6px;
    }
}

/* ==================== ACCESSIBILITÉ ==================== */
button:focus-visible {
    outline: 2px solid var(--primary-khaki);
    outline-offset: 2px;
}

/* ==================== PERFORMANCES ==================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== ANIMATIONS DE MARQUEURS ==================== */
@keyframes marker-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
        transform: scale(1.1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
        transform: scale(1);
    }
}

/* ==================== ANIMATIONS APPARITION MARQUEURS ==================== */
@keyframes efm-marker-pop {
    0%   { transform: scale(0) translateY(-6px); opacity: 0; }
    55%  { transform: scale(1.3) translateY(2px); opacity: 1; }
    75%  { transform: scale(0.88) translateY(0); }
    90%  { transform: scale(1.06); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes efm-marker-pulse {
    0%   { transform: scale(1); opacity: 1; }
    40%  { transform: scale(1.12); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

.meteo-marker-inner.efm-spawn {
    animation: efm-marker-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transform-origin: center center;
}

.meteo-marker-inner.efm-pulse {
    animation: efm-marker-pulse 0.45s ease-out both;
}

/* ==================== ANIMATION BORDURE CHARGEMENT ==================== */
.meteo-marker-loading .meteo-marker-inner {
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.meteo-marker-loading .meteo-marker-inner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: border-spin 1s linear infinite;
}

@keyframes border-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ==================== LOADER OVERLAY ==================== */
.cyprinus-meteo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    text-align: center;
}
.cyprinus-meteo-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
.cyprinus-meteo-overlay h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}
.cyprinus-meteo-overlay p {
    margin: 0;
    color: #7f8c8d;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================================================
   PAGE CONTENT SECTIONS — Guide Météo Pêche
   Scoped to page-id-2320 ONLY to avoid affecting other pages
   ================================================================ */

/* Container — limit width & center */
.page-id-2320 .entry-content > .wp-block-separator.has-alpha-channel-opacity {
    max-width: 900px;
    margin: 48px auto 40px;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 92, 20, 0.2), transparent);
}

/* ---- PAGE TITLE (Storefront entry-title) ---- */
/* Now handled by unified style in CSS Additionnel */

/* ---- MAIN TITLE (H1) ---- */
.page-id-2320 .entry-content > h1.wp-block-heading {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #4A5C14, #6B7A2A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

/* ---- SECTION HEADERS (H2) ---- */
.page-id-2320 .entry-content > h2.wp-block-heading {
    max-width: 900px;
    margin: 48px auto 24px;
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    padding: 20px 28px;
    background: var(--glass-white);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    border: 1.5px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.page-id-2320 .entry-content > h2.wp-block-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-khaki), var(--primary-khaki-light));
    border-radius: 4px 0 0 4px;
}

/* ---- SUBSECTION HEADERS (H3) ---- */
.page-id-2320 .entry-content > h3.wp-block-heading {
    max-width: 860px;
    margin: 32px auto 16px;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 14px 24px;
    background: rgba(106, 13, 173, 0.04);
    border-radius: 12px;
    border-left: 3px solid var(--primary-khaki-light);
}

/* ---- PARAGRAPHS ---- */
.page-id-2320 .entry-content > p {
    max-width: 860px;
    margin: 0 auto 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #424245;
    padding: 0 24px;
}

.page-id-2320 .entry-content > p strong {
    font-weight: 700;
}

/* ---- LISTS ---- */
.page-id-2320 .entry-content > ul.wp-block-list,
.page-id-2320 .entry-content > ol.wp-block-list {
    max-width: 860px;
    margin: 0 auto 24px;
    padding: 20px 24px 20px 28px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    list-style: none;
}

.page-id-2320 .entry-content > ul.wp-block-list li,
.page-id-2320 .entry-content > ol.wp-block-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #424245;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.page-id-2320 .entry-content > ul.wp-block-list li:last-child,
.page-id-2320 .entry-content > ol.wp-block-list li:last-child {
    border-bottom: none;
}

.page-id-2320 .entry-content > ul.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A5C14, #6B7A2A);
}

.page-id-2320 .entry-content > ol.wp-block-list {
    counter-reset: meteo-step;
}

.page-id-2320 .entry-content > ol.wp-block-list li {
    counter-increment: meteo-step;
}

.page-id-2320 .entry-content > ol.wp-block-list li::before {
    content: counter(meteo-step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A5C14, #6B7A2A);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- IMAGE BLOCK ---- */
.page-id-2320 .entry-content > .wp-block-image {
    max-width: 900px;
    margin: 32px auto;
    text-align: center;
}

.page-id-2320 .entry-content > .wp-block-image img {
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

/* ---- COLOR ACCENTS for legend items in paragraphs ---- */
.page-id-2320 .entry-content > p strong[style*="color: #008040"] {
    display: inline-block;
    background: rgba(0, 128, 64, 0.08);
    padding: 6px 14px;
    border-radius: 10px;
    border-left: 3px solid #008040;
    margin-bottom: 4px;
}

.page-id-2320 .entry-content > p strong[style*="color: #00ff80"] {
    display: inline-block;
    background: rgba(0, 204, 102, 0.08);
    padding: 6px 14px;
    border-radius: 10px;
    border-left: 3px solid #00cc66;
    margin-bottom: 4px;
    -webkit-text-fill-color: #00aa55;
    color: #00aa55 !important;
}

.page-id-2320 .entry-content > p strong[style*="color: #f39c12"] {
    display: inline-block;
    background: rgba(243, 156, 18, 0.08);
    padding: 6px 14px;
    border-radius: 10px;
    border-left: 3px solid #f39c12;
    margin-bottom: 4px;
}

.page-id-2320 .entry-content > p strong[style*="color: #e74c3c"] {
    display: inline-block;
    background: rgba(231, 76, 60, 0.08);
    padding: 6px 14px;
    border-radius: 10px;
    border-left: 3px solid #e74c3c;
    margin-bottom: 4px;
}

/* ---- N'OUBLIEZ PAS callout (last paragraph before image) ---- */
.page-id-2320 .entry-content > .wp-block-image + .wp-block-separator,
.page-id-2320 .entry-content > p:last-of-type {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================
   RESPONSIVE — Page Content (scoped to page-id-2320)
   ================================================================ */
@media (max-width: 768px) {
    .page-id-2320 .entry-content > h1.wp-block-heading {
        font-size: 26px;
        margin-bottom: 28px;
        padding: 0 16px;
    }

    .page-id-2320 .entry-content > h2.wp-block-heading {
        font-size: 20px;
        padding: 16px 20px;
        margin: 36px 12px 20px;
        border-radius: 14px;
    }

    .page-id-2320 .entry-content > h3.wp-block-heading {
        font-size: 17px;
        padding: 12px 18px;
        margin: 24px 12px 12px;
    }

    .page-id-2320 .entry-content > p {
        padding: 0 16px;
        font-size: 14px;
    }

    .page-id-2320 .entry-content > ul.wp-block-list,
    .page-id-2320 .entry-content > ol.wp-block-list {
        margin-left: 12px;
        margin-right: 12px;
        padding: 16px 18px 16px 22px;
        border-radius: 12px;
    }

    .page-id-2320 .entry-content > ul.wp-block-list li,
    .page-id-2320 .entry-content > ol.wp-block-list li {
        font-size: 14px;
        padding: 6px 0 6px 22px;
    }
}

@media (max-width: 480px) {
    .page-id-2320 .entry-content > h1.wp-block-heading {
        font-size: 22px;
    }

    .page-id-2320 .entry-content > h2.wp-block-heading {
        font-size: 18px;
        padding: 14px 16px;
        margin: 28px 8px 16px;
    }

    .page-id-2320 .entry-content > h3.wp-block-heading {
        font-size: 16px;
        margin: 20px 8px 10px;
    }

    .page-id-2320 .entry-content > ul.wp-block-list,
    .page-id-2320 .entry-content > ol.wp-block-list {
        margin-left: 8px;
        margin-right: 8px;
    }
}

/* ==================== LEAFLET — Fix soulignement boutons zoom ==================== */
.leaflet-control-zoom a,
.leaflet-control-zoom a:hover {
    text-decoration: none !important;
}




