/* =============================================================
   Blog Agence Ouverture - couche charte Ouverture
   Source de reference : metiers-fomation-ouverture/expert-comptable
============================================================= */

:root {
    --bao-black: #1d1d20;
    --bao-dark: #101012;
    --bao-ink: #303036;
    --bao-muted: #696971;
    --bao-line: #e8e4df;
    --bao-paper: #f7f3ed;
    --bao-paper-2: #fffaf2;
    --bao-white: #ffffff;
    --bao-accent: #e83f8f;
    --bao-accent-2: #26b7c8;
    --bao-sand: #eadfcf;
    --bao-max: 1320px;
    --bao-radius: 30px;
    --bao-shadow: 0 28px 80px rgba(16, 16, 18, .16);
    --bao-font-title: "Archivo Black", Impact, sans-serif;
    --bao-font-body: "Manrope", Arial, sans-serif;
}

body {
    color: var(--bao-black);
    background:
        radial-gradient(circle at 8% 2%, rgba(38, 183, 200, .12), transparent 28rem),
        linear-gradient(180deg, var(--bao-paper-2), var(--bao-white) 34rem);
    font-family: var(--bao-font-body);
}

body:has(.index-page) {
    background: var(--bao-paper-2);
}

.site-header,
.blog-shared-header {
    background: rgba(255, 250, 242, .92);
    border-bottom: 1px solid rgba(29, 29, 32, .08);
    backdrop-filter: blur(18px);
    box-shadow: none;
}

.header-inner,
.blog-shared-header__inner {
    max-width: var(--bao-max);
    min-height: 82px;
    gap: clamp(18px, 2vw, 28px);
}

.main-nav,
.blog-shared-header__nav,
.nav-themes-toggle,
.theme-toggle,
.burger,
.blog-shared-header__burger {
    font-family: var(--bao-font-body);
}

.main-nav a:not(.btn),
.blog-shared-header__nav a {
    position: relative;
    color: var(--bao-ink);
    font-weight: 800;
}

.main-nav a:not(.btn)::after,
.blog-shared-header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bao-accent), var(--bao-accent-2));
    transition: width .2s ease;
}

.main-nav a:not(.btn):hover::after,
.blog-shared-header__nav a:hover::after {
    width: 100%;
}

.btn,
.index-hero-cta,
.index-hero-ghost,
.theme-pill,
.pagination a,
.pagination span {
    border-radius: 999px;
}

.index-page {
    background:
        radial-gradient(circle at 8% 2%, rgba(38, 183, 200, .12), transparent 28rem),
        radial-gradient(circle at 88% 14%, rgba(232, 63, 143, .14), transparent 26rem),
        linear-gradient(180deg, var(--bao-paper-2), var(--bao-white) 34rem);
    overflow: visible;
}

.index-page::before,
.index-page::after,
.matrix-rain {
    display: none !important;
}

.index-hero {
    width: 100%;
    min-height: calc(100svh - 82px);
    margin: 0;
    padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 6vw, 92px);
    overflow: hidden;
    border-radius: 0;
    background:
        radial-gradient(circle at 80% 14%, rgba(232, 63, 143, .16), transparent 26rem),
        radial-gradient(circle at 8% 4%, rgba(38, 183, 200, .14), transparent 28rem),
        linear-gradient(180deg, var(--bao-paper-2), var(--bao-white) 72%);
}

.index-hero::before {
    content: "LE BLOG";
    position: absolute;
    z-index: 0;
    top: clamp(18px, 4.6vw, 60px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    color: rgba(29, 29, 32, .055);
    font-family: var(--bao-font-title);
    font-size: clamp(5rem, 14vw, 14rem);
    line-height: .78;
    letter-spacing: -.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.index-hero::after {
    content: none !important;
    display: none !important;
}

.index-hero-overlay {
    background: linear-gradient(90deg, rgba(255, 250, 242, .94) 0%, rgba(255, 250, 242, .82) 42%, rgba(255, 250, 242, .35) 100%);
}

.hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
    gap: clamp(34px, 4.2vw, 68px);
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.index-eyebrow,
.index-kicker {
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bao-muted);
    font-family: var(--bao-font-body);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .11em;
}

.index-eyebrow::before,
.index-kicker::before {
    width: 36px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bao-accent), var(--bao-accent-2));
    box-shadow: none;
}

.index-hero-content h1,
.index-section-title,
.minisite-card-title {
    color: var(--bao-black);
    font-family: var(--bao-font-title);
    letter-spacing: -.05em;
}

.index-hero h1 {
    font-size: clamp(3.2rem, 8vw, 7.6rem);
    line-height: .82;
    text-transform: uppercase;
}

.index-lead,
.index-section-text,
.minisite-card-desc {
    color: var(--bao-ink);
    font-family: var(--bao-font-body);
}

.index-lead {
    max-width: 58ch;
    font-size: clamp(1.04rem, 1.4vw, 1.24rem);
}

.index-hero-cta,
.index-hero-ghost {
    min-height: 54px;
    padding: 0 28px;
    border: 2px solid var(--bao-black);
    font: 800 .82rem var(--bao-font-body);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.index-hero-cta {
    background: var(--bao-black);
    color: var(--bao-white);
    box-shadow: none;
}

.index-hero-ghost {
    background: rgba(255, 255, 255, .55);
    color: var(--bao-black);
}

.index-hero-cta:hover,
.index-hero-ghost:hover,
.minisite-card:hover,
.une-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(29, 29, 32, .18);
}

.hero-micro span {
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(29, 29, 32, .08);
    color: var(--bao-ink);
    font-family: var(--bao-font-body);
    font-weight: 700;
}

.hero-window,
.index-section-panel,
.minisite-card,
.empty-state {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(29, 29, 32, .08);
    border-radius: var(--bao-radius);
    box-shadow: var(--bao-shadow);
    backdrop-filter: blur(18px);
}

.hero-window {
    padding: clamp(.9rem, 1.4vw, 1.2rem);
}

.hero-window-media,
.minisite-card-thumb {
    border-radius: calc(var(--bao-radius) - 10px);
    border: 1px solid rgba(29, 29, 32, .08);
    background: var(--bao-sand);
}

.hero-window-caption strong {
    color: var(--bao-black);
    font-family: var(--bao-font-title);
    letter-spacing: -.03em;
}

.hero-window-caption p {
    color: var(--bao-muted);
    font-family: var(--bao-font-body);
}

.themes-topbar .container,
.une-section .container,
.minisites-section .container {
    width: min(var(--bao-max), calc(100% - 44px));
}

.themes-topbar-label,
.minisite-card-type,
.minisite-card-date {
    font-family: var(--bao-font-body);
}

.themes-topbar-label,
.minisite-card-type {
    color: var(--bao-accent);
    font-weight: 900;
}

.theme-pill {
    background: var(--bao-white);
    border: 1px solid var(--bao-line);
    color: var(--bao-ink);
    font-family: var(--bao-font-body);
    font-weight: 800;
}

.theme-pill:hover,
.theme-pill.is-active {
    background: var(--bao-black);
    border-color: var(--bao-black);
    color: var(--bao-white);
}

.index-section-title {
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: .86;
    text-transform: uppercase;
}

.minisite-card {
    overflow: hidden;
}

.minisite-card-thumb {
    background: var(--bao-sand);
}

.minisite-card-thumb::after {
    background: linear-gradient(180deg, transparent, rgba(29, 29, 32, .24));
}

.minisite-card-title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: .98;
    text-transform: uppercase;
}

.minisite-card-date,
.minisite-card-mots span {
    color: var(--bao-muted);
}

.minisite-card-mots span {
    background: rgba(247, 243, 237, .75);
    border: 1px solid var(--bao-line);
    font-family: var(--bao-font-body);
    font-weight: 800;
}

.pagination a,
.pagination span,
.une-nav {
    background: var(--bao-white);
    border-color: var(--bao-line);
    color: var(--bao-ink);
    font-family: var(--bao-font-body);
    font-weight: 800;
}

.pagination .current,
.une-dot.is-active {
    background: var(--bao-black);
    border-color: var(--bao-black);
    color: var(--bao-white);
}

@media (max-width: 980px) {
    .index-hero {
        min-height: auto;
        width: min(var(--bao-max), calc(100% - 28px));
    }

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

    .index-hero h1 {
        font-size: clamp(2.8rem, 14vw, 5.2rem);
    }
}

@media (max-width: 720px) {
    .index-hero,
    .themes-topbar .container,
    .une-section .container,
    .minisites-section .container {
        width: min(var(--bao-max), calc(100% - 24px));
    }

    .index-section-title {
        font-size: clamp(2.2rem, 13vw, 4rem);
    }
}

/* --- Hero index: reprise forte charte landing Ouverture ------- */
.index-hero {
    display: block;
    background-image:
        radial-gradient(circle at 80% 14%, rgba(232, 63, 143, .16), transparent 26rem),
        radial-gradient(circle at 8% 4%, rgba(38, 183, 200, .14), transparent 28rem),
        linear-gradient(180deg, var(--bao-paper-2), var(--bao-white) 72%) !important;
}

.index-hero-overlay {
    display: none;
}

.index-hero .container {
    width: min(var(--bao-max), calc(100% - 44px));
    position: relative;
    z-index: 2;
}

.index-hero-content {
    max-width: 780px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.index-hero-content h1 {
    max-width: 760px;
    margin-bottom: clamp(1rem, 1.8vw, 1.35rem);
    font-size: clamp(3rem, 4.4vw, 5.15rem);
    line-height: .9;
    letter-spacing: -.045em;
    overflow-wrap: normal;
    text-wrap: balance;
}

.index-lead {
    max-width: 50ch;
    color: var(--bao-ink);
    font-size: clamp(1.08rem, 1.35vw, 1.28rem);
    line-height: 1.58;
}

.hero-actions {
    margin-top: 1.35rem;
}

.hero-micro {
    margin-top: 1.15rem;
}

.hero-window {
    background: var(--bao-white);
    width: clamp(620px, 43vw, 800px) !important;
    margin-left: auto;
    padding: clamp(22px, 2.4vw, 34px);
    border-radius: 38px;
    transform: translateY(-8px);
}

.hero-window-media {
    aspect-ratio: 16 / 9 !important;
    border-radius: 28px;
}

.hero-window-media img {
    filter: saturate(1.03) contrast(1.02);
}

@media (max-width: 980px) {
    .index-hero {
        min-height: auto;
        padding-block: 28px 42px;
    }

    .index-hero-content {
        max-width: none;
    }

    .index-hero-content h1 {
        max-width: 760px;
        font-size: clamp(2.75rem, 10vw, 4.7rem);
        line-height: .86;
    }

    .hero-window {
        margin-left: 0;
        width: min(100%, 680px);
        width: min(100%, 680px) !important;
        transform: none;
    }
}

@media (max-width: 560px) {
    .index-hero-content {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .index-hero-content h1 {
        max-width: 100%;
        font-size: clamp(2.25rem, 11vw, 3.7rem);
        line-height: .88;
    }

    .index-hero-cta,
    .index-hero-ghost {
        width: 100%;
    }
}
