/* ÉduPHARE 0.9.8 : interface Grist alignée sur la démonstration, sans l'ancien backend. */
:root{--edp-navy:#142e54;--edp-ink:#203854;--edp-teal:#148696;--edp-muted:#718397;--edp-line:#e2eaf2;--edp-bg:#f3f6fa}
html,body{min-height:100%;}
body{margin:0;padding:0;max-width:none;color:var(--edp-ink);background:var(--edp-bg);font-size:14px}
.edp-app{display:flex;min-height:100vh;align-items:stretch}
.edp-app button{transition:background .13s,border-color .13s}
.edp-sidebar{position:sticky;top:0;align-self:flex-start;height:100vh;width:258px;min-width:258px;display:flex;flex-direction:column;background:linear-gradient(170deg,#1c3b67 0%,#0e2748 100%);color:#f5fbff;padding:22px 17px 15px;z-index:24}
.edp-brand{display:flex;align-items:center;gap:12px;padding:4px 7px 29px}
.edp-brand img{border-radius:12px}
.edp-brand strong{display:block;color:#fff;font-size:22px;letter-spacing:-.6px}
.edp-brand small{display:block;font-size:11px;color:#b1c9de;margin-top:2px}
.edp-school{background:#2b4c75;border:1px solid #47648a;border-radius:13px;padding:15px 12px;display:flex;align-items:center;gap:10px;margin:0 1px 26px}
.edp-school>span{color:#72d6e4;font-size:27px}
.edp-school small{display:block;color:#b1cedd;letter-spacing:.11em;font-size:9px}
.edp-school b{font-size:12px;display:block;margin-top:4px;line-height:1.4}
.edp-sidebar nav{display:flex;flex-direction:column;flex-wrap:nowrap;gap:7px;padding:0;margin:0;background:transparent;border:0;position:static;box-shadow:none;overflow:visible}
.edp-sidebar nav .tab{width:100%;min-height:46px;border:1px solid transparent;background:transparent;color:#d3e2f0;text-align:left;display:flex;align-items:center;gap:12px;font-size:13px;padding:11px 12px;border-radius:10px;white-space:normal}
.edp-sidebar nav .tab span{font-size:20px;width:23px;flex:none;text-align:center;line-height:1}
.edp-sidebar nav .tab:hover{background:#31557d;color:#fff}
.edp-sidebar nav .tab.active{background:#30547d;color:#fff;border-color:#71ccd5;box-shadow:inset 0 0 0 1px #71ccd5}
.edp-sidebar nav .tab em{font-style:normal;margin-left:auto;font-size:11px;padding:3px 7px;background:#20466d;border-radius:100px}
.edp-sidebar-bottom{margin-top:auto;padding-top:12px;border-top:1px solid #37567a}
.edp-grist-account strong,.edp-grist-account small{display:block}
.edp-grist-account strong{font-size:12px}
.edp-grist-account small{font-size:11px;color:#acc5dc;margin-top:3px}
.edp-grist-account{display:flex;gap:10px;align-items:center;background:#284970;padding:12px;border:1px solid #416287;border-radius:12px}
.edp-avatar{width:36px;height:36px;flex:none;border-radius:10px;background:#a7e5e3;color:#14516d;font-weight:800;display:grid;place-items:center;font-size:17px}
.edp-main-wrapper{flex:1;min-width:0;display:flex;flex-direction:column}
.edp-topbar{background:#fff;height:72px;border-bottom:1px solid var(--edp-line);display:flex;justify-content:space-between;align-items:center;padding:0 38px;gap:15px}
.edp-breadcrumbs{display:flex;align-items:center;gap:13px;color:#75879b;font-size:13px}
.edp-breadcrumbs strong{color:#1d395c}
.edp-breadcrumbs #menuButton{display:none}
.edp-topbar-actions{display:flex;gap:12px;align-items:center}
.edp-connection{display:inline-flex;align-items:center;gap:8px;border-radius:999px;color:#167a68;background:#ebf9f6;font-weight:700;font-size:12px;padding:9px 12px;white-space:nowrap}
.edp-status-dot{width:8px;height:8px;background:#2fbd93;border-radius:100%}
.edp-refresh{background:#fff;color:#375b7b;border:1px solid #dce7ef;padding:9px 13px;font-size:12px;min-height:38px}
.edp-refresh:hover{background:#f2f7fb}
.edp-main-body{flex:1;min-width:0;padding:24px 36px 30px}
.edp-main-body #workspace{min-width:0}
.edp-main-body #view{outline:0}
.edp-main-body .notice{margin:0 0 20px;border:1px solid #d8e7f3;background:#edf6fb;color:#276080;padding:12px 15px;font-size:12px}
.edp-main-body .notice.ok{background:#edf8f5;border-color:#d9f0e9;color:#247461}
.edp-main-body .notice.error{background:#fff1ee;border-color:#f4dbd5;color:#a53a2a}
.edp-main-body .panel{margin:25px 0;max-width:790px}
.edp-page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:7px 0 28px}
.edp-eyebrow{font-size:12px;letter-spacing:.13em;font-weight:800;color:#70869d;margin:0 0 7px}
.edp-page-heading h1{font-size:29px;letter-spacing:-.65px;margin:0 0 8px;color:#162f50}
.edp-subtitle{color:#75889b;font-size:13px;margin:0}
.edp-primary-action{background:#168496;padding:13px 20px;border-radius:10px;font-weight:750;white-space:nowrap}
.edp-primary-action:hover{background:#0d7285}
.edp-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:28px}
.edp-summary-card{position:relative;min-height:166px;background:#fff;color:var(--edp-ink);text-align:left;border:1px solid #e1eaf2;border-radius:16px;padding:24px 20px 20px;box-shadow:0 10px 35px rgba(20,55,90,.05);display:flex;flex-direction:column;align-items:flex-start}
.edp-summary-card:hover{border-color:#74c6cf;box-shadow:0 12px 30px #204e8021}
.edp-summary-card>span:first-child{font-size:12px;color:#6e8095;font-weight:650;padding-right:39px;min-height:20px}
.edp-summary-card strong{font-size:33px;margin-top:16px;line-height:1.15;color:#172e4b}
.edp-summary-card small{display:block;color:#8a9aaa;font-size:11px;margin-top:8px}
.edp-kpi-icon{position:absolute;right:18px;top:21px;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#e9f4fb;color:#2f74a7;font-size:22px}
.edp-kpi-icon.edp-teal{background:#e9f8f5;color:#138f8b}
.edp-kpi-icon.edp-amber{background:#fff3e3;color:#b88534}
.edp-kpi-icon.edp-violet{background:#f1eefd;color:#7765b6}
.edp-dashboard-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:20px}
.edp-list-panel{background:#fff;border:1px solid #e0e8f0;border-radius:17px;overflow:hidden;box-shadow:0 10px 35px rgba(20,55,90,.042)}
.edp-list-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px 22px;border-bottom:1px solid #eaf0f5}
.edp-list-head h2{font-size:16px;margin:0;color:#1b3858}
.edp-text-link{background:transparent;color:#087e91;border:0;min-height:auto;font-size:12px;font-weight:750;padding:5px 0;white-space:normal}
.edp-case-row,.edp-upcoming-row{display:flex;align-items:center;gap:13px;width:100%;text-align:left;color:#1d3755;background:#fff;border:0;border-bottom:1px solid #eef2f6;padding:15px 20px;border-radius:0;min-height:73px;font-weight:normal}
.edp-case-row:hover,.edp-upcoming-row:hover{background:#f6fbfd}
.edp-case-row .student-avatar{height:43px;width:43px;border-radius:13px;background:#e2f0f6;color:#286983}
.edp-row-details{flex:1;min-width:0}
.edp-row-details strong{display:block;font-size:13px;color:#28415f}
.edp-row-details small{display:block;color:#8a9caf;font-size:11px;margin-top:6px;line-height:1.4}
.edp-row-arrow{color:#a2b4c7;font-size:23px;line-height:1}
.edp-case-row .case-status{white-space:nowrap;background:#e6f7f3;color:#1a826a;border:1px solid #caebe3;border-radius:99px;padding:7px 12px}
.edp-case-row .case-status.status-en_suivi{background:#fff8e8;color:#ae842b;border-color:#f5e5bd}
.edp-date-box{flex:none;width:45px;min-height:43px;background:#eff6fa;border-radius:10px;display:grid;place-items:center;font-weight:800;color:#1f6d85;font-size:12px}
.edp-empty{padding:29px 22px;color:#8294a5;font-size:12px;line-height:1.6;margin:0}
.edp-list-foot{padding:14px 22px;display:flex;align-items:center;justify-content:flex-end}
.edp-list-foot .edp-small-muted{color:#8091a1;font-size:11px;text-align:right}
.edp-dashboard-bottom{margin-top:20px}
.edp-attention .edp-attention-items{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:17px 22px}
.edp-attention-items button{color:#2b526e;background:#f6f9fc;border:1px solid #e8edf3;padding:14px;text-align:left;border-radius:10px}
.edp-attention-items button strong{display:block;color:#1b4b75;font-size:21px}
.edp-attention-items button span{display:block;margin-top:6px;font-size:11px;color:#617c91}
.edp-security-note{font-size:11px;color:#8292a2;margin-top:17px;line-height:1.5}
/* pages métier historiques : les vues restent entièrement opérationnelles et héritent des mêmes surfaces */
.edp-main-body .card{border-color:#e0e8f0;border-radius:14px;box-shadow:0 4px 15px #1c456509;margin:15px 0;padding:22px}
.edp-main-body #view>h2{font-size:24px;letter-spacing:-.4px;color:#1c3655;margin:6px 0 19px}
.edp-main-body .case-tile{box-shadow:0 6px 19px #1c45650d}
.edp-main-body .case-tile:hover{border-color:#90c4d5}
.edp-main-body #view button.secondary{background:#edf3f8;color:#20547c}
.edp-main-body #view button.secondary:hover{background:#dcecf6}
.edp-main-body input:focus-visible,.edp-main-body select:focus-visible{outline:3px solid #80d1dc}
.edp-main-wrapper footer{margin:0 36px 16px;background:transparent}
.edp-main-wrapper .eduphare-site-footer{border-top:1px solid #e1e9f2}
#menuBackdrop[hidden]{display:none!important}
#menuBackdrop{position:fixed;inset:0;background:#11274385;z-index:20}
@media(max-width:1160px){
  .edp-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .edp-topbar{padding:0 24px}
  .edp-main-body{padding:23px 23px}
  .edp-main-wrapper footer{margin-left:23px;margin-right:23px}
}
@media(max-width:870px){
  .edp-sidebar{position:fixed;left:0;top:0;transform:translateX(-105%);transition:transform .2s ease;box-shadow:5px 0 25px #081b354d}
  .edp-sidebar.edp-sidebar-open{transform:translateX(0)}
  .edp-breadcrumbs #menuButton{display:inline-flex;background:transparent;border:0;color:#294b6a;font-size:22px;padding:5px;min-height:36px}
  .edp-topbar{height:64px}
  .edp-main-body{padding:20px 19px}
  .edp-dashboard-columns{grid-template-columns:1fr}
  .edp-main-wrapper footer{margin-left:18px;margin-right:18px}
  .edp-sidebar nav{position:static;overflow:visible;box-shadow:none}
  .edp-sidebar nav .tab{flex:initial}
}
@media(max-width:600px){
  .edp-topbar{padding:0 15px}
  .edp-breadcrumbs{gap:7px;font-size:12px}
  .edp-connection{font-size:0;padding:9px}
  .edp-connection .edp-status-dot{width:9px;height:9px}
  .edp-refresh{font-size:11px;padding:8px}
  .edp-main-body{padding:15px 12px}
  .edp-page-heading{align-items:flex-start;flex-direction:column;margin:7px 0 21px}
  .edp-page-heading h1{font-size:25px}
  .edp-primary-action{width:100%}
  .edp-summary-grid{gap:10px;margin-bottom:18px}
  .edp-summary-card{min-height:144px;padding:15px 12px;border-radius:12px}
  .edp-summary-card>span:first-child{font-size:11px}
  .edp-summary-card strong{font-size:26px;margin-top:15px}
  .edp-summary-card small{font-size:10px}
  .edp-kpi-icon{right:10px;top:12px;width:29px;height:29px;font-size:17px}
  .edp-list-head{padding:15px 14px}
  .edp-list-head h2{font-size:14px}
  .edp-case-row,.edp-upcoming-row{padding:12px 13px;gap:9px}
  .edp-case-row .student-avatar{width:36px;height:36px}
  .edp-row-details strong{font-size:12px}
  .edp-row-details small{font-size:10px}
  .edp-case-row .case-status{font-size:10px;padding:5px 7px}
  .edp-attention .edp-attention-items{grid-template-columns:1fr;padding:12px}
  .edp-main-body .card{padding:15px}
  .edp-main-wrapper footer{margin:0 12px 14px}
}
/* Correction du pied de page de l’ancien widget : plus de navigation mobile flottante. */
.edp-main-wrapper>.eduphare-site-footer{width:auto;min-width:0;flex:none;box-shadow:none}
.edp-main-wrapper>.eduphare-site-footer nav.eduphare-site-footer__links{position:static;bottom:auto;z-index:auto;display:flex;flex-wrap:wrap;overflow:visible;box-shadow:none;border-radius:0;background:transparent;gap:7px 18px;margin:12px 0 0;padding:11px 0 0;border-width:1px 0 0;border-style:solid;border-color:#e3eaf2}
@media(max-width:650px){.edp-main-wrapper>.eduphare-site-footer nav.eduphare-site-footer__links{gap:10px 17px}}

/* V0.9.10 : vrais entretiens à planifier, cliquables. */
.edp-suggestions-panel{scroll-margin-top:20px;outline:none}
.edp-suggestions-panel:focus-visible{outline:3px solid #80d1dc;outline-offset:3px}
.edp-suggestion-list{display:grid;gap:11px;margin-top:17px}
.edp-suggestion-row{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid #e2eaf1;background:#fafcfe;border-radius:11px}
.edp-suggestion-description{min-width:0;flex:1}
.edp-suggestion-description b{display:block;color:#1b3957;font-size:14px}
.edp-suggestion-description p{margin:6px 0;color:#365b76;font-size:13px}
.edp-suggestion-description small{display:block;margin-top:5px;color:#647e92;line-height:1.4}
.edp-suggestion-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:125px}
.edp-suggestion-actions button{font-size:12px;min-height:36px;white-space:normal}
.edp-list-foot .edp-suggest-link{white-space:normal;text-align:right;max-width:100%}
@media(max-width:650px){
  .edp-suggestion-row{flex-direction:column;align-items:stretch}
  .edp-suggestion-actions{flex-direction:row}
  .edp-suggestion-actions button{flex:1}
}

/* V2.2.0 : more room for records, without scaling text or hiding feedback. */
.edp-sidebar{width:220px;min-width:220px;padding:14px 12px;overflow-y:auto}
.edp-brand{gap:10px;padding:2px 6px 16px}
.edp-brand img{width:40px;height:40px}
.edp-brand strong{font-size:20px}
.edp-school{padding:10px;margin-bottom:14px}
.edp-sidebar nav{gap:4px}
.edp-sidebar nav .tab{min-height:42px;padding:8px 10px;gap:9px}
.edp-grist-account{padding:9px}
.edp-topbar{height:auto;min-height:52px;padding:7px 22px;gap:10px;flex-wrap:wrap}
.edp-main-body{padding:14px 22px 20px}
.edp-main-body .notice{margin-bottom:12px;padding:9px 12px}
.edp-main-body .notice:empty{display:none}
.edp-page-heading{margin:0 0 14px;gap:12px}
.edp-eyebrow{display:none}
.edp-page-heading h1{font-size:24px;margin-bottom:4px}
.edp-primary-action{padding:10px 15px}
.edp-summary-grid{gap:12px;margin-bottom:16px}
.edp-summary-card{min-height:112px;padding:15px 14px;border-radius:12px}
.edp-summary-card strong{font-size:30px;margin-top:8px}
.edp-summary-card small{margin-top:5px}
.edp-kpi-icon{right:12px;top:12px;width:30px;height:30px;font-size:19px}
.edp-dashboard-columns{gap:14px}
.edp-list-head{padding:13px 16px}
.edp-case-row,.edp-upcoming-row{padding:11px 15px;min-height:62px}
.edp-empty{padding:18px 16px}
.edp-list-foot{padding:10px 16px}
.edp-dashboard-bottom{margin-top:14px}
.edp-main-wrapper footer{margin-left:22px;margin-right:22px}
@media(min-width:1050px){.edp-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:870px){
  .edp-main-body{padding:12px 16px}
  .edp-topbar{padding:6px 16px}
}
@media(max-width:600px){
  .edp-main-body{padding:12px}
  .edp-topbar{padding:6px 12px}
  .edp-breadcrumbs>span{display:none}
  .edp-breadcrumbs{gap:5px}
  .edp-topbar-actions{gap:7px}
  .edp-page-heading{margin-bottom:14px;gap:10px}
  .edp-summary-card{min-height:116px;padding:13px 12px}
  .edp-summary-card>span:first-child{padding-right:27px}
  .edp-kpi-icon{right:9px;top:10px;width:25px;height:25px;font-size:16px}
  .edp-main-wrapper footer{margin-left:12px;margin-right:12px}
}

/* Tableau de bord : filtre métier uniquement, ne remplace pas les droits Grist. */
.dashboard-owner{display:block;padding:10px 16px;margin:0;border-bottom:1px solid #eaf0f5;font-weight:700;color:#31536a}
.dashboard-owner select{margin:6px 0 2px}
.dashboard-owner small{display:block;color:#687e92;font-weight:400;line-height:1.45}
.edp-dashboard-actions{display:flex;flex-direction:column;gap:6px;align-items:flex-end;flex-shrink:0}
.edp-upcoming-row.entretien-cible{background:#fff7d8;border-left:4px solid #c58a00}
.edp-upcoming-row.entretien-intimidateur{background:#eaf2ff;border-left:4px solid #4f7dd5}
@media(max-width:650px){
  .edp-dashboard-actions{align-items:stretch}
  .edp-upcoming-row{flex-wrap:wrap}
  .edp-dashboard-actions button{min-height:42px}
}
