/* Keep the original watercolor compositions and colors. Targeted corrections only. */
.atelier-page .page-canvas{min-height:100svh}
.atelier-page:not(.home-page) .page-canvas{display:flex;flex-direction:column}
.atelier-page:not(.home-page) main{flex:1 0 auto}
.atelier-page #main-navigation{justify-content:flex-end;gap:clamp(32px,5vw,80px)}
.atelier-page .header-actions{flex-shrink:0}
.atelier-page .bag-link{position:relative;display:block;flex-shrink:0}
.atelier-page .bag-link>.bag-painting{display:block;width:100%;height:100%;filter:url(#reference-light)}
/* The paintings are not passed through an alpha/color threshold. */
.atelier-page .page-landscape{position:relative;z-index:1;flex:none;width:100%;margin-top:auto;pointer-events:none;line-height:0;overflow:visible}
.atelier-page .page-landscape>.footer-painting{display:block;width:100%;height:auto;mask-image:linear-gradient(transparent,#000 8%);-webkit-mask-image:linear-gradient(transparent,#000 8%)}
.atelier-page .cart-main{padding-bottom:32px}
.atelier-page .checkout-main{padding-bottom:calc(135 * var(--u))}
.atelier-page.step-paiement .checkout-main,.atelier-page.step-livraison .checkout-main{padding-bottom:35px}
/* Smaller detail controls, independent of a large desktop screen. */
@media(min-width:701px){
 .atelier-page .product-main{width:100%;max-width:1120px;margin:0 auto;padding:48px 36px 34px}
 .atelier-page .breadcrumb{font-size:16px;line-height:1.4;gap:10px;margin:0 0 26px 180px}
 .atelier-page .product-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:32px;align-items:start}
 .atelier-page .product-gallery{grid-template-columns:76px minmax(0,1fr);gap:14px}
 .atelier-page .gallery-thumbnails{gap:10px;padding-top:20px}
 .atelier-page .gallery-thumbnail>span{height:78px}
 .atelier-page .main-photo>.product-visual{height:auto;aspect-ratio:447/454}
 .atelier-page .product-description h1.maquette-title{width:340px;height:66px;max-width:100%;margin:0 0 10px}
 .atelier-page .product-description h1:not(.maquette-title){font-size:48px;line-height:1.1;margin:0 0 10px}
 .atelier-page .product-price{font-size:34px;margin:0 0 16px;line-height:1.1}
 .atelier-page .product-description>p:not(.product-price):not(.demo-inline){font-size:18px;line-height:1.35}
 .atelier-page .product-features{font-size:16px;gap:6px;margin:18px 0}
 .atelier-page .product-features svg{width:21px;height:21px}
 .atelier-page .product-details{margin:28px 0 0 90px}
 .atelier-page .product-details summary{height:auto;min-height:50px;font-size:22px;padding:14px 8px}
 .atelier-page .product-details details p{font-size:17px;line-height:1.5}
}
.atelier-page .product-main .add-controls{gap:16px;flex-wrap:wrap}
.atelier-page .product-main .quantity-control button{width:32px;min-height:44px;font-size:22px}
.atelier-page .product-main .quantity-control input{width:36px;min-height:44px;font-size:18px}
.atelier-page .product-main .add-controls .button{min-height:46px;flex:0 1 auto;width:auto;font-size:18px;padding:10px 20px;gap:12px}
.atelier-page .product-main .add-controls .button img{width:24px;height:28px}
/* The fire is a body-level overlay, outside the watercolor stacking contexts. */
.atelier-page>.campfire-animation{position:fixed;inset:0;z-index:2147483647;background:#2b180f;isolation:isolate;display:grid;place-content:center;justify-items:center}
.atelier-page>.campfire-animation[hidden]{display:none}
.atelier-page>.campfire-animation svg{display:block;width:115px;height:140px;color:#f5aa45;fill:#dc6c21;stroke-width:1;animation:camp-glow .6s ease-in-out infinite alternate}
.atelier-page>.campfire-animation p{font:22px/1.4 var(--serif);color:#f9e7c5;margin:24px 0 0}
@media(max-width:700px){
 .atelier-page #main-navigation{gap:0;justify-content:flex-start}
 .atelier-page .header-actions{display:flex}
 .atelier-page .bag-link{width:31px;height:42px}
 .atelier-page .product-main{padding-bottom:30px}
 .atelier-page .cart-main{padding-bottom:30px}
 .atelier-page .checkout-main{padding-bottom:35px}
}
@media(prefers-reduced-motion:reduce){.atelier-page>.campfire-animation svg{animation:none;filter:none}}
/* One header, sized independently of each page's illustration coordinates. */
.atelier-page .site-header,.atelier-page.home-page .site-header{height:80px;min-height:80px;flex:none;padding:0;background:#371c10 url('assets/decor/header-texture.webp') center/auto 100% repeat-x;border:0;box-shadow:none}
.atelier-page .site-header:before,.atelier-page.home-page .site-header:before{display:none}
.atelier-page .header-inner,.atelier-page.home-page .header-inner{height:100%;width:100%;max-width:none;padding:0 4% 0 clamp(250px,26vw,335px);gap:35px;margin:0}
.atelier-page .brand,.atelier-page.home-page .brand,.atelier-page.product-page .brand,.atelier-page .scene-information .brand,.atelier-page .scene-payment .brand{top:0;left:0;width:235px;height:165px;aspect-ratio:335/235;mask-image:radial-gradient(ellipse 55% 63% at 48% 42%,#000 68%,transparent 91%);-webkit-mask-image:radial-gradient(ellipse 55% 63% at 48% 42%,#000 68%,transparent 91%)}
.atelier-page .brand>.raster-fragment{mask-image:none;-webkit-mask-image:none}
.atelier-page #main-navigation{gap:clamp(35px,6vw,90px);justify-content:flex-end}
.atelier-page #main-navigation a,.atelier-page.home-page #main-navigation a{font-size:25px;line-height:1;padding:25px 0;min-height:44px}
.atelier-page #main-navigation a[aria-current=page]:after{bottom:15px}
.atelier-page .header-actions,.atelier-page.home-page .header-actions{gap:0;padding-left:28px;margin:0;border-left:1px solid #f9e1c680}
.atelier-page .bag-link,.atelier-page.home-page .bag-link{width:43px;height:55px;padding:0;min-height:0}
.atelier-page .bag-link b,.atelier-page.home-page .bag-link b{min-width:22px;height:23px;font-size:17px;top:3px;right:-5px}
@media(max-width:900px) and (min-width:701px){
 .atelier-page .header-inner,.atelier-page.home-page .header-inner{padding-left:230px;gap:24px}.atelier-page .brand,.atelier-page.home-page .brand,.atelier-page.product-page .brand,.atelier-page .scene-information .brand,.atelier-page .scene-payment .brand{width:220px;height:154px}.atelier-page #main-navigation{gap:35px}.atelier-page #main-navigation a{font-size:23px}
}
@media(max-width:700px){
 .atelier-page .site-header,.atelier-page.home-page .site-header{height:64px;min-height:64px}
 .atelier-page .header-inner,.atelier-page.home-page .header-inner{height:64px;padding:0 5% 0 43%;gap:16px;justify-content:flex-end}
 .atelier-page .brand,.atelier-page.home-page .brand,.atelier-page.product-page .brand,.atelier-page .scene-information .brand,.atelier-page .scene-payment .brand{width:150px;height:105px}
 .atelier-page .header-actions,.atelier-page.home-page .header-actions{border:0;padding:0;gap:0}
 .atelier-page .bag-link,.atelier-page.home-page .bag-link{width:31px;height:42px}
 .atelier-page .bag-link b,.atelier-page.home-page .bag-link b{font-size:12px;min-width:17px;height:18px;top:1px}
 .atelier-page #main-navigation{gap:0;padding:26px 7% 20px 44%;justify-content:flex-start}
 .atelier-page #main-navigation a,.atelier-page.home-page #main-navigation a{font-size:19px;min-height:44px;padding:12px 0;line-height:1.2}
 .atelier-page #main-navigation a[aria-current=page]:after{bottom:8px}
}

/* Continuous clean watercolor plates replace rectangular eraser masks. */
.atelier-page:not(.home-page) .paper-texture{background:#f8dfbd url('assets/decor/papier-continu-v2.webp') center/100% 100% no-repeat}
.atelier-page .clean-artwork{inset:0 0 auto;height:auto}
.atelier-page .clean-artwork>.clean-top{height:auto;mask-image:linear-gradient(#000 0 85%,transparent);-webkit-mask-image:linear-gradient(#000 0 85%,transparent)}
.atelier-page .panel{background:transparent}
.atelier-page .shop-caption>.shop-caption-art{display:none}
.atelier-page .shop-caption>.sr-only{position:static;width:auto;height:auto;margin:0;clip-path:none;white-space:normal;overflow:visible}
.atelier-page.hd-page .panel h2{opacity:1;visibility:visible}
@media(min-width:701px){.atelier-page .shop-main{padding-bottom:30px}}

/* A real transparent emblem has no rectangular source-paper boundary. */
.atelier-page .brand,.atelier-page.home-page .brand,.atelier-page.product-page .brand,.atelier-page .scene-information .brand,.atelier-page .scene-payment .brand{width:190px;height:190px;left:16px;mask:none;-webkit-mask:none}
.atelier-page .brand>img{display:block;width:100%;height:100%;object-fit:contain;transform:none}
@media(min-width:701px){.atelier-page .product-main{padding-top:64px}}
@media(max-width:700px){.atelier-page .brand,.atelier-page.home-page .brand,.atelier-page.product-page .brand,.atelier-page .scene-information .brand,.atelier-page .scene-payment .brand{width:112px;height:112px;left:10px}}
@media(max-width:700px){.atelier-page .maquette-title>.raster-fragment{filter:url(#reference-ink)}}
/* The pale start of the landscape dissolves into the continuous page paper. */
.atelier-page .landscape-payment>.footer-painting{mask-image:linear-gradient(transparent 0 8%,#000 16%);-webkit-mask-image:linear-gradient(transparent 0 8%,#000 16%)}
.atelier-page.history-page .clean-artwork>.clean-top{mask:none;-webkit-mask:none}
.atelier-page.step-livraison .success-panel .panel{background:transparent}
/* Native-resolution painted header: never stretch the old 18-pixel strip. */
.atelier-page .site-header,.atelier-page.home-page .site-header{background:#371c10 url('assets/backgrounds/cart.webp') center top/max(1536px,100vw) auto no-repeat}
@media(max-width:700px){.atelier-page #main-navigation{background:#371c10 url('assets/backgrounds/cart.webp') center top/1536px auto no-repeat}}
/* Override the former shop-only header measurements with the shared header. */
.atelier-page.hd-page .site-header{height:80px;min-height:80px;padding:0;background:#371c10 url('assets/backgrounds/cart.webp') center top/max(1536px,100vw) auto no-repeat}
.atelier-page.hd-page .header-inner{height:100%;width:100%;max-width:none;padding:0 4% 0 clamp(250px,26vw,335px);gap:35px;margin:0}
.atelier-page.hd-page .brand{width:190px;height:190px;left:16px;top:0;mask:none;-webkit-mask:none}
.atelier-page.hd-page #main-navigation{gap:clamp(35px,6vw,90px);justify-content:flex-end}
.atelier-page.hd-page #main-navigation a{font-size:25px;line-height:1.2;padding:23px 0;min-height:44px}
.atelier-page.hd-page .header-actions{gap:0;padding-left:28px;margin:0;border-left:1px solid #f9e1c680}
.atelier-page.hd-page .bag-link{width:43px;height:55px;padding:0;min-height:0}
.atelier-page.hd-page .bag-link b{min-width:22px;height:23px;font-size:17px;top:3px;right:-5px}
@media(max-width:900px) and (min-width:701px){.atelier-page.hd-page .header-inner{padding-left:230px;gap:24px}.atelier-page.hd-page #main-navigation{gap:35px}.atelier-page.hd-page #main-navigation a{font-size:23px}}
@media(max-width:700px){
 .atelier-page.hd-page .site-header{height:64px;min-height:64px}
 .atelier-page.hd-page .header-inner{height:64px;padding:0 5% 0 43%;gap:16px;justify-content:flex-end}
 .atelier-page.hd-page .brand{width:112px;height:112px;left:10px}
 .atelier-page.hd-page .header-actions{border:0;padding:0;gap:0}
 .atelier-page.hd-page .bag-link{width:31px;height:42px}
 .atelier-page.hd-page .bag-link b{font-size:12px;min-width:17px;height:18px;top:1px}
 .atelier-page.hd-page #main-navigation{gap:0;padding:26px 7% 20px 44%;justify-content:flex-start}
 .atelier-page.hd-page #main-navigation a{font-size:19px;min-height:44px;padding:12px 0;line-height:1.2}
}
/* Let UI lettering wrap and grow instead of clipping it in measured boxes. */
.atelier-page .product-card-info{height:auto;min-height:calc(98 * var(--u))}
.atelier-page .product-card h2{line-height:1.25;overflow-wrap:anywhere}
.atelier-page .button{white-space:normal;line-height:1.2;text-align:center}
.atelier-page .cart-item-name{min-width:0}
.atelier-page .cart-item h2{overflow-wrap:anywhere;line-height:1.25}
.atelier-page .panel h2{height:auto;min-height:1.2em;line-height:1.25}
.atelier-page .payment-choice-content strong{line-height:1.2;overflow-wrap:anywhere}
.atelier-page .maquette-title{overflow:visible}
@media(min-width:701px){.atelier-page .shop-main{padding-top:max(0px,calc(95 * var(--u) - 80px))}}

/* Original painted campfire, floating over a translucent smoky veil. */
.atelier-page>.campfire-animation{background:radial-gradient(ellipse at center,#615b5038,#221e19a3);backdrop-filter:blur(9px) saturate(.65);-webkit-backdrop-filter:blur(9px) saturate(.65);overflow:hidden}
.atelier-page>.campfire-animation:before{content:'';position:absolute;inset:-15%;background:radial-gradient(ellipse at 38% 60%,#cec7b34d,transparent 42%),radial-gradient(ellipse at 67% 36%,#ccc4b645,transparent 45%);filter:blur(26px);animation:smoke-drift 4s ease-in-out infinite alternate;pointer-events:none}
.atelier-page>.campfire-animation>div{position:relative;z-index:1}
.atelier-page>.campfire-animation .campfire-painting{width:135px;height:135px;animation:camp-glow .6s ease-in-out infinite alternate}
.atelier-page>.campfire-animation .campfire-painting image{filter:url(#reference-hd-pigment)}
@keyframes smoke-drift{to{transform:translate(3%,-4%) scale(1.06)}}
@media(prefers-reduced-motion:reduce){.atelier-page>.campfire-animation:before,.atelier-page>.campfire-animation .campfire-painting{animation:none}}
.atelier-page>.campfire-animation{background:radial-gradient(ellipse at center,#70452d38,#3e281ea3)}
.atelier-page>.campfire-animation:before{background:radial-gradient(ellipse at 38% 60%,#bb936f4d,transparent 42%),radial-gradient(ellipse at 67% 36%,#b7917145,transparent 45%)}
/* Keep the painted header edge outside the visible navigation strip. */
.atelier-page .site-header,.atelier-page.home-page .site-header,.atelier-page.hd-page .site-header{background-size:max(1728px,112.5vw) auto}
@media(min-width:701px){
 .atelier-page .shop-main{padding-top:0}
 .atelier-page.shop-page .clean-artwork{transform:translateY(calc(80px - 95 * var(--u)))}
 .atelier-page.home-page .artwork-layer,.atelier-page.home-page .paper-texture>svg{transform:translateY(calc(80px - 78 * var(--u)))}
}
