/* ==========================================================================
   EASY SCHOOL PARENTS — système de design de l'application Parents
   (connexion /portail/login + coque & pages /portail/*)
   Maquettes : maquetteapps/login parents.png
               maquetteapps/Easy School dashboard with blurred child avatar.png
   ========================================================================== */

:root {
  --pp-navy: #06402a;
  --pp-navy-2: #07532e;
  --pp-ink: #12204a;
  --pp-text: #1f2b4d;
  --pp-muted: #5f6b86;
  --pp-soft: #8a94ab;
  --pp-blue: #0b6b3d;
  --pp-blue-2: #07532e;
  --pp-blue-rgb: 21, 101, 224;
  --pp-sky: #167b82;
  --pp-cyan: #2a9aa2;
  --pp-gold: #c99945;
  --pp-gold-2: #a87a2e;
  --pp-green: #1f9d55;
  --pp-green-soft: #e6f6ec;
  --pp-amber: #f59e0b;
  --pp-amber-soft: #fff4dc;
  --pp-red: #e5484d;
  --pp-red-soft: #fdeceb;
  --pp-violet: #39487d;
  --pp-violet-soft: #eff1f9;
  --pp-blue-soft: #e9f4ec;
  --pp-bg: #f4f7fc;
  --pp-card: #ffffff;
  --pp-line: #e4eaf4;
  --pp-line-2: #d3dbe8;
  --pp-radius: 14px;
  --pp-radius-sm: 10px;
  --pp-shadow: 0 1px 2px rgba(6, 64, 42, .04), 0 6px 18px rgba(6, 64, 42, .05);
  --pp-shadow-lg: 0 18px 50px rgba(5, 52, 34, .18);
  --pp-focus: 0 0 0 3px rgba(11, 107, 61, .28);
  --pp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Compatibilité avec les vues partagées (messagerie…) */
  --es-primary: var(--pp-blue);
  --es-primary-rgb: var(--pp-blue-rgb);
  --es-text: var(--pp-text);
  --es-text-muted: var(--pp-muted);
  --es-border: var(--pp-line);
  --es-card-bg: var(--pp-card);
  --es-card-soft: #f8fafd;
  --es-body-bg: var(--pp-bg);
  --es-shadow: var(--pp-shadow);
  --es-grad: linear-gradient(135deg, #1c784a, #07532e);
  --es-bad: var(--pp-red);
}

/* ----- Base ---------------------------------------------------------------- */
.pp-body, .pp-auth-body {
  font-family: var(--pp-font);
  color: var(--pp-text);
  background: var(--pp-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[dir="rtl"] .pp-body, html[dir="rtl"] .pp-auth-body { font-family: "Noto Kufi Arabic", "Cairo", var(--pp-font); }
.pp-body a { color: var(--pp-blue); }
.pp-body a:focus-visible, .pp-body button:focus-visible, .pp-body select:focus-visible, .pp-body input:focus-visible,
.pp-auth-body a:focus-visible, .pp-auth-body button:focus-visible, .pp-auth-body input:focus-visible, .pp-auth-body select:focus-visible {
  outline: 2px solid var(--pp-blue); outline-offset: 2px; box-shadow: none;
}
.min-w-0 { min-width: 0; }
.pp-skip { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--pp-navy); color: #fff !important; padding: .5rem .9rem; border-radius: 8px; text-decoration: none; transition: top .15s; }
.pp-skip:focus { top: 10px; }

/* Bandeau environnement de formation */
.pp-env-ribbon {
  position: relative; z-index: 1050;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .45rem 1rem; font-size: .86rem; color: #5a3b00;
  background: repeating-linear-gradient(-45deg, #ffd25e 0 14px, #ffc93b 14px 28px);
  border-bottom: 1px solid #e9a400; text-align: center;
}
.pp-env-ribbon strong { font-weight: 800; letter-spacing: .01em; }

/* ==========================================================================
   1. CONNEXION (/portail/login)
   ========================================================================== */
.pp-auth-body { background: #06402a; min-height: 100vh; }
.pl-page { min-height: 100vh; display: flex; flex-direction: column; background: #e9eef6; }

.pl-header { background: #fff; position: relative; z-index: 5; box-shadow: 0 1px 0 rgba(6, 64, 42, .06); }
.pl-header-in { max-width: 1480px; margin: 0 auto; height: 108px; padding: 0 clamp(16px, 4.6vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pl-logo img { height: 86px; width: auto; display: block; }
/* Navigation, langues et contenu du pied de page : assets/css/portal-chrome.css */

.pl-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 32px clamp(16px, 2.5vw, 38px) 110px; min-height: 760px; overflow: hidden; }
.pl-photo { position: absolute; inset: 0; background: #d9cbb4 url("../img/parents/login-hero.jpg") left center / cover no-repeat; }
@supports (background-image: url("x.webp")) {
  .pl-photo { background-image: image-set(url("../img/parents/login-hero.webp") type("image/webp"), url("../img/parents/login-hero.jpg") type("image/jpeg")); }
}
.pl-card { position: relative; z-index: 2; width: 100%; max-width: 558px; background: #fff; border-radius: 18px; padding: 30px 36px 26px; box-shadow: 0 24px 60px rgba(5, 52, 34, .22), 0 2px 6px rgba(5, 52, 34, .06); margin-right: clamp(0px, 1.2vw, 10px); }
.pl-card-logo { text-align: center; margin-bottom: 14px; }
.pl-card-logo img { width: 256px; max-width: 70%; height: auto; }
.pl-title { text-align: center; font-size: 1.62rem; font-weight: 800; color: var(--pp-navy); letter-spacing: -.01em; margin: 0 0 .3rem; }
.pl-sub { text-align: center; color: var(--pp-muted); font-size: 1.07rem; margin: 0 0 1.05rem; }

.pl-env { display: flex; justify-content: center; gap: 4px; margin: 0 auto 1rem; padding: 4px; width: max-content; background: #f1f4f9; border: 1px solid var(--pp-line); border-radius: 999px; }
.pl-env a { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--pp-muted); text-decoration: none; }
.pl-env a.on { background: #fff; color: var(--pp-navy); box-shadow: 0 1px 3px rgba(6, 64, 42, .12); }
.pl-env a.on.is-train { background: #ffcf4d; color: #533700; }
.pl-env a:hover:not(.on) { color: var(--pp-blue); }

.pl-h2 { font-size: 1.62rem; font-weight: 800; color: var(--pp-navy); margin: 0 0 .95rem; letter-spacing: -.01em; }
.pl-form { display: flex; flex-direction: column; }
.pl-field { margin-bottom: .35rem; }
.pl-input { position: relative; display: flex; align-items: center; height: 60px; border: 1.5px solid #cfd7e4; border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pl-input:focus-within { border-color: var(--pp-blue); box-shadow: var(--pp-focus); }
.pl-input-ic { position: absolute; left: 20px; font-size: 1.32rem; color: #3d4864; pointer-events: none; }
.pl-input input, .pl-input select { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 3.1rem 0 70px; font-size: 1.06rem; color: var(--pp-text); border-radius: 9px; min-width: 0; }
.pl-input input::placeholder { color: #4f5a73; opacity: 1; }
.pl-input input:focus-visible, .pl-input select:focus-visible { outline: none; }
.pl-select select { appearance: none; cursor: pointer; padding-right: 2.6rem; }
.pl-select-caret { position: absolute; right: 18px; pointer-events: none; color: var(--pp-muted); }
.pl-eye { position: absolute; right: 12px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: #3d4864; border-radius: 8px; font-size: 1.32rem; cursor: pointer; }
.pl-eye:hover { color: var(--pp-blue); background: #f2f6fc; }
.pl-field.is-invalid .pl-input { border-color: var(--pp-red); }
.pl-err { min-height: 1.05rem; margin: .25rem 0 .2rem; font-size: .8rem; color: #c2282d; }
.pl-err:empty { min-height: .55rem; }

.pl-options { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .1rem 0 1.15rem; flex-wrap: wrap; }
.pl-remember { position: relative; display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; color: var(--pp-ink); font-size: 1.03rem; }
.pl-remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pl-check { width: 24px; height: 24px; border-radius: 5px; border: 1.5px solid #9fb0cb; display: grid; place-items: center; background: #fff; color: transparent; font-size: 1rem; transition: .15s; }
.pl-remember input:checked + .pl-check { background: var(--pp-blue); border-color: var(--pp-blue); color: #fff; }
.pl-remember input:focus-visible + .pl-check { box-shadow: var(--pp-focus); }
.pl-forgot { color: var(--pp-blue); font-size: 1.03rem; text-decoration: underline; text-underline-offset: 3px; }
.pl-forgot:hover { color: var(--pp-blue-2); }
/* Code d'accès temporaire (remis par l'administration) — lien discret sous le bouton */
.pl-code { display: inline-flex; align-items: center; gap: .4rem; align-self: center; margin-top: .55rem; font-size: .86rem; color: var(--pp-muted, #5b6b8c); text-decoration: none; }
.pl-code:hover { color: var(--pp-blue); text-decoration: underline; text-underline-offset: 3px; }
.pl-code:focus-visible { outline: 3px solid var(--pp-blue); outline-offset: 3px; border-radius: 6px; }

.pl-btn { display: flex; align-items: center; justify-content: center; gap: .9rem; width: 100%; height: 66px; border: 0; border-radius: 10px; color: #fff; font-size: 1.42rem; font-weight: 700; letter-spacing: .005em; cursor: pointer;
  background: linear-gradient(90deg, #124b2e 0%, #17633d 55%, #1a6f45 100%); box-shadow: 0 10px 22px rgba(7, 83, 46, .3); transition: transform .12s, box-shadow .12s, filter .12s; }
.pl-btn i { font-size: 1.5rem; }
.pl-btn:hover { filter: brightness(1.06); box-shadow: 0 14px 26px rgba(7, 83, 46, .36); }
.pl-btn:active { transform: translateY(1px); }
.pl-btn[disabled] { opacity: .8; cursor: progress; }

.pl-help { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.55rem; padding-top: 1.1rem; border-top: 1.5px solid #e1e7f0; }
.pl-help-ic { font-size: 2.6rem; color: var(--pp-blue); line-height: 1; }
.pl-help strong { display: block; font-size: 1.05rem; color: var(--pp-navy); font-weight: 700; }
.pl-help a { color: var(--pp-blue); text-decoration: underline; text-underline-offset: 3px; font-size: 1rem; }
.pl-help-arrow { color: var(--pp-blue); font-size: .9rem; margin-left: .3rem; }

.pl-flash { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .8rem; }
.pl-alert { display: flex; gap: .55rem; align-items: flex-start; padding: .6rem .8rem; border-radius: 9px; font-size: .9rem; border: 1px solid transparent; }
.pl-alert i { margin-top: .1rem; }
.pl-alert-danger { background: var(--pp-red-soft); color: #9f1f24; border-color: #f6c5c6; }
.pl-alert-success { background: var(--pp-green-soft); color: #13643a; border-color: #bfe6cd; }
.pl-alert-warning { background: var(--pp-amber-soft); color: #7a4c00; border-color: #f7dc9c; }
.pl-alert-info { background: var(--pp-blue-soft); color: #12452b; border-color: #cfe5d6; }

.pl-footer { position: relative; z-index: 3; margin-top: -86px; color: #fff; }
.pl-wave { display: block; width: 100%; height: 96px; }
.pl-footer-in { background: #06402a; margin-top: -1px; padding: 4px clamp(16px, 3.4vw, 50px) 22px; }

@media (max-width: 991.98px) {
  .pl-header-in { height: 84px; }
  .pl-logo img { height: 62px; }
  .pl-stage { justify-content: center; min-height: auto; padding: 28px 16px 120px; }
  .pl-photo { background-position: 30% center; }
  .pl-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 64, 42, .1), rgba(6, 64, 42, .35)); }
}
@media (max-width: 575.98px) {
  .pl-header-in { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; justify-content: center; }
  .pl-logo img { height: 52px; }
  .pl-card { padding: 22px 18px 20px; border-radius: 16px; }
  .pl-title, .pl-h2 { font-size: 1.3rem; }
  .pl-sub { font-size: .95rem; }
  .pl-input { height: 54px; }
  .pl-input input, .pl-input select { padding-left: 54px; font-size: 1rem; }
  .pl-input-ic { left: 16px; }
  .pl-btn { height: 56px; font-size: 1.2rem; }
}

/* ==========================================================================
   2. COQUE DU PORTAIL
   ========================================================================== */
.pp-body { min-height: 100vh; display: flex; flex-direction: column; }

/* Barre supérieure */
.pp-top { position: sticky; top: 0; z-index: 1030; height: 100px; display: flex; align-items: center; gap: 1.2rem; padding: 0 clamp(16px, 2.4vw, 36px);
  background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.2) blur(6px); box-shadow: 0 1px 0 var(--pp-line), 0 4px 16px rgba(6, 64, 42, .04); }
.pp-brand { flex: 0 0 auto; display: block; }
.pp-brand img { height: 80px; width: auto; display: block; }
.pp-burger { width: 44px; height: 44px; border: 1px solid var(--pp-line); border-radius: 10px; background: #fff; font-size: 1.5rem; color: var(--pp-navy); display: grid; place-items: center; }

.pp-child { margin-left: clamp(0px, 9vw, 160px); min-width: 0; }
.pp-child-btn { display: flex; align-items: center; gap: .9rem; height: 62px; min-width: 350px; max-width: 520px; padding: 0 1.1rem 0 .55rem; background: #fff; border: 1.5px solid #d5ddea; border-radius: 10px; color: var(--pp-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pp-child-btn:hover, .pp-child-btn[aria-expanded="true"] { border-color: #a9bad6; box-shadow: 0 4px 14px rgba(6, 64, 42, .07); }
.pp-child-tx { display: flex; align-items: baseline; gap: .45rem; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.08rem; }
.pp-child-tx strong { font-weight: 700; }
.pp-child-cls { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pp-child-dot { color: var(--pp-ink); }
.pp-child-caret { margin-left: auto; font-size: 1.05rem; color: var(--pp-ink); }
.pp-child-menu { min-width: 360px; }
.pp-child-opt { display: flex !important; align-items: center; gap: .7rem; }
.pp-child-opt strong { display: block; font-weight: 700; font-size: .92rem; color: var(--pp-ink); }
.pp-child-opt small { display: block; color: var(--pp-muted); font-size: .78rem; white-space: normal; }

.pp-av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: linear-gradient(135deg, #0e7a46, #06402a); color: #fff; font-weight: 700; font-size: .9rem; }
.pp-av img { width: 100%; height: 100%; object-fit: cover; }
.pp-av--sm { width: 34px; height: 34px; font-size: .78rem; }
.pp-av--md { width: 46px; height: 46px; }
.pp-av--lg { width: 64px; height: 64px; font-size: 1.25rem; }
.pp-av--xl { width: 84px; height: 84px; font-size: 1.6rem; }
.pp-av--blur img { filter: blur(3px); transform: scale(1.12); }

.pp-top-actions { margin-left: auto; display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.6rem); }
.pp-bell { position: relative; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; display: grid; place-items: center; font-size: 1.75rem; color: var(--pp-navy); }
.pp-bell:hover { background: #f1f5fb; }
.pp-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ee3a43; color: #fff; font-size: .74rem; font-weight: 700; line-height: 1; }
.pp-bell-badge { position: absolute; top: 2px; right: 0; border: 2px solid #fff; min-width: 24px; height: 24px; }
.pp-top-sep { width: 1px; height: 54px; background: var(--pp-line-2); }
.pp-me { display: flex; align-items: center; gap: .95rem; border: 0; background: transparent; padding: .25rem .4rem; border-radius: 12px; text-align: left; }
.pp-me:hover { background: #f4f7fc; }
.pp-me-av { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #34507f, #23365f); color: #fff; font-size: 1.55rem; font-weight: 600; }
.pp-me-tx strong { display: block; font-size: 1.08rem; font-weight: 700; color: var(--pp-ink); }
.pp-me-tx span { display: inline-flex; align-items: center; gap: .45rem; color: var(--pp-muted); font-size: 1rem; }
.pp-me-tx span i { font-size: .8rem; }

.pp-menu { border: 1px solid var(--pp-line); border-radius: 12px; box-shadow: var(--pp-shadow-lg); padding: .4rem; }
.pp-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; border-radius: 8px; padding: .55rem .7rem; font-size: .92rem; color: var(--pp-text); }
.pp-menu .dropdown-item i { font-size: 1.05rem; color: var(--pp-muted); }
.pp-menu .dropdown-item:hover, .pp-menu .dropdown-item:focus { background: var(--pp-blue-soft); color: var(--pp-navy); }
.pp-menu .dropdown-item.active, .pp-menu .dropdown-item:active { background: var(--pp-blue); color: #fff; }
.pp-menu .dropdown-item.active small, .pp-menu .dropdown-item.active strong, .pp-menu .dropdown-item.active i { color: #fff; }
.pp-menu .dropdown-item.text-danger i { color: var(--pp-red); }
.pp-menu-h { padding: .35rem .7rem .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pp-soft); }
.pp-notif { width: 360px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.pp-notif-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem .9rem; border-bottom: 1px solid var(--pp-line); }
.pp-link-btn { border: 0; background: none; color: var(--pp-blue); font-size: .8rem; font-weight: 600; padding: 0; }
.pp-notif-item { display: flex; gap: .7rem; padding: .7rem .9rem; text-decoration: none; color: var(--pp-text) !important; border-bottom: 1px solid #f0f3f8; }
.pp-notif-item:hover { background: #f6f9fe; }
.pp-notif-item.unread { background: #f3f7ff; }
.pp-notif-item strong { display: block; font-size: .86rem; color: var(--pp-ink); }
.pp-notif-item small { display: block; color: var(--pp-muted); font-size: .8rem; }
.pp-notif-item em { display: block; font-style: normal; color: var(--pp-soft); font-size: .72rem; margin-top: .15rem; }

/* Coquille : barre latérale + contenu */
.pp-shell { flex: 1; display: flex; align-items: stretch; }
.pp-side { width: 243px; flex: 0 0 243px; background: #fbfcfe; border-right: 1px solid var(--pp-line); }
@media (min-width: 992px) {
  .pp-side { position: sticky; top: 100px; height: calc(100vh - 100px); overflow-y: auto; visibility: visible !important; transform: none !important; }
}
.pp-side-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .4rem; }
.pp-side-head img { height: 52px; width: auto; }
.pp-nav { display: flex; flex-direction: column; gap: 6px; padding: 46px 8px 24px; }
.pp-nav-link { position: relative; display: flex; align-items: center; gap: 1.15rem; height: 50px; padding: 0 1.1rem; border-radius: 10px; color: var(--pp-ink) !important; text-decoration: none; font-size: 1.08rem; font-weight: 500; transition: background .15s, color .15s; }
.pp-nav-link i { font-size: 1.42rem; width: 26px; text-align: center; color: var(--pp-navy); }
.pp-nav-link:hover { background: #eef3fb; }
.pp-nav-link.active { color: #fff !important; font-weight: 600; background: linear-gradient(90deg, #0b6b3d 0%, #0e7a46 100%); box-shadow: 0 8px 18px rgba(11, 107, 61, .28); }
.pp-nav-link.active i { color: #fff; }
.pp-nav-link .pp-badge { margin-left: -.35rem; }
.pp-nav-sep { margin: 1.4rem .9rem .35rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pp-soft); }
.pp-nav-link--sm { height: 40px; font-size: .92rem; gap: .9rem; }
.pp-nav-link--sm i { font-size: 1.1rem; }

.pp-main { flex: 1; min-width: 0; padding: 26px clamp(14px, 2vw, 30px) 40px 30px; outline: none; }

/* Pied de page en vague */
.pp-foot { position: relative; margin-top: auto; color: #fff; }
.pp-foot-wave { display: block; width: 100%; height: 64px; margin-bottom: -1px; }
.pp-foot-in { background: #06402a; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2px clamp(16px, 2.4vw, 36px) 16px; font-size: .95rem; }
.pp-foot-in nav { display: flex; align-items: center; gap: 1.1rem; }
.pp-foot-in nav span { opacity: .55; }
.pp-foot-in a { color: #fff !important; text-decoration: none; }
.pp-foot-in a:hover { text-decoration: underline; }

/* Alertes flash */
.pp-flashes { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.pp-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border-radius: 12px; border: 1px solid transparent; font-size: .93rem; }
.pp-alert > i { margin-top: .12rem; }
.pp-alert > span { flex: 1; }
.pp-alert-x { border: 0; background: transparent; color: inherit; opacity: .6; padding: 0 .2rem; }
.pp-alert-x:hover { opacity: 1; }
.pp-alert--danger { background: var(--pp-red-soft); color: #9f1f24; border-color: #f6c5c6; }
.pp-alert--success { background: var(--pp-green-soft); color: #13643a; border-color: #bfe6cd; }
.pp-alert--warning { background: var(--pp-amber-soft); color: #7a4c00; border-color: #f7dc9c; }
.pp-alert--info { background: var(--pp-blue-soft); color: #12452b; border-color: #cfe5d6; }

/* ==========================================================================
   3. COMPOSANTS
   ========================================================================== */
/* En-tête de page */
.pp-hello { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 18px; }
.pp-hello h1 { font-size: clamp(1.9rem, 3.4vw, 2.95rem); font-weight: 800; letter-spacing: -.03em; color: var(--pp-navy-2); margin: 0; line-height: 1.12; }
.pp-hello h1 .pp-hl { color: var(--pp-blue); }
.pp-hello h1 .pp-dot { color: var(--pp-gold); }
.pp-hello p { margin: .3rem 0 0; font-size: 1.18rem; color: #4a5672; }
.pp-hello-meta { display: flex; align-items: center; gap: clamp(1rem, 6vw, 7.5rem); padding-top: .9rem; color: var(--pp-navy); font-size: 1.05rem; }
.pp-hello-meta .pp-date { display: inline-flex; align-items: center; gap: .9rem; font-weight: 500; }
.pp-hello-meta .pp-date i { font-size: 1.5rem; }
.pp-hello-meta .pp-upd { display: inline-flex; align-items: center; gap: .55rem; color: var(--pp-muted); font-size: .95rem; }
.pp-live { width: 11px; height: 11px; border-radius: 50%; background: #22a356; box-shadow: 0 0 0 3px rgba(34, 163, 86, .16); }

.pp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 20px; }
.pp-head h1 { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 800; letter-spacing: -.02em; color: var(--pp-navy-2); margin: 0; }
.pp-head h1 .pp-ic { width: 44px; height: 44px; font-size: 1.3rem; }
.pp-head p { margin: .3rem 0 0; color: var(--pp-muted); font-size: 1rem; }
.pp-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Icônes teintées */
.pp-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 1.15rem; }
.pp-ic--green { background: var(--pp-green-soft); color: var(--pp-green); }
.pp-ic--blue { background: var(--pp-blue-soft); color: var(--pp-blue); }
.pp-ic--gold { background: var(--pp-amber-soft); color: #d48806; }
.pp-ic--violet { background: var(--pp-violet-soft); color: var(--pp-violet); }
.pp-ic--cyan { background: #e3f3f4; color: #186c72; }
.pp-ic--red { background: var(--pp-red-soft); color: var(--pp-red); }
.pp-ic--navy { background: #e7ebf5; color: var(--pp-navy); }

/* Cartes */
.pp-card { background: var(--pp-card); border: 1px solid var(--pp-line); border-radius: var(--pp-radius); box-shadow: var(--pp-shadow); }
.pp-card-pad { padding: 20px 22px; }
.pp-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; padding: 18px 22px 8px; }
.pp-card-h h2, .pp-card-h h3 { display: flex; align-items: center; gap: .8rem; margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--pp-navy-2); letter-spacing: -.01em; }
.pp-card-h h2 > i, .pp-card-h h3 > i { font-size: 1.55rem; color: var(--pp-blue); }
.pp-card-h p { margin: .15rem 0 0; color: var(--pp-muted); font-size: .9rem; }
.pp-card-b { padding: 8px 22px 20px; }
.pp-more { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 500; color: var(--pp-blue) !important; text-decoration: none; white-space: nowrap; }
.pp-more:hover { text-decoration: underline; }

/* KPI */
.pp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.pp-kpi { position: relative; display: flex; gap: 14px; padding: 16px 40px 16px 16px; min-height: 128px; text-decoration: none; color: inherit !important; transition: transform .15s, box-shadow .15s; }
.pp-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6, 64, 42, .09); }
.pp-kpi .pp-ic { width: 58px; height: 58px; border-radius: 15px; font-size: 1.9rem; }
.pp-kpi-l { font-size: .98rem; color: var(--pp-ink); font-weight: 500; margin-top: 6px; }
.pp-kpi > span { min-width: 0; }
.pp-kpi .pp-kpi-v--long { font-size: clamp(1rem, 1.2vw, 1.5rem); }
.pp-kpi-v { font-size: clamp(1.3rem, 1.75vw, 2rem); font-weight: 800; overflow-wrap: anywhere; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.pp-kpi-v small { font-size: 1.15rem; font-weight: 700; }
.pp-kpi-s { font-size: .95rem; color: var(--pp-muted); margin-top: 2px; }
.pp-kpi-d { display: flex; align-items: center; gap: .3rem; font-size: .92rem; font-weight: 600; margin-top: 2px; }
.pp-kpi-d.up { color: var(--pp-green); } .pp-kpi-d.down { color: var(--pp-red); } .pp-kpi-d.eq { color: var(--pp-muted); }
.pp-kpi-d small { display: block; width: 100%; font-weight: 400; color: var(--pp-muted); font-size: .8rem; }
.pp-kpi-go { position: absolute; top: 18px; right: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f1f4f9; color: var(--pp-ink); font-size: .8rem; }
.pp-kpi--green .pp-kpi-v { color: var(--pp-green); }
.pp-kpi--blue .pp-kpi-v { color: var(--pp-blue); }
.pp-kpi--gold { background: #fff9ec; border-color: #f5e3b8; }
.pp-kpi--gold .pp-kpi-v { color: #cf8a06; }
.pp-kpi--gold .pp-kpi-s { color: #b67607; }
.pp-kpi--gold .pp-kpi-go { background: #fdf0d2; }
.pp-kpi--gold .pp-ic { background: #fde7b8; color: #c47b04; }
.pp-kpi--violet .pp-kpi-v { color: var(--pp-blue); font-size: 1.5rem; padding-top: .2rem; }
.pp-kpi--violet .pp-kpi-s { color: var(--pp-blue); }

/* Grilles du tableau de bord */
.pp-grid-2 { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.pp-grid-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }

/* Sélecteur compact */
.pp-select { appearance: none; height: 38px; padding: 0 2.2rem 0 .85rem; border: 1px solid var(--pp-line-2); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2312204a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") right .7rem center / 12px no-repeat; color: var(--pp-ink); font-size: .92rem; font-weight: 500; cursor: pointer; }
.pp-select:focus { border-color: var(--pp-blue); box-shadow: var(--pp-focus); outline: none; }

/* Graphique */
.pp-chart { position: relative; height: 232px; }
.pp-legend { display: flex; justify-content: center; gap: 2.4rem; flex-wrap: wrap; margin-top: 10px; font-size: .9rem; color: var(--pp-ink); }
.pp-legend span { display: inline-flex; align-items: center; gap: .55rem; }
.pp-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* Assiduité (semaine) */
.pp-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pp-day { border: 1px solid var(--pp-line); border-radius: 10px; text-align: center; padding: 12px 6px 14px; }
.pp-day b { display: block; font-weight: 600; font-size: .98rem; color: var(--pp-ink); }
.pp-day small { display: block; color: var(--pp-muted); font-size: .86rem; margin-bottom: 10px; }
.pp-day-ic { width: 46px; height: 46px; border-radius: 10px; margin: 0 auto; display: grid; place-items: center; font-size: 1.55rem; }
.pp-day--present .pp-day-ic { background: var(--pp-green-soft); color: var(--pp-green); }
.pp-day--retard .pp-day-ic { background: var(--pp-amber-soft); color: #e48f00; }
.pp-day--absent .pp-day-ic { background: var(--pp-red-soft); color: var(--pp-red); }
.pp-day--permission .pp-day-ic { background: var(--pp-blue-soft); color: var(--pp-blue); }
.pp-day--avenir .pp-day-ic, .pp-day--vacances .pp-day-ic { background: #f2f4f8; color: #a3adc2; }
.pp-day.today { border-color: #b0dfc8; box-shadow: inset 0 0 0 1px #b0dfc8; }
.pp-week-legend { display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap; margin-top: 26px; font-size: .92rem; color: var(--pp-ink); }
.pp-week-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.pp-week-legend i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }

/* Listes (devoirs, informations) */
.pp-list { list-style: none; margin: 0; padding: 0; }
.pp-list > li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf1f7; }
.pp-list > li:last-child { border-bottom: 0; }
.pp-list .pp-ic { width: 44px; height: 44px; font-size: 1.3rem; }
.pp-list-tx { flex: 1; min-width: 0; }
.pp-list-tx strong { display: block; font-size: .95rem; font-weight: 700; color: var(--pp-ink); }
.pp-list-tx span { display: block; font-size: .88rem; color: var(--pp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-list-date { display: flex; align-items: flex-start; gap: .45rem; font-size: .82rem; color: var(--pp-muted); white-space: nowrap; }
.pp-list-date i { font-size: .95rem; color: var(--pp-ink); margin-top: .05rem; }
.pp-list-date b { display: block; color: var(--pp-red); font-weight: 600; font-size: .9rem; }
.pp-news > li { align-items: flex-start; gap: 18px; }
.pp-news-dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; flex: 0 0 11px; background: var(--pp-blue); }
.pp-news-dot.gold { background: var(--pp-gold); } .pp-news-dot.red { background: var(--pp-red); }
.pp-news-top { display: flex; justify-content: space-between; gap: .6rem; }
.pp-news-top em { font-style: normal; color: var(--pp-soft); font-size: .82rem; white-space: nowrap; }
.pp-news .pp-list-tx span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Pastilles / étiquettes */
.pp-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--pp-blue-soft); color: var(--pp-blue); }
.pp-pill--muted { background: #eef1f6; color: #4f5a73; }
.pp-pill--green { background: var(--pp-green-soft); color: #15784a; }
.pp-pill--gold { background: var(--pp-amber-soft); color: #9b6100; }
.pp-pill--red { background: var(--pp-red-soft); color: #b42328; }
.pp-pill--violet { background: var(--pp-violet-soft); color: var(--pp-violet); }
.pp-tag { display: inline-flex; align-items: center; padding: .08rem .45rem; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; vertical-align: middle; }
.pp-tag--fr { background: #eef8f3; color: #1a5e3c; }
.pp-tag--ar { background: #e3f6ea; color: #157a46; }

/* Barres par matière */
.pp-bars { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.pp-bar-row { display: grid; grid-template-columns: minmax(110px, 1.05fr) minmax(70px, 1fr) auto; align-items: center; gap: 14px; font-size: .92rem; color: var(--pp-ink); }
.pp-bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-bar { height: 15px; border-radius: 4px; background: #eef1f6; overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: 4px; }
.pp-bar-row b { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.pp-bar-row b small { font-weight: 500; color: var(--pp-ink); }
.pp-bars-sec { margin: 6px 0 -2px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--pp-soft); }

/* Bande d'analyse (point fort / conseil) */
.pp-insight { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 20px; margin-bottom: 4px; }
.pp-insight .pp-ic { width: 58px; height: 58px; border-radius: 14px; font-size: 1.8rem; }
.pp-insight-a { display: flex; align-items: center; gap: 18px; }
.pp-insight-a h3 { margin: 0; font-size: 1.25rem; font-weight: 700; color: #137a45; }
.pp-insight-a p { margin: .15rem 0 0; color: var(--pp-navy); font-size: .98rem; }
.pp-insight-b { display: flex; gap: 14px; align-items: flex-start; border-left: 1px solid var(--pp-line-2); padding-left: 26px; }
.pp-insight-b > i { font-size: 2rem; color: var(--pp-gold); line-height: 1; }
.pp-insight-b strong { display: block; color: var(--pp-navy); font-size: .95rem; }
.pp-insight-b p { margin: .1rem 0 0; color: var(--pp-navy); font-size: .9rem; }
.pp-insight-note { display: block; color: var(--pp-soft); font-size: .74rem; margin-top: .25rem; }
.pp-x { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; color: var(--pp-navy); font-size: 1.15rem; }
.pp-x:hover { background: #f1f4f9; }

/* Boutons */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 42px; padding: 0 1.05rem; border-radius: 10px; border: 1px solid transparent; font-size: .93rem; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: filter .12s, background .12s, border-color .12s; white-space: nowrap; }
.pp-btn--primary { background: linear-gradient(90deg, #17633d, #1a6f45); color: #fff !important; box-shadow: 0 6px 14px rgba(11, 107, 61, .22); }
.pp-btn--primary:hover { filter: brightness(1.07); }
.pp-btn--ghost { background: #fff; border-color: var(--pp-line-2); color: var(--pp-ink) !important; }
.pp-btn--ghost:hover { border-color: #a9bad6; background: #f8fafd; }
.pp-btn--gold { background: linear-gradient(90deg, #c99945, #e59b0b); color: #3d2700 !important; }
.pp-btn--green { background: #1f9d55; color: #fff !important; }
.pp-btn--sm { height: 34px; padding: 0 .75rem; font-size: .84rem; border-radius: 8px; }
.pp-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Sous-navigation (onglets) */
.pp-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: #eaeff7; border-radius: 12px; width: max-content; max-width: 100%; margin-bottom: 18px; }
.pp-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--pp-muted) !important; text-decoration: none; }
.pp-tabs a.on { background: #fff; color: var(--pp-navy) !important; box-shadow: 0 1px 3px rgba(6, 64, 42, .1); }
.pp-tabs a:hover:not(.on) { color: var(--pp-blue) !important; }

/* Tableaux */
.pp-table-wrap { overflow-x: auto; }
.pp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pp-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pp-soft); font-weight: 700; padding: .7rem .9rem; border-bottom: 1px solid var(--pp-line); background: #fafbfe; white-space: nowrap; }
.pp-table td { padding: .75rem .9rem; border-bottom: 1px solid #eef2f7; vertical-align: middle; color: var(--pp-text); }
.pp-table tr:last-child td { border-bottom: 0; }
.pp-table tbody tr:hover td { background: #fafcff; }
.pp-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-table .c { text-align: center; }

/* Statistiques mini */
.pp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pp-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pp-stat b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--pp-navy-2); line-height: 1.1; }
.pp-stat span { display: block; font-size: .84rem; color: var(--pp-muted); }

/* Formulaires */
.pp-form .form-label { font-size: .86rem; font-weight: 600; color: var(--pp-ink); margin-bottom: .3rem; }
.pp-form .form-control, .pp-form .form-select { border-radius: 9px; border-color: var(--pp-line-2); min-height: 44px; font-size: .95rem; color: var(--pp-text); }
.pp-form .form-control:focus, .pp-form .form-select:focus { border-color: var(--pp-blue); box-shadow: var(--pp-focus); }
.pp-form .form-text { color: var(--pp-muted); font-size: .8rem; }
.pp-req::after { content: " *"; color: var(--pp-red); }
.pp-filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.pp-filters label { display: block; font-size: .76rem; font-weight: 600; color: var(--pp-muted); margin-bottom: .2rem; }

/* États vides */
.pp-empty { text-align: center; color: var(--pp-muted); padding: 2.2rem 1rem; font-size: .95rem; }
.pp-empty i { display: block; font-size: 2.2rem; color: #b5c0d4; margin-bottom: .5rem; }
.pp-empty--sm { padding: 1.4rem 1rem; font-size: .88rem; }
.pp-empty--sm i { font-size: 1.6rem; }
.pp-note { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 11px; background: var(--pp-blue-soft); color: #143f2a; font-size: .88rem; }
.pp-note i { margin-top: .1rem; }
.pp-note--gold { background: var(--pp-amber-soft); color: #6f4600; }

/* Cartes enfants */
.pp-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pp-kid { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pp-kid-top { display: flex; gap: 14px; align-items: center; }
.pp-kid-top h2 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--pp-navy-2); }
.pp-kid-top small { color: var(--pp-muted); }
.pp-kid-cls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-kid-cls div { padding: 10px 12px; border-radius: 10px; background: #f6f8fc; border: 1px solid var(--pp-line); }
.pp-kid-cls span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pp-soft); font-weight: 700; }
.pp-kid-cls b { display: block; font-size: .98rem; color: var(--pp-ink); }
.pp-kid-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .86rem; color: var(--pp-muted); }
.pp-kid-meta i { color: var(--pp-blue); margin-right: .3rem; }
.pp-kid-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.pp-kid-kpi div { padding: 10px 6px; border-radius: 10px; border: 1px solid var(--pp-line); }
.pp-kid-kpi b { display: block; font-size: 1.1rem; font-weight: 800; color: var(--pp-navy-2); }
.pp-kid-kpi span { font-size: .76rem; color: var(--pp-muted); }
.pp-kid-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }

/* Notes groupées par section */
.pp-sec-h { display: flex; align-items: center; gap: .6rem; margin: 6px 0 12px; font-size: 1.05rem; font-weight: 800; color: var(--pp-navy-2); }
.pp-sec-h .pp-tag { font-size: .74rem; }
.pp-subj { margin-bottom: 12px; overflow: hidden; }
.pp-subj > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; }
.pp-subj > summary::-webkit-details-marker { display: none; }
.pp-subj > summary strong { font-size: 1rem; color: var(--pp-ink); }
.pp-subj > summary small { display: block; color: var(--pp-muted); font-size: .8rem; }
.pp-subj-moy { font-size: 1.25rem; font-weight: 800; color: var(--pp-navy-2); white-space: nowrap; }
.pp-subj-moy small { font-size: .8rem; font-weight: 600; color: var(--pp-muted); display: inline; }
.pp-subj-cmp { font-size: .8rem; color: var(--pp-muted); text-align: right; white-space: nowrap; }
.pp-subj[open] > summary { border-bottom: 1px solid var(--pp-line); }
.pp-subj-caret { transition: transform .15s; color: var(--pp-muted); }
.pp-subj[open] .pp-subj-caret { transform: rotate(180deg); }

/* Emploi du temps */
.pp-edt { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; }
.pp-edt-col h3 { font-size: .95rem; font-weight: 700; color: var(--pp-navy-2); text-transform: capitalize; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.pp-edt-col.today h3 { color: var(--pp-blue); }
.pp-slot { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--pp-line); border-left: 4px solid var(--pp-blue); background: #fff; margin-bottom: 8px; font-size: .86rem; }
.pp-slot--ar { border-left-color: var(--pp-green); background: #fbfefc; }
.pp-slot b { display: block; color: var(--pp-ink); font-size: .9rem; }
.pp-slot time { font-weight: 700; color: var(--pp-blue); font-size: .8rem; }
.pp-slot--ar time { color: var(--pp-green); }
.pp-slot span { display: block; color: var(--pp-muted); font-size: .78rem; }

/* Agenda */
.pp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--pp-line); border-left: 1px solid var(--pp-line); }
.pp-cal-h { padding: .5rem; text-align: center; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pp-soft); background: #fafbfe; border-right: 1px solid var(--pp-line); border-bottom: 1px solid var(--pp-line); }
.pp-cal-d { min-height: 92px; padding: 6px; border-right: 1px solid var(--pp-line); border-bottom: 1px solid var(--pp-line); font-size: .78rem; }
.pp-cal-d.out { background: #fafbfd; color: #b5bdcc; }
.pp-cal-d.today { background: #f6fbf8; }
.pp-cal-n { font-weight: 700; color: var(--pp-ink); font-size: .85rem; }
.pp-cal-d.today .pp-cal-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pp-blue); color: #fff; }
.pp-cal-ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; font-weight: 600; text-decoration: none !important; }
.ev-devoir { background: var(--pp-blue-soft); color: #1a5e3c !important; }
.ev-evaluation { background: var(--pp-violet-soft); color: var(--pp-violet) !important; }
.ev-paiement { background: var(--pp-amber-soft); color: #8a5600 !important; }
.ev-info { background: #e3f3f4; color: #14595e !important; }
.ev-rdv { background: var(--pp-green-soft); color: #15784a !important; }
.ev-periode { background: #eef1f6; color: #4f5a73 !important; }
.pp-agenda-list > li { align-items: flex-start; }
.pp-agenda-day { flex: 0 0 64px; text-align: center; border-radius: 10px; background: #f3f6fb; padding: 6px 0; }
.pp-agenda-day b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--pp-navy-2); line-height: 1.1; }
.pp-agenda-day span { font-size: .72rem; color: var(--pp-muted); text-transform: uppercase; }

/* Paiement en ligne */
.pp-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pp-choice { position: relative; display: block; cursor: pointer; }
.pp-choice input { position: absolute; opacity: 0; }
.pp-choice > span { display: flex; align-items: center; gap: .7rem; padding: 12px 14px; border: 1.5px solid var(--pp-line-2); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; height: 100%; }
.pp-choice input:checked + span { border-color: var(--pp-blue); box-shadow: var(--pp-focus); background: #f7faff; }
.pp-choice input:focus-visible + span { outline: 2px solid var(--pp-blue); outline-offset: 2px; }
.pp-choice-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; flex: 0 0 auto; }
.pp-recap { position: sticky; top: 120px; }
.pp-recap dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
.pp-recap dt { color: var(--pp-muted); font-weight: 500; }
.pp-recap dd { margin: 0; text-align: right; font-weight: 700; color: var(--pp-ink); }

/* Progression d'échéancier */
.pp-progress { height: 10px; border-radius: 999px; background: #edf1f7; overflow: hidden; }
.pp-progress i { display: block; height: 100%; background: linear-gradient(90deg, #1f9d55, #3cc47c); border-radius: 999px; }

/* Signature (bulletins) */
.pp-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.pp-modal.show { display: block; }
.pp-modal-bg { position: absolute; inset: 0; background: rgba(4, 36, 24, .55); backdrop-filter: blur(2px); }
.pp-modal-card { position: relative; max-width: 580px; margin: 6vh auto; background: #fff; border-radius: 18px; box-shadow: var(--pp-shadow-lg); overflow: hidden; }
.pp-modal-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--pp-line); }
.pp-modal-h h2 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--pp-navy-2); }
.pp-modal-b { padding: 1.1rem 1.3rem; }
.pp-modal-f { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.3rem; border-top: 1px solid var(--pp-line); background: #fafbfe; }
.pp-sig-tabs { display: flex; gap: .5rem; margin-bottom: .9rem; }
.pp-sig-tab { flex: 1; padding: .55rem; border: 2px solid var(--pp-line); background: transparent; border-radius: 11px; font-weight: 700; color: var(--pp-muted); }
.pp-sig-tab.active { border-color: var(--pp-blue); color: var(--pp-blue); background: #f4f8ff; }
.pp-sig-wrap { position: relative; border: 2px dashed var(--pp-line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.pp-sig-wrap canvas { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.pp-sig-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #c2cad9; font-size: .85rem; pointer-events: none; }
.pp-sig-wrap.drawn .pp-sig-hint { display: none; }
.pp-sig-upload { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem; border: 2px dashed var(--pp-line-2); border-radius: 12px; cursor: pointer; text-align: center; }
.pp-sig-upload i { font-size: 2rem; color: var(--pp-blue); }
.pp-sig-thumb { height: 34px; max-width: 90px; object-fit: contain; background: #fff; border: 1px solid var(--pp-line); border-radius: 6px; padding: 2px; }

/* Messagerie partagée : intégration douce */
.pp-main .cm-head h1 { color: var(--pp-navy-2); font-weight: 800; letter-spacing: -.02em; }
.pp-main .cm, .pp-main .cm-portal, .pp-main .cm-portal > * { min-width: 0; max-width: 100%; }
.pp-main .cm-head { flex-wrap: wrap; gap: .6rem; }
@media (max-width: 1100px) { .pp-main .cm-portal { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   4. RESPONSIVE
   ========================================================================== */
@media (max-width: 1359.98px) {
  .pp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1399.98px) {
  .pp-child { margin-left: clamp(0px, 3vw, 60px); }
  .pp-child-btn { min-width: 300px; }
  .pp-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pp-grid-3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1199.98px) {
  .pp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .pp-me-tx { display: none; }
  .pp-insight { grid-template-columns: minmax(0, 1fr) auto; }
  .pp-insight-b { grid-column: 1 / 2; border-left: 0; padding-left: 0; border-top: 1px solid var(--pp-line); padding-top: 12px; }
  .pp-insight .pp-x { grid-row: 1; grid-column: 2; }
  .pp-edt { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}
@media (max-width: 991.98px) {
  .pp-top { height: 74px; gap: .7rem; }
  .pp-brand img { height: 52px; }
  .pp-child { margin-left: 0; flex: 1; }
  .pp-child-btn { min-width: 0; width: 100%; height: 52px; }
  .pp-me-av { width: 44px; height: 44px; font-size: 1.2rem; }
  .pp-top-sep { display: none; }
  .pp-side { width: 280px; }
  .pp-nav { padding-top: 10px; }
  .pp-main { padding: 18px 16px 30px; }
  .pp-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .pp-hello-meta { gap: 1.2rem; padding-top: .3rem; }
}
@media (max-width: 767.98px) {
  .pp-brand img { height: 40px; }
  .pp-child-cls, .pp-child-dot { display: none; }
  .pp-bell { width: 40px; height: 40px; font-size: 1.45rem; }
  .pp-kpis { grid-template-columns: minmax(0, 1fr); }
  .pp-kpi { min-height: 0; }
  .pp-child-btn { padding: 0 .6rem 0 .35rem; gap: .5rem; }
  .pp-child-btn .pp-av { width: 34px; height: 34px; font-size: .75rem; }
  .pp-hello-meta { font-size: .9rem; }
  .pp-insight { grid-template-columns: minmax(0, 1fr); }
  .pp-insight .pp-x { position: absolute; right: 8px; top: 8px; }
  .pp-insight { position: relative; }
  .pp-week { gap: 4px; }
  .pp-day { padding: 8px 2px 10px; }
  .pp-day-ic { width: 36px; height: 36px; font-size: 1.2rem; }
  .pp-day small { font-size: .72rem; }
  .pp-edt { grid-template-columns: minmax(0, 1fr); }
  .pp-cal-d { min-height: 58px; }
  .pp-cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .pp-subj > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pp-subj-cmp { display: none; }
  .pp-kid-cls { grid-template-columns: 1fr; }
  .pp-foot-in { justify-content: center; text-align: center; font-size: .82rem; }
}
@media (max-width: 420px) {
  .pp-brand { display: none; }
  .pp-legend { gap: 1rem; }
  .pp-week-legend { gap: 1rem; }
}

/* RTL */
html[dir="rtl"] .pp-kpi-go { right: auto; left: 16px; }
html[dir="rtl"] .pp-insight-b { border-left: 0; border-right: 1px solid var(--pp-line-2); padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .pp-side { border-right: 0; border-left: 1px solid var(--pp-line); }
html[dir="rtl"] .pp-child-caret { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .pp-top-actions { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .pl-input-ic { left: auto; right: 20px; }
html[dir="rtl"] .pl-input input, html[dir="rtl"] .pl-input select { padding: 0 70px 0 3.1rem; }
html[dir="rtl"] .pl-eye { right: auto; left: 12px; }
/* Arabe : la carte passe à gauche → photo en miroir pour garder la famille visible ; flèches inversées */
html[dir="rtl"] .pl-photo { transform: scaleX(-1); }
html[dir="rtl"] .pl-btn .bi-arrow-right, html[dir="rtl"] .pl-help-arrow { transform: scaleX(-1); display: inline-block; }
html[dir="rtl"] .pp-table th { text-align: right; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   5. IMPRESSION
   ========================================================================== */
@media print {
  .pp-top, .pp-side, .pp-foot, .pp-env-ribbon, .pp-no-print, .pp-flashes, .pp-skip, .es-ribbon { display: none !important; }
  .pp-body { background: #fff; }
  .pp-main { padding: 0; }
  .pp-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .pp-print-only { display: block !important; }
  a { text-decoration: none !important; color: inherit !important; }
}
.pp-print-only { display: none; }

/* Barre latérale : libellés sur une seule ligne, défilement discret */
@media (min-width: 992px) {
  .pp-side { scrollbar-width: thin; scrollbar-color: #cfd8e6 transparent; }
  .pp-side::-webkit-scrollbar { width: 6px; }
  .pp-side::-webkit-scrollbar-thumb { background: #cfd8e6; border-radius: 6px; }
}
.pp-nav-link { gap: .9rem; font-size: 1rem; white-space: nowrap; }
.pp-nav-link span { overflow: hidden; text-overflow: ellipsis; }
.pp-main { overflow-x: clip; }
.ev-fete { background: #e7f6ec; color: #0d6b33 !important; }

/* Logo de l'établissement (Al-Andalus) : <picture> en bloc pour garder les hauteurs .pp-brand img */
.pp-brand picture, .pp-side-head picture { display: block; }
