/* ══ Configurateur du remontoir Cylindre — page du site (12/11/2026) ═══════════════════════════════════════════════
   Panneau à gauche (blanc, charte G : étapes numérotées, Oswald), vitrine 3D à droite (iframe /3d/configurateur/cylindre/,
   nuit, bandes de livrée). Téléphone : vitrine en haut (≈ 58 % de l'écran), panneau dessous, cibles ≥ 44 px. */
@property --cyl-h1 { syntax: '<color>'; inherits: true; initial-value: #EDBE1C; }
.cyl-main { --cyl-encre: #15131A; --cyl-doux: #5a5661; --cyl-toile: #F3EFE7; --cyl-filet: rgba(21,19,26,.12); --cyl-rouge: #BD3238;
  --cyl-ease: cubic-bezier(.2,.7,.2,1); transition: --cyl-h1 .9s ease;
  display: grid; grid-template-columns: minmax(380px, 500px) minmax(0, 1fr); margin: var(--header, 72px) 0 0; padding: 0;   /* l'en-tête du site est fixe */
  height: calc(100dvh - var(--header, 72px)); min-height: 560px; background: #0B0B0D; color: var(--cyl-encre); }
.cyl-main button { font: inherit; color: inherit; cursor: pointer; }
.cyl-main button:focus-visible { outline: 2px solid var(--cyl-rouge); outline-offset: 2px; }
.cyl-panneau { background: #fff; display: flex; flex-direction: column; min-height: 0; min-width: 0; z-index: 2; box-shadow: 8px 0 40px rgba(0,0,0,.35); }
.cyl-entete { padding: 20px 28px 0; }
.cyl-sur { margin: 0; font: 500 11px/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--cyl-doux); display: flex; align-items: center; gap: 12px; }
.cyl-sur::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--cyl-h1); }
.cyl-entete h1 { margin: 10px 0 0; font: 600 clamp(26px, 2.2vw, 34px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.cyl-chapeau { margin: 6px 0 0; color: var(--cyl-doux); font-size: 13.5px; }
.cyl-etapes { position: sticky; top: 0; z-index: 3; display: flex; margin: 14px 0 0; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--cyl-filet); }
.cyl-etapes button { flex: 1 1 0; min-width: 0; min-height: 56px; border: 0; background: none; padding: 8px 2px 10px; display: grid; justify-items: center; align-content: center; gap: 2px; position: relative; color: var(--cyl-doux); }
.cyl-etapes i { font: 500 10.5px/1 var(--display); font-style: normal; letter-spacing: .1em; }
.cyl-etapes span { font: 500 11.5px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cyl-etapes button::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 2px; background: var(--cyl-rouge); transform: scaleX(0); transition: transform .45s var(--cyl-ease); }
.cyl-etapes button[aria-selected="true"] { color: var(--cyl-encre); } .cyl-etapes button[aria-selected="true"]::after { transform: scaleX(1); }
.cyl-options { flex: 1; overflow: auto; padding: 0 28px 24px; min-width: 0; scroll-behavior: smooth; }
.cyl-bloc { padding: 20px 0 22px; border-bottom: 1px solid var(--cyl-filet); scroll-margin-top: 4px; }
.cyl-bloc:last-child { border-bottom: 0; }
.cyl-tete { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.cyl-tete b { font: 600 15px/1 var(--display); letter-spacing: .06em; color: var(--cyl-rouge); }
.cyl-tete h2 { margin: 0; font: 600 21px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
/* 01 architecture : boutons compacts */
.cyl-archs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cyl-arch { display: grid; justify-items: start; gap: 2px; min-height: 64px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--cyl-filet); background: #fff; text-align: left; transition: border-color .25s, box-shadow .25s, transform .25s var(--cyl-ease); }
.cyl-arch .nom { font: 600 24px/1 var(--display); letter-spacing: .02em; }
.cyl-arch .px { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cyl-arch .det { font-size: 11px; color: var(--cyl-doux); }
.cyl-arch:hover { border-color: rgba(21,19,26,.34); transform: translateY(-1px); }
.cyl-arch[aria-pressed="true"] { border-color: var(--cyl-rouge); box-shadow: inset 0 0 0 1px var(--cyl-rouge), 0 0 0 3px color-mix(in srgb, var(--cyl-rouge) 18%, transparent); }
/* 02 bloc moteur : cartes basses à petite vignette */
.cyl-bases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cyl-base { display: grid; grid-template-columns: 84px 1fr; gap: 2px 10px; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--cyl-filet); background: #fff; text-align: left; }
.cyl-base img { width: 84px; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 9px; background: radial-gradient(circle at 50% 55%, #fff 0, #fff 30%, var(--cyl-toile) 78%); grid-row: 1 / span 2; }
.cyl-base .nom { font: 600 15px/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; align-self: end; }
.cyl-base .det { font-size: 11.5px; color: var(--cyl-doux); align-self: start; }
.cyl-base[aria-pressed="true"] { border-color: var(--cyl-rouge); box-shadow: inset 0 0 0 1px var(--cyl-rouge); }
/* 03 cylindres */
.cyl-segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: 999px; background: var(--cyl-toile); }
.cyl-segments button { min-height: 50px; border: 0; border-radius: 999px; background: none; font: 500 13px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #3b3742; }
.cyl-segments button[aria-pressed="true"] { background: var(--cyl-encre); color: #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.cyl-sous { display: flex; justify-content: space-between; gap: 10px; margin: 20px 0 10px; font: 500 11.5px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--cyl-doux); }
.cyl-sous em { font: normal 12.5px/1.2 var(--texte); letter-spacing: .02em; text-transform: none; color: var(--cyl-encre); }
.cyl-palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 6px; }
.cyl-pastille { display: grid; justify-items: center; gap: 7px; border: 0; background: none; padding: 0; font-size: 11.5px; line-height: 1.2; text-align: center; min-height: 44px; }
.cyl-pastille i { position: relative; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), inset 0 -8px 14px rgba(0,0,0,.12), inset 0 6px 10px rgba(255,255,255,.25); transition: transform .25s var(--cyl-ease); }
.cyl-pastille:hover i { transform: scale(1.06); }
.cyl-pastille[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 3px #fff, 0 0 0 5px var(--cyl-encre); }
.cyl-pastille[aria-pressed="true"] i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 7px; border: solid var(--coche, #fff); border-width: 0 0 3px 3px; transform: translate(-50%, -65%) rotate(-45deg); }
.cyl-plan { display: flex; align-items: stretch; gap: 10px; padding: 14px; border-radius: 14px; background: var(--cyl-toile); overflow-x: auto; }
.cyl-plan-legende { display: grid; grid-template-rows: 44px 44px; gap: 8px; font: 500 10px/1.1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyl-doux); align-items: center; }
.cyl-plan-bloc { position: relative; display: grid; grid-auto-flow: column; grid-template-rows: 44px 44px; gap: 8px; padding: 8px 10px 8px 26px; border-radius: 10px; background: var(--cyl-bloc, #27282B); }
.cyl-plan-bloc::before { content: ""; position: absolute; left: 8px; top: 50%; width: 10px; height: 26px; translate: 0 -50%; border-radius: 3px; background: #4a4a4f; }
.cyl-plan-bloc .cyl { width: 44px; height: 44px; border-radius: 9px; border: 0; padding: 0; display: grid; align-content: center; justify-items: center; font: 600 11px/1 var(--display); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); transition: transform .2s var(--cyl-ease), box-shadow .2s; }
.cyl-plan-bloc .cyl::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #27282B; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.cyl-plan-bloc .cyl[aria-pressed="true"] { transform: scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cyl-encre); }
.cyl-note { margin: 8px 0 0; font-size: 12px; color: var(--cyl-doux); }
.cyl-rangees { display: grid; gap: 4px; margin-top: 14px; }
.cyl-rang { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; transition: background-color .25s; }
.cyl-rang[aria-current="true"] { background: var(--cyl-toile); }
.cyl-rang .num { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font: 600 14px/1 var(--display); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.cyl-rang .lib { font-size: 12.5px; color: var(--cyl-doux); } .cyl-rang .lib b { color: var(--cyl-encre); font-weight: 600; }
.cyl-rang .mini { display: flex; gap: 2px; flex-wrap: wrap; }
.cyl-rang .mini button { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.cyl-rang .mini i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); }
.cyl-rang .mini button[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.16), 0 0 0 2px #fff, 0 0 0 4px var(--cyl-encre); }
/* pied : récapitulatif, prix, panier */
.cyl-pied { background: var(--cyl-toile); padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--cyl-filet); box-shadow: inset 0 3px 0 var(--cyl-h1); }
.cyl-recap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; margin-bottom: 10px; }
.cyl-recap span { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyl-doux); }
.cyl-recap strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cyl-recap .points { display: flex; gap: 3px; margin-top: 3px; flex-wrap: wrap; } .cyl-recap .points i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.cyl-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cyl-prix { margin: 0; display: flex; flex-direction: column; }
.cyl-prix span { font: 600 30px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--cyl-encre); }
.cyl-prix small { font-size: 11.5px; color: var(--cyl-doux); margin-top: 5px; }
.cyl-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cyl-actions .btn-plein { background: var(--cyl-encre); color: #fff; border: 1px solid var(--cyl-encre); cursor: pointer; }
.cyl-actions .btn-plein:hover { background: #000; }
.cyl-actions .btn { min-height: 48px; padding: 12px 20px; font-size: .74rem; letter-spacing: .14em; white-space: nowrap; }
.cyl-lien { border: 0; background: none; padding: 6px 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--cyl-doux); min-height: 32px; }
/* vitrine 3D */
.cyl-vitrine { position: relative; min-width: 0; min-height: 0; background: radial-gradient(120% 90% at 55% 45%, #1d1d22 0%, #0f0f12 60%, #08080a 100%); }
.cyl-vitrine iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }
.cyl-charge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; color: #fff; opacity: .7; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.cyl-main.pret .cyl-charge { display: none; }
.cyl-toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; margin: 0; padding: 10px 18px; border-radius: 999px; background: #15131A; color: #fff; font-size: 13px; transition: opacity .3s, translate .3s; pointer-events: none; }
.cyl-toast.vu { opacity: 1; translate: -50% 0; }
/* la page n'a ni bandeau revendeurs ni « Voir le panier » collant au-dessus de la vitrine */
.cyl-page .revendeurs { display: none; }
@media (max-width: 979px) {
  .cyl-main { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .cyl-vitrine { order: 1; height: 58svh; min-height: 320px; flex: none; }
  .cyl-panneau { order: 2; box-shadow: 0 -8px 30px rgba(0,0,0,.4); }
  .cyl-entete { padding: 16px 18px 0; } .cyl-entete h1 { font-size: 22px; } .cyl-chapeau { display: none; }
  .cyl-etapes { position: sticky; top: var(--header, 62px); padding: 0 6px; }
  .cyl-options { overflow: visible; padding: 0 18px 18px; }
  .cyl-archs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .cyl-arch { min-height: 52px; padding: 7px 2px; justify-items: center; text-align: center; border-radius: 10px; }
  .cyl-arch .nom { font-size: 19px; } .cyl-arch .px { font-size: 10px; letter-spacing: -.01em; } .cyl-arch .det { display: none; }
  .cyl-base { grid-template-columns: 64px 1fr; } .cyl-base img { width: 64px; } .cyl-base .nom { font-size: 13.5px; } .cyl-base .det { display: none; }
  .cyl-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
  .cyl-pied { position: sticky; bottom: 0; z-index: 4; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
  .cyl-recap { display: none; }
  .cyl-prix span { font-size: 24px; }
  .cyl-actions .btn { min-height: 46px; padding: 10px 14px; font-size: .7rem; letter-spacing: .1em; }
  .cyl-main { margin-top: var(--header, 56px); }
}
/* ?lecture=1 : la configuration commandée, en lecture seule (Hub, bon de commande, Montage) */
.cyl-main.lecture { grid-template-columns: minmax(0, 1fr); }
.cyl-main.lecture .cyl-panneau, .cyl-main.lecture #cyl-panier, .cyl-main.lecture #cyl-copier { display: none !important; }
@media (max-width: 979px) { .cyl-main.lecture .cyl-vitrine { height: calc(100svh - var(--header, 56px)); } }
.cyl-actions .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
