/*
Theme Name: Hervé BOURDON – Lumière de Marseille
Theme URI: https://herve-bourdon.com
Author: Hervé BOURDON
Author URI: https://herve-bourdon.com
Description: Thème bloc léger pour herve-bourdon.com : filets bleu filet de pêche, aplats denim, jean, soleil et tilleul, dégradé de lumière fixe, en-tête flottant encadré, frises d'étapes, carnets d'aquarelles, pixels marseillais et pied de page à grandes barres.
Version: 1.0.35
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: herve-bourdon
*/

/* ---------- Fond : dégradé de lumière, fixe au défilement ---------- */
body {
	background: var(--wp--preset--gradient--lumiere) fixed;
	background-color: var(--wp--preset--color--coton);
	min-height: 100vh;
}
::selection { background: var(--wp--preset--color--soleil); color: var(--wp--preset--color--encre); }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
mark, .has-surligne { background: var(--wp--preset--color--soleil); color: inherit; }
.has-surligne-tilleul mark, mark.has-tilleul { background: var(--wp--preset--color--tilleul); }
.has-surligne-jean mark, mark.has-jean { background: var(--wp--preset--color--jean); }
.hb-etiquette { font-family: var(--wp--preset--font-family--pixel); font-size: 12px; letter-spacing: 0.04em; }
.hb-pixel { display: block; image-rendering: pixelated; shape-rendering: crispEdges; }

/* ---------- En-tête flottant encadré ---------- */
.hb-header-wrap { position: sticky; top: 16px; z-index: 50; padding-top: 16px !important; }
.admin-bar .hb-header-wrap { top: 48px; }
.hb-header {
	background: rgba(250, 251, 253, 0.94);
	border: 1px solid var(--wp--preset--color--encre);
	box-shadow: 6px 6px 0 var(--wp--preset--color--denim);
	padding: 8px 8px 8px 16px;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hb-header .wp-block-navigation-item__content { padding: 10px 14px !important; border: 1px solid transparent; text-decoration: none; color: var(--wp--preset--color--encre); }
.hb-header .wp-block-navigation-item__content:hover,
.hb-header .current-menu-item > .wp-block-navigation-item__content { border-color: var(--wp--preset--color--encre); }
.hb-header .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--jean); }
.hb-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--encre) !important; box-shadow: 6px 6px 0 var(--wp--preset--color--denim); background: var(--wp--preset--color--coton) !important; }
.hb-header .wp-block-navigation { gap: 4px; }

/* ---------- Zonages à filets ---------- */
.hb-cases { border: 1px solid var(--wp--preset--color--filet); gap: 0 !important; }
.hb-cases > * { margin: 0 !important; }
.hb-cases > * + * { border-left: 1px solid var(--wp--preset--color--filet); }
.hb-cases + .hb-cases { border-top: 0; }
@media (max-width: 781px) {
	.hb-cases > * + * { border-left: 0; border-top: 1px solid var(--wp--preset--color--filet); }
}
.hb-case { padding: clamp(24px, 3.5vw, 48px); }
.hb-ligne-filet { border-bottom: 1px solid var(--wp--preset--color--filet); }
.hb-ombre { box-shadow: 8px 8px 0 var(--wp--preset--color--denim); }

/* Tuiles cliquables */
.hb-tile { position: relative; transition: background-color .25s ease, filter .25s ease; }
.hb-tile:hover { filter: brightness(1.04) saturate(1.05); }
.hb-tile .hb-tile-lien a { color: inherit; text-decoration: none; }
.hb-tile .hb-tile-lien a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Listes de billets en lignes ---------- */
.hb-lignes .wp-block-post { border-bottom: 1px solid var(--wp--preset--color--filet); margin: 0 !important; }
.hb-lignes .wp-block-post > .wp-block-group { padding: 22px 16px; transition: padding-left .25s ease, background-color .25s ease; }
.hb-lignes .wp-block-post > .wp-block-group:hover { padding-left: 40px; background: var(--wp--preset--color--ciel-pale); }
.hb-lignes .wp-block-post-title { margin: 0; }
.hb-lignes .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--encre); }

/* Étiquettes de catégories en aplats */
.wp-block-post-terms.hb-puces a { display: inline-block; font-size: 13px; padding: 4px 10px; margin: 0 4px 4px 0; background: var(--wp--preset--color--ciel-pale); color: var(--wp--preset--color--encre); text-decoration: none; }
.wp-block-post-terms.hb-puces .wp-block-post-terms__separator { display: none; }
.hb-puces a[href*="valvert-on-the-road"] { background: var(--wp--preset--color--soleil) !important; }
.hb-puces a[href*="marseille-cap-nord"] { background: var(--wp--preset--color--jean) !important; }
.hb-puces a[href*="valvertnet"] { background: var(--wp--preset--color--tilleul) !important; }

/* ---------- Bandeau défilant ---------- */
.hb-bandeau { overflow: hidden; border-top: 1px solid var(--wp--preset--color--encre); border-bottom: 1px solid var(--wp--preset--color--encre); }
.hb-bandeau .hb-bandeau-piste { display: flex; flex-wrap: nowrap !important; width: max-content; gap: 0 !important; }
.hb-bandeau .hb-bandeau-piste > * { margin: 0 !important; padding-right: 48px; white-space: nowrap; }

/* ---------- Frise d'étapes (liste « hb-etapes ») ---------- */
.hb-etapes { list-style: none; margin: 0; padding: 22px 0 0 !important; display: flex; border-top: 2px solid var(--wp--preset--color--denim); overflow-x: auto; }
.hb-etapes > li { flex: 1 0 120px; position: relative; padding-right: 10px; font-size: 13px; color: var(--wp--preset--color--ardoise); line-height: 1.4; }
.hb-etapes > li strong { display: block; font-size: 15px; color: var(--wp--preset--color--encre); }
.hb-etapes > li::before { content: ""; position: absolute; top: -30px; left: 0; width: 14px; height: 14px; background: var(--wp--preset--color--denim); }
.hb-etapes > li:last-child::before { top: -32px; left: -2px; width: 18px; height: 18px; background: var(--wp--preset--color--soleil); border: 1px solid var(--wp--preset--color--encre); }
.hb-etapes > li:last-child strong { font-family: var(--wp--preset--font-family--titres); font-weight: 800; font-size: 16px; }
.hb-etapes.is-a-venir { border-top-style: dashed; }
@media (max-width: 781px) {
	.hb-etapes.is-verticale-mobile { display: block; border-top: 0; border-left: 2px solid var(--wp--preset--color--denim); padding: 0 0 0 18px !important; }
	.hb-etapes.is-verticale-mobile > li { padding: 0 0 18px; }
	.hb-etapes.is-verticale-mobile > li::before { top: 4px; left: -26px; }
	.hb-etapes.is-verticale-mobile > li:last-child::before { left: -28px; }
}
/* Variante verticale (colonne latérale d'un billet) */
.hb-etapes.is-verticale { display: block; border-top: 0; border-left: 2px solid var(--wp--preset--color--denim); padding: 0 0 0 18px !important; }
.hb-etapes.is-verticale > li { padding: 0 0 18px; }
.hb-etapes.is-verticale > li::before { top: 4px; left: -26px; }
.hb-etapes.is-verticale > li:last-child::before { left: -28px; }

/* ---------- Carnets : galeries d'aquarelles et de photos ---------- */
.wp-block-gallery.hb-carnet { gap: 24px !important; }
.wp-block-gallery.hb-carnet .wp-block-image { background: var(--wp--preset--color--coton); border: 1px solid var(--wp--preset--color--filet); padding: 10px; transition: transform .3s ease, box-shadow .3s ease; }
.wp-block-gallery.hb-carnet .wp-block-image:hover { transform: rotate(-1deg) translateY(-4px); box-shadow: 8px 8px 0 var(--wp--preset--color--denim); }
.wp-block-gallery.hb-carnet .wp-block-image figcaption { position: static !important; background: none !important; color: var(--wp--preset--color--encre) !important; padding: 10px 0 0 !important; font-size: 14px; text-align: left; max-height: none !important; }
.wp-block-gallery.hb-carnet.is-cropped .wp-block-image img { aspect-ratio: 3 / 4; }
.hb-voyages-nav a { display: inline-block; padding: 14px 18px; border: 1px solid var(--wp--preset--color--filet); text-decoration: none; color: var(--wp--preset--color--encre); font-family: var(--wp--preset--font-family--titres); font-weight: 800; }
.hb-voyages-nav a:hover { background: var(--wp--preset--color--soleil); }

/* ---------- Pied de page : grandes barres ---------- */
.hb-barres { margin: 0 !important; }
.hb-barres > * { margin: 0 !important; transform-origin: left; }
.hb-sites a { text-decoration: none; color: var(--wp--preset--color--coton); }
.hb-sites .hb-site { transition: background-color .25s ease; }
.hb-sites .hb-site:hover { background: #24406A; }

/* ---------- Animations ---------- */
@keyframes hbmarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hbbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hbpop { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hbbar { from { transform: scaleX(0.12); } to { transform: scaleX(1); } }
@keyframes hbride { from { transform: translateX(0); } to { transform: translateX(calc(100% - 60px)); } }
.hb-bandeau .hb-bandeau-piste { animation: hbmarq 38s linear infinite; }
.hb-bob { animation: hbbob 2.4s steps(2) infinite; }
.hb-bob-2 { animation: hbbob 2.4s steps(2) .6s infinite; }
.hb-bob-3 { animation: hbbob 2.4s steps(2) 1.2s infinite; }
.hb-pop { animation: hbpop .7s cubic-bezier(.2, .8, .2, 1) both; }
.hb-pop-2 { animation: hbpop .7s cubic-bezier(.2, .8, .2, 1) .15s both; }
@supports (animation-timeline: view()) {
	.hb-reveal, .hb-cases.hb-reveal-enfants > * { animation: hbpop linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
	.hb-barres > * { animation: hbbar linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	body { background-attachment: scroll; }
}
/* L'éditeur n'anime pas, pour rester confortable */
.editor-styles-wrapper .hb-bandeau .hb-bandeau-piste,
.editor-styles-wrapper .hb-reveal,
.editor-styles-wrapper .hb-barres > * { animation: none !important; }

/* ---------- Composants des modèles et compositions ---------- */
.hb-main { padding-top: 40px; }
.hb-footer-part { margin-top: var(--wp--preset--spacing--60); }
.hb-section { margin-top: var(--wp--preset--spacing--60) !important; }
.hb-section-tete { margin-bottom: 32px; gap: 24px; }
.hb-section-tete h2 { margin: 0; }
.hb-ligne-encre { border-bottom: 1px solid var(--wp--preset--color--encre); padding-bottom: 16px; margin-bottom: 0; }
.hb-titre-moyen { font-size: 32px !important; }
h1 em, h2 em, .hb-hero h1 em { font-style: italic; font-weight: 400; }
.hb-arobase { border: 1px solid currentColor; padding: 2px 6px; margin: 0; }
@media (max-width: 781px) { .hb-arobase { display: none; } }
.hb-header .wp-block-site-title { margin: 0; }
.hb-soleil { color: var(--wp--preset--color--soleil); }

/* Ouverture */
.hb-hero { margin-top: 0 !important; }
.hb-hero .hb-case { display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.hb-hero h1 { margin: 0; }
.hb-hero-visuel { position: relative; overflow: hidden; min-height: 460px; justify-content: space-between !important; }
.hb-hero-haut, .hb-hero-bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hb-hero-haut { align-items: flex-start; }
.hb-hero-mer { height: 120px; opacity: .55; background: repeating-linear-gradient(0deg, var(--wp--preset--color--jean) 0 6px, transparent 6px 14px); }
.hb-hero-phrase { margin: 0; font-family: var(--wp--preset--font-family--titres); font-size: 21px; line-height: 1.1; text-align: right; max-width: 11em; }

/* Chiffres */
.hb-chiffres { border-top: 0 !important; }
.hb-chiffre { font-size: clamp(27px, 3.6vw, 45px) !important; margin: 0 0 4px; white-space: nowrap; }
.hb-chiffres p { margin: 0; }

/* Bandeau */
.hb-bandeau { margin-top: var(--wp--preset--spacing--60) !important; padding: 18px 0; }
.hb-bandeau-texte { font-family: var(--wp--preset--font-family--titres); font-weight: 600; font-size: 24px; line-height: 1.2; }

/* Tuiles des routes */
.hb-tuile-route { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; }
.hb-tuile-route h3 { font-size: 27px; margin: 0; }
.hb-tuile-route p:last-child { margin: 12px 0 0; font-size: 16px; line-height: 1.5; }
.hb-tuile-claire { background: rgba(250, 251, 253, .6); }

/* Lignes de billets */
.hb-ligne { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: baseline; }
.hb-ligne-titre { font-size: 21px !important; font-weight: 600 !important; letter-spacing: -0.01em; }
.hb-ligne-extrait .wp-block-post-excerpt { margin-top: 8px; }
.hb-ligne-extrait .wp-block-post-excerpt__more-text { display: none; }
@media (max-width: 781px) { .hb-ligne { grid-template-columns: 1fr; gap: 6px; } }
.hb-pagination { margin-top: 32px; font-weight: 600; }

/* À propos */
.hb-case-pixel { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 220px; }
.hb-citation { font-family: var(--wp--preset--font-family--titres); font-size: 27px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

/* Archives, pages */
.hb-archive-tete { margin-bottom: 0; }
.hb-archive-tete h1 { margin: 0; }
.hb-archive-tete + .hb-lignes { margin-top: 0; }
.hb-une img { border: 1px solid var(--wp--preset--color--filet); }
.hb-contenu > * + * { margin-top: 24px; }
.hb-contenu img { height: auto; }
.single .hb-billet-corps .hb-contenu .wp-block-gallery { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; width: 100%; max-width: 100%; min-width: 0; }
.single .hb-billet-corps .hb-contenu .wp-block-image { display: grid; grid-template-rows: minmax(0, 1fr) auto; box-sizing: border-box; width: 100% !important; min-width: 0 !important; max-width: 100% !important; aspect-ratio: 4 / 3; overflow: hidden; margin-left: 0 !important; margin-right: 0 !important; }
.single .hb-billet-corps .hb-contenu .wp-block-image > a { display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.single .hb-billet-corps .hb-contenu .wp-block-image img { display: block; width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: cover; object-position: center; }
.single .hb-billet-corps .hb-contenu p > img,
.single .hb-billet-corps .hb-contenu > img { display: block; width: 100% !important; max-width: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; margin-inline: auto; }

/* Billet */
.hb-billet-tete .hb-case { display: flex; flex-direction: column; gap: 24px; }
.hb-billet-titre { margin: 0; font-size: var(--wp--preset--font-size--xx-large); }
.hb-billet-meta { gap: 6px; }
.hb-billet-meta > * { margin: 0 !important; }
.hb-billet-visuel { position: relative; min-height: 360px; padding: 0 !important; overflow: hidden; }
.hb-billet-visuel .wp-block-post-featured-image { margin: 0; height: 100%; }
.hb-billet-visuel .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.hb-velo-piste { position: absolute; left: 24px; right: 24px; bottom: 16px; height: 60px; pointer-events: none; }
.hb-velo-piste svg { position: absolute; left: 0; bottom: 0; }
.hb-velo-roule { animation: hbride 6s steps(24) infinite alternate; }
.hb-billet-visuel .wp-block-post-featured-image + .hb-velo-piste { display: none; }
.hb-billet-corps { border-top: 0 !important; }
.hb-billet-aside { display: flex; flex-direction: column; gap: 20px; }
.hb-encart { padding: 20px; gap: 16px; align-items: center; }
.hb-encart p { margin: 0; }
.hb-voisins { gap: 0 !important; border-top: 0 !important; }
.hb-voisin { margin: 0 !important; font-family: var(--wp--preset--font-family--titres); font-size: 18px; font-weight: 600; }
.hb-voisin a { text-decoration: none; color: var(--wp--preset--color--encre); }
.hb-voisin + .hb-voisin { border-left: 1px solid var(--wp--preset--color--filet); }
.hb-commentaires { margin-top: var(--wp--preset--spacing--50); }

/* Carnets */
.hb-carnets-tete h1 { margin: 12px 0; }
.hb-voyages-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-voyage { border: 1px solid var(--wp--preset--color--filet); margin-top: var(--wp--preset--spacing--50) !important; scroll-margin-top: 120px; }
.hb-voyage-tete { padding: 22px 28px; gap: 16px; box-shadow: inset 0 -6px 0 var(--wp--preset--color--denim); }
.hb-voyage-tete h2 { margin: 0; font-size: 27px !important; }
.hb-voyage-tete p { margin: 0; }
.hb-voyage-corps { padding: 40px 28px 32px; background: rgba(250, 251, 253, .55); }
.hb-voyage-corps .hb-etapes { margin-bottom: 40px; }

/* Pied de page */
.hb-pied { padding-top: 64px; padding-bottom: 48px; }
.hb-pied-haut { border-bottom: 1px solid var(--wp--preset--color--filet); padding-bottom: 40px; margin-bottom: 48px !important; gap: 32px; }
.hb-pied-titre { margin: 0; max-width: 12em; font-size: clamp(29px, 5vw, 51px) !important; }
.hb-abonnement { max-width: 420px; margin: 0 !important; }
.hb-sites { margin-top: 16px !important; }
.hb-sites h3 { font-size: 19px; margin: 0 0 10px; }
.hb-sites p { margin: 0 0 10px; }
.hb-barres > :nth-child(1) { height: 28px; }
.hb-barres > :nth-child(2) { height: 44px; }
.hb-barres > :nth-child(3) { height: 64px; }
.hb-barres > :nth-child(4) { height: 88px; }
.hb-pied-bas { padding-top: 28px; padding-bottom: 28px; }
.hb-pied-bas p { margin: 0; }
.hb-pixels-pied { display: flex; gap: 28px; align-items: flex-end; }
.hb-bouton-soleil .wp-block-button__link:hover { background: var(--wp--preset--color--coton) !important; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--encre); border: 1px solid var(--wp--preset--color--encre); }

/* 1.0.1 : une galerie vide ne laisse pas de trou */
.wp-block-gallery.hb-carnet:empty { display: none; }

/* 1.0.3 : frise verticale du voyage dans la colonne des billets */
.hb-frise-billet .hb-etiquette { margin: 0 0 14px; color: var(--wp--preset--color--denim); }
.hb-etapes-compacte > li { padding-bottom: 12px !important; font-size: 12px; }
.hb-etapes-compacte > li strong { font-size: 14px; }
.hb-etapes-compacte > li:last-child strong { font-size: 16px; }
.hb-etapes > li.is-courante strong { background: var(--wp--preset--color--tilleul); padding: 0 4px; display: inline-block; }
.hb-etapes > li.is-courante::before { background: var(--wp--preset--color--tilleul) !important; border: 1px solid var(--wp--preset--color--encre); }
.hb-ici { font-family: var(--wp--preset--font-family--pixel); font-size: 10px; color: var(--wp--preset--color--encre); white-space: nowrap; }

/* 1.0.4 : étapes cliquables */
.hb-etapes-compacte > li strong a { color: inherit; text-decoration: none; }
.hb-etapes-compacte > li strong a:hover { text-decoration: underline; }

/* 1.0.6 : billets sous chaque étape */
.hb-etape-billets { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; }
.hb-etape-billets a { color: var(--wp--preset--color--denim); text-decoration: underline; text-decoration-color: var(--wp--preset--color--filet); }
.hb-etape-billets a:hover { color: var(--wp--preset--color--encre); }

/* 1.0.7 : image à la une des billets solarisée en deux bleus, avec trame d'imprimerie à 45° */
.hb-billet-visuel .wp-block-post-featured-image { position: relative; overflow: hidden; }
.hb-billet-visuel .wp-block-post-featured-image img { filter: url(#hb-solarise-35); transition: filter .5s ease; }
.hb-billet-visuel .wp-block-post-featured-image::after {
	content: ""; position: absolute; inset: -50%; pointer-events: none;
	background-image: radial-gradient(circle at center, rgba(30, 53, 80, .42) 0 3.3px, transparent 3.7px);
	background-size: 12px 12px; transform: rotate(45deg); transition: opacity .5s ease;
}
.hb-billet-visuel:hover .wp-block-post-featured-image img { filter: none; }
.hb-billet-visuel .wp-block-post-featured-image::before {
	content: ""; position: absolute; inset: -50%; pointer-events: none; z-index: 1;
	background-image: radial-gradient(circle at center, rgba(143, 175, 203, .38) 0 2.8px, transparent 3.2px);
	background-size: 12px 12px; transform: rotate(30deg); transition: opacity .5s ease;
}
.hb-billet-visuel .wp-block-post-featured-image::after { z-index: 1; }
.hb-billet-visuel:hover .wp-block-post-featured-image::before,
.hb-billet-visuel:hover .wp-block-post-featured-image::after { opacity: 0; }

/* 1.0.9 : diaporama solarisé et tramé dans le grand bloc de l'accueil */
.hb-hero-visuel { position: relative; isolation: isolate; }
.hb-hero-visuel > * { position: relative; z-index: 2; }
.hb-hero-visuel > .hb-diaporama { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hb-diapo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; }
.hb-diapo:first-of-type { opacity: 1; }
.hb-diaporama::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 53, 80, .75), rgba(30, 53, 80, 0) 45%, rgba(30, 53, 80, .35)); z-index: 3; }
.hb-diaporama-trame, .hb-diaporama-trame::after { position: absolute; inset: -50%; pointer-events: none; z-index: 2; }
.hb-diaporama-trame { background-image: radial-gradient(circle at center, rgba(30, 53, 80, .42) 0 3.3px, transparent 3.7px); background-size: 12px 12px; transform: rotate(45deg); }
.hb-diaporama-trame::after { content: ""; inset: 0; background-image: radial-gradient(circle at center, rgba(143, 175, 203, .38) 0 2.8px, transparent 3.2px); background-size: 12px 12px; transform: rotate(-15deg); }
.hb-diaporama ~ .hb-hero-mer { opacity: 0; }
.hb-hero-visuel .hb-hero-phrase { text-shadow: 0 1px 0 rgba(20, 35, 58, .5); }
@media (prefers-reduced-motion: reduce) { .hb-diapo { animation: none !important; } .hb-diapo:first-of-type { opacity: 1 !important; } }

/* 1.0.10 : sur l'accueil, effet solarisé et trames à 20 %, photo normale au survol */
.hb-diapo::before { content: ""; position: absolute; inset: 0; background: inherit; filter: url(#hb-solarise); opacity: var(--hb-effet, .2); transition: opacity .5s ease; }
.hb-diaporama-trame { opacity: var(--hb-effet, .2); transition: opacity .5s ease; }
.hb-diaporama::after { transition: opacity .5s ease; }
.hb-hero-visuel:hover .hb-diapo::before,
.hb-hero-visuel:hover .hb-diaporama-trame { opacity: 0; }
.hb-hero-visuel:hover .hb-diaporama::after { opacity: .45; }

/* 1.0.11 : miniatures dans les listes de billets */
.hb-ligne.hb-ligne-vignette { grid-template-columns: 112px 1fr auto; align-items: start; }
.hb-ligne-vignette .wp-block-post-date { display: block; margin-bottom: 4px; }
.hb-vignette { margin: 0 !important; width: 112px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--wp--preset--color--filet); background: var(--wp--preset--color--jean); }
.hb-vignette a, .hb-vignette img { display: block; width: 100%; height: 100%; }
.hb-vignette img { object-fit: cover; transition: transform .4s ease; }
.hb-lignes .wp-block-post > .wp-block-group:hover .hb-vignette img { transform: scale(1.06); }
.hb-vignette-vide a { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 9' width='150' height='90' shape-rendering='crispEdges'%3E%3Cpath fill='%2314233A' d='M6 0h1v1h-1zM7 0h1v1h-1zM7 1h1v1h-1zM12 1h1v1h-1zM13 1h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM7 2h1v1h-1zM8 2h1v1h-1zM9 2h1v1h-1zM10 2h1v1h-1zM11 2h1v1h-1zM3 3h1v1h-1zM6 3h1v1h-1zM10 3h1v1h-1zM1 4h1v1h-1zM2 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM6 4h1v1h-1zM9 4h1v1h-1zM10 4h1v1h-1zM11 4h1v1h-1zM12 4h1v1h-1zM0 5h1v1h-1zM4 5h1v1h-1zM5 5h1v1h-1zM8 5h1v1h-1zM9 5h1v1h-1zM13 5h1v1h-1zM0 6h1v1h-1zM2 6h1v1h-1zM4 6h1v1h-1zM9 6h1v1h-1zM11 6h1v1h-1zM13 6h1v1h-1zM0 7h1v1h-1zM4 7h1v1h-1zM9 7h1v1h-1zM13 7h1v1h-1zM1 8h1v1h-1zM2 8h1v1h-1zM3 8h1v1h-1zM10 8h1v1h-1zM11 8h1v1h-1zM12 8h1v1h-1z'/%3E%3C/svg%3E") center / 60% no-repeat; }
@media (max-width: 781px) { .hb-ligne.hb-ligne-vignette { grid-template-columns: 84px 1fr; } .hb-ligne-vignette .hb-puces { grid-column: 2; } .hb-vignette { width: 84px; } }

/* 1.0.12 : billets protégés (devinette) */
.hb-devinette{border:1px solid var(--wp--preset--color--filet,#5E90BE);background:var(--wp--preset--color--ciel-pale,#E6EEF6);padding:1.5rem;margin:2rem 0;border-radius:2px}
.hb-devinette-question{font-size:1.35rem;font-weight:700;color:var(--wp--preset--color--denim,#1E3550);margin:0 0 1rem}
.hb-devinette input[type=password]{border:1px solid var(--wp--preset--color--filet,#5E90BE);padding:.55rem .8rem;font:inherit;background:#fff;width:9rem}
.hb-devinette input[type=submit]{border:0;background:var(--wp--preset--color--soleil,#FFBE1A);color:var(--wp--preset--color--encre,#14233A);padding:.6rem 1.1rem;font:inherit;font-weight:700;cursor:pointer}
.hb-devinette input[type=submit]:hover{background:var(--wp--preset--color--tilleul,#C5D86D)}

/* 1.0.13 : recherche « Trouve : » dans la barre du haut, crédit du thème */
.hb-trouve{display:flex;align-items:center;gap:.4rem;margin:0}
.hb-trouve .wp-block-search__label{margin:0;font-size:.85rem;font-weight:700;color:var(--wp--preset--color--denim,#1E3550);white-space:nowrap}
.hb-trouve .wp-block-search__inside-wrapper{border:0;padding:0}
.hb-trouve .wp-block-search__input{width:9rem;border:1px solid var(--wp--preset--color--filet,#5E90BE);border-radius:2px;background:var(--wp--preset--color--coton,#FAFBFD);padding:.4rem .6rem;font:inherit;font-size:.9rem;transition:width .25s ease,border-color .2s}
.hb-trouve .wp-block-search__input:focus{width:13rem;outline:none;border-color:var(--wp--preset--color--soleil,#FFBE1A);box-shadow:0 0 0 2px var(--wp--preset--color--soleil,#FFBE1A)}

@media (max-width:781px){.hb-trouve .wp-block-search__input,.hb-trouve .wp-block-search__input:focus{width:100%}.hb-trouve{width:100%}}

/* 1.0.15 : logo choisi dans l'identité du site, chantiers en partie de modèle */
.hb-header .wp-block-site-logo img { image-rendering: pixelated; height: auto; }
.hb-header .wp-block-site-logo { line-height: 0; }
.hb-chantiers-part > .alignwide { max-width: none; }

/* 1.0.19 : en-tête sur deux lignes, crédit sur la bande filet */
.hb-header { gap: 8px; }
.hb-header-ligne { width: 100%; gap: 12px; }
.hb-header-outils { gap: 12px; align-items: center; }
.hb-barre-credit { display: flex; align-items: center; animation: none !important; transform: none !important; }
.hb-barre-credit .hb-credit-theme { margin: 0 auto; width: 100%; text-align: left; }

/* 1.0.20 : abonnement lisible sur mobile et visionneuse des carnets. */
.hb-header-outils .wp-block-buttons,.hb-header-outils .wp-block-button { flex-shrink:0; }
.hb-header-outils .wp-block-button__link { white-space:nowrap; overflow-wrap:normal; word-break:normal; }
.hb-header-outils .hb-trouve { min-width:0; }
@media(max-width:781px){.hb-header-outils{width:100%;flex-wrap:wrap!important;justify-content:space-between!important}.hb-header-outils .hb-trouve{flex:1 1 9rem;width:auto}.hb-header-outils .wp-block-search__input{box-sizing:border-box;min-width:0}}
.hb-visionneuse{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:3.5rem 4rem 1rem;border:0;background:rgba(20,35,58,.97);color:#fff;}
.hb-visionneuse[open]{display:grid;grid-template-columns:1fr;align-items:center;}
.hb-visionneuse::backdrop{background:rgba(20,35,58,.85)}
.hb-visionneuse figure{margin:0;min-width:0;text-align:center;max-height:100%;overflow:auto;}
.hb-visionneuse img{display:block;margin:auto;max-width:100%;max-height:calc(100dvh - 10rem);width:auto;height:auto;object-fit:contain;}
.hb-visionneuse figcaption{padding:1rem;white-space:pre-line;color:#fff;font-size:1rem;}
.hb-visionneuse button{position:absolute;z-index:1;border:1px solid #8FAFCB;background:#1E3550;color:#fff;min-width:44px;min-height:44px;cursor:pointer;font-size:1.4rem;}
.hb-visionneuse button:focus-visible{outline:3px solid #FFBE1A;outline-offset:3px;}
.hb-fermer{top:.5rem;right:.5rem}.hb-precedent{top:50%;left:.5rem}.hb-suivant{top:50%;right:.5rem}
.hb-visionneuse [hidden]{display:none!important}
@media(max-width:600px){.hb-visionneuse{padding:3.5rem .5rem 4rem}.hb-precedent,.hb-suivant{top:auto!important;bottom:.5rem}.hb-visionneuse img{max-height:calc(100dvh - 13rem)}}

/* 1.0.22 : trames de l'image à la une à 35 %, visionneuse des billets, frise en haut des voyages */
.hb-billet-visuel .wp-block-post-featured-image::before,
.hb-billet-visuel .wp-block-post-featured-image::after { opacity: .35; }
.hb-billet-visuel:hover .wp-block-post-featured-image::before,
.hb-billet-visuel:hover .wp-block-post-featured-image::after { opacity: 0; }
.hb-une-repli img { width: 100%; height: 100%; object-fit: cover; }
.single .hb-billet-visuel img, .single .wp-block-post-content img { cursor: zoom-in; }
.single .wp-block-post-content a:not([href*="herve-bourdon.com"]):not([href^="/"]) img { cursor: pointer; }
.hb-frise-horizontale { margin: 8px 0 24px; }
.hb-frise-horizontale .hb-etapes { padding-top: 30px !important; }
.hb-frise-horizontale .hb-etapes > li { flex: 0 0 140px; }

/* ---------- 1.0.29 — Cartes qui défilent (voyages, galeries) ---------- */
.hb-defile { position: relative; margin-top: 24px; }
.hb-defile-piste { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--wp--preset--color--filet) transparent; }
.hb-defile-piste:focus-visible { outline: 2px solid var(--wp--preset--color--soleil); outline-offset: 4px; }
.hb-carte { flex: 0 0 clamp(200px, 26%, 280px); scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--wp--preset--color--filet); background: var(--wp--preset--color--coton); color: var(--wp--preset--color--encre); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.hb-carte:hover, .hb-carte:focus-visible { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--wp--preset--color--soleil); }
.hb-carte-image { display: block; aspect-ratio: 4 / 3; background: var(--wp--preset--color--jean) center / cover no-repeat; border-bottom: 1px solid var(--wp--preset--color--filet); }
.hb-carte-sans-image { background-image: linear-gradient(135deg, var(--wp--preset--color--jean), var(--wp--preset--color--ciel-pale)); }
.hb-carte-texte { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.hb-carte-titre { font-family: var(--wp--preset--font-family--titres); font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.hb-carte-meta { font-family: var(--wp--preset--font-family--pixel); font-size: 12px; color: var(--wp--preset--color--ardoise); }
.hb-defile-boutons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.hb-defile-boutons button { min-width: 44px; min-height: 44px; border: 1px solid var(--wp--preset--color--encre); background: var(--wp--preset--color--coton); color: var(--wp--preset--color--encre); font-size: 18px; cursor: pointer; }
.hb-defile-boutons button:hover, .hb-defile-boutons button:focus-visible { background: var(--wp--preset--color--soleil); }
@media (max-width: 781px) { .hb-carte { flex-basis: 72%; } }
@media (prefers-reduced-motion: reduce) { .hb-defile-piste { scroll-behavior: auto; } .hb-carte { transition: none; } }

/* ---------- 1.0.29 — « À lire » : vignette alignée en tête du titre, de l'extrait et de la date ---------- */
.hb-lignes .hb-ligne { display: grid !important; grid-template-columns: 112px 1fr auto; gap: 20px; align-items: start !important; }
.hb-lignes .hb-ligne > .wp-block-post-featured-image { float: none !important; margin: 0 !important; width: 112px !important; align-self: start; }
.hb-lignes .hb-ligne > .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hb-lignes .hb-ligne > .wp-block-group { margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.hb-lignes .hb-ligne > .wp-block-group > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.hb-lignes .hb-ligne .wp-block-post-title { line-height: 1.15; }
.hb-lignes .hb-ligne .wp-block-post-excerpt__excerpt { margin: 0; }
.hb-lignes .hb-ligne > .hb-puces { margin: 0 !important; align-self: start; }
@media (max-width: 781px) { .hb-lignes .hb-ligne { grid-template-columns: 84px 1fr; } .hb-lignes .hb-ligne > .wp-block-post-featured-image { width: 84px !important; } .hb-lignes .hb-ligne > .hb-puces { grid-column: 2; } }

/* ---------- 1.0.29 — Bloc « À propos » (citation) : photo en fond de la case de gauche
   (modifiable via --hb-apropos-photo dans « CSS additionnel ») ---------- */
.hb-case-pixel,
.hb-cases:has(.hb-citation) > .wp-block-column:first-child { background-image: linear-gradient(180deg, rgba(197, 216, 109, 0) 45%, rgba(197, 216, 109, .92) 100%), var(--hb-apropos-photo) !important; background-size: 100% 100%, cover !important; background-position: 0 0, center 28% !important; background-repeat: no-repeat !important; min-height: 380px; }
@media (max-width: 781px) { .hb-case-pixel, .hb-cases:has(.hb-citation) > .wp-block-column:first-child { min-height: 420px; } }

/* 1.0.29 — Sur-titre au-dessus des chiffres de l'accueil */
.hb-sur-titre { margin: 0 auto 12px !important; font-size: clamp(24px, 3vw, 36px) !important; }
.hb-sur-titre a { color: var(--wp--preset--color--denim); text-decoration: none; }
.hb-sur-titre a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* 1.0.31 — « À lire » : titre, extrait et date toujours alignés à gauche (le groupe intérieur « contraint » centrait les textes courts) */
.hb-lignes .hb-ligne > .wp-block-group { min-width: 0; text-align: left; }
.hb-lignes .hb-ligne > .wp-block-group > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; }
.hb-lignes .hb-ligne .wp-block-post-date { align-self: flex-start; }
.hb-lignes .hb-ligne > .hb-puces { justify-self: end; text-align: right; }

/* 1.0.33 — Frise des pages de voyage : toute la largeur de page (et non la colonne de texte) */
.is-layout-constrained > .hb-frise-horizontale { max-width: var(--wp--style--global--wide-size) !important; width: 100%; margin-left: auto !important; margin-right: auto !important; }
.hb-frise-horizontale .hb-etapes { width: 100%; overflow-x: auto; scrollbar-width: thin; }
.hb-frise-horizontale .hb-etapes > li { flex: 1 0 140px; }

/* 1.0.35 — Galerie native [gallery] : grille de vignettes dans la colonne, comme les carnets */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 !important; }
.gallery.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery br { display: none; }
.gallery .gallery-item { margin: 0; width: auto !important; max-width: none; border: 1px solid var(--wp--preset--color--filet); background: var(--wp--preset--color--coton); padding: 6px; }
.gallery .gallery-icon, .gallery .gallery-icon a { display: block; }
.gallery .gallery-item img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery .gallery-caption { font-size: 14px; color: var(--wp--preset--color--ardoise); padding: 6px 2px 0; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
