/* Adaptation tactile. Les couleurs, illustrations et caractères de la collection
   restent communs aux formats téléphone, tablette et ordinateur. */
.sheet,.saved-toggle{position:relative}
.hero-copy,.shop-copy,.volume-body,.pay-form,.pay-recap,.guide-copy{min-width:0}
.product{grid-template-areas:"gallery heading" "gallery buy";row-gap:0}
.gallery{grid-area:gallery}
.product-heading{grid-area:heading;min-width:0;padding-top:8px}
.product-heading h1{font-size:clamp(44px,5.4vw,72px);line-height:1;letter-spacing:-.01em}
.buybox{grid-area:buy}
.nav-toggle{width:44px;height:44px;flex:none;border:1px solid var(--rule-wine);background:transparent;padding:12px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.nav-toggle span{display:block;width:18px;height:1px;background:var(--gold);transition:transform .2s}
.nav-toggle[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}

@media(max-width:900px){
  .header{position:relative;z-index:10;flex-wrap:wrap;min-height:76px;padding-block:12px;gap:8px}
  .header .brand{margin-right:auto;font-size:28px}
  .header .saved-toggle{padding:0 10px}
  .header .saved-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .header .nav{order:4;flex-wrap:wrap;width:100%;gap:4px 20px;margin:0;padding:0;overflow:visible}
  .header.nav-ready .nav{position:absolute;top:100%;left:calc(-1 * var(--gutter));right:calc(-1 * var(--gutter));width:auto;padding:12px var(--gutter) 20px;background:var(--wine-ink);border-bottom:1px solid var(--rule-wine);box-shadow:0 18px 24px #1f0f1626;display:grid;gap:0}
  .header.nav-ready .nav a{display:flex;align-items:center;min-height:48px;padding:10px 4px;border-bottom:1px solid var(--rule-wine);font-size:16px}
  .header.nav-ready .nav a::after{display:none}
  .product{grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "gallery" "buy";gap:24px;padding-top:0}
  .product-heading{padding:0}
  .product-heading .eyebrow{margin-bottom:8px}
  .product-heading .product-mood{margin:8px 0 0}
  .gallery{width:min(100%,520px);justify-self:center}
  .buybox{padding:0}
  .sticky-buy .button{width:auto;flex:none;padding-inline:20px}
  .sticky-info{min-width:0}
  .guide-hero{grid-template-columns:minmax(0,1fr);gap:28px;padding-block:40px}
  .guide-note{max-width:300px;width:100%;margin:auto;padding:24px}
  .guide-note p{font-size:25px}
  .guide-heart{font-size:50px}
  .guide-step{grid-template-columns:minmax(0,1fr);gap:24px;padding-block:40px}
}

@media(max-width:700px){
  :root{--gutter:20px}
  .announcement{font-size:11px;line-height:1.5;padding:8px 12px;letter-spacing:0}
  .announcement>span{margin:0}
  .header{min-height:68px;padding-block:10px}
  .header .brand{font-size:26px}
  .header .saved-toggle{gap:6px;padding-inline:8px}
  .header .saved-count{min-width:18px;width:18px;height:20px;padding:0;font-size:12px}
  .simple-header{min-height:76px;gap:12px;flex-wrap:wrap;padding-block:12px}
  .simple-header .brand{font-size:26px}
  .simple-header a.back{font-size:13px;min-height:44px}
  .hero{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-block:28px 40px;min-height:0}
  .hero-copy{display:contents}
  .hero-copy>.eyebrow{order:0;text-align:center;font-size:10px;letter-spacing:.1em;margin:0 auto 12px;max-width:290px}
  .hero-copy h1{order:1;text-align:center;font-size:clamp(38px,10.8vw,56px);line-height:.98;margin:0}
  .hero-book{order:2;margin:12px 0 0;width:100%;max-width:100%;align-self:center}
  .book-stage{--p:min(66vw,280px);width:100%;padding:14px 0 24px;overflow:clip}
  .book-hint{font-size:15px;padding:0;min-height:22px;margin-top:4px}
  .book-page-right figcaption{font-size:12px}
  .hero-lead{order:3;text-align:center;font-size:15px;line-height:1.6;max-width:330px;margin:18px auto}
  .hero-actions{order:4;display:grid;gap:4px}
  .hero-actions .link-quiet{justify-self:center;font-size:14px}
  .hero-offer{display:none}
  .collections,.drawings,.atelier,.shop{padding-block:48px}
  .section-head{gap:14px;margin-bottom:26px}
  h2{font-size:clamp(32px,8.5vw,42px);line-height:1.08}
  .section-aside{font-size:15px;line-height:1.6}
  .volumes{gap:36px}
  .volume{padding-top:20px}
  .volume-cover{aspect-ratio:1.4}
  .volume-body{padding-top:20px}
  .volume h3{font-size:34px}
  .volume-status{font-size:13px}
  .volume-actions{gap:8px}
  .volume-actions .envie{min-height:44px}
  .sheets{position:relative;max-width:calc(100% + 2 * var(--gutter));overscroll-behavior-x:contain}
  .sheet{touch-action:pan-x pan-y}
  .faq{padding-block:48px}
  .closing{padding:48px var(--gutter)}
  .footer{padding-block:28px;gap:20px}
  .footer-links{gap:0 18px}
  .footer-links a{font-size:13px}
  .breadcrumb{padding-top:8px;padding-bottom:12px}
  .breadcrumb ol{font-size:12px;gap:0 8px}
  .breadcrumb li+li::before{margin-right:8px}
  .product{gap:20px;padding-bottom:48px}
  .product-heading h1{font-size:42px}
  .product-heading .product-mood{font-size:21px}
  .product-heading .eyebrow{font-size:10px}
  .gallery-note{font-size:13px;margin-top:10px}
  .thumbs{gap:7px;margin-top:12px}
  .thumbs.thumbs-6{display:flex;overflow-x:auto;padding:2px;scroll-snap-type:x proximity}
  .thumbs.thumbs-6 li{flex:1 0 44px;min-width:44px;scroll-snap-align:start}
  .thumb{min-height:44px}
  .product-price{padding:16px 0;gap:8px}
  .product-price .amount{font-size:38px}
  .product-price .unit{font-size:14px}
  .stock{font-size:14px;line-height:1.5;margin-block:16px}
  .product-lead{font-size:16px;line-height:1.65;margin-bottom:20px}
  .button{min-height:48px;padding:12px 18px}
  .button-buy{min-height:52px;font-size:15px}
  .shop-message:empty{display:none}
  .shop-legal{margin-top:12px}
  .sticky-buy{gap:10px;padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -3px 20px #1f0f1626}
  .sticky-info b{font-size:19px}
  .sticky-info span{font-size:12px}
  .sticky-buy .button{font-size:14px;padding-inline:18px}
  .related{padding-block:40px 48px}
  .related-grid{gap:28px}
  .related-card h3{font-size:25px}
  .reader[open]{grid-template-rows:auto 1fr auto;align-content:stretch}
  .reader-stage{gap:12px;align-content:center}
  .reader-sheet{--size:min(calc(100vw - 24px),calc(100dvh - 260px));padding:8px}
  .reader-arrow{width:48px;height:44px}
  .reader-caption{padding:10px 20px max(16px,env(safe-area-inset-bottom))}
  .reader-caption p:not(.reader-note){display:none}
  .reader-caption h2{font-size:22px}
  .reader-caption .reader-note{font-size:12px;margin-top:6px}
  .panel{max-height:calc(100dvh - 24px);padding:20px}
  .panel h2{font-size:32px}
  .favorite-row{gap:10px}
  .favorite-row h3{font-size:24px}
  .pay{padding:24px 0 48px}
  .pay-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:24px;padding-bottom:18px;font-size:11px}
  .pay-steps li{flex-direction:column;gap:6px;text-align:center}
  .pay-item{grid-template-columns:64px minmax(0,1fr);gap:16px;padding-bottom:18px}
  .pay-item h1{font-size:32px}
  .pay-volume{font-size:17px}
  .pay-format{font-size:13px}
  .pay-total{padding:10px 0}
  .pay-total div{font-size:14px}
  .pay-total .pay-total-ligne dd{font-size:28px}
  .pay-grid{gap:24px}
  .pay-form h2{font-size:30px}
  .pay-legal{font-size:13px;line-height:1.6;margin-bottom:16px}
  .pay-sheet{margin:0;padding:0;border:1px solid var(--rule-paper);box-shadow:none;min-height:0}
  .pay-sheet:has(#checkout:not(:empty)){margin-inline:calc(-1 * var(--gutter));border:0}
  .pay-accord{padding:20px 16px;gap:18px;font-size:15px}
  .pay-accord label{min-height:44px}
  .pay-accord .button{width:100%;font-size:14px;justify-self:stretch}
  .doc{padding-block:36px 48px;overflow-wrap:anywhere}
  .doc h1{font-size:38px}
  .doc h2{font-size:28px;margin-top:32px}
  .thanks{padding-block:32px}
  .thanks-card{padding:28px 20px;overflow-wrap:anywhere}
  .thanks-card .button{width:100%}
  .guide-hero{padding-block:36px;gap:24px}
  .guide-hero h1{font-size:42px}
  .guide-hero>div>p:not(.guide-intro){font-size:16px;line-height:1.65}
  .guide-note{max-width:260px}
  .guide-nav{gap:4px 20px;padding-block:16px}
  .guide-nav a{min-height:44px;font-size:14px}
  .guide-heading h2{font-size:30px}
  .guide-tip{padding:16px}
  .guide-community{padding:24px 20px}
  .guide-community h2{font-size:32px}
}

@media(max-width:360px){
  :root{--gutter:16px}
  .header .brand{font-size:24px}
  .header .saved-count{display:none}
  .header .saved-toggle{width:44px;justify-content:center}
  .simple-header{gap:4px 12px}
  .simple-header .brand{font-size:24px}
  .simple-header a.back{font-size:12px}
  .product-heading h1{font-size:38px}
  .sticky-info b{font-size:17px}
  .sticky-buy .button{padding-inline:12px}
}

/* Les deux formats restent accessibles dans la barre mobile. */
@media(max-width:900px){
  .sticky-buy{flex-wrap:wrap;gap:8px}
  .sticky-info{width:100%;flex-direction:row;align-items:baseline;justify-content:space-between;gap:12px}
  .sticky-formats{display:flex;gap:8px;width:100%}
  .sticky-formats .button{flex:1;min-width:0;min-height:48px;padding:10px 8px;font-size:14px;text-align:center;gap:4px}
  .sticky-formats .button svg{display:none}
  html[data-vente="ouverte"] body[data-gabarit="produit"] .footer{padding-bottom:152px}
}
