/* ===== V159 : habillage fidèle des maquettes (accueil du portail, espace parent, espace enseignant). Généré à partir des fichiers HTML fournis par l'école. ===== */
/* --- accueil du portail --- */
.lp{--navy:#0b3157;
  --navy-2:#123f6b;
  --blue:#1e5a93;
  --gold:#f2b51d;
  --gold-soft:#fff5cf;
  --ink:#142235;
  --muted:#68778b;
  --bg:#f4f7fb;
  --card:#ffffff;
  --line:#dce4ee;
  --radius:20px;
  --shadow:0 12px 35px rgba(14,42,70,.10);}
.lp{margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:var(--bg);}
.lp button,.lp a{font:inherit}
.lp a{text-decoration:none;color:inherit}
.lp .lp-container{width:min(1180px, calc(100% - 40px));margin:auto}
.lp .lp-icon svg,.lp .lp-modal-icon svg{width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;}
.lp .lp-modal-icon{width: 30px;
  height: 30px;
  display:inline-grid;
  place-items:center;
  color:var(--navy);
  vertical-align:middle;
  margin-right:8px;}
.lp .lp-modal-icon svg{width:25px;height:25px}
.lp .lp-login-role .lp-role-badge{display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:#edf4fb;
  color:var(--navy);
  font-size:12px;
  font-weight:850;
  margin-bottom:14px;}
.lp .lp-login-role h3{margin:0 0 8px;font-size:23px}
.lp .lp-login-role p{margin:0 0 20px;color:var(--muted);line-height:1.55}
.lp .lp-login-role label{display:block;margin:13px 0 7px;font-size:13px;font-weight:800;color:var(--ink)}
.lp .lp-login-role input{width:100%;padding:14px 15px;border:1px solid var(--line);
  border-radius:12px;outline:none;font-size:14px;background:#fbfcfe;}
.lp .lp-login-role input:focus{border-color:#7da0c2;box-shadow:0 0 0 3px rgba(30,90,147,.10)}
.lp .lp-login-submit{width:100%;margin-top:20px;border:0;border-radius:13px;
  background:var(--navy);color:#fff;padding:14px;font-weight:850;cursor:pointer;}
.lp .lp-back-choice{width:100%;margin-top:10px;border:0;background:transparent;color:var(--blue);
  padding:10px;font-weight:750;cursor:pointer;}
.lp header{position:sticky;top:0;z-index:30;
  background:rgba(11,49,87,.96);
  backdrop-filter:blur(14px);
  color:#fff;
  box-shadow:0 5px 20px rgba(7,25,45,.12);}
.lp .lp-nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px;}
.lp .lp-brand{display:flex;align-items:center;gap:12px;min-width:0}
.lp .lp-logo{width:46px;height:46px;border-radius:14px;
  background:#fff;display:grid;place-items:center;
  color:var(--navy);font-weight:900;font-size:14px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);}
.lp .lp-brand-text{line-height:1.05}
.lp .lp-brand-text strong{display:block;font-size:13px;letter-spacing:.3px}
.lp .lp-brand-text span{font-size:11px;opacity:.75}
.lp .lp-navlinks{display:flex;align-items:center;gap:26px;font-size:13px}
.lp .lp-navlinks a{opacity:.86;transition:.2s}
.lp .lp-navlinks a:hover{opacity:1}
.lp .lp-nav-cta{border:0;border-radius:12px;background:var(--gold);color:#142235;
  font-weight:800;padding:12px 18px;cursor:pointer;}
.lp .lp-menu-btn{display:none;background:transparent;border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:12px;padding:9px 11px}
.lp .lp-hero-photo{position:absolute;inset:0;
  
  background-size:cover;
  background-position:center 48%;}
.lp .lp-hero{position:relative;overflow:hidden;
  min-height:360px;
  display:flex;align-items:center;
  background:linear-gradient(105deg,#0a3158 0%,#123f6b 45%,#356c99 100%);}
.lp .lp-hero:before{content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 85% 25%,rgba(242,181,29,.28),transparent 22%),
    linear-gradient(90deg,rgba(6,31,55,.94) 0%,rgba(8,44,76,.82) 43%,rgba(14,62,101,.18) 100%);}
.lp .lp-hero-content{position:relative;z-index:2;padding:54px 0 58px;color:#fff;max-width:680px}
.lp .lp-eyebrow{display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:#ffe59a;margin-bottom:15px;}
.lp .lp-eyebrow:before{content:"";width:28px;height:3px;background:var(--gold);border-radius:9px}
.lp .lp-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.03;margin:0 0 15px;letter-spacing:-1.8px}
.lp .lp-hero h1 span{display:block;font-weight:500;font-size:.72em;letter-spacing:-.6px;margin-top:8px;color:#dbe8f5}
.lp .lp-hero p{max-width:570px;margin:0 0 25px;font-size:17px;line-height:1.7;color:#e4edf6}
.lp .lp-year{display:inline-flex;align-items:center;gap:8px;
  background:var(--gold);color:#18263a;border-radius:999px;
  padding:11px 16px;font-weight:850;font-size:13px;
  box-shadow:0 8px 24px rgba(0,0,0,.16);}
.lp .lp-announcement-wrap{position:relative;margin-top:-48px;z-index:5}
.lp .lp-announcement{background:var(--card);border:1px solid var(--line);border-radius:18px;
  box-shadow:var(--shadow);padding:20px 22px;
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;}
.lp .lp-ann-date{width:58px;height:58px;border-radius:14px;background:#eef4fa;
  display:grid;place-items:center;text-align:center;color:var(--navy);
  font-weight:900;line-height:1.05;font-size:12px;}
.lp .lp-ann-date b{display:block;font-size:20px}
.lp .lp-ann-title{font-weight:850;margin-bottom:5px}
.lp .lp-ann-text{font-size:13px;color:var(--muted);line-height:1.5}
.lp .lp-link-btn{border:0;background:none;color:var(--blue);font-weight:800;cursor:pointer}
.lp .lp-section{padding:54px 0 68px}
.lp .lp-section-head{text-align:center;max-width:680px;margin:0 auto 30px}
.lp .lp-section-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:var(--blue);font-weight:900}
.lp .lp-section h2{font-size:32px;letter-spacing:-.7px;margin:7px 0}
.lp .lp-section-head p{margin:0;color:var(--muted);line-height:1.6}
.lp .lp-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.lp .lp-access-card{background:#fff;border:1px solid var(--line);border-radius:22px;
  padding:30px;box-shadow:0 10px 30px rgba(14,42,70,.06);
  display:flex;align-items:center;gap:22px;transition:.22s;}
.lp .lp-access-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.lp .lp-icon{width:64px;height:64px;border-radius:18px;background:#eaf2fb;color:var(--navy);
  display:grid;place-items:center;font-size:30px;flex:0 0 auto;color:var(--navy);}
.lp .lp-access-card h3{margin:0 0 7px;font-size:19px}
.lp .lp-access-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.lp .lp-arrow{margin-left:auto;width:42px;height:42px;border-radius:50%;border:0;
  background:var(--navy);color:#fff;font-size:20px;cursor:pointer;flex:0 0 auto;}
.lp .lp-access-card.lp-staff .lp-icon{background:var(--gold-soft)}
.lp .lp-access-card.lp-staff .lp-arrow{background:var(--gold);color:#16263b}
.lp footer{background:#092b4b;color:#dce9f5;padding:34px 0 20px}
.lp .lp-footer-contact{display:flex;justify-content:center;text-align:center}
.lp footer h4{margin:0 0 12px;color:#fff;font-size:16px}
.lp .lp-contact-items{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 28px;color:#b9cad9;font-size:13px}
.lp .lp-footer-bottom{margin-top:28px;padding-top:17px;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#91a7bc}
.lp .lp-modal{position:fixed;inset:0;z-index:100;display:none;place-items:center;
  background:rgba(5,20,35,.62);backdrop-filter:blur(7px);padding:20px;}
.lp .lp-modal.lp-open{display:grid}
.lp .lp-modal-card{width:min(470px,100%);background:#fff;border-radius:24px;padding:28px;
  box-shadow:0 25px 70px rgba(0,0,0,.25);position:relative;}
.lp .lp-close{position:absolute;right:16px;top:14px;border:0;background:#eef3f7;border-radius:50%;width:36px;height:36px;cursor:pointer;font-size:18px}
.lp .lp-modal h3{margin:0 0 8px;font-size:24px}
.lp .lp-modal p{margin:0 0 20px;color:var(--muted)}
.lp .lp-choice{width:100%;padding:16px;border:1px solid var(--line);background:#fff;border-radius:14px;margin-top:10px;text-align:left;cursor:pointer;font-weight:800}
.lp .lp-choice:hover{border-color:#9eb6cf;background:#f5f9fd}
@media(max-width:850px){.lp .lp-hero-photo{background-position:62% center}
.lp .lp-navlinks{display:none}
.lp .lp-menu-btn{display:block}
.lp .lp-hero{min-height:520px}
.lp .lp-hero-content{padding:62px 0 88px}
.lp .lp-announcement{grid-template-columns:auto 1fr}
.lp .lp-announcement .lp-link-btn{grid-column:2;text-align:left;padding:0}
.lp .lp-access-grid{grid-template-columns:1fr}
.lp .lp-values-grid{grid-template-columns:1fr}
.lp .lp-footer-top{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.lp .lp-container{width:min(100% - 28px,1180px)}
.lp .lp-nav{min-height:68px}
.lp .lp-brand-text strong{font-size:11px}
.lp .lp-brand-text span{font-size:9px}
.lp .lp-logo{width:40px;height:40px}
.lp .lp-hero{min-height:540px}
.lp .lp-hero h1{font-size:38px}
.lp .lp-hero p{font-size:15px}
.lp .lp-announcement-wrap{margin-top:-35px}
.lp .lp-announcement{padding:16px;gap:12px}
.lp .lp-ann-text{font-size:12px}
.lp .lp-ann-date{width:50px;height:50px}
.lp .lp-section{padding:48px 0}
.lp .lp-section h2{font-size:27px}
.lp .lp-access-card{padding:20px}
.lp .lp-access-card p{font-size:13px}
.lp .lp-contact-items{flex-direction:column;gap:7px}
.lp .lp-footer-bottom{flex-direction:column;text-align:center}}
/* --- espace parent --- */
.pm{--navy:#0b3157;--navy2:#123f6b;--blue:#1e5a93;--gold:#f2b51d;--gold2:#ffd45c;
 --bg:#f4f7fb;--card:#fff;--text:#122c48;--muted:#718195;--line:#e4ebf2;
 --green:#16835d;--red:#d94b4b;--shadow:0 7px 24px rgba(11,49,87,.08);}
.pm{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.pm button,.pm select{font:inherit}
.pm .pm-app{min-height:100vh;padding-bottom:74px}
.pm .pm-header{background:linear-gradient(135deg,#082b4b,#123f6b);color:#fff;
 padding:18px 18px 16px;position:sticky;top:0;z-index:20;
 box-shadow:0 5px 18px rgba(0,0,0,.12)}
.pm .pm-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pm .pm-brand{display:flex;align-items:center;gap:10px;min-width:0}
.pm .pm-logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#fff4c9,var(--gold));display:grid;place-items:center;color:var(--navy);font-weight:900;flex:none}
.pm .pm-brand-text{min-width:0}
.pm .pm-brand-text strong{display:block;font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm .pm-brand-text small{color:#bfd1e3;font-size:11px}
.pm .pm-header-actions{display:flex;gap:7px;flex:none}
.pm .pm-header-btn{border:0;border-radius:10px;background:#f7f9fc;color:var(--navy);height:38px;padding:0 12px;font-weight:700;font-size:12px}
.pm .pm-icon-btn{width:38px;padding:0;font-size:17px}
.pm .pm-content{max-width:760px;margin:auto;padding:14px}
.pm .pm-card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);margin-bottom:13px;overflow:hidden}
.pm .pm-student-hero{padding:18px;position:relative;color:#fff;
 background:linear-gradient(115deg,rgba(8,43,75,.98),rgba(18,63,107,.88)),linear-gradient(135deg,#0b3157,#1e5a93)}
.pm .pm-student-top{display:flex;gap:13px;align-items:center}
.pm .pm-avatar{width:64px;height:64px;border-radius:17px;background:linear-gradient(145deg,#fff,#dce9f5);display:grid;place-items:center;color:var(--navy);font-weight:900;font-size:20px;flex:none;border:2px solid rgba(255,255,255,.65)}
.pm .pm-student-name{font-size:20px;font-weight:750;margin:0}
.pm .pm-class{color:#c7d9e9;font-size:12px;margin-top:4px}
.pm .pm-switch{margin-left:auto;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);color:#fff;border-radius:9px;padding:9px 10px;font-size:11px}
.pm .pm-status{display:inline-flex;align-items:center;gap:6px;background:#fff1f1;color:#a83c3c;border-radius:20px;padding:5px 9px;margin-top:10px;font-size:10px;font-weight:750}
.pm .pm-status i{width:6px;height:6px;background:#d94b4b;border-radius:50%}
.pm .pm-quick-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:11px;background:#fff}
.pm .pm-quick{border:1px solid #e1eaf2;background:#f8fafc;border-radius:11px;padding:9px 4px;text-align:center;color:var(--navy);font-size:10px;font-weight:650}
.pm .pm-quick.pm-active{background:var(--gold);border-color:var(--gold);color:#102c48}
.pm .pm-quick .pm-qi{font-size:17px;display:block;margin-bottom:4px}
.pm .pm-section-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 8px}
.pm .pm-section-head h2{margin:0;font-size:17px}
.pm .pm-section-head a{font-size:11px;color:var(--blue);text-decoration:none}
.pm .pm-period{margin:0 16px 14px;border:1px solid var(--line);height:44px;border-radius:11px;padding:0 12px;background:#fff;color:var(--text);width:calc(100% - 32px)}
.pm .pm-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 16px 16px}
.pm .pm-stat{border:1px solid var(--line);border-radius:13px;padding:13px;background:#fbfcfe}
.pm .pm-stat strong{display:block;font-size:24px;color:var(--navy)}
.pm .pm-stat span{font-size:11px;color:var(--muted)}
.pm .pm-stat.pm-good strong{color:var(--green)}
.pm .pm-list{padding:0 16px 12px}
.pm .pm-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-top:1px solid #edf1f5}
.pm .pm-row:first-child{border-top:0}
.pm .pm-row-icon{width:34px;height:34px;border-radius:9px;background:#edf5fd;color:var(--blue);display:grid;place-items:center;font-size:14px;font-weight:800;flex:none}
.pm .pm-row-main{min-width:0;flex:1}
.pm .pm-row-main strong{display:block;font-size:12px}
.pm .pm-row-main small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.pm .pm-badge{padding:5px 8px;border-radius:15px;background:#edf5ff;color:var(--blue);font-size:10px;font-weight:750;white-space:nowrap}
.pm .pm-badge.pm-red{background:#fff0f0;color:#bd4444}
.pm .pm-badge.pm-green{background:#eaf8f2;color:#16835d}
.pm .pm-badge.pm-gold{background:#fff7df;color:#9b6d00}
.pm .pm-notice{margin:0 16px 16px;padding:12px;border:1px solid #cfe0f1;background:#f4f8fd;color:#42627f;border-radius:11px;font-size:10px;line-height:1.5}
.pm .pm-subject{border-top:1px solid #edf1f5;padding:14px 16px}
.pm .pm-subject:first-child{border-top:0}
.pm .pm-subject-head{display:flex;justify-content:space-between;align-items:center;cursor:pointer}
.pm .pm-subject-title{font-weight:750;font-size:13px}
.pm .pm-subject-score{font-weight:800;font-size:13px;color:var(--blue)}
.pm .pm-details{margin-top:10px;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.pm .pm-detail{display:flex;justify-content:space-between;padding:10px 12px;font-size:11px;border-top:1px solid #edf1f5}
.pm .pm-detail:first-child{border-top:0}
.pm .pm-average{margin:9px;background:#eef5fd;border-radius:9px;padding:10px 12px;display:flex;justify-content:space-between;color:var(--blue);font-weight:800;font-size:11px}
.pm .pm-bottom{position:fixed;bottom:0;left:0;right:0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);
border-top:1px solid var(--line);height:70px;display:grid;grid-template-columns:repeat(5,1fr);z-index:30}
.pm .pm-bottom a{text-decoration:none;color:#75859a;text-align:center;font-size:9px;padding-top:9px;font-weight:600}
.pm .pm-bottom a.pm-active{color:var(--navy)}
.pm .pm-bottom a.pm-active .pm-bi{background:var(--gold);color:var(--navy)}
.pm .pm-bi{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;margin:0 auto 3px;font-size:16px}
@media(min-width:760px){.pm .pm-content{padding:24px}
.pm .pm-header{padding-left:max(24px,calc((100% - 760px)/2 + 24px));padding-right:max(24px,calc((100% - 760px)/2 + 24px))}}
.pm .pm-more-panel{position:fixed;inset:0;background:rgba(7,30,52,.38);backdrop-filter:blur(5px);z-index:50;display:none}
.pm .pm-more-panel.pm-open{display:block}
.pm .pm-more-sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(760px,100%);background:#fff;border-radius:22px 22px 0 0;padding:16px 16px 24px;box-shadow:0 -14px 40px rgba(11,49,87,.18)}
.pm .pm-more-head{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 12px;color:var(--navy);font-size:17px}
.pm .pm-more-head button{border:0;background:#eef4f9;color:var(--navy);width:34px;height:34px;border-radius:50%;font-size:20px}
.pm .pm-more-sheet a{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:var(--text);font-size:13px;font-weight:650;padding:15px 8px;border-top:1px solid var(--line)}
.pm .pm-more-sheet a span{color:var(--blue);font-size:20px}
/* --- espace enseignant --- */
.tm{--navy:#0b3157;
  --navy2:#123f6b;
  --blue:#1e5a93;
  --gold:#f2b51d;
  --gold2:#ffd45c;
  --ink:#102b49;
  --muted:#6b7d91;
  --line:#e4ebf2;
  --bg:#f5f8fc;
  --white:#fff;
  --shadow:0 12px 34px rgba(11,49,87,.09);
  --radius:18px;}
.tm{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.tm button{font:inherit}
.tm .tm-app{min-height:100vh;display:flex}
.tm .tm-sidebar{width:250px;position:fixed;inset:0 auto 0 0;z-index:20;
  background:linear-gradient(180deg,#092b4c 0%,#0b3157 58%,#082744 100%);
  color:#fff;padding:22px 16px;display:flex;flex-direction:column;}
.tm .tm-brand{text-align:center;padding:2px 8px 20px;border-bottom:1px solid rgba(255,255,255,.12)}
.tm .tm-logo{width:62px;height:62px;margin:auto;border-radius:18px;background:linear-gradient(145deg,#fff4c9,#f2b51d);display:grid;place-items:center;color:var(--navy);font-weight:900;font-size:28px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.tm .tm-brand h1{font-family:Georgia,serif;font-size:16px;line-height:1.18;margin:13px 0 5px;letter-spacing:.3px}
.tm .tm-brand p{margin:0;color:#f6c94d;font-size:11px}
.tm .tm-nav{margin-top:22px;display:grid;gap:6px}
.tm .tm-nav a{height:46px;padding:0 14px;border-radius:11px;display:flex;align-items:center;gap:12px;color:#e8f0f8;text-decoration:none;font-size:14px;transition:.18s}
.tm .tm-nav a:hover{background:rgba(255,255,255,.08)}
.tm .tm-nav a.tm-active{background:linear-gradient(90deg,#f2b51d,#ffd45c);color:#122e4b;font-weight:700;box-shadow:0 8px 24px rgba(242,181,29,.18)}
.tm .tm-icon{width:21px;text-align:center;font-size:17px}
.tm .tm-nav-title{margin:18px 12px 4px;color:#8fb0d0;text-transform:uppercase;font-size:10px;letter-spacing:1.5px}
.tm .tm-sidebar-footer{margin-top:auto;padding:16px 8px 2px;color:#a9bed2;font-size:11px;line-height:1.5;text-align:center}
.tm .tm-main{margin-left:250px;width:calc(100% - 250px);min-width:0}
.tm .tm-topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;gap:22px;position:sticky;top:0;z-index:10}
.tm .tm-search{height:42px;max-width:560px;flex:1;border:1px solid #dce6ef;border-radius:13px;background:#f8fafc;display:flex;align-items:center;padding:0 15px;color:#8a9bad;font-size:13px}
.tm .tm-search span{margin-right:10px;font-size:17px}
.tm .tm-top-actions{margin-left:auto;display:flex;align-items:center;gap:18px}
.tm .tm-top-btn{border:0;background:transparent;color:var(--navy);font-size:20px;cursor:pointer}
.tm .tm-date{border:1px solid #dce6ef;border-radius:12px;padding:10px 13px;font-size:12px;color:var(--navy)}
.tm .tm-profile{display:flex;align-items:center;gap:10px;padding-left:4px}
.tm .tm-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(145deg,#dbe9f7,#fff);display:grid;place-items:center;color:var(--navy);font-weight:800;border:2px solid #e7edf3}
.tm .tm-profile strong{font-size:12px;display:block}
.tm .tm-profile small{color:var(--muted);font-size:10px}
.tm .tm-content{padding:22px 28px 34px;max-width:1600px;margin:auto}
.tm .tm-hero{min-height:230px;border-radius:22px;overflow:hidden;position:relative;
  background:
    linear-gradient(90deg,rgba(7,35,62,.98) 0%,rgba(8,48,83,.84) 48%,rgba(8,48,83,.30) 100%),
    linear-gradient(120deg,#0b3157,#1e5a93);
  box-shadow:var(--shadow);color:#fff;padding:34px 38px;display:flex;align-items:flex-end;}
.tm .tm-hero:after{content:"";position:absolute;inset:auto -8% -70px 42%;height:180px;background:radial-gradient(circle,rgba(242,181,29,.28),transparent 65%);pointer-events:none}
.tm .tm-eyebrow{color:var(--gold);font-size:11px;letter-spacing:4px;text-transform:uppercase;font-weight:700;margin-bottom:12px}
.tm .tm-hero h2{font-family:Georgia,serif;font-size:39px;margin:0 0 8px;letter-spacing:-.6px}
.tm .tm-hero h2 span{color:var(--gold)}
.tm .tm-hero p{margin:0;color:#e8f0f7;font-size:17px}
.tm .tm-hero-meta{position:absolute;right:30px;bottom:28px;border:1px solid rgba(255,255,255,.2);background:rgba(7,34,59,.48);backdrop-filter:blur(10px);border-radius:14px;padding:12px 16px;min-width:205px;font-size:12px}
.tm .tm-hero-meta strong{display:block;font-size:13px;margin-bottom:3px}
.tm .tm-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);gap:18px;margin-top:18px}
.tm .tm-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 24px rgba(11,49,87,.055);overflow:hidden}
.tm .tm-card-head{padding:18px 20px 13px;display:flex;align-items:center;justify-content:space-between}
.tm .tm-card-head h3{margin:0;font-size:17px;color:var(--navy)}
.tm .tm-card-head a{font-size:11px;color:var(--blue);text-decoration:none}
.tm .tm-lessons{padding:0 18px 14px}
.tm .tm-lesson{display:grid;grid-template-columns:82px 1fr 190px;gap:18px;align-items:center;padding:17px 4px;border-top:1px solid #edf1f5}
.tm .tm-lesson:first-child{border-top:0}
.tm .tm-lesson.tm-featured{background:#fffaf0;border:1px solid #f5d988;border-radius:14px;padding:14px 12px;margin-bottom:5px}
.tm .tm-time strong{font-size:16px;color:var(--navy);display:block}
.tm .tm-time span{font-size:12px;color:var(--muted)}
.tm .tm-lesson-main strong{font-size:15px;color:var(--navy)}
.tm .tm-lesson-main .tm-subject{display:block;margin-top:3px;font-size:13px}
.tm .tm-meta{font-size:11px;color:#74879a;margin-top:7px}
.tm .tm-actions{display:grid;gap:7px}
.tm .tm-btn{border:0;border-radius:9px;height:36px;cursor:pointer;font-size:12px;font-weight:650}
.tm .tm-btn-primary{background:var(--navy2);color:#fff}
.tm .tm-btn-gold{background:var(--gold);color:#102b49}
.tm .tm-btn-soft{background:#f1f6fb;color:var(--navy);border:1px solid #dbe7f1}
.tm .tm-tasks{padding:0 16px 16px}
.tm .tm-task{display:flex;align-items:center;gap:12px;padding:13px 8px;border-top:1px solid #edf1f5;font-size:12px}
.tm .tm-task:first-child{border-top:0}
.tm .tm-task-icon{width:34px;height:34px;border-radius:10px;background:#eef5fb;color:var(--blue);display:grid;place-items:center;font-weight:800}
.tm .tm-task b{margin-right:5px}
.tm .tm-classes{margin-top:18px}
.tm .tm-class-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 18px 18px}
.tm .tm-class-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.tm .tm-class-top{background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;padding:15px}
.tm .tm-class-top strong{font-size:17px}
.tm .tm-class-top span{display:block;font-size:11px;margin-top:4px;opacity:.82}
.tm .tm-class-bottom{padding:10px}
.tm .tm-class-bottom button{width:100%}
.tm .tm-activity{padding:0 18px 12px}
.tm .tm-activity-row{display:flex;gap:12px;align-items:center;padding:13px 4px;border-top:1px solid #edf1f5;font-size:12px}
.tm .tm-activity-row:first-child{border-top:0}
.tm .tm-dot{width:9px;height:9px;border-radius:50%;background:var(--gold);flex:none}
.tm .tm-activity-row small{margin-left:auto;color:#8b9aaa}
.tm .tm-float-top{position:fixed;right:24px;bottom:24px;width:42px;height:42px;border-radius:50%;border:1px solid rgba(11,49,87,.12);background:var(--navy);color:#fff;display:grid;place-items:center;box-shadow:0 8px 25px rgba(11,49,87,.2);cursor:pointer;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none}
.tm .tm-float-top.tm-show{opacity:1;transform:none;pointer-events:auto}
@media(max-width:1050px){.tm .tm-sidebar{width:215px}
.tm .tm-main{margin-left:215px;width:calc(100% - 215px)}
.tm .tm-grid{grid-template-columns:1fr}
.tm .tm-hero-meta{display:none}
.tm .tm-class-grid{grid-template-columns:1fr}}
@media(max-width:760px){.tm .tm-sidebar{display:none}
.tm .tm-main{margin-left:0;width:100%}
.tm .tm-topbar{padding:0 14px}
.tm .tm-search{display:none}
.tm .tm-content{padding:14px}
.tm .tm-hero{min-height:210px;padding:25px}
.tm .tm-hero h2{font-size:30px}
.tm .tm-grid{margin-top:14px}
.tm .tm-lesson{grid-template-columns:65px 1fr}
.tm .tm-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}}
/* --- compléments (éléments absents des maquettes) --- */
.pwa-bar{position:fixed;left:12px;right:12px;bottom:84px;z-index:90;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#0b3157;color:#fff;border-radius:16px;padding:12px 14px;box-shadow:0 12px 34px rgba(11,49,87,.35);max-width:560px;margin:0 auto}
.pwa-bar .pwa-tx{flex:1;min-width:200px}.pwa-bar b{display:block;font-size:14px}.pwa-bar small{display:block;font-size:12px;color:#cfe0f1;margin-top:2px}
.pwa-bar button{border:0;border-radius:10px;min-height:40px;padding:0 16px;font-weight:700;background:#f2b51d;color:#102b49;cursor:pointer}.pwa-bar button.sec{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35)}
.lp .lp-lang{background:transparent;border:1px solid rgba(255,255,255,.28);color:#fff;border-radius:10px;padding:8px 11px;font-weight:800;cursor:pointer}
.lp .lp-logo{overflow:hidden}.lp .lp-logo-img{width:100%;height:100%;object-fit:contain}
.lp .lp-first{text-align:center;margin:22px 0 0;color:var(--muted);font-size:14px}
.lp .lp-access-card{cursor:pointer}.lp .lp-access-card.lp-hint{outline:3px solid var(--gold);outline-offset:2px}
.lp .lp-ann-i{padding:10px 0;border-top:1px solid var(--line)}.lp .lp-ann-i:first-of-type{border-top:0}.lp .lp-ann-i p{margin:4px 0 0;font-size:14px}
.lp .lp-contact-items svg.i{width:16px;height:16px;vertical-align:-3px}
.lp .lp-menu-btn svg.i{width:22px;height:22px}
.lp .lp-modal-card .err{color:#b83a3a;font-size:13px;font-weight:650;margin-top:8px}
.lp .lp-modal-card .lp-choice{display:flex;align-items:center;gap:6px}
.lp .lp-navlinks .lp-lang{margin-left:-8px}
@media(max-width:850px){.lp .lp-navlinks{display:none}.lp .lp-menu-btn{display:block}}
.pm{min-height:100vh;background:var(--bg);padding-bottom:0}
.pm a.pm-brand{color:inherit;text-decoration:none}
.pm .pm-header-btn{display:inline-grid;place-items:center;cursor:pointer}.pm .pm-header-btn svg.i{width:18px;height:18px}
.pm .pm-icon-btn{position:relative}
.pm .pm-dot{position:absolute;top:-5px;right:-5px;background:#d94b4b;color:#fff;font-size:10px;font-style:normal;font-weight:800;border-radius:99px;min-width:17px;height:17px;display:grid;place-items:center;padding:0 4px}
.pm a.pm-quick{display:block;text-decoration:none}.pm .pm-quick svg.i{width:18px;height:18px;margin:0 auto 4px;display:block}
.pm .pm-bi svg.i{width:18px;height:18px}
.pm .pm-status.pm-ok{background:#eaf8f2;color:#16835d}.pm .pm-status.pm-ok i{background:#16835d}
.pm .pm-status.pm-warn{background:#fff7df;color:#9b6d00}.pm .pm-status.pm-warn i{background:#9b6d00}
.pm a.pm-student-hero{display:block;text-decoration:none;color:#fff}
.pm .pm-row-icon svg.i{width:16px;height:16px}
.pm .pm-sel{display:grid;gap:0}
.pm .pm-period.pm-inline{width:auto;margin:0;height:34px;border-color:transparent;background:transparent;color:var(--blue);font-size:12px;font-weight:700;padding:0 4px}
.pm .pm-inl{font-size:11px;color:var(--blue);font-weight:700}
.pm .pm-card>.pm-notice:first-child{margin-top:14px}
.pm .pm-subject-head{width:100%}.pm .pm-subject-score svg.i{width:14px;height:14px;margin-left:4px;vertical-align:-2px}
.pm .pm-details[hidden]{display:none}
.pm .pm-more-out{width:100%;margin-top:12px;border:0;background:#fff0f0;color:#bd4444;border-radius:12px;height:46px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.pm .pm-more-sheet a svg.i{width:18px;height:18px}
.pm a.pdfdl{display:inline-flex;gap:6px;align-items:center;font-size:11px;color:var(--blue);margin-top:4px}
.pm-menu{position:fixed;z-index:95;background:#fff;border:1px solid #e4ebf2;border-radius:12px;box-shadow:0 12px 34px rgba(11,49,87,.2);display:grid;min-width:210px;overflow:hidden}
.pm-menu a,.pm-menu button{padding:13px 16px;border:0;background:none;text-align:left;font-size:13px;color:#122c48;cursor:pointer;border-top:1px solid #edf1f5}.pm-menu a:first-child{border-top:0}
.pm .btn,.pm .card.pad,.pm .row{box-sizing:border-box}
/* --- compléments enseignant --- */
.tm{min-height:100vh;background:var(--bg)}
.tm .tm-sidebar nav a svg.i,.tm .tm-icon svg.i{width:19px;height:19px}
.tm .tm-brand{padding:2px 8px 20px}
.tm .tm-search input{border:0;background:transparent;flex:1;outline:0;font:inherit;color:inherit;min-width:0}
.tm .tm-search{position:relative}
.tm .tm-results{position:absolute;left:0;right:0;top:48px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 34px rgba(11,49,87,.18);z-index:30;overflow:hidden}
.tm .tm-res-i{display:flex;justify-content:space-between;gap:10px;width:100%;padding:11px 14px;border:0;border-top:1px solid #edf1f5;background:#fff;text-align:left;cursor:pointer;color:var(--ink)}
.tm .tm-res-i:first-child{border-top:0}.tm .tm-res-i small{color:var(--muted)}.tm .tm-res-empty{padding:12px 14px;color:var(--muted);font-size:13px}
.tm .tm-top-btn{position:relative;width:42px;height:42px;display:inline-grid;place-items:center;border:0;background:transparent;color:var(--navy);cursor:pointer;border-radius:12px}
.tm .tm-top-btn .dot{position:absolute;top:2px;right:0;background:#d94b4b;color:#fff;font-size:10px;font-weight:800;border-radius:99px;min-width:17px;height:17px;display:grid;place-items:center;padding:0 4px}
.tm .tm-profile{cursor:pointer;background:none;border:0;text-align:left;color:inherit}
.tm .tm-profile svg.i{width:16px;height:16px}
.tm .tm-profile strong,.tm .tm-profile small{display:block}
.tm .tm-hero-h{font-family:Georgia,serif;font-size:39px;margin:0 0 8px;letter-spacing:-.6px}.tm .tm-hero-h span{color:var(--gold)}
.tm .tm-hero p{margin:0;color:#e8f0f7;font-size:17px}
.tm .tm-hero>div:first-child{position:relative;z-index:2}
.tm .tm-card-head h3{margin:0}
.tm .tm-lesson-main strong{font-size:15px;color:var(--navy)}
.tm .tm-btn{padding:0 12px;min-width:0}
.tm .tm-task[role=button]:hover{background:#f8fafc}
.tm .tm-float-top svg.i{width:18px;height:18px}
.tm .tm-content>.ptitle{margin-bottom:14px}
.tm .tm-content .card{margin-bottom:14px}
.tm .tm-bottom{display:none}
.tm-menu{position:fixed;z-index:95;background:#fff;border:1px solid #e4ebf2;border-radius:12px;box-shadow:0 12px 34px rgba(11,49,87,.2);display:grid;min-width:170px;overflow:hidden}
.tm-menu button{padding:13px 16px;border:0;background:none;text-align:left;font-size:13px;color:#122c48;cursor:pointer}
@media(max-width:760px){
 .tm .tm-bottom{position:fixed;bottom:0;left:0;right:0;height:66px;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:rgba(255,255,255,.97);border-top:1px solid var(--line);z-index:30}
 .tm .tm-bottom a{text-decoration:none;color:#75859a;text-align:center;font-size:10px;padding-top:8px;font-weight:600}
 .tm .tm-bottom a.tm-active{color:var(--navy)}.tm .tm-bottom a.tm-active .tm-bi{background:var(--gold);color:var(--navy)}
 .tm .tm-bi{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;margin:0 auto 2px}.tm .tm-bi svg.i{width:18px;height:18px}
 .tm .tm-content{padding-bottom:90px}.tm .tm-profile>div,.tm .tm-date{display:none}.tm .tm-top-actions{gap:8px}
 .tm .tm-topbar{justify-content:flex-end}.tm .tm-search{display:none}
 .tm .tm-float-top{bottom:80px}
}
@media(min-width:761px){.tm .tm-sidebar .tm-nav{max-height:calc(100vh - 230px);overflow:auto}}
@media(min-width:761px){body.tmb .pwa-bar{bottom:16px}}@media(max-width:760px){body.tmb .pwa-bar{bottom:78px}}
.tm .tm-mbrand{display:none}
body.lpb .pwa-bar{bottom:16px}
@media(max-width:760px){.tm .tm-topbar{justify-content:space-between;padding:0 12px;height:64px}.tm .tm-mbrand{display:flex;align-items:center;gap:10px;min-width:0}.tm .tm-mbrand .tm-logo{width:38px;height:38px;border-radius:11px;font-size:15px;margin:0}.tm .tm-mbrand strong{font-size:12px;color:var(--navy);line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}

body.pwa-on #app{padding-bottom:150px}
.pay-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.pay-row .row-main{display:flex;flex-direction:column;gap:2px}.pay-amt{white-space:nowrap;color:var(--navy,#0b3157)}
.pw-tog{display:block;margin:4px 0 8px;padding:4px 0;border:0;background:none;color:#1f4f8f;font-size:13px;font-weight:600;text-decoration:underline;cursor:pointer;min-height:32px}

.brand-img{width:100%;height:100%;object-fit:contain;border-radius:inherit;background:#fff;padding:2px;box-sizing:border-box;display:block}

.kid-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.pm .pm-avatar,.kidpick .ic{overflow:hidden}
.edt-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.edt-tab{border:1px solid #d5deea;background:#fff;color:#0b3157;border-radius:999px;padding:7px 12px;font-weight:700;font-size:13px;cursor:pointer;min-height:36px}
.edt-tab.on{background:#0b3157;color:#fff;border-color:#0b3157}
.edt-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.edt-table{border-collapse:collapse;width:100%;min-width:520px;font-size:13px}
.edt-table th,.edt-table td{border:1px solid #e3e9f1;padding:7px 6px;text-align:center}
.edt-table th{background:#f1f5fa;color:#0b3157}
.edt-table td:first-child{white-space:nowrap;font-weight:700;background:#fafcfe}
.edt-pause td{background:#fff8e1;color:#7a5b00;font-size:12px}
.row.edt-pause{background:#fff8e1}
