:root {
    --color-brand: #92400e;
    --color-cta: #16a34a;
    --font-main: Bahnschrift, 'Arial Black', 'Helvetica Neue', sans-serif;
    --text-muted: #666;
    --border: #ddd;
    --text-dark: #222;
    --bg-light: #fdf8f3;
    --bg-card: #fff;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-main {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 60px;
}

.cat-hero {
    background-color: var(--color-brand);
    padding: 56px 40px;
    margin-bottom: 48px;
}

.cat-hero__inner {
    display: flex;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.cat-hero__visual {
    flex: 0 0 420px;
    max-width: 420px;
}

.cat-hero__visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.cat-hero__content {
    flex: 1;
    min-width: 0;
}

.cat-hero__title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.6;
}

.cat-hero__subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #f5e6d8;
    margin: 0 0 20px;
    line-height: 1.6;
}

.cat-hero__count {
    font-size: 0.95rem;
    font-weight: 400;
    color: #e8cdb5;
    margin: 0 0 28px;
    line-height: 1.6;
}

.cat-hero__cta {
    display: inline-block;
    background-color: var(--color-cta);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cat-hero__cta:hover {
    background-color: #15803d;
}

.cat-articles {
    margin-bottom: 56px;
}

.cat-articles__container {
    max-width: 100%;
}

.cat-articles__heading {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 28px;
    line-height: 1.6;
    border-left: 4px solid var(--color-brand);
    padding-left: 16px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--color-brand);
}

.cat-card__img-wrap {
    overflow: hidden;
    height: 200px;
    background-color: var(--bg-light);
}

.cat-card__img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.cat-card:hover .cat-card__img-wrap img {
    opacity: 0.9;
}

.cat-card__body {
    padding: 20px;
}

.cat-card__date {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0 0 8px;
    line-height: 1.6;
}

.cat-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.6;
}

.cat-card__title a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.2s;
}

.cat-card__title a:hover {
    color: #78350f;
}

.cat-card__desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.cat-empty {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
    background-color: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.cat-empty svg {
    color: var(--color-brand);
    margin-bottom: 16px;
}

.cat-empty p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.cat-tabs-section {
    background-color: var(--bg-light);
    padding: 48px 40px;
    margin-bottom: 56px;
}

.cat-tabs-section__container {
    max-width: 1100px;
    margin: 0 auto;
}

.cat-tabs-section__heading {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 28px;
    line-height: 1.6;
}

.cat-tab-input {
    display: none;
}

.cat-tab-labels {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cat-tab-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 28px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.6;
}

.cat-tab-label:hover {
    color: var(--color-brand);
}

#tab-decouverte:checked ~ .cat-tab-labels label[for="tab-decouverte"],
#tab-formation:checked ~ .cat-tab-labels label[for="tab-formation"],
#tab-evolution:checked ~ .cat-tab-labels label[for="tab-evolution"] {
    color: var(--color-brand);
    border-bottom-color: var(--color-brand);
}

.cat-tab-panels {
    position: relative;
}

.cat-tab-panel {
    display: none;
}

#tab-decouverte:checked ~ .cat-tab-panels #panel-decouverte,
#tab-formation:checked ~ .cat-tab-panels #panel-formation,
#tab-evolution:checked ~ .cat-tab-panels #panel-evolution {
    display: block;
}

.cat-tab-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.cat-tab-item {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cat-tab-item:hover {
    border-color: var(--color-brand);
    box-shadow: 0 2px 8px rgba(146,64,14,0.08);
}

.cat-tab-item svg {
    color: var(--color-brand);
    margin-bottom: 12px;
    display: block;
}

.cat-tab-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.6;
}

.cat-tab-item p {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.cat-calculator {
    margin-bottom: 56px;
    border: 2px solid var(--color-brand);
    border-radius: 8px;
    overflow: hidden;
}

.cat-calculator__container {
    max-width: 100%;
}

.cat-calculator__header {
    background-color: var(--color-brand);
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cat-calculator__header svg {
    color: #fff;
    flex-shrink: 0;
    margin-top: 4px;
}

.cat-calculator__header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.6;
}

.cat-calculator__header p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #f5e6d8;
    margin: 0;
    line-height: 1.6;
}

.cat-calculator__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.cat-calculator__form {
    padding: 32px;
    background-color: var(--bg-light);
    border-right: 1px solid var(--border);
}

.cat-calc-field {
    margin-bottom: 20px;
}

.cat-calc-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.6;
}

.cat-calc-field select,
.cat-calc-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--text-dark);
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    line-height: 1.6;
    transition: border-color 0.2s;
}

.cat-calc-field select:focus,
.cat-calc-field input[type="number"]:focus {
    outline: none;
    border-color: var(--color-brand);
}

.cat-calculator__btn {
    display: block;
    width: 100%;
    background-color: var(--color-cta);
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.cat-calculator__btn:hover {
    background-color: #15803d;
}

.cat-calculator__result {
    padding: 32px;
    background-color: #fff;
}

.cat-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.cat-result-row:last-of-type {
    border-bottom: none;
}

.cat-result-row span {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

.cat-result-row strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-brand);
    white-space: nowrap;
    line-height: 1.6;
}

.cat-result-row--highlight {
    background-color: var(--bg-light);
    padding: 14px 12px;
    border-radius: 6px;
    margin-top: 8px;
    border: none;
}

.cat-result-row--highlight strong {
    color: var(--color-cta);
    font-size: 1.3rem;
}

.cat-calculator__disclaimer {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 20px 0 0;
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.cat-data-section {
    background-color: var(--bg-light);
    padding: 48px 40px;
    margin-bottom: 56px;
}

.cat-data-section__container {
    max-width: 1100px;
    margin: 0 auto;
}

.cat-data-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 12px;
    line-height: 1.6;
}

.cat-data-intro {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.cat-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
}

.cat-table thead {
    background-color: var(--color-brand);
}

.cat-table thead th {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 16px;
    text-align: left;
    line-height: 1.6;
    white-space: nowrap;
}

.cat-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.cat-table tbody tr:last-child {
    border-bottom: none;
}

.cat-table tbody tr:hover {
    background-color: #fdf8f3;
}

.cat-table tbody td {
    padding: 13px 16px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

.cat-table tbody td:first-child {
    font-weight: 700;
    color: var(--color-brand);
}

.cat-table-note {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 16px 0 0;
    line-height: 1.6;
    font-style: italic;
}

.cat-slider-section {
    margin-bottom: 32px;
}

.cat-slider-section__container {
    max-width: 1100px;
    margin: 0 auto;
}

.cat-slider-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 28px;
    line-height: 1.6;
    border-left: 4px solid var(--color-brand);
    padding-left: 16px;
}

.cat-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-light);
}

.cat-slider__track {
    display: flex;
    transition: transform 0.3s;
}

.cat-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cat-slide__icon {
    color: var(--color-brand);
    margin-bottom: 16px;
}

.cat-slide h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 12px;
    line-height: 1.6;
}

.cat-slide p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    max-width: 640px;
}

.cat-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background-color: #fff;
}

.cat-slider__btn {
    background-color: var(--color-brand);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.cat-slider__btn:hover {
    background-color: #78350f;
}

.cat-slider__dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cat-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.cat-slider__dot.active {
    background-color: var(--color-brand);
}

@media (max-width: 960px) {
    .cat-hero__inner {
        flex-direction: column;
        gap: 28px;
    }

    .cat-hero__visual {
        flex: unset;
        max-width: 100%;
        width: 100%;
    }

    .cat-calculator__body {
        grid-template-columns: 1fr;
    }

    .cat-calculator__form {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .cat-main {
        width: 100%;
        padding: 0 0 40px;
    }

    .cat-hero {
        padding: 32px 20px;
        margin-bottom: 32px;
    }

    .cat-hero__title {
        font-size: 1.8rem;
    }

    .cat-hero__subtitle {
        font-size: 1rem;
    }

    .cat-articles {
        padding: 0 16px;
        margin-bottom: 36px;
    }

    .cat-articles__heading {
        font-size: 1.4rem;
    }

    .cat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cat-tabs-section {
        padding: 32px 16px;
        margin-bottom: 36px;
    }

    .cat-tabs-section__heading {
        font-size: 1.4rem;
    }

    .cat-tab-label {
        padding: 10px 14px;
        font-size: 0.88rem;
    }

    .cat-tab-panel__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cat-calculator {
        margin: 0 16px 36px;
    }

    .cat-calculator__header {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }

    .cat-calculator__header h2 {
        font-size: 1.1rem;
    }

    .cat-calculator__form,
    .cat-calculator__result {
        padding: 20px;
    }

    .cat-data-section {
        padding: 32px 16px;
        margin-bottom: 36px;
    }

    .cat-data-section h2 {
        font-size: 1.4rem;
    }

    .cat-table {
        font-size: 0.85rem;
    }

    .cat-table thead th,
    .cat-table tbody td {
        padding: 10px 12px;
    }

    .cat-slider-section {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .cat-slider-section h2 {
        font-size: 1.4rem;
    }

    .cat-slide {
        padding: 28px 24px;
    }

    .cat-slide h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cat-hero__title {
        font-size: 1.5rem;
    }

    .cat-hero__cta {
        width: 100%;
        text-align: center;
    }

    .cat-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cat-slider__btn {
        width: 30px;
        height: 30px;
    }

    .cat-slide {
        padding: 20px 16px;
    }
}