/* Styles communs du moteur de blocs (côté public) */
.pb-b { position: relative; }
.pb-b > .pb-handle { display: none; }
.pb-root > .pb-b:not(.pb-b--section) { max-width: var(--pb-container, 1160px); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.pb-area > .pb-b + .pb-b { margin-top: var(--pb-gap, 16px); }
.pb-root > .pb-b + .pb-b { margin-top: 0; }

.pb-shadow-sm { box-shadow: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06); }
.pb-shadow-md { box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.pb-shadow-lg { box-shadow: 0 20px 48px rgba(16, 24, 40, .2); }

.pb-icon { display: inline-block; vertical-align: -0.2em; flex: none; }

/* Visibilité par appareil */
@media (min-width: 1025px) { .pb-hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .pb-hide-tablet { display: none !important; } }
@media (max-width: 767px) { .pb-hide-mobile { display: none !important; } }

/* Animations d'apparition */
.pb-anim { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.pb-anim[data-pb-anim="fade-up"] { transform: translateY(32px); }
.pb-anim[data-pb-anim="zoom"] { transform: scale(.94); }
.pb-anim.pb-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pb-anim { opacity: 1; transform: none; transition: none; } }

/* Boutons (partagés par plusieurs blocs) */
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; text-decoration: none; line-height: 1.2; border: 2px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease; }
.pb-btn:hover { transform: translateY(-1px); }
.pb-btn--sm { padding: 8px 16px; font-size: .9rem; }
.pb-btn--md { padding: 12px 24px; font-size: 1rem; }
.pb-btn--lg { padding: 16px 32px; font-size: 1.1rem; }
.pb-btn--primary { background: var(--pb-primary); color: var(--pb-primary-contrast); }
.pb-btn--primary:hover { filter: brightness(1.08); }
.pb-btn--secondary { background: var(--pb-soft); color: var(--pb-text); }
.pb-btn--outline { border-color: currentColor; color: var(--pb-primary); background: transparent; }
.pb-has-color .pb-btn--outline { color: inherit; }
.pb-btn--link { padding-left: 0; padding-right: 0; color: var(--pb-primary); }
.pb-btn--full { display: flex; width: 100%; }
.pb-btn--light { background: #fff; color: #10172a; }
.pb-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: var(--pb-justify, flex-start); }
.pb-align-center .pb-btns { justify-content: center; }
.pb-align-right .pb-btns { justify-content: flex-end; }

/* Carrousel partagé (PB.slider) */
.pb-slider { position: relative; --gap: 16px; --per: 1; --per-m: 1; }
.pb-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pb-track::-webkit-scrollbar { display: none; }
.pb-track > * { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; }
@media (max-width: 767px) { .pb-track > * { flex-basis: calc((100% - (var(--per-m) - 1) * var(--gap)) / var(--per-m)); } }
.pb-prev, .pb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #111827; box-shadow: 0 4px 14px rgba(0,0,0,.15); cursor: pointer; display: grid; place-items: center; font-size: 22px; line-height: 1; transition: opacity .2s; }
.pb-prev { left: 10px; } .pb-next { right: 10px; }
.pb-prev:disabled, .pb-next:disabled { opacity: 0; pointer-events: none; }
.pb-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.pb-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: #c7cdd8; cursor: pointer; transition: all .25s; }
.pb-dots button.is-on { width: 26px; background: var(--pb-primary); }
/* Encart affiché dans l'éditeur pour les blocs invisibles ou flottants */
.pb-edit-ph { border: 2px dashed #c9d2e3; border-radius: 10px; padding: 14px 16px; font: 14px system-ui, sans-serif; color: #5d6677; background: #fafbfd; display: flex; gap: 10px; align-items: center; }
.pb-edit-ph strong { color: #1d2330; }
.pb-edit-frame { border: 2px dashed #b9a6f5; border-radius: 12px; padding: 12px; background: rgba(138,92,246,.04); }
.pb-edit-frame__tag { font: 600 12px system-ui, sans-serif; color: #7c5cd6; margin-bottom: 8px; display: block; }

/* Formulaires publics (partagés) */
.pb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; text-align: left; }
.pb-form > * { grid-column: span 2; }
.pb-form .pb-field--half { grid-column: span 1; }
.pb-field label, .pb-field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.pb-field .req { color: #dc2626; }
.pb-field input:not([type=checkbox]):not([type=radio]), .pb-field select, .pb-field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--pb-border, #dde2ec); border-radius: 10px; font: inherit; background: #fff; color: var(--pb-text); }
.pb-field textarea { min-height: 130px; resize: vertical; }
.pb-field input:focus, .pb-field select:focus, .pb-field textarea:focus { outline: 2px solid color-mix(in srgb, var(--pb-primary) 30%, transparent); border-color: var(--pb-primary); }
.pb-field fieldset { border: 0; margin: 0; padding: 0; }
.pb-field__opts { display: flex; flex-direction: column; gap: 6px; }
.pb-field__opts label, .pb-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 0; }
.pb-field__opts input, .pb-check input { margin-top: 4px; accent-color: var(--pb-primary); }
.pb-field__help { font-size: .82rem; color: var(--pb-muted); margin-top: 4px; }
.pb-form__title { font-size: 1.15rem; margin: 8px 0 0; }
.pb-form__msg { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.pb-form__msg.is-ok { background: #e8f7ee; color: #17603a; }
.pb-form__msg.is-error { background: #fdeeec; color: #8f1d14; }
.pb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .pb-form .pb-field--half { grid-column: span 2; } }

/* Cartes de contenus (articles, réalisations) et pagination — partagées */
.pb-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px; text-align: left; }
@media (max-width: 900px) { .pb-cards { grid-template-columns: repeat(min(2, var(--cols, 3)), minmax(0, 1fr)); } }
@media (max-width: 600px) { .pb-cards { grid-template-columns: 1fr; } }
.pb-card { display: flex; flex-direction: column; background: #fff; border-radius: calc(var(--pb-radius) * 1.3); overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 8px 24px rgba(16,24,40,.05); height: 100%; color: var(--pb-text); }
.pb-card__img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--pb-soft); }
.pb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.pb-card:hover .pb-card__img img { transform: scale(1.04); }
.pb-card__img--empty { background: linear-gradient(135deg, color-mix(in srgb, var(--pb-primary) 18%, #fff), var(--pb-soft)); }
.pb-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pb-card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pb-primary); }
.pb-card__title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.pb-card__title a { color: inherit; text-decoration: none; }
.pb-card__title a:hover { color: var(--pb-primary); }
.pb-card__meta { margin: 0; font-size: .85rem; color: var(--pb-muted); }
.pb-card__excerpt { margin: 4px 0 0; color: var(--pb-muted); font-size: .95rem; }
.pb-card__more { margin-top: auto; padding-top: 10px; font-weight: 700; text-decoration: none; }
.pb-cards--list { grid-template-columns: 1fr; }
.pb-cards--list .pb-card { flex-direction: row; }
.pb-cards--list .pb-card__img { width: 34%; flex: none; aspect-ratio: auto; min-height: 180px; }
@media (max-width: 600px) { .pb-cards--list .pb-card { flex-direction: column; } .pb-cards--list .pb-card__img { width: 100%; aspect-ratio: 16/10; } }
.pb-cards--compact { grid-template-columns: 1fr; gap: 0; }
.pb-cards--compact .pb-card { box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--pb-border); background: none; flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; }
.pb-cards--compact .pb-card__img { width: 72px; height: 72px; aspect-ratio: 1; border-radius: 10px; flex: none; }
.pb-cards--compact .pb-card__body { padding: 0; }
.pb-cards--compact .pb-card__title { font-size: 1rem; }
.pb-pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pb-pager a, .pb-pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: inline-grid; place-items: center; text-decoration: none; border: 1px solid var(--pb-border); color: var(--pb-text); background: #fff; font-weight: 600; }
.pb-pager [aria-current] { background: var(--pb-primary); border-color: var(--pb-primary); color: #fff; }
.pb-pager a:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-empty { color: var(--pb-muted); text-align: center; padding: 24px; border: 2px dashed var(--pb-border); border-radius: 12px; }
.pb-form[hidden] { display: none; }

/* Contenus tiers soumis au consentement */
.pb-ext { position: relative; border-radius: var(--pb-radius); overflow: hidden; background: var(--pb-soft); }
.pb-ext__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: repeating-linear-gradient(45deg, #eef1f6 0 14px, #f4f6fa 14px 28px); color: var(--pb-text); }
.pb-ext__ph span { color: var(--pb-muted); font-size: .88rem; max-width: 420px; }
.pb-ext.is-loaded { background: none; }

/* Bloc en cours de rechargement (filtres, pagination) */
.pb-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }
.pb-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; justify-content: var(--pb-align, flex-start); }
.pb-filters a { padding: 7px 16px; border-radius: 99px; border: 1px solid var(--pb-border); color: var(--pb-text); text-decoration: none; font-weight: 600; font-size: .9rem; background: #fff; }
.pb-filters a:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-filters a[aria-current] { background: var(--pb-primary); border-color: var(--pb-primary); color: #fff; }
.pb-filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; align-items: center; }
.pb-filterbar input[type=search], .pb-filterbar select { padding: 10px 14px; border: 1px solid var(--pb-border); border-radius: 12px; font: inherit; background: #fff; }
.pb-filterbar input[type=search] { flex: 1 1 220px; min-width: 0; }
.pb-filterbar__count { color: var(--pb-muted); font-size: .9rem; margin-left: auto; }
/* Boutique : prix */
.pb-price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.pb-price del { color: var(--pb-muted); font-weight: 400; font-size: .9em; margin-right: 4px; }
.pb-price ins { text-decoration: none; color: #c2261b; }
.pb-price__from { font-weight: 400; color: var(--pb-muted); font-size: .85em; }
.is-invalid { outline: 2px solid #e5484d !important; }
.pb-carttoast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); z-index: 100030; background: #1d2330; color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 10px 30px rgba(0,0,0,.25); white-space: nowrap; }
.pb-carttoast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pb-carttoast a { color: #9fc0ff; margin-left: 10px; }

/* Lot 10 : aperçu « site en brouillon » */
.pb-draftsite-bar { position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 16px; background: #2b2140; color: #fff; font: 14px/1.4 system-ui, sans-serif; }
.pb-draftsite-bar__dot { width: 9px; height: 9px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 0 4px rgba(255,176,32,.25); }
.pb-draftsite-bar__act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pb-draftsite-bar a { color: #fff; background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 6px; text-decoration: none; }
.pb-draftsite-bar a:hover { background: rgba(255,255,255,.26); }
.pb-b--else { text-align: center; }
