/* Pictogrammes vectoriels : couleur héritée de la section, aucun caractère emoji. */
.kh-icon-heading::before {
    content: ""; display: block; width: 32px; height: 32px;
    margin-bottom: 18px; background: var(--blue, #1668b7);
    mask: var(--kh-icon) center / contain no-repeat;
    -webkit-mask: var(--kh-icon) center / contain no-repeat;
}
.section-blue .kh-icon-heading::before,
.section-dark .kh-icon-heading::before { background: #79baff; }
.kh-icon-files { --kh-icon: url("../svg/icons/files.svg"); }
.kh-icon-repeat { --kh-icon: url("../svg/icons/repeat.svg"); }
.kh-icon-chart { --kh-icon: url("../svg/icons/chart.svg"); }
.kh-icon-search { --kh-icon: url("../svg/icons/search.svg"); }
.kh-icon-network { --kh-icon: url("../svg/icons/network.svg"); }
.kh-icon-workflow { --kh-icon: url("../svg/icons/workflow.svg"); }
.kh-icon-check { --kh-icon: url("../svg/icons/check.svg"); }
.kh-icon-compass { --kh-icon: url("../svg/icons/compass.svg"); }
.kh-icon-deploy { --kh-icon: url("../svg/icons/deploy.svg"); }
.kh-icon-book { --kh-icon: url("../svg/icons/book.svg"); }
.kh-icon-chat { --kh-icon: url("../svg/icons/chat.svg"); }
.kh-icon-settings { --kh-icon: url("../svg/icons/settings.svg"); }

/* Schéma d'écosystème : prend la place du symbole seul dans le hero. */
.hero-visual.kh-network-visual { min-height: 0; }
.hero-visual.kh-network-visual::before,
.hero-visual.kh-network-visual::after { display: none; }
.hero-visual .kh-network { width: 100%; max-width: 500px; margin: 0; }
.hero-visual .kh-network img { display: block; width: 100%; max-width: 100%; filter: none; }
.kh-network { max-width: 560px; margin: 24px auto; }
.kh-network img { display: block; width: 100%; height: auto; }
.kh-network { background: #061c3a; border-radius: 20px; padding: 16px; }
.kh-network figcaption { text-align: center; font-size: .875rem; color: #d9e4f1; padding: 8px; }
.hero-visual .kh-network { background: transparent; padding: 0; }
/* Le parcours conserve les cartes et se lit de gauche à droite, puis de haut en bas. */
.kh-process .card { position: relative; border-top: 2px solid #79baff; }
@media (min-width: 1051px) {
    .kh-process .card:not(:last-child)::after {
        content: "→"; position: absolute; right: -24px; top: 40px;
        z-index: 1; color: #79baff; font-size: 24px;
    }
}
@media (max-width: 850px) {
    .hero-visual .kh-network { max-width: 390px; }
}

/* Même boîte et même rosace dans les deux modes : aucune déformation ni sous-titre. */
.site-header .brand img,
.site-footer .brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}
@media (max-width: 580px) {
    .site-header .brand img { width: 35px; height: 35px; }
}

.is-style-kh-icon-files { --kh-icon: url("../svg/icons/files.svg"); }
.is-style-kh-icon-repeat { --kh-icon: url("../svg/icons/repeat.svg"); }
.is-style-kh-icon-chart { --kh-icon: url("../svg/icons/chart.svg"); }
.is-style-kh-icon-search { --kh-icon: url("../svg/icons/search.svg"); }
.is-style-kh-icon-network { --kh-icon: url("../svg/icons/network.svg"); }
.is-style-kh-icon-workflow { --kh-icon: url("../svg/icons/workflow.svg"); }
.is-style-kh-icon-check { --kh-icon: url("../svg/icons/check.svg"); }
.is-style-kh-icon-compass { --kh-icon: url("../svg/icons/compass.svg"); }
.is-style-kh-icon-deploy { --kh-icon: url("../svg/icons/deploy.svg"); }
.is-style-kh-icon-book { --kh-icon: url("../svg/icons/book.svg"); }
.is-style-kh-icon-chat { --kh-icon: url("../svg/icons/chat.svg"); }
.is-style-kh-icon-settings { --kh-icon: url("../svg/icons/settings.svg"); }
[class*="is-style-kh-icon-"]::before {
    content: ""; display: block; width: 32px; height: 32px; margin-bottom: 18px;
    background: var(--blue, #1668b7);
    mask: var(--kh-icon) center / contain no-repeat;
    -webkit-mask: var(--kh-icon) center / contain no-repeat;
}
.section-blue [class*="is-style-kh-icon-"]::before { background: #79baff; }
.kh-resource-query .wp-block-post-template { gap: 28px; }
.kh-resource-query .wp-block-post { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: white; }
