/* 725 Vision — espace client. Même DA que le showroom : Syne, DM Sans, DM Mono, noir #0A0A0A, bleu #2F7BA8, carte claire pour ce qui compte. */
@font-face { font-family: 'Syne'; font-weight: 400 800; font-display: swap; src: url(/showroom/fonts/syne.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 100 1000; font-display: swap; src: url(/showroom/fonts/dmsans.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-display: swap; src: url(/showroom/fonts/dmmono.woff2) format('woff2'); }

:root {
  --ink: #0A0A0A; --white: #FFFFFF; --blue: #2F7BA8; --paper: #F3F2EE;
  --flat: #121212; --flat2: #181818; --hair: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .14);
  --slate: #9AA8BC; --grey: #6b6f76; --ok: #3DDC97;
  --font-display: 'Syne', sans-serif; --font-body: 'DM Sans', sans-serif; --font-mono: 'DM Mono', ui-monospace, monospace;
  --g: clamp(16px, 4vw, 40px); --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.32, .72, 0, 1);
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; min-height: 100dvh; background: var(--ink); color: var(--white); font-family: var(--font-body); line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; border: 0; background: none; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; white-space: nowrap; text-decoration: none; }
.logo span { color: var(--blue); }
.mono { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .26em; text-transform: uppercase; color: var(--slate); }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: .98; margin: 0; text-wrap: balance; }
.muted { color: var(--slate); }
.kicker { display: flex; align-items: center; gap: 18px; margin: 46px 0 18px; }
.kicker::before, .kicker::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* boutons : un seul bouton fort par écran (blanc), le reste discret */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 26px; background: rgba(255, 255, 255, .07); color: var(--white); font-weight: 500; font-size: .9375rem; text-decoration: none; transition: transform .25s var(--spring), background-color .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn.main { background: var(--white); color: var(--ink); }
.btn.blue { background: var(--blue); }
.btn.ghost { background: none; color: var(--slate); padding: 0 12px; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .8125rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.wide { width: 100%; }
.round { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .07); transition: transform .25s var(--spring), background-color .2s; }
.round:active { transform: scale(.9); }

/* en-tête */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--top) + 14px) var(--g) 14px; background: rgba(10, 10, 10, .78); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid var(--hair); }
.top .who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 18px; background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: .875rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--g) calc(var(--bot) + 80px); }

/* connexion */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--top) + 24px) var(--g) calc(var(--bot) + 24px); position: relative; overflow: hidden; }
.gate-bg { position: absolute; inset: 0; z-index: 0; }
.gate-bg video, .gate-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.9); }
.gate-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .55), rgba(10, 10, 10, .92) 70%); }
.gate-card { position: relative; z-index: 1; width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; animation: rise .7s var(--spring) both; }
.gate-card .logo { font-size: 2.25rem; margin-bottom: 26px; }
.gate-card h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); margin-bottom: 6px; }
.gate-card p { margin: 0 0 14px; color: var(--slate); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input, .field textarea, .field select { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-size: 1rem; outline: none; transition: border-color .2s, background-color .2s; -webkit-user-select: text; user-select: text; }
.field textarea { min-height: 110px; padding: 14px 18px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background: rgba(47, 123, 168, .06); }
.pw { position: relative; }
.pw .round { position: absolute; right: 5px; top: 5px; background: none; }
.err { min-height: 1.2em; margin: 0; color: #ff8a8a; font-size: .875rem; }
.link { color: var(--slate); font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; text-align: center; padding: 8px; }

/* accueil */
.hello { padding: 40px 0 6px; }
.hello h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
.hello p { margin: 12px 0 0; color: var(--slate); font-size: 1.0625rem; }
.hero-card { position: relative; display: block; width: 100%; margin-top: 30px; border-radius: 28px; overflow: hidden; background: var(--flat); aspect-ratio: 16 / 9; text-align: left; transition: transform .45s var(--spring); }
.hero-card:active { transform: scale(.985); }
.hero-card img, .hero-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .05) 60%); }
.hero-txt { position: absolute; left: clamp(20px, 4vw, 40px); right: clamp(20px, 4vw, 40px); bottom: clamp(20px, 4vw, 36px); z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.hero-txt h2 { font-size: clamp(1.75rem, 5vw, 3.25rem); }
.hero-txt .mono { color: rgba(255, 255, 255, .8); margin-bottom: 12px; display: block; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--blue); color: var(--white); font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .22em; text-transform: uppercase; }
.badge.paper { background: var(--paper); color: var(--ink); }
.badge.ok { background: rgba(61, 220, 151, .16); color: var(--ok); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
@media (max-width: 700px) { .hero-card { aspect-ratio: 4 / 5; } .hero-txt { flex-direction: column; align-items: flex-start; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--flat); text-align: left; transition: transform .4s var(--spring), background-color .2s; }
.card:active { transform: scale(.97); }
.card .thumb { aspect-ratio: 4 / 3; background: var(--flat2) center / cover no-repeat; position: relative; }
.card .thumb .badge { position: absolute; top: 14px; left: 14px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.card .meta { color: var(--slate); font-size: .8125rem; }
.empty { padding: 60px 24px; border-radius: 28px; background: var(--flat); text-align: center; color: var(--slate); }
.empty h2 { color: var(--white); font-size: 1.75rem; margin-bottom: 10px; }

/* livraison : les étapes du projet */
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps li { display: flex; flex-direction: column; gap: 10px; color: var(--slate); font-size: .75rem; }
.steps li i { display: flex; align-items: center; height: 4px; border-radius: 2px; background: var(--hair); }
.steps li.done i { background: rgba(255, 255, 255, .55); }
.steps li.on i { background: var(--blue); box-shadow: 0 0 18px rgba(47, 123, 168, .55); }
.steps li i svg { display: none; }
.steps li.on, .steps li.done { color: var(--white); }
.steps li.on span { font-weight: 600; }
@media (max-width: 520px) { .steps li span { font-size: .625rem; } }
.gate-bg img { animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.05); } to { transform: scale(1.18) translate(-2%, -1%); } }

/* livraison */
.back { display: inline-flex; align-items: center; gap: 8px; padding: 26px 0 0; color: var(--slate); font-size: .9375rem; text-decoration: none; }
.liv-head { padding: 22px 0 8px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.liv-head h1 { font-size: clamp(2.25rem, 6.5vw, 4rem); }
.liv-head .meta { margin-top: 12px; color: var(--slate); }
.liv-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.player { position: relative; margin-top: 24px; border-radius: 26px; overflow: hidden; background: #000; }
.player video { width: 100%; max-height: 78vh; margin: 0 auto; background: #000; }
.player.vertical video { max-height: 82vh; width: auto; }
.media-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 4px 0; flex-wrap: wrap; }
.media-bar b { font-weight: 500; font-size: 1.0625rem; }
.media-bar .muted { font-size: .8125rem; }

.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 2px 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: 0 0 auto; width: 170px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--slate); font-size: .8125rem; opacity: .6; transition: opacity .2s; }
.strip button[aria-current="true"] { opacity: 1; color: var(--white); }
.strip .t { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--flat2) center / cover no-repeat; position: relative; }
.strip button[aria-current="true"] .t { box-shadow: 0 0 0 2px var(--white); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 600px) { .photos { grid-template-columns: 1fr 1fr; gap: 6px; } .photos button { border-radius: 10px; } }
.photos button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; margin: 0; padding: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(100deg, var(--flat2) 30%, rgba(255,255,255,.09) 50%, var(--flat2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .6s var(--ease); }
.photos img.on { opacity: 1; }
.photos button:has(img.on) { animation: none; background: var(--flat2); }
@media (prefers-reduced-motion: reduce) { .photos button { animation: none; } }
.photos button:hover img { transform: scale(1.02); }

.files { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.file { color: inherit; display: flex; align-items: center; gap: 16px; padding: 18px 2px; border-bottom: 1px solid var(--hair); text-decoration: none; }
.file .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--flat2); display: inline-flex; align-items: center; justify-content: center; }
.file .n { flex: 1; min-width: 0; }
.file .n b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .n span { color: var(--slate); font-size: .8125rem; }

/* validation : la carte claire */
.decide { margin-top: 46px; border-radius: 28px; background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.decide h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.decide p { margin: 10px 0 0; color: var(--grey); }
.decide .acts { display: flex; flex-direction: column; gap: 10px; }
.decide .btn.main { background: var(--ink); color: var(--white); }
.decide .btn { background: rgba(0, 0, 0, .06); color: var(--ink); }
.decide.done { grid-template-columns: 1fr; text-align: center; }
@media (max-width: 760px) { .decide { grid-template-columns: 1fr; } }

/* fil de messages */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: min(560px, 86%); padding: 12px 16px; border-radius: 18px; background: var(--flat2); font-size: .9375rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--blue); }
.msg small { display: block; margin-top: 6px; opacity: .6; font-size: .6875rem; }
.compose { display: flex; gap: 10px; margin-top: 14px; }
.compose textarea { flex: 1; min-height: 52px; max-height: 160px; padding: 15px 18px; border-radius: 26px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); resize: none; outline: none; -webkit-user-select: text; user-select: text; }
.compose textarea:focus { border-color: var(--blue); }

/* visionneuse photo */
.viewer { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; align-items: center; justify-content: center; touch-action: none; animation: fade .25s ease both; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .35s var(--spring); }
.viewer .vt { position: absolute; top: calc(var(--top) + 14px); left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.viewer .nav { position: absolute; top: 50%; margin-top: -22px; z-index: 2; }
.viewer .nav.l { left: 14px; } .viewer .nav.r { right: 14px; }
@media (hover: none) { .viewer .nav { display: none; } }

/* feuille (bas d'écran) */
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55); animation: fade .25s ease both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 92dvh; overflow: auto; background: #151515; border-radius: 28px 28px 0 0; padding: 10px var(--g) calc(var(--bot) + 24px); animation: up .45s var(--spring) both; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: 0 auto 18px; }
.sheet h2 { font-size: 1.75rem; margin-bottom: 8px; }
.sheet form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
@media (min-width: 760px) { .sheet { left: 50%; right: auto; width: 560px; margin-left: -280px; bottom: 50%; transform: translateY(50%); border-radius: 28px; animation: pop .4s var(--spring) both; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--bot) + 24px); z-index: 99; transform: translateX(-50%); text-align: center; padding: 14px 20px; border-radius: 18px; background: var(--paper); color: var(--ink); font-weight: 500; font-size: .9375rem; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: toast .45s var(--spring) both; max-width: calc(100% - 32px); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: currentColor; animation: spin .8s linear infinite; }
.skeleton { background: linear-gradient(90deg, var(--flat) 0, var(--flat2) 50%, var(--flat) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 22px; }
.view { animation: rise .55s var(--spring) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(calc(50% + 20px)) scale(.97); } to { opacity: 1; transform: translateY(50%); } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* admin (Lorenzo) */
.adm-tabs { display: flex; gap: 6px; padding: 18px 0 0; overflow-x: auto; scrollbar-width: none; }
.adm-tabs button { min-height: 40px; padding: 0 18px; border-radius: 20px; color: var(--slate); font-size: .875rem; white-space: nowrap; }
.adm-tabs button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.row { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--hair); text-align: left; width: 100%; color: inherit; text-decoration: none; transition: background-color .2s; }
.row:active { background: rgba(255, 255, 255, .04); }
.row .n span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .n { flex: 1; min-width: 0; }
.row .n b { display: block; font-weight: 500; }
.row .n span { color: var(--slate); font-size: .8125rem; }
.items { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 8px; align-items: center; }
.item input { flex: 1; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); outline: none; -webkit-user-select: text; user-select: text; }
.item select { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #1b1b1b; padding: 0 10px; }
.hint { color: var(--slate); font-size: .8125rem; margin: 0; }
.copy { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-family: var(--font-mono); font-size: .75rem; word-break: break-all; -webkit-user-select: text; user-select: text; }

.switch { -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 52px; height: 32px; border-radius: 16px; background: rgba(255, 255, 255, .14); position: relative; cursor: pointer; transition: background-color .25s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); }
.switch:checked { background: var(--blue); }
.switch:checked::after { transform: translateX(20px); }

.turning svg { animation: spin .8s linear infinite; }
.ptr { position: fixed; top: calc(var(--top) + 10px); left: 50%; z-index: 30; width: 40px; height: 40px; margin-top: -10px; border-radius: 20px; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translate(-50%, 0); pointer-events: none; transition: opacity .2s; }
.top .who { gap: 8px; }

.valbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px var(--g) calc(var(--bot) + 12px); background: linear-gradient(0deg, rgba(10, 10, 10, .96) 60%, rgba(10, 10, 10, 0)); animation: up .5s var(--spring) both; }
.valbar .btn { max-width: 520px; margin: 0 auto; display: flex; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

.notice { margin-top: 24px; display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 22px; background: var(--flat); animation: rise .6s var(--spring) both; }
.notice .ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.notice b { font-weight: 600; font-size: 1.0625rem; }
.notice p { margin: 4px 0 0; color: var(--slate); font-size: .9375rem; }

/* Logo 725 Vision : un ovale acier dans le creux du « o » (même forme que le creux, à 50 %). */
.logo span.o, .site-header .logo span.o, .splash .logo span.o { position: relative; display: inline; color: inherit; transform: none; animation: none; transition: none; }
.logo span.o::after { content: ""; position: absolute; left: .5077em; top: .6797em; width: .2275em; height: .1145em; margin: -.0573em 0 0 -.1138em; border-radius: 50%; background: var(--blue); transition: transform .45s var(--spring, ease); }
.site-header .logo:hover span.o::after { transform: scaleY(.2); }
/* Menu de téléchargement et enregistrement dans Photos */
.sheet .mono.sec { display: block; margin: 20px 0 4px; }
.prog { height: 4px; border-radius: 2px; background: var(--hair); overflow: hidden; margin: 16px 0 18px; }
.prog i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s ease; }
.btn.big { min-height: 60px; font-size: 1.0625rem; }
