/* France Collège — défis de classe (élève, professeur, famille). Animations sobres, désactivées si « réduire les animations ». */
.tabs6.tabs7{grid-template-columns:repeat(7,1fr)}
@media(max-width:760px){.tabs6.tabs7{grid-template-columns:1fr 1fr}}

.df-list{display:grid;gap:16px;margin-top:6px}
.df-card{border:1px solid #dbe3ef;border-radius:18px;background:#fff;padding:16px 18px;box-shadow:0 6px 18px rgba(23,105,215,.06);animation:df-in .35s ease-out both}
.df-card h3{margin:0 0 4px;font-size:20px;line-height:1.25;overflow-wrap:anywhere}
.df-meta{color:#5f6d85;font-size:14px;margin:0 0 10px;line-height:1.45}
.df-pill{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:800;background:#eaf3ff;color:#1769d7;margin-right:6px;white-space:nowrap}
.df-pill.on{background:#e7f8ee;color:#137a3e}
.df-pill.wait{background:#fff4e0;color:#9a5a00}
.df-pill.done{background:#eef0f4;color:#4a5568}
.df-pill.inv{background:#fdeaf3;color:#a3195b}

/* Barre de progression (défi collectif) */
.df-bar{position:relative;height:18px;border-radius:999px;background:#eef2f8;overflow:hidden;margin:8px 0 4px}
.df-bar>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#1769d7,#3fb5ff);transition:width .9s cubic-bezier(.2,.7,.2,1)}
.df-bar.ok>span{background:linear-gradient(90deg,#18a058,#5fd38d)}
.df-bar-txt{display:flex;justify-content:space-between;gap:8px;font-size:14px;color:#33415c;flex-wrap:wrap}

/* Podium des classes */
.df-podium{display:flex;align-items:flex-end;justify-content:center;gap:8px;margin:14px 0 6px;min-height:150px}
.df-step{flex:1 1 0;max-width:150px;min-width:0;text-align:center;display:flex;flex-direction:column;justify-content:flex-end}
.df-step .df-cl{font-weight:900;font-size:15px;overflow-wrap:anywhere;line-height:1.2}
.df-step .df-sc{font-size:13px;color:#5f6d85;margin-bottom:4px}
.df-step .df-blk{border-radius:12px 12px 4px 4px;color:#fff;font-weight:1000;font-size:24px;display:flex;align-items:flex-start;justify-content:center;padding-top:6px;transform-origin:bottom;animation:df-rise .6s ease-out both}
.df-step.r1 .df-blk{height:84px;background:linear-gradient(180deg,#f5b700,#e09b00)}
.df-step.r2 .df-blk{height:62px;background:linear-gradient(180deg,#9fb0c8,#7d8ea8);animation-delay:.1s}
.df-step.r3 .df-blk{height:46px;background:linear-gradient(180deg,#d08a4f,#b26a2f);animation-delay:.2s}
.df-step.mine .df-cl{color:#1769d7}
.df-step.mine .df-blk{box-shadow:0 0 0 3px #1769d7 inset}
.df-rest{list-style:none;padding:0;margin:6px 0 0;font-size:14px}
.df-rest li{display:flex;justify-content:space-between;gap:8px;padding:5px 2px;border-bottom:1px dashed #e3e9f3}
.df-rest li.mine{font-weight:800;color:#1769d7}

.df-me{display:flex;align-items:center;gap:12px;background:#f5f9ff;border-radius:14px;padding:10px 12px;margin-top:12px;flex-wrap:wrap}
.df-me .df-big{font-size:26px;font-weight:1000;color:#1769d7;line-height:1}
.df-me.won{background:#fff8e1}
.df-rank{width:100%;border-collapse:collapse;font-size:14px;margin-top:8px}
.df-rank td{padding:6px 4px;border-bottom:1px solid #eef2f8}
.df-rank td:first-child{width:38px;font-weight:900;color:#1769d7}
.df-rank td:last-child{text-align:right;white-space:nowrap}
.df-rank tr.me td{background:#eaf3ff;font-weight:800}
.df-rank .anon{color:#5f6d85;font-style:italic}
details.df-more{margin-top:10px}
details.df-more summary{cursor:pointer;font-weight:800;color:#1769d7}

/* Professeur */
.df-form{border:1px dashed #b8c8e2;border-radius:16px;padding:14px 16px;margin-top:16px;background:#fbfdff}
.df-form .form-row{display:flex;flex-wrap:wrap;gap:10px}
.df-form .field{flex:1 1 180px;min-width:0}
.df-checks{display:flex;flex-wrap:wrap;gap:6px 14px;margin:6px 0 10px}
.df-checks label{display:flex;gap:6px;align-items:center;font-size:15px}
.df-students{width:100%;border-collapse:collapse;font-size:14px;margin-top:6px}
.df-students th,.df-students td{text-align:left;padding:5px 6px;border-bottom:1px solid #eef2f8}
.df-students td.n{text-align:right}
.df-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.df-live{font-size:12.5px;color:#5f6d85}
.df-live::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#18a058;margin-right:6px;animation:df-pulse 2s ease-in-out infinite}

/* Famille */
.df-fam{margin-top:14px}
.df-fam h4{margin:0 0 6px}

@keyframes df-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes df-rise{from{transform:scaleY(.15);opacity:.4}to{transform:scaleY(1);opacity:1}}
@keyframes df-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.df-card,.df-step .df-blk,.df-live::before{animation:none}.df-bar>span{transition:none}}
@media(max-width:420px){.df-card{padding:14px 12px}.df-step .df-cl{font-size:13px}.df-step .df-blk{font-size:20px}.df-podium{gap:5px}}

/* Classement : 4e onglet « Défis de classe » (lien vers defis.html) */
.acct-tabs.df-tabs4{grid-template-columns:repeat(4,1fr)}
.acct-tabs a.df-tablink{display:flex;align-items:center;justify-content:center;text-align:center;border-radius:14px;padding:13px 10px;font-weight:1000;font-size:15px;color:#a3195b;background:#fdeaf3;text-decoration:none}
.acct-tabs a.df-tablink:hover,.acct-tabs a.df-tablink:focus-visible{background:#fbd6e8}
@media(max-width:620px){.acct-tabs.df-tabs4{grid-template-columns:1fr 1fr}}

.tabs6.tabs7.tabs8{grid-template-columns:repeat(8,1fr)}
@media(max-width:900px){.tabs6.tabs7.tabs8{grid-template-columns:repeat(4,1fr)}}
@media(max-width:560px){.tabs6.tabs7.tabs8{grid-template-columns:1fr 1fr}}
.tr-form{display:grid;grid-template-columns:1fr 200px;gap:10px 14px;margin:10px 0 18px;align-items:end}
.tr-form .tr-subjects,.tr-form button{grid-column:1/-1}
.tr-subjects{border:1px solid #dbe3ef;border-radius:14px;padding:10px 14px}
.tr-subjects>div{display:flex;flex-wrap:wrap;gap:6px 16px}
.tr-subjects label{display:flex;gap:6px;align-items:center;font-weight:600}
@media(max-width:640px){.tr-form{grid-template-columns:1fr}}
.tr-bracket{display:flex;gap:12px;overflow-x:auto;margin-top:8px}
.tr-round{min-width:160px;display:flex;flex-direction:column;justify-content:space-around;gap:8px}
.tr-round h4{margin:0;text-align:center;font-size:14px;color:#5f6d85}
.tr-match{border:1px solid #dbe3ef;border-radius:10px;font-size:13.5px;overflow:hidden}
.tr-match span{display:block;padding:5px 9px}
.tr-match span+span{border-top:1px solid #eef2f8}
.tr-match .w{background:#e7f8ee;font-weight:800;color:#137a3e}
.af-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:14px}
.af-stats>div{background:#f5f8fd;border-radius:14px;padding:10px;text-align:center}
.af-stats strong{display:block;font-size:24px}
.af-stats small{color:#5f6d85}
@media(max-width:760px){.af-stats{grid-template-columns:repeat(3,1fr)}}
.af-fam{border:1px solid #dbe3ef;border-radius:16px;padding:12px 14px;margin-top:12px;background:#fff}
.af-fam.flag{border-color:#f5a524;background:#fffaf0}
.af-fam.susp{border-color:#d62828;background:#fff5f5}
.af-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.af-sig{color:#a3195b;font-weight:700}
.af-kids{margin:8px 0 0;padding-left:8px;list-style:none;display:grid;gap:6px}
.af-kids li{background:#f7f9fc;border-radius:10px;padding:6px 10px;font-size:14.5px}
.af-ok{color:#137a3e;font-weight:700}
