﻿
.weather-container {
    max-width: 1200px;
    margin: auto;
}

.flex {
    display:flex;
}

.block {
    display: block;
    float:left;
}

.icoweather {
    width:48px;
}
#forecast {
    display: flex;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 10px;
}

.hour-card {
    flex: 0 0 68px;
    background: rgb(127, 193, 255,0.2);
    border-radius: 6px;
    padding: 4px;
    text-align: center;
    backdrop-filter: blur(10px);
    color: #111;
    transition: transform 0.2s;
    user-select: none;
}

    .hour-card.isnight {
        color: #DDD;
        background:#262e6a;
    }
.hour-data {
    position: relative;
    z-index: 100;
    user-select: none;
}
.hour-sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

    .hour-card:hover {
        transform: scale(1.01);
    }

.dayname .big {
    font-weight: bold;
    font-size:14px;
}
.dayname {
    font-size:11px;
}

.hour {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 1px;
}

.temp {
    font-size: 18px;
    margin-top: 1px;
}

.wind {
    margin-top: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight:bold;
}

/* Animation pulse */
.wind-arrow {
    width: 30px;
    height: 30px;
    animation: windpulse 1.8s infinite ease-in-out;
}

/* Gradient colors for wind speed */
.windColorLow {
    color: #4CAF50;
}
/* Vert */
.windColorMed {
    color: #FF9800;
}
/* Orange */
.windColorFast {
    color: #F44336;
}
/* Rouge */

@keyframes windpulse {
    0% {
        transform: scale(1,1);
    }

    50% {
        transform: scale(1.18,1);
    }

    100% {
        transform: scale(1,1);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .hour-card {
        flex: 0 0 60px;
    }
}

:root {
    --card-bg: #ffffff;
    --accent: #2b9af3;
    --muted: #6b7280;
    --glass: rgba(43,154,243,0.08);
    --chip-bg: #f3f6fb;
    --danger: #ef4444;
    --success: #10b981;
    --shadow: 0 1px 3px rgba(30,41,59,0.08);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.weather-card {
    /*background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow);*/
    padding: 2px;
}


/* Left column : grande icône + date */
.left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.date {
    font-weight: 600;
    color: #0f172a;
    font-size: 16px;
    text-align: center;
}

.big-icon {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -6px 12px rgba(43,154,243,0.06);
}

    .big-icon img {
        width: 84px;
        height: 84px;
        display: block;
    }

.cond-text {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.summary-row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    background: var(--chip-bg);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    color: #0f172a;
    font-size: 13px;
}

/* Middle: métriques principales */
.middle {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.temps {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .temps .temps-main {
        font-size: 34px;
        font-weight: 700;
        color: #0b1220;
        letter-spacing: -0.6px;
    }

    .temps .temps-sub {
        color: var(--muted);
        font-size: 13px;
    }

.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.metric {
    background: #fbfdff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(15,23,42,0.03);
}

    .metric .icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(11,17,28,0.04);
    }

    .metric .body {
        display: flex;
        flex-direction: column;
    }

    .metric .label {
        font-size: 12px;
        color: var(--muted);
    }

    .metric .value {
        font-weight: 700;
        font-size: 14px;
        color: #0b1220;
    }

/* Progress bars */
.progress {
    height: 10px;
    background: #eef6ff;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
}

    .progress > i {
        display: block;
        height: 100%;
        background: linear-gradient(90deg,var(--accent), #5ee3f7);
        border-radius: 999px;
        width: 0%;
        transition: width 450ms cubic-bezier(.22,.9,.47,1);
    }

.progress-small {
    height: 8px;
    background: #f3f5f7;
}

.label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* Right column: astro + détail */
.right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.astro {
    background: linear-gradient(180deg,#fff 0%, #fbfdff 100%);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(11,17,28,0.03);
}

    .astro .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: var(--muted);
        margin: 6px 0;
    }

        .astro .row strong {
            color: #0b1220;
            font-weight: 700;
        }

.detail-list {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(11,17,28,0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

/* petites aides */
.unit {
    font-size: 12px;
    color: var(--muted);
    margin-left: 6px;
}

.muted-sm {
    color: var(--muted);
    font-size: 13px;
}

.red {
    color:red;
}

.meteo .list {
    border: 1px solid #ccc;
    max-height: 250px;
    overflow-y: auto;
    position: absolute;
    background: white;
    width: 300px;
    z-index: 10;
    margin-top: 2px;
}

.meteo .item {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
}

    .meteo .item:hover,
    .meteo .item.active { /* ← ajouté */
        background: #eee;
    }

.meteo .highlight {
    font-weight: bold;
    color: #0078ff;
}

/* Loader (petit spinner) */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 0.8s linear infinite;
    margin-top: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.meteo .flag {
    font-size: 18px;
    margin-right: 6px;
}

.wind2 {
    width: 100%;
    height: 150px;
    border: none;
    display: flex;
    overflow: hidden;
}


.rain {
    width: 100%;
    height: 80px;
    border: none;
    display: flex;
    overflow: hidden;
}

/* Les 2 jauges sont côte à côte */
.jauge {
    position: relative;
    height: 100%;
}

/* Largeur des jauges */
.pluie {
    width: 97%;
}

.proba {
    width: 3%;
}

.vent {
    width: 65%;
}

.rafale {
    width: 35%;
}

/* Le niveau bleu */
.niveau {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: blue;
    height: 0;
    transition: height 0.4s ease;
}

/* Optionnel : couleur différente pour la proba */
.proba .niveau {
    background-color: rgba(0,0,255,0.5);
}

.vent .niveau {
    background-color: #72ff21ee;
}

.rafale .niveau {
    background-color: #72ff21cd;
}

/* Le texte qui suit le niveau */
.valeur {
    position: absolute;
    left: 0;
    transform: translateY(-50%); /* centré verticalement sur la zone de transition */
    width: 100%;
    text-align: center;
    font-size: 11px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.jauge.vent .valeur {
    font-size: 16px;
    font-weight: bold;
}