/* ==========================================================================
   OsmoTools : phases de la lune ([osmova_lune])
   ========================================================================== */

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

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

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

.olu__now {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 22px;
    border-radius: 14px;
    background: var(--olu-nuit);
    color: #fff;
}

.olu__moon {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
}

.olu__dark {
    fill: #263155;
}

.olu__lit {
    fill: #F4F1E6;
}

.olu__now-txt {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.olu__phase {
    font-size: 1.6rem;
    line-height: 1.2;
}

.olu__illum,
.olu__age {
    font-size: 15px;
    color: #D6DCF0;
}

.olu .olu__h3 {
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.olu__next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.olu__next li {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--olu-gris-bg);
    font-size: 14px;
}

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

.olu__field {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.olu__field select {
    padding: 9px 12px;
    border: 1px solid var(--olu-border);
    border-radius: 10px;
    font: 600 15px/1.3 inherit;
    font-family: inherit;
}

.olu__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--olu-border);
    border-radius: 12px;
}

.olu__table {
    width: 100%;
    min-width: 560px;
    margin: 0;
    border-collapse: collapse;
    font-size: 13.5px;
}

.olu__table th,
.olu__table td {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid var(--olu-border);
    text-align: left;
}

.olu__table thead th {
    background: var(--olu-gris-bg);
    font-size: 12px;
    font-weight: 700;
}

.olu__table td.is-now {
    background: color-mix(in srgb, var(--olu-blue) 12%, white);
    font-weight: 700;
}

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

@media (max-width: 640px) {
    .olu {
        padding: 18px;
    }

    .olu__now {
        flex-direction: column;
        text-align: center;
    }

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