/* =========================================================
   QUIZ WEB « Quel candidat es-tu ? » — pages /quiz-presidentielle-2027
   ========================================================= */
:root {
  --navy: #0d1433; --navy2: #17245c; --ink: #141a3d; --dim: #59618a; --line: rgba(20, 30, 80, .12);
  --bg: #f3f5fb; --card: #fff; --blue: #2f6bff; --red: #ec2f3f; --gold: #ffd23f; --green: #22a85a;
  --r: 18px; --shadow: 0 10px 30px rgba(15, 25, 70, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; }
a { color: var(--blue); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 18px; }

/* ----- en-tête ----- */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: #fff; text-decoration: none; font: 700 clamp(12px, 3.6vw, 16px)/1 Silkscreen, Inter, sans-serif; letter-spacing: .3px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { color: #ff6b81; }
.top-cta { padding: 9px 14px; border-radius: 99px; background: #fff; color: var(--navy); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }

/* ----- héros ----- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(120% 90% at 85% -10%, rgba(236, 47, 63, .35), transparent 55%),
  radial-gradient(120% 90% at 0% 110%, rgba(47, 107, 255, .45), transparent 55%), linear-gradient(160deg, var(--navy), var(--navy2)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #2f6bff 33%, #fff 33% 66%, #ec2f3f 66%); }
.hero .wrap { padding-top: 34px; padding-bottom: 40px; }
.crumbs { font-size: 12.5px; color: rgba(255, 255, 255, .65); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 6.4vw, 52px); line-height: 1.05; font-weight: 900; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin: 0 0 22px; font-size: clamp(16px, 2.6vw, 19px); color: rgba(255, 255, 255, .86); max-width: 640px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.badges li { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 16px; border: 0; cursor: pointer;
  font: 900 17px Inter, sans-serif; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translateY(2px); }
.btn-go { background: linear-gradient(180deg, #ff5a6a, var(--red)); color: #fff; box-shadow: 0 6px 0 #a5121f, 0 14px 30px rgba(236, 47, 63, .35); }
.btn-go:active { box-shadow: 0 3px 0 #a5121f; }
.btn-blue { background: linear-gradient(180deg, #4a82ff, var(--blue)); color: #fff; box-shadow: 0 5px 0 #1c47c9; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.live { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .8); min-height: 1.4em; }
.live b { color: var(--gold); }
.live .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 6px; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); vertical-align: 1px; }

/* ----- quiz ----- */
.quiz-zone { padding: 26px 0 10px; }
.qcard { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 22px 20px 20px; max-width: 640px; margin: 0 auto; }
.qcard[hidden] { display: none; }
.qtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 800; color: var(--dim); }
.qback { border: 0; background: none; color: var(--dim); font: 800 13px Inter, sans-serif; cursor: pointer; padding: 6px 0; }
.qback:disabled { opacity: .3; cursor: default; }
.qbar { height: 8px; border-radius: 99px; background: #e8ebf5; overflow: hidden; margin: 10px 0 22px; }
.qbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2f6bff, #8e5cd0, #ec2f3f); transition: width .3s; }
.qtheme { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #eef2ff; color: var(--blue); font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.qemoji { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.qtext { margin: 0 0 20px; font-size: clamp(20px, 4.6vw, 26px); line-height: 1.25; font-weight: 900; letter-spacing: -.3px; min-height: 2.5em; }
.qans { display: grid; gap: 10px; }
.qa { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer;
  font: 800 16px Inter, sans-serif; color: var(--ink); text-align: left; transition: transform .1s, border-color .12s, background .12s; }
.qa:hover { border-color: #b9c4ea; }
.qa:active { transform: scale(.985); }
.qa .sw { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; }
.qa.a2 .sw { color: #1f9d55; background: #1f9d55; } .qa.a1 .sw { color: #4ade80; }
.qa.d1 .sw { color: #ff8a8a; } .qa.d2 .sw { color: #d64545; background: #d64545; }
.qa.on { border-color: var(--blue); background: #eef3ff; }
.qskip { margin-top: 12px; width: 100%; padding: 10px; border: 0; background: none; color: var(--dim); font: 700 14px Inter, sans-serif; cursor: pointer; text-decoration: underline; }
.qhint { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--dim); }
.qcard.fade .qbody { opacity: 0; transform: translateX(-14px); }
.qbody { transition: opacity .16s, transform .16s; }
.vsnote { max-width: 640px; margin: 0 auto 14px; padding: 12px 16px; border-radius: 14px; background: #fff7d6; border: 1px solid #f2d36b; font-size: 14px; font-weight: 700; }

/* ----- résultat ----- */
.result { padding: 10px 0 30px; }
.result[hidden] { display: none; }
.rgrid { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.rcard { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; }
.rcard h3 { margin: 0 0 12px; font-size: 19px; font-weight: 900; }
.rhero { --pc: #2f6bff; position: relative; overflow: hidden; color: #fff; text-align: center; padding: 26px 20px 22px;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--pc) 70%, #fff 0%), var(--pc) 45%, color-mix(in srgb, var(--pc) 55%, #000) 100%); }
.rkick { font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.remoji { font-size: 64px; line-height: 1.1; margin: 8px 0 2px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.rname { margin: 0; font-size: clamp(30px, 7vw, 42px); font-weight: 900; letter-spacing: -1px; line-height: 1.05; }
.rtag { margin: 6px 0 14px; font-size: 16px; font-weight: 700; opacity: .92; }
.rintro { margin: 0 auto; max-width: 560px; font-size: 15px; line-height: 1.55; opacity: .95; }
.rvals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.rvals li { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 800; }
.rnext { margin-top: 14px; font-size: 13px; opacity: .85; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
.compat { text-align: center; font-size: 17px; font-weight: 900; }
.compat b { font-size: 30px; color: var(--blue); display: block; }

.compass { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.compass .lbl { font: 800 10px Inter, sans-serif; fill: #59618a; }
.compass .plab { font: 800 10.5px Inter, sans-serif; }
.compass .you { animation: pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--dim); font-weight: 700; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.gauge { margin-top: 18px; }
.gauge-t { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--dim); }
.gauge-b { position: relative; height: 12px; margin-top: 6px; border-radius: 99px; background: linear-gradient(90deg, #8e5cd0, #e8ebf5 50%, #2f6bff); }
.gauge-b i { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }
.cand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cand .ck { font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
.cand img, .cand .ph { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; object-position: top; background: #e8ebf5; box-shadow: 0 0 0 4px var(--cc, #2f6bff); }
.cand .cn { font-size: 18px; font-weight: 900; }
.cand .cp { font-size: 14px; font-weight: 800; color: var(--dim); }
.cand .cp b { color: var(--ink); }
.cand .btn { margin-top: 6px; padding: 12px 16px; font-size: 14px; width: 100%; }
.cnote { margin: 12px 0 0; font-size: 12px; color: var(--dim); text-align: center; }

.bars { display: grid; gap: 7px; margin: 10px 0 0; }
.bar { display: grid; grid-template-columns: 30px 1fr 46px; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.bar .bt { position: relative; height: 26px; border-radius: 8px; background: #eef1f9; overflow: hidden; }
.bar .bt i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; opacity: .85; }
.bar .bt span { position: relative; z-index: 1; display: block; padding: 4px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.me .bt { box-shadow: inset 0 0 0 2px var(--ink); }
.bar .bp { text-align: right; }
.split { margin-top: 16px; padding: 14px; border-radius: 14px; background: #f6f7fc; }
.split p { margin: 0 0 8px; font-weight: 800; }
.split .sb { display: flex; height: 26px; border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 900; color: #fff; }
.split .sb span { display: flex; align-items: center; justify-content: center; }
.statnote { font-size: 15px; font-weight: 700; margin: 0; }
.statnote b { color: var(--blue); }

.share { display: flex; flex-wrap: wrap; gap: 10px; }
.share a, .share button { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; border: 0;
  font: 800 14px Inter, sans-serif; text-decoration: none; cursor: pointer; color: #fff; }
.sh-native { background: var(--ink); } .sh-x { background: #111; } .sh-wa { background: #25d366; } .sh-fb { background: #1877f2; } .sh-copy { background: #eef1f9; color: var(--ink) !important; }

/* ----- encart jeu (sortie du quiz) ----- */
.game { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: center; border-radius: 26px; padding: 26px 22px; color: #fff;
  background: radial-gradient(100% 120% at 100% 0%, rgba(236, 47, 63, .45), transparent 60%), linear-gradient(150deg, #0d1433, #233a9a); box-shadow: 0 18px 50px rgba(13, 20, 51, .35); }
@media (max-width: 620px) { .game { grid-template-columns: 1fr; } .game .gph { max-width: 210px; margin: 0 auto; } }
.gk { font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.game h2, .game h3 { margin: 6px 0 10px; font-size: clamp(24px, 5.4vw, 34px); line-height: 1.08; font-weight: 900; letter-spacing: -.6px; }
.game p { margin: 0 0 14px; color: rgba(255, 255, 255, .88); }
.game ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 7px; font-weight: 700; font-size: 15px; }
.gbtns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gstores { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.gstores a { color: #fff; font-weight: 800; }
/* textes clairs dans l'encart, même à l'intérieur d'une section de contenu (.sec p / .sec li sont foncés) */
.game p, .sec .game p { color: rgba(255, 255, 255, .88); }
.game li, .sec .game li { color: #fff; }
.gph { position: relative; justify-self: center; width: 100%; max-width: 250px; border-radius: 30px; padding: 8px; background: #05081a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), 0 20px 40px rgba(0, 0, 0, .5); transform: rotate(3deg); }
.gph img { display: block; width: 100%; height: auto; border-radius: 23px; }   /* height:auto : sinon l'attribut height (1408) étire l'image */
.restart { display: block; margin: 6px auto 0; }

/* ----- contenu SEO ----- */
.sec { padding: 34px 0 6px; }
.sec h2 { margin: 0 0 12px; font-size: clamp(23px, 4.4vw, 30px); line-height: 1.15; font-weight: 900; letter-spacing: -.5px; }
.sec p, .sec li { font-size: 16px; color: #2c3358; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.steps b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }
.profiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 620px) { .profiles { grid-template-columns: 1fr; } }
.pcard { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-left: 6px solid var(--pc); }
.pcard:hover { transform: translateY(-2px); }
.pcard .pe { font-size: 34px; line-height: 1; }
.pcard b { display: block; font-size: 17px; }
.pcard span { display: block; font-size: 14px; color: var(--dim); }
.qlist { margin: 14px 0 0; padding-left: 22px; }
.qlist li { margin: 4px 0; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin: 10px 0; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 800; font-size: 16px; list-style: none; }
.faq summary::after { content: "+"; float: right; font-weight: 900; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 0 18px; }   /* padding (pas margin) : la marge « sortait » du bloc blanc */
.stance { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.stance li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(15, 25, 70, .06); font-size: 15px; }
.stance .sv { flex: none; min-width: 92px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 900; text-align: center; color: #fff; }
.sv.p { background: #1f9d55; } .sv.n { background: #d64545; } .sv.z { background: #9aa3c3; }
.disclaimer { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #eef1f9; font-size: 13.5px; color: var(--dim); }
.foot { margin-top: 40px; padding: 26px 0 40px; background: var(--navy); color: rgba(255, 255, 255, .75); font-size: 14px; }
.foot a { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.shared { padding-top: 22px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
