.effectif-cours {
    --effectif-cours-text: #172033;
    --effectif-cours-muted: #667085;
    --effectif-cours-line: #d9dee8;
    --effectif-cours-bg: #ffffff;
    --effectif-cours-soft: #f6f8fb;
    --effectif-cours-available-bg: #dcfce7;
    --effectif-cours-available-border: #86efac;
    --effectif-cours-available-text: #166534;
    --effectif-cours-full-bg: #ffe4e6;
    --effectif-cours-full-border: #fda4af;
    --effectif-cours-full-text: #9f1239;
    color: var(--effectif-cours-text);
    font-family: inherit;
}

.effectif-cours *,
.effectif-cours *::before,
.effectif-cours *::after {
    box-sizing: border-box;
}

.effectif-cours__header {
    margin-bottom: 14px;
}

.effectif-cours__title {
    margin: 0;
    color: var(--effectif-cours-text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.effectif-cours__season {
    margin: 5px 0 0;
    color: var(--effectif-cours-muted);
}

.effectif-cours__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.effectif-cours__tab {
    display: grid;
    gap: 5px;
    min-height: 86px;
    padding: 13px;
    border: 1px solid var(--effectif-cours-line);
    border-top: 6px solid var(--effectif-cours-color);
    border-radius: 8px;
    background: var(--effectif-cours-bg);
    color: var(--effectif-cours-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.effectif-cours__tab:hover,
.effectif-cours__tab:focus-visible {
    border-color: var(--effectif-cours-color);
    box-shadow: 0 3px 12px rgb(15 23 42 / 0.08);
    outline: none;
}

.effectif-cours__tab.is-active {
    outline: 2px solid var(--effectif-cours-color);
    outline-offset: 2px;
}

.effectif-cours__tab span {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.effectif-cours__tab small {
    align-self: end;
    color: var(--effectif-cours-muted);
    font-size: 13px;
    line-height: 1.3;
}

.effectif-cours__search {
    max-width: 420px;
    margin: 0 0 16px auto;
}

.effectif-cours__search label {
    display: block;
    margin-bottom: 5px;
    color: var(--effectif-cours-muted);
    font-size: 13px;
    font-weight: 700;
}

.effectif-cours__search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--effectif-cours-line);
    border-radius: 8px;
    background: var(--effectif-cours-bg);
    color: var(--effectif-cours-text);
    font: inherit;
}

.effectif-cours__search input:focus {
    border-color: #2563eb;
    outline: 2px solid rgb(37 99 235 / 0.18);
}

.effectif-cours__empty,
.effectif-cours--error {
    padding: 18px;
    border: 1px solid var(--effectif-cours-line);
    border-radius: 8px;
    background: var(--effectif-cours-soft);
}

.effectif-cours__panel {
    border-top: 6px solid var(--effectif-cours-color);
}

.effectif-cours__public-title {
    margin: 14px 0 0;
    color: var(--effectif-cours-text);
    font-size: 24px;
    line-height: 1.2;
}

.effectif-cours__family {
    margin-top: 18px;
}

.effectif-cours__family h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    padding-bottom: 7px;
    border-bottom: 2px solid var(--effectif-cours-color);
    color: var(--effectif-cours-text);
    font-size: 16px;
    line-height: 1.25;
    text-transform: uppercase;
}

.effectif-cours__family h4 small {
    color: var(--effectif-cours-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.effectif-cours__table-wrap {
    width: 100%;
    overflow: visible;
}

.effectif-cours__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--effectif-cours-bg);
}

.effectif-cours__table th,
.effectif-cours__table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--effectif-cours-line);
    text-align: left;
    vertical-align: top;
}

.effectif-cours__table th {
    background: color-mix(in srgb, var(--effectif-cours-color), #ffffff 91%);
    color: #253140;
    font-size: 13px;
    font-weight: 800;
}

.effectif-cours__table td {
    font-size: 14px;
}

.effectif-cours__table td:first-child {
    min-width: 210px;
}

.effectif-cours__table strong,
.effectif-cours__table span,
.effectif-cours__table em {
    display: block;
}

.effectif-cours__table strong {
    font-weight: 800;
}

.effectif-cours__table td:first-child span {
    margin-top: 3px;
    color: var(--effectif-cours-muted);
}

.effectif-cours__table em {
    margin-top: 5px;
    color: #6b4b00;
    font-size: 13px;
    font-style: normal;
}

.effectif-cours__mobile-details {
    display: none;
}

.effectif-cours__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.effectif-cours__status--available {
    border-color: var(--effectif-cours-available-border);
    background: var(--effectif-cours-available-bg);
    color: var(--effectif-cours-available-text);
}

.effectif-cours__status--full {
    border-color: var(--effectif-cours-full-border);
    background: var(--effectif-cours-full-bg);
    color: var(--effectif-cours-full-text);
}

@media (max-width: 860px) {
    .effectif-cours__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .effectif-cours__tabs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .effectif-cours__tab {
        min-height: 64px;
        gap: 2px;
        padding: 9px 10px;
        border-top-width: 4px;
    }

    .effectif-cours__tab span {
        font-size: 15px;
    }

    .effectif-cours__tab small {
        align-self: start;
        font-size: 12px;
        line-height: 1.25;
    }

    .effectif-cours__search {
        max-width: none;
        margin-left: 0;
    }

    .effectif-cours__panel {
        border-top-width: 4px;
    }

    .effectif-cours__public-title {
        margin-top: 12px;
        font-size: 22px;
    }

    .effectif-cours__family {
        margin-top: 14px;
    }

    .effectif-cours__family h4 {
        align-items: baseline;
        gap: 8px;
        margin-bottom: 6px;
        padding-bottom: 5px;
        font-size: 14px;
    }

    .effectif-cours__family h4 small {
        font-size: 12px;
    }

    .effectif-cours__table,
    .effectif-cours__table thead,
    .effectif-cours__table tbody,
    .effectif-cours__table tr,
    .effectif-cours__table th,
    .effectif-cours__table td {
        display: block;
    }

    .effectif-cours__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .effectif-cours__table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        align-items: start;
        margin-bottom: 8px;
        padding: 10px;
        border: 1px solid var(--effectif-cours-line);
        border-radius: 8px;
        background: var(--effectif-cours-bg);
    }

    .effectif-cours__table td {
        display: block;
        padding: 0;
        border-bottom: 0;
        font-size: 14px;
    }

    .effectif-cours__table td:first-child {
        min-width: 0;
    }

    .effectif-cours__course-main {
        grid-column: 1 / 2;
    }

    .effectif-cours__course-status {
        grid-column: 2 / 3;
        justify-self: end;
        padding-top: 1px;
    }

    .effectif-cours__course-detail {
        display: none !important;
    }

    .effectif-cours__table strong {
        line-height: 1.2;
    }

    .effectif-cours__table td:first-child span {
        margin-top: 2px;
    }

    .effectif-cours__table em {
        margin-top: 5px;
        padding-left: 8px;
        border-left: 3px solid var(--effectif-cours-color);
        font-size: 12px;
        line-height: 1.35;
    }

    .effectif-cours__mobile-details {
        display: grid;
        gap: 3px;
        margin-top: 7px;
        color: var(--effectif-cours-muted);
        font-size: 13px;
        line-height: 1.3;
    }

    .effectif-cours__mobile-details span {
        display: block;
        overflow-wrap: anywhere;
    }

    .effectif-cours__status {
        min-height: 25px;
        padding: 4px 8px;
        font-size: 11px;
        line-height: 1;
    }
}
