.community-page { display:grid; gap:1.1rem; padding-top:1.25rem; padding-bottom:3rem; }
.community-hero { padding:clamp(1.3rem,4vw,2.4rem); border-radius:18px; color:#fff; background:radial-gradient(ellipse at 90% 0%,rgba(225,6,0,.3),transparent 45%),linear-gradient(125deg,#171820,#252833 70%,#3b1115); box-shadow:0 14px 34px rgba(15,23,42,.13); }
.community-hero>span,.community-eyebrow { color:#ff7772; font-size:.7rem; font-weight:850; letter-spacing:.13em; }
.community-hero h1 { margin:.4rem 0; color:#fff; font-size:clamp(1.8rem,5vw,2.6rem); }
.community-hero p { margin:0; color:#d6d9df; }
.community-panel,.community-rules { padding:clamp(1rem,2.5vw,1.4rem); border:1px solid var(--f1-border,#e0e4ea); border-radius:16px; background:var(--f1-white,#fff); box-shadow:0 7px 22px rgba(20,28,42,.055); }
.community-panel-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.community-panel-heading h2,.community-rules h2 { margin:.2rem 0; color:var(--f1-dark,#171b22); font-size:1.25rem; }
.community-panel-heading p { margin:0; color:var(--f1-gray,#687386); font-size:.85rem; }
.community-race-label { display:grid; gap:.3rem; min-width:min(100%,250px); color:var(--f1-gray,#687386); font-size:.75rem; font-weight:750; }
.community-race-label select,.community-pick select { width:100%; min-height:44px; padding:.5rem .7rem; border:1px solid var(--f1-border,#d6dbe3); border-radius:9px; background:var(--f1-white,#fff); color:var(--f1-dark,#171b22); font:inherit; }
.community-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.community-pick { display:grid; gap:.35rem; color:var(--f1-dark,#171b22); font-size:.82rem; font-weight:750; }
.community-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.7rem; margin-top:1rem; }
.community-submit { min-height:44px; padding:.7rem 1rem; border:0; border-radius:9px; background:#e10600; color:#fff; font:inherit; font-weight:800; cursor:pointer; }
.community-submit:disabled { opacity:.55; cursor:not-allowed; }
.community-message { min-height:1.2rem; color:var(--f1-gray,#687386); font-size:.82rem; }
.community-login { padding:1rem; border:1px solid var(--f1-border,#e0e4ea); border-radius:12px; background:rgba(120,130,145,.06); }
.community-login a { display:inline-flex; margin:.3rem .4rem .1rem 0; padding:.55rem .75rem; border-radius:8px; background:#e10600; color:#fff; font-weight:800; text-decoration:none; }
.community-lock { margin:.75rem 0 0; padding:.7rem; border-radius:9px; background:rgba(225,6,0,.07); color:var(--f1-dark,#171b22); font-size:.84rem; }
.community-board { margin-top:1.4rem; }
.community-board h3 { margin:0 0 .6rem; color:var(--f1-dark,#171b22); font-size:1.05rem; }
.community-board table { width:100%; border-collapse:collapse; font-size:.82rem; }
.community-board th,.community-board td { padding:.65rem .55rem; border-bottom:1px solid var(--f1-border,#e0e4ea); text-align:left; }
.community-board th { color:var(--f1-gray,#687386); font-size:.69rem; text-transform:uppercase; }
.community-board td:first-child,.community-board td:last-child { font-weight:850; }
.community-board .is-me { background:rgba(225,6,0,.06); }
.community-board-empty,.community-loading { margin:0; padding:.9rem 0; color:var(--f1-gray,#687386); }
.community-rules h2 { margin-top:0; }
.community-rule-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6rem; }
.community-rule-grid article { display:grid; gap:.2rem; padding:.75rem; border:1px solid var(--f1-border,#e0e4ea); border-radius:10px; background:rgba(120,130,145,.04); }
.community-rule-grid strong { color:#e10600; font-size:1.05rem; }
.community-rule-grid span,.community-rules>p { color:var(--f1-gray,#687386); font-size:.8rem; }
.community-rules>p { margin:.9rem 0 0; }
html[data-theme="dark"] :is(.community-panel,.community-rules) { border-color:#353b46; background:#1c2027; box-shadow:none; }
html[data-theme="dark"] :is(.community-panel-heading h2,.community-rules h2,.community-pick,.community-lock,.community-board h3) { color:#edf0f5; }
html[data-theme="dark"] :is(.community-panel-heading p,.community-race-label,.community-message,.community-board-empty,.community-loading,.community-rule-grid span,.community-rules>p) { color:#b8c0cc; }
html[data-theme="dark"] .community-rule-grid article,html[data-theme="dark"] .community-login { border-color:#353b46; background:#20252d; }
html[data-theme="dark"] :is(.community-race-label select,.community-pick select) { border-color:#454d59; background:#171a20; color:#edf0f5; }
html[data-theme="dark"] .community-board :is(th,td) { border-color:#353b46; }
@media(max-width:700px) { .community-panel-heading { align-items:stretch; flex-direction:column; } .community-race-label { min-width:0; } .community-form-grid { grid-template-columns:1fr; } .community-rule-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:430px) { .community-page { gap:.8rem; padding-top:.8rem; } .community-rule-grid { grid-template-columns:1fr 1fr; } .community-board table { font-size:.74rem; } .community-board th,.community-board td { padding:.55rem .35rem; } }
.community-poll,.community-review { margin:0 0 1.25rem; padding:1rem; border:1px solid var(--f1-border,#e0e4ea); border-radius:13px; background:rgba(120,130,145,.035); }
.community-poll-heading,.community-review-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.community-poll h3,.community-review h3 { margin:0; color:var(--f1-dark,#171b22); font-size:1.05rem; }
.community-poll-heading p { margin:.25rem 0 0; color:var(--f1-gray,#687386); font-size:.8rem; }
.community-poll-total { flex:none; padding:.3rem .55rem; border-radius:999px; background:rgba(225,6,0,.08); color:#c50000; font-size:.75rem; font-weight:800; }
.community-poll-results,.community-review ul { display:grid; gap:.55rem; margin:.8rem 0; padding:0; list-style:none; }
.community-poll-row { display:grid; gap:.28rem; }
.community-poll-row>div { display:flex; justify-content:space-between; gap:.75rem; font-size:.78rem; }
.community-poll-row>div span { color:var(--f1-gray,#687386); text-align:right; }
.community-poll-track { display:block; height:7px; overflow:hidden; border-radius:999px; background:rgba(120,130,145,.16); }
.community-poll-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#e10600,#ff625d); }
.community-vote-form { display:grid; grid-template-columns:minmax(180px,1fr) auto minmax(0,1fr); align-items:end; gap:.65rem; }
.community-poll-locked { margin:.75rem 0 0; color:var(--f1-gray,#687386); font-size:.82rem; }
.community-table-wrap { width:100%; overflow-x:auto; }
.community-season-board { padding-top:1rem; border-top:1px solid var(--f1-border,#e0e4ea); }
.community-review { margin-top:1.25rem; margin-bottom:0; border-color:rgba(225,6,0,.22); }
.community-review-heading { align-items:center; }
.community-review-heading>strong { color:#d10600; font-size:.85rem; }
.community-review-item { display:grid; grid-template-columns:24px minmax(100px,.8fr) minmax(180px,1.5fr) auto; align-items:center; gap:.55rem; padding:.55rem .6rem; border:1px solid var(--f1-border,#e0e4ea); border-radius:9px; background:var(--f1-white,#fff); font-size:.8rem; }
.community-review-item.is-correct { border-left:3px solid #18824b; }
.community-review-item.is-wrong { border-left:3px solid #b9c0ca; }
.community-review-mark { display:grid; place-items:center; width:21px; height:21px; border-radius:50%; background:rgba(120,130,145,.12); font-weight:900; }
.community-review-item.is-correct .community-review-mark { background:rgba(24,130,75,.12); color:#147443; }
.community-review-label,.community-review-item>strong { color:var(--f1-dark,#171b22); font-weight:800; }
.community-review-picks { display:grid; gap:.12rem; color:var(--f1-gray,#687386); }
.community-review-picks small { font-size:.74rem; }
html[data-theme="dark"] :is(.community-poll,.community-review) { border-color:#353b46; background:#20252d; }
html[data-theme="dark"] :is(.community-poll h3,.community-review h3,.community-review-label,.community-review-item>strong) { color:#edf0f5; }
html[data-theme="dark"] :is(.community-poll-heading p,.community-poll-row>div span,.community-poll-locked,.community-review-picks) { color:#b8c0cc; }
html[data-theme="dark"] .community-review-item { border-color:#353b46; background:#1a1e25; }
@media(max-width:650px) { .community-vote-form { grid-template-columns:minmax(0,1fr) auto; } .community-vote-form .community-message { grid-column:1/-1; } .community-review-item { grid-template-columns:24px minmax(0,1fr) auto; } .community-review-picks { grid-column:2/4; } }
@media(max-width:430px) { .community-poll,.community-review { padding:.75rem; } .community-poll-heading,.community-review-heading { flex-direction:column; } .community-review-item { font-size:.76rem; } }
.community-history,.community-insight { margin-top:1.2rem; padding:1rem; border:1px solid var(--f1-border,#e0e4ea); border-radius:13px; background:rgba(120,130,145,.035); }
.community-history h3,.community-insight h3 { margin:0 0 .7rem; color:var(--f1-dark,#171b22); font-size:1.05rem; }
.community-history-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; }
.community-history-stats article { display:grid; gap:.25rem; padding:.75rem; border:1px solid var(--f1-border,#e0e4ea); border-radius:10px; background:var(--f1-white,#fff); }
.community-history-stats span,.community-history-hits { color:var(--f1-gray,#687386); font-size:.76rem; }
.community-history-stats strong { color:#df0800; font-size:1.35rem; }
.community-history-hits { display:flex; flex-wrap:wrap; gap:.45rem; margin:.7rem 0; }
.community-history-hits span { padding:.3rem .5rem; border-radius:999px; background:rgba(120,130,145,.09); }
.community-history-details { border-top:1px solid var(--f1-border,#e0e4ea); padding-top:.6rem; }
.community-history-details summary { color:var(--f1-dark,#171b22); font-size:.8rem; font-weight:750; cursor:pointer; }
.community-insight { border-color:rgba(225,6,0,.25); background:linear-gradient(135deg,rgba(225,6,0,.045),rgba(120,130,145,.035)); }
.community-insight-heading { display:flex; justify-content:space-between; gap:.8rem; }
.community-insight-heading h3 { margin-bottom:.2rem; }
.community-insight-heading p { margin:0; color:var(--f1-gray,#687386); font-size:.8rem; }
.community-insight-tag { align-self:flex-start; padding:.28rem .48rem; border-radius:999px; background:#e10600; color:#fff; font-size:.65rem; font-weight:850; letter-spacing:.06em; }
.community-insight-podium { margin-top:.8rem; padding:.75rem; border-radius:10px; background:var(--f1-white,#fff); }
.community-insight-podium>strong { color:var(--f1-gray,#687386); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; }
.community-insight-podium ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; margin:.5rem 0 .25rem; padding:0; list-style:none; }
.community-insight-podium li { display:flex; align-items:center; gap:.45rem; min-width:0; padding:.55rem; border:1px solid var(--f1-border,#e0e4ea); border-radius:8px; }
.community-insight-podium li b { color:#e10600; }
.community-insight-podium li span { overflow:hidden; color:var(--f1-dark,#171b22); font-size:.8rem; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.community-insight-podium small { color:var(--f1-gray,#687386); font-size:.72rem; }
.community-insight-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; margin:.6rem 0 0; padding:0; list-style:none; }
.community-insight-facts li { display:grid; gap:.18rem; padding:.65rem; border:1px solid var(--f1-border,#e0e4ea); border-radius:9px; background:var(--f1-white,#fff); }
.community-insight-facts li strong { color:var(--f1-gray,#687386); font-size:.7rem; }
.community-insight-facts li span { color:var(--f1-dark,#171b22); font-size:.82rem; font-weight:750; }
html[data-theme="dark"] :is(.community-history,.community-insight) { border-color:#353b46; background:#20252d; }
html[data-theme="dark"] :is(.community-history h3,.community-history-details summary,.community-insight h3,.community-insight-podium li span,.community-insight-facts li span) { color:#edf0f5; }
html[data-theme="dark"] :is(.community-history-stats article,.community-insight-podium,.community-insight-facts li) { border-color:#353b46; background:#1a1e25; }
html[data-theme="dark"] :is(.community-history-stats span,.community-history-hits,.community-insight-heading p,.community-insight-podium>strong,.community-insight-podium small,.community-insight-facts li strong) { color:#b8c0cc; }
html[data-theme="dark"] .community-history-details { border-color:#353b46; }
@media(max-width:600px) { .community-insight-podium ol { grid-template-columns:1fr; } .community-insight-facts { grid-template-columns:1fr; } }

/* Chargement de la communauté : indicateur compact plutôt qu’un texte immobile. */
.community-loading { display:flex; align-items:center; gap:.65rem; min-height:2.5rem; }
.community-loading::before { width:1rem; height:1rem; flex:0 0 1rem; border:2px solid #d7dce4; border-top-color:#e10600; border-radius:50%; content:""; animation:community-spin .7s linear infinite; }
@keyframes community-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .community-loading::before { animation:none; border-right-color:#e10600; } }
/* Affichage immédiat des tendances et du nombre de participants. */
.community-poll-heading { align-items:center; }
.community-poll-total,.community-participant-count { display:inline-flex; align-items:center; justify-content:center; max-width:100%; padding:.4rem .65rem; border:1px solid rgba(225,6,0,.2); border-radius:999px; background:rgba(225,6,0,.07); color:#a5100c; font-size:.75rem; font-weight:800; text-align:center; }
.community-poll-trend { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.5fr) auto; align-items:center; gap:.3rem .75rem; margin:.75rem 0; padding:.7rem .8rem; border:1px solid rgba(225,6,0,.2); border-left:3px solid #e10600; border-radius:10px; background:rgba(225,6,0,.045); }
.community-poll-trend span { color:#a5100c; font-size:.7rem; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.community-poll-trend strong { min-width:0; overflow-wrap:anywhere; color:var(--f1-dark,#171b22); font-size:.9rem; }
.community-poll-trend small { color:var(--f1-gray,#687386); font-size:.75rem; text-align:right; }
.community-board-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.6rem; }
.community-board-heading h3 { margin:0; }
.community-board .community-participant-count { margin-bottom:.55rem; }
.community-board-heading .community-participant-count { margin:0; }
html[data-theme="dark"] :is(.community-poll-total,.community-participant-count) { border-color:#71353a; background:#382226; color:#ffb5b1; }
html[data-theme="dark"] .community-poll-trend { border-color:#633338; border-left-color:#ff514b; background:#2a1d22; }
html[data-theme="dark"] .community-poll-trend span { color:#ff918b; }
html[data-theme="dark"] .community-poll-trend strong { color:#f2f4f7; }
html[data-theme="dark"] .community-poll-trend small { color:#bac2cf; }
@media(max-width:520px) { .community-poll-trend { grid-template-columns:1fr; gap:.2rem; } .community-poll-trend small { text-align:left; } .community-board-heading { align-items:flex-start; flex-direction:column; } }