/* =====================================================================
   Maison Papillon — content elements of the original theme re-implemented in the child
   (inc/papillon-elements.php). First block = the original theme rules for these elements, ported
   (class names renamed to papillon-*); then the site colours / custom CSS of the original options.
   ===================================================================== */

body.search form .papillon-btn {vertical-align: top; margin-top: 15px;}
.papillon-floating-image {transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; animation: papillon-floating 5s -1s infinite;}
@keyframes papillon-floating {0%, 100% { transform: translateY(-3%); } 50% { transform: translateY(0); }}
.widget_search .papillon-btn {margin-top: 10px;}
#author-bio .papillon-btn {text-transform: uppercase; margin-top: 15px;}
.pw-protected .papillon-btn {text-transform: uppercase; margin-left: 10px;}
.papillon-btn {position: relative; color: #1B1D1F; background-color: transparent; font-size: 11px; line-height: 1.429em; padding: 9px 23px; display: inline-block; font-weight: bold; border: 2px solid #1B1D1F; box-sizing: border-box; text-decoration: none; overflow: hidden; vertical-align: middle; letter-spacing: 2px; transition: color 0.2s linear, background-color 0.2s linear, border-color 0.2s linear, opacity 0.2s linear;}
.papillon-btn[disabled], .papillon-btn[disabled="disabled"] {opacity: 0.2; cursor: not-allowed !important;}
.papillon-btn.pb-shortcode {padding-top: 0 !important; padding-bottom: 0 !important;}
@media (min-width: 768px) { .papillon-btn {padding: 10px 25px; font-size: 12px;} }
.papillon-btn span {position: relative; z-index: 1; padding: 9px 0; display: inline-block; transition: all 0.3s ease 0s;}
@media (min-width: 768px) { .papillon-btn span {padding: 10px 0;} }
.papillon-btn:hover, .papillon-btn:active {border-color: #f04649; background-color: #f04649; color: #fff; text-decoration: none; cursor: pointer;}
.papillon-btn:focus {outline: none;}
.papillon-btn.pb-icon-only.pb-icon i {opacity: 1; position: static; margin: 0;}
.papillon-btn.pb-icon i {position: absolute; z-index: 1; color: inherit !important; opacity: 0; transition: all 0.3s ease;}
.papillon-btn.pb-icon:hover i {opacity: 1;}
.papillon-btn.pb-icon-push-top span {bottom: 0;}
.papillon-btn.pb-icon-push-left span {left: 0;}
.papillon-btn.pb-icon-slide-right span {left: 0;}
.papillon-btn.pb-icon-slide-left span {right: 0;}
.papillon-btn.pb-icon-push-top:hover span {bottom: -100%;}
.papillon-btn.pb-icon-push-left:hover span {left: 1000%;}
.papillon-btn.pb-icon-slide-right:hover span {left: -10px;}
.papillon-btn.pb-icon-slide-left:hover span {right: -10px;}
.papillon-btn.pb-icon-push-top i {top: -100%; left: 50%; transform: translate(-50%, -50%);}
.papillon-btn.pb-icon-push-left i {top: 50%; left: -100%; transform: translate(-50%, -50%);}
.papillon-btn.pb-icon-slide-right i {top: 0; right: -100%; position: absolute; top: 50%; transform: translateY(-50%);}
.papillon-btn.pb-icon-slide-left i {top: 0; left: -100%; position: absolute; top: 50%; transform: translateY(-50%);}
.papillon-btn.pb-icon-push-top:hover i {top: 50%;}
.papillon-btn.pb-icon-push-left:hover i {left: 50%;}
.papillon-btn.pb-icon-slide-right:hover i {right: 10px;}
@media (min-width: 768px) { .papillon-btn.pb-icon-slide-right:hover i {right: 15px;} }
.papillon-btn.pb-icon-slide-left:hover i {left: 10px;}
@media (min-width: 768px) { .papillon-btn.pb-icon-slide-left:hover i {left: 15px;} }
.papillon-btn.pb-icon-default-left i {margin-right: 15px; opacity: 1; position: static;}
.papillon-btn.pb-icon-default-right i {margin-left: 15px; opacity: 1; position: static;}
.pb-full {background-color: #1B1D1F; color: #fff; border: 0; padding: 11px 23px;}
.pb-full span {padding: 11px 0;}
@media (min-width: 768px) { .pb-full {padding: 12px 25px;} }
@media (min-width: 768px) { .pb-full span {padding: 12px 0;} }
.pb-full:hover {color: #fff; cursor: pointer;}
.pb-rounded {border-radius: 50px;}
@media (min-width: 768px) { .pb-rounded {border-radius: 100px;} }
.pb-s {font-size: 11px; padding: 6px 19px; border-width: 1px; letter-spacing: 0;}
.pb-s span {padding: 6px 0;}
.pb-s.pb-full {padding: 7px 19px; font-size: 12px;}
.pb-s.pb-full span {padding: 7px 0;}
.pb-l {font-size: 13px; padding: 8px 18px;}
.pb-l span {padding: 8px 0;}
.pb-l.pb-full {padding: 10px 28px;}
.pb-l.pb-full span {padding: 10px 0;}
@media (min-width: 768px) { .pb-l {font-size: 16px; padding: 10px 30px;} }
@media (min-width: 768px) { .pb-l span {padding: 10px 0;} }
@media (min-width: 768px) { .pb-l.pb-full {padding: 12px 30px;} }
@media (min-width: 768px) { .pb-l.pb-full span {padding: 12px 0;} }
.pb-xl {font-size: 18px; padding: 12px 36px;}
.pb-xl span {padding: 12px 0;}
.pb-xl.pb-full {padding: 14px 36px;}
.pb-xl.pb-full span {padding: 14px 0;}
.pb-xl.pb-icon-slide-right:hover span {left: -16px;}
.pb-xl.pb-icon-slide-right:hover i {right: 16px;}
.pb-xl.pb-icon-slide-left:hover span {right: -16px;}
.pb-xl.pb-icon-slide-left:hover i {left: 16px;}
@media (min-width: 768px) { .pb-xl {font-size: 22px; padding: 15px 45px;} }
@media (min-width: 768px) { .pb-xl span {padding: 15px 0;} }
@media (min-width: 768px) { .pb-xl.pb-full {padding: 17px 45px;} }
@media (min-width: 768px) { .pb-xl.pb-full span {padding: 17px 0;} }
@media (min-width: 768px) { .pb-xl.pb-icon-slide-right:hover span {left: -20px;} }
@media (min-width: 768px) { .pb-xl.pb-icon-slide-right:hover i {right: 20px;} }
@media (min-width: 768px) { .pb-xl.pb-icon-slide-left:hover span {right: -20px;} }
@media (min-width: 768px) { .pb-xl.pb-icon-slide-left:hover i {left: 20px;} }
.pb-xxl {font-size: 20px; padding: 16px 48px;}
.pb-xxl span {padding: 16px 0;}
.pb-xxl.pb-full {padding: 18px 48px;}
.pb-xxl.pb-full span {padding: 18px 0;}
.pb-xxl.pb-icon-slide-right:hover span {left: -24px;}
.pb-xxl.pb-icon-slide-right:hover i {right: 24px;}
.pb-xxl.pb-icon-slide-left:hover span {right: -24px;}
.pb-xxl.pb-icon-slide-left:hover i {left: 24px;}
@media (min-width: 768px) { .pb-xxl {font-size: 26px; padding: 20px 60px;} }
@media (min-width: 768px) { .pb-xxl span {padding: 20px 0;} }
@media (min-width: 768px) { .pb-xxl.pb-full {padding: 22px 60px;} }
@media (min-width: 768px) { .pb-xxl.pb-full span {padding: 22px 0;} }
@media (min-width: 768px) { .pb-xxl.pb-icon-slide-right:hover span {left: -30px;} }
@media (min-width: 768px) { .pb-xxl.pb-icon-slide-right:hover i {right: 30px;} }
@media (min-width: 768px) { .pb-xxl.pb-icon-slide-left:hover span {right: -30px;} }
@media (min-width: 768px) { .pb-xxl.pb-icon-slide-left:hover i {left: 30px;} }
.pb-block {display: block; width: 100%; text-align: center;}
.pb-3d {box-shadow: 0 6px black;}
.pb-3d:hover {top: 2px; box-shadow: 0 4px black;}
.pb-3d:active {top: 6px; box-shadow: none;}
.pb-handdrawn {box-shadow: 20px 38px 34px -25px rgba(0, 0, 0, 0.2); border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;}
.pb-handdrawn:hover {box-shadow: 2px 8px 4px -6px rgba(0, 0, 0, 0.3);}
.pb-handdrawn.pb-lined-thick {border: solid 7px #1B1D1F;}
.pb-handdrawn.pb-dotted-thick {border: dotted 5px #1B1D1F;}
.pb-handdrawn.pb-dashed-thick {border: dashed 5px #1B1D1F;}
.pb-handdrawn.pb-lined-thin {border: solid 2px #1B1D1F;}
.pb-handdrawn.pb-dotted-thin {border: dotted 2px #1B1D1F;}
.pb-handdrawn.pb-dashed-thin {border: dashed 2px #1B1D1F;}
.papillon-message-box {position: relative; background-color: #fff; padding: 15px; border-top: 3px solid #8fae1b;}
.papillon-message-box.papillon-message-box-close {padding-right: 50px;}
.papillon-message-box.papillon-message-box-close .papillon-message-box-close-trigger {position: absolute; top: 15px; right: 15px; color: inherit; cursor: pointer;}
.papillon-message-box.has-icon {padding-left: 60px;}
.papillon-message-box .papillon-message-box-icon {position: absolute; top: 50%; left: 15px; transform: translateY(-50%);}
.papillon-countdown-section {margin-bottom: 15px; text-align: center; *zoom: 1;}
.papillon-countdown-section:after {content: ""; display: table; clear: both;}
@media (min-width: 460px) { .papillon-countdown-section {width: 25%; display: inline-block; margin-bottom: 0;} }
@media (min-width: 460px) { [data-clockface="year"] .papillon-countdown-section {width: 16.66%;} }
@media (min-width: 460px) { [data-clockface="month"] .papillon-countdown-section {width: 20%;} }
@media (min-width: 460px) { [data-clockface="day"] .papillon-countdown-section {width: 25%;} }
@media (min-width: 460px) { [data-clockface="hour"] .papillon-countdown-section {width: 33.3333%;} }
@media (min-width: 460px) { [data-clockface="minute"] .papillon-countdown-section {width: 50%;} }
.papillon-countdown-section > div:first-child {font-size: 2.4em; line-height: 1em; font-weight: 600; display: inline-block; padding: 5px; margin-bottom: 5px;}
.papillon-countdown-section .papillon-countdown-label {color: #b5b5b5;}
.papillon-countdown-section .papillon-countdown-label {display: block;}
/* JP Q9b (2026-11-26): from 460 px (sections side by side) to 1199 px the labels were wider than their section
   ("Secondes" = 4.06 em, section 25 %): on the original they overlapped each other (1199-500) and "Secondes" passed the
   right screen edge (600/500). There the label font follows the section width — widest label + 10 px fits its section.
   The label line keeps its fixed line-height (30.85 px inherited), so the countdown keeps its height; the smaller text
   stays centred on the same line. 1280 px and up: unchanged (labels fit), < 460 px: unchanged (stacked). */
@media (min-width: 460px) and (max-width: 1199px) {
	.papillon-countdown {container-type: inline-size; --papillon-cd-sec: 25cqi;}
	.papillon-countdown[data-clockface="year"] {--papillon-cd-sec: 16.66cqi;}
	.papillon-countdown[data-clockface="month"] {--papillon-cd-sec: 20cqi;}
	.papillon-countdown[data-clockface="hour"] {--papillon-cd-sec: 33.333cqi;}
	.papillon-countdown[data-clockface="minute"] {--papillon-cd-sec: 50cqi;}
	html body .papillon-countdown .papillon-countdown-section .papillon-countdown-label {font-size: min(1em, calc((var(--papillon-cd-sec) - 10px) / 4.2)) !important;}
}
.papillon-image-box {padding: 30px; overflow: hidden; position: relative; background-color: #000;}
@media (min-width: 768px) { .papillon-image-box {padding: 50px;} }
.papillon-image-box .papillon-image-box-inner {position: absolute; top: 50%; transform: translateY(-50%); left: 0; padding: 30px; z-index: 5; color: #fff;}
@media (min-width: 768px) { .papillon-image-box .papillon-image-box-inner {padding: 50px;} }
.papillon-image-box .papillon-image-box-title {color: #fff;}
.papillon-image-box .papillon-image-box-img {position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; opacity: 0.7; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;}
.papillon-image-box .papillon-image-box-link {position: absolute; z-index: 6; top: 0; left: 0; text-indent: -9999px; width: 100%; height: 100%;}
.papillon-image-box.papillon-image-box-title-bottom .papillon-image-box-inner {margin-top: -22px;}
.papillon-image-box.papillon-image-box-title-bottom .papillon-image-box-title {position: absolute; left: 0; bottom: 0; width: 100%; padding: 15px 35px 15px 20px; background-color: #f04649; color: #fff; margin: 0; opacity: 0.75; transition: opacity 0.3s ease-in-out;}
.papillon-image-box.papillon-image-box-title-bottom .papillon-image-box-title i {position: absolute; right: 15px; top: 50%; transform: translateY(-50%);}
.papillon-image-box.papillon-image-box-title-bottom:after {display: none;}
.papillon-image-box:after {position: absolute; width: 100%; height: 4px; background-color: #f04649; content: ' '; left: 0; bottom: 0; transition: transform 0.3s ease-in-out; transform: translateX(-100%);}
.papillon-image-box:hover:after {transform: translateX(0);}
.papillon-image-box:hover .papillon-image-box-img {transform: scale(1.1);}
.papillon-image-box:hover .papillon-image-box-img {opacity: 0.9;}
.papillon-image-box:hover.papillon-image-box-title-bottom .papillon-image-box-title {opacity: 1;}
.papillon-list {list-style: none; padding: 0; margin: 0; overflow: hidden;}
.papillon-list i {margin-right: 10px; line-height: normal;}

/* ---------- original theme option colours on buttons (accent 2 #1db6da, hover accent 1 #ab3e97) ---------- */
.papillon-btn { color: #1db6da; border-color: #1db6da; }
.pb-full { background-color: #1db6da; color: #fff; }
.papillon-btn:hover, .papillon-btn:active { background-color: #ab3e97; border-color: #ab3e97; color: #fff; }
.papillon-btn { font-family: "Chau Philomene One", sans-serif; font-weight: 400; text-decoration: none; }
/* original site custom CSS: .btn { Chau Philomene One; normal; #ffca09; border-radius 50px; 16px } */
.papillon-btn { font-family: "Chau Philomene One"; font-weight: normal; background-color: #ffca09; border-radius: 50px; font-size: 16px; }
/* JP rule: two buttons never touch — 15 px between neighbours */
.papillon-btn:has(+ .papillon-btn) { margin-right: 15px; }
/* hover animation "bounce" (animate.css keyframes, as the original theme played on mouseenter) */
.pb-hover-bounce:hover { animation: papillon-bounce 1s both; transform-origin: center bottom; }
@keyframes papillon-bounce {
	0%, 20%, 53%, 80%, 100% { animation-timing-function: cubic-bezier(.215,.61,.355,1); transform: translate3d(0,0,0); }
	40%, 43% { animation-timing-function: cubic-bezier(.755,.05,.855,.06); transform: translate3d(0,-30px,0); }
	70% { animation-timing-function: cubic-bezier(.755,.05,.855,.06); transform: translate3d(0,-15px,0); }
	90% { transform: translate3d(0,-4px,0); }
}
.pb-3d { box-shadow: 0 6px #000; }

/* ---------- separator (ex original separator = vc_empty_space): inline-block 100 % wide unless "block" ---------- */
.vc_empty_space.papillon-sep { display: inline-block; width: 100%; vertical-align: baseline; margin: 0; }
.vc_empty_space.papillon-sep.papillon-sep-block { display: block; }
.vc_empty_space.papillon-sep .vc_empty_space_inner { display: none; }

/* ---------- animated list ---------- */
.papillon-list, .content-outer ul.papillon-list { list-style: none; padding: 0; margin: 0; overflow: hidden; }
.papillon-list i { margin-right: 10px; line-height: normal; }

/* ---------- entrance animations (original c-has-animation: hidden until scrolled into view, then 0.7 s) ---------- */
.papillon-anim { opacity: 0; }
.papillon-anim.papillon-animated { opacity: 1; animation: 0.7s ease 1 forwards; }
.papillon-animated.papillon-c-animate-left { animation-name: papillon-c-left; }
.papillon-animated.papillon-c-animate-top { animation-name: papillon-c-top; }
.papillon-animated.papillon-c-animate-zoom-in { animation-name: papillon-c-zoom; }
.papillon-animated.papillon-c-animate-zoom-in-spin { animation-name: papillon-c-zoom-spin; }
@keyframes papillon-c-left { 0% { opacity: 0; transform: translate3d(-100px, 0, 0); } 100% { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes papillon-c-top { 0% { opacity: 0; transform: translate3d(0, -100px, 0); } 100% { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes papillon-c-zoom { 0% { opacity: 0; transform: scale(.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes papillon-c-zoom-spin { 0% { opacity: 0; transform: scale(.3) rotate(360deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
/* editors and visitors without JS / with reduced motion see the content at once */
.vc_editor .papillon-anim, html.no-js .papillon-anim { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .papillon-anim { opacity: 1; animation: none !important; } }

/* buttons without their own colours (no papillon-d- class) must not take the content link colour (.content-inner a, 0,1,1) */
.content-inner a.papillon-btn { color: #1db6da; }
.content-inner a.pb-full, .content-inner a.papillon-btn:hover, .content-inner a.papillon-btn:active { color: #fff; }

/* [papillon_icon] (ex original icon) is an inline-block glyph on the text line. The original drew it with Font Awesome 4.7
   (the old theme's companion plugin); v2's Font Awesome 6 Pro has other glyph shapes and another ascent (0.875 vs 0.857 em), which made
   the icon rows of /donner/ /donate/ 1 px taller in Firefox. Same font as the original (FA 4.7 webfont, SIL OFL, shipped
   in the child so it survives the removal of the old theme's plugin): identical glyphs and line boxes in every engine.
   Only 4 icons are used (fa-laptop f109, fa-phone f095, fa-envelope f0e0, fa-envelope-open f2b6: same code points). */
@font-face { font-family: "Papillon FA4"; src: url(../fonts/fontawesome4-webfont.woff2?v=4.7.0) format("woff2"), url(../fonts/fontawesome4-webfont.woff?v=4.7.0) format("woff"); font-weight: 400; font-style: normal; font-display: block; }
i.papillon-icon.fa, i.papillon-icon.fa::before { font-family: "Papillon FA4" !important; font-weight: 400 !important; font-style: normal; }

/* JP: the + icon (30 px, 15 px from the right) covered the end of long titles (the original theme kept only 35 px): keep 55 px so the text wraps before the icon */
.papillon-image-box.papillon-image-box-title-bottom .papillon-image-box-title:has(> i) { padding-right: 55px; }
/* JP: the title bar must never cover the card text (a 2-line title grew upward over it, the bar being pinned to the bottom of a fixed-height card).
 * Column layout: text centred in the space above the bar, bar at the bottom, the card grows if text + bar need more than its min-height. */
.papillon-image-box.papillon-image-box-title-bottom { display: flex; flex-direction: column; padding: 0; }
.papillon-image-box.papillon-image-box-title-bottom .papillon-image-box-inner { position: relative; top: auto; transform: none; margin-top: 0; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; width: 100%; box-sizing: border-box; }
.papillon-image-box.papillon-image-box-title-bottom .papillon-image-box-title { position: relative; bottom: auto; left: auto; flex: 0 0 auto; z-index: 5; box-sizing: border-box; }
/* JP: image-box cards side by side always share one height (no white gap under a shorter card): their row is flex and each card fills its column */
.vc_row:has(> .wpb_column .papillon-image-box-title-bottom) { display: flex; flex-wrap: wrap; }
.vc_row:has(> .wpb_column .papillon-image-box-title-bottom)::before, .vc_row:has(> .wpb_column .papillon-image-box-title-bottom)::after { display: none; }
.vc_row:has(> .wpb_column .papillon-image-box-title-bottom) > .wpb_column { float: none; display: flex; flex-direction: column; }
.vc_row:has(> .wpb_column .papillon-image-box-title-bottom) > .wpb_column > .vc_column-inner,
.vc_row:has(> .wpb_column .papillon-image-box-title-bottom) > .wpb_column .wpb_wrapper { flex: 1 1 auto; display: flex; flex-direction: column; }
.vc_row:has(> .wpb_column .papillon-image-box-title-bottom) > .wpb_column .wpb_wrapper > .papillon-image-box { flex: 1 1 auto; }

/* JP: responsive image slider replacing the WPBakery image carousel (js/javascript.js papillonImageSliders) */
.papillon-imgslider { position: relative; padding: 0 0 30px; }
.papillon-imgslider-track { display: flex; column-gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.papillon-imgslider-track::-webkit-scrollbar { display: none; }
/* photos per view follow the slider's own width (it sits in a narrow column at 768-991): 3 from 500 px wide, else 2; 1 on phones < 480 */
.papillon-imgslider { container-type: inline-size; }
.papillon-imgslider-slide { flex: 0 0 calc((100% - 15px) / 2); scroll-snap-align: start; }
@container (min-width: 500px) { .papillon-imgslider-slide { flex-basis: calc((100% - 30px) / 3); } }
@media (max-width: 479.9px) { .papillon-imgslider .papillon-imgslider-slide { flex-basis: 100%; } }
.papillon-imgslider-slide a { display: block; line-height: 0; }
.papillon-imgslider-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.papillon-imgslider-prev, .papillon-imgslider-next { position: absolute; top: calc(50% - 15px); transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0; background: rgba(171, 62, 151, 0.9); color: #fff; font-size: 28px; line-height: 38px; cursor: pointer; transition: opacity 0.2s, background-color 0.2s; }
.papillon-imgslider-prev { left: 8px; } .papillon-imgslider-next { right: 8px; }
.papillon-imgslider-prev:hover, .papillon-imgslider-next:hover { background: #1db6da; }
.papillon-imgslider.is-start .papillon-imgslider-prev, .papillon-imgslider.is-end .papillon-imgslider-next, .papillon-imgslider.is-static .papillon-imgslider-prev, .papillon-imgslider.is-static .papillon-imgslider-next { opacity: 0; pointer-events: none; }
.papillon-imgslider-dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; }
.papillon-imgslider-dots button { width: 10px; height: 10px; border: 0; border-radius: 50%; padding: 0; background: #d9c3d4; cursor: pointer; }
.papillon-imgslider-dots button.is-active { background: #ab3e97; }
.papillon-imgslider.is-static .papillon-imgslider-dots { display: none; }
