/* Les couleurs et tailles restent des valeurs validées, sans CSS utilisateur. */
.fa-theme{font-size:var(--fa-text-size)}
.fa-theme body{font-size:var(--fa-text-size);background:var(--cream);color:var(--ink)}
.fa-theme header{background:var(--fa-header);color:var(--fa-header-text)}.fa-theme .brand,.fa-theme nav button,.fa-theme nav summary,.fa-theme #menuButton{color:var(--fa-header-text)}
.fa-theme footer{background:var(--fa-footer);color:var(--fa-footer-text)}
.fa-theme .btn-primary,.fa-theme .cart-button,.fa-theme .order-button,.fa-theme .add{background:var(--fa-button);color:var(--fa-button-text)}
.fa-theme h1,.fa-theme h2,.fa-theme .product h3{color:var(--green)}.fa-theme .product,.fa-theme .retro-card,.fa-theme .explore-card{background:var(--fa-surface);border-radius:var(--fa-radius)}
.fa-theme .media-frame,.fa-theme .cms-image,.fa-theme .cart-panel,.fa-theme .checkout-dialog{border-radius:var(--fa-radius)}
.fa-theme .product-image,.fa-theme .retro-image,.fa-theme .media-frame,.fa-theme .cms-image,.fa-theme .product-image img,.fa-theme .retro-image img{background:var(--fa-surface)}
.fa-theme[data-card-align="center"] .product-content,.fa-theme[data-card-align="center"] .retro-copy{text-align:center}.fa-theme[data-card-align="right"] .product-content,.fa-theme[data-card-align="right"] .retro-copy{text-align:right}
.fa-theme[data-card-image-fit="cover"] .product-image img,.fa-theme[data-card-image-fit="cover"] .retro-image img{object-fit:cover}
.fa-theme[data-card-image-fit="contain"] .product-image img,.fa-theme[data-card-image-fit="contain"] .retro-image img{object-fit:contain}
.fa-theme[data-product-image="bottom"] .product-image{order:2}.fa-theme[data-product-image="left"] .product,.fa-theme[data-product-image="right"] .product{display:grid;grid-template-columns:40% minmax(0,1fr);align-content:stretch}
.fa-theme[data-product-image="left"] .product-image,.fa-theme[data-product-image="right"] .product-image{height:100%;min-height:220px;aspect-ratio:auto}
.fa-theme[data-product-image="right"] .product{grid-template-columns:minmax(0,1fr) 40%}.fa-theme[data-product-image="right"] .product-image{order:2}
.fa-theme[data-retro-image="bottom"] .retro-card{display:flex;flex-direction:column}.fa-theme[data-retro-image="bottom"] .retro-image{order:2}
.fa-theme[data-retro-image="left"] .retro-card,.fa-theme[data-retro-image="right"] .retro-card{display:grid;grid-template-columns:40% minmax(0,1fr)}
.fa-theme[data-retro-image="right"] .retro-card{grid-template-columns:minmax(0,1fr) 40%}.fa-theme[data-retro-image="right"] .retro-image{order:2}
.fa-theme[data-retro-image="left"] .retro-image,.fa-theme[data-retro-image="right"] .retro-image{height:100%;min-height:250px}
.fa-page [data-layout-part="image"]{max-width:100%;box-sizing:border-box}.fa-page [data-fa-aspect="square"]{height:auto!important;min-height:0;aspect-ratio:1}
.fa-page [data-fa-aspect="landscape"]{height:auto!important;min-height:0;aspect-ratio:4/3}.fa-page [data-fa-aspect="wide"]{height:auto!important;min-height:0;aspect-ratio:16/9}
.fa-page [data-layout-part="title"][data-fa-size="small"]{font-size:clamp(1.8rem,4vw,2.7rem)}.fa-page [data-layout-part="title"][data-fa-size="large"]{font-size:clamp(2.7rem,7vw,5.5rem)}
.fa-page [data-layout-part="subtitle"][data-fa-size="small"],.fa-page [data-layout-part="text"][data-fa-size="small"]{font-size:.9rem}
.fa-page [data-layout-part="subtitle"][data-fa-size="large"],.fa-page [data-layout-part="text"][data-fa-size="large"]{font-size:1.25rem}
.fa-layout{display:flex;flex-direction:column;gap:var(--fa-spacing,32px);padding:55px 0;margin:0 auto;min-width:0}.fa-layout-copy{display:flex;flex-direction:column;gap:var(--fa-spacing,32px);min-width:0}
.fa-layout [data-layout-part="title"],.fa-layout [data-layout-part="subtitle"],.fa-layout [data-layout-part="text"]{max-width:none;margin:0;padding:0;overflow-wrap:anywhere}
.fa-layout [data-layout-part="image"]{position:relative;height:clamp(220px,38vw,520px);min-height:0;border-radius:var(--fa-radius,16px);overflow:hidden}
.fa-layout[data-arrangement="image-left"],.fa-layout[data-arrangement="image-right"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.fa-layout[data-has-image="false"]{grid-template-columns:minmax(0,1fr)}
.fa-layout [hidden]{display:none!important}
.fa-design-preview [data-layout-part]{cursor:pointer;outline:1px dashed transparent;outline-offset:6px}.fa-design-preview [data-layout-part]:hover{outline-color:#3b7855}
.fa-design-preview [data-layout-part].fa-selected{outline:3px solid #cf922b;outline-offset:6px}.fa-design-preview header{position:relative}.fa-design-preview .fa-layout{overflow:visible}
@media(max-width:760px){.fa-layout{padding:32px 0}.fa-layout[data-arrangement="image-left"],.fa-layout[data-arrangement="image-right"]{display:flex;flex-direction:column;align-items:stretch}.fa-layout[data-arrangement="image-left"] [data-layout-part="image"]{order:-1}.fa-layout-copy{width:100%}.fa-theme[data-retro-image="left"] .retro-card,.fa-theme[data-retro-image="right"] .retro-card{display:flex;flex-direction:column}.fa-theme[data-product-image="left"] .product,.fa-theme[data-product-image="right"] .product{display:flex;flex-direction:column}.fa-theme[data-product-image="left"] .product-image,.fa-theme[data-product-image="right"] .product-image{aspect-ratio:4/3;min-height:0}.fa-theme[data-retro-image="left"] .retro-image,.fa-theme[data-retro-image="right"] .retro-image{height:250px;min-height:0}}
/* V6.3 : identité du site et galeries de pages. */
.brand{min-width:0;max-width:100%}.brand-mark{flex-shrink:0;overflow:hidden}.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}.brand-name{overflow-wrap:anywhere;line-height:1.15}
.page-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:20px;margin:32px 0 48px;width:100%;grid-column:1/-1}.page-gallery figure{margin:0;min-width:0;background:var(--fa-surface,#fff);border:1px solid var(--line);border-radius:var(--fa-radius,16px);overflow:hidden}.page-gallery img{display:block;width:100%;height:auto;max-height:500px;object-fit:contain;aspect-ratio:4/3;background:var(--cream)}.page-gallery figcaption{padding:12px 16px;color:var(--muted);overflow-wrap:anywhere;font-size:.9rem}
@media(max-width:600px){.page-gallery{grid-template-columns:1fr;gap:16px}.brand-name{font-size:1.3rem;max-width:65vw}}

.festi-confetti{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden}.festi-confetti span{position:absolute;top:-50px;font-size:24px;animation:festi-fall 1.8s ease-in forwards}@keyframes festi-fall{to{transform:translateY(110vh) rotate(180deg);opacity:0}}@media(prefers-reduced-motion:reduce){.festi-confetti{display:none}}
/* Palette complète, y compris le panier et le formulaire du thème Nuit. */
.fa-theme .cart-panel,.fa-theme .checkout-dialog,.fa-theme .skip-link{background:var(--fa-surface);color:var(--ink)}
.fa-theme .form input:not([type=checkbox]),.fa-theme .form textarea{background:var(--cream);color:var(--ink)}
.fa-theme .notice,.fa-theme .notice.success,.fa-theme .test-banner{background:var(--fa-surface);border-color:var(--gold);color:var(--ink)}
.fa-theme nav button.active{background:var(--fa-surface);color:var(--green)}
.fa-theme .eyebrow,.fa-theme .product-category,.fa-theme .explore-card span,.fa-theme .retro-date{color:var(--muted)}
.fa-theme .quantity button{color:var(--ink)}.fa-theme .toast{background:var(--fa-button);color:var(--fa-button-text)}
.fa-theme .receipt-actions .btn-primary{background:var(--fa-button);color:var(--fa-button-text)}
