/*
Theme Name: Astra KC Child
Theme URI: https://kidscompany.fr
Description: Kids Company Mag child theme (magazine activites et loisirs enfants, turquoise/corail/soleil)
Author: Geoffrey
Version: 1.0.0
Template: astra
Text Domain: astra-kc-child
*/

/* ─────────────────────────────────────────────────────────────
   Design tokens
   ───────────────────────────────────────────────────────────── */
:root {
    --kc-primary: #0F7C8A;
    --kc-primary-dark: #0A5560;
    --kc-secondary: #3E5C76;
    --kc-accent: #F2B134;
    --kc-text: #1F2A33;
    --kc-text-soft: #66757F;
    --kc-bg: #FFFBF2;
    --kc-bg-soft: #FFF1D6;
    --kc-border: #F0E1BF;
    --kc-card-shadow: 0 4px 16px rgba(28, 25, 23, 0.07);
    --kc-card-shadow-hover: 0 12px 32px rgba(28, 25, 23, 0.15);
    --kc-radius: 16px;
    --kc-radius-small: 8px;
    --kc-font-heading: 'Fredoka', 'Trebuchet MS', sans-serif;
    --kc-font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   FIX ASTRA WRAPPER : casser TOUT ce qui pourrait contraindre
   notre layout full-width sur home + archive.
   Astra met du box-shadow + padding via ast-separate-container,
   on neutralise tout ça.
   ───────────────────────────────────────────────────────────── */
body.home,
body.archive {
    background: var(--kc-bg) !important;
}

.home #content,
.archive #content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
}

.home #content > .ast-container,
.archive #content > .ast-container,
.home .site-content > .ast-container,
.archive .site-content > .ast-container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block;
}

.home #primary,
.archive #primary,
.home .site-main,
.archive .site-main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Astra ajoute parfois un wrapper supplémentaire */
.home .ast-row,
.archive .ast-row,
.home [class^="ast-grid-common"],
.archive [class^="ast-grid-common"] {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Sur les pages internes, garder la largeur Astra normale */
.single .ast-container,
.page .ast-container {
    background: var(--kc-bg);
}

/* ─────────────────────────────────────────────────────────────
   Base
   ───────────────────────────────────────────────────────────── */
body {
    background: var(--kc-bg) !important;
    color: var(--kc-text) !important;
    font-family: var(--kc-font-body) !important;
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title {
    font-family: var(--kc-font-heading) !important;
    color: var(--kc-text) !important;
    letter-spacing: -0.01em;
    font-weight: 600;
}

a {
    color: var(--kc-primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--kc-primary-dark);
}

/* ─────────────────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────────────────── */
.site-header {
    background: var(--kc-bg) !important;
    border-bottom: 1px solid var(--kc-border);
}

.main-header-bar {
    padding: 14px 0;
}

.site-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.site-title a,
.site-title a:hover {
    font-family: var(--kc-font-heading) !important;
    color: var(--kc-text) !important;
    font-weight: 700;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Logo monogramme turquoise */
.site-title a::before {
    content: "";
    display: inline-block;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 42 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%230F7C8A'/%3E%3Cstop offset='100%25' stop-color='%23F2B134'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='21' cy='21' r='21' fill='url(%23g)'/%3E%3Cpath d='M21 9 L24.5 17 L33 18 L26.8 24 L28.5 32.5 L21 28.3 L13.5 32.5 L15.2 24 L9 18 L17.5 17 Z' fill='%23FFFBF2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    box-shadow: 0 4px 12px rgba(15, 124, 138, 0.3);
    border-radius: 50%;
    transition: transform 0.3s;
}

.site-title a:hover::before {
    transform: rotate(-8deg) scale(1.05);
}

/* Sur mobile, logo + texte qui restent alignés */
@media (max-width: 480px) {
    .site-title a {
        font-size: 22px;
    }
    .site-title a::before {
        width: 36px;
        height: 36px;
    }
}

.site-description {
    font-family: var(--kc-font-body) !important;
    color: var(--kc-text-soft) !important;
    font-size: 13px;
    font-style: italic;
}

.main-navigation .main-header-menu > li > a {
    font-family: var(--kc-font-body) !important;
    font-weight: 500;
    font-size: 15px;
    color: var(--kc-text) !important;
    padding: 10px 16px;
}

.main-navigation .main-header-menu > li > a:hover,
.main-navigation .main-header-menu > li.current-menu-item > a {
    color: var(--kc-primary) !important;
}

/* ─────────────────────────────────────────────────────────────
   Nav par catégorie : un ton par rubrique (anti-footprint, casse
   le menu texte uniforme) — pastille colorée avant le libellé.
   Ordre du menu "Menu principal" : 1 luminaires, 2 meubles,
   3 déco, 4 enfant, 5 plantes, 6 DIY.
   ───────────────────────────────────────────────────────────── */
:root {
    --kc-tint-amber: #E0A02B;
    --kc-tint-terracotta: #E4694F;
    --kc-tint-sauge: #5BAA8B;
    --kc-tint-rose: #E58CA5;
    --kc-tint-forest: #3F9C6B;
    --kc-tint-slate: #5B7FA6;
}

.main-navigation .main-header-menu > li > a::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    opacity: 0.85;
}

.main-navigation .main-header-menu > li:nth-child(1) > a::before { background: var(--kc-tint-amber); }
.main-navigation .main-header-menu > li:nth-child(2) > a::before { background: var(--kc-tint-terracotta); }
.main-navigation .main-header-menu > li:nth-child(3) > a::before { background: var(--kc-tint-sauge); }
.main-navigation .main-header-menu > li:nth-child(4) > a::before { background: var(--kc-tint-rose); }
.main-navigation .main-header-menu > li:nth-child(5) > a::before { background: var(--kc-tint-forest); }
.main-navigation .main-header-menu > li:nth-child(6) > a::before { background: var(--kc-tint-slate); }

.main-navigation .main-header-menu > li:nth-child(1) > a:hover { color: var(--kc-tint-amber) !important; }
.main-navigation .main-header-menu > li:nth-child(2) > a:hover { color: var(--kc-tint-terracotta) !important; }
.main-navigation .main-header-menu > li:nth-child(3) > a:hover { color: var(--kc-tint-sauge) !important; }
.main-navigation .main-header-menu > li:nth-child(4) > a:hover { color: var(--kc-tint-rose) !important; }
.main-navigation .main-header-menu > li:nth-child(5) > a:hover { color: var(--kc-tint-forest) !important; }
.main-navigation .main-header-menu > li:nth-child(6) > a:hover { color: var(--kc-tint-slate) !important; }

/* CTA Contact dans le menu */
.main-navigation .main-header-menu > li.kc-menu-cta {
    margin-left: 16px;
}

.main-navigation .main-header-menu > li.kc-menu-cta > a {
    background: var(--kc-primary) !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 12px rgba(15, 124, 138, 0.25) !important;
}

.main-navigation .main-header-menu > li.kc-menu-cta > a:hover {
    background: var(--kc-primary-dark) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(15, 124, 138, 0.4) !important;
}

/* ─────────────────────────────────────────────────────────────
   Hero homepage avec image de fond
   ───────────────────────────────────────────────────────────── */
.kc-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 140px 20px 160px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.kc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(28, 25, 23, 0.60) 0%,
        rgba(15, 124, 138, 0.55) 100%
    );
}

.kc-hero > * {
    position: relative;
    z-index: 1;
}

.kc-hero .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.kc-hero h1 {
    color: #fff !important;
    font-size: clamp(36px, 5.2vw, 60px);
    line-height: 1.1;
    margin: 0 auto 20px;
    max-width: 900px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.kc-hero h1 em {
    color: var(--kc-accent);
    font-style: italic;
}

.kc-hero p {
    font-size: clamp(16px, 1.4vw, 19px);
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   Section commune
   ───────────────────────────────────────────────────────────── */
.kc-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.kc-section-alt {
    background: var(--kc-bg-soft);
    max-width: none;
}

.kc-section-alt .kc-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.kc-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.kc-section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    margin: 0 0 12px;
}

.kc-section-header p {
    color: var(--kc-text-soft);
    font-size: 17px;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ─────────────────────────────────────────────────────────────
   Cards catégories (avec image)
   ───────────────────────────────────────────────────────────── */
.kc-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.kc-cat-card {
    position: relative;
    border-radius: var(--kc-radius);
    overflow: hidden;
    text-decoration: none !important;
    color: #fff;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    box-shadow: var(--kc-card-shadow);
}

.kc-cat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(28, 25, 23, 0.08) 30%,
        rgba(28, 25, 23, 0.80) 100%
    );
    transition: background 0.3s;
}

.kc-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--kc-card-shadow-hover);
}

.kc-cat-card:hover::before {
    background: linear-gradient(
        180deg,
        rgba(15, 124, 138, 0.18) 30%,
        rgba(15, 124, 138, 0.84) 100%
    );
}

.kc-cat-card > * {
    position: relative;
    z-index: 1;
}

.kc-cat-card .name {
    font-family: var(--kc-font-heading);
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.1;
}

.kc-cat-card .count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* ─────────────────────────────────────────────────────────────
   Cards articles (avec image)
   ───────────────────────────────────────────────────────────── */
.kc-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.kc-article-card {
    background: #fff;
    border: 1px solid var(--kc-border);
    border-radius: var(--kc-radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.kc-article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--kc-card-shadow-hover);
}

.kc-article-card .thumb {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    display: block;
    text-decoration: none;
    transition: transform 0.5s;
}

.kc-article-card:hover .thumb {
    transform: scale(1.04);
}

.kc-article-card .body {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.kc-article-card .cat-tag {
    align-self: flex-start;
    background: rgba(15, 124, 138, 0.12);
    color: var(--kc-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 100px;
    text-decoration: none;
}

.kc-article-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
}

.kc-article-card h3 a {
    color: var(--kc-text) !important;
    text-decoration: none;
}

.kc-article-card h3 a:hover {
    color: var(--kc-primary) !important;
}

.kc-article-card .excerpt {
    color: var(--kc-text-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.kc-article-card .read-more {
    color: var(--kc-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 4px;
}

.kc-article-card .read-more:after {
    content: " →";
    transition: margin-left 0.2s;
}

.kc-article-card:hover .read-more:after {
    margin-left: 4px;
}

/* ─────────────────────────────────────────────────────────────
   SINGLE ARTICLE — Template custom popschool-style
   ───────────────────────────────────────────────────────────── */

/* Casser la container Astra sur single comme on l'a fait pour home/archive */
body.single {
    background: var(--kc-bg) !important;
}

.single #content,
.single #content > .ast-container,
.single .site-content > .ast-container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
}

.single #primary,
.single .site-main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    display: block !important;
    float: none !important;
    grid-template-columns: none !important;
}

/* Force block layout pour TOUS les enfants directs de site-main / article */
.single .site-main > *,
.single article.kc-single,
.single article.kc-single > *,
.single > section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    flex: none !important;
}

/* Astra ast-row sur single */
.single .ast-row,
.single [class^="ast-grid-common"] {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    grid-template-columns: none !important;
}

.kc-single-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header article (ultra compact, hero au fold) ─── */
.kc-single-header {
    background: var(--kc-bg);
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--kc-border);
}

.kc-breadcrumb {
    font-size: 12px;
    color: var(--kc-text-soft);
    margin-bottom: 8px;
}

.kc-breadcrumb a {
    color: var(--kc-text-soft);
    text-decoration: none;
}

.kc-breadcrumb a:hover {
    color: var(--kc-primary);
}

.kc-breadcrumb span {
    margin: 0 6px;
}

.kc-breadcrumb .current {
    color: var(--kc-text);
}

.kc-single-cat-badge {
    display: inline-block;
    background: var(--kc-primary);
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    text-decoration: none;
    margin-bottom: 8px;
}

.kc-single-title {
    font-size: clamp(22px, 2.6vw, 30px) !important;
    line-height: 1.2 !important;
    margin: 0 0 8px !important;
    color: var(--kc-text) !important;
    letter-spacing: -0.01em;
    max-width: 820px;
}

.kc-single-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: var(--kc-text-soft);
    margin: 0 0 14px;
    max-width: 760px;
    /* Limite a 2 lignes max pour garder le hero au fold */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kc-single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--kc-border);
}

.kc-single-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kc-single-author img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: 2px solid var(--kc-bg-soft);
}

.kc-single-author .name {
    font-size: 14px !important;
}

.kc-single-author .role {
    font-size: 11px !important;
}

.kc-single-meta-right {
    font-size: 13px !important;
}

.kc-single-author .name {
    font-family: var(--kc-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--kc-text);
}

.kc-single-author .role {
    font-size: 12px;
    color: var(--kc-text-soft);
}

.kc-single-meta-right {
    display: flex;
    gap: 20px;
    color: var(--kc-text-soft);
    font-size: 14px;
}

.kc-single-meta-right .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ─── Hero image (court, visible au fold) ─── */
.kc-single-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--kc-bg-soft);
}

@media (max-width: 768px) {
    .kc-single-hero {
        height: 200px;
    }
}

/* ─── Body wrapper avec TOC sticky ─── */
.kc-single-body-wrapper {
    padding: 56px 0;
    background: var(--kc-bg);
}

.kc-single-body-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 980px) {
    .kc-single-body-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ─── TOC sticky ─── */
.kc-single-toc {
    position: sticky;
    top: 88px;
    align-self: start;
}

.kc-toc-card {
    background: var(--kc-bg-soft);
    border-radius: var(--kc-radius);
    padding: 24px 22px;
    margin-bottom: 20px;
}

.kc-toc-title {
    font-family: var(--kc-font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kc-primary);
    margin-bottom: 14px;
}

.kc-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kc-toc-list li {
    padding: 6px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    margin-left: -10px;
    transition: border-color 0.2s;
}

.kc-toc-list li.sub {
    padding-left: 24px;
    margin-left: -10px;
}

.kc-toc-list li a {
    color: var(--kc-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
}

.kc-toc-list li a:hover {
    color: var(--kc-primary);
}

.kc-toc-list li.active {
    border-left-color: var(--kc-primary);
}

.kc-toc-list li.active a {
    color: var(--kc-primary);
    font-weight: 600;
}

/* ─── Partage social ─── */
.kc-single-share {
    background: var(--kc-bg-soft);
    border-radius: var(--kc-radius);
    padding: 18px 22px;
}

.kc-single-share .label {
    font-family: var(--kc-font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kc-primary);
    margin-bottom: 10px;
}

.kc-single-share .links {
    display: flex;
    gap: 10px;
}

.kc-single-share .links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--kc-text);
    border: 1px solid var(--kc-border);
    transition: background 0.2s, color 0.2s;
}

.kc-single-share .links a:hover {
    background: var(--kc-primary);
    color: #fff;
    border-color: var(--kc-primary);
}

/* ─── Body article ─── */
.kc-single-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--kc-text);
}

.kc-single-body > * {
    margin-bottom: 1.4em;
}

.kc-single-body p {
    margin-bottom: 1.4em;
}

.kc-single-body h2 {
    font-family: var(--kc-font-heading);
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.25;
    margin-top: 2.2em;
    margin-bottom: 0.6em;
    color: var(--kc-text);
    scroll-margin-top: 80px;
}

.kc-single-body h2:first-child {
    margin-top: 0;
}

.kc-single-body h3 {
    font-family: var(--kc-font-heading);
    font-size: clamp(20px, 2vw, 23px);
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    color: var(--kc-text);
    scroll-margin-top: 80px;
}

.kc-single-body a {
    color: var(--kc-primary);
    border-bottom: 1px solid rgba(15, 124, 138, 0.3);
    text-decoration: none;
    transition: border-color 0.2s;
}

.kc-single-body a:hover {
    border-bottom-color: var(--kc-primary);
}

.kc-single-body strong {
    color: var(--kc-text);
}

.kc-single-body ul,
.kc-single-body ol {
    margin-bottom: 1.4em;
    padding-left: 24px;
}

.kc-single-body ul li,
.kc-single-body ol li {
    margin-bottom: 0.6em;
    line-height: 1.7;
}

.kc-single-body ul {
    list-style: none;
    padding-left: 0;
}

.kc-single-body ul li {
    position: relative;
    padding-left: 24px;
}

.kc-single-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    background: var(--kc-primary);
    border-radius: 50%;
}

.kc-single-body blockquote {
    margin: 2em 0;
    padding: 22px 28px;
    background: var(--kc-bg-soft);
    border-left: 4px solid var(--kc-primary);
    border-radius: 0 var(--kc-radius) var(--kc-radius) 0;
    font-family: var(--kc-font-heading);
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: var(--kc-text);
}

.kc-single-body img {
    border-radius: var(--kc-radius);
    margin: 1.6em 0;
    max-width: 100%;
    height: auto;
}

.kc-single-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    border-radius: var(--kc-radius);
    overflow: hidden;
    box-shadow: var(--kc-card-shadow);
}

.kc-single-body table th {
    background: var(--kc-primary);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    font-size: 14px;
}

.kc-single-body table td {
    padding: 14px 18px;
    border-top: 1px solid var(--kc-border);
    background: #fff;
}

.kc-single-body table tr:nth-child(even) td {
    background: var(--kc-bg-soft);
}

/* ─── Bio auteur fin d'article ─── */
.kc-single-author-bio {
    padding: 32px 0 48px;
    background: var(--kc-bg);
    border-top: 1px solid var(--kc-border);
}

.kc-single-author-bio .bio-card {
    display: flex;
    gap: 24px;
    background: var(--kc-bg-soft);
    border-radius: var(--kc-radius);
    padding: 28px 32px;
    align-items: flex-start;
}

.kc-single-author-bio .bio-card img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 3px solid #fff;
}

.kc-single-author-bio .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--kc-primary);
    margin-bottom: 6px;
}

.kc-single-author-bio .bio-name {
    font-family: var(--kc-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--kc-text);
    margin-bottom: 8px;
}

.kc-single-author-bio p {
    color: var(--kc-text-soft);
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   Archive (catégorie)
   ───────────────────────────────────────────────────────────── */
.kc-cat-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 20px 110px;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.kc-cat-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(28, 25, 23, 0.68) 0%,
        rgba(15, 124, 138, 0.55) 100%
    );
}

.kc-cat-hero > * {
    position: relative;
    z-index: 1;
}

.kc-cat-hero h1 {
    color: #fff !important;
    font-size: clamp(32px, 4.5vw, 52px);
    margin: 0 0 12px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

.kc-cat-hero .desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.kc-cat-hero .count-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

/* ─────────────────────────────────────────────────────────────
   Page institutionnelle (mon-parcours, contact, etc.)
   ───────────────────────────────────────────────────────────── */
.page .ast-container,
.page-template-default .ast-container {
    max-width: 760px;
}

.page .entry-header {
    text-align: center;
    margin: 40px 0 32px;
}

.page .entry-title {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0;
}

.page .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--kc-text);
}

.page .entry-content h2 {
    font-size: 26px;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.page .entry-content a {
    color: var(--kc-primary);
}

/* Contact email mis en avant */
.kc-contact-block {
    text-align: center;
    background: var(--kc-bg-soft);
    border-radius: var(--kc-radius);
    padding: 40px 28px;
    margin: 32px 0;
}

.kc-contact-block .label {
    color: var(--kc-text-soft);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.kc-contact-block a {
    display: inline-block;
    color: var(--kc-primary);
    font-family: var(--kc-font-heading);
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.kc-contact-block a:hover {
    border-bottom-color: var(--kc-primary);
}

/* ─────────────────────────────────────────────────────────────
   Section Réassurance ("Pourquoi nous suivre")
   ───────────────────────────────────────────────────────────── */
.kc-trust {
    background: var(--kc-bg);
    padding: 80px 20px;
    border-top: 1px solid var(--kc-border);
    border-bottom: 1px solid var(--kc-border);
}

.kc-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.kc-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.kc-trust-card {
    text-align: center;
    padding: 8px;
}

.kc-trust-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(15, 124, 138, 0.12);
    color: var(--kc-primary);
    font-size: 28px;
    margin-bottom: 16px;
}

.kc-trust-card h3 {
    font-size: 19px;
    margin: 0 0 8px;
}

.kc-trust-card p {
    color: var(--kc-text-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

/* Stats bar */
.kc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    padding: 32px 0 0;
    margin-top: 48px;
    border-top: 1px solid var(--kc-border);
}

.kc-stat {
    text-align: center;
}

.kc-stat .num {
    font-family: var(--kc-font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--kc-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.kc-stat .label {
    font-size: 13px;
    color: var(--kc-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   Newsletter CTA (avant footer)
   ───────────────────────────────────────────────────────────── */
.kc-newsletter {
    background: linear-gradient(135deg, var(--kc-primary) 0%, var(--kc-accent) 100%);
    padding: 64px 20px;
    text-align: center;
    color: #fff;
}

.kc-newsletter h2 {
    color: #fff !important;
    font-size: clamp(26px, 3vw, 36px);
    margin: 0 0 12px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.kc-newsletter p {
    color: rgba(255,255,255,0.92);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.kc-newsletter-form {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.kc-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border-radius: 100px;
    border: none;
    font-size: 15px;
    font-family: var(--kc-font-body);
    color: var(--kc-text);
}

.kc-newsletter-form button {
    background: var(--kc-text);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--kc-font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.kc-newsletter-form button:hover {
    background: #0E2F36;
}

/* ─────────────────────────────────────────────────────────────
   Footer custom
   ───────────────────────────────────────────────────────────── */
.kc-footer {
    background: var(--kc-text);
    color: rgba(255,255,255,0.85);
    padding: 64px 20px 24px;
    font-family: var(--kc-font-body);
}

.kc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.kc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 920px) {
    .kc-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 540px) {
    .kc-footer-grid {
        grid-template-columns: 1fr;
    }
}

.kc-footer-col h4 {
    color: #fff !important;
    font-family: var(--kc-font-heading) !important;
    font-size: 18px;
    margin: 0 0 18px;
}

.kc-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kc-footer-col ul li {
    padding: 5px 0;
}

.kc-footer-col a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s;
}

.kc-footer-col a:hover {
    color: var(--kc-accent);
}

.kc-footer-brand .kc-footer-logo {
    display: inline-block;
    font-family: var(--kc-font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 14px;
}

.kc-footer-tagline {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 340px;
}

.kc-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.kc-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    transition: background 0.2s, transform 0.2s;
}

.kc-social a:hover {
    background: var(--kc-primary);
    transform: translateY(-2px);
}

.kc-footer-bottom {
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.kc-footer-bottom p {
    margin: 4px 0;
}

.kc-footer-credits {
    font-style: italic;
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────
   Boutons
   ───────────────────────────────────────────────────────────── */
.kc-btn {
    display: inline-block;
    background: var(--kc-primary);
    color: #fff !important;
    padding: 15px 32px;
    border-radius: 100px;
    font-family: var(--kc-font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(15, 124, 138, 0.3);
}

.kc-btn:hover {
    background: var(--kc-primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
}

.kc-btn-light {
    background: #fff;
    color: var(--kc-primary) !important;
}

.kc-btn-light:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--kc-primary) !important;
}

.kc-btn-secondary {
    background: transparent;
    color: var(--kc-primary) !important;
    border: 2px solid var(--kc-primary);
    box-shadow: none;
}

.kc-btn-secondary:hover {
    background: var(--kc-primary);
    color: #fff !important;
}

/* ─────────────────────────────────────────────────────────────
   Responsive — mobile + tablette
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .kc-hero {
        padding: 80px 20px 100px;
    }
    .kc-cat-hero {
        padding: 64px 20px 72px;
    }
    .kc-section {
        padding: 56px 16px;
    }

    /* Single article : header padding réduit */
    .kc-single-header {
        padding: 32px 0 24px;
    }
    .kc-single-container {
        padding: 0 16px;
    }
    .kc-single-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .kc-single-meta-right {
        flex-direction: column;
        gap: 8px;
    }
    .kc-single-body-wrapper {
        padding: 32px 0;
    }
    .kc-single-author-bio .bio-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .kc-single-author-bio .bio-card img {
        margin: 0 auto;
    }

    /* Newsletter form sur mobile */
    .kc-newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    .kc-newsletter-form button {
        width: 100%;
    }
}

/* ─────────────────────────────────────────────────────────────
   MENU MOBILE — hamburger + drawer Astra
   ───────────────────────────────────────────────────────────── */

/* Hamburger button — visible sous 921px */
@media (max-width: 920px) {
    .menu-toggle {
        display: flex !important;
    }
}

.menu-toggle,
.ast-mobile-menu-trigger-minimal,
.ast-mobile-menu-trigger-fill,
.ast-mobile-menu-buttons-minimal,
.ast-mobile-menu-buttons-fill {
    background: transparent !important;
    color: var(--kc-text) !important;
    border: none !important;
    padding: 10px !important;
    box-shadow: none !important;
}

.menu-toggle .menu-toggle-icon,
.menu-toggle svg {
    fill: var(--kc-text) !important;
    color: var(--kc-text) !important;
    width: 28px !important;
    height: 28px !important;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: rgba(15, 124, 138, 0.08) !important;
    border-radius: 8px !important;
}

.menu-toggle:hover svg,
.menu-toggle:focus svg {
    fill: var(--kc-primary) !important;
}

/* Drawer mobile (panel qui s'ouvre) */
.ast-mobile-popup-drawer {
    background: var(--kc-bg) !important;
}

.ast-mobile-popup-content,
#ast-hf-mobile-menu {
    background: var(--kc-bg) !important;
    padding: 24px !important;
}

/* Liens du menu mobile */
#ast-hf-mobile-menu .menu-item > a,
.ast-mobile-popup-content .menu-item > a {
    font-family: var(--kc-font-heading) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--kc-text) !important;
    padding: 14px 8px !important;
    border-bottom: 1px solid var(--kc-border) !important;
    display: block !important;
}

#ast-hf-mobile-menu .menu-item > a:hover,
#ast-hf-mobile-menu .menu-item.current-menu-item > a,
.ast-mobile-popup-content .menu-item > a:hover {
    color: var(--kc-primary) !important;
    background: rgba(15, 124, 138, 0.06) !important;
    padding-left: 16px !important;
}

/* Pastille coloree par rubrique, meme logique que le desktop */
#ast-hf-mobile-menu .menu-item > a::before,
.ast-mobile-popup-content .menu-item > a::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    opacity: 0.85;
}

#ast-hf-mobile-menu .menu-item:nth-child(1) > a::before,
.ast-mobile-popup-content .menu-item:nth-child(1) > a::before { background: var(--kc-tint-amber); }
#ast-hf-mobile-menu .menu-item:nth-child(2) > a::before,
.ast-mobile-popup-content .menu-item:nth-child(2) > a::before { background: var(--kc-tint-terracotta); }
#ast-hf-mobile-menu .menu-item:nth-child(3) > a::before,
.ast-mobile-popup-content .menu-item:nth-child(3) > a::before { background: var(--kc-tint-sauge); }
#ast-hf-mobile-menu .menu-item:nth-child(4) > a::before,
.ast-mobile-popup-content .menu-item:nth-child(4) > a::before { background: var(--kc-tint-rose); }
#ast-hf-mobile-menu .menu-item:nth-child(5) > a::before,
.ast-mobile-popup-content .menu-item:nth-child(5) > a::before { background: var(--kc-tint-forest); }
#ast-hf-mobile-menu .menu-item:nth-child(6) > a::before,
.ast-mobile-popup-content .menu-item:nth-child(6) > a::before { background: var(--kc-tint-slate); }

/* CTA Nous contacter dans le menu mobile */
#ast-hf-mobile-menu .menu-item.kc-menu-cta > a,
.ast-mobile-popup-content .menu-item.kc-menu-cta > a {
    background: var(--kc-primary) !important;
    color: #fff !important;
    border-radius: 100px !important;
    text-align: center !important;
    border-bottom: none !important;
    margin-top: 20px !important;
    padding: 14px 24px !important;
    box-shadow: 0 4px 12px rgba(15, 124, 138, 0.25) !important;
}

#ast-hf-mobile-menu .menu-item.kc-menu-cta > a:hover {
    background: var(--kc-primary-dark) !important;
    color: #fff !important;
    padding-left: 24px !important;
}

/* Bouton close du drawer */
.ast-close-menu .menu-toggle-icon,
.close-menu-icon {
    color: var(--kc-text) !important;
    fill: var(--kc-text) !important;
}

/* Sur mobile : masquer le CTA desktop dans le header pour pas de doublon */
@media (max-width: 920px) {
    .main-header-menu .kc-menu-cta {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────
   Petits écrans (≤ 480px) — derniers ajustements
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .kc-hero h1,
    .kc-cat-hero h1 {
        font-size: 32px;
    }
    .kc-section-header h2 {
        font-size: 26px;
    }
    .kc-single-title {
        font-size: 28px !important;
    }
    .kc-single-excerpt {
        font-size: 16px;
    }
    .kc-cat-card .name {
        font-size: 22px;
    }
    .kc-article-card .body {
        padding: 18px 20px 20px;
    }
    .kc-single-share .links {
        flex-wrap: wrap;
    }
    .kc-footer-grid {
        gap: 28px;
    }
}

/* ─────────────────────────────────────────────────────────────
   Maillage interne — bloc "Pour aller plus loin" (3 clics max)
   ─────────────────────────────────────────────────────────── */
.kc-internal-linkage {
    margin: 48px 0 24px;
    padding: 26px 30px;
    background: var(--kc-bg-soft);
    border-radius: var(--kc-radius);
    border-left: 4px solid var(--kc-accent);
}
.kc-linkage-title {
    font-family: var(--kc-font-heading);
    font-size: 22px;
    color: var(--kc-text);
    margin: 0 0 18px;
    font-weight: 700;
}
.kc-linkage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.kc-linkage-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(87, 83, 78, 0.08);
}
.kc-linkage-item:last-child { border-bottom: none; }
.kc-linkage-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--kc-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}
.kc-linkage-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.kc-linkage-link {
    font-weight: 600;
    color: var(--kc-text);
    text-decoration: underline;
    text-decoration-color: rgba(87, 83, 78, 0.25);
    text-underline-offset: 3px;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.15s;
}
.kc-linkage-link:hover {
    color: var(--kc-primary);
    text-decoration-color: var(--kc-primary);
}
.kc-linkage-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kc-text-soft);
    font-weight: 600;
}





/* ─────────────────────────────────────────────────────────────
   LPF-FIX-MENU-WRAP v4 — header full-width, logo collé à gauche
   ───────────────────────────────────────────────────────────── */
@media (min-width: 921px) {
    /* Header en pleine largeur */
    #masthead .ast-container,
    #masthead .site-primary-header-wrap {
        max-width: 1320px !important;
        width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Grid : logo collé à gauche, menu collé à droite, full-width */
    #masthead .ast-builder-grid-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    #masthead .site-header-primary-section-left {
        justify-content: flex-start !important;
        text-align: left !important;
        flex: 0 0 auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
    }
    #masthead .site-header-primary-section-right {
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        padding-right: 0 !important;
    }
    /* Titre du site reste sur 1 ligne */
    .site-title,
    .site-title a {
        white-space: nowrap !important;
    }
    .site-branding,
    .ast-site-identity {
        flex-shrink: 0 !important;
        text-align: left !important;
    }
    /* Menu : sur 1 ligne */
    .main-header-menu {
        flex-wrap: nowrap !important;
    }
    .main-header-menu > li,
    .main-navigation .main-header-menu > li {
        white-space: nowrap;
    }
    .main-navigation .main-header-menu > li > a {
        padding: 10px 12px;
    }
    .main-navigation .main-header-menu > li.kc-menu-cta {
        margin-left: 8px;
    }
    .main-navigation .main-header-menu > li.kc-menu-cta > a {
        padding: 9px 18px !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   Formulaire Contact Form 7 — cohérence avec la palette
   ───────────────────────────────────────────────────────────── */
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form label { font-weight: 600; color: var(--kc-text); display: block; margin-bottom: 6px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--kc-border);
    border-radius: var(--kc-radius-small);
    font-family: var(--kc-font-body);
    font-size: 15px;
    color: var(--kc-text);
    background: #fff;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--kc-primary);
}
.wpcf7-form input[type="submit"] {
    background: var(--kc-primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--kc-font-body);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.wpcf7-form input[type="submit"]:hover {
    background: var(--kc-primary-dark);
    transform: translateY(-1px);
}
.wpcf7-spinner { display: none !important; }
.wpcf7-not-valid-tip { color: var(--kc-primary); font-size: 13px; margin-top: 4px; }
.wpcf7-response-output {
    border-radius: var(--kc-radius-small) !important;
    border-color: var(--kc-border) !important;
    margin-top: 20px !important;
}

/* ─────────────────────────────────────────────────────────────
   Hero scindé (inspiré helixine.fr) — texte + photo, pas de fond plein ecran
   ───────────────────────────────────────────────────────────── */
.kc-hero-split {
    background: var(--kc-bg-soft);
    padding: 72px 20px;
}

.kc-hero-split-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.kc-hero-split-text .eyebrow {
    display: block;
    color: var(--kc-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.kc-hero-split-text h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    margin: 0 0 18px;
}

.kc-hero-split-text h1 em {
    color: var(--kc-primary);
    font-style: italic;
}

.kc-hero-split-text p {
    font-size: 17px;
    color: var(--kc-text-soft);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 460px;
}

.kc-hero-split-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.kc-hero-split-img img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--kc-radius);
    box-shadow: var(--kc-card-shadow-hover);
}

@media (max-width: 860px) {
    .kc-hero-split-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .kc-hero-split-img {
        order: -1;
    }
    .kc-hero-split-img img {
        max-height: 280px;
    }
}

/* Variante : image a gauche, texte a droite (desktop) */
@media (min-width: 861px) {
    .kc-hero-split-img-left .kc-hero-split-img {
        order: -1;
    }
}

/* ─────────────────────────────────────────────────────────────
   Section "Rencontrez l'auteure"
   ───────────────────────────────────────────────────────────── */
.kc-about-section {
    background: #fff;
    padding: 80px 20px;
}

.kc-about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: center;
}

.kc-about-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--kc-radius);
    box-shadow: var(--kc-card-shadow);
}

.kc-about-text .eyebrow {
    display: block;
    color: var(--kc-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kc-about-text h2 {
    font-size: clamp(26px, 3vw, 34px);
    margin: 0 0 16px;
}

.kc-about-text p {
    color: var(--kc-text-soft);
    line-height: 1.7;
    font-size: 16px;
    margin: 0 0 14px;
}

.kc-about-signature {
    font-family: var(--kc-font-heading);
    font-style: italic;
    color: var(--kc-text) !important;
    font-size: 17px;
    margin: 18px 0 10px !important;
}

.kc-about-link {
    color: var(--kc-primary);
    font-weight: 600;
    text-decoration: none;
}

.kc-about-link:hover {
    color: var(--kc-primary-dark);
}

@media (max-width: 760px) {
    .kc-about-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .kc-about-photo img {
        max-width: 280px;
        margin: 0 auto;
    }
    .kc-about-text {
        text-align: center;
    }
}

/* ─────────────────────────────────────────────────────────────
   Cards catégories "flat" (emoji, pas de photo de fond)
   ───────────────────────────────────────────────────────────── */
.kc-section-header .eyebrow {
    display: block;
    color: var(--kc-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.kc-section-header h2 em {
    color: var(--kc-primary);
    font-style: italic;
}

.kc-cats-grid-flat {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.kc-cat-card-flat {
    background: #fff;
    border: 1px solid var(--kc-border);
    border-radius: var(--kc-radius);
    padding: 32px 26px;
    text-decoration: none !important;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kc-cat-card-flat:hover {
    transform: translateY(-4px);
    box-shadow: var(--kc-card-shadow-hover);
}

.kc-cat-card-flat .emoji {
    font-size: 34px;
    margin-bottom: 6px;
}

.kc-cat-card-flat .name {
    font-family: var(--kc-font-heading);
    font-style: italic;
    font-size: 21px;
    color: var(--kc-text) !important;
}

.kc-cat-card-flat .desc {
    color: var(--kc-text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.kc-cat-card-flat .link {
    color: var(--kc-primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: 6px;
}

/* Teinte par rubrique : casse l'uniformite blanc/noyer de toutes
   les cards, chaque categorie a son identite (meme logique que le
   menu). Fond pastel tres leger + bordure haute coloree. */
.kc-cat-card-flat {
    border-top: 3px solid transparent;
}

.kc-cat-card-flat.kc-tint-amber     { background: #FFF4DC; border-top-color: var(--kc-tint-amber); }
.kc-cat-card-flat.kc-tint-terracotta{ background: #FDEDE8; border-top-color: var(--kc-tint-terracotta); }
.kc-cat-card-flat.kc-tint-sauge     { background: #EAF6F0; border-top-color: var(--kc-tint-sauge); }
.kc-cat-card-flat.kc-tint-rose      { background: #FCEEF2; border-top-color: var(--kc-tint-rose); }
.kc-cat-card-flat.kc-tint-forest    { background: #E8F5EE; border-top-color: var(--kc-tint-forest); }
.kc-cat-card-flat.kc-tint-slate     { background: #EAF0F7; border-top-color: var(--kc-tint-slate); }

.kc-cat-card-flat.kc-tint-amber .link      { color: var(--kc-tint-amber); }
.kc-cat-card-flat.kc-tint-terracotta .link { color: var(--kc-tint-terracotta); }
.kc-cat-card-flat.kc-tint-sauge .link      { color: var(--kc-tint-sauge); }
.kc-cat-card-flat.kc-tint-rose .link       { color: var(--kc-tint-rose); }
.kc-cat-card-flat.kc-tint-forest .link     { color: var(--kc-tint-forest); }
.kc-cat-card-flat.kc-tint-slate .link      { color: var(--kc-tint-slate); }



/* ═══════════════════════════════════════════════════════════════
   HOME v2 : "Aujourd'hui, on fait quoi ?" (namespace kh-)
   Aplats de couleur, contours encre, ombres decalees. Independant du reste du theme.
   ═══════════════════════════════════════════════════════════════ */
.kh {
    --kh-ink: #1F2A33;
    --kh-sun: #FFC93C;
    --kh-coral: #FF6B57;
    --kh-teal: #14A3A8;
    --kh-mint: #BFEBD9;
    --kh-sky: #CDE8F6;
    --kh-pink: #FFD3DC;
    --kh-cream: #FFFBF2;
    --kh-line: 3px solid var(--kh-ink);
    --kh-shadow: 6px 6px 0 var(--kh-ink);
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--kh-ink);
    background: var(--kh-cream);
    overflow-x: hidden;
}
.kh *, .kh *::before, .kh *::after { box-sizing: border-box; }
.kh a { text-decoration: none; color: inherit; }
.kh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* couleurs utilitaires */
.kh-c-sun { background: var(--kh-sun); }
.kh-c-coral { background: #FFB4A8; }
.kh-c-mint { background: var(--kh-mint); }
.kh-c-sky { background: var(--kh-sky); }
.kh-c-pink { background: var(--kh-pink); }
.kh-c-teal { background: #8FD9DC; }

/* ───────── Hero ───────── */
.kh-hero {
    background-color: var(--kh-sun);
    background-image: radial-gradient(rgba(31, 42, 51, .13) 2px, transparent 2.5px);
    background-size: 26px 26px;
    border-bottom: 4px solid var(--kh-ink);
    padding: 64px 24px 72px;
    position: relative;
    overflow: hidden;
}
.kh-hero-inner {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.kh-kicker {
    display: inline-block; margin: 0 0 18px;
    font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
    background: var(--kh-ink); color: var(--kh-sun); padding: 6px 14px; border-radius: 999px;
}
.kh-title {
    font-family: 'Fredoka', sans-serif; font-weight: 700;
    font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.02em;
    margin: 0 0 22px; color: var(--kh-ink);
}
.kh-mark {
    display: inline-block; margin-top: 8px; padding: 2px 20px 8px;
    background: var(--kh-coral); color: #fff; border: var(--kh-line); border-radius: 20px;
    transform: rotate(-2deg); box-shadow: var(--kh-shadow);
}
.kh-lead { font-size: 1.2rem; line-height: 1.55; max-width: 520px; margin: 0 0 28px; font-weight: 600; }
.kh-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-chip {
    font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem;
    padding: 10px 20px; border-radius: 999px; border: var(--kh-line);
    background: #fff; color: var(--kh-ink); cursor: pointer;
    box-shadow: 3px 3px 0 var(--kh-ink); transition: transform .12s, box-shadow .12s, background .12s;
}
.kh-chip:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--kh-ink); }
.kh-chip.is-on { background: var(--kh-ink); color: var(--kh-sun); box-shadow: 0 0 0 var(--kh-ink); transform: translate(3px, 3px); }
.kh-chip:focus-visible { outline: 3px solid var(--kh-teal); outline-offset: 3px; }

/* collage */
.kh-collage { position: relative; height: 430px; }
.kh-polaroid {
    position: absolute; display: block; background: #fff; padding: 10px 10px 34px;
    border: var(--kh-line); border-radius: 10px; box-shadow: var(--kh-shadow);
    transition: transform .2s;
}
.kh-polaroid img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.kh-polaroid-1 { width: 250px; height: 280px; left: 4%; top: 0; transform: rotate(-6deg); }
.kh-polaroid-2 { width: 230px; height: 260px; right: 0; top: 46px; transform: rotate(5deg); z-index: 2; }
.kh-polaroid-3 { width: 240px; height: 250px; left: 24%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.kh-polaroid:hover { transform: rotate(0) scale(1.04); z-index: 5; }
.kh-sticker {
    position: absolute; right: 8%; bottom: 8px; z-index: 6; width: 118px; height: 118px; border-radius: 50%;
    background: var(--kh-teal); color: #fff; border: var(--kh-line); box-shadow: 4px 4px 0 var(--kh-ink);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.1; transform: rotate(10deg);
}
.kh-sticker strong { font-size: 2.4rem; line-height: 1; }

/* ───────── Titres de section ───────── */
.kh-h2 {
    font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    line-height: 1.05; margin: 0 0 30px; letter-spacing: -.01em; color: var(--kh-ink);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.kh-h2-small { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.kh-count {
    font-size: 1.1rem; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--kh-coral); color: #fff; border: var(--kh-line);
}

/* ───────── Grille d'idees ───────── */
.kh-ideas { padding: 72px 0 40px; }
.kh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.kh-card {
    border: var(--kh-line); border-radius: 22px; overflow: hidden; box-shadow: var(--kh-shadow);
    display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.kh-card[hidden] { display: none; }
.kh-card:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 9px 9px 0 var(--kh-ink); }
.kh-card-img {
    display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #fff;
    border-bottom: var(--kh-line);
}
.kh-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kh-pill {
    align-self: flex-start; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .03em;
    text-transform: uppercase; background: #fff; border: 2px solid var(--kh-ink); border-radius: 999px; padding: 3px 11px;
}
.kh-card h3 { margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.22rem; line-height: 1.2; }
.kh-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.kh-empty { margin: 30px 0 0; font-weight: 700; font-size: 1.1rem; }

/* ───────── Par age ───────── */
.kh-ages { padding: 56px 0 72px; }
.kh-ages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.kh-age {
    border: var(--kh-line); border-radius: 26px; box-shadow: var(--kh-shadow); padding: 26px 26px 28px; position: relative; overflow: hidden;
}
.kh-age-teal { background: var(--kh-teal); color: #fff; }
.kh-age-coral { background: var(--kh-coral); color: #fff; }
.kh-age-sun { background: var(--kh-sun); color: var(--kh-ink); }
.kh-age-n {
    display: block; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 6.5rem; line-height: .9; letter-spacing: -.04em;
}
.kh-age-n sup { font-size: .5em; vertical-align: top; position: relative; top: .1em; margin-left: 2px; }
.kh-age-label { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.2rem; margin: 6px 0 16px; }
.kh-age ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kh-age li a {
    display: block; padding: 10px 14px; background: rgba(255, 255, 255, .92); color: var(--kh-ink);
    border: 2px solid var(--kh-ink); border-radius: 14px; font-weight: 700; font-size: .98rem; line-height: 1.3;
    transition: transform .12s;
}
.kh-age li a:hover { transform: translateX(4px); background: #fff; }

/* ───────── Rubriques ───────── */
.kh-rubs { padding: 0 0 72px; }
.kh-rub-row { display: flex; flex-wrap: wrap; gap: 14px; }
.kh-rub {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 14px;
    border: var(--kh-line); border-radius: 999px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.05rem;
    box-shadow: 4px 4px 0 var(--kh-ink); transition: transform .12s, box-shadow .12s;
}
.kh-rub:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 6px 6px 0 var(--kh-ink); }
.kh-rub-emoji { font-size: 1.5rem; line-height: 1; }

/* ───────── Cloture ───────── */
.kh-end { background: var(--kh-ink); color: #fff; padding: 34px 0; }
.kh-end-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.kh-end p { margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.4rem; }
.kh-btn {
    display: inline-block; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.05rem;
    background: var(--kh-sun); color: var(--kh-ink) !important; padding: 12px 26px; border-radius: 999px; border: 3px solid #fff;
    transition: transform .12s;
}
.kh-btn:hover { transform: rotate(-2deg) scale(1.05); }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
    .kh-hero-inner { grid-template-columns: 1fr; gap: 34px; }
    .kh-collage { height: 360px; max-width: 520px; margin: 0 auto; width: 100%; }
    .kh-polaroid-1 { width: 200px; height: 230px; left: 2%; }
    .kh-polaroid-2 { width: 190px; height: 215px; }
    .kh-polaroid-3 { width: 190px; height: 205px; left: 26%; }
    .kh-ages-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .kh-hero { padding: 40px 18px 48px; }
    .kh-wrap { padding: 0 18px; }
    .kh-collage { height: 300px; }
    .kh-polaroid-1 { width: 150px; height: 180px; }
    .kh-polaroid-2 { width: 145px; height: 170px; top: 30px; }
    .kh-polaroid-3 { width: 150px; height: 165px; left: 22%; }
    .kh-sticker { width: 96px; height: 96px; font-size: 12px; }
    .kh-sticker strong { font-size: 1.9rem; }
    .kh-grid { grid-template-columns: 1fr; }
    .kh-age-n { font-size: 5rem; }
    .kh-end-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .kh *, .kh *::before, .kh *::after { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE + RUBRIQUE v2 (namespace kh-s-, kh-cat-)
   ═══════════════════════════════════════════════════════════════ */
.kh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kh-btn-dark { background: var(--kh-ink); color: #fff !important; border-color: var(--kh-ink); margin-top: 18px; }

/* En-tete colore */
.kh-s-head { border-bottom: 4px solid var(--kh-ink); padding: 44px 24px 56px; position: relative; overflow: hidden; }
.kh-s-head.kh-c-teal { background: #8FD9DC; }
.kh-s-head-inner {
    max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center;
}
.kh-cat-inner { grid-template-columns: 1fr auto; }
.kh-s-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; font-size: .92rem; margin-bottom: 18px; }
.kh-s-crumb a { border-bottom: 2px solid var(--kh-ink); }
.kh-s-crumb a:hover { background: var(--kh-ink); color: #fff; }
.kh-s-cat { font-size: 13px; padding: 5px 14px; margin-bottom: 16px; display: inline-block; }
.kh-s-cat:hover { background: var(--kh-ink); color: #fff; }
.kh-s-title {
    font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--kh-ink); margin: 0 0 16px;
    font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.02; letter-spacing: -.02em;
}
.kh-s-lead { font-size: 1.15rem; line-height: 1.55; font-weight: 600; margin: 0 0 22px; max-width: 640px; }
.kh-s-lead p { margin: 0; }
.kh-s-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kh-s-meta li {
    background: #fff; border: 2px solid var(--kh-ink); border-radius: 999px; padding: 5px 14px;
    font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px;
}
.kh-s-author img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--kh-ink); margin: 0 -4px 0 -8px; }
.kh-s-frame {
    margin: 0; border: 4px solid var(--kh-ink); border-radius: 24px; overflow: hidden; background: #fff;
    box-shadow: 9px 9px 0 var(--kh-ink); transform: rotate(2deg); aspect-ratio: 4 / 3;
}
.kh-s-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Rubrique : pastille emoji */
.kh-cat-badge {
    width: 190px; height: 190px; border-radius: 50%; background: #fff; border: 4px solid var(--kh-ink); box-shadow: 7px 7px 0 var(--kh-ink);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-6deg);
}
.kh-cat-emoji { font-size: 4rem; line-height: 1; }
.kh-cat-count { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.05rem; margin-top: 4px; }
.kh-cat-count strong { font-size: 1.5rem; }
.kh-cat-list { padding-top: 56px; }
.kh-pagi { margin-top: 44px; }
.kh .navigation.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.kh .page-numbers {
    min-width: 46px; height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: var(--kh-line); border-radius: 999px; font-family: 'Fredoka', sans-serif; font-weight: 600; box-shadow: 3px 3px 0 var(--kh-ink);
}
.kh .page-numbers.current { background: var(--kh-ink); color: var(--kh-sun); }

/* Lecture */
.kh-s-wrap { max-width: 780px; margin: 0 auto; padding: 48px 24px 24px; }
.kh-s-toc { margin: 0 0 40px; }
.kh-s .kc-toc-card {
    background: #fff; border: var(--kh-line); border-radius: 22px; box-shadow: var(--kh-shadow); padding: 22px 26px 24px; position: static; max-height: none;
}
.kh-s .kc-toc-title {
    font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.3rem; margin: 0 0 12px; color: var(--kh-ink);
    text-transform: none; letter-spacing: 0; display: inline-block; background: var(--kh-sun); padding: 2px 14px; border-radius: 10px; border: 2px solid var(--kh-ink);
}
.kh-s .kc-toc-list { list-style: none; margin: 0; padding: 0; counter-reset: kh-toc; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.kh-s .kc-toc-list li { counter-increment: kh-toc; border: 0; padding: 0; margin: 0; background: none; }
.kh-s .kc-toc-list li a {
    display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--kh-ink); font-weight: 700; font-size: .98rem; line-height: 1.3; border: 0;
}
.kh-s .kc-toc-list li a::before {
    content: counter(kh-toc); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--kh-coral); color: #fff; border: 2px solid var(--kh-ink);
    display: inline-flex; align-items: center; justify-content: center; font-family: 'Fredoka', sans-serif; font-size: .85rem; transform: translateY(2px);
}
.kh-s .kc-toc-list li a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.kh-s .kc-toc-list li.active a { color: var(--kh-teal); }

.kh-s-body { font-size: 1.12rem; line-height: 1.78; font-weight: 500; }
.kh-s-body > * { max-width: 100%; }
.kh-s-body p { margin: 0 0 1.25em; }
.kh-s-body h2 {
    font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.12; letter-spacing: -.01em;
    margin: 2.1em 0 .7em; color: var(--kh-ink); scroll-margin-top: 90px;
}
.kh-s-body h2 span, .kh-s-body h2 { background-image: linear-gradient(transparent 62%, var(--kh-sun) 62%); background-repeat: no-repeat; display: inline; }
.kh-s-body h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.35rem; margin: 1.6em 0 .5em; color: #D9432F; scroll-margin-top: 90px; }
.kh-s-body a { color: var(--kh-teal); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kh-s-body a:hover { background: var(--kh-sun); color: var(--kh-ink); }
.kh-s-body strong { font-weight: 800; }
.kh-s-body ul, .kh-s-body ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.kh-s-body ul li { position: relative; padding-left: 34px; margin-bottom: .55em; }
.kh-s-body ul li::before {
    content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--kh-coral); border: 2px solid var(--kh-ink);
}
.kh-s-body ol { counter-reset: khol; }
.kh-s-body ol li { position: relative; padding-left: 42px; margin-bottom: .6em; counter-increment: khol; }
.kh-s-body ol li::before {
    content: counter(khol); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%; background: var(--kh-teal); color: #fff;
    border: 2px solid var(--kh-ink); display: flex; align-items: center; justify-content: center; font-family: 'Fredoka', sans-serif; font-size: .9rem;
}
.kh-s-body blockquote {
    margin: 1.6em 0; padding: 18px 22px; background: var(--kh-sun); border: var(--kh-line); border-radius: 18px; box-shadow: 5px 5px 0 var(--kh-ink); font-weight: 700;
}
.kh-s-body blockquote p:last-child { margin-bottom: 0; }
.kh-s-body img { max-width: 100%; height: auto; border: var(--kh-line); border-radius: 18px; }
.kh-s-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; border: var(--kh-line); border-radius: 16px; overflow: hidden; font-size: .98rem; }
.kh-s-body th { background: var(--kh-teal); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: var(--kh-line); }
.kh-s-body td { padding: 10px 14px; border-bottom: 2px solid rgba(31, 42, 51, .15); background: #fff; vertical-align: top; }
.kh-s-body tr:last-child td { border-bottom: 0; }
.kh-s-body tr:nth-child(even) td { background: var(--kh-cream); }

/* Pour aller plus loin */
.kh-s-more { margin: 48px 0 0; padding: 24px 26px; background: var(--kh-mint); border: var(--kh-line); border-radius: 22px; box-shadow: var(--kh-shadow); }
.kh-s-more-title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.4rem; margin: 0 0 12px; background: none !important; }
.kh-s-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kh-s-more li a {
    display: block; padding: 10px 16px; background: #fff; border: 2px solid var(--kh-ink); border-radius: 14px; font-weight: 700; line-height: 1.3; transition: transform .12s;
}
.kh-s-more li a:hover { transform: translateX(5px); }

/* Auteur */
.kh-s-bio {
    margin: 44px 0 0; display: flex; gap: 18px; align-items: center; padding: 20px 24px; background: #fff; border: var(--kh-line); border-radius: 22px;
}
.kh-s-bio img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--kh-ink); flex: 0 0 72px; }
.kh-s-bio p { margin: 0; }
.kh-s-bio-label { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--kh-teal); }
.kh-s-bio-name { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.3rem; }
.kh-s-bio-text { font-size: .98rem; line-height: 1.5; margin-top: 4px !important; }

.kh-s-related { padding: 60px 0 56px; }

@media (max-width: 980px) {
    .kh-s-head-inner, .kh-cat-inner { grid-template-columns: 1fr; gap: 30px; }
    .kh-s-frame { max-width: 520px; }
    .kh-cat-badge { width: 150px; height: 150px; }
    .kh-cat-emoji { font-size: 3rem; }
    .kh-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .kh-s-head { padding: 32px 18px 44px; }
    .kh-s-wrap { padding: 34px 18px 16px; }
    .kh-s .kc-toc-list { grid-template-columns: 1fr; }
    .kh-grid-3 { grid-template-columns: 1fr; }
    .kh-s-bio { flex-direction: column; text-align: center; }
    .kh-s-body { font-size: 1.05rem; }
    .kh-s-body table { display: block; overflow-x: auto; }
}
