/* CFL Boutique v2 — live shop additions on top of the validated design (v2.css + poster.css):
   checkout forms, states, video pause, accessibility fixes from the design review. Charte v1.1 tokens only. */

/* loading / empty / state lines */
.co-loading{padding:32px 0;font-size:16px;color:#4a4e52}
.co-state{padding:14px 18px;border-radius:16px;background:#fff;border:1px solid rgba(11,12,13,.1);font-size:15px;line-height:1.5}
.co-state a{color:var(--crimson);text-decoration:underline}
.co-count{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);padding-bottom:6px;border-bottom:1px solid rgba(11,12,13,.12)}
.co-out{color:var(--crimson)!important;font-weight:600}
.co-err{margin:4px 0 8px;padding:12px 16px;border-radius:14px;background:#fff;border:1px solid var(--crimson);color:#9d1f15;font-size:14px;font-weight:600;line-height:1.45}
.line a b:hover{color:var(--crimson)}

/* sizes: few left */
.sizes button{position:relative}
.sizes .few{position:absolute;top:-7px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--crimson);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center}
.slots button{height:auto;min-height:58px;padding:12px 20px;gap:14px;text-align:left}
.slots button span::first-letter{text-transform:uppercase}
.slots button.on small{color:var(--rose)}
.slots button:disabled{opacity:.45;cursor:not-allowed}
.qty button:disabled{opacity:.3;cursor:not-allowed}

/* checkout form (event booking on ivory, basket on the dark summary) */
.co-form{display:flex;flex-direction:column;gap:16px;padding:24px;border-radius:24px;background:#fff;border:1px solid rgba(11,12,13,.1);scroll-margin-top:96px}
.co-head{display:flex;flex-direction:column;gap:4px;padding-bottom:14px;border-bottom:1px solid rgba(11,12,13,.12)}
.co-head b{font-family:'Anton',sans-serif;font-weight:400;font-size:26px;text-transform:uppercase}
.co-head span{font-size:14px;color:#4a4e52}
.co-head span::first-letter{text-transform:uppercase}
.co-set{border:0;display:flex;flex-direction:column;gap:14px}
.co-set legend{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-bottom:12px}
.co-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.co-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.co-field i{font-style:normal;color:var(--crimson);margin-left:2px}
.co-field em{font-style:normal;font-weight:500;color:var(--mute)}
.co-field small{font-size:12px;font-weight:500;color:var(--mute)}
.co-field input,.co-field select{height:48px;padding:0 14px;border-radius:12px;border:1px solid rgba(11,12,13,.25);background:#fff;color:var(--noir);font:500 16px 'Montserrat',sans-serif}
.co-field textarea{width:100%;min-width:0;padding:12px 14px;border-radius:12px;border:1px solid rgba(11,12,13,.25);background:#fff;color:var(--noir);font:500 16px/1.4 'Montserrat',sans-serif;resize:vertical}
.co-dark .co-field textarea{background:rgba(244,243,241,.08);border-color:rgba(244,243,241,.28);color:var(--ivoire)}
.co-field textarea:focus{outline:2px solid currentColor;outline-offset:1px}
.co-field input:focus,.co-field select:focus{outline:2px solid var(--noir);outline-offset:1px}
.co-field [aria-invalid=true]{border-color:var(--crimson);outline-color:var(--crimson)}
.co-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5}
.co-check input{width:20px;height:20px;margin-top:1px;flex:none;accent-color:var(--crimson)}
.co-check a{text-decoration:underline}
.co-total{display:flex;justify-content:space-between;align-items:baseline;padding-top:14px;border-top:1px solid rgba(11,12,13,.12)}
.co-total span{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.co-total b{font-family:'Anton',sans-serif;font-weight:400;font-size:38px}
.co-go{width:100%}
.co-go[aria-busy=true]{opacity:.7;cursor:progress}
.co-note{font-size:12px;line-height:1.55;color:#4a4e52}
.co-dark{padding:0;background:none;border:0;color:var(--ivoire)}
.co-dark .co-set legend{color:var(--ivoire)}
.co-dark .co-field small,.co-dark .co-field em{color:var(--ink-dim)}
.co-dark .co-field i{color:var(--rose)}
.co-dark .co-field input,.co-dark .co-field select{background:rgba(244,243,241,.08);border-color:rgba(244,243,241,.28);color:var(--ivoire)}
.co-dark .co-field select option{color:var(--noir)}
.co-dark .co-field input:focus,.co-dark .co-field select:focus{outline-color:var(--ivoire)}
.co-dark .co-field [aria-invalid=true]{border-color:var(--rose);outline-color:var(--rose)}
.co-dark .co-err{background:rgba(214,44,31,.14);border-color:var(--rose);color:var(--ivoire)}
.co-dark .co-check a{color:var(--ivoire)}
.co-field input,.co-field select{width:100%;min-width:0}
.co-row2>*{min-width:0}
.cart-v4 .summary{position:static}
.cart>*,.line>*{min-width:0}
.line small{overflow-wrap:anywhere}
.toast:not(.on){visibility:hidden}

/* background video pause (home) */
.video-pause{position:fixed;z-index:30;right:20px;top:22px;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--glass-line);background:rgba(11,12,13,.55);color:var(--ivoire);font-size:12px;font-weight:600;cursor:pointer;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.video-pause:focus-visible,.home a:focus-visible,.home button:focus-visible{outline:2px solid var(--ivoire);outline-offset:3px}
.how a:focus-visible,.how button:focus-visible{outline-color:var(--noir)}

/* the wordmark must not shrink away in the home menu (flex item with max-width:100% image) */
.nav-brand{flex:none}
.nav-brand img{max-width:none}

/* who the piece is for: small label on cards and product page, second filter group on /merch */
.for-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;margin-left:8px;border-radius:999px;border:1px solid currentColor;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;vertical-align:middle;white-space:nowrap}
.piece-info a>span{display:inline-flex;align-items:center;flex-wrap:wrap;row-gap:4px}
.home .piece-info a>span .for-tag{color:var(--ivoire)}
.page .piece-info a>span .for-tag{color:var(--noir)}
.for-line{display:flex;align-items:center;gap:10px;font-size:13px;color:#4a4e52;margin-top:-8px}
.for-line .for-tag{margin-left:0;height:24px;padding:0 10px;font-size:11px;color:var(--noir)}
.filter-group{display:flex;gap:8px;flex-shrink:0}
.filter-group+.filter-group{padding-left:12px;margin-left:4px;border-left:1px solid rgba(11,12,13,.18)}

/* between two collections */
.collection-done{margin-top:12px;font-size:15px;font-weight:600;color:var(--rose)}
.page .collection-done{color:var(--crimson)}
.preorder a{margin-left:4px}

/* event page: key facts, « Pour qui ? », gift idea, places in the phone buy bar */
.ev-facts{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin:0;padding:0}
.ev-facts li{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid rgba(11,12,13,.08);font-size:15px;font-weight:700;line-height:1.3}
.ev-facts small{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--mute)}
.ev-who{padding:12px 14px;border-left:3px solid var(--crimson);background:#fff;border-radius:0 14px 14px 0;font-size:15px;line-height:1.5}
.ev-who b{color:var(--crimson)}
.ev-gift{margin-top:-6px;font-size:14px;line-height:1.5;color:#4a4e52}
.sticky-txt{display:flex;flex-direction:column;line-height:1.1}
.sticky-txt small{font-size:12px;font-weight:600;color:var(--rose)}
.sticky-txt small:empty{display:none}
@media(max-width:860px){
  .is-event .main-img{aspect-ratio:16/10}
  .is-event .pdp{gap:24px}
  .is-event .buy{gap:16px}
  .product-v4.is-event .buy h1{font-size:clamp(36px,10vw,56px)}
}

/* current page in the menu */
.nav-links a[aria-current=page]:not(.nav-cart){color:#fff;background:rgba(244,243,241,.12)}

/* toast above the mobile buy bar; space kept for the bar */
@media(max-width:860px){
  .product-v4 main{padding-bottom:84px}
  .product-v4 .toast{bottom:calc(84px + env(safe-area-inset-bottom))}
  .sticky-buy{bottom:calc(12px + env(safe-area-inset-bottom))}
  .co-row2{grid-template-columns:1fr}
  .video-pause{top:76px;right:12px;height:30px;font-size:11px}
  .home .nav-links a[href="/merch"]{display:block;padding:10px 10px;font-size:13px}
}
@media(max-width:420px){.home .nav-links a[href="/merch"]{padding:10px 8px}}
@media(max-width:860px){
  .home.event-first .nav-links a[href="/merch"]{display:none}
  .home.event-first .nav-links a[href="/evenements"]{display:block;padding:10px 8px;font-size:13px}
}

/* phones: the pause button scrolls away with the hero; both filter groups visible (one row each);
   footer links and text links big enough to tap */
@media(max-width:860px){
  .video-pause{position:absolute}
  .foot-cols a{display:inline-flex;align-items:center;min-height:40px}
  .foot-cols div{gap:0}
  .hero-cta .text-link,.section-heading .text-link,.piece-note .text-link{display:inline-flex;align-items:center;min-height:44px}
}
/* phones (Codex mobile review 14.11): tap targets ≥ 44 px, readable helper text, notch / home bar, no clipped buttons */
.colors button{width:44px;height:44px}
.line .qty{height:44px}.line .qty button{width:44px}
.rm{min-height:44px;padding:0 4px;font-size:13px}
.co-field small{font-size:13px}.co-check{font-size:14px}.co-note{font-size:13px}
.co-go,.v4 .co-go{white-space:normal;height:auto;min-height:54px;padding:12px 24px;text-align:center}
.nav{top:calc(16px + env(safe-area-inset-top))}
.dock{bottom:calc(20px + env(safe-area-inset-bottom))}
.sticky-buy.off{display:none}
.co-inline{margin:6px 0 0;padding:8px 12px;font-size:13px}
@media(max-width:860px){.video-pause{height:40px;font-size:12px}.sort select{font-size:16px}.dock.up{bottom:calc(20px + env(safe-area-inset-bottom))}}
@media(max-width:700px){
  .event-action{flex-direction:column;align-items:stretch;gap:12px}
  .event-action .btn-pill{width:100%}
  .filters button{padding:0 14px}
  #count{white-space:nowrap}
  .filters{flex-direction:column;align-items:stretch;gap:10px;overflow:visible}
  .filter-group{overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px}
  .filter-group::-webkit-scrollbar{display:none}
  .filter-group+.filter-group{border-left:0;margin-left:-16px;padding-left:16px}
}
