/* 🚪 (2026-11-21) باب الدخول الواحد للبلاتفورم + صفحة الدخول — ملفّ مستقلّ (لا يُحمَّل معه app.css، فلا تسري قاعدة 12pt العامّة). الهاتف أوّلاً. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin.woff2) format("woff2"); }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font-family: "Montserrat", "Segoe UI", Tahoma, Arial, sans-serif; color: #0f172a; background: #f1f5f9; font-size: 16px; line-height: 1.45; }
[dir=rtl], .ar { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
.pf { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 42%) 1fr; }
.pf-g { position: relative; overflow: hidden; background: linear-gradient(150deg, #4A86D8 0%, #3A6FBE 55%, #2F5CA6 100%); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.pf-g::before, .pf-g::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.pf-g::before { width: 420px; height: 420px; top: -150px; inset-inline-end: -160px; } .pf-g::after { width: 300px; height: 300px; bottom: -120px; inset-inline-start: -110px; }
.pf-g > * { position: relative; z-index: 1; }
.pf-logo { width: 168px; height: 168px; background: #fff; border-radius: 38px; display: grid; place-items: center; box-shadow: 0 18px 40px rgba(0,0,0,.25); } .pf-logo img { width: 80%; height: 80%; object-fit: contain; }
.pf-g h1 { font-size: 30px; font-weight: 700; line-height: 1.2; margin-top: 26px; } .pf-g h1 .ar { display: block; font-size: 24px; font-weight: 600; opacity: .95; margin-top: 4px; }
.pf-g .slogan { font-size: 17px; opacity: .92; margin-top: 12px; max-width: 30em; } .pf-g .slogan .ar { display: block; margin-top: 4px; }
.pf-pts { list-style: none; padding: 0; display: grid; gap: 10px; } .pf-pts li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; } .pf-pts li i { font-style: normal; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 19px; flex: none; }
.pf-pts li span .ar { display: block; opacity: .85; font-size: 14.5px; }
.pf-app { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 11px 20px; font-weight: 600; width: fit-content; } .pf-app:hover { background: rgba(255,255,255,.14); }
.pf-d { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 22px; max-width: 760px; width: 100%; margin: 0 auto; }
.pf-d h2 { font-size: 26px; font-weight: 700; color: #0f172a; } .pf-d h2 .ar { display: block; font-size: 21px; font-weight: 600; color: #475569; }
.pf-portes { display: grid; gap: 14px; }
.pf-p { display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(15,23,42,.08); border: 1px solid #e2e8f0; transition: transform .14s, box-shadow .14s, border-color .14s; }
.pf-p:hover, .pf-p:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(74,134,216,.18); border-color: #4A86D8; outline: none; }
.pf-p .ic { width: 62px; height: 62px; border-radius: 18px; background: #EDF3FC; display: grid; place-items: center; font-size: 30px; flex: none; }
.pf-p b { display: block; font-size: 19px; } .pf-p b .ar { font-weight: 600; color: #475569; font-size: 17px; margin-inline-start: 8px; } .pf-p small { display: block; color: #64748b; font-size: 14.5px; margin-top: 2px; } .pf-p small .ar { display: block; }
.pf-p .fl { margin-inline-start: auto; color: #4A86D8; font-size: 24px; flex: none; }
.pf-equipe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: #64748b; font-size: 14.5px; } .pf-equipe a { text-decoration: none; color: #4A86D8; font-weight: 600; background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; padding: 8px 16px; } .pf-equipe a:hover { border-color: #4A86D8; }
.pf-pied { color: #94a3b8; font-size: 13px; }
/* صفحة الدخول */
.pf-form { background: #fff; border-radius: 22px; padding: 30px 28px; box-shadow: 0 10px 30px rgba(15,23,42,.08); border: 1px solid #e2e8f0; display: grid; gap: 16px; max-width: 460px; width: 100%; }
.pf-form .esp { display: flex; align-items: center; gap: 14px; } .pf-form .esp .ic { width: 54px; height: 54px; border-radius: 16px; background: #EDF3FC; display: grid; place-items: center; font-size: 27px; } .pf-form .esp b { font-size: 20px; display: block; } .pf-form .esp b .ar { display: block; font-size: 17px; font-weight: 600; color: #475569; }
.pf-form label { display: grid; gap: 6px; font-weight: 600; color: #334155; font-size: 15px; } .pf-form label .ar { font-weight: 400; color: #64748b; margin-inline-start: 6px; }
.pf-form input[type=text], .pf-form input:not([type]), .pf-form input[type=password] { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid #cbd5e1; border-radius: 14px; background: #f8fafc; color: #0f172a; }
.pf-form input:focus { outline: none; border-color: #4A86D8; background: #fff; box-shadow: 0 0 0 4px rgba(74,134,216,.14); }
.pf-form .chk { display: flex; align-items: center; gap: 10px; font-weight: 500; } .pf-form .chk input { width: 20px; height: 20px; accent-color: #4A86D8; }
.pf-btn { font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: #4A86D8; border: 0; border-radius: 14px; padding: 14px; cursor: pointer; } .pf-btn:hover { background: #3A6FBE; } .pf-btn .ar { margin-inline-start: 8px; font-weight: 600; }
.pf-err { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: 12px; padding: 11px 14px; font-size: 15px; } .pf-err .ar { display: block; }
.pf-liens { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; } .pf-liens a { color: #4A86D8; text-decoration: none; font-weight: 600; } .pf-liens .ar { margin-inline-start: 6px; font-weight: 400; }
.pf-hint { color: #64748b; font-size: 13.5px; }
.bi { display: contents; } .bi .fr { } /* tr() ثنائية: الفرنسي ثمّ العربي */
@media (max-width: 900px) {
  .pf { grid-template-columns: 1fr; }
  .pf-g { padding: 26px 22px 24px; gap: 16px; flex-direction: row; align-items: center; justify-content: flex-start; } .pf-g .haut { display: flex; align-items: center; gap: 16px; }
  .pf-logo { width: 84px; height: 84px; border-radius: 20px; flex: none; } .pf-g h1 { font-size: 21px; margin-top: 0; } .pf-g h1 .ar { font-size: 18px; } .pf-g .slogan, .pf-pts, .pf-g .pf-app { display: none; }
  .pf-d { padding: 24px 16px 30px; gap: 18px; justify-content: flex-start; } .pf-d h2 { font-size: 21px; } .pf-d h2 .ar { font-size: 18px; }
  .pf-p { padding: 16px; gap: 14px; border-radius: 18px; } .pf-p .ic { width: 54px; height: 54px; font-size: 26px; border-radius: 16px; } .pf-p b { font-size: 17.5px; } .pf-p b .ar { display: block; margin: 0; }
  .pf-app-m { display: inline-flex !important; }
}
.pf-app-m { display: none; align-items: center; gap: 8px; color: #4A86D8; text-decoration: none; font-weight: 600; border: 1px solid #cbd5e1; background: #fff; border-radius: 999px; padding: 10px 18px; width: fit-content; }
.bi .ar { margin-inline-start: .45em; } .pf-g h1 .ar, .pf-g .slogan .ar, .pf-pts li span .ar, .pf-d h2 .ar, .pf-p small .ar, .pf-form .esp b .ar, .pf-err .ar { margin-inline-start: 0; }

/* (22/11) مربّع الشعار = أيقونة التطبيق الخضراء نفسها (تملأ المربّع، بلا إطار أبيض) */
.pf-logo { background: #fff; overflow: hidden; } .pf-logo img { width: 100%; height: 100%; object-fit: cover; }

/* (22/11) الدخول الواحد */
.pf-h { margin: 0; font-size: 22px; color: #0f172a; } .pf-h .ar { display: block; font-size: 18px; font-weight: 500; color: #64748b; margin: 0; }
button.pf-cx { width: 100%; font: inherit; text-align: start; cursor: pointer; }
/* 📲🔑 2026-11-25 الدخول برقم الهاتف */
.pf-tel { display: block; text-align: center; color: #1f5fbf; text-decoration: none; font-weight: 700; font-size: 16px; border: 2px solid #4A86D8; background: #EDF3FC; border-radius: 14px; padding: 13px 16px; } .pf-tel .ar { display: block; margin-top: 2px; font-weight: 600; }
.pf-note { margin: 0; color: #475569; font-size: 15px; line-height: 1.5; } .pf-note .ar { display: block; margin-top: 4px; }
.pf-form input.pf-code { font-size: 28px; letter-spacing: 8px; text-align: center; font-weight: 700; }
.pf-autre { text-align: center; } .pf-autre button { font: inherit; font-size: 14.5px; font-weight: 600; color: #4A86D8; background: none; border: 0; cursor: pointer; padding: 6px; } .pf-autre .ar { margin-inline-start: 6px; font-weight: 400; }

/* 🎨 الشكل «ب» (2026-11-26): على الهاتف — الشعار كبير بالوسط على أزرق المدرسة، وتحته ورقة بيضاء بزوايا مدوّرة فيها الدخول (مثل النموذج الذي وافق عليه المدير) */
@media (max-width: 900px) {
  body { background: #3A6FBE; }
  .pf { grid-template-rows: auto 1fr; background: linear-gradient(170deg, #4A86D8 0%, #3A6FBE 60%, #2F5CA6 100%); }
  .pf-g { background: transparent; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px 20px 24px; }
  .pf-g .haut { flex-direction: column; gap: 14px; }
  .pf-logo { width: 108px; height: 108px; border-radius: 28px; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
  .pf-g h1 { font-size: 24px; } .pf-g h1 .ar { font-size: 19px; }
  .pf-d { background: #f4f7fc; border-radius: 30px 30px 0 0; padding: 26px 18px 34px; max-width: none; box-shadow: 0 -8px 24px rgba(15, 35, 75, .18); }
  .pf-form { max-width: none; border-radius: 22px; }
  .pf-form .pf-btn, .pf-p { border-radius: 18px; }
}

/* 29/11/2026 — صفحة الدخول: الفرنسي والعربي كانا ملتصقين («Identifiantاسم الدخول»): العربي dir=rtl فهامش «البداية» يقع على يمينه لا بينه وبين الفرنسي ⇒ هامش يسار صريح */
.pf-form label .bi > .ar, .pf-btn .bi > .ar, .pf-liens .bi > .ar, .pf-form .chk .bi > .ar, .pf-inst .bi > .ar { margin-inline-start: 0; margin-left: .5em; }
.pf-form .chk .bi > .ar { display: block; margin-left: 0; }

/* 29/11/2026 — «بدّي تكون أيقونة البلاتفورم عالمية… والصفحة عالمية»: رسمة الشعار بالأبيض والذهبي مباشرة على أزرق المدرسة (نفس هويّة الأيقونة)، بلا المربّع الأبيض القديم */
.pf-logo.pf-marque { background: none; box-shadow: none; border-radius: 0; overflow: visible; width: 190px; height: 190px; filter: drop-shadow(0 10px 22px rgba(8, 28, 78, .35)); }
.pf-logo.pf-marque img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 860px) { .pf-logo.pf-marque { width: 128px; height: 128px; } }

/* 29/11/2026 مساءً — صفحة الدخول: رمز الشعار بألوانه الرسمية على مربّع أبيض (مع «En Avant»، بلا اسم المدرسة). الشكل الأزرق/الأبيض (.pf-marque) أُلغي بقرار المدير. */
.pf-logo.pf-officiel { background: #fff; overflow: hidden; } .pf-logo.pf-officiel img { width: 100%; height: 100%; object-fit: cover; }
