html,
body {
    height: 100%;
}

body {
    min-width: 320px;
}

.cn-logo {
    height: 60px;
    width: auto;
    display: block;
}

.card {
    border-radius: 0.9rem;
}

/* Exploration : sélecteur de span à deux curseurs (GH-123 v2) */
.explorer-range-form .explorer-range-start,
.explorer-range-form .explorer-range-end {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    height: 0;
    top: 50%;
    transform: translateY(-50%);
}
.explorer-range-form .explorer-range-start::-webkit-slider-thumb,
.explorer-range-form .explorer-range-end::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7cb5ec;
    cursor: pointer;
    border: 2px solid #1b1d22;
}
.explorer-range-form .explorer-range-end::-webkit-slider-thumb {
    background: #f7a35c;
}
.explorer-range-form .explorer-range-start::-moz-range-thumb,
.explorer-range-form .explorer-range-end::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7cb5ec;
    cursor: pointer;
    border: 2px solid #1b1d22;
}
.explorer-range-form .explorer-range-end::-moz-range-thumb {
    background: #f7a35c;
}
.explorer-range-form > div {
    position: relative;
    height: 24px;
}

/* Chart.js — tooltip HTML externe (GH-113) : coins arrondis + ombre portée,
   impossible à obtenir avec le tooltip canvas natif. */
.cn-chart-host {
    position: relative;
}

.cn-chart-tooltip {
    position: absolute;
    z-index: 1050;
    min-width: 120px;
    max-width: 280px;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(27, 29, 34, 0.96);
    color: var(--bs-body-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    font-size: 0.75rem;
    line-height: 1.35;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 0.65rem));
    transition: opacity 120ms ease;
}

.cn-chart-tooltip__title {
    margin-bottom: 0.3rem;
    color: #f8f9fa;
    font-weight: 600;
}

.cn-chart-tooltip__row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.cn-chart-tooltip__swatch {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 0.15rem;
    background: rgba(255, 255, 255, 0.35);
}

.cn-chart-tooltip__label {
    color: var(--bs-secondary-color);
}

.cn-chart-tooltip__value {
    margin-left: auto;
    padding-left: 0.75rem;
    color: var(--bs-body-color);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .cn-chart-tooltip {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    .cn-logo {
        height: 48px;
        width: auto;
    }
}

/* Weather tile -- wind direction */
.weather-wind-arrow {
    transform: rotate(var(--wind-deg, 0deg));
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Weather tile -- wind speed color classes */
.weather-wind-low {
    color: var(--bs-success);
}

.weather-wind-moderate {
    color: var(--bs-warning);
}

.weather-wind-high {
    color: var(--bs-danger);
}

.weather-wind-extreme {
    color: #6f42c1;
}
