.hx-blog-page, .hx-article-page { padding-top:0; }
/* Native editorial blocks: listing, archives and comfortable article reading. */
.hx-blog-card { height:100%; padding:28px; border-radius:24px; background:var(--wp--preset--color--home-cream,#fffef5); display:flex; flex-direction:column; gap:16px; box-sizing:border-box; }
.hx-blog-card > * { margin-block:0; }
.hx-blog-card .wp-block-post-title { font-size:clamp(1.35rem,2vw,1.8rem); line-height:1.25; letter-spacing:-.025em; }
.hx-blog-card .wp-block-post-title a { color:inherit; text-decoration:none; }
.hx-blog-card .wp-block-post-title a:hover { text-decoration:underline; text-underline-offset:5px; }
.hx-blog-card .wp-block-post-terms { display:flex; flex-wrap:wrap; gap:8px; font-size:13px; font-weight:700; }
.hx-blog-card .wp-block-post-terms a { display:inline-flex; align-items:center; padding:7px 13px; border-radius:999px; background:var(--wp--preset--color--home-lavender,#e6dcff); color:var(--wp--preset--color--home-black,#202027); line-height:1.4; text-decoration:none; }
.hx-blog-card .wp-block-post-terms a:hover { background:var(--wp--preset--color--home-yellow,#f9d400); }
.hx-blog-card .wp-block-post-terms__separator { display:none; }
.hx-blog-card .wp-block-post-date { font-size:13px; }
.hx-blog-card .wp-block-post-excerpt { display:flex; flex:1; flex-direction:column; gap:20px; font-size:16px; line-height:1.65; }
.hx-blog-card .wp-block-post-excerpt__more-text { margin-top:auto; font-weight:700; }
.hx-blog-card .wp-block-post-excerpt__more-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; box-sizing:border-box; padding:12px 22px; border-radius:999px; background:var(--wp--preset--color--home-action,#7454e1); color:#fff; font-size:14px; line-height:1.4; text-decoration:none; }
.hx-blog-card .wp-block-post-excerpt__more-link:hover { background:var(--wp--preset--color--home-black,#202027); color:#fff; }
.hx-blog-card .wp-block-post-featured-image { overflow:hidden; border-radius:16px; }
.hx-blog-list .wp-block-post-template { gap:24px; }
.hx-blog-list .wp-block-post-template > li { min-width:0; }
:is(.hx-blog-list,.hx-result-list) .wp-block-query-pagination { margin-top:40px; gap:12px; align-items:center; flex-wrap:wrap; }
:is(.hx-blog-list,.hx-result-list) .wp-block-query-pagination-numbers { display:flex; align-items:center; gap:8px; margin:0; }
:is(.hx-blog-list,.hx-result-list) .wp-block-query-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; box-sizing:border-box; padding:10px; border:1px solid #e8e5f0; border-radius:14px; color:var(--wp--preset--color--home-black,#202027); background:#fff; font-size:14px; font-weight:700; line-height:1.4; text-decoration:none; }
:is(.hx-blog-list,.hx-result-list) .wp-block-query-pagination .page-numbers.current { background:var(--wp--preset--color--home-black,#202027); border-color:var(--wp--preset--color--home-black,#202027); color:#fff; }
:is(.hx-blog-list,.hx-result-list) .wp-block-query-pagination :is(.wp-block-query-pagination-previous,.wp-block-query-pagination-next) { display:inline-flex; align-items:center; justify-content:center; min-height:44px; box-sizing:border-box; margin:0; padding:12px 20px; border:1px solid #e8e5f0; border-radius:999px; color:var(--wp--preset--color--home-black,#202027); background:var(--wp--preset--color--home-cream,#fffef5); font-size:14px; font-weight:600; line-height:1.4; text-decoration:none; }
:is(.hx-blog-list,.hx-result-list) .wp-block-query-pagination a:hover { background:var(--wp--preset--color--home-yellow,#f9d400); color:var(--wp--preset--color--home-black,#202027); }
:is(.hx-blog-list,.hx-result-list) .wp-block-query-pagination .dots { border-color:transparent; background:transparent; }
.hx-blog-card :is(.wp-block-post-terms a,.wp-block-post-excerpt__more-link):focus-visible,:is(.hx-blog-list,.hx-result-list) .wp-block-query-pagination a:focus-visible { outline:3px solid var(--wp--preset--color--home-action,#7454e1); outline-offset:4px; }
.hx-article-body { font-size:18px; line-height:1.8; overflow-wrap:break-word; }
.hx-article-body .wp-block-post-content > * + * { margin-block-start:24px; }
.hx-article-body .wp-block-post-content :is(h2,h3,h4,h5,h6) { margin-top:48px; line-height:1.25; letter-spacing:-.025em; }
.hx-article-body .wp-block-post-content h2 { font-size:clamp(1.8rem,3vw,2.5rem); }
.hx-article-body .wp-block-post-content h3 { font-size:clamp(1.4rem,2.5vw,1.9rem); }
.hx-article-body .wp-block-post-content h4 { font-size:1.2rem; }
.hx-article-body li + li { margin-top:10px; }
.hx-article-body a { text-underline-offset:4px; }
.hx-article-body .wp-block-table { max-width:100%; overflow-x:auto; font-size:16px; }
.hx-article-body .wp-block-table table { min-width:560px; }
.hx-article-body .wp-block-table :is(td,th) { padding:12px; }
.hx-article-body .wp-block-code { overflow:auto; font-size:15px; }
.hx-article-body .wp-block-post-featured-image { border-radius:24px; overflow:hidden; margin-bottom:32px; }
@media(max-width:62rem) { .hx-blog-list .wp-block-post-template { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:40rem) {
    .hx-blog-list .wp-block-post-template { grid-template-columns:minmax(0,1fr); }
    .hx-blog-card { padding:24px; }
    .hx-article-body { font-size:16px; line-height:1.75; }
}

/* Native category archives are the filters: links stay crawlable and shareable. */
.hx-blog-filterbar { gap:12px; align-items:center; }
.hx-blog-filter-all { margin:0; }
.hx-blog-categories { display:flex; flex-wrap:wrap; gap:12px; margin:0; padding:0; list-style:none; }
.hx-blog-categories li,.hx-blog-filter-all a { display:inline-flex; align-items:center; gap:6px; padding:12px 18px; border:1px solid #e8e5f0; border-radius:999px; font-size:14px; font-weight:600; line-height:1.4; }
.hx-blog-categories a { color:inherit; text-decoration:none; }
.hx-blog-filter-all a { color:inherit; text-decoration:none; }
.hx-blog-categories li:hover,.hx-blog-filter-all a:hover { background:var(--wp--preset--color--home-cream,#fffef5); }
.hx-blog-categories .current-cat,body.blog .hx-blog-filter-all a { background:#202027; border-color:#202027; color:#fff; }
.hx-blog-categories a:focus-visible,.hx-blog-filter-all a:focus-visible { outline:3px solid #7454e1; outline-offset:4px; }
.hx-blog-categories .cat-item-none { display:none; }
.hx-blog-card .wp-block-post-featured-image { margin:-28px -28px 8px; border-radius:24px 24px 0 0; }
.hx-blog-card .wp-block-post-featured-image img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.hx-blog-card .wp-block-post-author-name { font-size:13px; }
.hx-article-takeaway { padding:24px; border-radius:20px; background:var(--wp--preset--color--home-cream,#fffef5); }
.hx-article-takeaway > * + * { margin-top:8px; }
.hx-article-toc { padding:20px 24px; border:1px solid #e8e5f0; border-radius:20px; font-size:16px; }
.hx-article-toc > summary { cursor:pointer; font-weight:700; }
.hx-article-toc > summary:focus-visible { outline:3px solid #7454e1; outline-offset:5px; }
.hx-article-toc .wp-block-list { margin-top:16px; padding-left:24px; }
.hx-article-body .wp-block-post-content h2[id] { scroll-margin-top:130px; }
.hx-article-body .is-style-hx-lead { font-size:clamp(1.1rem,2vw,1.25rem); font-weight:500; line-height:1.7; }
@media(max-width:40rem) {
    .hx-blog-card .wp-block-post-featured-image { margin:-24px -24px 8px; }
    .hx-blog-filterbar,.hx-blog-categories { gap:8px; }
    .hx-blog-categories li,.hx-blog-filter-all a { padding:10px 14px; }
    .hx-article-toc,.hx-article-takeaway { padding:20px; }
}

.hx-blog-card .hx-blog-meta { gap:12px; font-size:13px; }
.hx-blog-card .wp-block-post-terms { text-align:left; }

.hx-blog-index { scroll-margin-top:120px; }

/* Native author block uses the current WordPress profile avatar. */
.hx-article-author { display:flex; align-items:center; gap:8px; font-size:13px; line-height:1.4; }
.hx-article-author .wp-block-post-author__avatar { flex-shrink:0; margin:0; }
.hx-article-author .wp-block-post-author__avatar img { display:block; width:28px; height:28px; border-radius:50%; object-fit:cover; }
.hx-article-author .wp-block-post-author__content { min-width:0; }
.hx-article-author .wp-block-post-author__name { margin:0; font-size:inherit; font-weight:600; }

/* Article heading and reading metadata use separate visual levels. */
.single-post .hx-header,
.single-post .hx-header-shell.is-scrolled .hx-header { background:var(--wp--preset--color--home-pop,#7138ff); color:#fff; }
.single-post .hx-header .hx-navigation { color:#fff; }
.single-post .hx-header .wp-block-button__link { background:var(--wp--preset--color--home-yellow,#f9d400); color:var(--wp--preset--color--home-black,#202027); }
.single-post .hx-header .wp-block-button__link:hover { background:#fff; color:#202027; }
.single-post .hx-header :is(.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close) { color:#fff; }
.single-post .hx-header .wp-block-navigation__responsive-container.is-menu-open { background:var(--wp--preset--color--home-pop,#7138ff)!important; color:#fff; }
.single-post .hx-header .is-menu-open .hx-mobile-start .wp-block-navigation-item__content { background:var(--wp--preset--color--home-yellow,#f9d400); color:#202027; }
.single-post .hx-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > :is(a,button) { border-color:rgb(255 255 255 / .3); }
.single-post .hx-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.hx-mobile-start) > :is(a,button) { color:#fff; }
.single-post .hx-header .wp-block-navigation__submenu-container { background:#5b24d6!important; color:#fff!important; }
.single-post .hx-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.single-post .hx-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color:#fff; }
.single-post .hx-header .wp-block-navigation__submenu-container .hx-nav-description { color:#fff; }
.single-post .hx-header .wp-block-navigation__submenu-container a.wp-block-navigation-item__content::before { background-color:var(--wp--preset--color--home-yellow,#f9d400); }
.single-post .hx-header .wp-block-navigation__submenu-container a.wp-block-navigation-item__content:hover,
.single-post .hx-header .wp-block-navigation__submenu-container a.wp-block-navigation-item__content:focus-visible { background:#7138ff!important; color:#fff; }

.hx-article-category { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.hx-article-category-pill { display:inline-flex; align-items:center; padding:8px 16px; border-radius:999px; background:var(--wp--preset--color--home-yellow,#f9d400); color:var(--wp--preset--color--home-black,#202027); font-size:14px; font-weight:700; line-height:1.4; }
.hx-article-category .wp-block-post-terms__separator { display:none; }
.hx-article-byline { gap:16px; padding-bottom:24px; border-bottom:1px solid #e8e5f0; font-size:14px; }
.hx-article-byline .hx-article-author { font-size:14px; }
.hx-article-byline .wp-block-post-author__avatar img { width:36px; height:36px; }
.hx-article-byline .wp-block-post-author__byline { margin:0 0 2px; font-size:12px; line-height:1.4; }
.hx-article-published { font-size:14px; }

/* Commentaires des articles : même langage que les cartes du blog (fond crème, arrondis, focus violet). */
.hx-article-comments { display:grid; gap:24px; padding:clamp(24px,4vw,40px); border-radius:24px; background:var(--wp--preset--color--home-cream,#fffef5); font-size:16px; line-height:1.65; }
.hx-article-comments > * { margin-block:0; }
.hx-article-comments :is(.wp-block-comments-title,.comment-reply-title) { margin:0; font-size:clamp(1.4rem,2.5vw,1.9rem); line-height:1.25; letter-spacing:-.025em; }
.hx-article-comments .wp-block-comment-template { margin:0; padding:0; list-style:none; }
.hx-article-comments .wp-block-comment-template ol { margin:0; padding-inline-start:clamp(16px,4vw,40px); list-style:none; }
.hx-article-comments .wp-block-comment-template > li + li { margin-top:4px; }
.hx-article-comments .wp-block-avatar img { display:block; }
.hx-article-comments .wp-block-comment-date a { color:inherit; opacity:.7; text-decoration:none; }
.hx-article-comments .wp-block-comment-content > * + * { margin-top:12px; }
.hx-article-comments :is(.wp-block-comment-reply-link,.wp-block-comment-edit-link) a { font-weight:700; text-underline-offset:4px; }
.hx-article-comments .wp-block-comments-pagination { gap:12px; flex-wrap:wrap; }

/* Formulaire */
.hx-article-comments .comment-respond { display:grid; gap:16px; margin:0; }
.hx-article-comments .comment-form { display:grid; gap:16px; margin:0; }
.hx-article-comments .comment-form > p { margin:0; }
.hx-article-comments :is(.logged-in-as,.comment-notes,.must-log-in) { margin:0; font-size:14px; }
.hx-article-comments .required-field-message { display:none; }
.hx-article-comments .comment-form label { display:block; margin-bottom:8px; font-size:14px; font-weight:700; }
.hx-article-comments .comment-form :is(textarea,input[type="text"],input[type="email"],input[type="url"]) { box-sizing:border-box; width:100%; margin:0; padding:14px 16px; border:1px solid #e8e5f0; border-radius:14px; background:#fff; color:var(--wp--preset--color--home-black,#202027); font:inherit; font-size:16px; line-height:1.6; }
.hx-article-comments .comment-form textarea { min-height:160px; resize:vertical; }
.hx-article-comments .comment-form :is(textarea,input):focus-visible { outline:3px solid var(--wp--preset--color--home-action,#7454e1); outline-offset:2px; border-color:transparent; }
.hx-article-comments .form-submit { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.hx-article-comments .form-submit .submit { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 24px; border:0; border-radius:999px; background:var(--wp--preset--color--home-action,#7454e1); color:#fff; font:inherit; font-size:15px; font-weight:700; line-height:1.4; cursor:pointer; }
.hx-article-comments .form-submit .submit:hover { background:var(--wp--preset--color--home-black,#202027); }
.hx-article-comments .form-submit .submit:focus-visible { outline:3px solid var(--wp--preset--color--home-action,#7454e1); outline-offset:4px; }
.hx-article-comments #cancel-comment-reply-link { margin-inline-start:12px; font-size:14px; font-weight:600; }

/* Visiteur non connecté : invitation claire à se connecter. */
.hx-article-comments .must-log-in { padding:20px; border-radius:16px; background:#fff; font-size:16px; }
.hx-article-comments .must-log-in a { color:var(--wp--preset--color--home-action,#7454e1); font-weight:700; text-underline-offset:4px; }
.hx-article-comments .must-log-in a:hover { color:var(--wp--preset--color--home-black,#202027); }
.hx-article-comments .must-log-in a:focus-visible { outline:3px solid var(--wp--preset--color--home-action,#7454e1); outline-offset:4px; }

/* Recherche et 404 : champ, cartes alignées sur le catalogue, état vide */
.hx-search-eyebrow { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.hx-search-inline { width: min(640px, 100%); margin-inline: auto; }
.hx-search-inline .wp-block-search__inside-wrapper {
    padding: 6px; border: 2px solid #202027; border-radius: 999px; background: #fff;
}
.hx-search-inline .wp-block-search__input { padding: 10px 16px; border: 0 !important; box-shadow: none; background: transparent; font-size: 17px; }
.hx-search-inline .wp-block-search__input:focus { outline: 0; }
.hx-search-inline .wp-block-search__inside-wrapper:focus-within { outline: 3px solid var(--wp--preset--color--home-action, #7454E1); outline-offset: 2px; }
.hx-search-inline .wp-block-search__button {
    margin: 0; padding: 12px 22px; border: 0; border-radius: 999px;
    color: #fff; background: #202027; font-weight: 700;
}
.hx-search-inline .wp-block-search__button:hover { background: var(--wp--preset--color--home-action, #7454E1); }

.hx-search-results { background: var(--wp--preset--color--home-lavender, #E6DCFF); }
.hx-result-list .wp-block-post-template { gap: 24px; }
.hx-result-card {
    box-sizing: border-box; position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%;
    padding: 24px; border: 1px solid var(--wp--preset--color--line, #dbe3ee); border-radius: 20px;
    background: #fff; color: #202027; transition: transform 200ms ease, box-shadow 200ms ease;
}
.hx-result-card > * { margin: 0; }
.hx-result-card h2, .hx-result-card .wp-block-post-title { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.hx-result-card h2 a { color: inherit; text-decoration: none; }
.hx-result-card p, .hx-result-card .wp-block-post-excerpt__excerpt { margin: 0; font-size: 15px; line-height: 24px; }
.hx-result-card .wp-block-post-excerpt { display: flex; flex-direction: column; gap: 16px; flex: 1; margin: 0; }
.hx-result-card .wp-block-post-excerpt__more-text, .hx-result-card .hx-result-more { margin-top: auto; }
.hx-result-card .wp-block-post-excerpt__more-link, .hx-result-card .hx-result-more a {
    display: inline-flex; padding: 12px 20px; border-radius: 99px;
    background: #202027; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
}
/* Toute la carte est cliquable, comme dans le catalogue. */
.hx-result-card .wp-block-post-excerpt__more-link::after, .hx-result-card .hx-result-more a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hx-result-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(32, 32, 39, .1); }
.hx-result-card:hover .wp-block-post-excerpt__more-link, .hx-result-card:hover .hx-result-more a { background: var(--wp--preset--color--home-action, #7454E1); }
.hx-result-card:focus-within { outline: 2px solid #202027; outline-offset: 3px; }
.hx-result-card a:focus-visible { outline: 0; }

.hx-search-empty {
    box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 24px;
    padding: 64px 32px; border-radius: 32px; color: #fff;
    background: var(--wp--preset--color--home-violet, #6548D9);
}
.hx-search-empty > * { margin: 0 !important; }
.hx-search-empty h2 { color: inherit; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.hx-search-empty p { max-width: 520px; font-size: 18px; line-height: 1.5; }
.hx-search-empty .wp-block-buttons { gap: 12px; margin-top: 8px !important; }
.hx-button-light .wp-block-button__link { border: 0; border-radius: 999px; background: #fff; color: #202027; font-weight: 700; }
.hx-button-light .wp-block-button__link:hover { background: #202027; color: #fff; }

.hx-404-code {
    margin: 0; font-family: var(--wp--preset--font-family--anton-sc);
    font-size: clamp(7rem, 22vw, 15rem); line-height: .85; letter-spacing: -.02em;
}
.hx-404-code span { color: var(--wp--preset--color--home-action, #7454E1); }
.hx-404-grid { gap: 24px; }
.hx-button-back .wp-block-button__link::before { content: "←"; margin-right: .1em; }
@media (prefers-reduced-motion: reduce) { .hx-result-card { transition: none; } .hx-result-card:hover { transform: none; } }
.hx-result-card .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Héros de la recherche et de la 404 : le contenu ne doit jamais déborder du fond jaune. */
:is(.hx-search-page, .hx-404-page) .has-home-yellow-background-color > .wp-block-group { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
:is(.hx-search-page, .hx-404-page) .wp-block-query-title { overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .hx-search-page .wp-block-query-title { font-size: clamp(1.75rem, 8vw, 2.5rem) !important; }
    .hx-search-inline .wp-block-search__input { min-width: 0; padding-inline: 12px; font-size: 16px; }
    .hx-search-inline .wp-block-search__button { padding-inline: 16px; }
}
