/* ==========================================================================
   Planning v3 — flux d'équipe : tablette de pointage, photos, shifts libres, échanges
   ========================================================================== */

.flows-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .flows-grid { grid-template-columns: minmax(0, 1fr); } }
.flow-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-muted); color: var(--text-secondary); }

/* --- Tablette de pointage (/pos) ----------------------------------------- */
.pos-page { background: #f6f7fb; overflow-x: hidden; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pos-page .cookie-banner, .pos-page .contact-widget { display: none !important; }
.pos { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #0b0d12; font-family: var(--font); padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); }
.pos-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; }
.pos-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pos-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: 0 1px 2px rgb(9 9 11 / .06), 0 0 0 1px rgb(9 9 11 / .05); }
.pos-logo-text { display: grid; place-items: center; font-weight: 700; color: #fff; background: #18181b; }
.pos-company { font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.pos-device { font-size: 13px; color: #71717a; }
.pos-clock { text-align: right; }
.pos-time { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pos-date { font-size: 13px; color: #71717a; margin-top: 4px; text-transform: capitalize; }
.pos-lock { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; color: #a1a1aa; background: transparent; border: 0; cursor: pointer; }
.pos-lock:active { background: #e4e4e7; color: #3f3f46; }
.pos-offline { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: #fff7ed; color: #b45309; font-weight: 500; }

.pos-screen { flex: 1; display: flex; flex-direction: column; animation: pos-in .22s ease-out; }
.pos-screen[hidden] { display: none; }
.pos-center { align-items: center; justify-content: center; text-align: center; gap: 18px; }
@keyframes pos-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pos-search { position: relative; max-width: 560px; width: 100%; margin: 0 auto 18px; color: #a1a1aa; }
.pos-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }
.pos-search input { width: 100%; height: 58px; padding: 0 20px 0 52px; font: inherit; font-size: 18px; color: #0b0d12; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 1px 2px rgb(9 9 11 / .05), 0 0 0 1px rgb(9 9 11 / .06); outline: none; -webkit-user-select: text; user-select: text; }
.pos-search input:focus { box-shadow: 0 0 0 3px rgb(46 91 255 / .2), 0 0 0 1px #2e5bff; }

.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; align-content: start; }
.pos-person { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px 16px; min-height: 168px; background: #fff; border: 0; border-radius: 20px; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 1px 2px rgb(9 9 11 / .05), 0 0 0 1px rgb(9 9 11 / .05); transition: transform .12s, box-shadow .12s; }
.pos-person:active { transform: scale(.97); box-shadow: 0 0 0 2px #2e5bff; }
.pos-avatar { position: relative; width: 72px; height: 72px; border-radius: 99px; display: grid; place-items: center; font-size: 26px; font-weight: 650; color: #fff; background: var(--c, #2e5bff); letter-spacing: -0.02em; }
.pos-avatar.has-photo { background-size: cover; background-position: center; }
.pos-avatar-lg { width: 108px; height: 108px; font-size: 40px; }
.pos-dot { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; border-radius: 99px; border: 3px solid #fff; background: #d4d4d8; }
.is-in .pos-dot { background: #16a34a; }
.is-break .pos-dot { background: #f59e0b; }
.pos-name { font-weight: 600; font-size: 16px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pos-state { font-size: 12.5px; color: #71717a; }
.is-in .pos-state { color: #15803d; }
.is-break .pos-state { color: #b45309; }
.pos-empty { text-align: center; color: #71717a; padding: 40px; font-size: 16px; }

.pos-who { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pos-who-name { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.pos-prompt { font-size: 17px; color: #52525b; max-width: 480px; }
.pos-dots { display: flex; gap: 16px; height: 22px; align-items: center; }
.pos-dots i { width: 18px; height: 18px; border-radius: 99px; border: 2px solid #a1a1aa; transition: background .1s, border-color .1s; }
.pos-dots i.on { background: #0b0d12; border-color: #0b0d12; }
.pos-dots.shake { animation: pos-shake .38s; }
@keyframes pos-shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pos-error { min-height: 22px; color: #dc2626; font-weight: 500; }
/* Touches calculées sur la hauteur : le 0 et « Valider » restent visibles sur toute tablette, debout ou couchée. */
.pos { --key: clamp(54px, calc((100dvh - 440px) / 4), 92px); }
.pos:has(.pos-unlock-ok:not([hidden])) { --key: clamp(54px, calc((100dvh - 500px) / 4), 92px); }
.pos-keypad { display: grid; grid-template-columns: repeat(3, var(--key)); gap: 14px; }
.pos-keypad button { height: var(--key); border-radius: 99px; border: 0; background: #fff; font: inherit; font-size: 32px; font-weight: 500; color: #0b0d12; cursor: pointer; box-shadow: 0 1px 2px rgb(9 9 11 / .06), 0 0 0 1px rgb(9 9 11 / .06); display: grid; place-items: center; }
.pos-keypad button:active { background: #e4e4e7; transform: scale(.96); }
.pos-keypad .pos-key-ghost { background: transparent; box-shadow: none; font-size: 16px; color: #52525b; }
@media (max-height: 760px) { .pos-keypad { gap: 10px; } .pos-keypad button { font-size: 26px; } .pos-keypad .pos-key-ghost { font-size: 14px; } .pos-avatar-lg { width: 72px; height: 72px; font-size: 27px; } .pos-center { gap: 12px; } }
@media (orientation: portrait) and (max-height: 700px) { .pos-camera-live { width: min(220px, 60vw); margin: 0 auto 4px; } .pos-btn { min-height: 76px; flex-basis: 220px; } }
/* Tablette couchée : la personne à gauche, le clavier ou la photo à droite. */
@media (orientation: landscape) and (min-width: 640px) and (max-height: 860px) {
    .pos, .pos:has(.pos-unlock-ok:not([hidden])) { --key: clamp(48px, calc((100dvh - 150px) / 4), 92px); }
    .pos-head { padding-bottom: 10px; }
    .pos-screen[data-screen="pin"]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 360px) auto; grid-template-rows: 1fr auto auto auto 1fr; gap: 12px clamp(28px, 7vw, 96px); justify-content: center; justify-items: center; align-content: stretch; }
    .pos-screen[data-screen="pin"] > * { grid-column: 1; }
    .pos-screen[data-screen="pin"] > .pos-who { align-self: end; }
    .pos-screen[data-screen="pin"] > .pos-keypad { grid-column: 2; grid-row: 1 / -1; align-self: center; }
    .pos-screen[data-screen="pin"] > .pos-unlock-ok { align-self: start; }
    .pos-screen[data-screen="actions"]:not([hidden]):has(.pos-camera:not([hidden])) { display: grid; grid-template-columns: auto minmax(0, 420px); grid-template-rows: 1fr auto 1fr; gap: 12px clamp(24px, 5vw, 64px); justify-content: center; justify-items: center; }
    .pos-screen[data-screen="actions"] > .pos-camera-live { grid-column: 1; grid-row: 1 / -1; align-self: center; margin: 0; width: min(400px, 40vw, calc((100dvh - 130px) * 4 / 3)); }
    .pos-screen[data-screen="actions"]:has(.pos-camera:not([hidden])) > :not(.pos-camera) { grid-column: 2; }
    .pos-screen[data-screen="actions"]:has(.pos-camera:not([hidden])) > .pos-who { align-self: end; }
    .pos-screen[data-screen="actions"]:has(.pos-camera:not([hidden])) > .pos-link { align-self: start; }
    .pos-screen[data-screen="actions"] .pos-btn { min-height: 84px; }
}

.pos-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; max-width: 720px; margin-top: 8px; }
.pos-btn { flex: 1 1 260px; min-height: 104px; padding: 0 28px; border: 0; border-radius: 24px; font: inherit; font-size: 26px; font-weight: 650; letter-spacing: -0.01em; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .1s; }
.pos-btn:active { transform: scale(.97); }
.pos-btn-success { background: #16a34a; box-shadow: 0 10px 24px -10px rgb(22 163 74 / .7); }
.pos-btn-warning { background: #f59e0b; box-shadow: 0 10px 24px -10px rgb(245 158 11 / .7); }
.pos-btn-dark { background: #18181b; box-shadow: 0 10px 24px -10px rgb(9 9 11 / .6); }
.pos-unlock-ok { flex: none; min-height: 64px; min-width: 240px; font-size: 20px; }
.pos-link { background: none; border: 0; font: inherit; font-size: 16px; color: #71717a; padding: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.pos-camera { position: relative; width: min(480px, 80vw); aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #18181b; box-shadow: 0 24px 48px -16px rgb(9 9 11 / .35); }
.pos-camera video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pos-camera-live { width: min(360px, 70vw); margin: 4px auto 20px; border-radius: 24px; }
.pos-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.pos-flash.on { animation: pos-flash .35s ease-out; }
@keyframes pos-flash { from { opacity: .9; } to { opacity: 0; } }

.pos-done-icon { width: 128px; height: 128px; border-radius: 99px; display: grid; place-items: center; color: #fff; background: #16a34a; animation: pos-check .4s cubic-bezier(.2, 1.4, .4, 1); }
.pos-done-icon.is-pause { background: #f59e0b; }
.pos-done-icon.is-out { background: #18181b; }
@keyframes pos-check { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.pos-done-title { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; max-width: 680px; }
.pos-done-time { font-size: 20px; color: #71717a; }
.pos-spinner { width: 52px; height: 52px; border-radius: 99px; border: 4px solid #e4e4e7; border-top-color: #2e5bff; animation: pos-spin .8s linear infinite; }
@keyframes pos-spin { to { transform: rotate(360deg); } }
.pos-unpaired { justify-content: center; }
.pos-unpaired .pos-btn { flex: none; min-height: 64px; font-size: 18px; margin-top: 10px; }

/* --- Photos de pointage ---------------------------------------------------- */
.punch-thumbs { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.punch-thumb { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; padding: 0; border: 1px solid var(--border); background: var(--bg-muted); cursor: zoom-in; }
.punch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 720px); }
.lightbox::backdrop { background: rgb(9 9 11 / .72); }
.lightbox img { display: block; width: 100%; border-radius: 16px; }
.lightbox figcaption { color: #fff; text-align: center; padding: 10px; font-size: 14px; }
.badge-auto { color: var(--warning-text); background: var(--warning-soft); }

/* --- Shifts libres --------------------------------------------------------- */
.planning-grid > .pl-open > div { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.planning-grid > .pl-open > div:last-child { border-right: 0; }
.pl-open .pl-person { gap: 10px; background: color-mix(in srgb, var(--primary) 4%, var(--bg)); }
.planning-week .pl-open .pl-person { background: color-mix(in srgb, var(--primary) 4%, var(--bg)); }
.pl-open-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--primary-text); background: var(--primary-soft); }
.pl-open-title { font-weight: 600; font-size: 13px; line-height: 1.2; }
.pl-open-cell { min-height: 52px; }
.planning-grid > .pl-open > div { border-bottom-width: 2px; }
.pl-open-cell.is-creatable { cursor: pointer; }
.open-shift { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 5px 8px; text-align: left; border-radius: 8px; font-size: 12px; line-height: 1.3; border: 1px dashed color-mix(in srgb, var(--c, var(--primary)) 70%, transparent); background: color-mix(in srgb, var(--c, var(--primary)) 8%, var(--bg)); color: var(--text); text-decoration: none; transition: background .12s, border-color .12s; }
.open-shift:hover { background: color-mix(in srgb, var(--c, var(--primary)) 14%, var(--bg)); border-color: var(--c, var(--primary)); }
.open-shift .t { font-weight: 600; font-variant-numeric: tabular-nums; }
.open-shift .s { color: var(--text-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.open-shift.is-full { border-style: solid; opacity: .65; }
.open-dots { display: flex; align-items: center; gap: 3px; margin-top: 1px; }
.open-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--c, var(--primary)); }
.open-dots i.on { background: var(--c, var(--primary)); }
.open-dots b { margin-left: 3px; font-size: 10.5px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
/* « + Shift libre » : discret, il apparaît au survol du jour ; la case entière est cliquable quand elle est vide. */
.open-add { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 26px; padding: 3px 6px; font: inherit; font-size: 11.5px; font-weight: 500; color: var(--text-muted); background: transparent; border: 1px dashed transparent; border-radius: 8px; cursor: pointer; opacity: 0; transition: opacity .12s, color .12s, border-color .12s, background .12s; }
.open-add:only-child { position: absolute; inset: 5px; width: auto; min-height: 0; }
.pl-open-cell:hover .open-add, .open-add:focus-visible { opacity: 1; border-color: var(--border-strong); }
.open-add:hover { color: var(--primary-text); border-color: var(--primary); background: var(--primary-soft); }
@media (hover: none) { .open-add { opacity: 1; border-color: var(--border); } }
.open-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.open-card:last-child { border-bottom: 0; }
.open-date { flex: none; width: 56px; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--primary-soft); color: var(--primary-text); }
.open-date b { display: block; font-size: 20px; line-height: 1.1; }
.open-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.open-progress { display: inline-block; width: 60px; height: 6px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; vertical-align: middle; }
.open-progress i { display: block; height: 100%; background: var(--success); border-radius: 99px; }
.open-takers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.open-taker { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; font-size: 12.5px; border-radius: 99px; background: var(--bg-muted); border: 1px solid var(--border); }
.open-taker.is-empty { padding: 3px 10px; color: var(--text-faint); background: transparent; border-style: dashed; }
.btn-take { min-width: 140px; }

/* --- Échanges -------------------------------------------------------------- */
.swap-shift { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 9px; border-left: 3px solid var(--c, var(--primary)); background: var(--bg-subtle); font-size: 12.5px; }
.swap-shift b { font-variant-numeric: tabular-nums; }
.swap-arrow { color: var(--text-faint); margin: 0 6px; }

/* --- Page « Tablettes » (gérants) ------------------------------------------ */
.pos-tablets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.pos-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; min-width: 0; }
.pos-card-top { display: flex; align-items: flex-start; gap: 12px; }
.pos-card-top .grow { min-width: 0; }
.pos-card h2 { font-size: 15px; }
.pos-card-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-muted); color: var(--text-secondary); }
.pos-card-icon.is-online { background: var(--success-soft); color: var(--success-text); }
.pos-card-foot { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-top: auto; flex-wrap: wrap; }
.pos-card.is-waiting .pos-card-foot { justify-content: space-between; }
.pos-card.is-waiting { border-style: dashed; }
.pos-card-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 124px; border: 1px dashed var(--border-strong, var(--border)); border-radius: var(--radius, 12px); background: transparent; color: var(--text-muted); font: inherit; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pos-card-add:hover, .pos-card-add:focus-visible { border-color: var(--primary); color: var(--primary-text); background: var(--primary-soft); }
.pos-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pos-more { margin-top: 14px; }
.pos-more > summary { list-style: none; width: 100%; cursor: pointer; }
.pos-more > summary::-webkit-details-marker { display: none; }
.pos-more > summary .icon { transition: transform .15s; }
.pos-more[open] > summary .icon { transform: rotate(180deg); }
.pos-more[open] > summary { margin-bottom: 14px; }
.pos-more:not([open]) .pos-more-hide, .pos-more[open] .pos-more-show { display: none; }
.pos-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 44px 24px; }
.pos-intro h2 { font-size: 20px; }
.pos-intro > p { max-width: 460px; color: var(--text-muted); }
.pos-intro-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.pos-intro-form { display: flex; flex-direction: column; gap: 12px; width: min(100%, 300px); margin: 6px 0; text-align: left; }
.pos-steps { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.pos-steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.pos-steps b { flex: none; width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; background: var(--text); color: var(--bg); }
.pos-here summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 500; font-size: 14px; list-style: none; }
.pos-here summary::-webkit-details-marker { display: none; }
.pos-here summary .icon:last-child { transition: transform .15s; }
.pos-here[open] summary .icon:last-child { transform: rotate(180deg); }
.pos-poster { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-top: 16px; font-size: 14px; color: inherit; text-decoration: none; }
.pos-poster b { display: block; font-weight: 500; }
.pos-poster small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; }
.pos-poster:hover { border-color: var(--primary); }
.pos-connect { max-width: 860px; margin: 0 auto; }
.pos-connect h1 { font-size: 24px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pos-connect-card:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: center; padding: 32px; }
.pos-connect-text .pos-steps { margin: 22px 0; }
.pos-connect-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pos-qr { width: 100%; max-width: 300px; aspect-ratio: 1; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.pos-qr svg { display: block; width: 100%; height: 100%; }
.pos-wait { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.pos-wait i { width: 8px; height: 8px; border-radius: 99px; background: var(--primary); animation: pos-wait 1.2s ease-in-out infinite alternate; }
@keyframes pos-wait { to { opacity: .25; } }
.pos-code { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--bg-muted); margin-bottom: 10px; }
.pos-code strong { font-size: 24px; letter-spacing: .08em; user-select: all; }
.pos-connect-done:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 52px 24px; }
.pos-connect-done > p { max-width: 440px; }
.pos-connect-check { width: 84px; height: 84px; border-radius: 99px; display: grid; place-items: center; color: #fff; background: var(--success); animation: pos-check .4s cubic-bezier(.2, 1.4, .4, 1); }
.pos-connect-check.is-off { background: var(--bg-muted); color: var(--text-secondary); }
@media (max-width: 760px) {
    .pos-connect-card:not([hidden]) { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
    .pos-connect-qr { order: -1; }
}

/* Activation dans le navigateur de la tablette */
.pos-activate { display: flex; flex-direction: column; width: 100%; max-width: 520px; margin: auto; }
.pos-activate .pos-btn { width: 100%; max-width: 360px; text-align: center; }
.pos-activate-form { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.pos-activate-form input { width: 100%; max-width: 360px; height: 64px; text-align: center; text-transform: uppercase; letter-spacing: .1em; font: inherit; font-size: 26px; font-weight: 600; color: #0b0d12; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 0 0 1px rgb(9 9 11 / .12); user-select: text; -webkit-user-select: text; }
.pos-activate-form input:focus { outline: 3px solid #2e5bff; }
.pos-activate-error { padding: 12px 18px; border-radius: 14px; background: #fef2f2; color: #b91c1c; max-width: 480px; }
@media (max-height: 620px) { .pos-activate { gap: 10px; } .pos-activate .pos-done-icon { width: 72px; height: 72px; } .pos-activate .pos-done-title { font-size: 24px; } }

/* Choix du mode d'une tablette */
.punch-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.punch-how .mod-card { --tone: var(--primary); --tone-soft: var(--primary-soft); padding: 20px; }
.punch-explain { display: none; margin-top: 14px; padding: 20px; }
.onb-step:has(input[name="posEnabled"][value="1"]:checked) .punch-explain { display: block; }
.punch-explain h2 { font-size: 15px; }
.punch-explain .pos-steps { margin: 14px 0 0; font-size: 14px; }
@media (max-width: 560px) { .punch-how { grid-template-columns: minmax(0, 1fr); } }
.pos-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pos-mode { position: relative; display: flex; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.pos-mode input { position: absolute; opacity: 0; }
.pos-mode .icon { flex: none; margin-top: 2px; color: var(--text-muted); }
.pos-mode:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.pos-mode:has(input:checked) .icon { color: var(--primary); }
.pos-mode:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.pos-mode b { display: block; font-size: 13.5px; font-weight: 600; }
.pos-mode small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
@media (max-width: 460px) { .pos-modes { grid-template-columns: minmax(0, 1fr); } }

/* Tablette en mode QR code (navigateur) */
.pos-scan { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 6vw, 80px); max-width: 1080px; width: 100%; margin: 0 auto; }
.pos-scan h1 { font-size: clamp(30px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }
.pos-scan p { font-size: clamp(15px, 1.8vw, 20px); color: #52525b; max-width: 34ch; margin-top: 14px; }
.pos-scan-code { --side: min(44vw, calc(100dvh - 200px), 460px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pos-scan-canvas { width: var(--side); aspect-ratio: 1; padding: 5%; background: #fff; border-radius: 28px; box-shadow: 0 24px 60px -30px rgb(9 9 11 / .35), 0 0 0 1px rgb(9 9 11 / .06); }
.pos-scan-canvas svg { display: block; width: 100%; height: 100%; }
.pos-scan-code .kiosk-progress { width: var(--side); background: #e4e4e7; }
.pos-scan-code.is-stale .pos-scan-canvas svg { opacity: .08; }
@media (orientation: portrait) { .pos-scan { grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; text-align: center; } .pos-scan p { margin-inline: auto; } .pos-scan-code { --side: min(76vw, 50dvh, 460px); } }
