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

html,
body {
    overflow-x: hidden;
}

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

:root {
    --color-brand: #1B1B1B;
    --color-cta: #C0392B;
    --bg-page: #FAF8F4;
    --neutral-1: #6B6560;
    --neutral-2: #E8E4DE;
    --neutral-3: #FFFFFF;
    --text-muted: #6B6560;
    --border: #E8E4DE;
}

body {
    background-color: var(--bg-page);
    color: var(--color-brand);
    line-height: 1.65;
    font-size: clamp(1rem, 1.1vw + 0.7rem, 1.125rem);
}

.cat-hero {
    position: relative;
    min-height: 420px;
    background-image: url('/images/hero-marches-financiers.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1B1B1B;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(2rem, 5vh, 3.5rem);
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
}

.cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cat-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.cat-hero-content h1 {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
    font-size: clamp(2.4rem, 4vw + 1rem, 4rem);
    font-weight: 700;
    line-height: 1.6;
    color: #FAF8F4;
    margin: 0 0 1rem 0;
}

.cat-hero-content h1 .title-accent {
    display: block;
    font-style: italic;
    color: #C0392B;
}

.cat-hero-content p {
    font-family: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 1.1vw + 0.7rem, 1.125rem);
    line-height: 1.65;
    color: #E8E4DE;
    max-width: 580px;
    margin: 0 0 1.8rem 0;
}

.cat-hero-content .btn-cta {
    display: inline-block;
    background: #C0392B;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.8rem;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.15s linear;
}

.cat-hero-content .btn-cta:hover {
    background: #a93226;
}

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

.cat-intro-strip {
    background-color: var(--neutral-3);
    border-bottom: 1px solid var(--border);
    padding: 3rem clamp(1.5rem, 5vw, 4rem);
}

.cat-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.cat-intro-block p {
    font-family: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 1.1vw + 0.7rem, 1.125rem);
    line-height: 1.65;
    color: var(--color-brand);
    font-weight: 400;
    margin: 0;
}

.cat-topics-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.cat-topics-list li {
    font-family: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 1.1vw + 0.7rem, 1.125rem);
    line-height: 1.65;
    color: var(--color-brand);
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.cat-section-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.label-rule {
    display: block;
    width: 2rem;
    height: 0;
    border-top: 2px solid #C0392B;
    flex-shrink: 0;
}

.label-text {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 700;
    font-variant: small-caps;
    letter-spacing: 0.12em;
    color: var(--color-brand);
    text-transform: lowercase;
}

.cat-articles-section {
    background-color: var(--bg-page);
    padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
}

.cat-articles-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.cat-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cat-count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--neutral-1);
}

.cat-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.cat-card {
    background: var(--neutral-3);
    border: 1px solid var(--border);
    padding: 0;
    box-shadow: 2px 3px 0px 0px #1B1B1B;
    transition: box-shadow 0.15s linear;
    overflow: hidden;
    min-width: 0;
}

.cat-card:hover {
    box-shadow: 4px 5px 0px 0px #C0392B;
}

.cat-card-img-wrap {
    overflow: hidden;
    line-height: 1;
}

.cat-card-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #1B1B1B;
}

.img-tilt-right img {
    transform: rotate(1.5deg);
    transform-origin: center;
}

.img-tilt-left img {
    transform: rotate(-1.2deg);
    transform-origin: center;
}

.cat-card-body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.cat-card-date {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--neutral-1);
    margin-bottom: 0.6rem;
}

.cat-card-title {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
    font-size: clamp(1.3rem, 1.5vw + 0.6rem, 1.8rem);
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 0.8rem 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-card-title a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.15s linear;
}

.cat-card-title a:hover {
    color: #C0392B;
}

.cat-card-desc {
    font-family: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--neutral-1);
    font-weight: 400;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--neutral-1);
}

.cat-empty svg {
    margin: 0 auto 1.2rem;
    display: block;
}

.cat-empty p {
    font-family: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--neutral-1);
    font-weight: 400;
}

.cat-data-section {
    background-color: var(--neutral-3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
}

.cat-data-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cat-data-intro {
    font-family: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 1.1vw + 0.7rem, 1.125rem);
    line-height: 1.65;
    color: var(--color-brand);
    font-weight: 400;
    max-width: 760px;
    margin: 0 0 1.8rem 0;
}

.cat-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.cat-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 400;
}

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

.cat-data-table th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FAF8F4;
    border-bottom: 2px solid #C0392B;
}

.cat-data-table td {
    padding: 0.85rem 1rem;
    color: var(--color-brand);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.65;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-data-table tbody tr:hover td {
    background-color: #FAF8F4;
}

.cat-data-note {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--neutral-1);
    font-weight: 400;
    margin: 0.8rem 0 0 0;
}

.cat-cta-section {
    background-color: var(--color-brand);
    padding: 4rem clamp(1.5rem, 5vw, 4rem);
}

.cat-cta-section h2,
.cat-cta-section h2 .title-accent,
.cat-cta-section p {
    color: #FAF8F4;
}

.cat-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cat-cta-text {
    flex: 1;
    min-width: 260px;
}

.cat-cta-text h2 {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 2.5vw + 0.8rem, 2.8rem);
    font-weight: 700;
    line-height: 1.6;
    color: #FAF8F4;
    margin: 0 0 1rem 0;
}

.cat-cta-text h2 .title-accent {
    display: block;
    font-style: italic;
    color: #C0392B;
}

.cat-cta-text p {
    font-family: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    font-size: clamp(1rem, 1.1vw + 0.7rem, 1.125rem);
    line-height: 1.65;
    color: #E8E4DE;
    font-weight: 400;
    margin: 0;
    max-width: 520px;
}

.btn-cta-red {
    display: inline-block;
    background: #C0392B;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s linear;
    flex-shrink: 0;
}

.btn-cta-red:hover {
    background: #a93226;
}

@media (max-width: 768px) {
    .cat-hero {
        min-height: 320px;
        padding-bottom: 2rem;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .cat-hero-content h1 {
        font-size: 2rem;
    }

    .cat-intro-strip {
        padding: 2rem 1.2rem;
    }

    .cat-intro-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cat-articles-section {
        padding: 2.5rem 1.2rem;
    }

    .cat-masonry-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .cat-articles-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cat-data-section {
        padding: 2.5rem 1.2rem;
    }

    .cat-data-table th,
    .cat-data-table td {
        padding: 0.7rem 0.6rem;
        font-size: 0.85rem;
    }

    .cat-cta-section {
        padding: 2.5rem 1.2rem;
    }

    .cat-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-cta-red {
        width: 100%;
        text-align: center;
    }

    .img-tilt-right img,
    .img-tilt-left img {
        transform: none;
    }
}

@media (max-width: 480px) {
    .cat-hero-content h1 {
        font-size: 1.7rem;
    }

    .cat-card-title {
        font-size: 1.2rem;
    }

    .cat-data-table {
        font-size: 0.8rem;
    }

    .cat-data-table th,
    .cat-data-table td {
        padding: 0.6rem 0.5rem;
    }
}.cat-hero { align-items: center; justify-content: center; padding-top: clamp(2rem, 5vh, 3.5rem); }
.cat-hero-content { text-align: center; margin-left: auto; margin-right: auto; }
