
@font-face { font-family: Readex; src: url(/polices/readex.woff2) format('woff2'); font-weight: 200 700; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-017F, U+0218-021B, U+02BB-02BF, U+02C6, U+02DA, U+02DC, U+1E00-1EFF, U+2000-2065, U+206A-206F, U+20AC, U+20B9, U+20BA, U+2122, U+2190-2193, U+2212; }

@font-face { font-family: Readex; src: url(/polices/readex-ar.woff2) format('woff2'); font-weight: 200 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+2066-2069, U+FB50-FDFF, U+FE70-FEFF; }
:root {
  --encre: #15171c; --rubrique: #b3301a; --papier: #ffffff; --trait: #e3e1dc; --doux: #5f5e5a; --pale: #a19f99;
  --fond2: #f4f3f0; --focus: #1f5fd1;
  --r-texte: 16px; --r-petit: 14px; --r-mini: 13px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: Readex, system-ui, sans-serif; font-size: var(--r-texte); line-height: 1.45; color: var(--encre); background: var(--papier);
  font-feature-settings: "tnum"; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
* { touch-action: manipulation; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: inherit; }

.page { max-width: 1200px; margin: 0 auto; padding: 0 18px 48px; }
header.tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; }
h1 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; font-weight: 400; }
h1 .marque { display: inline-block; padding: 6px 0; margin: -6px 0; font-size: 23px; font-weight: 650; letter-spacing: -0.015em; text-decoration: none; }
h1 .titre { font-size: 15px; color: var(--doux); text-wrap: balance; }
nav.langues { display: flex; }
nav.langues a { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 15px; text-decoration: none; color: var(--doux); }
nav.langues a[aria-current] { color: var(--encre); font-weight: 600; }

#ecoles { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--encre); margin: 4px 0 22px; }
#ecoles button { min-height: 48px; border: 0; border-inline-end: 1px solid var(--encre); background: none; font-size: 15px; padding: 0 4px; }
#ecoles button:last-child { border-inline-end: 0; }
#ecoles button[aria-checked="true"] { background: var(--encre); color: #fff; font-weight: 500; }

.cols { display: grid; gap: 28px; }
.cols > * { min-width: 0; }

.cols:has(.echec-charge) { min-height: 100svh; }
@media (min-width: 960px) {
  .page { padding: 0 40px 64px; }
  header.tete { padding: 28px 0 22px; }
  .cols { grid-template-columns: minmax(360px, 420px) 1fr; gap: 56px; align-items: start; }
  #ecoles { max-width: 420px; }
  #resultat { position: sticky; top: 16px; }
}

.groupe { border-top: 2px solid var(--encre); padding-top: 10px; margin-bottom: 20px; }
.groupe h2 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.lig { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 10px; min-height: 48px; border-bottom: 1px solid var(--trait); }
.lig .n { color: var(--doux); }
.lig.on .n { color: var(--encre); font-weight: 500; }
.pt { font-weight: 600; font-size: 15px; text-align: end; min-width: 3ch; }
.pt.ex { font-weight: 400; color: var(--pale); }
.cpt { display: flex; align-items: center; }
.cpt button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; line-height: 1; border-radius: 4px; }
.cpt button:active { background: var(--fond2); }
.cpt button:disabled { color: #cfcdc8; cursor: default; }
.cpt output { min-width: 22px; text-align: center; font-weight: 600; }
.lig:not(.on) .cpt output { color: var(--pale); font-weight: 400; }
.autres { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; border: 0; border-top: 2px solid var(--encre); background: none; font-weight: 600; font-size: 15px; margin-bottom: 20px; text-align: start; }
.chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.autres[aria-expanded="true"] .chev { transform: translateY(2px) rotate(225deg); }
.branche { padding-top: 10px; }
.branche .bt { display: flex; align-items: center; justify-content: space-between; min-height: 32px; font-size: var(--r-petit); color: var(--doux); }
.lig.sous { padding-inline-start: 14px; }
.retire { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--doux); margin-inline-end: 0; }
.ajout { min-height: 44px; border: 0; background: none; color: var(--rubrique); font-size: var(--r-petit); font-weight: 500; padding: 0 14px; }
.lig.case { cursor: pointer; }
.lig.case input { width: 22px; height: 22px; margin: 0 11px; accent-color: var(--encre); }

#resultat.vide { display: none; }
@media (min-width: 960px) { #resultat.vide { display: block; } }
.jadwal { width: 100%; border-collapse: collapse; }
.jadwal th { font-weight: 400; font-size: var(--r-mini); color: var(--doux); text-align: end; padding: 0 0 6px; border-bottom: 2px solid var(--encre); vertical-align: bottom; }
.jadwal th:first-child { text-align: start; }
.jadwal th + th { padding-inline-start: 12px; }
.jadwal th.sahm { padding-inline-start: 16px; }
.commun { font-size: var(--r-petit); color: var(--doux); margin-bottom: 14px; padding-inline-start: 12px; border-inline-start: 2px solid var(--rubrique); }
.jadwal .base { font-size: 30px; font-weight: 600; color: var(--rubrique); line-height: 1; white-space: nowrap; }
.jadwal .base s { font-size: 20px; font-weight: 300; color: var(--pale); }
.jadwal td { padding: 14px 0 12px; border-bottom: 1px solid var(--trait); vertical-align: top; text-align: end; }
.jadwal td:first-child { text-align: start; }
.jadwal .h { font-size: 17px; font-weight: 500; }
.nb { display: inline-block; min-width: 22px; padding: 0 6px; margin-inline-start: 4px; border: 1px solid var(--trait); border-radius: 4px; font-size: var(--r-mini); text-align: center; font-weight: 500; vertical-align: 1px; }
.jadwal .r { font-size: var(--r-petit); color: var(--doux); margin-top: 3px; max-width: 52ch; }
.pv { margin-top: 5px; font-size: var(--r-mini); }
p.pv { color: var(--doux); }

.pv summary { list-style: none; color: var(--rubrique); cursor: pointer; padding: 13px 0; margin: -10px 0; -webkit-user-select: none; user-select: none; }
.pv summary::-webkit-details-marker { display: none; }
.pv ul { list-style: none; color: var(--doux); padding-block: 4px 2px; padding-inline: 12px 0; border-inline-start: 2px solid var(--rubrique); margin-top: 4px; }
.pv li + li { margin-top: 6px; }
.jadwal .f { font-size: 20px; font-weight: 600; white-space: nowrap; padding-inline-start: 12px; }
.jadwal .f .tete { display: block; font-size: var(--r-mini); font-weight: 400; color: var(--doux); white-space: normal; } 
.jadwal .s { font-size: 20px; font-weight: 300; padding-inline-start: 16px; min-width: 52px; }
.jadwal .exclu .h, .jadwal .exclu .f { color: var(--pale); }
.jadwal .exclu .f { font-size: 15px; font-weight: 400; }
.jadwal .reste .h { color: var(--rubrique); }
.notes { margin-top: 18px; font-size: var(--r-petit); color: var(--doux); display: grid; gap: 8px; }
.soumettre { border: 1px solid var(--rubrique); background: var(--fond2); padding: 14px 16px; margin-bottom: 20px; }
.soumettre h3, .variante h3, .divergences h3, #argent h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.soumettre p { font-size: 15px; }
.soumettre p + p { margin-top: 8px; }
.variante, .divergences { margin-top: 24px; background: var(--fond2); padding: 14px 16px; }
.variante table, .divergences table { border-collapse: collapse; width: 100%; font-size: 15px; }
.variante td { padding: 5px 0; } .variante td:last-child { text-align: end; font-weight: 600; }
.defile { overflow-x: auto; }
.divergences th, .divergences td { padding-block: 6px; padding-inline: 12px 0; text-align: end; font-weight: 400; white-space: nowrap; }
.divergences thead th { font-size: var(--r-mini); color: var(--doux); }
.divergences th[scope="row"] { text-align: start; padding-inline-start: 0; white-space: normal; min-width: 9em; position: sticky; inset-inline-start: 0; z-index: 1; background: var(--fond2); }
.divergences thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--fond2); }
.divergences .on { font-weight: 600; }

@media (max-width: 480px) { .divergences table { font-size: 14px; } .divergences th, .divergences td { padding-inline-start: 8px; } .divergences th[scope="row"] { min-width: 0; hyphens: auto; } }
#argent { margin-top: 28px; border-top: 2px solid var(--encre); padding-top: 10px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.champ { display: grid; gap: 4px; font-size: var(--r-mini); color: var(--doux); }
.champ label { display: grid; gap: 4px; }
.champ .erreur { color: var(--rubrique); font-size: var(--r-mini); line-height: 1.35; }
.champ.large { grid-column: 1 / -1; } 
.champ input, .champ select { height: 48px; border: 1px solid #bdbab3; border-radius: 4px; padding: 0 12px; font-size: 16px; color: var(--encre); background: #fff; width: 100%; }
.champ input[aria-invalid] { border-color: var(--rubrique); }
.sommes { margin-top: 14px; }
.calc { width: 100%; border-collapse: collapse; font-size: 15px; }
.calc td { padding: 7px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.calc td:last-child { text-align: end; font-weight: 500; padding-inline-start: 12px; }
.calc .m { white-space: nowrap; }
.calc .net td { font-weight: 600; border-bottom: 2px solid var(--encre); }
.calc.parts { margin-top: 12px; }
.calc .tete { display: block; font-size: var(--r-mini); font-weight: 400; color: var(--doux); }
.alerte { font-size: var(--r-petit); color: var(--rubrique); margin-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.actions button { min-height: 48px; padding: 0 18px; border: 2px solid var(--encre); background: #fff; font-weight: 500; }
.actions button:active { background: var(--fond2); }
.actions [data-action="effacer"] { border-color: transparent; color: var(--doux); }

.encadre { margin-top: 40px; border-top: 2px solid var(--encre); padding-top: 10px; max-width: 760px; font-size: 15px; }
.encadre h2 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.encadre p + p { margin-top: 8px; }
footer.pied { margin-top: 48px; border-top: 1px solid var(--trait); padding-top: 16px; font-size: var(--r-petit); color: var(--doux); display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
footer.pied a { display: inline-flex; align-items: center; min-height: 44px; }
footer.pied p { flex-basis: 100%; }

.legal { max-width: 640px; }
.legal h2 { font-size: 15px; font-weight: 600; margin: 22px 0 4px; }
.legal p { font-size: 15px; }

.cas-intro { font-size: 17px; max-width: 60ch; margin: 6px 0 24px; }
.cas { border-top: 1px solid var(--trait); padding: 16px 0; }
.cas h2 { font-size: 17px; font-weight: 500; }
.cas h2 .id { color: var(--rubrique); font-weight: 600; margin-inline-end: 8px; }
.cas .att { display: grid; gap: 8px; margin-top: 8px; font-size: 15px; }
.cas .att b { font-weight: 600; }
.cas .src { font-size: var(--r-petit); color: var(--doux); margin-top: 8px; }
.cas a.ouvrir { display: inline-flex; align-items: center; min-height: 44px; color: var(--rubrique); font-size: var(--r-petit); }

@media (max-width: 380px) { #ecoles button { font-size: 14px; } .jadwal .f, .jadwal .s { font-size: 18px; } .divergences thead th { font-size: 12px; } .divergences th, .divergences td { padding-inline-start: 6px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  @page { margin: 14mm; }
  body { font-size: 11pt; }
  nav.langues, .cpt, .autres, .actions, .version.ecran, .branche .ajout, .retire, footer.pied a, .encadre, .champs { display: none !important; }
  .lig:not(.on), .branche:not(:has(.lig.on)), .groupe:not(:has(.lig.on)) { display: none; }
  .cols { display: block; }
  #ecoles button:not([aria-checked="true"]) { display: none; }
  #ecoles { border: 0; display: block; margin: 0 0 8pt; }
  #ecoles button[aria-checked="true"] { background: none; color: var(--encre); padding: 0; font-weight: 600; min-height: 0; border: 0; }
  #famille { display: none; }
  .pv ul { display: block; }
  details.pv > ul { display: block !important; }
  .jadwal tr, .cas { break-inside: avoid; }
  footer.pied::after { content: attr(data-lien); display: block; font-size: 8pt; word-break: break-all; }
}

.version { margin-top: 20px; font-size: 13px; color: var(--doux); }
.version.ecran { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.version.ecran a, .version .lien { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.lien { color: inherit; }
.lien { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

.methode { max-width: 720px; }
.methode section + section { margin-top: 36px; }
.methode h2 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.methode h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; }
.methode p + p { margin-top: 10px; }
.methode dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin-bottom: 12px; }
.methode dt { font-weight: 600; }
.methode .regles { list-style: none; padding: 0; }
.methode .regles li { padding: 10px 0; border-top: 1px solid var(--trait); }
.methode .pv-l { font-size: 13px; color: var(--doux); margin-top: 4px; }
.methode .puces { padding-inline-start: 1.2em; margin: 10px 0; }
.methode .versions { margin-top: 12px; }
.methode .puces li + li { margin-top: 8px; }
@media (max-width: 560px) { .methode dl { grid-template-columns: 1fr; } .methode dd { margin-bottom: 8px; } }

.rejouer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0 24px; }
.rejouer button { min-height: 48px; padding: 0 18px; border: 2px solid var(--encre); background: #fff; font-weight: 500; }
.rejouer button:disabled { opacity: .5; }
.rejouer a { min-height: 44px; display: inline-flex; align-items: center; }
.rejouer p { flex-basis: 100%; font-weight: 500; }
.rejouer p:empty { display: none; }

.echec-charge { opacity: 0; animation: echec-voir 0s 4s forwards; color: var(--doux); }
@keyframes echec-voir { to { opacity: 1; } }
.sans-js { margin: 24px 0; color: var(--doux); }

[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] h1 .marque { letter-spacing: 0; }
[dir="rtl"] .jadwal td, [dir="rtl"] .jadwal th { line-height: 1.6; }

