/* élection.fr : pages de résultats par territoire */
.rp { max-width: 960px; margin: 0 auto; padding: 24px 20px 56px; color: #3d4f6b; }
.rp h1 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 800; color: #1a2744; line-height: 1.25; margin: 8px 0 14px; }
.rp h2 { font-size: 1.08rem; font-weight: 800; color: #1a2744; margin: 30px 0 12px; }
.rp p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 12px; }
.rp a { color: #2c3e6b; }
.lead { font-size: 1rem !important; font-weight: 500; border-left: 4px solid #f39c12; padding-left: 14px; }
.bc { font-size: 0.78rem; color: #7a8ba3; }
.bc a { color: #2c3e6b; text-decoration: none; }
.bc a:hover { text-decoration: underline; }
.src { font-size: 0.76rem !important; color: #8a99b1; margin-top: 30px; border-top: 1px solid #e2e7ef; padding-top: 12px; }
/* Participation */
.pa { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0 0 14px; }
.pa div { background: #fff; border: 1px solid #e2e7ef; border-radius: 8px; padding: 8px 10px; }
.pa dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.4px; color: #7a8ba3; font-weight: 700; }
.pa dd { margin: 2px 0 0; font-weight: 800; color: #1a2744; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.pa dd small { font-weight: 600; color: #7a8ba3; font-size: 0.75rem; }
/* Tableau de résultats */
.tw { overflow-x: auto; }
.rt { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: #fff; border: 1px solid #e2e7ef; border-radius: 10px; }
.rt caption { text-align: left; font-size: 0.75rem; color: #7a8ba3; padding: 0 0 6px; }
.rt th { text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.4px; color: #7a8ba3; padding: 8px 10px; border-bottom: 2px solid #e2e7ef; }
.rt td { padding: 7px 10px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.rt td.c { font-weight: 700; color: #1a2744; }
.rt td.c small { display: block; font-weight: 500; color: #8a99b1; font-size: 0.72rem; margin-left: 18px; }
.rt td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt td.p { white-space: nowrap; font-weight: 800; color: #1a2744; font-variant-numeric: tabular-nums; min-width: 170px; }
.rt tr.first td { background: #fffaf0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.bar { display: inline-block; width: 90px; height: 8px; background: #eef1f5; border-radius: 99px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
/* Listes de liens */
.ll { list-style: none; padding: 0; margin: 0 0 8px; }
.ll li { padding: 3px 0; font-size: 0.88rem; }
.ll li a { text-decoration: none; font-weight: 600; }
.ll li a:hover { color: #f39c12; text-decoration: underline; }
.ll small { color: #8a99b1; }
.ll.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 14px; }
.ll.cols { columns: 4 180px; column-gap: 18px; }
.ll.cols li { break-inside: avoid; }
.more { font-weight: 700; }
.filter { width: 100%; max-width: 360px; padding: 9px 12px; border: 1px solid #d0d7e2; border-radius: 8px; font-family: inherit; font-size: 0.9rem; margin-bottom: 10px; }
/* 2027 en direct */
.live { background: linear-gradient(135deg, #0f1830, #24396b); color: #eef2fb; border-radius: 14px; padding: 16px 18px; margin: 10px 0 20px; }
.live h2 { color: #fff; margin: 0 0 6px; font-size: 1rem; }
.live p { color: #c9d4ea; margin: 0; font-size: 0.86rem; }
.live .rt { color: #3d4f6b; margin-top: 10px; }
.live .badge { display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: #f39c12; color: #1a1205; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.live .pa div { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.live .pa dt { color: #9fb0cf; } .live .pa dd { color: #fff; }
/* Moteur de recherche */
.search-box { position: relative; background: #fff; border: 1px solid #d0d7e2; border-radius: 12px; padding: 14px 16px; margin: 6px 0 18px; }
.search-box label { display: block; font-size: 0.8rem; font-weight: 700; color: #1a2744; margin-bottom: 6px; }
.search-box input { width: 100%; padding: 12px 14px; border: 2px solid #d0d7e2; border-radius: 10px; font-family: inherit; font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search-box input:focus { border-color: #f39c12; box-shadow: 0 0 0 4px rgba(243,156,18,0.15); }
.search-results { list-style: none; margin: 6px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.search-results li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #1a2744; font-weight: 600; font-size: 0.9rem; }
.search-results li a:hover, .search-results li a.on { background: #fff4e0; }
.search-results li small { color: #8a99b1; font-weight: 500; white-space: nowrap; }
.search-results .empty { padding: 8px 10px; font-size: 0.85rem; color: #8a99b1; }
@media (max-width: 600px) { .bar { width: 50px; } .rt td.p { min-width: 110px; } }
/* Couleurs des candidats 2022 */
.k-arthaud{background:#8B0000}
.k-roussel{background:#A30000}
.k-macron{background:#E8A900}
.k-lassalle{background:#8B7355}
.k-le-pen{background:#0D2B52}
.k-zemmour{background:#3D3A75}
.k-melenchon{background:#CC0000}
.k-hidalgo{background:#FF6699}
.k-jadot{background:#2E8B57}
.k-pecresse{background:#0066CC}
.k-poutou{background:#B22222}
.k-dupont-aignan{background:#6A5ACD}
/* ===== Attente des résultats 2027 (motion design, injecté par res.js) ===== */
.live.waiting { position: relative; overflow: hidden; min-height: 300px; padding: 26px 22px; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: center; background: radial-gradient(700px 300px at 0% 0%, #2c4785 0%, transparent 60%), radial-gradient(600px 300px at 100% 100%, #4b2560 0%, transparent 60%), linear-gradient(150deg, #0b1224, #16234a); isolation: isolate; }
.live.waiting .w-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.35; z-index: -1; animation: wDrift 16s ease-in-out infinite alternate; }
.live.waiting .w-blob.a { width: 260px; height: 260px; background: #f39c12; top: -90px; left: 30%; }
.live.waiting .w-blob.b { width: 220px; height: 220px; background: #4f7cff; bottom: -100px; left: -40px; animation-duration: 21s; }
@keyframes wDrift { to { transform: translate(50px, 30px) scale(1.15); } }
.live.waiting .w-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 36px 36px; animation: wGrid 24s linear infinite; mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%); }
@keyframes wGrid { to { background-position: 36px 36px, 36px 36px; } }
.w-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.66rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #ffbf47; background: rgba(243,156,18,0.12); border: 1px solid rgba(243,156,18,0.35); padding: 4px 10px; border-radius: 999px; }
.w-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #f39c12; animation: wPing 1.6s infinite; }
@keyframes wPing { 0% { box-shadow: 0 0 0 0 rgba(243,156,18,0.7); } 70% { box-shadow: 0 0 0 10px rgba(243,156,18,0); } 100% { box-shadow: 0 0 0 0 rgba(243,156,18,0); } }
.live.waiting h2 { font-size: clamp(1.15rem, 2.8vw, 1.55rem) !important; font-weight: 900; line-height: 1.2; margin: 12px 0 8px !important; color: #fff; }
.live.waiting h2 .w-grad { background: linear-gradient(90deg, #ffbf47, #ff7a59, #b07bff, #ffbf47); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wShine 6s linear infinite; }
@keyframes wShine { to { background-position: 300% 0; } }
.live.waiting .live-wait { color: #c9d4ea; font-size: 0.86rem; max-width: 520px; }
.w-count { display: flex; gap: 8px; margin: 16px 0 6px; flex-wrap: wrap; }
.w-unit { min-width: 64px; text-align: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 8px 6px 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.w-unit b { display: block; font-size: 1.55rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.w-unit b.tick { animation: wTick 0.45s cubic-bezier(.2,1.4,.4,1); }
@keyframes wTick { from { transform: translateY(-6px) scale(1.12); color: #ffbf47; } to { transform: none; } }
.w-unit span { font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9fb0cf; }
.w-next { font-size: 0.75rem !important; color: #9fb0cf !important; margin-top: 4px !important; }
.w-next b { color: #ffbf47; }
/* Urne animée */
.w-urn { position: relative; width: 210px; height: 230px; justify-self: center; }
.w-urn svg { position: absolute; left: 0; bottom: 0; width: 210px; height: 190px; overflow: visible; }
.w-urn .glow { position: absolute; left: 50%; bottom: 20px; width: 160px; height: 160px; margin-left: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(243,156,18,0.35), transparent 65%); animation: wGlow 3s ease-in-out infinite; }
@keyframes wGlow { 50% { transform: scale(1.15); opacity: 0.6; } }
.w-ballot { position: absolute; left: 50%; top: -6px; width: 34px; height: 44px; margin-left: -17px; border-radius: 4px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,0.6); opacity: 0; animation: wDrop 3.6s cubic-bezier(.45,.05,.55,.95) infinite; }
.w-ballot::before, .w-ballot::after { content: ""; position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 2px; background: #d0d7e2; }
.w-ballot::before { top: 10px; } .w-ballot::after { top: 18px; right: 12px; }
.w-ballot.b2 { animation-delay: 1.2s; background: #fff7e8; } .w-ballot.b3 { animation-delay: 2.4s; background: #eef3ff; }
@keyframes wDrop { 0% { opacity: 0; transform: translate(var(--x, 0), -30px) rotate(var(--r, -18deg)); } 15% { opacity: 1; } 55% { opacity: 1; transform: translate(0, 66px) rotate(0); } 70% { opacity: 0; transform: translate(0, 92px) scaleY(0.2); } 100% { opacity: 0; transform: translate(0, 92px) scaleY(0.2); } }
.w-ballot.b1 { --x: -40px; --r: -22deg; } .w-ballot.b2 { --x: 46px; --r: 20deg; } .w-ballot.b3 { --x: -8px; --r: -8deg; }
.w-urn .slotflash { animation: wSlot 1.2s ease-in-out infinite; }
@keyframes wSlot { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.w-urn .count { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; font-size: 0.62rem; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,0.75); text-transform: uppercase; }
@media (max-width: 640px) { .live.waiting { grid-template-columns: 1fr; } .w-urn { order: -1; height: 200px; } .w-unit { min-width: 56px; } .w-unit b { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .live.waiting *, .live.waiting *::before, .live.waiting *::after { animation: none !important; } .w-ballot { opacity: 0; } }
