:root{color-scheme:light;--ink:#102441;--navy:#071c42;--red:#d90023;--line:#dfe5ed;--gold:#b89049}*{box-sizing:border-box}body{margin:0;background:#f5f6f8;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}body::before{content:"";display:block;height:5px;background:linear-gradient(90deg,#071c42 33.333%,#fff 33.333% 66.666%,#d90023 66.666%)}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b89049;outline-offset:4px}[hidden]{display:none!important}header{max-width:1220px;margin:auto;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;gap:18px}.wordmark{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-size:11px;font-weight:850;letter-spacing:.12em}.wordmark small{display:block;font-size:11px;font-weight:450;letter-spacing:0;color:#637185;margin-top:3px}.mark{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#e3c681;font-family:Georgia,serif;font-size:24px;letter-spacing:-2px;font-weight:600;border:2px solid #b89049}.edition{font-size:10px;letter-spacing:.17em;color:#637185;font-weight:750}main{max-width:1220px;margin:auto;padding:40px 32px 36px}.intro{position:relative;margin-bottom:50px}.eyebrow{font-size:11px;font-weight:850;letter-spacing:.18em;color:#8c6a31;margin:0 0 14px}h1{font-size:clamp(43px,6vw,76px);line-height:1.02;letter-spacing:-.055em;margin:0 0 22px;font-weight:850}h2{font-size:23px;letter-spacing:-.035em;line-height:1.2;margin:0}.lead{max-width:510px;font-size:17px;color:#637185;margin:0}.steps{padding:0;margin:30px 0 0;list-style:none;display:flex;gap:30px;font-size:12px;font-weight:650}.steps span{color:var(--gold);font-size:10px;letter-spacing:.06em;display:block;margin-bottom:2px}.deadline{display:inline-block;font-size:12px;background:white;border:1px solid var(--line);padding:8px 12px;border-radius:10px;margin-top:18px}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:24px}.section-heading>span{font-size:12px;color:#637185}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.proposal{background:white;border:2px solid transparent;border-radius:20px;overflow:hidden;box-shadow:0 4px 15px #10244106;position:relative}.proposal.selected{border-color:var(--navy);box-shadow:0 7px 25px #10244117}.proposal-image{display:block;width:100%;padding:18px;background:#edf0f4;border:0;position:relative;aspect-ratio:1;overflow:hidden}.proposal-image img{display:block;width:100%;height:100%;object-fit:contain}.zoom-label{position:absolute;right:12px;bottom:12px;font-size:10px;border-radius:100px;padding:5px 9px;background:#fffffff0;color:#24334b}.proposal-bottom{padding:17px;display:flex;align-items:center;justify-content:space-between;gap:10px}.proposal-bottom strong{font-size:14px}.choose{min-height:44px;padding:9px 12px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:12px;font-weight:750}.selected .choose{background:var(--navy);border-color:var(--navy);color:white}.state{padding:40px 24px;text-align:center;border:1px dashed #c5ceda;border-radius:18px;color:#637185}.state.error{color:#a4192c}.saved{background:#e7f0e9;color:#204c30;border-radius:14px;padding:16px 18px;font-size:14px}.vote-bar{position:fixed;bottom:0;left:0;right:0;background:#fffffff5;backdrop-filter:blur(18px);padding:16px max(24px,calc((100vw - 1156px)/2)) calc(16px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);z-index:5}.vote-bar small{display:block;font-size:9px;font-weight:750;letter-spacing:.12em;color:#637185;margin-bottom:3px}.vote-bar strong{font-size:14px}#start-vote,#submit-vote,#retry{min-height:48px;border:0;border-radius:13px;background:var(--navy);color:white;font-size:14px;font-weight:750;padding:12px 26px}#start-vote{display:flex;gap:40px;align-items:center}button:disabled{opacity:.4;cursor:default}footer{max-width:1220px;margin:auto;padding:25px 32px 120px;color:#637185;font-size:11px;border-top:1px solid var(--line)}dialog{border:1px solid var(--line);border-radius:24px;padding:32px;width:calc(100% - 32px);max-width:440px;color:var(--ink);max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 25px 100px #071c4240}dialog::backdrop{background:#071c4280;backdrop-filter:blur(5px)}dialog h2{padding-right:30px}dialog label{display:block;font-size:13px;font-weight:700;margin-top:16px}dialog input{display:block;width:100%;padding:12px 14px;margin-top:6px;border:1px solid #c8d1de;border-radius:12px;font-size:16px;background:#f8f9fb}.close{position:absolute;top:14px;right:14px;width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:50%;font-size:24px;color:var(--ink);line-height:1}.chosen-name{color:#637185;font-size:14px;margin-top:12px}.privacy{font-size:11px;color:#637185;margin-top:18px}#submit-vote{width:100%;margin-top:10px}.form-error{font-size:13px;color:#a4192c;background:#fff0f1;border-radius:10px;padding:12px}#preview{max-width:800px;padding:48px 20px 16px}#preview img{display:block;max-width:100%;max-height:70dvh;margin:auto;object-fit:contain}#preview p{text-align:center;font-size:13px}@media(min-width:950px){.steps{position:absolute;right:0;bottom:4px;gap:35px}}@media(max-width:760px){header{padding:20px}.edition{display:none}main{padding:26px 20px}.intro{margin-bottom:35px}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.proposal{border-radius:16px}.proposal-image{padding:12px}.proposal-bottom{padding:12px;display:block}.proposal-bottom strong{display:block;font-size:13px;margin-bottom:10px}.choose{width:100%}h2{font-size:21px}.vote-bar{padding-left:20px;padding-right:20px;gap:10px}#start-vote{gap:20px;padding:12px 20px}.vote-bar strong{font-size:12px}footer{padding-left:20px;padding-right:20px}dialog{padding:28px 22px}}@media(prefers-reduced-motion:no-preference){.proposal{transition:box-shadow .15s,border-color .15s}.choose:active,#start-vote:active{transform:scale(.98)}}

.identity-help{font-size:13px;color:#637185}.identity-help+p{margin-top:8px}#participant-status{font-size:12px;color:#637185;margin:12px 0}#participant-results{display:grid;gap:6px;max-height:190px;overflow:auto}#participant-results button{display:block;min-height:44px;width:100%;padding:10px 13px;border:1px solid var(--line);border-radius:11px;background:#f8f9fb;color:var(--ink);text-align:left;font-size:14px}#participant-results button:hover,#participant-results button:focus-visible{border-color:var(--navy);background:#edf1f8}#participant-selected{font-size:13px;font-weight:700;padding:12px;border-radius:12px;background:#e7f0e9;color:#204c30}#identity:focus-within{scroll-padding-bottom:20px}

@media(max-width:760px){#identity{position:fixed;top:calc(var(--vote-visible-top,0px) + max(16px,env(safe-area-inset-top,0px)));bottom:auto;margin:0 auto;max-height:calc(var(--vote-visible-height,100dvh) - max(16px,env(safe-area-inset-top,0px)) - 16px)}}

/* Entrée indépendante du portail, adaptée aux zones sûres iPhone. */
.crests{display:inline-flex;align-items:center;gap:9px;flex-shrink:0}.crests img{width:52px;height:52px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 3px 6px #071c4225)}.crest-divider{font-size:24px;font-weight:300;color:#a0aaba;letter-spacing:0}.wordmark{letter-spacing:.08em}.entry-loader{position:fixed;inset:0;z-index:100;background:var(--navy);color:white;display:grid;place-items:center;text-align:center;padding:24px}.entry-loader .crests{gap:20px}.entry-loader .crests img{width:90px;height:90px;filter:drop-shadow(0 10px 25px #0006)}.entry-loader .crest-divider{color:#d9e1ef;font-size:36px}.entry-loader p{font-size:11px;letter-spacing:.2em;font-weight:800;margin:28px 0 20px}.loading-line{display:block;width:90px;height:3px;border-radius:3px;margin:0 auto 16px;background:linear-gradient(90deg,#6086d2 33%,#fff 33% 66%,#e32040 66%);transform-origin:left}.loader-caption{font-size:12px;color:#b4c2d8}.access-gate{min-height:calc(100svh - 135px);display:grid;place-items:center;padding-top:24px;padding-bottom:max(36px,env(safe-area-inset-bottom,0px))}.access-card{width:100%;max-width:490px;padding:38px;background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 18px 60px #071c4209}.access-card h1{font-size:clamp(32px,5vw,44px);line-height:1.1;letter-spacing:-.04em;margin-bottom:16px}.access-lead{font-size:15px;color:#637185;margin:0 0 26px}.access-card label{display:block;font-size:13px;font-weight:750;margin-bottom:8px}.access-card input{width:100%;min-height:54px;border:1px solid #c8d1de;background:#f8f9fb;border-radius:13px;padding:12px 15px;font-size:18px;letter-spacing:.12em;color:var(--ink)}#access-hint,.access-note{font-size:12px;color:#637185}#access-hint{margin:10px 0 22px}#access-submit{width:100%;min-height:52px;border:0;border-radius:13px;background:var(--navy);color:#fff;font-weight:750;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 19px}.access-note{margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line)}body.access-pending{overflow:hidden}
@media(max-width:420px){header{padding:18px 16px}.wordmark{font-size:9px;gap:10px}.wordmark small{font-size:10px;max-width:150px}.crests{gap:6px}.crests img{width:42px;height:42px}.crest-divider{font-size:19px}.access-gate{padding:18px 16px 32px;min-height:calc(100svh - 105px)}.access-card{padding:26px 22px;border-radius:22px}.entry-loader .crests img{width:78px;height:78px}}
@media(prefers-reduced-motion:no-preference){.entry-loader .crests img{animation:crest-arrive .65s ease-out both,crest-breathe 2s .65s ease-in-out infinite alternate}.entry-loader .crests img:last-child{animation-delay:.1s,.75s}.loading-line{animation:loader-pulse 1s ease-in-out infinite alternate}.access-card{animation:crest-arrive .3s ease-out both}@keyframes crest-arrive{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes crest-breathe{to{transform:translateY(-4px);filter:drop-shadow(0 14px 24px #0008)}}@keyframes loader-pulse{from{opacity:.35;transform:scaleX(.6)}to{opacity:1;transform:scaleX(1)}}}

.demo-banner{margin:8px auto 0;max-width:1156px;padding:14px 20px;background:#fff3d9;border:1px solid #e6d3a8;border-radius:12px;color:#614818;font-size:13px;font-weight:650}@media(max-width:760px){.demo-banner{margin:8px 16px 0}}

/* Découpes de la planche source : chaque proposition conserve ses pixels. */
.proposal-image{display:grid;place-items:center}.artwork{position:relative;overflow:hidden;width:100%;aspect-ratio:var(--art-ratio,1)}.artwork img,#preview .artwork img{display:block;position:absolute;max-width:none;max-height:none;object-fit:fill;margin:0}.preview-art{width:min(100%,65dvh);margin:auto}#preview{overflow:auto}

.proposal-image .artwork{width:var(--art-width,100%)}
