/* ==========================================================================
   OsmoTools : numéro de semaine ([osmova_semaine])
   ========================================================================== */

.osm {
    --osm-noir: #0A0A0A;
    --osm-gris: #6B6B6B;
    --osm-gris-bg: #F3F4F6;
    --osm-border: #E5E7EB;
    --osm-blue: #0064FF;
    --osm-mono: 'JetBrains Mono', monospace;
    margin: 0 0 40px;
    padding: 28px;
    border: 1px solid var(--osm-border);
    border-radius: 16px;
    background: #fff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--osm-noir);
}

.osm__badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--osm-blue) 10%, white);
    color: var(--osm-blue);
    font: 700 11px/1.4 var(--osm-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.osm .osm__title {
    margin: 0 0 16px;
    font-size: 1.5rem;
    line-height: 1.25;
}

.osm__now {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 16px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--osm-blue) 7%, white);
    text-align: center;
}

.osm__now-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--osm-gris);
}

.osm__now-num {
    font: 800 clamp(30px, 7vw, 48px)/1.1 var(--osm-mono);
    color: var(--osm-blue);
}

.osm__now-dates {
    font-size: 15px;
}

.osm__tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.osm__box {
    padding: 16px;
    border: 1px solid var(--osm-border);
    border-radius: 12px;
}

.osm .osm__h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.osm__row {
    display: flex;
    gap: 10px;
}

.osm__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.osm__field input,
.osm__field select {
    padding: 10px 12px;
    border: 1px solid var(--osm-border);
    border-radius: 10px;
    font: 500 15px/1.3 inherit;
    font-family: inherit;
    max-width: 100%;
    box-sizing: border-box;
}

.osm__row .osm__field input {
    width: 110px;
}

.osm__field--inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.osm__res {
    min-height: 1.4em;
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 600;
}

.osm__year-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.osm__year-count {
    margin: 4px 0 8px;
    font-size: 13px;
    color: var(--osm-gris);
}

.osm__table-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--osm-border);
    border-radius: 12px;
}

.osm__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
}

.osm__table th,
.osm__table td {
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--osm-border);
    text-align: left;
}

.osm__table th {
    position: sticky;
    top: 0;
    background: var(--osm-gris-bg);
    font-size: 12px;
    font-weight: 700;
}

.osm__table td:first-child {
    font: 700 13px/1.2 var(--osm-mono);
    color: var(--osm-blue);
}

.osm__table tr.is-current td {
    background: color-mix(in srgb, var(--osm-blue) 10%, white);
    font-weight: 700;
}

.osm__more {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--osm-gris);
}

@media (max-width: 720px) {
    .osm {
        padding: 18px;
    }

    .osm__tools {
        grid-template-columns: 1fr;
    }
}
