/* ==========================================================================
   Dr Ayhan Bakar : styles du thème
   1. Variables et bases          6. Andrologie (illustrations animées)
   2. En-tête et navigation       7. Soins, examens, étapes, lieux, docteur
   3. Boutons et éléments         8. Questions, appel final, pied de page
   4. Haut de page                9. Animations (chargement, défilement)
   5. Choix du motif             10. Adaptations mobiles et mouvements réduits
   ========================================================================== */

/* 1. Variables et bases ---------------------------------------------------- */
:root {
	--bk-foret: var(--wp--preset--color--foret, #1B3A57);
	--bk-foret-2: var(--wp--preset--color--foret-2, #23486B);
	--bk-sapin: var(--wp--preset--color--sapin, #2A7F86);
	--bk-lichen: var(--wp--preset--color--lichen, #7FC4C8);
	--bk-porcelaine: var(--wp--preset--color--porcelaine, #EEF2F4);
	--bk-encre: var(--wp--preset--color--encre, #1B3A57);
	--bk-ardoise: var(--wp--preset--color--ardoise, #4B5E70);
	--bk-brume: var(--wp--preset--color--brume, #D6E4EC);
	--bk-ligne: #DCE4E9;
	--bk-leaf: clamp(56px, 9vw, 130px);
	--bk-leaf-md: clamp(36px, 5vw, 64px);
	--bk-leaf-sm: clamp(22px, 3vw, 40px);
	--bk-ease: cubic-bezier(.2, .75, .1, 1);
	--bk-radius: 8px; /* boutons et champs : un seul arrondi, sobre */
	--bk-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	--bk-display: var(--wp--preset--font-family--display, Manrope, system-ui, sans-serif);
	--bk-mono: var(--wp--preset--font-family--monogramme, 'Cormorant Garamond', Georgia, serif);
	--bk-sapin-fonce: #21666C;
}

.wp-site-blocks > * { margin-block: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }
:focus-visible { outline: 3px solid var(--bk-sapin); outline-offset: 3px; }
.bk-dark :focus-visible { outline-color: var(--bk-lichen); }
.bk-hide { display: none !important; }

/* Rythme des sections */
.bk-section { padding-block: clamp(5rem, 9vw, 8rem); position: relative; }
body .bk-section > * + * { margin-block-start: clamp(2.25rem, 4vw, 3.5rem); }
.bk-section > * { margin-block-end: 0; }

/* Titre de section + texte d'introduction côte à côte */
.wp-block-group.bk-head { gap: 1rem 4rem; }
.bk-head > h2 { max-width: 13ch; margin: 0; }
.bk-head > p { max-width: 28em; margin: 0; color: var(--bk-ardoise); }
.bk-dark .bk-head > p, .bk-dark p { color: var(--bk-brume); }

.bk-dark :where(p, li) a { color: var(--bk-lichen); }
.bk-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.4; }

/* Grilles maison : on neutralise les marges de flux de WordPress */
.bk-hero__grid > *, .bk-bento > *, .bk-exrow > *, .bk-cards2 > *, .bk-steps > *,
.bk-doc > *, .bk-panel > *, .bk-tile > *, .bk-card > *, .bk-card__body > *, .bk-place > *,
.bk-place__body > *, .bk-dur > *, .bk-stat > *, .bk-andro__intro > *,
.bk-footer__grid > *, .bk-cta > * { margin-block: 0; }

/* Formes « feuille » */
.wp-block-image.is-style-feuille img, .wp-block-group.is-style-feuille { border-radius: 0 var(--bk-leaf) var(--bk-leaf) var(--bk-leaf); }
.wp-block-image.is-style-feuille-inverse img, .wp-block-group.is-style-feuille-inverse { border-radius: var(--bk-leaf) 0 var(--bk-leaf) var(--bk-leaf); }
.wp-block-group.is-style-feuille, .wp-block-group.is-style-feuille-inverse { overflow: hidden; }
.bk-r1 { border-radius: 0 var(--bk-leaf-md) var(--bk-leaf-md) var(--bk-leaf-md); }
.bk-r2 { border-radius: var(--bk-leaf-md) 0 var(--bk-leaf-md) var(--bk-leaf-md); }

/* 2. En-tête et navigation ------------------------------------------------- */
.bk-header { position: relative; z-index: 30; }
.bk-header__bar { gap: 1rem 2rem; padding-block: 1.5rem; }
/* Logo : goutte et monogramme AB, filet, nom et spécialité (charte graphique) */
.bk-logo { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.bk-logo__goutte { display: block; flex: none; width: 34px; height: auto; overflow: visible; }
.bk-logo__goutte path { fill: none; stroke: var(--bk-sapin); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.bk-logo__goutte text { font-family: var(--bk-mono); font-weight: 600; font-size: 33px; fill: var(--bk-encre); }
.bk-logo__sep { align-self: stretch; width: 1px; margin-block: 3px; background: var(--bk-ligne); }
.bk-logo__txt { display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.bk-logo__nom { font-family: var(--bk-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; color: var(--bk-encre); white-space: nowrap; }
.bk-logo__spe { font-family: var(--bk-display); font-weight: 500; font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--bk-sapin); }
.bk-dark .bk-logo__goutte path { stroke: var(--bk-lichen); }
.bk-dark .bk-logo__goutte text { fill: #fff; }
.bk-dark .bk-logo__sep { background: rgba(255, 255, 255, .24); }
.bk-dark .bk-logo__nom { color: #fff; }
.bk-dark .bk-logo__spe { color: var(--bk-lichen); }
.bk-header .wp-block-navigation { font-size: 1rem; font-weight: 500; gap: 1.5rem; }
.bk-header .wp-block-navigation a { color: var(--bk-brume); text-decoration: none; }
.bk-header .wp-block-navigation a:hover { color: #fff; }
.bk-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.bk-header .wp-block-navigation__responsive-container.is-menu-open a { font-family: var(--bk-display); font-weight: 600; font-size: 1.75rem; color: #fff; }

/* Barre de navigation compacte et barre de progression (apparaissent au défilement) */
.bk-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--bk-lichen); transform: scaleX(0); transform-origin: left; z-index: 100; pointer-events: none; }
.bk-navfx { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; gap: 1.75rem; padding: 9px max(1.5rem, calc((100% - 1320px) / 2)); white-space: nowrap; background: var(--bk-foret); border-bottom: 1px solid rgba(127, 196, 200, .16); opacity: 0; visibility: hidden; transform: translateY(-100%); transition: opacity .35s ease, transform .35s var(--bk-ease), visibility .35s; }
.bk-navfx a { color: var(--bk-brume); text-decoration: none; font-size: .95rem; }
.bk-navfx a:hover { color: #fff; }
.bk-navfx .bk-navfx__name { margin-right: auto; display: inline-flex; align-items: center; gap: .6rem; font-family: var(--bk-display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.bk-navfx .bk-logo__goutte { width: 22px; }
.bk-navfx .bk-logo__goutte path { stroke: var(--bk-lichen); }
.bk-navfx .bk-logo__goutte text { fill: #fff; }
.bk-navfx .bk-navfx__cta { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; box-sizing: border-box; padding: 8px 16px; border-radius: var(--bk-radius); background: #fff; color: var(--bk-foret); font-weight: 600; transition: background-color .2s ease; }
.bk-navfx .bk-navfx__cta:hover { background: var(--bk-brume); color: var(--bk-foret); }
.bk-navfx .bk-navfx__tel { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-weight: 600; }
.bk-navfx__tel::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--bk-tel) no-repeat center / contain; mask: var(--bk-tel) no-repeat center / contain; }
.bk-navfx.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Bandeau des pages intérieures */
.bk-pagehero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.bk-pagehero .wp-block-post-title { max-width: 18ch; margin: 0; line-height: 1.02; }
.bk-pagehero__pulse { display: block; width: min(420px, 80%); height: 44px; margin-top: 1.75rem; overflow: visible; }
.bk-content > :first-child.bk-section { padding-top: clamp(3rem, 6vw, 5rem); }

/* 3. Boutons et éléments --------------------------------------------------- */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; box-sizing: border-box; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.wp-block-button__link[href^="tel:"]::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--bk-tel) no-repeat center / contain; mask: var(--bk-tel) no-repeat center / contain; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--bk-sapin); border: 1.5px solid currentColor; padding: calc(.95rem - 1.5px) calc(1.6rem - 1.5px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #E6F2F3; color: var(--bk-foret); }
/* Sur fond vert foncé : bouton plein blanc, bouton secondaire en filet blanc */
.bk-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--bk-foret); }
.bk-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--bk-brume); color: var(--bk-foret); }
.bk-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .5); }
.bk-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.wp-block-button.is-style-fonce > .wp-block-button__link { background: var(--bk-foret); color: #fff; }
.wp-block-button.is-style-fonce > .wp-block-button__link:hover { background: var(--bk-foret-2); }
.bk-small { font-size: 1rem; }
.bk-muted { color: #536577; }

/* 4. Haut de page ---------------------------------------------------------- */
.bk-hero { position: relative; overflow: hidden; }
.bk-hero::before { content: ""; position: absolute; left: -300px; bottom: -520px; width: 980px; height: 980px; background: var(--bk-lichen); opacity: .06; border-radius: 0 45% 45% 45%; pointer-events: none; }
.bk-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(4rem, 7vw, 6rem); }
.bk-hero__text > * + * { margin-block-start: 1.75rem; }
.bk-name { margin: 0; line-height: 1; letter-spacing: -.035em; }
.bk-name .bk-split { display: block; }
.bk-dark .bk-hero__spe { display: block; margin: 1.5rem 0 0; line-height: 1.5; font-family: var(--bk-display); font-weight: 500; font-size: .95rem; letter-spacing: .3em; text-transform: uppercase; color: var(--bk-lichen); }
.bk-pulse { display: block; width: 100%; max-width: 560px; height: 60px; overflow: visible; }
.bk-dark .bk-hero__lead { color: #fff; max-width: 23em; line-height: 1.35; }
.bk-dark .bk-hero__sites { color: #B9CCDA; }
.bk-header .wp-block-navigation__responsive-container-open { color: #fff; }
.bk-hero__visual { position: relative; max-width: 540px; width: 100%; justify-self: center; }
.bk-rings { position: absolute; inset: -14%; pointer-events: none; }
.bk-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(127, 196, 200, .6); opacity: .18; }
.bk-rings span:nth-child(2) { inset: 9%; }
.bk-rings span:nth-child(3) { inset: 18%; }
.bk-portrait { position: relative; margin: 0; overflow: hidden; border-radius: 0 var(--bk-leaf) var(--bk-leaf) var(--bk-leaf); background: var(--bk-sapin); }
.bk-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 28%; }
.bk-badge { position: absolute; margin: 0; z-index: 2; }
.bk-badge--note { left: -36px; bottom: 56px; display: flex; align-items: center; gap: .9rem; padding: 16px 22px; background: #fff; color: var(--bk-encre); border-radius: 0 22px 22px 22px; box-shadow: 0 22px 50px rgba(8, 22, 36, .4); }
.bk-badge--note > * { margin: 0; }
.bk-badge__num { font-family: var(--bk-display); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--bk-encre) !important; }
.bk-badge__txt { font-size: .95rem; line-height: 1.25; color: var(--bk-encre) !important; }
.bk-stars { color: #B7791F; letter-spacing: 2px; }
.bk-badge--tag { right: -18px; top: 44px; max-width: 190px; padding: 12px 18px; background: var(--bk-lichen); color: var(--bk-foret) !important; border-radius: 0 18px 18px 18px; font-size: .95rem; font-weight: 600; line-height: 1.3; }

/* Bandeau défilant des soins */
.bk-marquee-wrap { border-top: 1px solid rgba(127, 196, 200, .22); overflow: hidden; padding-block: 1.4rem; }
.bk-marquee { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.bk-marquee li { display: inline-flex; align-items: center; gap: 1.75rem; font-family: var(--bk-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -.01em; color: var(--bk-brume); white-space: nowrap; }
.bk-marquee li::after { content: ""; width: 8px; height: 8px; background: var(--bk-lichen); transform: rotate(45deg); border-radius: 0 50% 50% 50%; }
.bk-marquee.is-ready { flex-wrap: nowrap; width: max-content; gap: 0; }
.bk-marquee.is-ready li { padding-right: 1.75rem; }

/* 5. Choix du motif ---------------------------------------------------------- */
.bk-chips { gap: 10px; }
.bk-chip > .wp-block-button__link { background: #fff; color: var(--bk-encre); border: 1.5px solid #C9D5DD; border-radius: var(--bk-radius); padding: 10px 20px; min-height: 48px; font-size: 1.0625rem; font-weight: 400; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.bk-chip > .wp-block-button__link:hover { border-color: var(--bk-sapin); background: #fff; color: var(--bk-encre); }
.bk-chip.is-active > .wp-block-button__link { background: var(--bk-foret); color: #fff; border-color: var(--bk-foret); font-weight: 600; }
.bk-panels > * + * { margin-block-start: 1rem; }
.bk-panel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem 4rem; padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.25rem); background: #fff; border-radius: 0 60px 60px 60px; box-shadow: 0 30px 60px -30px rgba(17, 38, 58, .18); }
.bk-panel h3 { margin: 0 0 .9rem; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; }
.bk-panel p { margin: 0; color: var(--bk-ardoise); }
.bk-panel__main p + p { margin-top: 1rem; }
.bk-panel__side { border-left: 2px solid var(--bk-lichen); padding-left: 1.75rem; display: flex; flex-direction: column; gap: .9rem; }
.bk-panel__side .bk-label { font-weight: 600; color: var(--bk-encre); }
.bk-panel__side .wp-block-buttons { margin-top: .4rem; }
.bk-js .bk-motifs.is-ready .bk-panel:not(.is-active) { display: none; }
.bk-js .bk-motifs.is-ready .bk-panel.is-active { animation: bkFadeUp .55s var(--bk-ease) both; }

/* 6. Andrologie ---------------------------------------------------------- */
.bk-andro__intro { flex: 1 1 560px; display: flex; flex-direction: column; gap: 1.1rem; }
.bk-andro__intro h2 { max-width: 15ch; font-size: clamp(2.125rem, 4.2vw, 3.25rem); line-height: 1.08; }
.bk-andro__autres > * + * { margin-block-start: 1rem; }
.bk-stat { flex: 0 1 360px; max-width: 360px; display: flex; flex-direction: column; gap: .9rem; }
.bk-stat svg { display: block; }
.bk-stat strong { display: block; font-family: var(--bk-display); font-weight: 600; font-size: 1.55rem; color: #fff; line-height: 1.2; }
.bk-cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.bk-card { background: var(--bk-foret-2); overflow: hidden; display: flex; flex-direction: column; }
.bk-card__illu { background: #15314B; padding: 1.5rem 1.5rem .5rem; }
.bk-card__illu svg { display: block; width: 100%; height: 240px; }
.bk-card__body { padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.bk-card__body h3 { color: #fff; }
.bk-card__body > :last-child { margin-top: auto; }
.bk-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.bk-checks li { display: flex; gap: .75rem; align-items: baseline; }
.bk-checks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bk-lichen); transform: translateY(-1px); }
.bk-checks--or li::before { background: var(--wp--preset--color--plasma, #E3B84F); }
.bk-disclaimer { font-size: .95rem; color: #B9CCDA !important; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: .9rem; }
.bk-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bk-pills li { border: 1.5px solid rgba(127, 196, 200, .45); color: var(--bk-brume); border-radius: 999px; padding: 8px 18px; font-size: 1rem; }

/* Illustrations animées (ondes de choc, PRP) : état de repos lisible sans animation */
.bk-wave { transform-box: fill-box; transform-origin: left center; }
.bk-vessel { stroke-dasharray: 320; stroke-dashoffset: 0; }
.bk-mix, .bk-spinner { opacity: 0; }
.bk-mix, .bk-spinner { transform-box: fill-box; }
.bk-mix { transform-origin: bottom; }
.bk-spinner { transform-origin: center; }

/* 7. Soins (grille), examens, étapes, lieux, docteur --------------------------- */
.bk-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bk-tile { position: relative; display: flex; flex-direction: column; gap: .875rem; min-height: 240px; padding: 2rem; box-sizing: border-box; }
.bk-tile.bk-big { grid-column: span 2; grid-row: span 2; }
.bk-tile.bk-wide { grid-column: span 2; }
.bk-tile svg { display: block; }
.bk-tile h3 { font-size: clamp(1.3rem, 1.9vw, 1.55rem); line-height: 1.15; }
.bk-tile.bk-big h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.bk-tile h3 a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color .25s ease; }
.bk-tile:hover h3 a { text-decoration-color: currentColor; }
.bk-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bk-tile p { font-size: 1rem; opacity: .9; }
.bk-tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-tags li { background: #fff; border-radius: 999px; padding: 5px 12px; font-size: .875rem; }
.has-foret-background-color .bk-tags li { background: rgba(127, 196, 200, .18); }
.has-lichen-pale-background-color .bk-tags li { background: rgba(255, 255, 255, .7); }

.bk-exams { background: #fff; border-radius: 0 48px 48px 48px; padding: .75rem clamp(1.25rem, 3vw, 2.5rem); }
.bk-exrow { display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr 1.2fr; gap: 1.5rem; align-items: center; padding-block: 1.5rem; border-top: 1px solid #E2E9EE; }
.bk-exrow--head { border-top: 0; padding-block: 1.25rem .75rem; font-size: .95rem; font-weight: 600; color: #536577; }
.bk-exrow h3 { font-size: 1.35rem; line-height: 1.2; }
.bk-exrow h3 a { color: inherit; text-decoration: none; }
.bk-exrow h3 a:hover { text-decoration: underline; text-decoration-color: var(--bk-lichen); text-underline-offset: 4px; }
.bk-exrow p { color: var(--bk-ardoise); }
.bk-dur { display: flex; flex-direction: column; gap: .5rem; }
.bk-dur p { font-weight: 600; color: var(--bk-encre); margin: 0; }
.bk-track { display: block; height: 8px; border-radius: 999px; background: #E5ECF0; overflow: hidden; }
.bk-bar { display: block; height: 100%; border-radius: 999px; background: var(--bk-sapin); transform-origin: left; }

.bk-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.bk-stepline { position: absolute; left: 44px; top: 34px; width: calc(66.666% + 2rem); /* du centre du 1er numéro au centre du 3e */ height: 20px; overflow: visible; pointer-events: none; }
.bk-step { position: relative; display: flex; flex-direction: column; gap: .9rem; }
.bk-step > * { margin: 0; }
.bk-step__n { width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; border-radius: 0 34px 34px 34px; background: var(--bk-foret); color: var(--bk-lichen); font-family: var(--bk-display); font-weight: 600; font-size: 2.25rem; line-height: 1; }
.bk-step p:last-child { color: var(--bk-ardoise); max-width: 24em; }

.bk-place { background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.bk-place__img { position: relative; height: 340px; overflow: hidden; margin: 0; }
.bk-place__img img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 60%; }
.bk-place__img figcaption { position: absolute; right: 14px; bottom: 12px; margin: 0; font-size: .75rem; color: #fff; background: rgba(17, 38, 58, .6); padding: 3px 8px; border-radius: 6px; }
.bk-place__body { padding: clamp(1.75rem, 3.5vw, 2.5rem); display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.bk-place__body > .wp-block-buttons { margin-top: auto; }
.bk-hours { list-style: none; padding: 0; margin: 0; font-size: 1.0625rem; }
.bk-hours li { display: flex; gap: 1rem; padding: .55rem 0; border-top: 1px solid #E2E9EE; color: var(--bk-ardoise); }
.bk-hours li:last-child { border-bottom: 1px solid #E2E9EE; }
.bk-hours strong { min-width: 7.5rem; color: var(--bk-encre); }

/* Lieux : plan schématique + fiches des hôpitaux */
.bk-lieux { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; }
.bk-lieux > *, .bk-lieux__cards > *, .bk-place__rdv > * { margin-block: 0; }
.bk-lieux__map { position: sticky; top: 96px; border-radius: 0 var(--bk-leaf-md) var(--bk-leaf-md) var(--bk-leaf-md); padding: clamp(1.5rem, 3vw, 2.25rem); }
.bk-map { display: block; width: 100%; height: auto; max-height: 520px; overflow: visible; }
.bk-dark .bk-lieux__legend { font-size: .9rem; color: #B9CCDA; margin-top: 1rem; }
.bk-lieux__cards { display: flex; flex-direction: column; gap: 1.5rem; }
.bk-lieux .bk-place__img { height: 240px; }
.bk-place__commune { display: block; margin-top: .35rem; font-family: var(--wp--preset--font-family--texte); font-size: 1rem; letter-spacing: 0; color: #536577; }
.bk-place__zone { font-size: 1rem; color: var(--bk-ardoise); }
.bk-place__zone strong { color: var(--bk-encre); margin-right: .35rem; }
.bk-place__rdv { background: var(--bk-porcelaine); border-radius: 0 18px 18px 18px; padding: 1rem 1.25rem; }
.bk-place__rdv .bk-label { font-weight: 600; }
.bk-place__rdv .wp-block-buttons { margin-top: .6rem; }
.bk-tel > .wp-block-button__link { font-size: 1.35rem; letter-spacing: .02em; }
.bk-pin__pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
@keyframes bkPinDrop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bkPinPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
.bk-js .bk-pin__pulse { animation: bkPinPulse 2.4s ease-out infinite; }
.bk-js .bk-pin2 .bk-pin__pulse { animation-delay: 1.2s; }
.bk-sdt .bk-pin { animation: bkPinDrop linear both; animation-timeline: view(); animation-range: entry 30% cover 35%; }

/* Le docteur : titres et parcours */
.bk-creds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk-creds li { background: var(--bk-porcelaine); border-radius: 0 18px 18px 18px; padding: 1rem 1.15rem; font-size: .95rem; line-height: 1.4; color: var(--bk-ardoise); }
.bk-creds strong { display: block; margin-bottom: .2rem; font-family: var(--bk-display); font-weight: 600; font-size: 1.1rem; color: var(--bk-encre); }
.bk-timeline { position: relative; display: flex; flex-direction: column; gap: 2rem; }
.bk-timeline > *, .bk-tl > *, .bk-tl__body > *, .bk-cv > *, .bk-cv__box > * { margin-block: 0; }
.bk-timeline__line { position: absolute; left: calc(10.5rem - 10px); top: .5rem; width: 20px; height: calc(100% - 1rem); overflow: visible; pointer-events: none; }
.bk-tl { position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.bk-tl__year { font-family: var(--bk-display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; color: var(--bk-sapin); text-align: right; padding-top: 1.25rem; }
.bk-tl__body { position: relative; background: #fff; border-radius: 0 28px 28px 28px; padding: 1.5rem 1.75rem; }
.bk-tl__body::before { content: ""; position: absolute; left: calc(-1.5rem - 9px); top: 1.6rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bk-lichen); border: 3px solid var(--bk-porcelaine); }
.bk-tl__body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.bk-tl__body p { color: var(--bk-ardoise); }
.bk-cv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bk-cv__box { background: #fff; padding: clamp(1.5rem, 3vw, 2rem); }
.bk-cv__box h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.bk-cv__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; font-size: .95rem; line-height: 1.45; color: var(--bk-ardoise); }
.bk-cv__list li { padding-left: 1rem; border-left: 2px solid var(--bk-lichen); }
.bk-cv__list em { color: var(--bk-encre); }

/* Langue et numéro dans l'en-tête */
.wp-block-group.bk-header__tools { gap: 1rem; align-items: center; }
.bk-header__tools > *, .bk-header__tools p { margin: 0; }
.bk-header__tools p:empty { display: none; }
.bk-lang { display: inline-flex; gap: .25rem; padding: 3px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--bk-radius); }
.bk-dark .bk-lang a { display: inline-flex; align-items: center; min-height: 32px; padding: .35rem .7rem; border-radius: 5px; color: var(--bk-brume); font-size: .85rem; font-weight: 600; text-decoration: none; }
.bk-dark .bk-lang a[aria-current] { background: #fff; color: var(--bk-foret); }
.wp-block-buttons.bk-header__cta { gap: .6rem; flex-wrap: nowrap; }
.bk-header__cta .wp-block-button > .wp-block-button__link { min-height: 46px; padding: .7rem 1.15rem; font-size: 1rem; white-space: nowrap; }
.bk-header__cta .wp-block-button.is-style-outline > .wp-block-button__link { padding: calc(.7rem - 1.5px) calc(1.15rem - 1.5px); }

.bk-doc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.bk-doc__visual { position: relative; max-width: 500px; }
.bk-doc__visual::before { content: ""; position: absolute; left: -22px; bottom: -22px; width: 55%; height: 55%; background: var(--bk-lichen); border-radius: 0 0 0 110px; }
.bk-doc__visual .wp-block-image { position: relative; margin: 0; }
.bk-doc__visual img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; object-position: 50% 20%; }
.bk-doc__text > * + * { margin-block-start: 1.5rem; }
.bk-doc__text .wp-block-quote { background: var(--bk-porcelaine); border-left: 0; border-radius: 0 40px 40px 40px; padding: 2rem 2.25rem; margin-inline: 0; }
.bk-doc__text .wp-block-quote cite { display: block; margin-top: .75rem; font-family: var(--wp--preset--font-family--texte); font-size: 1rem; font-style: normal; color: #536577; }
.bk-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: 1.0625rem; color: var(--bk-ardoise); }
.bk-facts strong { color: var(--bk-encre); margin-right: .5rem; }

/* 8. Questions, appel final, pied de page --------------------------------- */
.bk-faq .wp-block-details { border-bottom: 1px solid #D3DDE4; padding: 0; margin: 0; }
.bk-faq .wp-block-details:first-of-type { border-top: 1px solid #D3DDE4; }
.bk-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0; font-weight: 600; font-size: 1.25rem; }
.bk-faq summary::-webkit-details-marker { display: none; }
.bk-faq summary::after { content: ""; flex: none; width: 24px; height: 24px; background: no-repeat center / 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A7F86' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .35s var(--bk-ease); }
.bk-faq details[open] summary::after { transform: rotate(45deg); }
.bk-faq .wp-block-details > p { margin: 0 0 1.6rem; color: var(--bk-ardoise); max-width: 38em; }
.bk-faq > * + * { margin-block-start: 0 !important; }
.bk-faq > h2 { margin-bottom: 2rem; }

.bk-cta-wrap { padding-block: clamp(5rem, 9vw, 8rem) clamp(4rem, 7vw, 6.5rem); }
.bk-cta { position: relative; overflow: hidden; border-radius: 0 clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 4.5rem) clamp(5rem, 9vw, 7.5rem); display: flex; flex-direction: column; gap: 2rem; }
.bk-cta > * { position: relative; }
.bk-cta h2 { max-width: 14ch; font-size: clamp(2.125rem, 4.6vw, 3.5rem); line-height: 1.05; }
.bk-cta p { max-width: 30em; font-size: 1.25rem; }
.bk-cta__pulse { position: absolute !important; left: 0; right: 0; bottom: 2rem; width: 100%; height: 80px; opacity: .35; }

.bk-footer { border-top: 1px solid var(--bk-ligne); padding-block: 3.5rem 2.5rem; font-size: 1rem; color: var(--bk-ardoise); }
.bk-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.bk-footer__grid > div > * { margin: 0 0 .4rem; }
.bk-footer .bk-logo { margin-bottom: 1.1rem; }
.bk-footer strong { color: var(--bk-encre); }
.bk-mbar { display: none; }

/* Photos d'illustration */
.bk-band { margin: 0; }
.bk-band__img { position: relative; height: clamp(240px, 32vw, 440px); margin: 0; overflow: hidden; border-radius: 0 var(--bk-leaf) var(--bk-leaf) var(--bk-leaf); background: var(--bk-porcelaine); }
.bk-band--court .bk-band__img { height: clamp(200px, 22vw, 320px); border-radius: var(--bk-leaf-md) 0 var(--bk-leaf-md) var(--bk-leaf-md); }
.bk-band__img img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.bk-soin-photo { margin-block: 2rem; }
.bk-soin-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.bk-soin-photo figcaption, .bk-band figcaption { margin-top: .5rem; font-size: .8rem; color: #536577; text-align: right; }
.bk-tile--photo { background-image: linear-gradient(180deg, rgba(17, 38, 58, .35) 0%, rgba(17, 38, 58, .94) 68%), url(../img/photo-couple.webp); background-size: cover; background-position: center 30%; }
.bk-tags a { position: relative; z-index: 2; display: inline-block; color: inherit; text-decoration: none; }
.bk-tags a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bk-tags li:has(a) { padding: 0; }
.bk-tags li > a { padding: 5px 12px; }
.bk-sous-pages { margin-top: 3rem; }

/* Formulaire de contact */
.bk-contact-form { padding: clamp(1.75rem, 4vw, 3rem); margin-block: 2rem; }
.bk-contact-form > h2 { margin-top: 0; }
.bk-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.bk-form__field { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.bk-form__field--full, .bk-form__actions { grid-column: 1 / -1; }
.bk-form label { font-weight: 600; font-size: 1rem; color: var(--bk-encre); }
.bk-form input[type="text"], .bk-form input[type="email"], .bk-form input[type="tel"], .bk-form select, .bk-form textarea { width: 100%; box-sizing: border-box; padding: .85rem 1rem; min-height: 50px; font: inherit; font-size: 1.0625rem; color: var(--bk-encre); background: #fff; border: 1.5px solid #C9D5DD; border-radius: var(--bk-radius); transition: border-color .2s ease, box-shadow .2s ease; }
.bk-form textarea { min-height: 160px; resize: vertical; }
.bk-form input:focus, .bk-form select:focus, .bk-form textarea:focus { outline: none; border-color: var(--bk-sapin); box-shadow: 0 0 0 3px rgba(42, 127, 134, .18); }
.bk-form__aide { font-size: .9rem; color: #536577; }
.bk-form__consent { flex-direction: row; align-items: flex-start; gap: .75rem; }
.bk-form__consent input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--bk-sapin); }
.bk-form__consent label { font-weight: 400; }
.bk-form__actions { margin: .5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.bk-form__submit { cursor: pointer; border: 0; background: var(--bk-sapin); color: #fff; font: inherit; font-weight: 600; font-size: 1.0625rem; padding: .95rem 1.75rem; min-height: 54px; border-radius: var(--bk-radius); transition: background-color .2s ease; }
.bk-form__submit:hover { background: var(--bk-sapin-fonce); }
.bk-form__urgence { font-size: .95rem; color: #536577; }
.bk-form__piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-form-msg { margin: 0 0 1.25rem; padding: 1rem 1.25rem; border-radius: 0 14px 14px 0; font-weight: 600; }
.bk-form-msg--succes { background: #E3F2F2; border-left: 4px solid var(--bk-sapin); color: var(--bk-encre); }
.bk-form-msg--erreur { background: #FFF4EC; border-left: 4px solid #B45309; color: var(--bk-encre); }

/* Pages de soin */
.bk-content { padding-top: clamp(3rem, 6vw, 5rem); }
.bk-content:has(> .bk-section:first-child) { padding-top: 0; }
.bk-content > h2 { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.bk-content .wp-block-buttons { margin-block: 2rem; }
.bk-steps-list li { margin-bottom: .6rem; padding-left: .25rem; }
.bk-steps-list li::marker { font-family: var(--bk-display); color: var(--bk-sapin); font-size: 1.25em; }
.bk-content .bk-checks li::before { background: var(--bk-sapin); }
.bk-soin-alerte { background: #FFF4EC; border-left: 4px solid #B45309; border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; color: var(--bk-encre); }
.bk-soin-illu { margin-block: 2rem; }
.bk-soin-illu .bk-card__illu { background: transparent; }
.wp-block-group.bk-soin-illu.is-style-feuille { border-radius: 0 var(--bk-leaf-md) var(--bk-leaf-md) var(--bk-leaf-md); }
.bk-soin-illu .bk-card__illu svg { height: clamp(220px, 34vw, 300px); }
.bk-soin-cols { gap: 1.5rem; }
.bk-soin-box { background: var(--bk-porcelaine); border-radius: 0 var(--bk-leaf-sm) var(--bk-leaf-sm) var(--bk-leaf-sm); padding: clamp(1.5rem, 3vw, 2.25rem); }
.bk-soin-box h2 { font-size: 1.4rem; margin-top: 0; }
.bk-content h2 { font-size: var(--wp--preset--font-size--x-large); }
.bk-content .bk-section h2, .bk-content .bk-cta h2 { font-size: var(--wp--preset--font-size--xx-large); }
.bk-note { font-size: .95rem; color: #536577; border-top: 1px solid var(--bk-ligne); padding-top: 1rem; }
.bk-content .wp-block-page-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.bk-content .wp-block-page-list a { display: block; padding: 1rem 1.25rem; background: var(--bk-porcelaine); border-radius: 0 18px 18px 18px; text-decoration: none; font-weight: 600; color: var(--bk-encre); }
.bk-content .wp-block-page-list a:hover { background: #E2EEF0; }

/* Avis des patients : note Google et deux lignes d'extraits qui défilent en sens opposés */
.bk-avis-section { overflow: hidden; }
.bk-score { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.bk-score > *, .bk-score__chiffre { margin: 0; }
.bk-score__chiffre { font-family: var(--bk-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(3.5rem, 6vw, 4.75rem); line-height: .9; color: #fff !important; }
.bk-score__detail { display: flex; flex-direction: column; gap: .45rem; }
.bk-score__etoiles { position: relative; display: inline-block; font-size: 1.4rem; line-height: 1; letter-spacing: 3px; color: rgba(255, 255, 255, .2); view-timeline: --bk-score block; }
.bk-score__etoiles::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: 96%; overflow: hidden; white-space: nowrap; color: var(--wp--preset--color--plasma, #E3B84F); }
.bk-score__nombre { font-size: 1rem; color: #B9CCDA; }
.bk-avis-wrap { overflow: hidden; }
.bk-avis { display: flex; flex-direction: column; gap: 16px; }
.bk-avis__row { list-style: none; margin: 0; padding: 0 clamp(1rem, 4vw, 2rem) .5rem; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.bk-avis__card { flex: none; width: clamp(280px, 28vw, 370px); box-sizing: border-box; display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem 1.75rem; background: var(--bk-foret-2); border: 1px solid rgba(127, 196, 200, .14); border-radius: 0 28px 28px 28px; scroll-snap-align: start; }
.bk-dark .bk-avis__card p { margin: 0; font-family: var(--bk-display); font-weight: 500; font-size: 1.1rem; line-height: 1.55; color: #fff; }
.bk-avis__stars { color: var(--wp--preset--color--plasma, #E3B84F); font-size: .95rem; letter-spacing: 2px; line-height: 1; }
.bk-avis__auteur { margin-top: auto; font-size: .95rem; color: #B9CCDA; }
.bk-avis__bas { box-sizing: border-box; max-width: 1320px; margin: 1.5rem auto 0; padding-inline: clamp(1rem, 4vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.bk-dark .bk-avis__source { margin: 0; font-size: .95rem; color: #B9CCDA; }
.bk-avis__pause { cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: .4rem .9rem; font: inherit; font-size: .9rem; color: var(--bk-brume); background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--bk-radius); transition: border-color .2s ease, color .2s ease; }
.bk-avis__pause:hover { border-color: #fff; color: #fff; }
.bk-avis__pause[hidden] { display: none; }
.bk-avis__pause::before { content: ""; width: 10px; height: 12px; box-sizing: border-box; border-inline: 3px solid currentColor; }
.bk-avis__pause[aria-pressed="true"]::before { width: 0; height: 0; border-inline: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
/* Défilement continu (le script duplique les cartes) ; sans script, la ligne se fait défiler à la main */
.bk-js .bk-avis { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.bk-avis__row.is-ready { width: max-content; overflow: visible; padding: 0; gap: 0; scroll-snap-type: none; }
.bk-avis__row.is-ready > li { margin-right: 16px; }
.bk-js .bk-avis__row.is-ready { animation: bkMarquee 95s linear infinite; }
.bk-js .bk-avis__row--inverse.is-ready { animation-duration: 110s; animation-direction: reverse; }
.bk-avis:hover .bk-avis__row, .bk-avis.is-paused .bk-avis__row { animation-play-state: paused; }

/* 9. Animations --------------------------------------------------------------- */
@keyframes bkLineUp { from { transform: translateY(112%); } to { transform: none; } }
@keyframes bkFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bkWipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bkZoomOut { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes bkDraw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes bkRing { 0% { transform: scale(.6); opacity: 0; } 12% { opacity: .6; } 100% { transform: scale(1.32); opacity: 0; } }
@keyframes bkBeat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(2.2); opacity: 0; } }
@keyframes bkMarquee { to { transform: translateX(-50%); } }
@keyframes bkWaveOut { 0% { transform: translateX(0) scale(.7); opacity: 0; } 18% { opacity: 1; } 100% { transform: translateX(150px) scale(1.6); opacity: 0; } }
@keyframes bkVessel { 0% { stroke-dashoffset: 320; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes bkMix { 0% { transform: scaleY(0); opacity: 1; } 20% { transform: scaleY(1); opacity: 1; } 50% { opacity: 1; } 62%, 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bkSep { 0%, 50% { opacity: 0; } 64%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bkSepUp { 0%, 54% { opacity: 0; transform: translateY(10px); } 70%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bkSpin { 0%, 22% { transform: rotate(0); } 50%, 100% { transform: rotate(900deg); } }
@keyframes bkSpinShow { 0%, 20% { opacity: 0; } 26%, 46% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes bkRise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes bkGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bkDrawV { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes bkParallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
@keyframes bkNavIn { from { opacity: 0; visibility: hidden; transform: translateY(-100%); } to { opacity: 1; visibility: visible; transform: none; } }
@keyframes bkTitle { from { clip-path: inset(100% -5% -25% -5%); transform: translateY(.5em); } to { clip-path: inset(-20% -5% -25% -5%); transform: none; } }
@keyframes bkCurtain { from { clip-path: inset(14% 6% 14% 6%); } to { clip-path: inset(0 0 0 0); } }
@keyframes bkTile { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes bkStars { from { width: 0; } to { width: 96%; } }
@keyframes bkProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Chargement orchestré du haut de page (seulement si JavaScript est actif) */
@keyframes bkShow { to { visibility: visible; } }
.bk-js .bk-split { visibility: hidden; }
.bk-js .bk-split:not(.is-split) { animation: bkShow 0s 2.5s forwards; } /* filet de sécurité si le script ne charge pas */
.bk-js .bk-split.is-split { visibility: visible; }
.bk-mask { display: block; overflow: hidden; padding-bottom: .08em; }
.bk-mask > span { display: block; }
.bk-js .bk-mask > span { animation: bkLineUp 1.15s var(--bk-ease) both; }
.bk-js .bk-fade { animation: bkFadeUp 1s var(--bk-ease) both; }
.bk-js .bk-t1 { animation-delay: .95s; }
.bk-js .bk-t2 { animation-delay: 1.1s; }
.bk-js .bk-t3 { animation-delay: 1.25s; }
.bk-js .bk-t4 { animation-delay: 1.75s; }
.bk-js .bk-t5 { animation-delay: 1.95s; }
.bk-js .bk-t6 { animation-delay: 2.2s; }
.bk-js .bk-portrait { animation: bkWipe 1.45s cubic-bezier(.75, 0, .2, 1) .2s both; }
.bk-js .bk-portrait img { animation: bkZoomOut 2.6s cubic-bezier(.2, .7, .2, 1) .2s both; }
.bk-js .bk-pulse path { stroke-dasharray: 1000; animation: bkDraw 2.1s cubic-bezier(.6, 0, .2, 1) .55s both; }
.bk-js .bk-beat { transform-box: fill-box; transform-origin: center; animation: bkBeat 2.4s ease-in-out 2.7s infinite; }
.bk-js .bk-rings span { opacity: 0; inset: 0; animation: bkRing 6.6s cubic-bezier(.2, .6, .3, 1) 1.4s infinite; }
.bk-js .bk-rings span:nth-child(2) { animation-delay: 3.6s; }
.bk-js .bk-rings span:nth-child(3) { animation-delay: 5.8s; }
.bk-js .bk-marquee.is-ready { animation: bkMarquee 70s linear infinite; }
.bk-js .bk-marquee-wrap:hover .bk-marquee { animation-play-state: paused; }

/* Illustrations en boucle */
.bk-js .bk-wave { animation: bkWaveOut 2.4s cubic-bezier(.3, .6, .4, 1) infinite; }
.bk-js .bk-w2 { animation-delay: .8s; }
.bk-js .bk-w3 { animation-delay: 1.6s; }
.bk-js .bk-vessel { animation: bkVessel 5.2s cubic-bezier(.5, 0, .3, 1) infinite; }
.bk-js .bk-v2 { animation-delay: .5s; }
.bk-js .bk-v3 { animation-delay: 1s; }
.bk-js .bk-mix { animation: bkMix 8s cubic-bezier(.4, 0, .2, 1) infinite; }
.bk-js .bk-sep { animation: bkSep 8s ease infinite; }
.bk-js .bk-sepup { animation: bkSepUp 8s cubic-bezier(.2, .7, .2, 1) infinite; }
.bk-js .bk-spinner { animation: bkSpin 8s cubic-bezier(.5, 0, .3, 1) infinite, bkSpinShow 8s ease infinite; }

/* Animations des pages de soin (inc/illustrations.php). Chaque élément animé porte la classe bk-i
   et un mouvement bk-i--… ; les variables CSS règlent la durée (--t), le décalage (--d), l'échelle (--s),
   le déplacement (--x, --y), le pivot (--o). Sans .bk-js, la scène reste une image fixe. */
.bk-i { transform-box: fill-box; transform-origin: center; animation-duration: var(--t, 4s); animation-delay: var(--d, 0s); animation-iteration-count: infinite; animation-timing-function: var(--e, ease-in-out); animation-fill-mode: both; }
.bk-i--pivot { transform-box: view-box; transform-origin: var(--o, 50% 50%); }
.bk-i--bas { transform-origin: 50% 100%; }
.bk-i--gauche { transform-origin: 0 50%; }
.bk-i--droite { transform-origin: 100% 50%; }
.bk-i--cache { opacity: 0; }
.bk-js .bk-i--pulse { animation-name: bkIPulse; }
.bk-js .bk-i--glow { animation-name: bkIGlow; }
.bk-js .bk-i--dim { animation-name: bkIDim; }
.bk-js .bk-i--ripple { animation-name: bkIRipple; animation-timing-function: ease-out; }
.bk-js .bk-i--flow { animation-name: bkIFlow; animation-timing-function: linear; }
.bk-js .bk-i--move { animation-name: bkIMove; }
.bk-js .bk-i--fill { animation-name: bkIFill; }
.bk-js .bk-i--fill-x { animation-name: bkIFillX; }
.bk-js .bk-i--empty { animation-name: bkIEmpty; }
.bk-js .bk-i--empty-x { animation-name: bkIEmptyX; }
.bk-js .bk-i--slide { animation-name: bkISlide; }
.bk-js .bk-i--dilate { animation-name: bkIDilate; }
.bk-js .bk-i--draw { animation-name: bkIDraw; }
.bk-js .bk-i--spin { animation-name: bkISpin; animation-timing-function: linear; }
.bk-js .bk-i--sweep { animation-name: bkISweep; animation-direction: alternate; }
.bk-js .bk-i--arc { animation-name: bkIArc; }
.bk-js .bk-i--bob { animation-name: bkIBob; }
.bk-js .bk-i--kill { animation-name: bkIKill; }
.bk-js .bk-i--pill { animation-name: bkIPill; }
.bk-js .bk-i--drop { animation-name: bkIDrop; animation-timing-function: ease-in; }
.bk-js .bk-i--leak { animation-name: bkILeak; animation-timing-function: ease-in; }
.bk-js .bk-i--color { animation-name: bkIColor; }
.bk-js .bk-i--swell { animation-name: bkISwell; }
.bk-js .bk-i--seq { animation-name: bkISeq; }
.bk-js .bk-i--stone { animation-name: bkIStone; }
.bk-js .bk-i--burst { animation-name: bkIBurst; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
.bk-js .bk-i--flash { animation-name: bkIFlash; animation-timing-function: linear; }
.bk-js .bk-i--shrink { animation-name: bkIShrink; }
@keyframes bkIPulse { 50% { transform: scale(var(--s, 1.12)); } }
@keyframes bkIGlow { 0%, 100% { opacity: var(--min, .25); } 50% { opacity: 1; } }
@keyframes bkIDim { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes bkIRipple { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(var(--s, 1.6)); opacity: 0; } }
@keyframes bkIFlow { to { stroke-dashoffset: var(--l, -60px); } }
@keyframes bkIMove { 0% { transform: translate(0, 0); opacity: 0; } 12%, 80% { opacity: 1; } 100% { transform: translate(var(--x, 0px), var(--y, 40px)); opacity: 0; } }
@keyframes bkIFill { 0% { transform: scaleY(0); } 60%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes bkIFillX { 0% { transform: scaleX(0); } 55%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes bkIEmpty { 0% { transform: scaleY(1); } 55%, 85% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }
@keyframes bkIEmptyX { 0%, 10% { transform: scaleX(1); } 60%, 85% { transform: scaleX(.08); } 100% { transform: scaleX(1); } }
@keyframes bkISlide { 0%, 10% { transform: translateX(0); } 60%, 85% { transform: translateX(var(--x, 100px)); } 100% { transform: translateX(0); } }
@keyframes bkIDilate { 0%, 50% { transform: scaleY(1); } 70%, 88% { transform: scaleY(1.35); } 100% { transform: scaleY(1); } }
@keyframes bkIDraw { 0% { stroke-dashoffset: 1000; opacity: 1; } 55%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes bkISpin { to { transform: rotate(360deg); } }
@keyframes bkISweep { from { transform: rotate(var(--a1, -20deg)); } to { transform: rotate(var(--a2, 20deg)); } }
@keyframes bkIArc { 0% { transform: rotate(0deg); opacity: 0; } 10%, 88% { opacity: 1; } 100% { transform: rotate(180deg); opacity: 0; } }
@keyframes bkIBob { 50% { transform: translateY(var(--y, -8px)); } }
@keyframes bkIKill { 0%, 40% { opacity: 1; } 55%, 85% { opacity: 0; } 100% { opacity: 1; } }
@keyframes bkIPill { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 42% { transform: translate(var(--x, 0px), var(--y, 0px)); opacity: 1; } 52%, 100% { transform: translate(var(--x, 0px), var(--y, 0px)); opacity: 0; } }
@keyframes bkIDrop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(var(--y, 30px)); opacity: 0; } }
@keyframes bkILeak { 0% { transform: translateY(0); opacity: 0; } 4% { opacity: 1; } 22%, 100% { transform: translateY(var(--y, 14px)); opacity: 0; } }
@keyframes bkIColor { 0%, 100% { fill: var(--c1, #E9D9A0); } 50% { fill: var(--c2, #E08A7E); } }
@keyframes bkISwell { 0%, 100% { stroke-width: var(--w1, 3px); } 50% { stroke-width: var(--w2, 6px); } }
@keyframes bkISeq { 0% { opacity: 0; transform: scale(.3); } 8%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes bkIStone { 0%, 38% { opacity: 1; transform: scale(1); } 43% { opacity: 1; transform: scale(1.12); } 47%, 92% { opacity: 0; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bkIBurst { 0%, 43% { opacity: 0; transform: translate(0, 0); } 47% { opacity: 1; } 85% { opacity: 1; transform: translate(var(--x, 0px), var(--y, 0px)); } 95%, 100% { opacity: 0; transform: translate(var(--x, 0px), var(--y, 0px)); } }
@keyframes bkIFlash { 0%, 30% { opacity: .25; } 33% { opacity: 1; } 36% { opacity: .3; } 39% { opacity: 1; } 43%, 100% { opacity: .25; } }
@keyframes bkIShrink { 0%, 15% { transform: scaleX(1); } 50%, 85% { transform: scaleX(var(--s, .6)); } 100% { transform: scaleX(1); } }

/* Défilement, version CSS (Chrome, Edge) */
.bk-sdt .bk-reveal { animation: bkRise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
.bk-sdt .bk-bar { animation: bkGrow linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
.bk-sdt .bk-drawline path { stroke-dasharray: 1000; animation: bkDrawV linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
.bk-sdt .bk-place__img img, .bk-sdt .bk-band__img img { animation: bkParallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
.bk-sdt .bk-navfx { transition: none; animation: bkNavIn linear both; animation-timeline: scroll(root); animation-range: 620px 760px; }
.bk-sdt .bk-progress { animation: bkProgress linear both; animation-timeline: scroll(root); }
.bk-sdt .bk-section h2 { animation: bkTitle linear both; animation-timeline: view(); animation-range: entry 15% entry 85%; }
.bk-sdt :is(.bk-band__img, .bk-place__img, .bk-soin-photo) { animation: bkCurtain linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
.bk-sdt .bk-tile { animation: bkTile linear both; animation-timeline: view(); animation-range: entry 5% entry 65%; }
.bk-sdt .bk-tile:nth-child(even) { animation-range: entry 15% entry 80%; }
.bk-sdt .bk-score__etoiles::before { animation: bkStars linear both; animation-timeline: --bk-score; animation-range: entry 40% cover 45%; }

/* Défilement, version de repli (Safari, Firefox) : classes posées par bakar.js */
.bk-io .bk-reveal { opacity: 0; transform: translateY(48px); transition: opacity .9s var(--bk-ease), transform .9s var(--bk-ease); }
.bk-io .bk-reveal.is-in { opacity: 1; transform: none; }
.bk-io .bk-bar { transform: scaleX(0); transition: transform 1.2s var(--bk-ease) .2s; }
.bk-io .bk-bar.is-in { transform: scaleX(1); }
.bk-io .bk-drawline path { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.6s var(--bk-ease); }
.bk-io .bk-drawline.is-in path { stroke-dashoffset: 0; }
.bk-io .bk-section h2 { clip-path: inset(100% -5% -25% -5%); transform: translateY(.5em); transition: clip-path 1s var(--bk-ease), transform 1s var(--bk-ease); }
.bk-io .bk-section h2.is-in { clip-path: inset(-20% -5% -25% -5%); transform: none; }
.bk-io :is(.bk-band__img, .bk-place__img, .bk-soin-photo) { clip-path: inset(14% 6% 14% 6%); transition: clip-path 1.3s var(--bk-ease); }
.bk-io :is(.bk-band__img, .bk-place__img, .bk-soin-photo).is-in { clip-path: inset(0 0 0 0); }
.bk-io .bk-tile { opacity: 0; transform: translateY(44px); transition: opacity .8s var(--bk-ease), transform .8s var(--bk-ease); }
.bk-io .bk-tile:nth-child(even) { transition-delay: .12s; }
.bk-io .bk-tile.is-in { opacity: 1; transform: none; }
.bk-io .bk-score__etoiles::before { width: 0; transition: width 1.4s var(--bk-ease) .2s; }
.bk-io .bk-score__etoiles.is-in::before { width: 96%; }

/* 10. Adaptations mobiles et mouvements réduits ----------------------------- */
/* En-tête : le numéro rejoint la barre dès que la place manque, puis le menu passe en bouton */
@media (max-width: 1399px) {
	.bk-header__cta .bk-header__tel { display: none; }
}
@media (max-width: 1180px) {
	.bk-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.bk-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.bk-header__bar { flex-wrap: nowrap !important; }
	.bk-header .wp-block-navigation { margin-left: auto; }
}
@media (max-width: 1000px) {
	.bk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bk-exrow { grid-template-columns: 1fr 1fr; }
	.bk-exrow--head { display: none; }
	.bk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bk-cv, .bk-lieux { grid-template-columns: minmax(0, 1fr); }
	.bk-lieux__map { position: relative; top: 0; max-width: 520px; width: 100%; justify-self: center; box-sizing: border-box; }
}
@media (max-width: 900px) {
	.bk-hero__grid, .bk-doc, .bk-cards2, .bk-panel { grid-template-columns: minmax(0, 1fr); }
	.bk-hero__visual { order: -1; max-width: 420px; }
	.bk-badge--note { left: 8px; bottom: 24px; }
	.bk-badge--tag { right: 8px; top: 20px; }
	.bk-panel__side { border-left: 0; padding-left: 0; border-top: 2px solid var(--bk-lichen); padding-top: 1.25rem; }
	.bk-steps { grid-template-columns: minmax(0, 1fr); }
	.bk-stepline, .bk-navfx { display: none !important; }
}
@media (max-width: 820px) {
	.wp-block-buttons.bk-header__cta { display: none; } /* la barre d'appel du bas d'écran prend le relais */
	.bk-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--bk-ligne); box-shadow: 0 -8px 24px rgba(17, 38, 58, .08); }
	.bk-mbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; text-decoration: none; padding: 12px 8px; border-radius: var(--bk-radius); min-height: 48px; box-sizing: border-box; }
	.bk-mbar__tel { color: var(--bk-sapin); border: 1.5px solid var(--bk-sapin); }
	.bk-mbar__tel::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--bk-tel) no-repeat center / contain; mask: var(--bk-tel) no-repeat center / contain; }
	.bk-mbar__rdv { background: var(--bk-sapin); color: #fff; }
	.bk-footer { padding-bottom: 6.5rem; }
}
@media (max-width: 640px) {
	.wp-block-group.bk-header__bar { column-gap: 1rem; }
	.bk-logo { gap: 10px; }
	.bk-logo__goutte { width: 28px; }
	.bk-logo__nom { font-size: 1.1rem; }
	.bk-logo__spe { font-size: .62rem; letter-spacing: .3em; }
	.bk-bento, .bk-exrow, .bk-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.bk-tile.bk-big, .bk-tile.bk-wide { grid-column: auto; grid-row: auto; }
	.bk-place__img { height: 240px; }
	.bk-card__illu svg { height: 200px; }
	.bk-creds { grid-template-columns: minmax(0, 1fr); }
	.bk-form { grid-template-columns: minmax(0, 1fr); }
	.bk-chips { gap: 8px; }
	.bk-chip > .wp-block-button__link { padding: 8px 14px; min-height: 44px; font-size: .95rem; }
	.bk-tl { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
	.bk-tl__year { text-align: left; padding-top: 0; }
	.bk-timeline__line, .bk-tl__body::before { display: none; }
	.bk-avis__card { width: 82vw; max-width: 320px; padding: 1.35rem 1.4rem; }
	.bk-dark .bk-avis__card p { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.bk-navfx { display: none; }
	.bk-marquee.is-ready { flex-wrap: wrap; width: auto; gap: .5rem 0; }
	.bk-avis__row.is-ready { width: auto; overflow-x: auto; padding: 0 clamp(1rem, 4vw, 2rem) .5rem; scroll-snap-type: x mandatory; }
	:is(.bk-marquee, .bk-avis__row) > [aria-hidden="true"] { display: none; }
	.bk-js .bk-avis { -webkit-mask-image: none; mask-image: none; }
}
