/* SEG R307 — Espace étudiants only. Existing discussion, attachment and access engines preserved. */
body.r307-student-only{background:#fcfcfd;color:#163450}
body.r307-student-only .community-hero{width:min(1250px,calc(100% - 36px));max-width:1250px;min-height:168px;margin:24px auto 24px;padding:35px 37px;border:1px solid #e8dac8;border-radius:20px;background:linear-gradient(108deg,#fffdf9,#fff3e6 70%,#f6e2c8);box-shadow:0 7px 22px rgba(24,53,84,.054);display:flex;align-items:center;position:relative;overflow:hidden}
body.r307-student-only .community-hero::after{content:"";position:absolute;right:-32px;top:-90px;width:300px;height:270px;border:17px solid rgba(200,165,121,.13);border-radius:90px;transform:rotate(-24deg);pointer-events:none}
body.r307-student-only .community-hero h1{position:relative;z-index:1;margin:0;color:#123359;font-family:"Inter Tight","Inter",Arial,sans-serif;font-size:clamp(33px,4.3vw,54px);font-weight:800;line-height:1.16;letter-spacing:-.034em}
body.r307-student-only .community-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;max-width:1250px;width:min(1250px,calc(100% - 36px));gap:0;margin:0 auto;padding:0 0 60px;box-sizing:border-box}
body.r307-student-only .community-layout>div:first-child{min-width:0;width:100%;display:flex;flex-direction:column;gap:0}
body.r307-student-only .community-tabs{display:none!important}
body.r307-student-only .community-aside{display:none!important}
body.r307-student-only .community-filters{background:#fffefb;border:1px solid #d9e4ef;border-radius:18px;padding:19px 21px;box-shadow:0 7px 20px rgba(25,54,85,.05);display:grid;grid-template-columns:minmax(0,1.5fr) minmax(175px,.7fr);gap:15px;margin:0 0 10px;min-width:0}
body.r307-student-only .community-filters input,body.r307-student-only .community-filters select{min-width:0;max-width:100%;width:100%;min-height:51px;border:1px solid #d2dfed;border-radius:12px;background:#fff;font:inherit;color:#244462;font-size:14px;padding:11px 13px;box-sizing:border-box}
body.r307-student-only .community-filters :is(input,select):focus-visible{outline:2px solid #5b98d0;outline-offset:2px}
body.r307-student-only #student-tools{display:flex;justify-content:flex-end;align-items:center;margin:0 0 18px;min-height:42px;padding:0;background:transparent;border:0}
body.r307-student-only #student-tools[hidden]{display:none!important}
body.r307-student-only #student-sort{width:auto;max-width:100%;min-height:42px;padding:8px 36px 8px 13px;border-radius:11px;background:#f6f9fd;border:1px solid #dce7f1;color:#335777;font-size:13px;font-weight:700}
body.r307-student-only .student-compose{background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 13px}
body.r307-student-only .student-compose-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 11px;border:0;background:transparent;padding:0}
body.r307-student-only .student-compose-head h2{font-family:"Inter Tight","Inter",Arial,sans-serif;font-size:clamp(21px,2.5vw,27px);line-height:1.25;font-weight:800;letter-spacing:-.02em;color:#163655;margin:0}
body.r307-student-only .student-new-post{background:#174b83;color:#fff;border:1px solid #174b83;border-radius:12px;min-height:45px;white-space:normal;font-size:14px;font-weight:750;padding:11px 17px;box-shadow:0 2px 7px rgba(25,60,100,.13)}
body.r307-student-only .student-new-post:hover{background:#103965;color:#fff}
body.r307-student-only #student-post-form{background:#f4f9fe;border:1px solid #d8e5f1;border-radius:19px;padding:21px;margin:12px 0 18px;box-shadow:0 6px 19px rgba(25,60,89,.055)}
body.r307-student-only #student-post-form[hidden]{display:none!important}
body.r307-student-only #community-status{margin:0 0 7px;color:#54728c;font-size:14px}
body.r307-student-only #community-status:empty{display:none}
body.r307-student-only #community-posts{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px;align-items:start;min-width:0}
body.r307-student-only #community-posts .community-card{min-width:0;width:100%;height:auto;box-sizing:border-box;border:1px solid #dce7f0;border-radius:18px;padding:22px 23px;box-shadow:0 5px 17px rgba(23,53,87,.044);background:#fff}
body.r307-student-only #community-posts .community-card:nth-child(3n+2){background:#fbfdff}
body.r307-student-only #community-posts .community-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:0 0 12px;color:#617890}
body.r307-student-only #community-posts .community-chip{background:#eff5fd;border:1px solid #dbe8f5;color:#406180;border-radius:999px;padding:5px 9px;font-size:12px}
body.r307-student-only #community-posts .community-title{font-family:"Inter Tight","Inter",Arial,sans-serif;line-height:1.3;font-size:clamp(18px,2vw,21px);font-weight:800;color:#163757;margin:0 0 10px}
body.r307-student-only #community-posts .community-body{line-height:1.64;color:#415a74;overflow-wrap:anywhere}
body.r307-student-only #community-posts .community-replies{border-top:1px solid #e5edf4;margin-top:15px;padding-top:14px}
body.r307-student-only #community-posts :is(.community-reply-button,.community-share,.student-share){border-radius:10px;font-weight:750}
body.r307-student-only #community-posts .community-empty{border:1px dashed #d3e2ed;border-radius:15px;background:#f8fafc;padding:21px;color:#5d738a}
body.r307-student-only #community-posts .community-image{max-width:100%;height:auto;object-fit:contain}
body.r307-student-only .student-compose-head button:focus-visible,body.r307-student-only #student-sort:focus-visible{outline:2px solid #5b98d0;outline-offset:3px}
@media(max-width:760px){body.r307-student-only .community-hero{width:calc(100% - 28px);margin:16px auto 18px;padding:27px 22px;min-height:125px}body.r307-student-only .community-hero h1{font-size:34px}body.r307-student-only .community-layout{width:calc(100% - 28px);padding:0 0 46px}body.r307-student-only .community-filters{grid-template-columns:minmax(0,1fr);gap:11px;padding:16px}body.r307-student-only #community-posts .community-card{padding:19px}body.r307-student-only .student-compose-head h2{font-size:22px}}
@media(max-width:450px){body.r307-student-only .student-compose-head{align-items:stretch;gap:11px}body.r307-student-only .student-new-post{width:100%}body.r307-student-only #student-tools{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){body.r307-student-only *{scroll-behavior:auto!important;transition:none!important}}
