/* Coque personnalisée — studio en 3 étapes, pensé pour le pouce */
body.perso-page { background: var(--paper); }
.studio { padding: 0 0 80px; }
.studio > .wrap { max-width: 980px; }
.intro-p { background: linear-gradient(135deg, #003b5c, #00a6c8 55%, #36e0c0); color: #fff; margin: 0 calc(50% - 50vw) 0; padding: 128px max(20px, calc(50vw - 490px)) 40px; }
.intro-p h1 { font-size: clamp(40px, 7vw, 84px); line-height: .92; letter-spacing: -.05em; margin: 14px 0 10px; }
.intro-p p { font-size: 18px; max-width: 30em; margin: 0; opacity: .94; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 22px 0 18px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #8a7b6f; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .06); }
.steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .07); font-size: 13px; flex-shrink: 0; }
.steps li.on { color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.steps li.on span { background: var(--ink); color: #fff; }
.steps li.done span { background: #1fbf6a; color: #fff; }
@media (max-width: 520px) { .steps li { flex-direction: column; text-align: center; font-size: 12.5px; padding: 10px 6px; } }

.panel { background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 20px 50px -34px rgb(40 20 0 / .45); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 260px; border: 2.5px dashed rgb(0 0 0 / .18); border-radius: 22px; padding: 28px 18px; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--spring); }
.drop:hover, .drop.over { border-color: #00a6c8; background: #f0fbfd; }
.drop:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
.drop.loading { opacity: .6; pointer-events: none; }
.drop-ic { width: 70px; height: 70px; border-radius: 22px; background: linear-gradient(135deg, #00a6c8, #36e0c0); display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgb(0 140 170 / .7); margin-bottom: 6px; }
.drop-ic svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.drop b { font-size: 20px; }
.drop small { color: #7d6e62; font-size: 14px; max-width: 26em; }
.tips { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 6px; color: #5e5047; font-size: 15px; }
.msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff0f0; color: #b42318; font-weight: 700; font-size: 14.5px; }

/* Cadrage */
.crop-wrap { display: grid; justify-items: center; gap: 12px; }
.crop { position: relative; width: min(64vw, 300px, calc((100svh - 330px) / 2)); min-width: 180px; aspect-ratio: 1 / 2; border-radius: 15% / 7.5%; overflow: hidden; background: #111; touch-action: none; cursor: grab; box-shadow: 0 24px 50px -20px rgb(0 0 0 / .55), inset 0 0 0 3px rgb(255 255 255 / .15); user-select: none; -webkit-user-select: none; }
.crop.drag { cursor: grabbing; }
.crop img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.crop .cam { position: absolute; left: 5.5%; top: 2.8%; width: 39%; aspect-ratio: 1; border-radius: 22%; background: rgb(20 20 24 / .78); border: 1.5px dashed rgb(255 255 255 / .7); display: grid; place-items: center; pointer-events: none; }
.crop .cam span { color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 0 6px; }
.crop .safe { position: absolute; inset: 3%; border-radius: 13% / 6.5%; border: 1px dashed rgb(255 255 255 / .35); pointer-events: none; }
.quality { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 99px; background: #f2f2f2; }
.quality i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.quality.ok { color: #0f8a4a; background: #e6f7ee; }
.quality.moy { color: #9a6b00; background: #fff5d6; }
.quality.bas { color: #c2410c; background: #ffeedd; }
.quality.ko { color: #b42318; background: #ffe7e7; }
.crop-tools { display: grid; gap: 12px; margin-top: 16px; }
.zoom { display: flex; align-items: center; gap: 10px; max-width: 360px; width: 100%; margin: 0 auto; }
.zoom svg { width: 22px; height: 22px; fill: none; stroke: #5e5047; stroke-width: 2.2; flex-shrink: 0; }
.zoom input { flex: 1; accent-color: var(--ink); height: 28px; }
.tb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tool { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgb(0 0 0 / .06); border-radius: 99px; padding: 11px 16px; font-weight: 700; font-size: 14px; min-height: 44px; }
.tool:hover { background: rgb(0 0 0 / .1); }
.tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.actions { display: flex; justify-content: center; margin-top: 18px; }
.actions .btn { min-width: min(100%, 320px); min-height: 56px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Aperçu */
.preview { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.pv-stage { display: grid; place-items: center; min-height: 420px; perspective: 1200px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #e8f8fb, #f6efe4 70%); }
.pv-stage .ph { --w: min(46vw, 200px); }
.pv-stage .ph-in { transform: rotateY(-14deg) rotateX(5deg); transition: transform .4s var(--ease); }
.pv-info { display: grid; gap: 12px; }
.perso-page .pick { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; gap: 2px 10px; border: 1.5px solid rgb(0 0 0 / .14); background: #fff; border-radius: 18px; padding: 13px 16px; min-height: 64px; }
.perso-page .pick:hover { border-color: var(--ink); }
.perso-page .pick-l { font-size: 12px; font-weight: 700; color: #7d6e62; }
.perso-page .pick-v { font-size: 17px; font-weight: 800; grid-row: 2; }
.perso-page .pick:not(.ok) .pick-v { color: #c4223f; }
.perso-page .pick svg { grid-row: 1 / 3; grid-column: 2; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #4e4239; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.check a { color: #c4223f; }
.btn-big { width: 100%; min-height: 60px; font-size: 17px; }
.link { border: 0; background: none; color: #5e5047; font-weight: 700; padding: 8px; justify-self: center; }
.progress { position: relative; height: 44px; border-radius: 14px; background: #eef7f9; overflow: hidden; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #36e0c0, #00a6c8); transition: width .3s; }
.progress span { position: relative; }
@media (max-width: 760px) { .preview { grid-template-columns: 1fr; gap: 16px; } .pv-stage { min-height: 340px; } .panel { padding: 16px; border-radius: 22px; } }

.faq-p { margin-top: 40px; }
.faq-p h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; margin: 0 0 8px; }
.faq-p details { border-bottom: 1.5px solid rgb(0 0 0 / .1); }
.faq-p summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 16.5px; position: relative; }
.faq-p summary::-webkit-details-marker { display: none; }
.faq-p summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; transition: transform .3s var(--spring); }
.faq-p details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-p p { margin: 0 0 18px; color: #5e5047; }
.faq-p a { color: #c4223f; }
