/* Mobile layout and touch controls, shared by all pages. */
@media(max-width:900px){
 .mnav{width:min(380px,100vw);max-width:100vw;height:100dvh;overscroll-behavior:contain}
 .mnav__body{overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(24px,env(safe-area-inset-bottom))}
 body.nav-open{overflow:hidden}
 .mnav [hidden]{display:none!important}
 .mnav__close,.js-mnav-sub,.js-mnav-open,.js-search-toggle{min-width:44px;min-height:44px}
 .mnav-sub a,.mnav__search button{min-height:44px;display:flex;align-items:center}
 .mnav__search input,.mobile-search input,.local-checkout input,.ft-news input[type=email]{font-size:16px!important}
 .local-search-results{max-height:55dvh;overflow-y:auto;overscroll-behavior:contain}
 .gold-product{grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "gallery" "intro" "buy";gap:18px}
 .gold-heading{grid-area:heading}.gold-gallery{position:static;grid-area:gallery;min-width:0}.gold-buy{grid-area:buy;min-width:0}
 .gold-mobile-intro{grid-area:intro;font-size:15px;line-height:1.65;margin:0;color:#405975}
 .gold-heading h1{font-size:clamp(30px,7vw,40px);line-height:1.15;margin:8px 0 12px}
 .gold-heading .gold-tags{margin-bottom:0;gap:7px}.gold-tags>span{font-size:12px}
 .gold-main-photo{height:clamp(240px,65vw,430px);padding:12px}
 .gold-main-photo.is-ambiance{height:auto;aspect-ratio:3/2;padding:0}
 .gold-thumbs{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 9px;scrollbar-width:thin}
 .gold-thumbs button{flex:0 0 88px;scroll-snap-align:start;min-height:90px;padding:6px}
 .gold-thumbs img{height:55px}.gold-thumbs span{font-size:11px;line-height:1.3}
 .gold-photo-stage{touch-action:pan-y pinch-zoom}
 .gold-stepper button{min-height:44px;min-width:36px}.gold-choice-buttons button{min-height:48px}
 .gold-options select,.gold-purchase input{font-size:16px}
 .gold-practical summary{min-height:52px;font-size:15px}
 .gold-rich-details p,.gold-practical details>p,.gold-practical dl>div{font-size:14px}
 .gold-dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:12px}
 .gold-dialog img{max-width:100%;max-height:75dvh;object-fit:contain}
 .local-cart{margin:20px auto;padding:16px;max-width:100%}.local-checkout{width:100%}.local-checkout>*{min-width:0}
 .local-cart table{width:100%;table-layout:fixed}.local-cart td,.local-cart th{overflow-wrap:anywhere}
 .local-review{position:static;display:table;margin:12px auto;padding:7px 10px;box-shadow:none;font-size:11px}
 .local-toast{max-width:calc(100vw - 24px);left:12px;right:12px;bottom:max(16px,env(safe-area-inset-bottom));overflow-wrap:anywhere}
 .ft-col__title,.js-ft-col{min-height:48px}.ft-news__consent{line-height:1.5}
}
@media(max-width:600px){
 .section,.section.section-confort,.section.section-histoire{padding-top:32px;padding-bottom:32px}
 .section--sm{padding-top:22px;padding-bottom:22px}
 .section-confort,.section-histoire{min-height:0!important}
 .sec-head{margin-bottom:20px}.sec-head__title{font-size:clamp(22px,6vw,28px);line-height:1.2}
 .pcard__media{aspect-ratio:4/3;min-height:0}.pcard__media img{object-fit:contain!important}
 .pcard__name{font-size:14px;line-height:1.35}.pcard__price{font-size:15px}
 .gold-page .wrap{padding-left:16px;padding-right:16px}.gold-crumb{gap:8px;font-size:12px;flex-wrap:wrap}
 .gold-reassurance strong,.gold-reassurance small{font-size:12px!important}
 .gold-purchase{flex-wrap:wrap}.gold-purchase .gold-button{min-height:48px}
 .gold-bottom-action,.gold-visit{padding:20px 16px}
 .brand-collection img{max-height:280px}.ft-services__grid{gap:22px 16px}
}
@media(max-width:360px){.gold-purchase .gold-button{flex:1 1 100%;font-size:15px}.gold-purchase .gold-quantity{flex-basis:120px}.gold-choice-buttons{gap:4px}.gold-choice-buttons strong{font-size:13px}}

/* Ordre mobile : titre et pastilles, photo, description, achat. */
@media(max-width:900px){.gold-page .gold-product{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "gallery" "intro" "buy"}.gold-page .gold-product>.gold-heading{grid-area:heading;order:0}.gold-page .gold-product>.gold-gallery{grid-area:gallery;order:1}.gold-page .gold-product>.gold-mobile-intro{grid-area:intro;order:2}.gold-page .gold-product>.gold-buy{grid-area:buy;order:3}}

/* Slider mobile : commandes sur la photo, en bas a droite. */
@media(max-width:700px){
 .hero-valide{position:relative}
 .hero-valide .hero-controls{position:absolute;top:calc(var(--mobile-image-bottom,75vw) - 64px);right:12px;bottom:auto;left:auto;width:auto;z-index:5}
 .hero-valide .hero-controls__inner{display:flex;align-items:center;justify-content:flex-end;gap:6px;width:auto;max-width:none;padding:4px 6px;margin:0;background:rgba(4,25,60,.78);border:1px solid #ffffff38;border-radius:12px;box-shadow:0 3px 12px #00132b25}
 .hero-valide .hero-dots{display:flex;gap:2px}.hero-valide .hero-dots button{width:20px;min-height:44px;padding:0 2px}.hero-valide .hero-dots button span{width:100%}
 .hero-valide .hero-nav{display:flex;align-items:center;gap:4px}.hero-valide .hero-count{display:none}
 .hero-valide .hero-arrow{width:40px;height:44px;border:0;background:transparent}.hero-valide .hero-arrow svg{width:19px;height:19px}
 .hero-valide .hero-pause{min-height:44px;padding:6px 8px;background:transparent;border-color:#ffffff60;font-size:12px}
 .hero-valide .hero-inner{padding-bottom:24px}
}

/* Commandes mobiles discretes. */
@media(max-width:700px){
 .hero-valide .hero-pause{display:none!important}
 .hero-valide .hero-controls__inner{gap:4px;padding:0 5px;background:rgba(4,25,60,.38);border:0;border-radius:22px;box-shadow:none}
 .hero-valide .hero-controls{top:calc(var(--mobile-image-bottom,75vw) - 54px)}
 .hero-valide .hero-dots button{width:16px;padding:0 2px}
 .hero-valide .hero-dots button span{height:2px}
 .hero-valide .hero-arrow{width:36px;height:44px;box-shadow:none}
 .hero-valide .hero-arrow svg{width:16px;height:16px;stroke-width:1.5}
}

/* Titres directement sur les photos du slider mobile. */
@media(max-width:700px){
 .hero-valide .hero-inner,.hero-valide .hero-inner .wrap,.hero-valide .hero-content{position:static}
 .hero-valide .hero-content h1,.hero-valide .hero-content .h1{position:absolute;z-index:2;left:20px;right:20px;top:calc(var(--mobile-image-bottom,75vw) - 68px);bottom:auto;transform:translateY(-100%)!important;margin:0!important;max-width:440px;font-size:clamp(19px,5.1vw,25px)!important;line-height:1.3!important;font-weight:500!important;letter-spacing:0;color:#fff;text-shadow:0 1px 8px #00162960}
 .hero-valide .hero-slide__scrim{display:block;position:absolute;inset:0 0 auto;height:var(--mobile-image-bottom,75vw);background:linear-gradient(180deg,transparent 40%,rgba(3,20,43,.12) 55%,rgba(3,20,43,.66) 100%);pointer-events:none}
 .hero-valide .hero-inner{padding:16px 0}
}

/* Zone de lecture et commandes separees sur toutes les largeurs mobiles. */
@media(max-width:700px){
 .hero-valide .hero-content h1,.hero-valide .hero-content .h1{left:18px;right:18px;top:calc(var(--mobile-image-bottom,75vw) - 62px);max-width:32ch;font-size:clamp(20px,4.8vw,27px)!important;line-height:1.3!important;font-weight:500!important;text-wrap:balance;text-shadow:0 2px 8px #00102290}
 .hero-valide .hero-slide__scrim{background:linear-gradient(180deg,transparent 36%,rgba(3,20,43,.10) 48%,rgba(3,20,43,.72) 80%,rgba(3,20,43,.80) 100%)}
 .hero-valide .hero-controls{right:12px;top:calc(var(--mobile-image-bottom,75vw) - 50px)}
 .hero-valide .hero-controls__inner{background:transparent;padding:0;gap:10px;border:0;box-shadow:none}
 .hero-valide .hero-nav{gap:0}.hero-valide .hero-arrow{width:44px;height:44px;color:#fff;background:transparent!important;border:0!important;border-radius:0}
 .hero-valide .hero-arrow svg{width:17px;height:17px;stroke-width:1.7;filter:drop-shadow(0 1px 2px #00102280)}
 .hero-valide .hero-dots{gap:4px}.hero-valide .hero-dots button{width:18px;min-height:44px}.hero-valide .hero-dots button span{height:2px}
 .hero-valide .hero-controls :is(button):focus-visible{outline:2px solid white;outline-offset:-3px}
}
@media(max-width:360px){.hero-valide .hero-content h1,.hero-valide .hero-content .h1{left:16px;right:16px;font-size:20px!important}}
/* Homepage mobile: heading, image, then description and action. */
@media(max-width:700px){
 .home-title-first{display:flex!important;flex-direction:column!important;gap:0!important}
 .home-title-first>.home-mobile-title{position:static!important;order:-2!important;color:#082b58!important;background:none!important;margin:0 0 12px!important;padding:0!important;line-height:1.3!important;transform:none!important;text-shadow:none!important}
 .pcard.home-title-first>.home-mobile-title{font-size:16px!important;text-align:center;min-height:42px;display:flex;align-items:center;justify-content:center}
 .pcard.home-title-first .pcard__body{padding-top:10px}
 .cat-card.home-title-first{height:auto!important;aspect-ratio:auto!important;background:transparent!important;overflow:visible!important}
 .cat-card.home-title-first:after{display:none!important}
 .cat-card.home-title-first>img{position:static!important;width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
 .cat-card.home-title-first>.cat-card__ov{display:none!important}
 .cat-card.home-title-first>.home-mobile-title{font-size:21px!important}
 .conseil-card.home-title-first>.home-mobile-title{padding:16px 18px 0!important;font-size:19px!important}
 .home-title-first:is(#confort,#histoire,.boutique-editorial,.gold-editorial)>.home-mobile-title{font-size:25px!important}
 .home-title-first:is(#confort,#histoire,.boutique-editorial,.gold-editorial)>:is(.split__media,.histoire-photo,figure,.gold-visuel){order:-1!important;margin:0 0 18px!important;width:100%}
}
/* Chaque produit forme une carte distincte sur mobile. */
@media(max-width:700px){
 .products .pcard.home-title-first{height:100%;box-sizing:border-box;padding:14px 10px 12px!important;border:1px solid #cbd8e9!important;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(8,43,88,.045)}
 .products .pcard.home-title-first>.home-mobile-title{min-height:44px;margin-bottom:12px!important;font-size:16px!important}
 .products .pcard.home-title-first .pcard__media{border:0!important;border-radius:8px}
 .products .pcard.home-title-first .pcard__body{padding:10px 0 0!important}
 .products .pcard.home-title-first .pcard__foot{margin-top:0;padding-top:12px;gap:5px}
 .products.grid{row-gap:24px!important;column-gap:12px!important;align-items:stretch}
 .products .product-miniature{height:100%}
 .products .pcard.home-title-first .pcard__go{width:34px;height:34px;min-width:34px}
 .products .pcard.home-title-first .pcard__price{font-size:14px}
}
@media(max-width:360px){.products .pcard.home-title-first{padding:12px 8px!important}.products .pcard.home-title-first>.home-mobile-title{font-size:14px!important}.products .pcard.home-title-first .pcard__foot{flex-wrap:wrap}.products .pcard.home-title-first .pcard__price{font-size:13px}}
/* Conseils MACACI : lecture plus compacte sur mobile. */
@media(max-width:700px){
 .conseils-home .conseils-heading{margin-bottom:16px!important;gap:10px!important}
 .conseils-home .conseils-heading h2{line-height:1.2!important;margin:6px 0 8px!important}
 .conseils-home .conseils-heading p{line-height:1.4!important;margin:0!important}
 .conseils-home .conseils-grid{gap:16px!important}
 .conseils-home .conseil-card.home-title-first>.home-mobile-title{line-height:1.25!important;padding:12px 14px 0!important;margin-bottom:10px!important}
 .conseils-home .conseil-card>div{padding:12px 14px!important}
 .conseils-home .conseil-card small{line-height:1.3!important;margin:0 0 5px!important}
 .conseils-home .conseil-card p{line-height:1.4!important;margin:6px 0 10px!important}
 .conseils-home .conseil-card b{line-height:1.3!important;margin-top:0!important}
}
/* Catégories mobiles : nom, prix, photo, description, lien. */
@media(max-width:700px){
 body#category .pcard{display:flex!important;flex-direction:column!important;gap:0!important;padding:14px 10px!important}
 body#category .pcard .pcard__body,body#category .pcard .pcard__foot{display:contents!important}
 body#category .pcard .pcard__name{order:0!important;margin:0 0 6px!important;min-height:0!important;font-size:16px!important;line-height:1.3!important;text-align:center}
 body#category .pcard .pcard__price{order:1!important;display:flex!important;flex-direction:column;align-items:center;gap:2px;margin:0 0 12px!important;padding:0!important}
 body#category .pcard .pcard__from{font-size:10px!important;line-height:1.3!important}
 body#category .pcard .pcard__amounts{font-size:16px!important;line-height:1.4!important}
 body#category .pcard .pcard__media{order:2!important;width:100%!important;border:0!important;margin:0 0 10px!important;aspect-ratio:4/3!important}
 body#category .pcard .mattress-card-description,body#category .pcard .pcard__tagline{order:3!important;min-height:0!important;margin:0 0 12px!important;padding:0!important;font-size:13px!important;line-height:1.4!important}
 body#category .pcard .product-list-reviews{order:4}
 body#category .pcard .mattress-card-link{order:5!important;margin-top:auto!important;padding:10px 0 0!important;font-size:12px!important}
 body#category .pcard .pcard__go{display:none!important}
}
@media(max-width:700px){body#category .pcard .pcard__name{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0}}
.product-premium{display:none}
@media(max-width:700px){.pcard.home-title-first>.pcard__name{flex-direction:column;gap:4px}.pcard .product-premium{display:block;font-size:10px;font-weight:600;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:#6b5734;background:#f4f0e7;border:1px solid #dfd4bf;border-radius:20px;padding:3px 9px}}
/* Trois pastilles produit sur une ligne, même sur petit téléphone. */
@media(max-width:700px){
 .gold-page .gold-heading .gold-tags{display:flex;flex-wrap:nowrap;gap:4px;margin-bottom:0}
 .gold-page .gold-heading .gold-tags>span{padding:5px 6px;min-height:28px;gap:3px;min-width:0;flex:0 1 auto}
 .gold-page .gold-heading .gold-tags svg{width:12px;height:12px;flex:0 0 12px}
 .gold-page .gold-heading .gold-tags strong{font-size:10px;line-height:1.2;white-space:nowrap}
}
@media(max-width:360px){.gold-page .gold-heading .gold-tags>span{padding:5px 4px;gap:2px}.gold-page .gold-heading .gold-tags strong{font-size:9px}.gold-page .gold-heading .gold-tags svg{width:11px;height:11px;flex-basis:11px}}
/* Catégories sur tablette : préserver les visuels et une lecture confortable. */
@media(min-width:701px) and (max-width:900px){
 body#category .range-hero{grid-template-columns:minmax(0,1fr);gap:22px}
 body#category .range-hero-copy{max-width:none}
 body#category .range-hero figure{width:100%;max-height:none;margin:0}
 body#category .range-hero img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;object-position:center}
 body#category .range-help,.collection-canape .collection-visit{flex-direction:column;align-items:stretch;gap:18px}
 body#category .range-help .range-action,.collection-canape .collection-visit .collection-button{width:100%}
 .collection-canape .collection-choice{grid-template-columns:minmax(0,1fr);gap:22px}
 .collection-canape .collection-choice-photo{height:360px}
}
/* Cadres des visuels de catégories sur tablette, dont 768 px. */
@media(min-width:701px) and (max-width:900px){
 body#category .range-hero figure{width:min(100%,580px);justify-self:center;max-height:none;overflow:hidden;border:1px solid #d8e3f0;border-radius:18px;background:#f6f8fb;box-shadow:0 6px 20px rgba(12,44,83,.07)}
 body#category .range-hero img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;border-radius:0}
 .collection-canape .collection-duo{gap:16px}
 .collection-canape .collection-duo figure{overflow:hidden;border:1px solid #d8e3f0;border-radius:16px;background:#f6f8fb;box-shadow:0 4px 16px rgba(12,44,83,.06)}
 .collection-canape .collection-duo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
 .collection-canape .collection-choice-photo{width:min(100%,580px);justify-self:center;border:1px solid #d8e3f0;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 6px 20px rgba(12,44,83,.07)}
}
/* Le cadre suit la largeur du contenu : pas de photo isolée au milieu du blanc. */
@media(min-width:701px) and (max-width:900px){
 body#category .range-hero figure{width:100%;max-width:none;justify-self:stretch;border-radius:16px;box-shadow:none;background:transparent}
 body#category .range-hero img{display:block;width:100%;max-width:none;height:auto;aspect-ratio:auto;object-fit:contain}
}
