:root{--paper:#f7f9fc;--ink:#002b49;--muted:#526579;--line:#d6dee8;--accent:#002b49;--soft:#eaf0f7;--white:#fff;--radius:18px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6}a{color:inherit;text-underline-offset:4px}button,input,select{font:inherit}button,a,input,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #002b49;outline-offset:5px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.12;letter-spacing:-.045em;font-weight:600}h1{font-size:clamp(42px,6.4vw,78px)}h2{font-size:clamp(30px,4vw,42px)}h3{font-size:22px;letter-spacing:-.025em}p+p{margin-top:12px}.site-header{max-width:1160px;margin:auto;padding:30px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.04em;font-size:20px;text-decoration:none}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:var(--ink);color:white;border-radius:10px;font-size:25px}.nav-link{font-size:14px;text-decoration:none}.notice{display:flex;justify-content:center;align-items:center;gap:9px;border-block:1px solid var(--line);padding:10px 20px;font-size:12px;color:#2c3e50;background:#edf2f8}.status-dot{height:6px;width:6px;border-radius:50%;background:#ee2737;flex-shrink:0}main{max-width:1104px;margin:auto;padding:64px 28px 80px;min-height:65vh}main:focus{outline:none}.eyebrow{font-size:12px;font-weight:650;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:22px}.hero{display:grid;grid-template-columns:1.25fr .75fr;gap:60px;align-items:center}.hero h1{max-width:670px}.hero h1 em{font-style:normal;color:#ee2737}.lead{font-size:18px;color:var(--muted);max-width:560px;margin:26px 0 30px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:25px;border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:10px;padding:14px 23px;min-height:50px;text-decoration:none;font-weight:600;font-size:15px}.btn.secondary{background:transparent;color:var(--ink);border-color:var(--line)}.btn.text{border:0;background:transparent;color:var(--muted);padding-inline:0}.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.micro{font-size:13px;color:var(--muted);margin-top:16px}.illustration{border:1px solid var(--line);background:var(--soft);border-radius:120px 120px 22px 22px;padding:60px 32px 32px;min-height:380px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;position:relative}.ballot{width:200px;background:var(--white);border:1px solid #d6dee8;box-shadow:0 14px 22px #002b4914;border-radius:10px;padding:27px;transform:rotate(-7deg)}.ballot-line{display:flex;gap:13px;margin:16px 0;align-items:center}.ballot-box{width:24px;height:24px;border:1.5px solid #788ca2;border-radius:5px;display:grid;place-items:center}.ballot-stroke{height:5px;background:#d6dee8;width:86px;border-radius:3px}.illustration small{font-size:12px;letter-spacing:.08em;margin-top:15px}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;border-top:1px solid var(--line);margin-top:64px;padding-top:30px}.features .num{font-size:12px;color:var(--muted);margin-bottom:13px}.features h3{font-size:18px;letter-spacing:-.02em}.features p{font-size:14px;color:var(--muted);margin-top:10px}.editor-note{margin-top:36px;padding:20px 24px;border:1px solid var(--line);border-radius:12px;font-size:14px;color:var(--muted)}.editor-note strong{color:var(--ink)}footer{max-width:1104px;margin:auto;padding:25px 28px 30px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:18px}footer p+p{margin:0}.quiz{max-width:740px;margin:auto}.progress-meta{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:10px}.progress{height:4px;background:var(--line);border-radius:4px;margin-bottom:40px;overflow:hidden}.progress span{display:block;height:100%;background:var(--accent)}.quiz h1{font-size:clamp(29px,4.3vw,42px);line-height:1.2;letter-spacing:-.035em}.hint{color:var(--muted);font-size:14px;margin-top:16px;margin-bottom:26px}fieldset{padding:0;margin:0;border:0;min-width:0}legend{font-size:14px;font-weight:600;margin-bottom:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.options{display:grid;gap:10px}.option{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:12px;background:var(--white);padding:16px 18px;min-height:62px;cursor:pointer;font-size:15px}.option:has(input:checked){border-color:var(--accent);background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent)}.option:hover{border-color:#788ca2}.option input{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0;margin:0}.importance{margin-top:28px}.weight-options{display:flex;gap:9px;flex-wrap:wrap}.weight{cursor:pointer;display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid var(--line);border-radius:8px;font-size:13px}.weight:has(input:checked){background:var(--soft);border-color:var(--accent)}.weight input{accent-color:var(--accent)}.quiz-nav{margin-top:32px;display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:24px}.skip{position:absolute;top:-100px;left:15px;background:white;padding:12px;z-index:10}.skip:focus{top:10px}.page-head{max-width:760px;margin-bottom:32px}.page-head h1{font-size:clamp(36px,5vw,56px)}.page-head p{color:var(--muted);margin-top:20px}.result-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:26px}.panel h2{font-size:23px;letter-spacing:-.025em;margin-bottom:20px}.rank-row{padding:20px 0;border-top:1px solid var(--line)}.rank-top{display:flex;gap:14px;align-items:center}.rank-number{font-size:13px;color:var(--muted);width:24px}.party-label{flex:1}.party-label strong{font-size:19px}.party-label small{font-size:12px;color:var(--muted);display:block}.percent{font-size:30px;letter-spacing:-.06em;font-weight:600}.percent small{font-size:16px;margin-left:3px}.meter{height:5px;background:#edf2f8;border-radius:5px;margin:12px 0 0 38px;overflow:hidden}.meter span{height:100%;display:block;background:#002b49}.score-context{font-size:13px;color:var(--muted);margin-bottom:20px}.insight{border-top:1px solid var(--line);padding:17px 0}.insight p{font-size:13px;color:var(--muted);margin-top:7px}.tag{font-size:11px;text-transform:uppercase;letter-spacing:.07em;font-weight:600;color:var(--muted)}select{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);margin-bottom:24px}.results-actions{margin-top:25px}.details{margin-top:30px}.details>summary{cursor:pointer;font-size:20px;letter-spacing:-.03em;font-weight:600;padding:20px 0;border-top:1px solid var(--line)}.detail-card{padding:20px 0;border-top:1px solid var(--line)}.detail-card p{font-size:14px;margin-top:9px;color:var(--muted)}.detail-card h3{font-size:18px}.method{max-width:800px;margin:auto}.method section{padding:28px 0;border-top:1px solid var(--line)}.method h2{font-size:26px;margin-bottom:18px}.method p,.method li{color:var(--muted);font-size:15px}.method li{margin:9px 0}.formula{padding:18px;background:var(--soft);border-radius:10px;font-size:15px;margin:18px 0}.source-list{display:grid;gap:10px}.source-item{border:1px solid var(--line);border-radius:10px;padding:15px}.source-item a{font-weight:600}.source-item p{font-size:13px;margin-top:4px}.empty{padding:26px;background:var(--soft);border-radius:var(--radius);margin-bottom:24px}.extra{margin-top:28px;border:1px dashed #b9c8d8;border-radius:14px;padding:22px}.extra h3{font-size:19px}.extra p{font-size:14px;color:var(--muted);margin:8px 0 15px}.answer-row{padding:15px 0;display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line)}.answer-row p{font-size:13px;color:var(--muted)}.answer-row button{flex-shrink:0}dialog{max-width:440px;border:1px solid var(--line);border-radius:18px;padding:28px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#002b49cc}dialog h2{font-size:28px}dialog p{margin:16px 0 24px;font-size:15px;color:var(--muted)}@media(max-width:760px){.site-header{padding:20px}.brand{font-size:17px}.brand-mark{width:29px;height:29px;font-size:22px}.nav-link{font-size:12px}.notice{font-size:11px}main{padding:38px 20px 55px}.hero{grid-template-columns:1fr;gap:30px}.illustration{display:none}.hero h1{font-size:54px}.lead{font-size:17px}.features{grid-template-columns:1fr;gap:24px;margin-top:40px}.features>div{display:grid;grid-template-columns:25px 1fr;column-gap:15px}.features p{grid-column:2;margin-top:6px}.features .num{margin-top:3px}.result-grid{grid-template-columns:1fr}.panel{padding:22px}.quiz .eyebrow{margin-bottom:15px}.progress{margin-bottom:28px}.option{padding:14px}.weight{padding:9px 11px}.quiz-nav .btn{padding:12px 18px;gap:12px}footer{display:block;padding:24px 20px}footer p+p{margin-top:7px}.editor-note{padding:18px}.hero .actions .btn{width:100%}.answer-row{align-items:start}}@media(prefers-reduced-motion:no-preference){.btn,.option{transition:background .15s,border-color .15s}.meter span{transition:width .3s}}@media print{.site-header,.notice,footer,.results-actions,.extra,.btn{display:none}main{max-width:100%;padding:0}.result-grid{display:block}.panel{break-inside:avoid;margin-bottom:15px}body{background:white}}

/* Palette WikiJeff : marine #002B49, rouge #EE2737, texte #2C3E50. */
:root{--brand-red:#ee2737;--body-text:#2c3e50}
.lead,.hint{color:var(--body-text)}
.brand-mark{border-bottom:3px solid var(--brand-red)}
.ballot-box{color:var(--brand-red)}
.progress span{background:var(--brand-red)}
.btn:not(.secondary):not(.text):hover{background:#163d63;border-color:#163d63}

/* Palette officielle fournie : Pantone 1788 C / 631 C / 7463 C. */
:root{--brand-turquoise:#3eb1c8;--soft:#edf7f9}
.illustration{background:#e6f5f8;border-color:#c9e7ed}
.ballot-box{border-color:var(--brand-turquoise)}
.ballot-stroke{background:#b9e3eb}
.progress span{background:var(--brand-turquoise)}
.option:has(input:checked){background:#edf7f9}
.meter span{background:var(--brand-turquoise)}

/* Accents rouges et logos réservés aux résultats. */
.btn:not(.secondary):not(.text){background:#ee2737;border-color:#ee2737;color:#fff;font-size:18px;font-weight:700}
.btn:not(.secondary):not(.text):hover{background:#cb1726;border-color:#cb1726}
.brand-mark{background:#ee2737;border-bottom-color:#ee2737}
.progress span{background:#ee2737}
.features .num{color:#c82030;font-weight:700}
.panel{border-top:3px solid #ee2737}
.results-actions{border-top:1px solid #f4cbd0;padding-top:24px}
.party-logo{width:88px;height:52px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.party-logo img{width:100%;height:100%;object-fit:contain}
.party-label{min-width:0}
.rank-top{gap:12px}
.explored-logo{width:110px;height:60px;object-fit:contain;object-position:left center;margin-bottom:14px}
@media(max-width:520px){.rank-top{gap:9px}.party-logo{width:62px;height:46px}.rank-number{width:18px}.party-label small{font-size:11px}.party-label strong{font-size:17px}.percent{font-size:26px}.panel{padding:18px}.btn:not(.secondary):not(.text){font-size:18px}}

.party-logo:has(img[src$="pcq.svg"]){background:#002b49;border-radius:6px;padding:5px}
.explored-logo[src$="pcq.svg"]{background:#002b49;border-radius:6px;padding:7px}

/* Visuel d’accueil : cinq partis présentés à égalité. */
.party-visual{padding:30px;background:#e6f5f8;border:1px solid #c9e7ed;border-top:4px solid #ee2737;border-radius:22px}
.party-visual .eyebrow{font-size:11px;margin-bottom:15px}
.party-visual h2{font-size:29px;line-height:1.15;margin-bottom:24px}
.party-mosaic{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.party-tile{min-width:0;background:white;border:1px solid #d6dee8;border-radius:12px;padding:12px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.home-logo{width:100%;height:65px;display:flex;align-items:center;justify-content:center;padding:5px;border-radius:7px}
.home-logo img{width:100%;height:100%;object-fit:contain}
.home-logo.on-navy{background:#002b49}
.party-tile>span:last-child{font-size:12px;font-weight:700;letter-spacing:.04em}
.your-choice{background:#ee2737;border-color:#ee2737;color:white}
.your-choice>span:first-child{font-size:47px;height:65px;line-height:65px;font-weight:700}
.party-visual>p{font-size:11px;text-align:center;margin-top:20px;color:#526579}
.party-visual>small{display:block;text-align:center;text-transform:uppercase;font-size:10px;letter-spacing:.12em;margin-top:5px}
@media(max-width:760px){.party-visual{padding:24px}.party-mosaic{grid-template-columns:repeat(3,minmax(0,1fr))}.home-logo{height:55px}.your-choice>span:first-child{height:55px;line-height:55px}.party-visual h2{font-size:27px}}

/* Le v de vote devient une coche dans une case. */
.brand-wordmark{display:inline-flex;align-items:center;gap:.27em;white-space:nowrap;font-size:23px;letter-spacing:-.055em;font-weight:750;line-height:1.2}
.brand-vote{display:inline-flex;align-items:center;gap:1px}
.vote-check{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border:2px solid #ee2737;border-radius:6px;transform:translateY(1px);margin-right:1px;background:#fff}
.vote-check svg{width:27px;height:27px;overflow:visible;flex-shrink:0}
.vote-check path{fill:none;stroke:#ee2737;stroke-width:3.3;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:520px){.brand-wordmark{font-size:19px}.vote-check{width:22px;height:22px;border-radius:5px}.vote-check svg{width:24px;height:24px}}

footer{max-width:none;background:#07111c;color:#a5b2c1;padding:30px max(28px,calc((100% - 1048px)/2));align-items:center;gap:30px;border-top:3px solid #ee2737}
.footer-notes p+p{margin-top:6px}
.studio-signature{display:inline-flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0;padding:5px 0}
.studio-signature svg{width:42px;height:42px;flex-shrink:0}
.studio-credit{display:block;color:#a5b2c1;font-size:12px;letter-spacing:.04em;line-height:1.4}
.studio-name{display:block;color:#c4ced9;font-size:17px;font-weight:600;line-height:1.35}
.studio-signature:hover .studio-name{color:white}
@media(max-width:760px){footer{padding:26px 20px}.studio-signature{margin-top:22px}}

.option:has(input:checked){border-color:#ee2737;background:#fff0f2;box-shadow:inset 0 0 0 1px #ee2737}
.option input,.weight input{accent-color:#ee2737}
.weight:has(input:checked){background:#fff0f2;border-color:#ee2737;box-shadow:inset 0 0 0 1px #ee2737}

footer{max-width:1104px;margin:auto;background:transparent;color:var(--muted);padding:25px 28px 30px;border-top:1px solid var(--line);align-items:center;gap:24px;flex-wrap:wrap}
.studio-signature{gap:10px}
.studio-signature svg{width:32px;height:32px}
.studio-credit{color:#596b7b;font-size:11px;letter-spacing:.02em}
.studio-name{color:#002b49;font-size:15px;font-weight:600}
.studio-signature:hover .studio-name{color:#c82030}
@media(max-width:760px){footer{padding:24px 20px}.studio-signature{margin-top:18px}}
