:root {
    --bg1: #dbeafe;
    --bg2: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-soft: rgba(37,99,235,.10);
    --card: rgba(255,255,255,.88);
    --border: rgba(148,163,184,.25);
    --shadow: 0 24px 60px rgba(15,23,42,.10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.22), transparent 30rem),
        radial-gradient(circle at top right, rgba(14,165,233,.15), transparent 28rem),
        linear-gradient(135deg, var(--bg1), var(--bg2));
}

.site {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

select, button {
    border: 0;
    border-radius: 13px;
    padding: 12px 14px;
    font-size: 15px;
}

select {
    min-width: 230px;
    background: white;
    color: var(--text);
}

button {
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.hero-card, .panel, .stat-card, .update-info {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: 34px;
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 20px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.eyebrow-small {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
}

h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -1px;
    font-weight: 900;
}

.subtitle {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.current-weather {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 360px;
    justify-content: flex-end;
}

.big-icon { font-size: 86px; }

.temperature {
    font-size: 78px;
    line-height: .9;
    font-weight: 950;
    letter-spacing: -.06em;
}

.condition { margin-top: 10px; font-size: 20px; font-weight: 800; }
.feels { color: var(--muted); margin-top: 4px; }

.error-box {
    max-width: 420px;
    padding: 18px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.error-box p { margin-bottom: 0; }

.update-info {
    margin: 0 0 22px;
    padding: 20px 24px;
    border-left: 5px solid var(--primary);
    border-radius: 24px;
    color: #334155;
}

.update-info p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

.update-info strong { color: #0f172a; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    padding: 20px;
    border-radius: 24px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-card strong { font-size: 24px; }

.content-grid {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    gap: 22px;
    margin-bottom: 22px;
}

.panel {
    border-radius: 30px;
    padding: 26px;
}

.panel h2 { margin: 0 0 18px; font-size: 26px; }

.forecast-day {
    display: grid;
    grid-template-columns: 1fr 56px 80px;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(148,163,184,.25);
}

.forecast-day p {
    margin: 5px 0 0;
    color: var(--muted);
}

.forecast-icon { font-size: 32px; text-align: center; }
.forecast-temp { text-align: right; }
.forecast-temp strong { font-size: 24px; }
.forecast-temp span { color: var(--muted); margin-left: 8px; }

.hourly-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hour-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.62);
    border: 1px solid var(--border);
    display: grid;
    gap: 6px;
    text-align: center;
}

.hour-card span { color: var(--muted); }
.hour-card strong { font-size: 30px; }
.hour-card em { font-style: normal; font-weight: 900; font-size: 22px; }
.hour-card small { color: var(--muted); }

.hourly-table-panel {
    margin-bottom: 22px;
    padding: 0;
    overflow: hidden;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    padding: 26px 26px 18px;
}

.section-title h2 {
    margin: 0;
}

.table-note {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 0 0 8px;
}

.hourly-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 14px;
}

.hourly-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(248,250,252,.96);
    color: #475569;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 14px 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hourly-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(148,163,184,.18);
    color: #334155;
    white-space: nowrap;
}

.hourly-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.45);
}

.hourly-table tbody tr:hover {
    background: var(--primary-soft);
}

.weather-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 170px;
}

.weather-cell span {
    font-size: 22px;
}

.weather-cell em {
    font-style: normal;
}

.editorial p {
    margin: 0;
    color: #334155;
    font-size: 18px;
    line-height: 1.75;
}

@media (max-width: 980px) {
    .hero-card, .topbar { flex-direction: column; align-items: stretch; }
    .current-weather { justify-content: flex-start; min-width: 0; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .section-title { align-items: flex-start; flex-direction: column; }
    .table-note { white-space: normal; }
}

@media (max-width: 640px) {
    .site { width: min(100% - 20px, 1180px); padding-top: 12px; }
    .brand { font-size: 28px; }
    .search { flex-direction: column; }
    select { min-width: 0; width: 100%; }
    .hero-card { padding: 24px; border-radius: 28px; }
    .current-weather { display: block; }
    .big-icon { font-size: 64px; }
    .temperature { font-size: 58px; }
    .eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 20px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .forecast-day { grid-template-columns: 1fr 42px 64px; }
    .hourly-scroll { grid-template-columns: repeat(2, 1fr); }
    .panel { padding: 22px; }
    .section-title { padding: 22px 22px 14px; }
}


/* V4 — tableau 3h plus lisible */
.hourly-table-panel {
    background: rgba(255,255,255,.92);
}

.table-wrap {
    padding: 0 18px 22px;
}

.hourly-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    min-width: 1120px;
    font-size: 15px;
}

.hourly-table thead th {
    background: #eff6ff;
    color: #1e3a8a;
    border: 0;
    padding: 14px 14px;
}

.hourly-table thead th:first-child {
    border-radius: 16px 0 0 16px;
}

.hourly-table thead th:last-child {
    border-radius: 0 16px 16px 0;
}

.hourly-table tbody td {
    background: #ffffff;
    border-top: 1px solid rgba(148,163,184,.22);
    border-bottom: 1px solid rgba(148,163,184,.22);
    padding: 16px 14px;
    vertical-align: middle;
}

.hourly-table tbody .hour-row td:first-child {
    border-left: 1px solid rgba(148,163,184,.22);
    border-radius: 18px 0 0 18px;
}

.hourly-table tbody .hour-row td:last-child {
    border-right: 1px solid rgba(148,163,184,.22);
    border-radius: 0 18px 18px 0;
}

.hourly-table tbody tr:nth-child(even) {
    background: transparent;
}

.hourly-table tbody .hour-row:hover td {
    background: #f8fbff;
    border-color: rgba(37,99,235,.28);
}

.date-separator td {
    background: transparent !important;
    border: 0 !important;
    color: #2563eb !important;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 22px 4px 4px !important;
}

.date-cell {
    color: #64748b !important;
    font-weight: 700;
}

.time-cell strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 15px;
}

.weather-cell {
    min-width: 210px;
}

.weather-emoji {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    background: #f1f5f9;
    font-size: 24px !important;
}

.weather-cell em {
    color: #0f172a;
    font-weight: 750;
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 8px 11px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid transparent;
}

.soft-value {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.cloud-badge {
    display: inline-flex;
    min-width: 54px;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 800;
}

.temp-freezing { background:#e0f2fe; color:#0369a1; border-color:#bae6fd; }
.temp-cold { background:#ecfeff; color:#0e7490; border-color:#a5f3fc; }
.temp-mild { background:#ecfdf5; color:#047857; border-color:#bbf7d0; }
.temp-warm { background:#fff7ed; color:#c2410c; border-color:#fed7aa; }
.temp-hot { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }

.rain-low { background:#f8fafc; color:#475569; border-color:#e2e8f0; }
.rain-mid { background:#eff6ff; color:#1d4ed8; border-color:#bfdbfe; }
.rain-high { background:#dbeafe; color:#1e40af; border-color:#93c5fd; }

.wind-low { background:#f8fafc; color:#475569; border-color:#e2e8f0; }
.wind-mid { background:#fefce8; color:#a16207; border-color:#fde68a; }
.wind-strong { background:#fff1f2; color:#be123c; border-color:#fecdd3; }

@media (max-width: 640px) {
    .table-wrap {
        padding: 0 10px 18px;
    }

    .hourly-table {
        min-width: 1080px;
        font-size: 14px;
    }

    .hourly-table tbody td {
        padding: 13px 11px;
    }
}


/* V5 — previsión 3h en cartes larges et aérées */
.hourly-table-panel,
.hourly-table,
.table-wrap {
    display: none;
}

.hourly-cards-panel {
    margin-bottom: 22px;
    overflow: hidden;
}

.hourly-day-list {
    display: grid;
    gap: 16px;
}

.day-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 8px 0 2px;
    color: #1d4ed8;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .10em;
    font-size: 14px;
}

.day-divider::before,
.day-divider::after {
    content: "";
    height: 2px;
    flex: 1;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37,99,235,.08), rgba(37,99,235,.65), rgba(37,99,235,.08));
}

.day-divider span {
    padding: 10px 18px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 10px 25px rgba(37,99,235,.08);
}

.hourly-weather-card {
    width: 100%;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    align-items: center;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.90));
    border: 1px solid rgba(148,163,184,.28);
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.hourly-weather-card:hover {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,.36);
    box-shadow: 0 22px 48px rgba(15,23,42,.12);
}

.hour-main {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.hour-time {
    display: grid;
    gap: 6px;
    text-align: center;
    padding: 14px 10px;
    border-radius: 22px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #075985;
}

.hour-time strong {
    font-size: 26px;
    line-height: 1;
}

.hour-time span {
    font-size: 13px;
    font-weight: 800;
    color: #0369a1;
}

.hour-condition {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.weather-emoji.big {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    border-radius: 22px;
    background: #f1f5f9;
    font-size: 34px !important;
}

.hour-condition strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
    color: #0f172a;
}

.hour-condition span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-weight: 700;
}

.hour-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 14px;
}

.hour-metric {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(248,250,252,.9);
    border: 1px solid rgba(148,163,184,.20);
}

.hour-metric.primary {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border-color: #bfdbfe;
}

.hour-metric span {
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hour-metric strong {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 950;
}

.hour-metric em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

.hour-metric strong:not([class]) {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

@media (max-width: 1100px) {
    .hourly-weather-card {
        grid-template-columns: 1fr;
    }

    .hour-metrics {
        grid-template-columns: repeat(5, minmax(110px, 1fr));
    }
}

@media (max-width: 760px) {
    .hourly-weather-card {
        padding: 16px;
        border-radius: 24px;
    }

    .hour-main {
        grid-template-columns: 1fr;
    }

    .hour-time {
        width: 110px;
        text-align: left;
    }

    .hour-condition {
        align-items: flex-start;
    }

    .hour-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .hour-metric.primary {
        grid-column: span 2;
    }

    .day-divider {
        gap: 10px;
        font-size: 12px;
    }

    .day-divider span {
        padding: 9px 12px;
    }
}

@media (max-width: 420px) {
    .hour-metrics {
        grid-template-columns: 1fr;
    }

    .hour-metric.primary {
        grid-column: auto;
    }

    .weather-emoji.big {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 30px !important;
    }
}


/* V5.1 */
.hourly-scroll{
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}
.hour-card{
    padding:20px;
    border-radius:24px;
}
.hour-card strong{
    font-size:42px;
}
.hour-card em{
    font-size:28px;
    font-weight:900;
}
.hour-card span{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    background:#e0f2fe;
    color:#075985;
    font-weight:800;
}
.hour-card small{
    margin-top:4px;
    font-size:13px;
}


/* V5.2 — résumé prochaines heures style premium */
.hourly-scroll{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
}

.premium-hour-card{
    position:relative;
    overflow:hidden;
    min-height:190px;
    padding:20px;
    border-radius:28px;
    text-align:left;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 7rem),
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,246,255,.88));
    border:1px solid rgba(147,197,253,.55);
    box-shadow:0 18px 38px rgba(15,23,42,.10);
}

.premium-hour-card::after{
    content:"";
    position:absolute;
    inset:auto -24px -42px auto;
    width:120px;
    height:120px;
    border-radius:999px;
    background:rgba(37,99,235,.08);
}

.hour-top{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.hour-badge{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    padding:8px 14px !important;
    border-radius:999px !important;
    background:#dbeafe !important;
    color:#1d4ed8 !important;
    font-weight:950 !important;
    font-size:15px;
}

.hour-icon{
    font-size:48px !important;
    line-height:1;
}

.hour-temp{
    position:relative;
    z-index:1;
    display:block;
    margin-top:18px;
    font-style:normal;
    font-size:48px !important;
    line-height:.9;
    font-weight:950 !important;
    letter-spacing:-2px;
    color:#0f172a;
}

.hour-desc{
    position:relative;
    z-index:1;
    display:block;
    margin-top:10px;
    color:#475569 !important;
    font-size:14px !important;
    font-weight:800;
    min-height:34px;
}

.hour-mini-metrics{
    position:relative;
    z-index:1;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}

.hour-mini-metrics span{
    display:inline-flex;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.78);
    border:1px solid rgba(148,163,184,.22);
    color:#334155;
    font-size:13px;
    font-weight:850;
}

@media (max-width:640px){
    .hourly-scroll{
        grid-template-columns:1fr;
    }
    .premium-hour-card{
        min-height:160px;
    }
}


/* V5.3 — H1 moins massif */
@media (max-width: 640px) {
    h1 {
        font-size: clamp(32px, 10vw, 40px);
        letter-spacing: -0.5px;
    }

    .eyebrow {
        font-size: 18px;
    }
}


/* Ajustement header sans logo PNG : icône + TIEMPODEHOY.COM plus visible */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: inherit;
}

.brand-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
    font-size: 30px;
    flex: 0 0 54px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.05;
}

.brand-copy strong {
    display: block;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 950;
    letter-spacing: -1px;
    color: #0f172a;
}

.brand-copy em {
    display: block;
    font-size: clamp(14px, 1.4vw, 16px);
    font-style: normal;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0;
}

@media (max-width: 640px) {
    .brand {
        gap: 10px;
    }

    .brand-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 26px;
        border-radius: 15px;
    }

    .brand-copy strong {
        font-size: 26px;
    }

    .brand-copy em {
        font-size: 13px;
    }
}


/* Graphique vent propre : axes X/Y + échelle km/h */
.wind-chart-panel {
    margin-bottom: 22px;
}

.wind-chart-box {
    position: relative;
    padding: 0 26px 26px;
}

.wind-y-title {
    position: absolute;
    left: 28px;
    top: 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
}

.wind-chart-svg {
    width: 100%;
    height: 360px;
    display: block;
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 15%, rgba(37,99,235,.10), transparent 13rem),
        linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148,163,184,.25);
}

.wind-grid {
    stroke: rgba(148,163,184,.26);
    stroke-width: 1;
}

.wind-axis {
    stroke: rgba(71,85,105,.62);
    stroke-width: 1.6;
}

.wind-y-label,
.wind-x-label,
.wind-x-title {
    fill: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.wind-x-title {
    fill: #2563eb;
    font-size: 14px;
}

.wind-area {
    fill: rgba(37,99,235,.12);
}

.wind-line {
    fill: none;
    stroke: #2563eb;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wind-dot {
    fill: #ffffff;
    stroke: #2563eb;
    stroke-width: 4;
}

.wind-summary-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.wind-summary-row span {
    display: grid;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(148,163,184,.22);
    text-align: center;
}

.wind-summary-row strong {
    color: #0f172a;
    font-size: 14px;
}

.wind-summary-row em {
    color: #2563eb;
    font-style: normal;
    font-size: 13px;
    font-weight: 850;
}

@media (max-width: 760px) {
    .wind-chart-box {
        padding: 0 16px 22px;
    }

    .wind-chart-svg {
        height: 300px;
    }

    .wind-summary-row {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* VENT V2 — graphique épuré */
.wind-area {
    display: none !important;
}

.wind-axis {
    display: none !important;
}

.wind-line {
    fill: none !important;
    stroke: #2563eb !important;
    stroke-width: 4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.wind-dot {
    fill: #2563eb !important;
    stroke: #ffffff !important;
    stroke-width: 3 !important;
}

.wind-grid {
    stroke: rgba(148,163,184,.20) !important;
    stroke-width: 1 !important;
}

.wind-summary-row,
.wind-summary-row span,
.wind-summary-row strong,
.wind-summary-row em {
    display: none !important;
}


/* VENT V3 — jour + heure sous l’axe X */
.wind-day-label {
    fill: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.wind-x-label {
    fill: #2563eb !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.wind-x-title {
    display: none;
}


/* VENT V4 — courbe vent moyen + rafales */
.wind-x-title {
    display: none !important;
}

.wind-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 14px;
    padding: 0 2px;
}

.wind-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(148,163,184,.22);
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.wind-legend i {
    width: 24px;
    height: 4px;
    border-radius: 999px;
    display: inline-block;
}

.legend-blue { background: #2563eb; }
.legend-orange { background: #f97316; }

.wind-line {
    fill: none !important;
    stroke-width: 4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.wind-line-mean {
    stroke: #2563eb !important;
}

.wind-line-gust {
    stroke: #f97316 !important;
    stroke-width: 3.5 !important;
    opacity: .95;
}

.wind-dot {
    fill: #2563eb !important;
    stroke: #ffffff !important;
    stroke-width: 3 !important;
}

.wind-area {
    display: none !important;
}


/* VENT V5 — correction rafales orange + légende propre */
.wind-line-gust {
    stroke: #f97316 !important;
    stroke-width: 4 !important;
    stroke-dasharray: 8 7;
    opacity: 1 !important;
}

.wind-line-mean {
    stroke: #2563eb !important;
    stroke-width: 4 !important;
}

.wind-dot,
.wind-dot-blue {
    fill: #2563eb !important;
    stroke: #ffffff !important;
    stroke-width: 3 !important;
}

.wind-dot-orange {
    fill: #f97316 !important;
    stroke: #ffffff !important;
    stroke-width: 3 !important;
}

.wind-legend {
    display: none !important;
}

.wind-legend-clean {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 42px;
    margin-top: 14px;
    color: #0f172a;
    font-size: 15px;
}

.wind-legend-clean span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wind-legend-clean i {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
}

.wind-legend-clean strong {
    font-weight: 900;
}

.legend-mean i {
    background: #2563eb;
}

.legend-gust i {
    background: #f97316;
}

@media (max-width: 640px) {
    .wind-legend-clean {
        gap: 18px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .wind-legend-clean i {
        width: 34px;
    }
}


/* Légende graphique vent — FORCÉE */
.wind-legend-clean {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 42px;
    margin: 16px 0 0;
    padding-bottom: 4px;
    color: #0f172a;
    font-size: 15px;
}

.wind-legend-clean span {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.wind-legend-clean i {
    display: block !important;
    width: 42px;
    height: 4px;
    border-radius: 999px;
}

.wind-legend-clean strong {
    font-weight: 900;
}

.wind-legend-clean .legend-mean i {
    background: #2563eb;
}

.wind-legend-clean .legend-gust i {
    background: #f97316;
}

@media (max-width: 640px) {
    .wind-legend-clean {
        gap: 18px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .wind-legend-clean i {
        width: 34px;
    }
}


/* VENT V6 — heures à chaque point, jour tous les 4 points */
.wind-day-label {
    fill: #0f172a !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.wind-x-label {
    fill: #2563eb !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}

@media (max-width: 760px) {
    .wind-x-label {
        font-size: 10px !important;
    }

    .wind-day-label {
        font-size: 10px !important;
    }
}


/* TEMP V1 — courbe température + pictogrammes tiempo */
.temp-chart-panel {
    margin-bottom: 22px;
}

.temp-chart-box {
    position: relative;
    padding: 0 26px 26px;
}

.temp-y-title {
    position: absolute;
    left: 28px;
    top: 6px;
    color: #ea580c;
    font-size: 13px;
    font-weight: 900;
}

.temp-chart-svg {
    width: 100%;
    height: 385px;
    display: block;
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 15%, rgba(249,115,22,.10), transparent 13rem),
        linear-gradient(180deg, #ffffff, #fffaf5);
    border: 1px solid rgba(148,163,184,.25);
}

.temp-grid {
    stroke: rgba(148,163,184,.20);
    stroke-width: 1;
}

.temp-y-label,
.temp-day-label,
.temp-x-label {
    fill: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.temp-x-label {
    fill: #ea580c;
}

.temp-day-label {
    fill: #0f172a;
    font-weight: 900;
}

.temp-line {
    fill: none;
    stroke: #f97316;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.temp-dot {
    fill: #f97316;
    stroke: #ffffff;
    stroke-width: 3;
}

.temp-value-label {
    fill: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.temp-icon-label {
    font-size: 22px;
}

.temp-legend-clean {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 42px;
    margin: 16px 0 0;
    color: #0f172a;
    font-size: 15px;
}

.temp-legend-clean span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.temp-legend-clean i {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
}

.legend-temp i {
    background: #f97316;
}

.temp-legend-clean strong {
    font-weight: 900;
}

@media (max-width: 760px) {
    .temp-chart-box {
        padding: 0 16px 22px;
    }

    .temp-chart-svg {
        height: 330px;
    }

    .temp-x-label,
    .temp-day-label {
        font-size: 10px;
    }

    .temp-icon-label {
        font-size: 18px;
    }

    .temp-legend-clean {
        gap: 18px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .temp-legend-clean i {
        width: 34px;
    }
}


/* TEMP V2 — courbe propre, couleur selon température */
.temp-chart-panel { margin-bottom: 22px; }

.temp-chart-box {
    position: relative;
    padding: 0 26px 26px;
}

.temp-y-title {
    position: absolute;
    left: 28px;
    top: 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
}

.temp-chart-svg {
    width: 100%;
    height: 385px;
    display: block;
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 15%, rgba(37,99,235,.08), transparent 13rem),
        linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148,163,184,.25);
}

.temp-grid {
    stroke: rgba(148,163,184,.20);
    stroke-width: 1;
}

.temp-y-label {
    fill: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.temp-segment {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.temp-line-freezing { stroke: #0284c7; }
.temp-line-cold { stroke: #06b6d4; }
.temp-line-mild { stroke: #16a34a; }
.temp-line-warm { stroke: #f97316; }
.temp-line-hot { stroke: #dc2626; }

.temp-dot {
    stroke: #ffffff;
    stroke-width: 3;
}

.temp-dot-freezing { fill: #0284c7; }
.temp-dot-cold { fill: #06b6d4; }
.temp-dot-mild { fill: #16a34a; }
.temp-dot-warm { fill: #f97316; }
.temp-dot-hot { fill: #dc2626; }

.temp-value-label {
    fill: #334155;
    font-size: 11px;
    font-weight: 900;
}

.temp-icon-label { font-size: 20px; }

.temp-day-label {
    fill: #0f172a;
    font-size: 11px;
    font-weight: 900;
}

.temp-x-label {
    fill: #2563eb;
    font-size: 11px;
    font-weight: 850;
}

.temp-legend-clean {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 16px 0 0;
    color: #0f172a;
    font-size: 14px;
    flex-wrap: wrap;
}

.temp-legend-clean span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.temp-legend-clean i {
    display: block;
    width: 32px;
    height: 4px;
    border-radius: 999px;
}

.temp-legend-clean strong { font-weight: 900; }

.legend-freezing i { background: #0284c7; }
.legend-cold i { background: #06b6d4; }
.legend-mild i { background: #16a34a; }
.legend-warm i { background: #f97316; }
.legend-hot i { background: #dc2626; }

@media (max-width: 760px) {
    .temp-chart-box { padding: 0 16px 22px; }
    .temp-chart-svg { height: 330px; }

    .temp-x-label,
    .temp-day-label,
    .temp-value-label {
        font-size: 10px;
    }

    .temp-icon-label { font-size: 17px; }

    .temp-legend-clean {
        gap: 12px;
        font-size: 13px;
    }

    .temp-legend-clean i { width: 26px; }
}


/* TEMP V3 — couleurs forcées */
.temp-segment {
    fill: none !important;
    stroke-width: 5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.temp-dot {
    stroke: #ffffff !important;
    stroke-width: 3 !important;
}

.temp-legend-clean span strong {
    color: inherit !important;
    font-weight: 950 !important;
}

.temp-legend-clean i {
    display: block !important;
    width: 36px !important;
    height: 5px !important;
    border-radius: 999px !important;
}


/* TEMP V4 - épuré */
.temp-icon-label,
.temp-legend-clean{
    display:none !important;
}


/* Previsión générales enrichies - version stable */
.forecast-day p {
    line-height: 1.55;
}


/* Previsión générales enrichies - présentation lisible */
.forecast-day-rich {
    grid-template-columns: 1fr 56px 82px;
    align-items: start;
    padding: 18px 0;
}

.forecast-main > strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.forecast-main > p {
    margin: 0 0 12px;
    color: #64748b;
    font-weight: 700;
}

.forecast-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.forecast-metrics span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 14px;
    background: rgba(248,250,252,.84);
    border: 1px solid rgba(148,163,184,.22);
}

.forecast-metrics b {
    color: #475569;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.forecast-metrics em {
    color: #0f172a;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

@media (max-width: 640px) {
    .forecast-day-rich {
        grid-template-columns: 1fr 46px 58px;
    }

    .forecast-metrics {
        grid-template-columns: 1fr;
    }

    .forecast-metrics span {
        padding: 8px 10px;
    }
}


.forecast-metrics{
    row-gap:14px !important;
    column-gap:12px !important;
}

.forecast-metrics span{
    padding:11px 12px !important;
}

.forecast-metrics b{
    margin-right:10px;
}

.metric-break{
    display:block;
    grid-column:1 / -1;
    height:2px;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
}


/* Previsión générales — lignes simples sans bulles */
.forecast-metrics-lines {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    margin-top: 10px;
}

.forecast-metrics-lines div {
    display: grid;
    grid-template-columns: 185px 1fr;
    align-items: baseline;
    gap: 14px;
}

.forecast-metrics-lines span {
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.forecast-metrics-lines strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.forecast-metrics-lines > span,
.forecast-metrics-lines .metric-break {
    display: none !important;
}

.forecast-metrics span {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

@media (max-width: 640px) {
    .forecast-metrics-lines div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}


/* Previsión générales — version simple texte */
.forecast-simple-lines {
    margin-top: 10px;
}

.forecast-simple-lines p {
    margin: 5px 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.forecast-simple-lines p:first-child {
    margin-top: 0;
}

/* Neutralise les anciennes variantes */
.forecast-metrics,
.forecast-metrics-lines {
    display: none !important;
}


/* Previsión générales — version compacte 2 colonnes */
.forecast-simple-lines,
.forecast-metrics,
.forecast-metrics-lines {
    display: none !important;
}

.forecast-compact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    column-gap: 28px;
    margin-top: 10px;
}

.forecast-col {
    display: grid;
    gap: 5px;
    align-content: start;
}

.forecast-col p {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.28;
    font-weight: 650;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .forecast-compact-grid {
        grid-template-columns: 1fr;
        row-gap: 5px;
    }

    .forecast-col p {
        white-space: normal;
    }
}


/* Meteocons SVG animés */
.weather-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.big-icon {
    width: 92px;
    height: 92px;
    font-size: 0 !important;
}

.current-weather-icon {
    width: 92px;
    height: 92px;
}

.forecast-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 0 !important;
}

.forecast-weather-icon {
    width: 58px;
    height: 58px;
}

.hour-icon {
    display: block;
    width: 54px;
    height: 54px;
    font-size: 0 !important;
}

.hour-weather-icon {
    width: 54px;
    height: 54px;
}

.weather-emoji.big {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    font-size: 0 !important;
}

.detail-weather-icon {
    width: 62px;
    height: 62px;
}

@media (max-width: 640px) {
    .big-icon,
    .current-weather-icon {
        width: 70px;
        height: 70px;
    }

    .forecast-icon,
    .forecast-weather-icon {
        width: 46px;
        height: 46px;
    }
}


/* Meteocons — corrections globales */
.weather-icon {
    display: block !important;
    object-fit: contain !important;
}

.big-icon {
    width: 96px !important;
    height: 96px !important;
    font-size: 0 !important;
    display: grid !important;
    place-items: center !important;
}

.current-weather-icon {
    width: 96px !important;
    height: 96px !important;
}

.hour-icon {
    width: 56px !important;
    height: 56px !important;
    display: block !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.hour-weather-icon {
    width: 56px !important;
    height: 56px !important;
}

.forecast-icon {
    width: 54px !important;
    height: 54px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0 !important;
}

.forecast-weather-icon {
    width: 58px !important;
    height: 58px !important;
}

.weather-emoji.big {
    width: 62px !important;
    height: 62px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0 !important;
}

.detail-weather-icon {
    width: 62px !important;
    height: 62px !important;
}

.premium-hour-card .hour-icon img,
.hour-card .hour-icon img {
    width: 56px !important;
    height: 56px !important;
}

@media (max-width: 640px) {
    .big-icon,
    .current-weather-icon {
        width: 72px !important;
        height: 72px !important;
    }

    .hour-icon,
    .hour-weather-icon {
        width: 50px !important;
        height: 50px !important;
    }
}


/* Meteocons V2 — icônes plus grandes et plus visibles sur fond clair */
.big-icon {
    width: 122px !important;
    height: 122px !important;
    border-radius: 34px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.95), rgba(219,234,254,.78));
    box-shadow:
        inset 0 0 0 1px rgba(147,197,253,.35),
        0 16px 34px rgba(37,99,235,.14);
}

.current-weather-icon {
    width: 112px !important;
    height: 112px !important;
    filter: drop-shadow(0 8px 12px rgba(15,23,42,.18));
}

.forecast-icon {
    width: 66px !important;
    height: 66px !important;
    border-radius: 20px;
    background: rgba(239,246,255,.92);
    box-shadow:
        inset 0 0 0 1px rgba(147,197,253,.30),
        0 10px 22px rgba(15,23,42,.08);
}

.forecast-weather-icon {
    width: 66px !important;
    height: 66px !important;
    filter: drop-shadow(0 5px 8px rgba(15,23,42,.16));
}

.hour-icon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 22px;
    background: rgba(239,246,255,.92);
    box-shadow:
        inset 0 0 0 1px rgba(147,197,253,.28),
        0 10px 22px rgba(15,23,42,.08);
}

.hour-weather-icon {
    width: 70px !important;
    height: 70px !important;
    filter: drop-shadow(0 6px 9px rgba(15,23,42,.18));
}

.weather-emoji.big {
    width: 76px !important;
    height: 76px !important;
    border-radius: 24px;
    background: rgba(239,246,255,.92);
    box-shadow:
        inset 0 0 0 1px rgba(147,197,253,.28),
        0 10px 22px rgba(15,23,42,.08);
}

.detail-weather-icon {
    width: 76px !important;
    height: 76px !important;
    filter: drop-shadow(0 6px 9px rgba(15,23,42,.18));
}

.premium-hour-card .hour-icon img,
.hour-card .hour-icon img {
    width: 70px !important;
    height: 70px !important;
}

@media (max-width: 640px) {
    .big-icon {
        width: 88px !important;
        height: 88px !important;
        border-radius: 26px;
    }

    .current-weather-icon {
        width: 84px !important;
        height: 84px !important;
    }

    .forecast-icon,
    .forecast-weather-icon {
        width: 56px !important;
        height: 56px !important;
    }

    .hour-icon,
    .hour-weather-icon {
        width: 60px !important;
        height: 60px !important;
    }
}


/* Correctif mise en page — Tiempo par tranches de 3 heures */
.hourly-weather-card {
    grid-template-columns: 330px 1fr !important;
    align-items: stretch !important;
    gap: 18px !important;
}

.hour-main {
    align-items: center !important;
}

.hour-condition {
    min-width: 0;
}

.hour-condition strong {
    font-size: 17px !important;
    line-height: 1.2 !important;
}

.hour-condition span:not(.weather-emoji) {
    font-size: 13px !important;
}

.hour-metrics {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.hour-metric {
    min-height: 86px !important;
    padding: 12px 10px !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
}

.hour-metric span {
    display: block !important;
    width: 100% !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .045em !important;
    line-height: 1.1 !important;
    white-space: normal !important;
}

.hour-metric strong {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 34px !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

.hour-metric em {
    display: block !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    font-style: normal !important;
    font-weight: 750 !important;
    text-align: center !important;
}

.hour-metric strong:not([class]) {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

/* Cas spécial : précipitations = Aucune, compact et propre */
.hour-metric strong {
    box-sizing: border-box !important;
}

@media (max-width: 1100px) {
    .hourly-weather-card {
        grid-template-columns: 1fr !important;
    }

    .hour-metrics {
        grid-template-columns: repeat(5, minmax(95px, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .hour-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hour-metric {
        min-height: 78px !important;
    }

    .hour-metric strong {
        font-size: 14px !important;
    }
}

@media (max-width: 420px) {
    .hour-metrics {
        grid-template-columns: 1fr !important;
    }
}


/* Correction : valeur du vent en noir comme les autres */
.hour-metric em {
    color: #0f172a !important;
    font-weight: 900 !important;
}


/* Ligne d'infos actuelles en bas de la grande bulle — version safe flex */
.hero-card {
    flex-wrap: wrap;
}

.hero-card .hero-text {
    flex: 1 1 360px;
}

.hero-card .current-weather {
    flex: 0 1 auto;
}

.hero-bottom-stats {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(148, 163, 184, .24);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;

    color: #334155;
    font-size: 14px;
    line-height: 1.25;
}

.hero-bottom-stats span {
    white-space: nowrap;
}

.hero-bottom-stats strong {
    color: #0f172a;
    font-weight: 900;
    margin-right: 5px;
}

.stats-grid {
    display: none !important;
}

@media (max-width: 760px) {
    .hero-bottom-stats {
        justify-content: flex-start;
        gap: 10px 18px;
        font-size: 13px;
    }
}


/* Correctif : bloc de mise à jour sans barre bleue */
.update-info {
    border-left: 0 !important;
}

.update-info::before,
.update-info::after {
    display: none !important;
    content: none !important;
}

/* Hero plus compact */
.hero-card {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    gap: 22px !important;
}

.hero-text h1 {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
}

.hero-text .subtitle {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.current-weather {
    gap: 18px !important;
}

.big-icon {
    width: 106px !important;
    height: 106px !important;
}

.current-weather-icon {
    width: 98px !important;
    height: 98px !important;
}

.temperature {
    line-height: 1 !important;
    margin-bottom: 5px !important;
}

.condition {
    margin-bottom: 4px !important;
}

.feels {
    line-height: 1.25 !important;
}

.hero-bottom-stats {
    margin-top: 12px !important;
    padding-top: 10px !important;
}

@media (max-width: 760px) {
    .hero-card {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .big-icon,
    .current-weather-icon {
        width: 82px !important;
        height: 82px !important;
    }
}


.hour-mini-metrics{
display:flex;
flex-direction:column;
gap:4px;
margin-top:8px;
}
.hour-mini-metrics span{
font-size:13px;
line-height:1.25;
}





/* Ciudades proches — bloc premium */
.nearby-cities-panel {
    margin-top: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(59,130,246,.12), transparent 18rem),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
}

.nearby-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 30px 18px;
}

.nearby-header h2 {
    margin: 2px 0 6px;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.nearby-subtitle {
    margin: 0;
    max-width: 560px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 650;
}

.nearby-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(37,99,235,.09);
    color: #2563eb;
    border: 1px solid rgba(37,99,235,.16);
    font-size: 13px;
    font-weight: 950;
}

.nearby-cities-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 0 30px 30px;
}

.nearby-city {
    position: relative;
    min-height: 82px;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 11px;
    row-gap: 9px;
    align-items: center;
    padding: 16px 15px;
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(148,163,184,.20);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15,23,42,.055);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.nearby-city:hover {
    transform: translateY(-3px);
    background: #ffffff;
    border-color: rgba(37,99,235,.30);
    box-shadow: 0 18px 36px rgba(15,23,42,.095);
}

.nearby-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 0 5px rgba(56,189,248,.15);
}

.nearby-name {
    min-width: 0;
}

.nearby-city strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nearby-city em {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.nearby-city b {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15,23,42,.045);
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .nearby-cities-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .nearby-cities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .nearby-header {
        padding: 24px 20px 16px;
        flex-direction: column;
    }

    .nearby-cities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 20px 24px;
        gap: 10px;
    }

    .nearby-city {
        min-height: 76px;
        border-radius: 18px;
        padding: 14px;
    }
}

@media (max-width: 460px) {
    .nearby-cities-grid {
        grid-template-columns: 1fr;
    }
}


/* Thèmes tiempo dynamiques — subtils et lisibles */
:root {
    --theme-bg-1: #eef7ff;
    --theme-bg-2: #f8fbff;
    --theme-accent: #2563eb;
    --theme-accent-soft: rgba(37, 99, 235, .10);
    --theme-panel-glow: rgba(37, 99, 235, .08);
}

body {
    background:
        radial-gradient(circle at 12% 0%, var(--theme-panel-glow), transparent 28rem),
        linear-gradient(180deg, var(--theme-bg-1), var(--theme-bg-2)) !important;
    transition: background .35s ease;
}

.theme-clear-day {
    --theme-bg-1: #eef8ff;
    --theme-bg-2: #fffaf0;
    --theme-accent: #f59e0b;
    --theme-accent-soft: rgba(245, 158, 11, .12);
    --theme-panel-glow: rgba(251, 191, 36, .18);
}

.theme-clear-night {
    --theme-bg-1: #e9efff;
    --theme-bg-2: #f6f8ff;
    --theme-accent: #6366f1;
    --theme-accent-soft: rgba(99, 102, 241, .12);
    --theme-panel-glow: rgba(99, 102, 241, .16);
}

.theme-clouds {
    --theme-bg-1: #eef4fb;
    --theme-bg-2: #f8fafc;
    --theme-accent: #64748b;
    --theme-accent-soft: rgba(100, 116, 139, .12);
    --theme-panel-glow: rgba(148, 163, 184, .18);
}

.theme-overcast {
    --theme-bg-1: #e9eef5;
    --theme-bg-2: #f5f7fa;
    --theme-accent: #475569;
    --theme-accent-soft: rgba(71, 85, 105, .12);
    --theme-panel-glow: rgba(71, 85, 105, .14);
}

.theme-rain {
    --theme-bg-1: #e8f1fb;
    --theme-bg-2: #f6fbff;
    --theme-accent: #2563eb;
    --theme-accent-soft: rgba(37, 99, 235, .12);
    --theme-panel-glow: rgba(37, 99, 235, .18);
}

.theme-storm {
    --theme-bg-1: #ece9ff;
    --theme-bg-2: #f8f7ff;
    --theme-accent: #7c3aed;
    --theme-accent-soft: rgba(124, 58, 237, .13);
    --theme-panel-glow: rgba(124, 58, 237, .18);
}

.theme-snow,
.theme-cold {
    --theme-bg-1: #eefcff;
    --theme-bg-2: #f9feff;
    --theme-accent: #0891b2;
    --theme-accent-soft: rgba(8, 145, 178, .12);
    --theme-panel-glow: rgba(34, 211, 238, .16);
}

.theme-fog {
    --theme-bg-1: #f1f5f9;
    --theme-bg-2: #fafafa;
    --theme-accent: #64748b;
    --theme-accent-soft: rgba(100, 116, 139, .10);
    --theme-panel-glow: rgba(148, 163, 184, .16);
}

.theme-hot {
    --theme-bg-1: #fff4e6;
    --theme-bg-2: #fffaf5;
    --theme-accent: #f97316;
    --theme-accent-soft: rgba(249, 115, 22, .13);
    --theme-panel-glow: rgba(249, 115, 22, .18);
}

/* Application légère du thème aux zones importantes */
.hero-card {
    background:
        radial-gradient(circle at 82% 12%, var(--theme-accent-soft), transparent 18rem),
        rgba(255,255,255,.86) !important;
}

.brand strong,
.temperature,
.nearby-city b,
.wind-y-title,
.temp-y-title {
    color: var(--theme-accent) !important;
}

.hour-badge,
.nearby-count {
    background: var(--theme-accent-soft) !important;
    color: var(--theme-accent) !important;
    border-color: color-mix(in srgb, var(--theme-accent) 24%, transparent) !important;
}

.nearby-dot {
    background: var(--theme-accent) !important;
    box-shadow: 0 0 0 5px var(--theme-accent-soft) !important;
}

/* Ligne hero avec plus d'infos */
.hero-bottom-stats {
    gap: 14px 24px !important;
}


/* Dégradé continu des températures */
.temp-gradient-text {
    color: var(--temp-color) !important;
    text-shadow: 0 8px 18px color-mix(in srgb, var(--temp-color) 18%, transparent);
}

.temp-inline {
    color: var(--temp-color) !important;
    font-weight: 950;
}

.temp-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--temp-bg) !important;
    border: 1px solid var(--temp-border) !important;
    color: var(--temp-color) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.metric-temp-badge {
    min-width: 66px;
}

.forecast-temp .temp-min {
    opacity: .82;
}

.hour-temp.temp-gradient-text {
    font-weight: 950;
}

.temp-value-label {
    font-weight: 950 !important;
    paint-order: stroke;
    stroke: rgba(255,255,255,.78);
    stroke-width: 3px;
}





/* Previsión 5 jours — Max / Min propre, sans casser la bulle */
.forecast-day.forecast-day-rich {
    grid-template-columns: minmax(0, 1fr) 64px 150px !important;
    gap: 18px !important;
    align-items: center !important;
    padding-right: 10px !important;
}

.forecast-temp-range {
    width: 150px !important;
    justify-self: end !important;
    display: grid !important;
    gap: 8px !important;
    text-align: right !important;
    align-content: center !important;
}

.forecast-temp-chip {
    width: 136px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 11px !important;
    border-radius: 999px !important;
    background: var(--temp-bg) !important;
    border: 1px solid var(--temp-border) !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--temp-color) 14%, transparent) !important;
}

.forecast-temp-chip .forecast-temp-label {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

.forecast-temp-chip .forecast-temp-value {
    color: var(--temp-color) !important;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

.forecast-temp-min {
    opacity: .88;
}

@media (max-width: 900px) {
    .forecast-day.forecast-day-rich {
        grid-template-columns: minmax(0, 1fr) 56px 140px !important;
        gap: 14px !important;
    }

    .forecast-temp-range {
        width: 140px !important;
    }

    .forecast-temp-chip {
        width: 128px !important;
        padding: 8px 10px !important;
    }

    .forecast-temp-chip .forecast-temp-value {
        font-size: 18px !important;
    }
}

@media (max-width: 640px) {
    .forecast-day.forecast-day-rich {
        grid-template-columns: 1fr !important;
        padding-right: 0 !important;
    }

    .forecast-temp-range {
        width: 100% !important;
        justify-self: stretch !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .forecast-temp-chip {
        width: 100% !important;
    }
}


/* Recherche ciudad AJAX — remplace le gros select */
.city-search {
    position: relative;
    align-items: stretch;
}

.city-search-box {
    position: relative;
    min-width: 280px;
}

.city-search input[type="search"] {
    width: 100%;
    border: 0;
    border-radius: 13px;
    padding: 12px 14px;
    font-size: 15px;
    background: white;
    color: var(--text);
    outline: none;
}

.city-search input[type="search"]:focus {
    box-shadow: 0 0 0 3px rgba(37,99,235,.16);
}

.city-suggestions {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(148,163,184,.32);
    box-shadow: 0 24px 50px rgba(15,23,42,.16);
    backdrop-filter: blur(14px);
}

.city-suggestion {
    width: 100%;
    display: grid;
    gap: 3px;
    text-align: left;
    padding: 11px 12px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
}

.city-suggestion:hover,
.city-suggestion:focus {
    background: #eff6ff;
}

.city-suggestion strong {
    font-size: 15px;
    font-weight: 900;
}

.city-suggestion span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.city-suggestion-empty {
    cursor: default;
    color: #64748b;
}

.city-suggestion-empty:hover {
    background: transparent;
}

@media (max-width: 640px) {
    .city-search-box {
        min-width: 0;
        width: 100%;
    }

    .city-suggestions {
        max-height: 300px;
    }
}

/* Correctif V3.1 — suggestions au-dessus de la carte hero */
.topbar {
    position: relative;
    z-index: 5000;
    overflow: visible;
}

.search.city-search,
.city-search,
.city-search-box {
    position: relative;
    z-index: 5001;
    overflow: visible;
}

.city-suggestions {
    z-index: 99999 !important;
}

.hero-card {
    position: relative;
    z-index: 1;
}

/* HOME V5 */
.home-body {
    min-height: 100vh;
}

.home-site {
    padding-bottom: 64px;
}

.home-topbar {
    margin-bottom: 28px;
}

.home-hero {
    position: relative;
    z-index: 5;
    border-radius: 40px;
    padding: clamp(34px, 6vw, 72px);
    margin-bottom: 24px;
    background:
        radial-gradient(circle at 85% 10%, rgba(14,165,233,.22), transparent 18rem),
        radial-gradient(circle at 12% 18%, rgba(37,99,235,.22), transparent 20rem),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.82));
    border: 1px solid rgba(148,163,184,.25);
    box-shadow: 0 30px 80px rgba(15,23,42,.12);
    overflow: visible;
}

.home-hero-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.home-hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    letter-spacing: -2.5px;
    line-height: .98;
    margin-bottom: 18px;
}

.home-lead {
    max-width: 760px;
    margin: 0 auto 28px;
    color: #475569;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.65;
}

.home-search {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 10px;
    border-radius: 26px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 20px 48px rgba(15,23,42,.12);
}

.home-search .city-search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.home-search .city-search-input {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    padding: 0 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 17px;
    outline: none;
}

.home-search button {
    min-height: 56px;
    border-radius: 18px;
    padding: 0 22px;
    white-space: nowrap;
}

.home-count {
    margin: 18px 0 0;
    color: #64748b;
    font-weight: 700;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 22px;
    margin-bottom: 22px;
}

.home-panel {
    overflow: visible;
}

.compact-title {
    padding: 0 0 18px;
}

.home-city-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.home-city-link {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    background: rgba(248,250,252,.95);
    border: 1px solid rgba(148,163,184,.24);
    color: #0f172a;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.home-city-link:hover {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,.36);
    background: #eff6ff;
}

.home-city-link strong {
    font-size: 17px;
    font-weight: 950;
}

.home-city-link span {
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.home-feature-panel h2 {
    margin-top: 0;
}

.home-feature-list {
    display: grid;
    gap: 10px;
}

.home-feature-list span {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148,163,184,.22);
    color: #334155;
    font-weight: 800;
}

.home-region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.home-region-chip {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248,250,252,.95);
    border: 1px solid rgba(148,163,184,.24);
}

.home-region-chip strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.home-region-chip em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
}

.home-hero .city-suggestions,
.home-search .city-suggestions {
    z-index: 999999;
    text-align: left;
}

@media (max-width: 980px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-city-grid,
    .home-region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 28px 18px;
        border-radius: 30px;
    }

    .home-hero h1 {
        letter-spacing: -1.2px;
    }

    .home-search .city-search-box {
        grid-template-columns: 1fr;
    }

    .home-city-grid,
    .home-region-grid {
        grid-template-columns: 1fr;
    }
}


/* HOME V7 — page d'accueil plus propre */
.home-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(37,99,235,.18), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(14,165,233,.14), transparent 26rem),
        linear-gradient(135deg, #eef6ff, #f8fafc 52%, #eef6ff);
}

.home-site {
    width: min(1180px, calc(100% - 36px));
    padding-top: 26px;
}

.home-topbar {
    margin-bottom: 26px;
}

.home-hero {
    margin-bottom: 34px !important;
    padding: clamp(42px, 7vw, 86px) clamp(22px, 5vw, 72px) !important;
    border-radius: 44px !important;
    background:
        radial-gradient(circle at 78% 16%, rgba(14,165,233,.20), transparent 18rem),
        radial-gradient(circle at 18% 18%, rgba(37,99,235,.18), transparent 21rem),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.90)) !important;
    border: 1px solid rgba(148,163,184,.24) !important;
    box-shadow: 0 32px 90px rgba(15,23,42,.12) !important;
}

.home-hero-content {
    max-width: 920px !important;
}

.home-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 950;
}

.home-hero h1 {
    max-width: 860px;
    margin: 0 auto 20px !important;
    font-size: clamp(42px, 5.7vw, 72px) !important;
    line-height: 1.02 !important;
    letter-spacing: -2.4px !important;
}

.home-lead {
    max-width: 760px !important;
    margin-bottom: 34px !important;
    color: #475569 !important;
    font-size: clamp(17px, 1.7vw, 21px) !important;
    line-height: 1.65 !important;
}

.home-search {
    position: relative;
    z-index: 50;
    width: min(780px, 100%) !important;
    padding: 12px !important;
    border-radius: 30px !important;
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(147,197,253,.55) !important;
    box-shadow: 0 24px 60px rgba(15,23,42,.14) !important;
}

.home-search .city-search-box {
    gap: 12px !important;
}

.home-search .city-search-input {
    min-height: 62px !important;
    border-radius: 20px !important;
    padding: 0 22px !important;
    font-size: 18px !important;
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.20);
}

.home-search button {
    min-height: 62px !important;
    border-radius: 20px !important;
    padding: 0 28px !important;
    font-size: 16px;
    box-shadow: 0 14px 30px rgba(37,99,235,.22);
}

.home-count {
    margin-top: 20px !important;
    font-size: 15px;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr) !important;
    gap: 30px !important;
    align-items: start;
    margin-bottom: 30px !important;
}

.home-panel {
    padding: 30px !important;
    border-radius: 34px !important;
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(148,163,184,.24) !important;
    box-shadow: 0 24px 70px rgba(15,23,42,.09) !important;
}

.compact-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 0 0 22px !important;
    margin: 0 !important;
}

.compact-title h2,
.home-feature-panel h2 {
    margin: 0 !important;
    font-size: clamp(25px, 2.5vw, 34px) !important;
    letter-spacing: -0.8px;
}

.home-section-intro {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.home-city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.home-city-link {
    position: relative;
    display: grid !important;
    min-height: 92px;
    align-content: center;
    gap: 8px !important;
    padding: 18px 18px 18px 20px !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 90% 10%, rgba(37,99,235,.10), transparent 5rem),
        #f8fafc !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(15,23,42,.045);
}

.home-city-link::after {
    content: "→";
    position: absolute;
    right: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 950;
}

.home-city-link:hover {
    transform: translateY(-2px) !important;
    background: #eff6ff !important;
    border-color: rgba(37,99,235,.38) !important;
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.home-city-name,
.home-city-link strong {
    display: block;
    max-width: calc(100% - 32px);
    color: #0f172a;
    font-size: 19px !important;
    font-weight: 950 !important;
    line-height: 1.15;
}

.home-city-meta,
.home-city-link span {
    display: block;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.25;
}

.home-feature-panel {
    position: sticky;
    top: 18px;
}

.home-feature-panel .eyebrow-small {
    margin-bottom: 10px;
}

.home-feature-list {
    gap: 14px !important;
    margin-top: 22px;
}

.home-feature-list span {
    display: grid !important;
    gap: 4px !important;
    padding: 16px 18px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
    border: 1px solid rgba(148,163,184,.22) !important;
}

.home-feature-list span strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.home-feature-list span em {
    color: #64748b;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.home-regions-panel {
    margin-top: 0;
}

.home-region-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.home-region-chip {
    min-height: 82px;
    align-content: center;
    padding: 18px !important;
    border-radius: 24px !important;
    background: #f8fafc !important;
    border: 1px solid rgba(148,163,184,.22) !important;
}

.home-region-chip strong {
    font-size: 16px !important;
    line-height: 1.2;
}

.home-region-chip em {
    margin-top: 3px;
}

.home-hero .city-suggestions,
.home-search .city-suggestions {
    top: calc(100% + 12px) !important;
    border-radius: 24px !important;
    padding: 10px !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(148,163,184,.28) !important;
    box-shadow: 0 28px 70px rgba(15,23,42,.18) !important;
}

.home-hero .city-suggestion,
.home-search .city-suggestion {
    border-radius: 16px !important;
    margin: 2px 0 !important;
    padding: 13px 15px !important;
}

@media (max-width: 1080px) {
    .home-grid {
        grid-template-columns: 1fr !important;
    }

    .home-feature-panel {
        position: static;
    }

    .home-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .home-site {
        width: min(100% - 22px, 1180px);
        padding-top: 14px;
    }

    .home-hero {
        padding: 30px 18px !important;
        border-radius: 32px !important;
        margin-bottom: 24px !important;
    }

    .home-hero h1 {
        font-size: clamp(34px, 11vw, 46px) !important;
        letter-spacing: -1.2px !important;
    }

    .home-lead {
        font-size: 16px !important;
    }

    .home-search .city-search-box {
        grid-template-columns: 1fr !important;
    }

    .home-search button {
        width: 100%;
    }

    .home-panel {
        padding: 22px !important;
        border-radius: 28px !important;
    }

    .home-city-grid,
    .home-region-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .home-city-link {
        min-height: 78px;
    }
}

/* HOME V8 — accueil aéré, inspiré du bloc ciudades proches */
.home-v8,
.home-v8 * {
    box-sizing: border-box;
}

.home-v8 .home-hero-v8,
.home-v8 .home-section-v8 {
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(148,163,184,.24) !important;
    box-shadow: 0 24px 70px rgba(15,23,42,.09) !important;
    backdrop-filter: blur(16px);
}

.home-v8 .home-hero-v8 {
    position: relative;
    z-index: 20;
    margin: 0 0 34px !important;
    padding: clamp(38px, 6vw, 72px) clamp(22px, 5vw, 64px) !important;
    border-radius: 42px !important;
    text-align: center;
    background:
        radial-gradient(circle at 80% 10%, rgba(14,165,233,.18), transparent 18rem),
        radial-gradient(circle at 18% 16%, rgba(37,99,235,.16), transparent 20rem),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.92)) !important;
}

.home-v8 .home-hero-copy-v8 {
    max-width: 900px;
    margin: 0 auto;
}

.home-v8 .home-kicker-v8 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0 14px !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-v8 .home-hero-v8 h1 {
    max-width: 880px;
    margin: 0 auto 18px !important;
    font-size: clamp(38px, 5.2vw, 68px) !important;
    line-height: 1.03 !important;
    letter-spacing: -2.2px !important;
}

.home-v8 .home-lead-v8 {
    max-width: 760px;
    margin: 0 auto 30px !important;
    color: #475569;
    font-size: clamp(17px, 1.65vw, 21px);
    line-height: 1.65;
}

.home-v8 .home-search-v8 {
    position: relative !important;
    z-index: 9999 !important;
    width: min(760px, 100%) !important;
    margin: 0 auto !important;
    padding: 12px !important;
    border-radius: 30px !important;
    background: rgba(255,255,255,.94) !important;
    border: 1px solid rgba(147,197,253,.55) !important;
    box-shadow: 0 24px 60px rgba(15,23,42,.14) !important;
}

.home-v8 .home-search-box-v8 {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 12px !important;
}

.home-v8 .home-search-input-v8 {
    width: 100% !important;
    min-height: 62px !important;
    border: 0 !important;
    border-radius: 20px !important;
    padding: 0 22px !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.22) !important;
    font-size: 18px !important;
    outline: none !important;
}

.home-v8 .home-search-v8 button {
    min-height: 62px !important;
    border-radius: 20px !important;
    padding: 0 28px !important;
    white-space: nowrap !important;
    box-shadow: 0 14px 30px rgba(37,99,235,.22) !important;
}

.home-v8 .home-count-v8 {
    display: block !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #64748b !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.home-v8 .home-section-v8 {
    margin: 0 0 32px !important;
    padding: 32px !important;
    border-radius: 34px !important;
}

.home-v8 .home-section-head-v8 {
    margin: 0 0 24px !important;
}

.home-v8 .home-section-head-v8 h2 {
    margin: 0 !important;
    font-size: clamp(26px, 2.8vw, 36px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.8px !important;
}

.home-v8 .home-section-head-v8 p:not(.home-kicker-v8) {
    margin: 10px 0 0 !important;
    color: #64748b !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
}

.home-v8 .home-city-grid-v8 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.home-v8 .home-city-card-v8 {
    position: relative;
    min-height: 96px;
    display: grid !important;
    grid-template-columns: 10px minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    border: 1px solid rgba(148,163,184,.24) !important;
    box-shadow: 0 12px 28px rgba(15,23,42,.055) !important;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.home-v8 .home-city-card-v8:hover {
    transform: translateY(-2px) !important;
    background: #eff6ff !important;
    border-color: rgba(37,99,235,.38) !important;
    box-shadow: 0 18px 42px rgba(15,23,42,.10) !important;
}

.home-v8 .home-city-dot-v8 {
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: #2563eb !important;
    box-shadow: 0 0 0 6px rgba(37,99,235,.10) !important;
}

.home-v8 .home-city-text-v8 {
    display: grid !important;
    gap: 5px !important;
    min-width: 0 !important;
}

.home-v8 .home-city-text-v8 strong {
    display: block !important;
    color: #0f172a !important;
    font-size: 19px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
}

.home-v8 .home-city-text-v8 em {
    display: block !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

.home-v8 .home-city-card-v8 b {
    width: 34px !important;
    height: 34px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-size: 18px !important;
    font-weight: 950 !important;
}

.home-v8 .home-two-cols-v8 {
    display: grid !important;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
    gap: 32px !important;
    align-items: start !important;
}

.home-v8 .home-feature-grid-v8,
.home-v8 .home-region-list-v8 {
    display: grid !important;
    gap: 16px !important;
}

.home-v8 .home-feature-grid-v8 span,
.home-v8 .home-region-card-v8 {
    display: grid !important;
    gap: 5px !important;
    padding: 18px 20px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    border: 1px solid rgba(148,163,184,.24) !important;
    color: #334155 !important;
    box-shadow: 0 10px 24px rgba(15,23,42,.04) !important;
}

.home-v8 .home-feature-grid-v8 strong,
.home-v8 .home-region-card-v8 strong {
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 950 !important;
}

.home-v8 .home-feature-grid-v8 em,
.home-v8 .home-region-card-v8 em {
    color: #64748b !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 700 !important;
}

.home-v8 .home-region-list-v8 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.home-v8 .home-search-v8 .city-suggestions {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    border-radius: 24px !important;
    padding: 10px !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(148,163,184,.28) !important;
    box-shadow: 0 28px 70px rgba(15,23,42,.18) !important;
    text-align: left !important;
}

.home-v8 .home-search-v8 .city-suggestion {
    border-radius: 16px !important;
    margin: 2px 0 !important;
    padding: 14px 16px !important;
}

.home-v8 .home-search-v8 .city-suggestion span {
    color: #64748b !important;
}

@media (max-width: 1050px) {
    .home-v8 .home-city-grid-v8,
    .home-v8 .home-two-cols-v8,
    .home-v8 .home-region-list-v8 {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }
}

@media (max-width: 720px) {
    .home-v8 .home-hero-v8 {
        padding: 30px 18px !important;
        border-radius: 32px !important;
        margin-bottom: 24px !important;
    }

    .home-v8 .home-hero-v8 h1 {
        font-size: clamp(34px, 11vw, 46px) !important;
        letter-spacing: -1.2px !important;
    }

    .home-v8 .home-search-box-v8,
    .home-v8 .home-city-grid-v8,
    .home-v8 .home-two-cols-v8,
    .home-v8 .home-region-list-v8 {
        grid-template-columns: 1fr !important;
    }

    .home-v8 .home-search-v8 button {
        width: 100% !important;
    }

    .home-v8 .home-section-v8 {
        padding: 22px !important;
        border-radius: 28px !important;
        margin-bottom: 24px !important;
    }

    .home-v8 .home-city-card-v8 {
        min-height: 82px !important;
        padding: 18px !important;
    }
}

/* HOME V9 — vraie page d'accueil aérée */
.home-v9 {
    padding-bottom: 70px;
}

.home-topbar-v9 {
    margin-bottom: 28px;
}

.home-hero-v9,
.home-section-v9,
.home-seo-v9 {
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(148,163,184,.25);
    box-shadow: 0 24px 60px rgba(15,23,42,.10);
    backdrop-filter: blur(16px);
}

.home-hero-v9 {
    position: relative;
    z-index: 30;
    display: grid;
    gap: 28px;
    padding: clamp(30px, 5vw, 56px);
    border-radius: 38px;
    margin-bottom: 28px;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.16), transparent 18rem),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.86));
}

.home-kicker-v9 {
    margin: 0 0 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.home-hero-copy-v9 h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: .98;
    letter-spacing: -2.5px;
    font-weight: 950;
}

.home-lead-v9 {
    max-width: 760px;
    margin: 22px 0 0;
    color: #475569;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.65;
    font-weight: 650;
}

.home-search-v9 {
    width: min(820px, 100%);
    padding: 12px;
    border-radius: 28px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(147,197,253,.55);
    box-shadow: 0 18px 45px rgba(37,99,235,.12);
    position: relative;
    z-index: 1000;
}

.home-search-box-v9 {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    position: relative;
    width: 100%;
}

.home-search-input-v9 {
    width: 100%;
    border: 0;
    border-radius: 20px;
    padding: 18px 20px;
    background: #ffffff;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    outline: none;
}

.home-search-v9 button {
    border-radius: 20px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 900;
}

.home-search-v9 .city-suggestions {
    top: calc(100% + 12px);
    z-index: 99999;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15,23,42,.20);
}

.home-section-v9,
.home-seo-v9 {
    border-radius: 34px;
    padding: clamp(26px, 4vw, 42px);
    margin-bottom: 28px;
}

.home-section-head-v9 {
    max-width: 760px;
    margin-bottom: 26px;
}

.home-section-head-v9 h2,
.home-maillage-copy-v9 h2,
.home-seo-v9 h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -1px;
    font-weight: 950;
}

.home-section-head-v9 p:not(.home-kicker-v9),
.home-maillage-copy-v9 p,
.home-seo-v9 p {
    margin: 14px 0 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.home-maillage-v9 {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(14,165,233,.12), transparent 18rem),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
}

.home-maillage-stats-v9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-maillage-stats-v9 span {
    min-height: 128px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 20px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,.24);
    box-shadow: 0 16px 34px rgba(15,23,42,.07);
    text-align: center;
}

.home-maillage-stats-v9 strong {
    color: #0f172a;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    font-weight: 950;
}

.home-maillage-stats-v9 em {
    color: #64748b;
    font-style: normal;
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-city-grid-v9 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-city-card-v9 {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,.24);
    box-shadow: 0 14px 30px rgba(15,23,42,.07);
    color: #0f172a;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.home-city-card-v9:hover {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,.40);
    box-shadow: 0 20px 42px rgba(15,23,42,.11);
}

.home-city-text-v9 {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.home-city-text-v9 strong {
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
}

.home-city-text-v9 em {
    color: #64748b;
    font-size: 14px;
    font-style: normal;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-city-card-v9 b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
}

.home-department-grid-v9 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-department-card-v9 {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(148,163,184,.24);
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

.home-department-card-v9 strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
}

.home-department-card-v9 em {
    color: #2563eb;
    font-size: 14px;
    font-style: normal;
    font-weight: 850;
}

.home-seo-v9 {
    background: rgba(255,255,255,.78);
}

.home-seo-v9 p {
    max-width: 980px;
}

@media (max-width: 1100px) {
    .home-city-grid-v9,
    .home-department-grid-v9 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .home-maillage-v9 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .home-hero-v9,
    .home-section-v9,
    .home-seo-v9 {
        border-radius: 28px;
    }
    .home-search-box-v9 {
        grid-template-columns: 1fr;
    }
    .home-city-grid-v9,
    .home-department-grid-v9,
    .home-maillage-stats-v9 {
        grid-template-columns: 1fr;
    }
    .home-city-card-v9,
    .home-department-card-v9 {
        min-height: 74px;
    }
}


/* V10 — pages provincia */
.department-site {
    padding-bottom: 56px;
}

.department-topbar {
    position: relative;
    z-index: 20;
}

.department-search {
    min-width: min(460px, 100%);
}

.department-hero,
.department-section {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    border-radius: 34px;
}

.department-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 30px;
    align-items: center;
    padding: 38px;
    margin-bottom: 28px;
}

.department-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
}

.department-hero p:not(.home-kicker-v9) {
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
    max-width: 760px;
}

.department-stats {
    display: grid;
    gap: 14px;
}

.department-stats span {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(148,163,184,.22);
}

.department-stats strong {
    font-size: 30px;
    line-height: 1;
    color: #0f172a;
    font-weight: 950;
}

.department-stats em {
    color: #64748b;
    font-style: normal;
    font-weight: 800;
}

.department-section {
    padding: 30px;
    margin-bottom: 28px;
}

.department-city-grid.featured {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.department-municipio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.department-municipio-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(148,163,184,.22);
    color: #0f172a;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.department-municipio-link:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(37,99,235,.34);
    box-shadow: 0 14px 32px rgba(15,23,42,.08);
}

.department-municipio-link strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.department-municipio-link span {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 13px;
    font-weight: 850;
}

.home-department-card-v9 {
    text-decoration: none;
}

.home-department-card-v9 b {
    margin-left: auto;
    color: #2563eb;
    font-size: 20px;
}

.department-seo {
    margin-top: 0;
}

@media (max-width: 1020px) {
    .department-hero {
        grid-template-columns: 1fr;
    }

    .department-city-grid.featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-municipio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .department-hero,
    .department-section {
        padding: 22px;
        border-radius: 28px;
    }

    .department-city-grid.featured,
    .department-municipio-grid {
        grid-template-columns: 1fr;
    }

    .department-municipio-link span {
        display: none;
    }

    .department-search {
        min-width: 0;
    }
}


/* V11 — ancres SEO propres + suppression des petites bulles parasites */
.home-city-card-v9 b,
.home-department-card-v9 b,
.department-municipio-link span {
    display: none !important;
}

.seo-city-anchor,
.seo-department-anchor,
.seo-municipio-anchor {
    text-decoration: none !important;
}

.seo-city-anchor {
    align-items: center;
    justify-content: flex-start;
}

.seo-city-anchor .home-city-text-v9 strong {
    font-size: 16px;
    line-height: 1.25;
}

.seo-department-anchor {
    display: grid;
    gap: 9px;
    align-content: center;
}

.seo-department-anchor strong {
    line-height: 1.25;
}

.department-municipio-link.seo-municipio-anchor {
    justify-content: flex-start;
    min-height: 58px;
    padding: 16px 18px;
}

.department-municipio-link.seo-municipio-anchor strong {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.25;
}

.department-section,
.department-hero,
.home-section-v9,
.home-seo-v9 {
    position: relative;
    overflow: visible;
}

/* Si un ancien bloc de debug/JSON a été laissé dans le HTML par erreur, on l'éteint visuellement. */
.debug-json,
.json-debug,
pre.debug,
pre.json-debug {
    display: none !important;
}


/* =========================================================
   Correctif AJAX provincia — bouton VOIR aligné à droite
   À laisser en fin de fichier pour écraser les anciennes règles
   ========================================================= */

.department-search {
    position: relative !important;
    z-index: 5001 !important;
    flex: 0 1 460px !important;
    width: min(460px, 100%) !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.department-search .city-search-box {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.department-search .city-search-input,
.department-search input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 14px !important;
}

.department-search input[type="hidden"] {
    display: none !important;
}

.department-search button,
.department-search button[type="submit"] {
    width: auto !important;
    min-width: 70px !important;
    height: 46px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    justify-self: end !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
}

.department-search .city-suggestions,
#department-city-suggestions {
    position: absolute !important;
    z-index: 99999 !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
}

@media (max-width: 760px) {
    .department-search {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    .department-search .city-search-box {
        grid-template-columns: 1fr !important;
    }

    .department-search button,
    .department-search button[type="submit"] {
        width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
}

/* SEO V3 — maillage en bulles, liens limités et silo propre */
.seo-bubble-card {
    border-radius: 28px !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,246,255,.88)) !important;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .10) !important;
    overflow: hidden;
}

.seo-card-grid-compact {
    gap: 12px !important;
}

.seo-toc-panel {
    margin: 18px 0 22px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(248,250,252,.94));
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .09);
}

.seo-toc-panel h2 {
    margin: 4px 0 14px;
    font-size: 1.35rem;
}

.seo-toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-toc-links a,
.seo-mini-footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .14);
    color: #1e3a8a;
    font-weight: 800;
    text-decoration: none;
}

.seo-toc-links a:hover,
.seo-mini-footer-links a:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, .14);
}

.seo-city-mesh-panel {
    margin-top: 24px;
}

.seo-city-mesh-panel .nearby-cities-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.seo-city-mesh-panel .nearby-city {
    min-height: 72px;
}

.seo-mini-footer-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-section-v9.seo-bubble-card,
.home-seo-v9.seo-bubble-card,
.department-section.seo-bubble-card {
    padding: clamp(18px, 3vw, 28px) !important;
    margin-top: 24px;
}

@media (max-width: 720px) {
    .seo-toc-links a,
    .seo-mini-footer-links a {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Ajustement demandé : réduire uniquement les espaces autour du texte de mise à jour
   placé dans la carte tiempo principale, sans changer la présentation générale. */
.hero-update-info {
    margin-top: 6px;
    padding-top: 6px;
    font-size: .84rem;
    line-height: 1.28;
}

.hero-update-info p {
    margin: 0;
}

.hero-bottom-stats {
    margin-bottom: 0;
}

/* Carte tiempo España - home */
.home-weather-map-section {
    overflow: hidden;
}

.home-weather-map-wrap {
    margin-top: 18px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .72);
}

.home-weather-map {
    width: 100%;
    height: 500px;
    min-height: 360px;
    background: #dbeafe;
}

.home-weather-map-note {
    margin: 12px 2px 0;
    font-size: .86rem;
    color: rgba(71, 85, 105, .92);
    line-height: 1.45;
}

.weather-map-marker {
    background: transparent;
    border: 0;
}

.weather-map-pin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 54px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .20);
    color: #0f172a;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.weather-map-icon {
    font-size: 18px;
    line-height: 1;
}

.weather-map-pin strong {
    font-size: 13px;
    letter-spacing: -.02em;
}

.leaflet-popup-content {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
}

.leaflet-popup-content a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.home-weather-map.is-unavailable::after {
    content: "Carte tiempo indisponible pour le moment";
    display: grid;
    place-items: center;
    height: 100%;
    color: #475569;
    font-weight: 700;
}

@media (max-width: 760px) {
    .home-weather-map {
        height: 390px;
        min-height: 320px;
    }

    .weather-map-pin {
        padding: 4px 7px;
        min-width: 48px;
    }

    .weather-map-icon {
        font-size: 16px;
    }

    .weather-map-pin strong {
        font-size: 12px;
    }
}

/* Correctif robuste Leaflet : évite les tuiles en carrés mélangés si la CSS CDN ne charge pas */
.leaflet-container {
    overflow: hidden;
    position: relative;
    outline-style: none;
    background: #dbeafe;
    font-family: inherit;
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}
.leaflet-tile {
    width: 256px;
    height: 256px;
    user-select: none;
    -webkit-user-drag: none;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
    display: block;
}
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}
.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control-zoom {
    margin-left: 10px;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15,23,42,.14);
}
.leaflet-control-zoom a {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    border-bottom: 1px solid rgba(15,23,42,.10);
}
.leaflet-control-attribution {
    background: rgba(255,255,255,.82);
    padding: 3px 7px;
    font-size: 11px;
}
.leaflet-popup {
    position: absolute;
    text-align: center;
    margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(15,23,42,.20);
    padding: 1px;
    text-align: left;
}
.leaflet-popup-content {
    margin: 12px 14px;
}
.leaflet-popup-tip-container {
    width: 40px;
    height: 20px;
    position: absolute;
    left: 50%;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
}
.leaflet-popup-tip {
    width: 14px;
    height: 14px;
    padding: 1px;
    margin: -7px auto 0;
    transform: rotate(45deg);
    background: #fff;
    box-shadow: 0 14px 36px rgba(15,23,42,.16);
}
.leaflet-popup-close-button {
    position: absolute;
    top: 6px;
    right: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 900;
}
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab { cursor: grabbing; }
.home-weather-map .leaflet-marker-icon.weather-map-marker {
    background: transparent !important;
    border: 0 !important;
}


/* Carte tiempo : pictos SVG animés identiques aux pages ciudades */
.weather-map-pin.weather-map-pin-svg {
    gap: 4px;
    padding: 4px 7px 4px 5px;
    min-width: 58px;
    min-height: 34px;
}

.weather-map-svg {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.weather-map-pin-svg strong {
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 760px) {
    .weather-map-pin.weather-map-pin-svg {
        min-width: 52px;
        min-height: 31px;
        padding: 3px 6px 3px 4px;
    }

    .weather-map-svg {
        width: 25px;
        height: 25px;
    }
}


/* Carte tiempo V2 — SVG transparents + températures colorées */
.home-weather-map .leaflet-marker-icon.weather-map-marker,
.weather-map-marker {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.weather-map-pin,
.weather-map-pin.weather-map-pin-svg,
.weather-map-pin.weather-map-pin-fallback {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 58px !important;
    height: 66px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    color: #0f172a;
    line-height: 1;
    pointer-events: auto;
}

.weather-map-svg {
    width: 46px !important;
    height: 46px !important;
    display: block !important;
    object-fit: contain !important;
    filter: drop-shadow(0 5px 8px rgba(15, 23, 42, .22));
    margin: 0 auto -2px !important;
}

.weather-map-icon {
    font-size: 36px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 5px 8px rgba(15, 23, 42, .22));
}

.weather-map-temp,
.weather-map-pin strong,
.weather-map-pin-svg strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    padding: 3px 7px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .88) !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .18) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    letter-spacing: -.04em !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

.weather-map-temp-freezing { color: #0369a1 !important; }
.weather-map-temp-cold { color: #0e7490 !important; }
.weather-map-temp-mild { color: #047857 !important; }
.weather-map-temp-warm { color: #c2410c !important; }
.weather-map-temp-hot { color: #b91c1c !important; }
.weather-map-temp-neutral { color: #475569 !important; }

@media (max-width: 760px) {
    .weather-map-pin,
    .weather-map-pin.weather-map-pin-svg,
    .weather-map-pin.weather-map-pin-fallback {
        width: 50px !important;
        height: 58px !important;
    }

    .weather-map-svg {
        width: 39px !important;
        height: 39px !important;
    }

    .weather-map-icon {
        font-size: 30px !important;
    }


.hero-ai-bulletin,
.hero-ai-bulletin p {
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.hero-ai-bulletin strong {
    font-size: 14px;
    font-weight: 600;
}

    .weather-map-temp,
    .weather-map-pin strong,
    .weather-map-pin-svg strong {
        min-width: 30px !important;
        padding: 3px 6px !important;
        font-size: 13px !important;
    }
}


.brand{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.site-logo{
    display:block;
    width:260px;
    height:auto;
    max-width:100%;
}

@media (max-width:768px){
    .site-logo{
        width:180px;
    }
}



/* Logo SVG tiempodehoy — correctif header */
.brand{
    display:inline-flex !important;
    align-items:center !important;
    gap:0 !important;
    text-decoration:none !important;
}
.site-logo{
    display:block !important;
    width:260px !important;
    height:auto !important;
    max-width:100% !important;
}
@media (max-width:640px){
    .site-logo{
        width:190px !important;
    }
}



/* ===== LOGO TIEMPODEHOY.COM ===== */

.brand{
    display:inline-flex !important;
    align-items:center !important;
    text-decoration:none !important;
    gap:0 !important;
}

.site-logo{
    display:block !important;
    width:450px !important;
    height:auto !important;
    max-width:none !important;
    object-fit:contain !important;
    object-position:left center !important;
}

.topbar{
    align-items:center !important;
    margin-bottom:18px !important;
}

@media (max-width:768px){
    .site-logo{
        width:250px !important;
    }
}


/* Bloc historique TIEMPO — ajout home */
.heritage-box-v1 {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 22px;
}

.heritage-logo-wrap-v1 {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 28px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top, rgba(15,23,42,.08), transparent 9rem),
        rgba(248,250,252,.86);
    border: 1px solid rgba(148,163,184,.24);
}

.heritage-logo-v1 {
    width: 220px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: .62;
}

.heritage-logo-wrap-v1 span {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
}

.heritage-content-v1 h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.heritage-content-v1 p {
    margin: 14px 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.75;
}

.heritage-button-v1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 14px 22px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(15,23,42,.16);
}

.heritage-button-v1:hover {
    background: #1e293b;
}

@media (max-width: 760px) {
    .heritage-box-v1 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .heritage-logo-wrap-v1 {
        padding: 22px;
    }

    .heritage-logo-v1 {
        width: 190px;
    }

    .heritage-button-v1 {
        width: 100%;
        text-align: center;
    }
}

