/* Tiweb Studio — habillage front The French Book Club.
   Charte : le doré est une dorure (filets, étoiles, cadres), jamais un aplat. Aucune ombre portée.
   Une seule courbe : cubic-bezier(.4,0,.2,1). Durées : 0,3 s survol · 0,45 s bascule · 0,6 s apparition · 1,5-4 s moments forts. */

body.tw-site{background:var(--tw-creme);-webkit-font-smoothing:antialiased}
.tw-site ::selection{background:var(--tw-lilas);color:var(--tw-encre)}
.tw-site a:focus-visible,.tw-site button:focus-visible,.tw-site input:focus-visible,.tw-site select:focus-visible{outline:2px solid var(--tw-or-profond);outline-offset:3px}

/* ---------- Filet étoilé au-dessus des titres de section ---------- */
.tw-filet{position:relative;padding-top:32px}
.tw-filet::before{
	content:"";position:absolute;top:6px;left:50%;width:128px;height:1px;margin-left:-64px;
	background:linear-gradient(90deg,var(--tw-or) 0 44%,transparent 44% 56%,var(--tw-or) 56% 100%);
}
.tw-filet::after{
	content:"";position:absolute;top:0;left:50%;width:13px;height:13px;margin-left:-6.5px;background:var(--tw-or);
	clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);
}
.tw-filet--left::before{left:0;margin-left:0}
.tw-filet--left::after{left:57px;margin-left:0}
.tw-js .tw-filet.tw-will-draw::before{transform:scaleX(0);transform-origin:center;transition:transform 1.5s cubic-bezier(.4,0,.2,1)}
.tw-js .tw-filet.tw-will-draw::after{opacity:0;transition:opacity .6s cubic-bezier(.4,0,.2,1) .9s}
.tw-js .tw-filet.is-drawn::before{transform:scaleX(1)}
.tw-js .tw-filet.is-drawn::after{opacity:1}

/* ---------- Apparition (niveau 2) : une seule fois, jamais sur le texte courant ---------- */
.tw-js .tw-will-reveal{opacity:0;transform:translateY(20px);transition:opacity .6s cubic-bezier(.4,0,.2,1),transform .6s cubic-bezier(.4,0,.2,1)}
.tw-js .tw-will-reveal.is-in{opacity:1;transform:none}
.tw-products ul.products>li:nth-child(2),.tw-cards>:nth-child(2){transition-delay:80ms}
.tw-products ul.products>li:nth-child(3),.tw-cards>:nth-child(3){transition-delay:160ms}
.tw-products ul.products>li:nth-child(4),.tw-cards>:nth-child(4){transition-delay:240ms}
.tw-cards>:nth-child(5){transition-delay:320ms}

/* ---------- Ex-libris : cadre à angles vifs, double filet ---------- */
.tw-exlibris img{
	display:block;width:100%;background:var(--tw-blanc);padding:12px;border:1px solid var(--tw-lilas);
	outline:1px solid var(--tw-or);outline-offset:-12px;border-radius:0;
}

/* ---------- Ciel étoilé (hero) ---------- */
.tw-sky{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.tw-sky .tw-stars{width:100%;height:100%}
.tw-sky .tw-moon,.tw-sky .tw-star{fill:var(--tw-or)}
.tw-sky .tw-star{opacity:.4;transform-box:fill-box;transform-origin:center;animation:tw-twinkle 4s cubic-bezier(.4,0,.2,1) infinite}
.tw-sky .s2{animation-delay:-.8s}.tw-sky .s3{animation-delay:-1.6s}.tw-sky .s4{animation-delay:-2.4s}.tw-sky .s5{animation-delay:-3.2s}
@keyframes tw-twinkle{0%,100%{opacity:.4}50%{opacity:1}}

/* ---------- Cartes catégories ---------- */
.tw-cat{background:var(--tw-blanc);border:1px solid var(--tw-lilas);transition:transform .3s cubic-bezier(.4,0,.2,1)}
.tw-cat img{outline:1px solid var(--tw-or);outline-offset:-1px;aspect-ratio:4/5;object-fit:cover;transition:outline-color .3s cubic-bezier(.4,0,.2,1)}
.tw-cat:hover{transform:translateY(-4px)}
.tw-cat:hover img{outline-color:var(--tw-or-profond)}

/* ---------- Cartes produit WooCommerce (widget Produits Elementor) ---------- */
.tw-products ul.products li.product{
	background:var(--tw-blanc)!important;border:1px solid var(--tw-lilas)!important;padding:10px 10px 16px!important;text-align:center;
	display:flex!important;flex-direction:column!important;align-items:stretch!important;transition:transform .3s cubic-bezier(.4,0,.2,1);
}
.tw-products ul.products li.product:hover{transform:translateY(-4px)}
.tw-products ul.products li.product a.woocommerce-LoopProduct-link{position:relative;display:block}
.tw-products ul.products li.product img{
	aspect-ratio:1;object-fit:cover;width:100%;margin:0 0 16px!important;
	outline:1px solid var(--tw-or);outline-offset:-1px;transition:outline-color .3s cubic-bezier(.4,0,.2,1),opacity .45s cubic-bezier(.4,0,.2,1);
}
.tw-products ul.products li.product:hover img{outline-color:var(--tw-or-profond)}
.tw-products ul.products li.product .tw-flip-img{position:absolute;top:0;left:0;opacity:0}
.tw-products ul.products li.product:hover .tw-flip-img{opacity:1}
.tw-products ul.products li.product .woocommerce-loop-product__title{
	font-family:var(--tw-serif)!important;font-weight:600!important;font-size:1.375rem!important;line-height:1.25!important;color:var(--tw-encre)!important;
	padding:0 8px 12px!important;margin:0 0 12px!important;position:relative;
}
.tw-products ul.products li.product .woocommerce-loop-product__title::after{content:"";position:absolute;left:50%;bottom:0;width:32px;height:1px;margin-left:-16px;background:var(--tw-or)}
.tw-products ul.products li.product .price{font-family:var(--tw-sans)!important;font-weight:600!important;font-size:1.125rem!important;color:var(--tw-encre)!important;margin-bottom:16px!important}
.tw-products ul.products li.product .button{
	margin-top:auto!important;display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:24px!important;
	background:var(--tw-violet)!important;color:var(--tw-blanc)!important;font:500 1rem/1 var(--tw-sans)!important;transition:background-color .3s cubic-bezier(.4,0,.2,1)!important;
}
.tw-products ul.products li.product .button:hover{background:var(--tw-encre)!important}
.tw-products ul.products li.product .added_to_cart{display:block;margin-top:8px;font-size:.875rem;color:var(--tw-violet)}

/* Pastilles */
.tw-pill{display:inline-block;padding:6px 14px;border-radius:24px;font:600 .75rem/1 var(--tw-sans);letter-spacing:.14em;text-transform:uppercase}

/* ---------- En-tête ---------- */
.tw-announce{letter-spacing:.06em}
.tw-logo a,.tw-logo .elementor-heading-title{letter-spacing:.22em;text-transform:uppercase;white-space:nowrap}
.tw-header{border-bottom:0}
.elementor-menu-cart__toggle .tw-pulse{animation:tw-pulse .6s cubic-bezier(.4,0,.2,1) 1}
@keyframes tw-pulse{0%{transform:scale(1)}40%{transform:scale(1.25)}100%{transform:scale(1)}}

/* ---------- Avis ---------- */
.tw-review{background:var(--tw-blanc);border:1px solid var(--tw-lilas);position:relative}
.tw-review::before{content:"“"!important;position:absolute!important;inset:auto!important;top:-6px!important;left:20px!important;width:auto!important;height:auto!important;background:none!important;font:600 4rem/1 var(--tw-serif);color:var(--tw-or);opacity:1!important}

/* ---------- Emplacements à remplacer ---------- */
.tw-placeholder{background:var(--tw-lilas);border:1px dashed var(--tw-lavande);color:var(--tw-prune)}

/* ---------- Pied de page ---------- */
.tw-footer a{text-decoration:none}
.tw-footer a:hover{text-decoration:underline;text-decoration-color:var(--tw-or);text-underline-offset:3px}

@media (prefers-reduced-motion:reduce){
	.tw-sky .tw-star{animation:none;opacity:.8}
	.tw-js .tw-will-reveal,.tw-js .tw-filet.tw-will-draw::before,.tw-js .tw-filet.tw-will-draw::after{transition:none;opacity:1;transform:none}
	.tw-cat,.tw-products ul.products li.product{transition:none}
	.tw-cat:hover,.tw-products ul.products li.product:hover{transform:none}
}

/* ---------- Hero ---------- */
.tw-hero{position:relative;overflow:hidden}
.tw-hero .tw-sky-wrap{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;margin:0!important;z-index:0}
.tw-hero .tw-sky-wrap>.elementor-widget-container{height:100%}
.tw-accroche em{font-style:italic;font-weight:600;color:var(--tw-violet)}
.tw-h1-kicker .elementor-heading-title{max-width:34em}

/* ---------- Liens dans les textes ---------- */
.tw-site .elementor-widget-text-editor a{color:var(--tw-violet);text-decoration:underline;text-decoration-color:var(--tw-or);text-underline-offset:3px}
.tw-site .elementor-widget-text-editor a:hover{text-decoration-thickness:2px;color:var(--tw-encre)}
.tw-footer .elementor-widget-text-editor a{color:inherit}

/* ---------- En-tête : recherche sans fond, cible tactile 44 px ---------- */
.tw-header .elementor-search-form__toggle i,.tw-header .elementor-search-form__toggle{background:transparent!important;color:var(--tw-encre)!important}
.tw-header .elementor-search-form__toggle{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
.tw-header .elementor-widget-icon a{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center}

/* ---------- Image de l'atelier : format maîtrisé ---------- */
.tw-portrait img{aspect-ratio:4/5;object-fit:cover}

.tw-products ul.products li.product>a.woocommerce-LoopProduct-link{width:100%!important}
.tw-products ul.products li.product img{width:100%!important;height:auto!important}
.tw-products ul.products li.product .button{width:100%!important;align-self:stretch}
.tw-sky .tw-stars{overflow:hidden}
@media (max-width:767px){.tw-header .elementor-menu-cart__toggle .elementor-button{padding:10px}.tw-logo .elementor-heading-title{white-space:nowrap}}

/* ---------- Grilles de cartes (robustes sur tous les écrans) ---------- */
.tw-grid-5,.tw-grid-3{display:grid!important;gap:24px!important}
.tw-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.tw-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tw-grid-5>.e-con,.tw-grid-3>.e-con{width:auto!important;max-width:none!important;min-width:0}
@media (max-width:1024px){.tw-grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}.tw-grid-3{grid-template-columns:1fr}}
@media (max-width:767px){.tw-grid-5{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important}}
@media (max-width:767px){.tw-logo .elementor-heading-title{letter-spacing:.06em!important}}
@media (max-width:380px){.tw-logo .elementor-heading-title{font-size:12px!important}}
