:root {
    --wl-yellow: #F3E32F;
    --wl-black: #111111;
    --wl-dark: #1A1A1A;
    --wl-text: #222222;
    --wl-muted: #666666;
    --wl-border: #EAEAEA;
    --wl-soft: #F8F8F3;
    --wl-white: #FFFFFF;
    --wl-radius: 24px;
    --wl-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
}

.weblevel-single,
.weblevel-single *,
.wl-site-header,
.wl-site-header * {
    box-sizing: border-box;
}

body.weblevel-single-post-template {
    margin: 0;
    background: var(--wl-white);
}

.wl-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* Header article */
.wl-site-header {
    position: relative;
    z-index: 20;
    background: var(--wl-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wl-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
}

.wl-site-branding {
    flex: 0 0 auto;
}

.wl-site-branding .custom-logo-link,
.wl-site-logo-text {
    display: inline-flex;
    align-items: center;
    color: var(--wl-white);
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.wl-site-branding .custom-logo {
    display: block;
    max-width: 170px;
    max-height: 52px;
    width: auto;
    height: auto;
}

.wl-site-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.wl-site-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wl-site-nav__list a {
    display: inline-flex;
    color: var(--wl-white);
    font-size: 0.96rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.wl-site-nav__list a:hover,
.wl-site-nav__list a:focus-visible {
    color: var(--wl-white);
    text-decoration: underline;
    text-decoration-color: var(--wl-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.wl-header-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--wl-black);
    color: var(--wl-white) !important;
    border: 1px solid var(--wl-yellow);
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wl-header-cta:hover,
.wl-header-cta:focus-visible {
    background: var(--wl-dark);
    color: var(--wl-white) !important;
    border-color: var(--wl-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    text-decoration: none;
}

.weblevel-single {
    background: var(--wl-white);
    color: var(--wl-text);
    font-size: 18px;
    line-height: 1.75;
}

.wl-article-hero {
    padding: clamp(54px, 8vw, 110px) 0 clamp(34px, 6vw, 74px);
    background:
        radial-gradient(circle at top right, rgba(243, 227, 47, 0.22), transparent 32%),
        linear-gradient(135deg, #111111 0%, #242424 100%);
    color: var(--wl-white);
}

.wl-article-hero__inner {
    max-width: 940px;
}

.wl-article-kicker {
    margin-bottom: 18px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wl-article-kicker a {
    display: inline-flex;
    color: var(--wl-black);
    background: var(--wl-yellow);
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
}

.wl-article-kicker a:hover,
.wl-article-kicker a:focus-visible {
    color: var(--wl-black);
    background: var(--wl-white);
}

.wl-article-title {
    margin: 0;
    max-width: 920px;
    color: var(--wl-white) !important;
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.wl-article-excerpt {
    max-width: 760px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.wl-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.wl-article-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 18px;
    color: var(--wl-yellow);
}

.wl-featured-image-wrap {
    margin-top: -34px;
}

.wl-featured-image {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--wl-radius);
    box-shadow: var(--wl-shadow);
}

.wl-article-layout {
    padding: clamp(48px, 7vw, 84px) 0;
}

.wl-article-layout--no-sidebar {
    display: block;
}

.wl-article-main {
    max-width: 860px;
    min-width: 0;
    margin-inline: auto;
}

/* CTA placé en début d'article */
.wl-start-cta {
    margin: 0 0 clamp(38px, 5vw, 58px);
    padding: clamp(26px, 5vw, 42px);
    border-radius: var(--wl-radius);
    background: var(--wl-black);
    color: var(--wl-white);
    box-shadow: var(--wl-shadow);
}

.wl-start-cta h2 {
    margin: 0 0 12px;
    color: var(--wl-white) !important;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.wl-start-cta p:not(.wl-section-eyebrow) {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
}

.wl-start-cta a:hover,
.wl-start-cta a:focus-visible,
.wl-author-box a:hover,
.wl-author-box a:focus-visible {
    color: var(--wl-white) !important;
}

.wl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wl-button:hover,
.wl-button:focus-visible {
    transform: translateY(-2px);
    text-decoration: none;
}

.wl-button--dark {
    background: var(--wl-black);
    color: var(--wl-white) !important;
    border: 1px solid var(--wl-black);
}

.wl-button--dark:hover,
.wl-button--dark:focus-visible {
    color: var(--wl-white) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.wl-button--yellow {
    background: var(--wl-yellow);
    color: var(--wl-black);
}

.wl-button--yellow:hover,
.wl-button--yellow:focus-visible {
    color: var(--wl-black) !important;
    background: var(--wl-white);
    box-shadow: 0 12px 28px rgba(243, 227, 47, 0.28);
}

.wl-content {
    max-width: 860px;
}

.wl-content > *:first-child {
    margin-top: 0;
}

.wl-content p,
.wl-content li {
    color: var(--wl-text);
}

.wl-content a {
    color: var(--wl-black);
    font-weight: 800;
    text-decoration-color: var(--wl-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.wl-content a:hover,
.wl-content a:focus-visible {
    color: var(--wl-black);
    background: var(--wl-yellow);
    text-decoration: none;
}

.wl-content h2,
.wl-content h3,
.wl-content h4 {
    color: var(--wl-black);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.wl-content h2 {
    margin: 2.1em 0 0.25em;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.wl-content h3 {
    margin: 1.8em 0 0.55em;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.wl-content h4 {
    margin: 1.5em 0 0.45em;
    font-size: 1.25rem;
}

.wl-content ul,
.wl-content ol {
    padding-left: 1.25em;
}

.wl-content li + li {
    margin-top: 0.45em;
}

.wl-content blockquote {
    margin: 34px 0;
    padding: 24px 28px;
    border-left: 6px solid var(--wl-yellow);
    border-radius: 18px;
    background: var(--wl-soft);
    color: var(--wl-black);
    font-size: 1.16rem;
    font-weight: 700;
}

.wl-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.wl-content figure {
    margin: 34px 0;
}

.wl-content figcaption {
    margin-top: 10px;
    color: var(--wl-muted);
    font-size: 0.92rem;
    text-align: center;
}

.wl-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 34px 0;
    overflow: hidden;
    border-radius: 18px;
}

.wl-content th,
.wl-content td {
    padding: 14px 16px;
    border: 1px solid var(--wl-border);
    text-align: left;
    vertical-align: top;
}

.wl-content th {
    background: var(--wl-black);
    color: var(--wl-white);
}

.wl-content code {
    padding: 0.16em 0.38em;
    border-radius: 6px;
    background: #f1f1f1;
    font-size: 0.92em;
}

.wl-content pre {
    overflow-x: auto;
    padding: 20px;
    border-radius: 18px;
    background: #111111;
    color: #ffffff;
}

.wl-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

/* Blocs Gutenberg réutilisables conseillés */
.wl-note,
.wl-checklist,
.wl-warning,
.wl-example {
    margin: 34px 0;
    padding: 24px 26px;
    border-radius: 22px;
}

.wl-note {
    background: var(--wl-soft);
    border: 1px solid var(--wl-border);
}

.wl-checklist {
    background: #f8f7dc;
    border: 1px solid rgba(243, 227, 47, 0.8);
}

.wl-warning {
    background: #fff4f0;
    border: 1px solid #ffd5ca;
}

.wl-example {
    background: #f5f5f5;
    border-left: 6px solid var(--wl-black);
}

.wl-note > *:first-child,
.wl-checklist > *:first-child,
.wl-warning > *:first-child,
.wl-example > *:first-child {
    margin-top: 0;
}

.wl-note > *:last-child,
.wl-checklist > *:last-child,
.wl-warning > *:last-child,
.wl-example > *:last-child {
    margin-bottom: 0;
}

/* CTA Audit gratuit en fond jaune */
.wl-mid-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    max-width: 860px;
    margin: 56px 0 0;
    padding: clamp(26px, 5vw, 42px);
    border-radius: var(--wl-radius);
    background: var(--wl-yellow);
    color: var(--wl-black);
    box-shadow: var(--wl-shadow);
}

.wl-mid-cta h2 {
    margin: 0 0 12px;
    color: var(--wl-black) !important;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.wl-mid-cta p {
    margin: 0;
    color: var(--wl-black);
}

.wl-mid-cta .wl-section-eyebrow {
    color: var(--wl-black);
}

.wl-mid-cta .wl-button {
    margin-top: 6px;
}

.wl-section-eyebrow {
    margin: 0 0 10px;
    color: var(--wl-yellow);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wl-article-footer {
    max-width: 860px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--wl-border);
}

.wl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.95rem;
}

.wl-tags span {
    color: var(--wl-muted);
    font-weight: 800;
}

.wl-tags a {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--wl-soft);
    color: var(--wl-black);
    font-weight: 800;
    text-decoration: none;
}

.wl-tags a:hover,
.wl-tags a:focus-visible {
    background: var(--wl-yellow);
    color: var(--wl-black);
}

.wl-related-section {
    padding: clamp(54px, 7vw, 86px) 0;
    background: var(--wl-soft);
}

.wl-section-heading {
    max-width: 740px;
    margin-bottom: 28px;
}

.wl-section-heading h2 {
    margin: 0;
    color: var(--wl-black);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.wl-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.wl-related-card {
    overflow: hidden;
    border: 1px solid var(--wl-border);
    border-radius: 24px;
    background: var(--wl-white);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.05);
}

.wl-related-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--wl-black);
    text-decoration: none;
}

.wl-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.wl-related-card:hover .wl-related-card__image img {
    transform: scale(1.04);
}

.wl-related-card__placeholder {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--wl-yellow);
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 2rem;
}

.wl-related-card__placeholder:hover,
.wl-related-card__placeholder:focus-visible {
    color: var(--wl-white);
}

.wl-related-card__content {
    padding: 22px;
}

.wl-related-card__date {
    margin: 0 0 8px;
    color: var(--wl-muted);
    font-size: 0.9rem;
}

.wl-related-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.wl-related-card h3 a {
    color: var(--wl-black);
    text-decoration: none;
}

.wl-related-card h3 a:hover,
.wl-related-card h3 a:focus-visible {
    color: var(--wl-black);
    background: var(--wl-yellow);
}

.wl-related-card p:last-child {
    margin-bottom: 0;
    color: var(--wl-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.wl-author-box {
    padding: clamp(44px, 6vw, 76px) 0;
    background: var(--wl-black);
    color: var(--wl-white);
}

.wl-author-box__inner {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    max-width: 900px;
}

.wl-author-box__avatar img {
    display: block;
    border-radius: 999px;
}

.wl-author-box h2 {
    margin: 0 0 10px;
    color: var(--wl-white) !important;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.wl-author-box p:not(.wl-section-eyebrow) {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.76);
}

.wl-author-box a {
    color: var(--wl-yellow);
    font-weight: 900;
}

.wl-page-links {
    margin-top: 30px;
    font-weight: 800;
}


/* Correctifs v1.1.1 : header noir et CTA noirs avec texte blanc par défaut */
.wl-site-header {
    background: var(--wl-black);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.wl-site-logo-text,
.wl-site-logo-text:visited,
.wl-site-branding .custom-logo-link,
.wl-site-branding .custom-logo-link:visited,
.wl-site-nav__list a,
.wl-site-nav__list a:visited {
    color: var(--wl-white) !important;
}

.wl-site-nav__list a:hover,
.wl-site-nav__list a:focus-visible {
    color: var(--wl-white) !important;
    text-decoration-color: var(--wl-yellow);
}

.wl-header-cta,
.wl-header-cta:visited,
.wl-button--dark,
.wl-button--dark:visited {
    background: var(--wl-black);
    color: var(--wl-white) !important;
}

.wl-header-cta:hover,
.wl-header-cta:focus-visible,
.wl-button--dark:hover,
.wl-button--dark:focus-visible {
    color: var(--wl-white) !important;
}

.wl-button--yellow,
.wl-button--yellow:visited {
    color: var(--wl-black) !important;
}

@media (max-width: 1024px) {
    .wl-site-header__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 18px 0;
    }

    .wl-site-branding,
    .wl-site-nav,
    .wl-header-cta {
        flex-basis: 100%;
        justify-content: center;
        text-align: center;
    }

    .wl-header-cta {
        flex-basis: auto;
    }

    .wl-content,
    .wl-mid-cta,
    .wl-article-footer {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .wl-container {
        width: min(100% - 28px, 1180px);
    }

    .wl-site-header__inner {
        min-height: auto;
    }

    .wl-site-nav__list {
        gap: 8px 12px;
    }

    .wl-site-nav__list a {
        font-size: 0.9rem;
    }

    .wl-article-meta span:not(:last-child)::after {
        display: none;
    }

    .wl-featured-image {
        border-radius: 18px;
    }

    .wl-start-cta,
    .wl-mid-cta {
        border-radius: 20px;
    }

    .wl-related-grid {
        grid-template-columns: 1fr;
    }

    .wl-author-box__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wl-author-box__avatar img {
        margin-inline: auto;
    }
}

.wl-site-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.wl-site-logo-img {
    display: block;
    max-height: 96px !important;
    width: auto;
}

.wl-author-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
