/* =========================================================================
   TalabaStore 2027 — styles complémentaires à theme.json
   (en-tête, navigation mobile, sections, WooCommerce, styles de blocs)
   ========================================================================= */

:root {
	--t27-header-h: 76px;
	--t27-r-panel: 40px;
	--t27-r-card: 24px;
	--t27-gap: clamp(16px, 2vw, 24px);
	--t27-section: clamp(44px, 7vw, 88px);
}
@media (max-width: 1099px) { :root { --t27-r-panel: 32px; } }
@media (max-width: 781px) { :root { --t27-header-h: 64px; --t27-r-panel: 28px; } }

html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.t27-ar, body.rtl, [lang^="ar"] { font-family: var(--wp--preset--font-family--arabic); }
body.rtl h1, body.rtl h2, body.rtl h3, body.t27-ar h1, body.t27-ar h2, body.t27-ar h3 { letter-spacing: 0; line-height: 1.35; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.t27-main { flex: 1; }
img { max-width: 100%; height: auto; }
::selection { background: #BDEBDD; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--wp--preset--color--brand-teal); outline-offset: 2px; }
p a, li a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; display: block; height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000; }

/* -------------------------------------------------------------------- En-tête */
.t27-header-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .t27-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .t27-header-part { top: 0; position: relative; } }
.t27-header { background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--wp--preset--color--line); }
.t27-header__bar { min-height: var(--t27-header-h); gap: 20px !important; position: relative; }
.t27-logo { flex: none; margin: 0; }
.t27-logo img { display: block; width: auto; height: 38px !important; max-width: none; }
.t27-nav { flex: 1; min-width: 0; }
.t27-nav .wp-block-navigation__container { gap: 4px !important; }
.t27-nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; padding: 10px 14px !important; border-radius: 12px; color: var(--wp--preset--color--ink); white-space: nowrap; transition: background-color .15s, color .15s; }
.t27-nav .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary); }
.t27-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--mint); color: var(--wp--preset--color--primary); font-weight: 800; }
.t27-header__tools { flex: none; gap: 10px !important; }
.t27-header__card { margin: 0; }
.t27-header__card .wp-block-button__link { padding: 11px 18px; font-size: 15px; }
.t27-header__card .wp-block-button__link::before { content: ""; width: 18px; height: 18px; display: inline-block; margin-inline-end: 8px; vertical-align: -3px; background: currentColor; -webkit-mask: var(--t27-ico-qr) center / contain no-repeat; mask: var(--t27-ico-qr) center / contain no-repeat; }

/* Recherche */
.t27-search { width: 250px; margin: 0; }
.t27-search .wp-block-search__inside-wrapper { background: var(--wp--preset--color--surface); border: 1.5px solid transparent !important; border-radius: 999px; padding: 3px !important; transition: border-color .15s, background-color .15s; }
.t27-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--wp--preset--color--brand-teal) !important; background: #fff; }
.t27-search .wp-block-search__input { border: 0 !important; background: transparent; padding: 8px 6px 8px 14px; font-size: 14.5px; font-weight: 600; color: var(--wp--preset--color--ink); min-width: 0; }
.t27-search .wp-block-search__input:focus { outline: none; }
.t27-search .wp-block-search__button { margin: 0 !important; width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; background: #fff !important; color: var(--wp--preset--color--ink) !important; display: flex; align-items: center; justify-content: center; }
.t27-search .wp-block-search__button svg { width: 20px; height: 20px; min-width: 20px; fill: currentColor; }
.t27-search-big { max-width: 560px; margin-inline: auto; }
.t27-search-big .wp-block-search__inside-wrapper { border: 1.5px solid var(--wp--preset--color--line) !important; border-radius: 16px; padding: 5px !important; background: #fff; }
.t27-search-big .wp-block-search__input { border: 0 !important; font-size: 16px; padding-inline: 12px; }
.t27-search-big .wp-block-search__button { border-radius: 12px !important; margin: 0 !important; }

/* Langues */
.t27-lang { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--wp--preset--color--surface); }
.t27-lang a { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--wp--preset--color--ink-soft); text-decoration: none; }
.t27-lang a.is-active { background: #fff; color: var(--wp--preset--color--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Compte client WooCommerce */
.t27-account .wc-block-customer-account__link { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--line); display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--ink); padding: 0; }
.t27-account .wc-block-customer-account__link:hover { border-color: var(--wp--preset--color--brand-teal); }
.t27-account svg { width: 24px; height: 24px; }
@media (max-width: 781px) { .t27-account { display: none !important; } }

/* Mini-panier WooCommerce */
.t27-cart .wc-block-mini-cart__button { width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--line); background: #fff; color: var(--wp--preset--color--ink); display: flex; align-items: center; justify-content: center; }
.t27-cart .wc-block-mini-cart__button:hover { border-color: var(--wp--preset--color--brand-teal); }
.t27-cart .wc-block-mini-cart__amount { display: none !important; }
.t27-cart .wc-block-mini-cart__icon { width: 24px; height: 24px; margin: 0; }
.t27-cart .wc-block-mini-cart__badge { background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--ink) !important; font-weight: 800; border: 2px solid #fff; min-width: 20px; height: 20px; font-size: 11px; }

/* Tablette : navigation sur une deuxième ligne défilante */
@media (max-width: 1199px) {
	.t27-header__bar { flex-wrap: wrap !important; padding-top: 10px; }
	.t27-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--wp--style--root--padding-right)) 0 0; padding-bottom: 10px; }
	.t27-nav::-webkit-scrollbar { display: none; }
	.t27-nav .wp-block-navigation-item__content { border: 1.5px solid var(--wp--preset--color--line); border-radius: 999px; padding: 7px 14px !important; font-size: 14px; }
	.t27-logo { margin-inline-end: auto; }
}
/* Recherche repliée en icône (elle s'ouvre au clic, par-dessus l'en-tête) */
@media all {
	.t27-search { width: 46px; }
	.t27-search .wp-block-search__inside-wrapper { background: transparent; padding: 0 !important; border: 0 !important; }
	.t27-search .wp-block-search__input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }
	.t27-search .wp-block-search__button { width: 46px; height: 46px; border: 1.5px solid var(--wp--preset--color--line) !important; }
	.t27-search.is-open { position: absolute; z-index: 5; inset-inline: 0; top: 50%; transform: translateY(-50%); width: auto; max-width: 640px; margin-inline-start: auto; }
	.t27-search.is-open .wp-block-search__inside-wrapper { background: #fff; border: 1.5px solid var(--wp--preset--color--brand-teal) !important; padding: 3px !important; box-shadow: 0 10px 30px rgba(13,31,26,.12); }
	.t27-search.is-open .wp-block-search__input { position: static; width: auto; height: auto; clip: auto; padding: 8px 12px; flex: 1; }
	.t27-search.is-open .wp-block-search__button { border: 0 !important; width: 38px; height: 38px; }
}
@media (max-width: 1199px) { .t27-search.is-open { top: 10px; transform: none; } }
/* Téléphone : logo, recherche, panier ; la navigation passe en bas d'écran */
@media (max-width: 781px) {
	.t27-header__bar { flex-wrap: nowrap !important; padding: 0; gap: 8px !important; }
	.t27-nav, .t27-header__card, .t27-lang { display: none !important; }
	.t27-logo img { height: 32px !important; }
	.t27-search.is-open { top: 9px; }
}

/* En-tête « application » */
.t27-header--app .t27-header__bar { min-height: 64px; }
.t27-header--app .t27-logo img { height: 32px !important; }
.t27-back { margin: 0; font-weight: 800; font-size: 14.5px; }
.t27-back a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.t27-back a::before { content: "←"; }
.rtl .t27-back a::before { content: "→"; }

/* -------------------------------------------------------------------- Navigation mobile (bas d'écran) */
.t27-bnav { display: none; }
@media (max-width: 781px) {
	body { padding-bottom: 78px; }
	.t27-bnav { display: flex; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: calc(78px + env(safe-area-inset-bottom)); padding: 10px 6px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 -8px 24px rgba(13,31,26,.06); align-items: flex-start; }
	.t27-bnav__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--wp--preset--color--muted); font-size: 11.5px; font-weight: 600; min-width: 0; }
	.t27-bnav__item.is-active { color: var(--wp--preset--color--primary); font-weight: 800; }
	.t27-bnav__icon { display: flex; }
	.t27-bnav__item--card { margin-top: -26px; color: var(--wp--preset--color--ink); font-weight: 800; }
	.t27-bnav__item--card .t27-bnav__icon { width: 60px; height: 60px; border-radius: 20px; background: var(--wp--preset--gradient--brand); align-items: center; justify-content: center; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(43,182,161,.45); }
	.t27-bnav__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* -------------------------------------------------------------------- Pied de page */
.t27-footer { padding-top: clamp(48px, 7vw, 80px); padding-bottom: 28px; margin-top: 0; }
.t27-page, .t27-archive, .t27-single, .t27-shop, .t27-product, .t27-directory, .t27-partner, .t27-404-page, .t27-page-centered + .t27-footer-part { padding-bottom: var(--t27-section); }
.t27-footer__cols { gap: clamp(24px, 4vw, 48px) !important; }
.t27-footer__logo { margin: 0 0 16px; }
.t27-footer__brand p { font-size: 15px; max-width: 340px; }
.t27-footer__title { font-size: 14px !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--wp--preset--color--brand-green) !important; margin: 0 0 14px; }
.t27-footer__links { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.t27-footer a { color: #fff; text-decoration: none; }
.t27-footer a:hover { color: var(--wp--preset--color--brand-green); text-decoration: underline; }
.t27-social { gap: 8px; margin-top: 18px; }
.t27-social .wp-social-link { background: rgba(255,255,255,.08) !important; }
.t27-footer__bottom { border-top: 1px solid #26413A; margin-top: 40px !important; padding-top: 22px; gap: 14px !important; }
.t27-footer__bottom p { margin: 0; }
.t27-footer__badges { gap: 18px !important; }
.t27-footer__badges p { margin: 0; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--dark-muted); }
.t27-footer__badges p::before { color: var(--wp--preset--color--brand-green); }
@media (max-width: 1099px) {
	.t27-footer__cols { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.t27-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
	.t27-footer__cols { grid-template-columns: 1fr 1fr; }
	.t27-footer__cols > .wp-block-column:last-child { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------------- Styles de blocs */
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--wp--preset--color--ink); color: #fff; }
.wp-block-button.is-style-dark .wp-block-button__link:hover { background: #1C3A32; }
.wp-block-button.is-style-amber .wp-block-button__link { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-amber .wp-block-button__link:hover { background: #F5B935; color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--line); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--brand-teal); color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-ghost-dark .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.wp-block-button.is-style-ghost-dark .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid var(--wp--preset--color--line); color: var(--wp--preset--color--ink); background: #fff; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; transition: background-color .15s, box-shadow .15s, transform .05s; }
.wp-block-button__link:active { transform: translateY(1px); }

.is-style-eyebrow { font-size: 13px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--primary); margin-bottom: 8px !important; }
.t27-eyebrow--green { color: var(--wp--preset--color--brand-green) !important; }
.is-style-pill { display: inline-flex !important; align-items: center; gap: 7px; width: fit-content; background: #fff; color: var(--wp--preset--color--ink); border-radius: 999px; padding: 7px 13px; font-size: 13px !important; font-weight: 800; line-height: 1.2; }
.is-style-pill.t27-i::before { width: 15px; height: 15px; color: var(--wp--preset--color--primary); }
.t27-pill--ink { background: var(--wp--preset--color--ink); color: #fff; }
.t27-pill--ink.t27-i::before { color: var(--wp--preset--color--amber) !important; }
.is-style-panel { border-radius: var(--t27-r-panel); padding: clamp(26px, 5vw, 64px) !important; overflow: hidden; }
.wp-block-group.is-style-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--t27-r-card); padding: 24px; }
ul.is-style-checks, ul.is-style-checks-dark { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
ul.is-style-checks li, ul.is-style-checks-dark li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
ul.is-style-checks li::before, ul.is-style-checks-dark li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; background: var(--wp--preset--color--mint) var(--t27-check-dark) center / 14px no-repeat; }
ul.is-style-checks-dark li { color: #fff; }
ul.is-style-checks-dark li::before { background-color: var(--wp--preset--color--brand-green); }
.wp-block-image.is-style-float img { filter: drop-shadow(0 30px 40px rgba(13,31,26,.18)); }
:root {
	--t27-tile: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"%3E%3Crect width="30" height="30" rx="10" fill="%23fff"/%3E%3C/svg%3E');
	--t27-check-dark: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230D1F1A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M5 12.5 10 17 19 7"/%3E%3C/svg%3E');
	--t27-ico-qr: 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.2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="3" width="7" height="7" rx="1.5"/%3E%3Crect x="14" y="3" width="7" height="7" rx="1.5"/%3E%3Crect x="3" y="14" width="7" height="7" rx="1.5"/%3E%3Cpath d="M14 14h3v3h-3zM20 14v.01M14 20h.01M17 20h4v-3"/%3E%3C/svg%3E');
}

/* -------------------------------------------------------------------- Sections */
.t27-section { padding-top: var(--t27-section); padding-bottom: var(--t27-section); }
.t27-section + .t27-section:not(.has-background) { padding-top: 0; }
.t27-section.has-background + .t27-section { padding-top: var(--t27-section); }
.t27-section--hero { padding-top: clamp(14px, 2.5vw, 28px); padding-bottom: 0; }
.t27-section--hero + .t27-section { padding-top: var(--t27-section) !important; }
.t27-lead { font-size: clamp(16.5px, 1.4vw, 18.5px) !important; line-height: 1.6; color: var(--wp--preset--color--ink-soft); }
.has-ink-background-color .t27-lead { color: var(--wp--preset--color--dark-muted); }
.t27-note { font-size: 14px; font-weight: 700; color: var(--wp--preset--color--ink-soft); margin-top: 10px !important; }
.t27-sechead { margin-bottom: clamp(22px, 3vw, 32px) !important; gap: 16px !important; }
.t27-sechead h2 { margin: 0; }
.t27-sechead .t27-lead { margin: 8px 0 0; }
.t27-sechead.is-centered { text-align: center; }
.t27-sechead.is-centered .is-style-eyebrow { margin-inline: auto; }
.t27-more { margin: 0; }
.t27-more a { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.t27-more a::after { content: "→"; transition: transform .15s; }
.rtl .t27-more a::after { content: "←"; }
.t27-more a:hover::after { transform: translateX(3px); }
.t27-only-mobile { display: none !important; }
@media (max-width: 781px) {
	.t27-only-mobile { display: flex !important; margin-top: 18px; }
	.t27-only-mobile .wp-block-button { width: 100%; }
	.t27-only-mobile .wp-block-button__link { width: 100%; }
	.t27-sechead .t27-more { display: none; }
}

/* Héro */
.t27-hero { position: relative; }
.t27-hero__cols { gap: clamp(24px, 4vw, 48px) !important; margin: 0 !important; }
.t27-hero h1 { margin: 18px 0 16px; }
.t27-hero__ctas { margin-top: 28px !important; gap: 12px; }
.t27-trust { gap: 10px 22px !important; margin-top: 22px !important; }
.t27-trust p { margin: 0; font-size: 14.5px; font-weight: 700; }
.t27-trust .t27-i { position: relative; gap: 0; padding-inline-start: 40px; min-height: 30px; background: var(--t27-tile) 0 50% / 30px 30px no-repeat; }
.rtl .t27-trust .t27-i { background-position: 100% 50%; }
.t27-trust .t27-i::before { position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background-color: var(--wp--preset--color--primary); }
.t27-hero__visual { margin: 0; text-align: center; }
.t27-hero__visual img { width: min(100%, 520px); }
@media (max-width: 781px) {
	.t27-hero__ctas .wp-block-button { width: 100%; }
	.t27-hero__ctas .wp-block-button__link { width: 100%; }
	.t27-hero__visual img { width: min(100%, 360px); }
}

/* Étapes / avantages */
.t27-steps, .t27-perks { gap: 16px !important; counter-reset: t27step; }
.t27-step, .t27-perk { height: 100%; position: relative; counter-increment: t27step; }
.t27-step h3, .t27-perk h3 { margin: 16px 0 8px; font-size: 19px; }
.t27-step p:last-child, .t27-perk p:last-child { margin: 0; color: var(--wp--preset--color--ink-soft); font-size: 15px; }
.t27-step::after { content: "0" counter(t27step); position: absolute; top: 18px; inset-inline-end: 22px; font-size: 44px; font-weight: 800; color: var(--wp--preset--color--line); line-height: 1; }
.t27-step__icon { width: 52px; height: 52px; margin: 0 !important; border-radius: 16px; background: var(--wp--preset--gradient--brand); color: var(--wp--preset--color--ink); justify-content: center; }
.t27-step__icon::before { width: 26px !important; height: 26px !important; }
.t27-perk .t27-step__icon { background: var(--wp--preset--color--mint); color: var(--wp--preset--color--primary); }
.t27-perks { flex-wrap: wrap !important; }
.t27-perks > .wp-block-column { flex-basis: calc(25% - 12px) !important; }
@media (max-width: 1099px) { .t27-perks > .wp-block-column { flex-basis: calc(50% - 8px) !important; flex-grow: 0 !important; } }
@media (max-width: 599px) { .t27-perks > .wp-block-column { flex-basis: 100% !important; } }

/* Appel aux commerçants */
.t27-pro__cols { gap: clamp(28px, 5vw, 56px) !important; margin: 0 !important; }
.t27-pro h2 { color: #fff; margin: 0 0 22px; }
.t27-pro .wp-block-buttons { margin-top: 26px; }
.t27-pro__visual { margin: 0; text-align: center; }
.t27-pro__visual img { width: min(100%, 380px); }

/* Installer l'application */
.t27-install { gap: 22px !important; padding: clamp(22px, 3vw, 36px) !important; border-radius: 28px; }
.t27-install__icon { margin: 0; width: 72px; flex: none; background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 8px 20px rgba(13,31,26,.08); }
.t27-install__icon img { display: block; }
.t27-install__text { flex: 1; min-width: 240px; }
.t27-install__text h3 { margin: 0 0 6px; }
.t27-install__text p { margin: 0; color: var(--wp--preset--color--ink-soft); }
.t27-install .wp-block-buttons { margin: 0; }
.t27-install-hint { flex-basis: 100%; margin: 0; font-weight: 700; font-size: 14.5px; }

/* Partenaires (accueil) */
.t27-section--partners .tsaio-partners__tools { display: none; }

/* -------------------------------------------------------------------- Pages */
.t27-page__head { padding-top: clamp(24px, 4vw, 40px); margin-bottom: clamp(20px, 3vw, 32px) !important; }
.t27-page__head h1, .t27-page__title { font-size: clamp(30px, 4vw, 44px) !important; letter-spacing: -.02em; margin: 10px 0 0; }
.t27-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--muted); }
.t27-crumbs a { color: var(--wp--preset--color--ink-soft); text-decoration: none; }
.t27-crumbs a:hover { color: var(--wp--preset--color--primary); }
.t27-crumbs [aria-current] { color: var(--wp--preset--color--ink); }
.t27-page .wp-block-post-content > h2 { margin-top: 1.6em; font-size: var(--wp--preset--font-size--x-large); }
.t27-page .wp-block-post-content { padding-bottom: 8px; }
.t27-page-wide .wp-block-post-content > .alignfull:first-child { margin-top: 0; }
.t27-page-centered { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(32px, 6vw, 64px); }
.t27-centered-card { padding: clamp(22px, 4vw, 40px) !important; border-radius: 28px !important; }
.t27-meta { color: var(--wp--preset--color--muted); font-size: 14px; font-weight: 700; }
.t27-featured img { border-radius: 24px; }
.t27-postcard { height: 100%; padding: 12px !important; display: flex; flex-direction: column; gap: 10px; }
.t27-postcard .wp-block-post-featured-image img { border-radius: 16px; }
.t27-postcard h2 { margin: 6px 6px 0; }
.t27-postcard .wp-block-post-excerpt, .t27-postcard .t27-meta { margin: 0 6px; }
.t27-noresults { text-align: center; padding: 40px 0; }

/* Espace partenaire (modèle Application) */
.t27-app { padding-top: clamp(16px, 3vw, 32px); padding-bottom: clamp(24px, 4vw, 48px); }
.t27-app .tsaio { font-size: 16px; }

/* Annuaire / fiche partenaire */
.t27-directory { padding-top: clamp(20px, 3vw, 32px); }
.t27-partner { padding-top: clamp(16px, 3vw, 28px); }

/* 404 */
.t27-404 { padding-top: var(--t27-section); text-align: center; }
.t27-404__art { width: 260px; height: 200px; margin: 0 auto 26px !important; border-radius: 40px; background: var(--wp--preset--color--mint); position: relative; }
.t27-404__art::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%) rotate(-6deg); border-radius: 22px; background: #fff var(--t27-ico-qr) center / 70px no-repeat; box-shadow: 0 16px 40px rgba(13,31,26,.12); opacity: .9; }
.t27-404__art::after { content: "404"; position: absolute; top: 16px; inset-inline-end: 14px; background: var(--wp--preset--color--ink); color: #fff; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 6px 12px; }
.t27-404 h1 { font-size: clamp(28px, 4vw, 40px) !important; }
.t27-404 .wp-block-buttons { margin-top: 22px; }

/* Devenir partenaire */
.t27-landing__hero { padding-top: var(--t27-section); padding-bottom: var(--t27-section); }
.t27-landing__cols { gap: clamp(28px, 5vw, 56px) !important; }
.t27-landing__hero h1 { color: #fff; margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 56px) !important; }
.t27-landing__hero .wp-block-buttons { margin-top: 26px; }
.t27-landing__visual { margin: 0; text-align: center; }
.t27-landing__visual img { width: min(100%, 380px); }
.t27-offers { gap: 16px !important; }
.t27-offer { height: 100%; border-radius: 28px !important; padding: clamp(24px, 3vw, 32px) !important; }
.t27-offer h2 { font-size: var(--wp--preset--font-size--x-large) !important; margin: 14px 0 8px; }
.t27-offer p:not(.is-style-pill) { color: var(--wp--preset--color--ink-soft); }
.t27-section--form { margin-top: 0; }
.t27-landing__form .tsaio-box { padding: clamp(20px, 4vw, 36px); border-radius: 28px; }
.t27-page-wide .t27-landing__hero + .t27-section { padding-top: var(--t27-section); }

/* -------------------------------------------------------------------- WooCommerce */
.t27-products .wc-block-product-template, .wc-block-product-template.is-flex-container { gap: 18px !important; }
.wc-block-product { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 22px; padding: 10px !important; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.wc-block-product:hover { box-shadow: 0 14px 30px rgba(13,31,26,.1); transform: translateY(-2px); }
.wc-block-product .wc-block-components-product-image { background: var(--wp--preset--color--surface); border-radius: 16px; overflow: hidden; margin: 0 0 10px !important; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.wc-block-product .wc-block-components-product-image img { object-fit: contain !important; mix-blend-mode: multiply; aspect-ratio: 1; }
.wc-block-product .wp-block-post-title { font-size: 16px !important; font-weight: 800; line-height: 1.3; margin: 0 6px 6px !important; text-align: start !important; }
.wc-block-product .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.wc-block-product .wc-block-components-product-price, .wc-block-product .wp-block-woocommerce-product-price { font-size: 18px !important; font-weight: 800; margin: 0 6px 10px !important; text-align: start !important; color: var(--wp--preset--color--ink); }
.wc-block-product .wp-block-woocommerce-product-button { margin: auto 0 0 !important; text-align: start !important; }
.wc-block-product .wp-block-button__link, .wc-block-product .wc-block-components-product-button__button { width: 100%; border-radius: 12px; font-size: 14.5px !important; padding: 11px 14px; min-height: 44px; background: var(--wp--preset--color--ink); color: #fff; }
.wc-block-product .wc-block-components-product-button__button:hover { background: #1C3A32; }
.wc-block-components-product-sale-badge { background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--ink) !important; border: 0 !important; border-radius: 999px !important; font-weight: 800 !important; }
@media (max-width: 781px) {
	.t27-products .wc-block-product-template { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
	.t27-products .wc-block-product-template > li { width: auto !important; margin: 0 !important; }
	.wc-block-product .wp-block-post-title { font-size: 14.5px !important; }
	.wc-block-product .wc-block-components-product-price { font-size: 16px !important; }
}
.wc-block-components-button:not(.is-link), .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { border-radius: 14px !important; font-weight: 800 !important; min-height: 52px; background: var(--wp--preset--color--primary) !important; color: #fff !important; }
.wc-block-components-button:not(.is-link):hover { background: var(--wp--preset--color--primary-dark) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select, .wc-block-components-textarea { border-radius: 12px !important; border-color: var(--wp--preset--color--line) !important; }
.wc-block-components-notice-banner { border-radius: 16px !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 24px; font-weight: 800; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: 14px; font-weight: 700; color: var(--wp--preset--color--muted); }
.wp-block-woocommerce-product-image-gallery img, .woocommerce-product-gallery__image img { border-radius: 24px; background: var(--wp--preset--color--surface); }
.single-product .wp-block-post-title { font-size: clamp(24px, 2.6vw, 32px) !important; line-height: 1.2; }
.single-product .wp-block-woocommerce-product-price { font-size: 32px !important; font-weight: 800; }
.single-product .wc-block-add-to-cart-form .single_add_to_cart_button, .single-product form.cart .button { background: var(--wp--preset--color--primary) !important; color: #fff !important; border-radius: 14px !important; min-height: 54px; padding: 0 28px !important; font-weight: 800 !important; }
.woocommerce .quantity .qty { border: 1.5px solid var(--wp--preset--color--line); border-radius: 12px; min-height: 54px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--wp--preset--color--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--wp--preset--color--mint); color: var(--wp--preset--color--primary); font-weight: 800; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--talabacard a { font-weight: 800; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea { border: 1.5px solid var(--wp--preset--color--line); border-radius: 12px; padding: 12px 14px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--wp--preset--color--primary); color: #fff; border-radius: 14px; font-weight: 800; padding: 12px 20px; }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--wp--preset--color--primary-dark); color: #fff; }
.wc-block-mini-cart__drawer .wc-block-components-button { border-radius: 12px !important; }
.wp-block-woocommerce-catalog-sorting select, .woocommerce-ordering select { border: 1.5px solid var(--wp--preset--color--line); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.wp-block-query-pagination a, .wp-block-query-pagination span.current, .woocommerce-pagination a, .woocommerce-pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--line); text-decoration: none; font-weight: 800; }
.wp-block-query-pagination span.current, .woocommerce-pagination span.current { background: var(--wp--preset--color--ink); color: #fff; box-shadow: none; }

/* -------------------------------------------------------------------- Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Icônes décoratives (masques SVG) : ajoutez la classe « t27-i t27-i--nom » à un paragraphe. */
.t27-i { display: inline-flex; align-items: center; gap: 10px; }
.t27-i::before { content: ""; flex: none; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--t27-ico) center / contain no-repeat; mask: var(--t27-ico) center / contain no-repeat; }
.t27-i--qr { --t27-ico: 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%3Crect x="3" y="3" width="7" height="7" rx="1.5"%3E%3C/rect%3E%3Crect x="14" y="3" width="7" height="7" rx="1.5"%3E%3C/rect%3E%3Crect x="3" y="14" width="7" height="7" rx="1.5"%3E%3C/rect%3E%3Cpath d="M14 14h3v3h-3zM20 14v.01M14 20h.01M17 20h4v-3"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--shield { --t27-ico: 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="M12 3 20 6v6c0 5-3.4 8.2-8 9-4.6-.8-8-4-8-9V6z"%3E%3C/path%3E%3Cpath d="m8.5 12 2.5 2.5 4.5-5"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--pin { --t27-ico: 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="M12 21s-7-6.1-7-11.5a7 7 0 0 1 14 0C19 14.9 12 21 12 21z"%3E%3C/path%3E%3Ccircle cx="12" cy="9.5" r="2.5"%3E%3C/circle%3E%3C/svg%3E'); }
.t27-i--check { --t27-ico: 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="M5 12.5 10 17l9-10"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--user { --t27-ico: 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%3Ccircle cx="12" cy="8" r="4"%3E%3C/circle%3E%3Cpath d="M4 21a8 8 0 0 1 16 0"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--idcard { --t27-ico: 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%3Crect x="3" y="5" width="18" height="14" rx="2"%3E%3C/rect%3E%3Ccircle cx="9" cy="11" r="2"%3E%3C/circle%3E%3Cpath d="M6 16a3 3 0 0 1 6 0M15 10h3M15 14h2"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--camera { --t27-ico: 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="M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z"%3E%3C/path%3E%3Ccircle cx="12" cy="13.5" r="3.5"%3E%3C/circle%3E%3C/svg%3E'); }
.t27-i--percent { --t27-ico: 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="M19 5 5 19"%3E%3C/path%3E%3Ccircle cx="7" cy="7" r="2.5"%3E%3C/circle%3E%3Ccircle cx="17" cy="17" r="2.5"%3E%3C/circle%3E%3C/svg%3E'); }
.t27-i--chart { --t27-ico: 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="M4 20h16"%3E%3C/path%3E%3Cpath d="M7 16v-5M12 16V6M17 16v-8"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--map { --t27-ico: 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="M9 4 3 6.5v13.5l6-2.5 6 2.5 6-2.5V4l-6 2.5z"%3E%3C/path%3E%3Cpath d="M9 4v13.5M15 6.5V20"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--zap { --t27-ico: 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="M13 2 4 14h7l-1 8 9-12h-7z"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--sparkle { --t27-ico: 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="M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M6 18l2.5-2.5M15.5 8.5 18 6"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--home { --t27-ico: 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="M3 10.5 12 3l9 7.5"%3E%3C/path%3E%3Cpath d="M5 9v11h5v-6h4v6h5V9"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--phone { --t27-ico: 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="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--mail { --t27-ico: 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%3Crect x="3" y="5" width="18" height="14" rx="2"%3E%3C/rect%3E%3Cpath d="m3.5 7 8.5 6 8.5-6"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--truck { --t27-ico: 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="M3 6h11v10H3zM14 10h4l3 3v3h-7"%3E%3C/path%3E%3Ccircle cx="7" cy="17.5" r="1.8"%3E%3C/circle%3E%3Ccircle cx="17" cy="17.5" r="1.8"%3E%3C/circle%3E%3C/svg%3E'); }
.t27-i--wallet { --t27-ico: 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="M3 7a2 2 0 0 1 2-2h13v4"%3E%3C/path%3E%3Crect x="3" y="7" width="18" height="13" rx="2"%3E%3C/rect%3E%3Cpath d="M16 13.5h2"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--store { --t27-ico: 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="M3 9.5 5 4h14l2 5.5"%3E%3C/path%3E%3Cpath d="M3 9.5h18a3 3 0 0 1-6 0 3 3 0 0 1-6 0 3 3 0 0 1-6 0z"%3E%3C/path%3E%3Cpath d="M5 12.5V20h14v-7.5M10 20v-4h4v4"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--download { --t27-ico: 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="M12 4v11M7 10l5 5 5-5M5 20h14"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--arrow-r { --t27-ico: 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="M5 12h14M13 6l6 6-6 6"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--search { --t27-ico: 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%3Ccircle cx="11" cy="11" r="7"%3E%3C/circle%3E%3Cpath d="M20 20l-3.6-3.6"%3E%3C/path%3E%3C/svg%3E'); }
.t27-i--lock { --t27-ico: 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%3Crect x="5" y="11" width="14" height="10" rx="2"%3E%3C/rect%3E%3Cpath d="M8 11V8a4 4 0 0 1 8 0v3"%3E%3C/path%3E%3C/svg%3E'); }

/* Écrans du plugin TalabaStore (carte, espace partenaire) : largeur « large » dans les pages. */
.is-layout-constrained > .tsaio:not(.tsaio-signup) { max-width: var(--wp--style--global--wide-size) !important; }
.t27-app .is-layout-flow > .tsaio, .t27-app .wp-block-post-content > .tsaio { max-width: none; }

/* Boutique */
.t27-shop__bar { margin-bottom: 18px !important; font-weight: 700; color: var(--wp--preset--color--ink-soft); }
.t27-shop__bar p { margin: 0; }
.t27-page__head--slim { margin-bottom: 18px !important; }
.t27-product__cols { gap: clamp(24px, 4vw, 48px) !important; }
.t27-product__summary > * + * { margin-top: 18px; }
.t27-product__perks { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.t27-product__perks p { margin: 0; font-size: 15px; font-weight: 700; }
.t27-product__perks .t27-i::before { color: var(--wp--preset--color--primary); background-color: var(--wp--preset--color--primary); }
.wp-block-woocommerce-product-details { margin-top: clamp(32px, 5vw, 56px) !important; }
.wp-block-woocommerce-related-products h2, .t27-product .wp-block-woocommerce-product-collection > h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: clamp(32px, 5vw, 56px); }
.t27-header--checkout .t27-header__bar { min-height: 68px; }
.t27-header--checkout .t27-logo img { height: 34px !important; }
.t27-secure { margin: 0; font-weight: 800; font-size: 14.5px; color: var(--wp--preset--color--primary); }
.wc-block-product .wc-block-components-product-button { width: 100%; align-items: stretch !important; }
.wc-block-product .wc-block-components-product-button .added_to_cart { text-align: center; margin-top: 6px; font-weight: 800; font-size: 14px; }
