/* FrenchForm3D : boutique et fiche de vente produit (chargée sur les pages WooCommerce, les CGV et Livraison et retours).
   Complète les styles « .ff3d » du site. Source : Documents/Claude/frenchform3d-boutique/boutique.css */

/* =====================================================================
   GRILLE PRODUITS (boutique, catégories, produits similaires)
   4 colonnes fixes sur ordinateur : une carte garde la même taille qu'il y ait 2 ou 40 produits.
   ===================================================================== */
.ff3d .wc-block-product-template{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
.ff3d .wc-block-product-template>li{width:auto!important;max-width:none!important;margin:0!important}
.ff3d .wc-block-product{border-radius:18px;border-color:var(--line2,#E3E7EC);padding:0 0 16px!important}
.ff3d .wc-block-product .wc-block-components-product-image{margin:0 0 12px!important;overflow:hidden}
.ff3d .wc-block-product .wc-block-components-product-image img{transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.ff3d .wc-block-product:hover .wc-block-components-product-image img{transform:scale(1.06)}
.ff3d .wc-block-product .wp-block-post-title{font-size:16.5px!important;line-height:1.25;margin:0 16px 6px!important}
.ff3d .wc-block-product .wc-block-components-product-price{font-size:16px!important;color:var(--navy);margin:0 16px 12px!important}
.ff3d .wc-block-product .woocommerce-price-suffix{font-family:var(--mono);font-weight:500;font-size:11px;letter-spacing:.06em;color:var(--muted)}
.ff3d .wc-block-product .wp-block-button{margin:auto 16px 0!important}
.ff3d .wc-block-product .wp-block-button__link{border-radius:999px!important;padding:10px 14px;font-size:14.5px}
.ff3d .wc-block-product .wp-block-button__link:hover{background:var(--red-d)!important}
@media (max-width:1080px){.ff3d .wc-block-product-template{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:760px){
  .ff3d .wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .ff3d .wc-block-product{border-radius:14px;padding-bottom:12px!important}
  .ff3d .wc-block-product .wp-block-post-title{font-size:15px!important;margin:0 12px 4px!important}
  .ff3d .wc-block-product .wc-block-components-product-price{font-size:15px!important;margin:0 12px 10px!important}
  .ff3d .wc-block-product .wp-block-button{margin:auto 12px 0!important}
  .ff3d .wc-block-product .wp-block-button__link{padding:9px 8px;font-size:13.5px}
}

/* =====================================================================
   FICHE PRODUIT
   ===================================================================== */
/* texte : 16 px de base, comme la plupart des boutiques */
.ff3d:has(.ff3d-pdp){font-size:16px;line-height:1.6}
.ff3d:has(.ff3d-pdp) .ff3d-main .ff3d-s{padding-top:clamp(44px,5.6vw,80px);padding-bottom:clamp(44px,5.6vw,80px)}
.ff3d:has(.ff3d-pdp) .ff3d-main h2{font-size:clamp(24px,2.5vw,34px);line-height:1.1}
.ff3d:has(.ff3d-pdp) .ff3d-main h3{font-size:18px;line-height:1.25}
.ff3d:has(.ff3d-pdp) .ff3d-kicker{font-size:12px;margin-bottom:12px}

/* ---------- haut de fiche ---------- */
.ff3d .ff3d-main .ff3d-pdp{padding-top:clamp(18px,2.2vw,32px);padding-bottom:clamp(36px,4.5vw,64px)}
.ff3d .ff3d-crumbs{font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--muted);margin-bottom:clamp(14px,2vw,24px)!important}
.ff3d .ff3d-crumbs a{text-decoration:none}
.ff3d .ff3d-crumbs a:hover{color:var(--red-d)}
.ff3d .ff3d-pdp-grid{gap:clamp(24px,4vw,56px)!important}
.ff3d .woocommerce-product-gallery__image{border-radius:20px;overflow:hidden}
.ff3d .woocommerce-product-gallery__image img{border-radius:20px;box-shadow:0 40px 80px -56px rgba(20,33,61,.55)}
.ff3d .woocommerce-product-gallery .flex-control-thumbs{flex-wrap:wrap;gap:10px}
.ff3d .woocommerce-product-gallery .flex-control-thumbs li{width:68px!important}
.ff3d .woocommerce-product-gallery .flex-control-thumbs img{border-radius:12px;transition:opacity .2s,transform .25s}
.ff3d .woocommerce-product-gallery .flex-control-thumbs img:hover{transform:translateY(-2px)}
.ff3d .woocommerce-product-gallery .flex-control-thumbs img.flex-active,.ff3d .woocommerce-product-gallery .flex-control-thumbs img:hover{border-color:var(--navy)}
.ff3d .ff3d-main .ff3d-pdp-summary h1{font-size:clamp(26px,2.5vw,36px);line-height:1.08;letter-spacing:-.025em;margin-bottom:10px!important}
.ff3d .ff3d-pdp-summary .wc-block-components-product-rating{margin-bottom:8px}
.ff3d .ff3d-pdp-price{color:var(--navy);font-size:clamp(24px,2.1vw,28px)!important;margin:0 0 14px!important;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ff3d .ff3d-pdp-price del{font-size:.62em;font-weight:500;color:var(--muted)}
.ff3d .ff3d-pdp-price ins{text-decoration:none;color:var(--red-d)}
.ff3d .ff3d-pdp-price .woocommerce-price-suffix{font-family:var(--mono);font-weight:500;font-size:11.5px;letter-spacing:.08em;color:var(--muted)}
.ff3d .ff3d-pdp-excerpt{font-size:16px}
.ff3d .ff3d-accroche{font-size:16.5px;line-height:1.5;color:var(--ink);margin:0 0 12px}
.ff3d .ff3d-points{margin:0!important}
.ff3d .ff3d-pdp-excerpt li{font-size:15.5px;line-height:1.45;padding:5px 0 5px 30px}
.ff3d .ff3d-pdp-excerpt li::before{top:11px;border-color:var(--red-d);border-left-width:2px;border-bottom-width:2px}
.ff3d .ff3d-pdp-excerpt li.ff3d-emo{padding-left:32px}
.ff3d .ff3d-pdp-excerpt li.ff3d-emo::before{display:none}
.ff3d .ff3d-pdp-excerpt li.ff3d-emo>span{position:absolute;left:0;top:4px;font-size:18px;line-height:1.3}

/* ---------- achat ---------- */
.ff3d .ff3d-pdp-cart form.cart{margin:20px 0 10px;gap:10px}
.ff3d .ff3d-pdp-cart .quantity input.qty{min-height:54px;border-radius:999px;border-color:var(--line)}
.ff3d .ff3d-pdp-cart .single_add_to_cart_button{position:relative;overflow:hidden;min-height:54px;border-radius:999px!important;background:var(--red-d)!important;font-size:16.5px;box-shadow:0 14px 32px -14px rgba(230,57,70,.8);transition:background-color .2s,box-shadow .25s,transform .2s}
.ff3d .ff3d-pdp-cart .single_add_to_cart_button::after{content:"";position:absolute;inset:0 auto 0 -60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);transform:skewX(-18deg);animation:ff-shine 4.5s ease-in-out 1.2s infinite}
@keyframes ff-shine{0%,70%{left:-60%}100%{left:130%}}
.ff3d .ff3d-pdp-cart .single_add_to_cart_button:hover{background:#B32633!important;transform:none;box-shadow:0 18px 38px -14px rgba(230,57,70,.9)}
.ff3d .ff3d-pdp-cart .single_add_to_cart_button:active{transform:scale(.98)}
.ff3d .ff3d-pdp-cart .single_add_to_cart_button:focus-visible,.ff3d-sticky-btn:focus-visible{outline:2px solid #2F5BC8;outline-offset:3px}
.ff3d .ff3d-assure{list-style:none;margin:18px 0 0!important;padding:16px 0 0!important;border-top:1px solid var(--line2,#E3E7EC);display:grid;gap:9px;font-size:14.5px;line-height:1.4;color:var(--muted)}
.ff3d .ff3d-assure li{display:flex;gap:10px;align-items:flex-start}
.ff3d .ff3d-emoji{flex:none;width:22px;text-align:center;font-size:16px;line-height:1.25}
.ff3d .ff3d-assure strong{color:var(--navy)}
.ff3d .ff3d-assure .ff3d-ok{color:#1A6E44}
.ff3d .ff3d-assure a{text-underline-offset:3px}

/* ---------- bandeau défilant ---------- */
.ff3d .ff3d-ticker{display:flex;overflow:hidden;background:var(--navy);color:#fff;padding:13px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.ff3d .ff3d-ticker-row{flex:none;display:flex;gap:44px;list-style:none;margin:0;padding:0 22px;min-width:100%;justify-content:space-around;animation:ff-ticker 38s linear infinite}
.ff3d .ff3d-ticker-row li{white-space:nowrap;font-size:14.5px;font-weight:600;letter-spacing:.01em}
.ff3d .ff3d-ticker:hover .ff3d-ticker-row{animation-play-state:paused}
@keyframes ff-ticker{to{transform:translateX(-100%)}}

/* ---------- gestes ---------- */
.ff3d .ff3d-gestes-in>h2{max-width:16em;margin-bottom:clamp(22px,2.8vw,36px)}
.ff3d .ff3d-gestes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:clamp(12px,1.6vw,20px)}
.ff3d .ff3d-gestes li{position:relative;background:#fff;border:1px solid var(--line2,#E3E7EC);border-radius:20px;padding:clamp(20px,2.2vw,28px);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s,opacity .6s}
.ff3d .ff3d-gestes li:hover{transform:translateY(-6px);box-shadow:0 26px 44px -30px rgba(20,33,61,.45)}
.ff3d .ff3d-gestes .ff3d-num{position:absolute;top:20px;right:22px;font-family:var(--mono);font-size:12px;letter-spacing:.1em;color:var(--red-d)}
.ff3d .ff3d-big-emoji{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;background:var(--paper);border:1px solid var(--line2,#E3E7EC);font-size:26px;line-height:1;margin-bottom:16px;transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
.ff3d .ff3d-gestes li:hover .ff3d-big-emoji,.ff3d .ff3d-bloc:hover .ff3d-big-emoji{transform:rotate(-8deg) scale(1.14)}
.ff3d .ff3d-gestes li:not(:has(.ff3d-big-emoji)) h3{margin-top:34px}
.ff3d .ff3d-gestes h3{margin-bottom:6px}
.ff3d .ff3d-gestes p{margin:0;color:var(--muted);font-size:15.5px;line-height:1.5}

/* ---------- en détail : la description découpée en cartes ---------- */
.ff3d .ff3d-histoire-in>h2{margin-bottom:clamp(22px,2.8vw,36px)}
.ff3d .ff3d-histoire-intro{max-width:64ch;color:var(--muted);margin-bottom:24px}
.ff3d .ff3d-blocs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.6vw,20px)}
.ff3d .ff3d-bloc{background:var(--paper);border:1px solid var(--line2,#E3E7EC);border-radius:20px;padding:clamp(20px,2.4vw,30px)}
.ff3d .ff3d-bloc .ff3d-big-emoji{background:#fff}
.ff3d .ff3d-bloc h3{margin-bottom:8px;color:var(--navy)}
.ff3d .ff3d-bloc p{margin:0 0 .7em;color:var(--muted);font-size:15.5px;line-height:1.6}
.ff3d .ff3d-bloc>:last-child{margin-bottom:0}
.ff3d .ff3d-bloc ul{list-style:none;margin:0;padding:0;font-size:15.5px;color:var(--muted)}
.ff3d .ff3d-bloc li{position:relative;padding:4px 0 4px 24px}
.ff3d .ff3d-bloc li::before{content:"";position:absolute;left:2px;top:13px;width:7px;height:7px;background:var(--red-d);border-radius:2px;transform:rotate(45deg)}
.ff3d .ff3d-blocs>.ff3d-bloc:last-child:nth-child(odd){grid-column:1/-1}

/* ---------- mot de l'atelier + caractéristiques ---------- */
.ff3d .ff3d-pdp-cols{gap:clamp(16px,2.4vw,32px)!important;align-items:stretch!important}
.ff3d .ff3d-mot{height:100%;position:relative;overflow:hidden;isolation:isolate;background:var(--navy);color:#fff;border-radius:22px;padding:clamp(24px,3vw,38px);display:flex;flex-direction:column}
.ff3d .ff3d-mot::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(50% 70% at 0% 100%,rgba(230,57,70,.38),transparent 70%),radial-gradient(50% 70% at 100% 0%,rgba(47,91,200,.5),transparent 70%)}
.ff3d .ff3d-mot-k{font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.72);margin:0 0 16px}
.ff3d .ff3d-mot-k span{display:inline-block;font-size:18px;letter-spacing:0;margin-right:4px;transform-origin:70% 70%;animation:ff-wave 2.6s ease-in-out infinite}
@keyframes ff-wave{0%,60%,100%{transform:none}10%,30%{transform:rotate(16deg)}20%,40%{transform:rotate(-8deg)}}
.ff3d .ff3d-mot blockquote{margin:0;padding:0;border:0}
.ff3d .ff3d-mot blockquote p{font-family:var(--display);font-weight:700;font-size:clamp(18px,1.7vw,22px);line-height:1.38;letter-spacing:-.01em;color:#fff;margin:0}
.ff3d .ff3d-mot a{color:#fff}
.ff3d .ff3d-mot-sig{margin:auto 0 0!important;padding-top:22px;font-size:14.5px;color:rgba(255,255,255,.75)}
.ff3d .ff3d-mot-sig::before{content:"";display:inline-block;width:22px;height:1.5px;background:var(--red);vertical-align:middle;margin-right:10px}
.ff3d .ff3d-specs{position:static;height:100%;background:#fff;border-radius:22px;border-color:var(--line2,#E3E7EC);padding:clamp(22px,2.6vw,30px)!important}
.ff3d:has(.ff3d-pdp) .ff3d-main .ff3d-specs h2{font-size:21px;color:var(--navy);margin-bottom:12px!important}
.ff3d .ff3d-specs table{font-size:14.5px}
.ff3d .ff3d-specs th,.ff3d .ff3d-specs td{padding:9px 0}
.ff3d .ff3d-specs th{font-size:11.5px}
.ff3d .ff3d-specs tr:last-child th,.ff3d .ff3d-specs tr:last-child td{border-bottom:0}
.ff3d .ff3d-secu{margin:14px 0 0!important;padding:12px 14px;border-radius:14px;background:var(--paper);border:1px solid var(--line2,#E3E7EC);font-size:13.5px;line-height:1.45;color:var(--ink)}
.ff3d .ff3d-secu::before{content:"⚠️ "}

/* ---------- vidéo ---------- */
.ff3d .ff3d-video-in>h2{color:#fff;margin-bottom:clamp(20px,2.6vw,32px)}
.ff3d .ff3d-video{border-radius:22px;overflow:hidden;background:#000;aspect-ratio:16/9}
.ff3d .ff3d-video video,.ff3d .ff3d-video iframe{display:block;width:100%;height:100%;border:0;object-fit:cover}

/* ---------- questions fréquentes ---------- */
.ff3d .ff3d-faq-in{max-width:800px!important}
.ff3d .ff3d-faq{margin-top:clamp(16px,2.2vw,28px);border-top:1px solid var(--line)}
.ff3d .ff3d-faq details{border-bottom:1px solid var(--line)}
.ff3d .ff3d-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;font-family:var(--display);font-weight:700;font-size:17px;letter-spacing:-.01em;color:var(--navy);min-height:44px;transition:color .2s}
.ff3d .ff3d-faq summary:hover{color:var(--red-d)}
.ff3d .ff3d-faq summary::-webkit-details-marker{display:none}
.ff3d .ff3d-faq summary::after{content:"";flex:none;width:13px;height:13px;background:linear-gradient(var(--red-d),var(--red-d)) center/100% 2px no-repeat,linear-gradient(var(--red-d),var(--red-d)) center/2px 100% no-repeat;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.ff3d .ff3d-faq details[open] summary::after{transform:rotate(135deg)}
.ff3d .ff3d-faq summary:focus-visible{outline:2px solid #2F5BC8;outline-offset:4px;border-radius:6px}
.ff3d .ff3d-faq details p{margin:0;padding:0 40px 18px 0;color:var(--muted);font-size:15.5px;max-width:66ch;animation:ff-drop .35s cubic-bezier(.2,.7,.2,1)}
@keyframes ff-drop{from{opacity:0;transform:translateY(-6px)}}

/* ---------- avis ---------- */
.ff3d .ff3d-reviews-s{border-top:1px solid var(--line2,#E3E7EC)}
.ff3d .ff3d-reviews-s>*{max-width:800px!important}
.ff3d .ff3d-reviews-s .commentlist{list-style:none;padding:0;margin:0 0 24px}
.ff3d .ff3d-reviews-s .commentlist li{padding:18px 0;border-bottom:1px solid var(--line)}
.ff3d .ff3d-reviews-s .avatar{display:none}
.ff3d .ff3d-reviews-s textarea,.ff3d .ff3d-reviews-s input[type=text],.ff3d .ff3d-reviews-s input[type=email]{width:100%;font:inherit;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff}
.ff3d .ff3d-reviews-s input[type=submit]{background:var(--navy);color:#fff;border:0;border-radius:999px;padding:13px 22px;font:inherit;font-weight:700;cursor:pointer}
.ff3d .ff3d-reviews-s .woocommerce-noreviews,.ff3d .ff3d-reviews-s .woocommerce-verification-required{color:var(--muted);font-size:15px;margin:0 0 6px}
.ff3d .ff3d-related h2{margin-bottom:22px!important}

/* ---------- apparitions au défilement ---------- */
.ff-rv .ff3d [data-ff-rv]{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.ff-rv .ff3d [data-ff-rv].is-in{opacity:1;transform:none}
.ff-rv .ff3d .ff3d-pdp-media{animation:ff-in .8s cubic-bezier(.2,.7,.2,1) both}
.ff-rv .ff3d .ff3d-pdp-summary>*{animation:ff-in .7s cubic-bezier(.2,.7,.2,1) both}
.ff-rv .ff3d .ff3d-pdp-summary>:nth-child(2){animation-delay:.06s}
.ff-rv .ff3d .ff3d-pdp-summary>:nth-child(3){animation-delay:.12s}
.ff-rv .ff3d .ff3d-pdp-summary>:nth-child(4){animation-delay:.18s}
.ff-rv .ff3d .ff3d-pdp-summary>:nth-child(5){animation-delay:.24s}
.ff-rv .ff3d .ff3d-pdp-summary>:nth-child(n+6){animation-delay:.3s}
@keyframes ff-in{from{opacity:0;transform:translateY(18px)}}

/* ---------- barre d'achat mobile ---------- */
.ff3d-sticky{display:none}
@media (max-width:781px){
  .ff3d-sticky:not([hidden]){position:fixed;z-index:60;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;padding:8px 8px 8px 18px;border-radius:999px;background:rgba(8,12,23,.92);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#fff;box-shadow:0 18px 40px -16px rgba(8,12,23,.7);font-family:"FF Text",ui-sans-serif,system-ui,sans-serif;animation:ff-up .35s cubic-bezier(.2,.7,.2,1)}
  @keyframes ff-up{from{opacity:0;transform:translateY(20px)}}
  .ff3d-sticky-txt{min-width:0;flex:1;display:grid;line-height:1.2}
  .ff3d-sticky-txt strong{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ff3d-sticky-txt span{font-size:13px;opacity:.8}
  .ff3d-sticky-txt .woocommerce-price-suffix{font-size:10.5px}
  .ff3d-sticky-btn{flex:none;min-height:44px;padding:0 18px;border:0;border-radius:999px;background:#C92E3B;color:#fff;font:inherit;font-weight:700;font-size:14.5px;cursor:pointer}
  .ff3d-sticky-btn:active{transform:scale(.97)}
  .ff3d-has-sticky .ff3d-footer{padding-bottom:96px}
}

/* ---------- encadré légal (CGV) ---------- */
.ff3d .ff3d-encadre{margin:24px 0;padding:22px 24px;border:1px solid var(--line);border-left:3px solid var(--navy);border-radius:14px;background:var(--paper);font-size:15.5px;line-height:1.55}
.ff3d .ff3d-encadre p{margin:0 0 .8em}
.ff3d .ff3d-encadre p:last-child{margin-bottom:0}

/* ---------- responsive ---------- */
@media (max-width:781px){
  .ff3d .ff3d-blocs{grid-template-columns:1fr}
  .ff3d .ff3d-ticker-row{gap:30px;animation-duration:26s}
  .ff3d .ff3d-ticker-row li{font-size:13.5px}
}
@media (max-width:600px){
  .ff3d .ff3d-pdp-cart form.cart{flex-wrap:wrap}
  .ff3d .ff3d-pdp-cart .single_add_to_cart_button{flex:1 1 200px}
  .ff3d .ff3d-faq details p{padding-right:0}
  .ff3d .woocommerce-product-gallery__image,.ff3d .woocommerce-product-gallery__image img{border-radius:16px}
}
@media (prefers-reduced-motion:reduce){
  .ff3d .ff3d-ticker{-webkit-mask-image:none;mask-image:none}
  .ff3d .ff3d-ticker-row{animation:none;flex-wrap:wrap;justify-content:center;gap:8px 28px;min-width:0}
  .ff3d .ff3d-ticker-row[aria-hidden]{display:none}
  .ff3d .ff3d-ticker-row li{white-space:normal}
  .ff3d .ff3d-pdp-cart .single_add_to_cart_button::after,.ff3d .ff3d-mot-k span,.ff3d .ff3d-faq details p,.ff3d-sticky:not([hidden]){animation:none}
  .ff3d .ff3d-gestes li,.ff3d .ff3d-big-emoji,.ff3d .wc-block-product .wc-block-components-product-image img,.ff3d .ff3d-faq summary::after{transition:none}
}

/* =====================================================================
   ENCART CADEAU (fiche produit) et message de saison
   ===================================================================== */
.ff3d .ff3d-gift{margin:14px 0 0!important;padding:12px 14px;border-radius:14px;border:1.5px dashed rgba(201,46,59,.45);background:linear-gradient(120deg,#FFF4F1,#FFFBF4);font-size:14.5px;line-height:1.45;color:var(--ink)}
.ff3d .ff3d-gift strong{color:var(--red-d)}

/* =====================================================================
   CATÉGORIE « LUDIQUE » (fidgets) : héros clair, vignettes animées, emojis
   ===================================================================== */
.ff3d-cat-ludique .ff3d .ff3d-shop-hero{overflow:hidden;color:var(--navy);padding-top:clamp(120px,12vw,160px);padding-bottom:clamp(48px,6vw,84px);background-color:#FFF7EF;background-image:radial-gradient(38% 60% at 88% 12%,rgba(47,91,200,.20),transparent 70%),radial-gradient(34% 55% at 6% 96%,rgba(230,57,70,.20),transparent 70%),radial-gradient(26% 40% at 55% 0%,rgba(255,196,84,.30),transparent 70%),radial-gradient(rgba(20,33,61,.10) 1.2px,transparent 1.4px);background-size:auto,auto,auto,22px 22px}
.ff3d-cat-ludique .ff3d:has(.ff3d-shop-hero) .fh-shell-space{display:none}
.ff3d-cat-ludique .ff3d .ff3d-shop-hero .ff3d-crumbs,.ff3d-cat-ludique .ff3d .ff3d-shop-hero .ff3d-kicker{color:var(--muted)}
.ff3d-cat-ludique .ff3d .ff3d-shop-hero h1{color:var(--navy);font-size:clamp(36px,5.2vw,68px);line-height:.98;letter-spacing:-.04em;max-width:1240px;margin-bottom:16px}
.ff3d-cat-ludique .ff3d .ff3d-shop-hero .ff3d-lead,.ff3d-cat-ludique .ff3d .ff3d-shop-hero p{color:var(--ink)}
.ff3d-cat-ludique .ff3d .ff3d-shop-hero .ff3d-lead{font-size:clamp(16.5px,1.4vw,19px);max-width:1240px;opacity:1}
.ff3d-cat-ludique .ff3d .ff3d-shop-lead{display:none}
.ff3d-cat-ludique .ff3d .ff3d-chips a{background:#fff;color:var(--navy);border:1.5px solid rgba(20,33,61,.16);border-radius:999px;transition:transform .25s cubic-bezier(.3,1.6,.5,1),background-color .2s,color .2s}
.ff3d-cat-ludique .ff3d .ff3d-chips a:hover{background:var(--navy);color:#fff;transform:translateY(-3px) rotate(-2deg)}
.ff3d .ff3d-saison{display:inline-flex!important;width:auto;align-items:center;gap:8px;margin:18px 0 0!important;padding:9px 16px;border-radius:999px;background:var(--red-d);color:#fff!important;font-weight:700;font-size:14.5px;box-shadow:0 12px 26px -12px rgba(230,57,70,.8);animation:ff-wiggle 5s ease-in-out 1.5s infinite}
@keyframes ff-wiggle{0%,86%,100%{transform:none}89%{transform:rotate(-3deg)}92%{transform:rotate(3deg)}95%{transform:rotate(-2deg)}}
.ff3d-cat-ludique .ff3d .ff3d-shop-hero>*{position:relative;z-index:2}
.ff3d .ff3d-sticks{position:absolute!important;z-index:1!important;top:50%;right:max(var(--gut),calc((100% - 1240px)/2));width:min(40%,470px);height:340px;margin:0!important;transform:translateY(-38%);max-width:none!important}
.ff3d .ff3d-stick{position:absolute;display:block;width:46%;padding:7px 7px 0;background:#fff;border-radius:20px;box-shadow:0 26px 50px -24px rgba(20,33,61,.5);text-decoration:none;animation:ff-bob 6s ease-in-out infinite;transition:box-shadow .3s}
.ff3d .ff3d-stick img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px}
.ff3d .ff3d-stick span{display:block;padding:8px 6px 10px;font-family:var(--display);font-weight:800;font-size:13.5px;line-height:1.2;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ff3d .ff3d-stick:hover{animation-play-state:paused;box-shadow:0 30px 56px -20px rgba(20,33,61,.65);z-index:5}
.ff3d .ff3d-stick-1{left:0;top:6%;--r:-7deg}
.ff3d .ff3d-stick-2{right:0;top:0;--r:6deg;animation-delay:-2s}
.ff3d .ff3d-stick-3{left:27%;top:46%;--r:-2deg;animation-delay:-4s;z-index:2}
.ff3d .ff3d-sticks:has(.ff3d-stick-2:last-child) .ff3d-stick-1{top:0}
.ff3d .ff3d-sticks:has(.ff3d-stick-2:last-child) .ff3d-stick-2{top:26%}
@keyframes ff-bob{0%,100%{transform:rotate(var(--r,0deg)) translateY(0)}50%{transform:rotate(calc(var(--r,0deg) + 2deg)) translateY(-12px)}}
.ff3d .ff3d-floaties{position:absolute!important;inset:0;z-index:0!important;max-width:none!important;margin:0!important;pointer-events:none}
.ff3d .ff3d-floaties span{position:absolute;font-size:clamp(22px,2.6vw,34px);animation:ff-float 7s ease-in-out infinite}
.ff3d .ff3d-floaties span:nth-child(1){left:46%;top:24%}
.ff3d .ff3d-floaties span:nth-child(2){left:38%;bottom:16%;animation-delay:-2.2s}
.ff3d .ff3d-floaties span:nth-child(3){right:3%;bottom:12%;animation-delay:-4s}
.ff3d .ff3d-floaties span:nth-child(4){right:44%;top:70%;animation-delay:-5.5s;display:none}
@keyframes ff-float{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-16px) rotate(10deg)}}
@media (min-width:961px){
  .ff3d-cat-ludique .ff3d .ff3d-shop-hero>h1,.ff3d-cat-ludique .ff3d .ff3d-shop-hero>.ff3d-lead,.ff3d-cat-ludique .ff3d .ff3d-shop-hero>.ff3d-chips{padding-right:min(46%,560px)}
}
@media (max-width:960px){
  .ff3d .ff3d-sticks{position:relative!important;top:auto;right:auto;transform:none;width:100%;height:auto;display:flex;gap:10px;margin-top:26px!important}
  .ff3d .ff3d-stick{position:relative;inset:auto!important;flex:1 1 0;min-width:0;width:auto;padding:5px 5px 0;border-radius:16px}
  .ff3d .ff3d-stick img{border-radius:12px}
  .ff3d .ff3d-stick span{font-size:12px;padding:6px 4px 8px}
  .ff3d .ff3d-floaties span:nth-child(1){left:auto;right:6%;top:15%}
  .ff3d .ff3d-floaties span:nth-child(2){display:none}
  .ff3d-cat-ludique .ff3d .ff3d-shop-hero{padding-top:118px}
}

/* ---------- texte sous les produits ---------- */
.ff3d .ff3d-cat-bas{border-top:1px solid var(--line2,#E3E7EC);padding-top:clamp(44px,5.6vw,80px);padding-bottom:clamp(44px,5.6vw,80px)}
.ff3d .ff3d-cat-bas-in{max-width:780px!important}
.ff3d .ff3d-cat-bas h2{font-size:clamp(22px,2.2vw,28px);line-height:1.15;color:var(--navy);margin:28px 0 10px}
.ff3d .ff3d-cat-bas h2:first-child{margin-top:0}
.ff3d .ff3d-cat-bas p{font-size:16px;line-height:1.65;color:var(--muted);margin:0 0 .8em}
@media (prefers-reduced-motion:reduce){
  .ff3d .ff3d-stick,.ff3d .ff3d-floaties span,.ff3d .ff3d-saison{animation:none}
  .ff3d .ff3d-stick{transform:rotate(var(--r,0deg))}
}

/* =====================================================================
   COMMUN aux héros de catégorie avec photo (déco, métiers)
   ===================================================================== */
.ff3d-cat-deco .ff3d:has(.ff3d-shop-hero) .fh-shell-space,.ff3d-cat-metier .ff3d:has(.ff3d-shop-hero) .fh-shell-space{display:none}
.ff3d-cat-deco .ff3d .ff3d-shop-hero,.ff3d-cat-metier .ff3d .ff3d-shop-hero{overflow:hidden;padding-top:clamp(120px,12vw,160px);padding-bottom:clamp(48px,6vw,84px)}
.ff3d-cat-deco .ff3d .ff3d-shop-hero>*,.ff3d-cat-metier .ff3d .ff3d-shop-hero>*{position:relative;z-index:2}
.ff3d-cat-deco .ff3d .ff3d-shop-lead,.ff3d-cat-metier .ff3d .ff3d-shop-lead{display:none}
.ff3d-cat-deco .ff3d .ff3d-shop-hero h1,.ff3d-cat-metier .ff3d .ff3d-shop-hero h1{font-size:clamp(34px,4.6vw,60px);line-height:1;letter-spacing:-.035em;max-width:1240px;margin-bottom:16px}
.ff3d-cat-deco .ff3d .ff3d-shop-hero .ff3d-lead,.ff3d-cat-metier .ff3d .ff3d-shop-hero .ff3d-lead{font-size:clamp(16.5px,1.4vw,19px);max-width:1240px;opacity:1}
@media (min-width:961px){
  .ff3d-cat-deco .ff3d .ff3d-shop-hero>h1,.ff3d-cat-deco .ff3d .ff3d-shop-hero>.ff3d-lead,.ff3d-cat-deco .ff3d .ff3d-shop-hero>.ff3d-chips,
  .ff3d-cat-metier .ff3d .ff3d-shop-hero>h1,.ff3d-cat-metier .ff3d .ff3d-shop-hero>.ff3d-lead,.ff3d-cat-metier .ff3d .ff3d-shop-hero>.ff3d-chips,.ff3d-cat-metier .ff3d .ff3d-shop-hero>.ff3d-secteurs{padding-right:min(46%,560px)}
}
/* catégorie vide : on masque le message par défaut de WooCommerce, le nôtre prend le relais */
.ff3d-cat-vide .ff3d .ff3d-shop{display:none}
.ff3d .ff3d-cat-vide-in{max-width:760px!important;text-align:center}
.ff3d .ff3d-cat-vide-in h2{font-size:clamp(24px,2.6vw,34px);line-height:1.1;color:var(--navy);margin-bottom:12px}
.ff3d .ff3d-cat-vide-in p{font-size:16.5px;line-height:1.6;color:var(--muted);margin:0 auto .8em;max-width:56ch}
.ff3d .ff3d-cat-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px!important}
.ff3d .ff3d-cat-vide-in .ff3d-cat-btns{justify-content:center}
.ff3d .ff3d-cat-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;background:var(--navy);color:#fff!important;font-weight:700;font-size:15.5px;text-decoration:none;transition:transform .25s cubic-bezier(.2,.7,.2,1),background-color .2s,box-shadow .25s}
.ff3d .ff3d-cat-btn:first-child{background:var(--red-d);box-shadow:0 12px 28px -12px rgba(230,57,70,.8)}
.ff3d .ff3d-cat-btn:hover{transform:translateY(-2px)}
.ff3d .ff3d-cat-btn:active{transform:scale(.97)}
.ff3d .ff3d-cat-btn:focus-visible{outline:2px solid #2F5BC8;outline-offset:3px}

/* =====================================================================
   CATÉGORIE « DÉCO » : tons chauds, photo en arche, ambiance maison
   ===================================================================== */
.ff3d-cat-deco .ff3d .ff3d-shop-hero{color:#3A2A22;background-color:#F5ECE1;background-image:radial-gradient(42% 60% at 92% 8%,rgba(214,150,96,.30),transparent 70%),radial-gradient(36% 55% at 0% 100%,rgba(230,57,70,.12),transparent 70%),linear-gradient(180deg,rgba(255,255,255,.55),transparent 40%);background-size:auto;background-repeat:no-repeat}
.ff3d-cat-deco .ff3d .ff3d-shop-hero .ff3d-crumbs,.ff3d-cat-deco .ff3d .ff3d-shop-hero .ff3d-kicker{color:#7A6658}
.ff3d-cat-deco .ff3d .ff3d-shop-hero h1{color:#2B1D16}
.ff3d-cat-deco .ff3d .ff3d-shop-hero .ff3d-lead,.ff3d-cat-deco .ff3d .ff3d-shop-hero p{color:#4A382E}
.ff3d-cat-deco .ff3d .ff3d-chips a{background:rgba(255,255,255,.7);color:#2B1D16;border:1.5px solid rgba(58,42,34,.2);transition:background-color .2s,color .2s,transform .25s}
.ff3d-cat-deco .ff3d .ff3d-chips a:hover{background:#2B1D16;color:#fff;transform:translateY(-2px)}
.ff3d .ff3d-arche{position:absolute!important;z-index:1!important;top:50%;right:max(var(--gut),calc((100% - 1240px)/2));width:min(34%,400px);margin:0!important;transform:translateY(-44%);max-width:none!important}
.ff3d .ff3d-arche img{background:#E9DDCF;display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:999px 999px 26px 26px;box-shadow:0 40px 70px -40px rgba(58,42,34,.7);border:8px solid #fff}
.ff3d .ff3d-arche figcaption{margin-top:12px;text-align:center;font-size:13.5px;font-style:italic;color:#7A6658}
.ff3d .ff3d-arche-badge{position:absolute;left:-34px;bottom:64px;width:112px;height:112px;border-radius:50%;background:var(--red-d);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:18px;line-height:1.15;box-shadow:0 18px 34px -16px rgba(201,46,59,.8);animation:ff-sway 6s ease-in-out infinite}
.ff3d .ff3d-arche-badge b{font-family:var(--display);font-weight:800;font-size:13px;letter-spacing:-.01em;margin-top:2px}
@keyframes ff-sway{0%,100%{transform:rotate(-9deg)}50%{transform:rotate(-3deg) translateY(-6px)}}
.ff3d .ff3d-floaties-deco span:nth-child(1){left:50%;top:22%}
.ff3d .ff3d-floaties-deco span:nth-child(2){left:44%;bottom:14%}
.ff3d .ff3d-floaties-deco span:nth-child(3){right:2%;top:20%;bottom:auto}
/* grille : cartes sans bordure, photos plus hautes, façon vitrine */
.ff3d-cat-deco .ff3d .wc-block-product{border:0;background:transparent;border-radius:0;padding:0 0 6px!important}
.ff3d-cat-deco .ff3d .wc-block-product:hover{box-shadow:none}
.ff3d-cat-deco .ff3d .wc-block-product .wc-block-components-product-image{border-radius:22px;margin-bottom:14px!important}
.ff3d-cat-deco .ff3d .wc-block-product .wc-block-components-product-image img{aspect-ratio:4/5}
.ff3d-cat-deco .ff3d .wc-block-product .wp-block-post-title,.ff3d-cat-deco .ff3d .wc-block-product .wc-block-components-product-price{margin-left:4px!important;margin-right:4px!important}
.ff3d-cat-deco .ff3d .wc-block-product .wp-block-button{margin:auto 4px 0!important}
.ff3d-cat-deco .ff3d .wc-block-product .wp-block-button__link{background:#2B1D16!important}
.ff3d-cat-deco .ff3d .ff3d-cat-vide-s{background-color:#FBF6F0;background-image:none}

/* =====================================================================
   CATÉGORIE « MÉTIERS » : plan d'atelier sombre, photo cotée, tuiles par secteur
   ===================================================================== */
.ff3d-cat-metier .ff3d .ff3d-shop-hero{color:#fff;background-color:#0A0F1C;background-image:radial-gradient(50% 60% at 88% 0%,rgba(47,91,200,.30),transparent 70%),linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:auto,120px 120px,120px 120px,24px 24px,24px 24px}
.ff3d-cat-metier .ff3d .ff3d-shop-hero::after{content:"";position:absolute;inset:auto 0 0 0;height:10px;z-index:3;background:repeating-linear-gradient(-45deg,#FFC400 0 14px,#0A0F1C 14px 28px)}
.ff3d-cat-metier .ff3d .ff3d-shop-hero .ff3d-kicker{color:#FFC400}
.ff3d-cat-metier .ff3d .ff3d-shop-hero .ff3d-kicker::before{background:#FFC400}
.ff3d-cat-metier .ff3d .ff3d-shop-hero h1{color:#fff}
.ff3d-cat-metier .ff3d .ff3d-chips a{border-radius:8px;font-family:var(--mono);font-size:13px;letter-spacing:.04em;text-transform:uppercase;border-color:rgba(255,255,255,.28)}
.ff3d-cat-metier .ff3d .ff3d-chips a:hover{background:#FFC400;border-color:#FFC400;color:#0A0F1C}
.ff3d .ff3d-plan{position:absolute!important;z-index:1!important;top:50%;right:max(var(--gut),calc((100% - 1240px)/2));width:min(36%,430px);margin:0!important;padding:14px;transform:translateY(-46%);max-width:none!important}
.ff3d .ff3d-plan img{background:#141B2E;display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px;filter:saturate(.9)}
.ff3d .ff3d-plan i{position:absolute;width:22px;height:22px;border:2px solid #FFC400}
.ff3d .ff3d-plan i:nth-child(1){left:0;top:0;border-right:0;border-bottom:0}
.ff3d .ff3d-plan i:nth-child(2){right:0;top:0;border-left:0;border-bottom:0}
.ff3d .ff3d-plan i:nth-child(3){left:0;bottom:34px;border-right:0;border-top:0}
.ff3d .ff3d-plan i:nth-child(4){right:0;bottom:34px;border-left:0;border-top:0}
.ff3d .ff3d-plan figcaption{display:flex;gap:10px;align-items:center;margin-top:12px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.ff3d .ff3d-plan figcaption span{flex:none;padding:3px 7px;border-radius:4px;background:#FFC400;color:#0A0F1C;font-weight:500}
.ff3d .ff3d-plan::before{content:"";position:absolute;left:14px;right:14px;top:14px;height:2px;background:linear-gradient(90deg,transparent,#FFC400,transparent);opacity:.9;animation:ff-scan 4.5s ease-in-out infinite}
@keyframes ff-scan{0%,100%{transform:translateY(0);opacity:0}15%,85%{opacity:.9}50%{transform:translateY(calc(min(36vw,430px) * .68))}}
.ff3d .ff3d-secteurs{list-style:none;margin:26px auto 0!important;padding-left:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.ff3d .ff3d-secteurs a{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;align-items:center;height:100%;padding:16px 18px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);color:#fff;text-decoration:none;transition:border-color .2s,background-color .2s,transform .25s cubic-bezier(.2,.7,.2,1)}
.ff3d .ff3d-secteurs a:hover{border-color:#FFC400;background:rgba(255,196,0,.08);transform:translateY(-3px)}
.ff3d .ff3d-secteurs .ff3d-sect-e{grid-row:span 2;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:10px;background:rgba(255,255,255,.08);font-size:22px}
.ff3d .ff3d-secteurs strong{font-family:var(--display);font-weight:800;font-size:18px;letter-spacing:-.01em;line-height:1.2}
.ff3d .ff3d-secteurs em{font-style:normal;font-size:13.5px;line-height:1.35;color:rgba(255,255,255,.66)}
.ff3d .ff3d-secteurs .is-here a{border-color:#FFC400;background:rgba(255,196,0,.1)}
/* grille : cartes plus « atelier », angles serrés, prix en police technique */
.ff3d-cat-metier .ff3d .wc-block-product{border-radius:10px;border-color:var(--line)}
.ff3d-cat-metier .ff3d .wc-block-product .wc-block-components-product-price{font-family:var(--mono);font-weight:500;font-size:14.5px!important;letter-spacing:.02em}
.ff3d-cat-metier .ff3d .wc-block-product .wp-block-button__link{border-radius:8px!important}
.ff3d-cat-metier .ff3d .ff3d-cat-vide-in{text-align:left;max-width:1240px!important;display:grid;grid-template-columns:1fr auto;gap:8px 40px;align-items:center;padding:clamp(22px,3vw,36px);border:1px solid var(--line);border-left:4px solid #FFC400;border-radius:12px;background:#fff}
.ff3d-cat-metier .ff3d .ff3d-cat-vide-in h2,.ff3d-cat-metier .ff3d .ff3d-cat-vide-in p{grid-column:1;margin-left:0;margin-right:0}
.ff3d-cat-metier .ff3d .ff3d-cat-vide-in .ff3d-cat-btns{grid-column:2;grid-row:1/span 3;justify-content:flex-start;flex-direction:column;margin-top:0!important}
.ff3d-cat-metier .ff3d .ff3d-cat-btn{border-radius:8px;justify-content:center}
.ff3d-cat-metier .ff3d .ff3d-cat-btn:first-child{background:#FFC400;color:#0A0F1C!important;box-shadow:none}

@media (max-width:960px){
  .ff3d .ff3d-arche,.ff3d .ff3d-plan{position:relative!important;top:auto;right:auto;transform:none;width:min(100%,420px);margin:28px auto 0!important}
  .ff3d .ff3d-arche-badge{left:-8px;bottom:56px;width:96px;height:96px}
  .ff3d .ff3d-floaties-deco span:nth-child(2),.ff3d .ff3d-floaties-deco span:nth-child(1){display:none}
  .ff3d .ff3d-plan::before{animation:none;opacity:0}
  .ff3d-cat-metier .ff3d .ff3d-cat-vide-in{grid-template-columns:1fr}
  .ff3d-cat-metier .ff3d .ff3d-cat-vide-in .ff3d-cat-btns{grid-column:1;grid-row:auto;flex-direction:row;margin-top:14px!important}
  .ff3d-cat-deco .ff3d .ff3d-shop-hero,.ff3d-cat-metier .ff3d .ff3d-shop-hero{padding-top:118px}
}
@media (prefers-reduced-motion:reduce){
  .ff3d .ff3d-arche-badge,.ff3d .ff3d-plan::before{animation:none}
  .ff3d .ff3d-plan::before{opacity:0}
}
