:root{
  --navy:#082657;--navy-2:#0c356f;--blue:#0878ea;--red:#df263b;--green:#09875f;--purple:#7935be;--orange:#e88600;
  --ink:#0b2149;--muted:#667792;--line:#dfe7f2;--surface:#fff;--surface-2:#f5f8fd;--bg:#edf3fa;--shadow:0 10px 28px rgba(25,58,104,.10);
  --radius:18px;--max:1460px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(#f8fbff,#edf3fa 78%);color:var(--ink);font:15px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}.wrap{width:min(var(--max),calc(100% - 52px));margin-inline:auto}.top-shell{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.93);backdrop-filter:blur(18px);box-shadow:0 1px 0 rgba(8,38,87,.09)}
.site-header{display:grid;grid-template-columns:390px minmax(360px,1fr) auto;align-items:center;gap:22px;padding:15px 0 11px}.brand{display:flex;align-items:center;gap:11px}.brand img{width:72px;height:72px;object-fit:contain}.brand-copy strong{display:block;font-size:29px;line-height:.95;letter-spacing:.01em}.brand-copy strong span{color:#07285b}.brand-copy strong em{font-style:normal;color:#e32134}.brand-copy small{display:block;margin-top:5px;font-size:13px;line-height:1.25}.search-zone{position:relative}.search-form{height:48px;border:1px solid #dce4ef;border-radius:999px;background:#fff;display:flex;align-items:center;padding:4px 5px 4px 17px;box-shadow:0 6px 18px rgba(27,57,103,.06)}.search-icon{font-size:26px;color:var(--navy);transform:rotate(-20deg);margin-right:8px}.search-form input{border:0;outline:0;min-width:0;flex:1;color:var(--ink);background:transparent}.search-form button,.primary-btn{border:0;color:#fff;background:linear-gradient(135deg,#0a83ef,#0561cf);font-weight:700;border-radius:999px;padding:11px 22px;box-shadow:0 7px 16px rgba(8,120,234,.22)}.quick-tags{display:flex;gap:7px;overflow:hidden;margin-top:8px;padding-left:18px}.quick-tags button{border:0;background:#eef3f9;color:#435774;border-radius:999px;padding:5px 10px;font-size:11px}.header-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.icon-btn,.soft-btn,.outline-btn{border:1px solid #dce5f0;background:#fff;color:var(--ink);border-radius:999px;font-weight:700;padding:10px 17px}.icon-btn{width:43px;height:43px;padding:0}.search-results{position:absolute;top:58px;left:0;right:0;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:8px;z-index:70}.search-results a{display:block;padding:11px 12px;border-radius:10px}.search-results a:hover{background:#f2f6fc}.search-results small{display:block;color:var(--muted)}
.main-nav{border-top:1px solid rgba(8,38,87,.05)}.nav-scroll{height:56px;display:flex;align-items:stretch;gap:4px;overflow-x:auto;scrollbar-width:none}.nav-scroll::-webkit-scrollbar{display:none}.main-nav a{display:flex;gap:9px;align-items:center;padding:0 17px;font-weight:700;white-space:nowrap;border-bottom:3px solid transparent}.main-nav a.active{color:#0569d7;background:#edf5ff;border-bottom-color:#0878ea;border-radius:12px 12px 0 0}
.hero{position:relative;min-height:300px;overflow:hidden}.hero-bg{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(235,245,255,.96) 0%,rgba(235,245,255,.76) 36%,rgba(235,245,255,.08) 68%),url('../img/hero-paris.jpg');background-size:cover;background-position:center right}.hero-inner{position:relative;padding:40px 0 76px}.hero-copy{max-width:660px}.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:850;color:#1271d9;margin:0 0 7px}.hero h1{font-size:49px;line-height:1.02;margin:0;color:#082657;letter-spacing:-.035em}.hero-sub{font-size:19px;margin:9px 0 13px}.manifesto{width:min(650px,100%);padding:13px 17px;border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.82);backdrop-filter:blur(9px);border-radius:11px;box-shadow:0 5px 18px rgba(21,56,96,.08);font-size:15px}
.feature-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:-58px;position:relative;z-index:3}.feature-card{min-height:118px;background:rgba(255,255,255,.95);border:1px solid #e0e8f2;border-radius:14px;box-shadow:var(--shadow);padding:16px;display:grid;grid-template-columns:58px 1fr 28px;gap:12px;align-items:center;transition:.18s transform,.18s box-shadow}.feature-card:hover{transform:translateY(-3px);box-shadow:0 15px 34px rgba(25,58,104,.15)}.feature-icon{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;font-size:28px;font-weight:900}.feature-card b{font-size:15px}.feature-card p{margin:5px 0 0;color:#526581;font-size:12px}.feature-card i{font-style:normal;border:1px solid currentColor;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}.feature-card.blue{color:#0569d7}.feature-card.green{color:#087958}.feature-card.purple{color:#7131b5}.feature-card.red{color:#c71932}.feature-card.orange{color:#d97600}.feature-card div{color:var(--ink)}.feature-card.blue .feature-icon{background:#eaf4ff}.feature-card.green .feature-icon{background:#eaf9f4}.feature-card.purple .feature-icon{background:#f5edff}.feature-card.red .feature-icon{background:#fff0f2}.feature-card.orange .feature-icon{background:#fff6e6}
.dashboard-grid{display:grid;grid-template-columns:1.05fr 1.1fr .95fr;gap:16px;margin-top:20px}.panel{min-width:0}.section-title{display:flex;align-items:center;gap:8px;margin:0 0 9px}.section-title h2{font-size:20px;margin:0;letter-spacing:-.02em}.section-title a,.verified{margin-left:auto;font-size:12px;color:#0671df;font-weight:700}.verified{color:#09875f;background:#e9f9f3;padding:5px 9px;border-radius:999px}.pin{width:19px;height:19px;border-radius:50%;display:inline-block;border:5px solid currentColor;box-shadow:inset 0 0 0 2px #fff}.red-dot{color:#e21b32}.blue-dot{color:#0878ea}.green-dot{color:#07976a}.navy-dot{color:#09295c}
.lead-story{height:330px;display:block;position:relative;overflow:hidden;border-radius:15px;background:#071b35;box-shadow:var(--shadow)}.lead-story img{width:100%;height:100%;object-fit:cover}.story-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,20,42,.05),rgba(4,17,35,.9) 74%)}.story-content{position:absolute;inset:auto 22px 18px;color:white}.badge{background:#ed2035;border-radius:6px;padding:4px 8px;font-size:10px;font-weight:850;margin-right:8px}.story-content time{font-size:11px}.story-content h3{font-size:25px;line-height:1.05;margin:9px 0 8px}.story-content p{margin:0 0 12px;color:#edf4ff}.story-meta{display:flex;gap:20px;font-size:12px;font-weight:700}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat-card{background:white;border:1px solid #e4eaf2;border-radius:14px;padding:14px;box-shadow:0 5px 15px rgba(35,62,95,.06);min-height:129px;position:relative}.stat-card .label{font-weight:800;font-size:13px}.stat-card .value{font-size:32px;font-weight:900;letter-spacing:-.04em;margin:12px 0 0}.stat-card .period{font-size:12px;color:#6b7f9e}.stat-card .source-pill{position:absolute;right:12px;bottom:12px;font-size:10px;border:1px solid #d9e4f1;border-radius:999px;padding:4px 8px;color:#0c6fce;font-weight:800}.spark{position:absolute;right:14px;top:44px;width:76px;height:34px}.spark polyline{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.spark.green{color:#09a27b}.spark.red{color:#f13945}.spark.blue{color:#1782e7}.data-note{margin-top:10px;background:#eaf3ff;border:1px solid #d6e7ff;border-radius:10px;padding:9px 12px;text-align:center;color:#24598c;font-size:11px}.loading{grid-column:1/-1;padding:30px;text-align:center;color:var(--muted)}
.poll-box{background:white;border:1px solid #e1e9f3;border-radius:15px;padding:17px;box-shadow:0 5px 15px rgba(35,62,95,.06);min-height:330px}.poll-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.poll-head span{font-size:10px;font-weight:900;color:#006bdc;background:#e6f2ff;border-radius:6px;padding:4px 7px}.poll-head small{color:#6b7c95}.poll-box h3{font-size:20px;line-height:1.13;margin:12px 0}.poll-form{display:grid;gap:8px}.poll-option{display:grid;grid-template-columns:1fr 42%;align-items:center;gap:12px;border:0;background:transparent;padding:0;color:var(--ink);text-align:left}.poll-option strong{font-size:13px}.poll-option .bar{height:18px;background:#e7eef6;border-radius:5px;overflow:hidden;position:relative}.poll-option .fill{height:100%;border-radius:5px;background:linear-gradient(90deg,#238df0,#64aaf1);transition:width .35s}.poll-option .pct{position:absolute;right:5px;top:0;font-size:10px;line-height:18px;font-weight:850;color:#0a3568}.poll-option:not(.results):hover .bar{outline:2px solid #9dcbf8}.poll-foot{display:flex;align-items:center;justify-content:space-between;margin-top:16px;border-top:1px solid #e8edf4;padding-top:13px;color:#7687a0;font-size:11px}.outline-btn{padding:8px 13px;color:#0673df;border-color:#96c6f5}.poll-voted{background:#e8f8f2;color:#087958;border-radius:10px;padding:8px 10px;font-weight:700;margin:6px 0 10px}
.topics-section{margin-top:22px}.topics-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:9px}.topic-card{background:white;border:1px solid #e2e8f1;border-radius:13px;overflow:hidden;box-shadow:0 5px 15px rgba(35,62,95,.05);transition:.18s transform}.topic-card:hover{transform:translateY(-3px)}.topic-image{height:72px;position:relative;background-size:cover;background-position:center}.topic-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(10,28,49,.08))}.topic-body{padding:10px 11px}.topic-body b{font-size:12px}.topic-body small{display:block;color:#71839c;margin-top:4px}.topic-dot{position:absolute;left:10px;bottom:-15px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #e3eaf2;z-index:2;font-weight:900;color:#0878ea}
.methodology{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:30px}.method-card{background:rgba(255,255,255,.76);border:1px solid #dfe8f4;border-radius:17px;padding:20px}.method-number{font-size:12px;font-weight:900;color:#0b72d7}.method-card h3{margin:6px 0}.method-card p{color:#5c708d;margin:0;font-size:13px}.sources-section{margin:26px auto 40px}.source-callout{background:linear-gradient(120deg,#07285c,#0a4e99);color:#fff;border-radius:22px;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:30px;box-shadow:0 18px 40px rgba(8,38,87,.18)}.source-callout h2{font-size:30px;margin:3px 0 5px}.source-callout p{max-width:780px;margin-bottom:0;color:#d9e8f8}.source-callout .eyebrow{color:#96cfff}.link-btn{display:inline-block;background:white;color:#0b4b91;box-shadow:none}
footer{background:#061b3a;color:#d7e4f6;padding:30px 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:25px}.footer-grid b{color:#fff}.footer-grid p{margin:5px 0 0;color:#9fb2cc;font-size:12px}
.topic-dialog{width:min(620px,calc(100% - 26px));border:0;border-radius:20px;padding:27px;box-shadow:0 24px 80px rgba(0,0,0,.3);color:var(--ink)}.topic-dialog::backdrop{background:rgba(2,15,35,.65);backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:15px;top:12px;border:0;background:#edf3fa;width:34px;height:34px;border-radius:50%;font-size:23px}.topic-dialog h2{margin-top:0}.topic-dialog label{display:grid;gap:6px;font-weight:700;margin:14px 0}.topic-dialog input,.topic-dialog textarea{border:1px solid #d7e2ef;border-radius:11px;padding:12px;outline:0}.topic-dialog input:focus,.topic-dialog textarea:focus{border-color:#1681e8;box-shadow:0 0 0 3px #e0f0ff}.form-help{font-size:12px;color:#6e7f97}.success-message{margin-top:15px;padding:12px;background:#e9f9f2;color:#087958;border-radius:11px;font-weight:700}
body.dark{--ink:#edf5ff;--muted:#a9bbd0;--line:#243a57;--surface:#10243e;--surface-2:#0b1b31;--bg:#071528;background:#071528;color:var(--ink)}
body.dark .top-shell,body.dark .search-form,body.dark .soft-btn,body.dark .icon-btn,body.dark .search-results,body.dark .feature-card,body.dark .stat-card,body.dark .poll-box,body.dark .topic-card,body.dark .method-card{background:#10243e;color:#edf5ff;border-color:#243a57}
body.dark .brand-copy strong span{color:#8fc4ff}
body.dark .brand-copy small{color:#e2ebf7}
body.dark .search-icon{color:#8fc4ff}
body.dark .main-nav a{color:#e7eff9}
body.dark .main-nav a.active{background:#173553;color:#66b4ff;border-bottom-color:#2b91f2}
body.dark .feature-card div,body.dark .quick-tags button{color:#edf5ff}
body.dark .feature-card p{color:#b8c8da}
body.dark .quick-tags button{background:#182f4e}
body.dark .feature-card.blue .feature-icon,body.dark .feature-card.blue i{color:#2f95ff}
body.dark .feature-card.green .feature-icon,body.dark .feature-card.green i{color:#32c594}
body.dark .feature-card.purple .feature-icon,body.dark .feature-card.purple i{color:#b47cff}
body.dark .feature-card.red .feature-icon,body.dark .feature-card.red i{color:#ff6678}
body.dark .feature-card.orange .feature-icon,body.dark .feature-card.orange i{color:#ffb64f}
body.dark .feature-card.blue .feature-icon{background:#dceeff}
body.dark .feature-card.green .feature-icon{background:#ddf8ee}
body.dark .feature-card.purple .feature-icon{background:#eee3ff}
body.dark .feature-card.red .feature-icon{background:#ffe3e7}
body.dark .feature-card.orange .feature-icon{background:#fff0d7}
body.dark .hero-bg{filter:brightness(.64)}
body.dark .manifesto{background:rgba(10,29,52,.9);border-color:#315272}
body.dark .hero h1,body.dark .hero-sub{color:#fff}
body.dark .search-form input{color:#fff}
body.dark .search-form input::placeholder{color:#91a4bc}
body.dark .poll-option{color:#fff}
body.dark .poll-option .bar{background:#213b5b}
body.dark .stat-card .period,body.dark .poll-head small,body.dark .poll-foot,body.dark .topic-body small,body.dark .method-card p,body.dark .candidate-copy small,body.dark .proposal-item p,body.dark .proposal-meta,body.dark .source-card small{color:#a9bbd0}
body.dark .data-note{background:#0d2948;border-color:#23486c;color:#b8d9f8}
body.dark .verified{background:#143d34;color:#73ddb8}
body.dark .topic-dot{background:#10243e;border-color:#365473;color:#6eb6ff}
body.dark .outline-btn{background:#10243e;color:#73b9ff;border-color:#3b6993}
body.dark .search-results a:hover{background:#17314f}
body.dark .source-proof{background:#0d3028;border-color:#27584a;color:#9be0c7}
body.dark .original-excerpt{color:#bfd0e2}
body.dark .source-type{background:#17324f;color:#8cc7ff}
body.dark .topic-dialog{background:#10243e;color:#edf5ff}
body.dark .topic-dialog input,body.dark .topic-dialog textarea{background:#0b1b31;color:#edf5ff;border-color:#31506e}
body.dark .dialog-close{background:#1c3858;color:#fff}
@media(max-width:1180px){.site-header{grid-template-columns:310px 1fr}.header-actions{display:none}.feature-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr 1fr}.poll-panel{grid-column:1/-1}.topics-grid{grid-template-columns:repeat(4,1fr)}.methodology{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.wrap{width:min(100% - 24px,var(--max))}.site-header{grid-template-columns:1fr;padding-top:9px;gap:8px}.brand{justify-content:center}.brand img{width:54px;height:54px}.brand-copy strong{font-size:24px}.brand-copy small{font-size:11px}.quick-tags{display:none}.search-form{height:44px}.search-form button{display:none}.main-nav a{padding:0 13px}.main-nav a span{font-size:12px}.hero{min-height:345px}.hero-bg{background-position:60% center;background-image:linear-gradient(90deg,rgba(234,244,255,.94),rgba(234,244,255,.63) 65%,rgba(234,244,255,.12)),url('../img/hero-paris.jpg')}.hero-inner{padding-top:38px}.hero h1{font-size:38px}.hero-sub{font-size:15px}.manifesto{font-size:13px}.feature-grid{grid-template-columns:1fr;margin-top:-42px}.feature-card{min-height:88px;grid-template-columns:48px 1fr 28px}.feature-icon{width:46px;height:46px}.dashboard-grid{grid-template-columns:1fr}.poll-panel{grid-column:auto}.lead-story{height:310px}.stats-grid{grid-template-columns:1fr 1fr}.topics-grid{grid-template-columns:repeat(2,1fr)}.methodology{grid-template-columns:1fr}.source-callout{align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr}.section-title h2{font-size:18px}}
@media(max-width:440px){.stats-grid{grid-template-columns:1fr}.hero h1{font-size:34px}.topics-grid{grid-template-columns:1fr 1fr}.poll-option{grid-template-columns:1fr 45%}.source-callout{padding:22px}.source-callout h2{font-size:25px}}

/* --- Données dynamiques / candidats --- */
.candidates-section{margin-top:24px}.candidates-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.candidate-card{display:grid;grid-template-columns:58px 1fr 28px;gap:12px;align-items:center;background:#fff;border:1px solid #e2e8f1;border-radius:15px;padding:13px;box-shadow:0 5px 15px rgba(35,62,95,.05);transition:.18s transform,.18s box-shadow}.candidate-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(35,62,95,.1)}.candidate-avatar{width:58px;height:58px;border-radius:50%;background:linear-gradient(135deg,#e8f3ff,#f4f7fb);display:grid;place-items:center;overflow:hidden;border:1px solid #dfe8f3}.candidate-avatar img{width:100%;height:100%;object-fit:cover}.candidate-avatar span{font-size:18px;font-weight:900;color:#0a579e}.candidate-copy{min-width:0}.candidate-copy b{display:block;font-size:15px}.candidate-copy small{display:block;color:#6c7f98;margin:3px 0}.candidate-copy span{font-size:11px;color:#1671ca;font-weight:750}.candidate-card i{font-style:normal;border:1px solid #9bc8f2;color:#0873df;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}.empty-state{padding:20px;border:1px dashed #cbd8e7;border-radius:13px;color:#697d98;background:rgba(255,255,255,.65)}.empty-state.wide{grid-column:1/-1;display:grid;gap:5px}.section-hint{margin-left:auto;color:#70839e;font-size:12px}.page-shell{padding:32px 0 50px}.page-head{background:#fff;border:1px solid #e2e8f1;border-radius:18px;padding:24px;box-shadow:var(--shadow);margin-bottom:18px}.page-head h1{margin:0 0 8px;font-size:34px}.page-head p{margin:0;color:#667a96}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px}.content-card{background:#fff;border:1px solid #e2e8f1;border-radius:16px;padding:20px;box-shadow:0 5px 15px rgba(35,62,95,.05)}.proposal-list{display:grid;gap:12px}.proposal-item{display:block;border:1px solid #e1e8f1;border-radius:13px;padding:15px;background:#fff}.proposal-item:hover{border-color:#9fcdf6}.proposal-item h3{margin:4px 0 7px;font-size:18px}.proposal-item p{margin:0;color:#627691}.proposal-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:#71849c}.source-card{display:block;border:1px solid #e0e8f1;border-radius:12px;padding:14px;margin:9px 0;background:#fff}.source-card b{display:block}.source-card small{display:block;color:#6e819a;margin-top:3px}.source-type{display:inline-block;padding:4px 7px;border-radius:999px;background:#edf5ff;color:#1266b4;font-size:10px;font-weight:800}.source-proof{background:#eef8f4;border:1px solid #d7eee4;border-radius:12px;padding:14px;color:#175d49}.original-excerpt{border-left:4px solid #91bfea;padding:4px 0 4px 15px;color:#415b78}.fact-box{background:#f4f8fd;border:1px solid #dfe9f5;border-radius:12px;padding:15px}.admin-link{font-size:12px;font-weight:800;color:#0a70d2}
body.dark .candidate-card,body.dark .empty-state,body.dark .page-head,body.dark .content-card,body.dark .proposal-item,body.dark .source-card{background:#10243e;color:#edf5ff;border-color:#243a57}body.dark .fact-box{background:#0d213a;border-color:#29415e}.section-hint{color:var(--muted)}
@media(max-width:1180px){.candidates-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.candidates-grid{grid-template-columns:1fr}.content-grid{grid-template-columns:1fr}.page-head h1{font-size:29px}.section-hint{display:none}}

/* --- Comptes & accès --- */
.auth-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#eef6ff 0,#f7f9fc 45%,#eef3f8 100%)}
.auth-card{width:min(500px,100%);background:#fff;border:1px solid #dfe7f1;border-radius:22px;box-shadow:0 24px 70px rgba(7,34,72,.13);padding:30px}
.auth-card .brand{margin-bottom:24px}.auth-card h1{margin:0 0 8px}.auth-intro{color:#687c96;margin:0 0 18px;line-height:1.55}
.account-form{display:grid;gap:14px}.account-form label{display:grid;gap:6px;font-weight:750;font-size:13px}.account-form input{width:100%;border:1px solid #cfdae7;border-radius:11px;padding:12px 13px;background:#fff;color:#102b4c}.account-form label small{font-weight:500;color:#7a8ba1}
.account-form .primary-btn{justify-self:start}.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid #e5ebf2;font-size:13px;font-weight:750}.auth-links a{color:#0a70d2}
.account-shell{max-width:1050px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.account-message{padding:12px 14px;border-radius:11px;margin-bottom:16px;font-weight:700}.account-message.ok{background:#e9f8f1;color:#0a7655}.account-message.err{background:#fff0f1;color:#9b1e2e}.privacy-note{margin-top:18px}.privacy-note p{margin-bottom:0;color:#647994;line-height:1.6}
body.dark .auth-body{background:#07172a}body.dark .auth-card{background:#10243e;border-color:#243a57;color:#edf5ff}body.dark .account-form input{background:#0b1b31;border-color:#31506e;color:#edf5ff}body.dark .auth-intro,body.dark .account-form label small,body.dark .privacy-note p{color:#a9bbd0}
@media(max-width:760px){.account-grid{grid-template-columns:1fr}.auth-card{padding:22px}.auth-links{flex-direction:column}.account-form .primary-btn{width:100%;justify-content:center}}
.header-logout{width:38px;height:38px;display:grid;place-items:center;border:1px solid #d7e2ef;border-radius:50%;color:#52708f;font-weight:900;background:#fff}.header-logout:hover{border-color:#9bc8f2;color:#0873df}body.dark .header-logout{background:#10243e;border-color:#31506e;color:#b8d9f8}

/* === Annuaire politique public 0.4.1 === */
.directory-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.directory-filter{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,320px) auto auto;gap:10px;margin:18px 0 24px;align-items:center}
.directory-filter input,.directory-filter select{min-height:46px;border:1px solid var(--line,#dbe5f1);border-radius:14px;background:var(--card,#fff);color:var(--text,#09254b);padding:0 14px;font:inherit}
.directory-filter button{min-height:46px;border:0;border-radius:14px;background:#0878e8;color:#fff;font-weight:800;padding:0 22px;cursor:pointer}
.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:38px}
.directory-card,.party-card{background:var(--card,#fff);border:1px solid var(--line,#dbe5f1);border-radius:20px;padding:18px;box-shadow:0 10px 28px rgba(12,50,91,.06);display:flex;gap:15px;min-width:0}
.directory-avatar,.profile-avatar,.party-logo{width:68px;height:68px;border-radius:18px;overflow:hidden;flex:0 0 68px;display:grid;place-items:center;background:linear-gradient(135deg,#e8f3ff,#fff0f2);border:1px solid var(--line,#dbe5f1);font-weight:900;font-size:24px;color:#0a559f}
.directory-avatar img,.profile-avatar img,.party-logo img{width:100%;height:100%;object-fit:cover}
.directory-body{min-width:0;flex:1}.directory-body h2,.party-card h2{margin:5px 0 5px;font-size:1.15rem}.directory-body h2 a,.party-card h2 a{color:inherit;text-decoration:none}.directory-body p,.party-card p{margin:6px 0;color:var(--muted,#62748b);line-height:1.5}.directory-role{font-weight:800;color:var(--text,#102b51)!important}.directory-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:.78rem}.directory-meta a{color:#096bd4;text-decoration:none;font-weight:800}.card-link,.inline-link,.source-inline{color:#096bd4;text-decoration:none;font-weight:800}.card-link:hover,.inline-link:hover,.source-inline:hover{text-decoration:underline}
.profile-hero{display:flex;align-items:center;gap:20px;background:var(--card,#fff);border:1px solid var(--line,#dbe5f1);border-radius:24px;padding:25px;margin-bottom:14px;box-shadow:0 10px 30px rgba(12,50,91,.06)}
.profile-hero .profile-avatar{width:100px;height:100px;flex-basis:100px;border-radius:24px;font-size:34px}.profile-hero h1{margin:5px 0;font-size:clamp(2rem,4vw,3.1rem)}.profile-role{font-size:1.08rem;font-weight:800;margin:5px 0;color:var(--text,#102b51)}
.editorial-scope{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px;padding:14px 17px;border-radius:16px;background:#edf7ff;border:1px solid #cfe7fb;color:#15395e}.editorial-scope b{white-space:nowrap}.editorial-scope span{line-height:1.5}
.timeline{margin-top:16px}.timeline-item{position:relative;display:grid;grid-template-columns:22px 1fr;gap:12px;padding:0 0 24px}.timeline-item:before{content:"";position:absolute;left:7px;top:16px;bottom:-2px;width:2px;background:var(--line,#dbe5f1)}.timeline-item:last-child:before{display:none}.timeline-dot{width:16px;height:16px;border-radius:50%;background:#0878e8;border:4px solid #e7f3ff;z-index:1}.timeline-item h3{margin:4px 0}.timeline-item p{margin:4px 0;color:var(--muted,#62748b)}.lead-copy{font-size:1.04rem;line-height:1.7}
.party-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0 38px}.party-card{align-items:flex-start}.party-logo{width:76px;height:76px;flex-basis:76px}.party-counts{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.party-counts span{font-size:.78rem;padding:5px 8px;border-radius:999px;background:var(--soft,#f1f6fb);color:var(--muted,#63748b)}.party-avatar{object-fit:contain}.person-list{display:grid;gap:8px;margin:12px 0 24px}.person-row{display:flex;justify-content:space-between;gap:12px;align-items:center;text-decoration:none;color:inherit;border:1px solid var(--line,#dbe5f1);border-radius:14px;padding:12px 14px}.person-row:hover{border-color:#86bff3;background:var(--soft,#f7fbff)}.person-row div{display:flex;flex-direction:column;gap:3px}.person-row span{color:var(--muted,#62748b);font-size:.86rem}
html[data-theme="dark"] .editorial-scope,body.dark .editorial-scope{background:#102b49;border-color:#244968;color:#dbeaff}html[data-theme="dark"] .directory-filter input,html[data-theme="dark"] .directory-filter select{background:#0e2948;color:#eff7ff;border-color:#244563}
@media(max-width:980px){.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.party-grid{grid-template-columns:1fr}.directory-filter{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.directory-grid{grid-template-columns:1fr}.directory-filter{grid-template-columns:1fr}.profile-hero{align-items:flex-start}.profile-hero .profile-avatar{width:78px;height:78px;flex-basis:78px}.editorial-scope{flex-direction:column}.directory-card{padding:14px}}

/* Futur France 0.5.1 — affiliations politiques et crédits photo */
.photo-credit{font-size:.78rem;color:var(--muted);margin:.45rem 0 0}.photo-credit a{color:inherit;text-decoration:underline}.affiliation-block{margin:1.3rem 0 1.5rem;padding:1rem;border:1px solid var(--line);border-radius:18px;background:var(--card-soft,#f8fbff)}.affiliation-public-list{display:grid;gap:.75rem;margin-top:.8rem}.affiliation-public-row{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;padding:.85rem 0;border-top:1px solid var(--line)}.affiliation-public-row:first-child{border-top:0}.affiliation-public-row h3{margin:.18rem 0}.party-chip{display:inline-flex;align-items:center;padding:.23rem .55rem;border-radius:999px;background:var(--soft,#eef4fb);font-size:.77rem;margin:.15rem .25rem .15rem 0}.party-chip.current{background:#e6f7ef;color:#087a4c}.historical-badge{display:inline-flex;align-items:center;padding:.18rem .48rem;border-radius:999px;background:#fff2db;color:#9a5a00;font-size:.72rem;font-weight:700}.person-row-main{display:flex;gap:.7rem;align-items:center}.person-row-photo{width:42px;height:42px;object-fit:cover;border-radius:50%;flex:0 0 auto}.person-row small{display:block;color:var(--muted);margin-top:.18rem}.directory-meta .party-chip{white-space:normal}
@media(max-width:760px){.affiliation-public-row{display:block}.affiliation-public-row .source-inline{display:inline-block;margin-top:.5rem}}

/* === Futur France 0.5.2 — lisibilité de l'accueil + carrousel À la une === */
/* Les raccourcis sous la recherche restent sur une seule ligne et défilent horizontalement. */
.quick-tags{
  gap:7px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0 18px 3px 18px;
  margin-top:8px;
  scrollbar-width:none;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.quick-tags::-webkit-scrollbar{display:none}
.quick-tags button{
  flex:0 0 auto;
  white-space:nowrap;
  line-height:1.15;
  min-height:28px;
  scroll-snap-align:start;
}
.search-zone{min-width:0;overflow:visible}

/* Les sources des cartes statistiques restent dans le flux : plus de chevauchement avec la période. */
.stat-card{
  min-height:142px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  overflow:hidden;
}
.stat-card .label{max-width:100%;padding-right:6px}
.stat-card .value{padding-right:82px;line-height:1}
.stat-card .period{margin-top:5px;line-height:1.25;max-width:100%}
.stat-card .source-pill{
  position:static;
  display:inline-flex;
  align-items:center;
  max-width:100%;
  margin-top:auto;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Diaporama de l'actualité vérifiée. */
.headline-carousel{
  position:relative;
  height:330px;
  overflow:hidden;
  border-radius:15px;
  background:#071b35;
  box-shadow:var(--shadow);
  isolation:isolate;
}
.headline-track{
  height:100%;
  display:flex;
  transition:transform .48s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
.headline-slide{
  flex:0 0 100%;
  width:100%;
  height:330px;
  border-radius:0;
  box-shadow:none;
}
.headline-loading{
  flex:0 0 100%;
  min-width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#dbe9fa;
  padding:30px;
  text-align:center;
}
.story-kicker{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.headline-nav{
  position:absolute;
  z-index:5;
  top:50%;
  transform:translateY(-50%);
  width:39px;
  height:39px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.6);
  background:rgba(5,24,50,.62);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:26px;
  line-height:1;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
  backdrop-filter:blur(7px);
}
.headline-nav:hover{background:rgba(5,24,50,.86)}
.headline-nav.prev{left:12px}.headline-nav.next{right:12px}
.headline-nav[hidden]{display:none}
.headline-dots{
  position:absolute;
  z-index:6;
  top:13px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
  padding:6px 8px;
  border-radius:999px;
  background:rgba(5,24,50,.48);
  backdrop-filter:blur(7px);
}
.headline-dots:empty{display:none}
.headline-dots button{
  width:8px;
  height:8px;
  border:0;
  border-radius:999px;
  padding:0;
  background:rgba(255,255,255,.5);
  transition:width .2s ease,background .2s ease;
}
.headline-dots button.active{width:24px;background:#fff}
.headline-slide .story-content{left:56px;right:56px}
.headline-slide .story-content h3{max-width:95%}
.headline-slide .story-content p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

@media(max-width:1180px){
  .quick-tags{padding-left:0;padding-right:0}
  .headline-carousel,.headline-slide{height:330px}
}
@media(max-width:760px){
  .headline-carousel,.headline-slide{height:310px}
  .headline-slide .story-content{left:48px;right:48px;bottom:17px}
  .headline-slide .story-content h3{font-size:22px}
  .headline-slide .story-content p{font-size:13px;-webkit-line-clamp:2}
  .headline-nav{width:34px;height:34px;font-size:22px}
  .headline-nav.prev{left:8px}.headline-nav.next{right:8px}
  .stats-grid{align-items:stretch}
  .stat-card{min-height:148px}
}
@media(max-width:440px){
  .headline-slide .story-content{left:44px;right:44px}
  .headline-slide .story-content h3{font-size:19px}
  .story-meta{gap:10px;flex-wrap:wrap}
  .stat-card .value{padding-right:72px}
}
@media(prefers-reduced-motion:reduce){
  .headline-track{transition:none}
}

/* === 0.5.4 — candidatures & programmes === */
.candidate-program-state{display:block;margin-top:5px;font-size:.72rem;font-style:normal;color:var(--muted);line-height:1.25}
.candidate-hero-card{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(280px,390px);gap:24px;align-items:stretch;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow);margin:22px 0 14px}
.candidate-hero-photo{width:150px;height:180px;border-radius:18px;background:linear-gradient(145deg,#e9f2ff,#f8fbff);display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:3rem;font-weight:900;color:var(--blue)}
.candidate-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.candidate-hero-main h1{margin:.35rem 0 .25rem;font-size:clamp(2rem,4vw,3.2rem);line-height:1}
.candidate-party-line{font-weight:800;color:var(--blue);margin:.25rem 0 .75rem}
.candidate-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.program-state-card{background:linear-gradient(145deg,rgba(4,111,231,.07),rgba(255,255,255,.7));border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:10px}
.program-state-card h2{font-size:1.05rem;margin:0}.program-state-card p{margin:0;color:var(--muted);line-height:1.45}.program-state-card a{font-weight:800}.program-state-card small{color:var(--muted);margin-top:auto}
.program-state-badge{display:inline-flex;align-self:flex-start;padding:6px 9px;border-radius:999px;font-size:.72rem;font-weight:900;background:#edf3fa;color:#284a70}.program-published{background:#e5f7ee;color:#08724a}.program-partial{background:#fff4df;color:#a45b00}.program-updating,.program-in_progress{background:#e8f2ff;color:#075fb6}
.method-note{display:flex;gap:12px;align-items:flex-start;background:#f7faff;border:1px dashed #b7cce6;border-radius:15px;padding:13px 15px;margin:0 0 22px}.method-note b{white-space:nowrap}.method-note span{color:var(--muted);line-height:1.45}
.candidate-content-grid{grid-template-columns:minmax(0,1.7fr) minmax(270px,.7fr)}
.candidate-theme-group{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.candidate-theme-group:first-of-type{border-top:0;margin-top:4px}.candidate-theme-group>h3{margin:0 0 10px;font-size:1.1rem;color:var(--navy)}.candidate-theme-group .proposal-item h4{font-size:1.03rem;margin:.3rem 0}
.candidate-filterbar{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0 20px}.candidate-filterbar label{display:flex;gap:8px;align-items:center;font-weight:800}.candidate-filterbar select{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:10px;padding:10px 12px}
.candidate-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-bottom:30px}.candidate-directory-card{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.candidate-directory-card[hidden]{display:none}.candidate-directory-card>a{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;padding:14px;color:inherit;text-decoration:none;height:100%}.candidate-directory-photo{height:108px;border-radius:13px;overflow:hidden;background:#edf4fd;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:900;color:var(--blue)}.candidate-directory-photo img{width:100%;height:100%;object-fit:cover}.candidate-directory-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start}.candidate-directory-copy h2{font-size:1.12rem;margin:5px 0 3px}.candidate-directory-copy p{margin:0 0 8px;color:var(--muted)}.candidate-directory-copy strong{font-size:.82rem;line-height:1.25}.candidate-directory-copy small{margin-top:auto;color:var(--muted);font-size:.72rem}
body.dark .program-state-card{background:linear-gradient(145deg,rgba(49,135,235,.12),rgba(17,39,66,.75))}body.dark .method-note{background:#102944;border-color:#30587f}body.dark .candidate-hero-photo,body.dark .candidate-directory-photo{background:#183552}
@media(max-width:1000px){.candidate-hero-card{grid-template-columns:120px 1fr}.candidate-hero-photo{width:120px;height:150px}.program-state-card{grid-column:1/-1}.candidate-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.candidate-content-grid{grid-template-columns:1fr}}
@media(max-width:680px){.candidate-hero-card{grid-template-columns:1fr;padding:16px}.candidate-hero-photo{width:112px;height:132px}.candidate-directory-grid{grid-template-columns:1fr}.method-note{flex-direction:column}.method-note b{white-space:normal}.candidate-filterbar label{width:100%;justify-content:space-between}.candidate-filterbar select{min-width:55%}}
