/* Bulletins sécurisés (module d'azome) — sobre, couleurs du Bénin en aplats, police Outfit. */
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('../fonts/outfit/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('../fonts/outfit/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('../fonts/outfit/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('../fonts/outfit/outfit-latin-700-normal.woff2') format('woff2'); }
:root { --v: #008751; --vf: #006B40; --vn: #0E3B26; --j: #FCD116; --r: #E8112D; --creme: #F6F3EA; --trait: #E4DFD2; --gris: #6B7068; --encre: #1D2420; }
* { box-sizing: border-box; }
body.bs { margin: 0; font-family: Outfit, system-ui, sans-serif; background: var(--creme); color: var(--encre); font-size: 15px; line-height: 1.45; }
.bs a { color: var(--vf); }
.bs-bande { display: flex; height: 4px; } .bs-bande span { flex: 1; } .bs-bande span:nth-child(1) { background: var(--v); } .bs-bande span:nth-child(2) { background: var(--j); } .bs-bande span:nth-child(3) { background: var(--r); }
.bs-haut { background: #fff; border-bottom: 1px solid var(--trait); }
.bs-haut .in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; }
.bs-marque { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--vn) !important; text-decoration: none; flex-shrink: 0; }
.bs-marque .logo-azome { display: block; height: 32px; width: auto; flex-shrink: 0; }
.bs-pied-marque { display: inline-flex; align-items: center; gap: 6px; } .bs-pied-marque .logo-azome { height: 20px; width: auto; }
.bs-marque small { font-weight: 500; color: var(--gris); font-size: 13px; border-left: 1px solid var(--trait); padding-left: 10px; }
.bs-nav { display: flex; gap: 2px; margin-left: 6px; overflow-x: auto; scrollbar-width: none; }
.bs-nav::-webkit-scrollbar { display: none; }
.bs-nav a { padding: 8px 10px; border-radius: 9px; color: var(--gris); font-weight: 500; text-decoration: none; white-space: nowrap; }
.bs-nav a.actif { background: #E7F3EC; color: var(--vf); }
.bs-nav a.bientot { opacity: .55; pointer-events: none; }
.bs-qui { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; flex-shrink: 0; }
.bs-qui .t { text-align: right; } .bs-qui b { display: block; } .bs-qui span { color: var(--gris); font-size: 12.5px; }
.bs-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--vn); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; }
.bs-main { max-width: 1240px; margin: 0 auto; padding: 26px 24px 60px; }
.bs h1 { font-size: 26px; font-weight: 600; color: var(--vn); margin: 0; }
.bs .sous { color: var(--gris); margin: 4px 0 0; }
.bs-carte { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 20px; }
.bs-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); font-weight: 600; margin: 0 0 10px; }
.bs-grille { display: grid; gap: 18px; }
.bs-g2 { grid-template-columns: 1fr 1fr; } .bs-g3 { grid-template-columns: repeat(3, 1fr); } .bs-g4 { grid-template-columns: repeat(4, 1fr); }
.bs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border-radius: 10px; font-weight: 600; font-size: 14.5px; border: 1px solid var(--trait); background: #fff; color: var(--vn) !important; text-decoration: none; cursor: pointer; font-family: inherit; }
.bs-btn:hover { border-color: #CFC8B8; }
.bs-btn.p { background: var(--v); border-color: var(--v); color: #fff !important; } .bs-btn.p:hover { background: var(--vf); }
.bs-btn.danger { color: #B00D24 !important; }
.bs-btn.petit { padding: 6px 12px; font-size: 13.5px; }
.bs-puce { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.bs-puce.ok { background: #E3F2E9; color: var(--vf); } .bs-puce.att { background: #FFF6D6; color: #8A6A00; } .bs-puce.ko { background: #FDE6E9; color: #B00D24; } .bs-puce.gris { background: #EFEDE6; color: var(--gris); }
.bs table { width: 100%; border-collapse: collapse; }
.bs td, .bs th { padding: 10px 8px; border-bottom: 1px solid #EEEADF; text-align: left; font-size: 14px; vertical-align: middle; }
.bs th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 600; }
.bs-champ { margin-bottom: 14px; }
.bs-champ label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.bs-champ input[type=text], .bs-champ input[type=email], .bs-champ input[type=tel], .bs-champ input[type=password], .bs-champ input[type=number], .bs-champ select, .bs-champ textarea, .bs-input {
    width: 100%; border: 1px solid #D9D3C3; border-radius: 10px; padding: 10px 12px; background: #fff; font: inherit; color: inherit; }
.bs-champ input:focus, .bs-champ select:focus, .bs-input:focus, .bs-champ textarea:focus { outline: 2px solid #9FD3B6; border-color: var(--v); }
.bs-champ small { color: var(--gris); font-size: 12.5px; display: block; margin-top: 4px; }
.bs-champ .err { color: #B00D24; font-size: 13px; margin-top: 4px; display: block; }
.bs-seg { display: flex; border: 1px solid #D9D3C3; border-radius: 10px; overflow: hidden; background: #fff; }
.bs-seg label { flex: 1; text-align: center; padding: 10px 6px; font-weight: 500; cursor: pointer; margin: 0; border-right: 1px solid #EEEADF; }
.bs-seg label:last-child { border-right: 0; }
.bs-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bs-seg label:has(input:checked) { background: #E7F3EC; color: var(--vf); font-weight: 700; }
.bs-seg label:has(input:focus-visible) { outline: 2px solid var(--v); outline-offset: -2px; }
.bs-depot { display: flex; align-items: center; gap: 12px; border: 2px dashed #BFD9C9; background: #F7FBF8; border-radius: 12px; padding: 12px 14px; }
.bs-depot input { font: inherit; max-width: 100%; }
.bs-flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14.5px; border: 1px solid; }
.bs-flash.success { background: #E3F2E9; border-color: #BFD9C9; color: var(--vn); }
.bs-flash.danger { background: #FDE6E9; border-color: #F4B9C2; color: #8D0A1D; }
.bs-flash.warning, .bs-note { background: #FFFBEA; border-color: #F3E3A0; color: #5C4800; }
.bs-note { border: 1px solid #F3E3A0; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.bs-etapes { display: grid; gap: 0; }
.bs-etape { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #EEEADF; }
.bs-etape:last-child { border-bottom: 0; }
.bs-etape .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #CFC8B8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; color: var(--gris); }
.bs-etape.fait .n { background: var(--v); border-color: var(--v); color: #fff; }
.bs-etape .txt { flex: 1; } .bs-etape .txt b { display: block; }
.bs-chiffre { font-size: 30px; font-weight: 700; color: var(--vn); line-height: 1.1; }
.bs-onglets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.bs-onglets a { text-decoration: none; }
.bs-liste-classes a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--encre); gap: 8px; }
.bs-liste-classes a:hover { background: #F7F5EF; }
.bs-liste-classes a.actif { background: #E7F3EC; } .bs-liste-classes a.actif b { color: var(--vf); }
.bs-coef { width: 74px !important; text-align: center; font-weight: 600; }
.bs-secret { font-family: ui-monospace, Menlo, monospace; font-size: 17px; font-weight: 700; letter-spacing: .06em; background: #F1F8F4; padding: 3px 9px; border-radius: 7px; }
.bs-pied { text-align: center; color: var(--gris); font-size: 13px; padding: 20px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bs-image { max-height: 90px; max-width: 200px; display: block; margin-bottom: 8px; background: repeating-conic-gradient(#f3f0e8 0 25%, #fff 0 50%) 0 0 / 14px 14px; border: 1px solid var(--trait); border-radius: 8px; padding: 6px; }

/* ---------- Pages publiques : accueil du module et « Réservé au directeur » ---------- */
.bs-v-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.bs-v .bs-haut .in { max-width: 1320px; }
.bs-v .bs-qui { gap: 8px; }
.bs-v-hero { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 1fr; min-height: 540px; background: var(--vn); }
.bs-v-photo { background: #2C4A3A 45% 30% / cover no-repeat; grid-column: 2; grid-row: 1; position: relative; }
.bs-v-photo figcaption { position: absolute; right: 14px; bottom: 64px; background: rgba(14,59,38,.78); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 7px; }
.bs-v-hero:not(.avec-photo) .bs-v-photo { background-color: #1E4A35; }
.bs-v-panneau { grid-column: 1; grid-row: 1; background: var(--vn); color: #fff; padding: 86px 60px 110px; }
.bs-v .bs-v-panneau h1 { color: #fff !important; font-size: 50px; line-height: 1.06; font-weight: 700; letter-spacing: -.01em; max-width: 520px; }
.bs-v-panneau p { font-size: 18px; color: #D6E6DC; max-width: 500px; margin: 0; }
.bs-v-trio { display: flex; gap: 4px; margin: 18px 0; } .bs-v-trio span { width: 34px; height: 5px; border-radius: 3px; }
.bs-v-trio span:nth-child(1) { background: var(--v); } .bs-v-trio span:nth-child(2) { background: var(--j); } .bs-v-trio span:nth-child(3) { background: var(--r); }
.bs-v-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.bs-v-cta, .bs-v-cta2 { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; padding: 14px 22px; border-radius: 12px; text-decoration: none; }
.bs-v-cta { background: var(--j); color: var(--vn) !important; border: 1px solid var(--j); }
.bs-v-cta:hover { background: #F2C500; }
.bs-v-cta2 { color: #fff !important; border: 1px solid rgba(255,255,255,.35); }
.bs-v-cta2:hover { border-color: #fff; }
.bs-v-cta2.clair { color: var(--vn) !important; border-color: var(--trait); background: #fff; font-size: 15px; }
.bs-v-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -50px; position: relative; }
.bs-v-chiffres > div { background: #fff; border-radius: 16px; padding: 22px 22px; box-shadow: 0 10px 30px rgba(14, 59, 38, .08); display: flex; gap: 14px; align-items: flex-start; }
.bs-v-chiffres i { flex-shrink: 0; display: block; line-height: 0; } .bs-v-chiffres p { margin: 0; }
.bs-v-chiffres b { display: block; font-size: 30px; font-weight: 700; color: var(--vn); line-height: 1; }
.bs-v-chiffres span { color: var(--gris); font-size: 14px; display: block; margin-top: 6px; }
.bs-v-section { padding: 56px 0 10px; }
.bs-v-section h2 { font-size: 30px; color: var(--vn); margin: 0 0 20px; line-height: 1.15; }
.bs-v-sous { margin: -8px 0 22px; color: #4F5751; font-size: 17px; }
.bs-v-video { position: relative; border-radius: 18px; overflow: hidden; background: var(--vn); aspect-ratio: 16 / 9; }
.bs-v-video video { width: 100%; height: 100%; display: block; object-fit: cover; background: var(--vn); }
.bs-v-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 59, 38, .28); border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.bs-v-play span { display: inline-flex; align-items: center; gap: 14px; background: var(--vn); color: #fff; border-radius: 999px; padding: 12px 26px 12px 12px; font-weight: 600; font-size: 17px; box-shadow: 0 14px 30px rgba(14, 59, 38, .3); }
.bs-v-play i { width: 46px; height: 46px; border-radius: 50%; background: #FCD116; position: relative; flex-shrink: 0; }
.bs-v-play i::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid var(--vn); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.bs-v-play:hover span { background: #134a31; }
.bs-v-video.lecture .bs-v-play { display: none; }
.bs-v-etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bs-v-etapes div { background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 22px; }
.bs-v-etapes i { width: 36px; height: 36px; border-radius: 10px; background: #E7F3EC; color: var(--vf); font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.bs-v-etapes b { font-size: 17px; display: block; margin-bottom: 4px; }
.bs-v-etapes p { color: var(--gris); font-size: 14.5px; margin: 0; }
.bs-v-exemple { display: grid; grid-template-columns: 1fr 1.45fr; gap: 44px; align-items: center; padding-bottom: 64px; }
.bs-v-expl .intro { color: var(--gris); font-size: 16px; margin: 0 0 20px; }
.bs-v-expl ul, .bs-v-reserve ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bs-v-expl li, .bs-v-reserve li { display: flex; gap: 12px; color: var(--gris); font-size: 14.5px; }
.bs-v-expl li b, .bs-v-reserve li b { display: block; color: var(--encre); font-size: 15.5px; }
.bs-v-expl li i, .bs-v-reserve li i { width: 32px; height: 32px; border-radius: 9px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
i.v { background: #E7F3EC; color: var(--vf); } i.j { background: #FFF6D6; color: #8A6A00; } i.r { background: #FDE6E9; color: #B00D24; }
.bs-v-bulletin { background: #fff; border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; font-size: 12.5px; min-width: 0; }
.bs-v-bulletin .corps { padding: 18px 22px; }
.bs-v-bulletin header, .bs-v-bulletin footer { display: flex; justify-content: space-between; gap: 14px; }
.bs-v-bulletin header span, .bs-v-bulletin .eleve span, .bs-v-bulletin .totaux span, .bs-v-bulletin .code span, .bs-v-bulletin .signature span, .bs-v-bulletin .pp span { display: block; color: var(--gris); }
.bs-v-bulletin header b { font-size: 15px; } .bs-v-bulletin .ecole { color: var(--vn); }
.bs-v-bulletin header .droite { text-align: right; }
.bs-v-bulletin .eleve { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; background: #F7F5EF; border-radius: 10px; padding: 10px 12px; }
.bs-v-bulletin .defile { overflow-x: auto; }
.bs-v-bulletin td, .bs-v-bulletin th { padding: 5px 6px; font-size: 12.5px; white-space: nowrap; }
.bs-v-bulletin th { font-size: 11px; } .bs-v-bulletin .c { text-align: center; }
.bs-v-bulletin .totaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bs-v-bulletin .totaux div { background: #F7F5EF; border-radius: 10px; padding: 10px 12px; } .bs-v-bulletin .totaux .ok { background: #E7F3EC; }
.bs-v-bulletin .totaux b { font-size: 18px; color: var(--vn); }
.bs-v-bulletin .pp { margin: 10px 0 0; } .bs-v-bulletin .pp span { display: inline; }
.bs-v-bulletin footer { align-items: center; gap: 16px; margin-top: 14px; border-top: 1px dashed #D9D3C3; padding-top: 12px; }
.bs-v-bulletin footer img { flex-shrink: 0; }
.bs-v-bulletin .code { flex: 1; }
.bs-v-bulletin .cachet { width: 74px; height: 74px; border-radius: 50%; border: 2px solid #2F5BA8; color: #2F5BA8; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 9.5px; font-weight: 700; line-height: 1.2; transform: rotate(-12deg); flex-shrink: 0; }
.bs-v-bulletin .signature { text-align: center; flex-shrink: 0; } .bs-v-bulletin .signature em { font-family: 'Brush Script MT', cursive; font-size: 22px; color: #1F3B8A; }
.bs-v-reserve { max-width: 880px; margin: 46px auto 60px; background: #fff; border: 1px solid var(--trait); border-radius: 20px; overflow: hidden; }
.bs-v-reserve .bs-bande { height: 6px; }
.bs-v-reserve .grille { display: grid; grid-template-columns: 300px 1fr; }
.bs-v-reserve .gauche { background: var(--vn); color: #fff; padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; }
.bs-v-reserve .embleme { width: 62px; height: 62px; border-radius: 16px; background: var(--j); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.bs-v .bs-v-reserve h1 { color: #fff !important; font-size: 26px; font-weight: 700; line-height: 1.15; }
.bs-v-reserve .gauche p { color: #CFE0D6; margin: 0; font-size: 14.5px; }
.bs-v-reserve .censeur { margin-top: auto; background: rgba(255,255,255,.08); border-radius: 12px; padding: 14px; font-size: 13.5px; color: #E3EEE7; }
.bs-v-reserve .censeur b { display: block; color: var(--j); }
.bs-v-reserve .droite { padding: 34px 36px; }
.bs-v-reserve ol { margin: 6px 0 22px; }
.bs-v-reserve li span { display: block; }
.bs-v-reserve .bs-note { margin-bottom: 4px; }
.bs-v-reserve .bs-v-actions { margin-top: 20px; }
.bs-v-reserve .bs-v-cta { background: var(--v); border-color: var(--v); color: #fff !important; }
.bs-v-reserve .bs-v-cta:hover { background: var(--vf); }
.bs-v-pied { background: var(--vn); color: #CFE0D6; font-size: 14px; }
.bs-v-pied .in { max-width: 1240px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bs-v-pied a { color: #fff !important; }
@media (max-width: 991px) {
    .bs-v-hero { grid-template-columns: 1fr; min-height: 0; }
    .bs-v-photo { grid-column: 1; grid-row: 1; height: 320px; background-position: 45% 8%; }
    .bs-v-photo figcaption { bottom: 12px; }
    .bs-v-hero:not(.avec-photo) .bs-v-photo { display: none; }
    .bs-v-panneau { grid-row: 2; padding: 40px 32px 90px; }
    .bs-v .bs-v-panneau h1 { font-size: 40px; }
    .bs-v-chiffres { grid-template-columns: 1fr 1fr; }
    .bs-v-exemple { grid-template-columns: 1fr; gap: 28px; }
    .bs-v-nav { display: none; }
    .bs-v .bs-haut .in { flex-wrap: nowrap; }
}
@media (max-width: 680px) {
    .bs-v-in { padding: 0 14px; }
    .bs-v-photo { height: 260px; }
    .bs-v-panneau { padding: 30px 18px 80px; }
    .bs-v .bs-v-panneau h1 { font-size: 31px; }
    .bs-v-panneau p { font-size: 16px; }
    .bs-v-cta, .bs-v-cta2 { width: 100%; justify-content: center; font-size: 16px; }
    .bs-v-chiffres { gap: 10px; }
    .bs-v-chiffres > div { padding: 14px; gap: 10px; } .bs-v-chiffres b { font-size: 22px; } .bs-v-chiffres i svg { width: 32px; height: 32px; } .bs-v-chiffres span { font-size: 13px; }
    .bs-v-section { padding-top: 40px; } .bs-v-section h2 { font-size: 24px; }
    .bs-v-play span { font-size: 15px; padding: 8px 18px 8px 8px; } .bs-v-play i { width: 38px; height: 38px; } .bs-v-play i::after { left: 15px; top: 11px; }
    .bs-v-etapes { grid-template-columns: 1fr; }
    .bs-v-bulletin .corps { padding: 14px; }
    .bs-v-bulletin header { flex-direction: column; } .bs-v-bulletin header .droite { text-align: left; }
    .bs-v-bulletin .eleve { grid-template-columns: 1fr 1fr; }
    .bs-v-bulletin footer { flex-wrap: wrap; }
    .bs-v-bulletin .code { flex-basis: calc(100% - 110px); }
    .bs-v-cache-mobile { display: none !important; }
    .bs-v-reserve { margin: 20px auto 40px; }
    .bs-v-reserve .grille { grid-template-columns: 1fr; }
    .bs-v-reserve .gauche, .bs-v-reserve .droite { padding: 24px 20px; }
    .bs-v-reserve .censeur { margin-top: 0; }
}

/* ---------- Connexion des bulletins sécurisés ---------- */
.bs-cx-grille { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - 4px); }
.bs-cx-photo { background: #2C4A3A 45% 25% / cover no-repeat; position: relative; display: flex; align-items: flex-end; }
.bs-cx-message { margin: 0 32px 32px; background: rgba(14,59,38,.9); color: #fff; border-radius: 16px; padding: 20px 22px; max-width: 440px; }
.bs-cx-message .bs-v-trio { margin: 0 0 12px; }
.bs-cx-message p { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; }
.bs-cx-message small { display: block; margin-top: 10px; color: #CFE0D6; font-size: 12.5px; }
.bs-cx-cote { display: flex; flex-direction: column; padding: 22px 40px 30px; background: var(--creme); }
.bs-cx-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bs-cx-retour { color: var(--gris) !important; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.bs-cx-retour:hover { color: var(--vn) !important; }
.bs-cx-carte { width: 100%; max-width: 420px; margin: auto; padding: 34px 0 10px; }
.bs-v .bs-cx-carte h1, .bs-cx .bs-cx-carte h1 { font-size: 32px; font-weight: 700; color: var(--vn); }
.bs-cx-carte .sous { margin: 4px 0 24px; }
.bs-cx-carte .bs-champ input { padding: 12px 14px; font-size: 15.5px; }
.bs-cx-mdp { display: flex; border: 1px solid #D9D3C3; border-radius: 10px; background: #fff; overflow: hidden; }
.bs-cx-mdp:focus-within { outline: 2px solid #9FD3B6; border-color: var(--v); }
.bs-cx .bs-cx-mdp input { border: 0 !important; outline: 0 !important; border-radius: 0; flex: 1; min-width: 0; }
.bs-cx-mdp button { border: 0; border-left: 1px solid #EEEADF; background: #fff; color: var(--vf); font: inherit; font-weight: 600; font-size: 13.5px; padding: 0 14px; cursor: pointer; }
.bs-cx-rester { display: flex; align-items: center; gap: 9px; font-size: 14px; margin: 4px 0 20px; cursor: pointer; }
.bs-cx-rester input { width: 17px; height: 17px; accent-color: var(--v); }
.bs-cx-btn { width: 100%; padding: 14px 18px; font-size: 16px; }
.bs-cx-oubli { color: var(--gris); font-size: 13.5px; margin: 16px 0 0; text-align: center; }
.bs-cx-sep { display: flex; align-items: center; gap: 12px; color: var(--gris); font-size: 13.5px; margin: 26px 0 14px; }
.bs-cx-sep::before, .bs-cx-sep::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.bs-cx-note { color: var(--gris); font-size: 12.5px; text-align: center; margin: 10px 0 0; }
@media (max-width: 900px) {
    .bs-cx-grille { grid-template-columns: 1fr; min-height: 0; }
    .bs-cx-photo { height: 230px; order: 0; background-position: 45% 15%; }
    .bs-cx-message { margin: 0 14px 14px; padding: 12px 14px; }
    .bs-cx-message p { font-size: 15px; } .bs-cx-message small { display: none; }
    .bs-cx-grille > .bs-cx-cote { display: contents; }
    .bs-cx-haut { order: -1; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--trait); }
    .bs-cx-carte { order: 1; padding: 24px 16px 34px; max-width: 460px; }
}

/* Mon code et ma signature */
.bs-sig { grid-template-columns: 1fr 1.4fr; }
.bs-sig-titre { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bs-pin { max-width: 220px; letter-spacing: .4em; font-size: 18px !important; text-align: center; }
.bs-cadre-sig { position: relative; border: 2px dashed #CFC8B8; border-radius: 12px; background: #fff; height: 200px; touch-action: none; }
.bs-cadre-sig canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.bs-cadre-sig small { position: absolute; left: 14px; bottom: 10px; color: var(--gris); font-size: 12.5px; pointer-events: none; }
.bs-sig-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.bs-sig-actuelle { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.bs-sig-actuelle img { max-height: 70px; max-width: 240px; background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: 4px 10px; }
details > summary.bs-btn { list-style: none; } details > summary.bs-btn::-webkit-details-marker { display: none; }
details[open] > summary.bs-btn { margin-bottom: 4px; }
@media (max-width: 991px) { .bs-sig { grid-template-columns: 1fr; } .bs-sig-actions .bs-btn.p { margin-left: 0 !important; width: 100%; } }

@media (max-width: 1380px) { .bs-haut .bs-marque small { display: none; } }
/* Cachet numérique */
.bs-cachet-bloc { margin-bottom: 14px; }
.bs-cachet-apercu { background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: 14px; display: flex; justify-content: center; min-height: 190px; align-items: center; }
.bs-cachet-variante svg { display: block; width: 200px; height: auto; max-width: 100%; }
.bs-cachet-variante svg[viewBox="0 0 320 170"] { width: 290px; }
.bs-encres { display: flex; gap: 10px; padding-top: 4px; }
.bs-encres label { cursor: pointer; margin: 0; }
.bs-encres input { position: absolute; opacity: 0; pointer-events: none; }
.bs-encres span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #D9D3C3; }
.bs-encres input:checked + span { box-shadow: 0 0 0 2px var(--encre); }
.bs-encres input:focus-visible + span { outline: 2px solid var(--v); outline-offset: 2px; }
.bs-visa-apercu { position: relative; width: 340px; max-width: 100%; height: 200px; margin: 6px auto 0; }
.bs-visa-apercu .cachet { position: absolute; left: 10px; top: 0; width: 180px; }
.bs-visa-apercu .cachet svg { width: 100%; height: auto; display: block; }
.bs-visa-apercu .cachet.rect { width: 230px; top: 30px; }
.bs-visa-apercu > img { position: absolute; right: 0; bottom: 22px; width: 190px; max-height: 95px; object-fit: contain; mix-blend-mode: multiply; }
.bs-visa-apercu .nom { position: absolute; right: 0; bottom: 0; font-size: 12.5px; color: var(--gris); }

/* ---------- Lot 2 : dépôt, contrôle, aperçu ---------- */
.bs-entete-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.bs-periodes { display: flex; gap: 6px; flex-wrap: wrap; }
.bs-periodes a { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--trait); background: #fff; font-weight: 500; text-decoration: none; color: var(--encre) !important; }
.bs-periodes a.on { background: var(--vn); border-color: var(--vn); color: #fff !important; }
.bs-etapes-h { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 20px; background: #fff; border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; }
.bs-etapes-h div { padding: 12px 16px; display: flex; align-items: center; gap: 10px; color: var(--gris); font-weight: 500; border-right: 1px solid var(--trait); }
.bs-etapes-h div:last-child { border-right: 0; }
.bs-etapes-h b { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #CFC8B8; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.bs-etapes-h .fait { color: var(--vf); } .bs-etapes-h .fait b { background: var(--v); border-color: var(--v); color: #fff; }
.bs-etapes-h .cours { color: var(--vn); background: #F1F8F4; font-weight: 600; } .bs-etapes-h .cours b { border-color: var(--v); color: var(--v); }
.bs-depot-grille { grid-template-columns: 1.6fr 1fr; }
.bs-depot-zone { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed #BFD9C9; background: #F7FBF8; border-radius: 12px; padding: 22px 14px; text-align: center; cursor: pointer; color: var(--vn); }
.bs-depot-zone.petite { padding: 14px; }
.bs-depot-zone .ic { font-size: 26px; }
.bs-depot-zone input { max-width: 100%; margin-top: 6px; font: inherit; font-size: 13px; }
.bs-apercu-grille { grid-template-columns: 300px minmax(0, 1fr); }
.bs-apercu-grille > *, .bs-apercu-grille .bs-grille > * { min-width: 0; }
.bs-pin::placeholder { letter-spacing: normal; font-size: 14px; }
.bs-barre-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.bs-barre-action > div:first-child { flex: 1; min-width: 260px; } .bs-barre-action b { display: block; color: var(--vn); font-size: 16px; } .bs-barre-action .sous { font-size: 13.5px; }
.bs-barre-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .bs-barre-code .bs-pin { width: 130px; }
.bs-classement { max-height: 640px; overflow: auto; }
.bs-classement td, .bs-classement th { padding: 7px 6px; font-size: 13.5px; }
.bs-classement tr.choisi td { background: #E7F3EC; }
.bs-classement a { color: var(--encre) !important; text-decoration: none; }
.bs-classement a:hover { text-decoration: underline; }
.bs-bulletin { background: #fff; border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; font-size: 12.5px; position: relative; min-width: 0; }
.bs-bulletin .corps { padding: 18px 22px; position: relative; }
.bs-bulletin header, .bs-bulletin footer { display: flex; justify-content: space-between; gap: 14px; }
.bs-bulletin header span, .bs-bulletin .eleve span, .bs-bulletin .totaux span, .bs-bulletin .pp span { display: block; color: var(--gris); }
.bs-bulletin .pp span { display: inline; }
.bs-bulletin header b { font-size: 15px; } .bs-bulletin .ecole { color: var(--vn); }
.bs-bulletin header .droite { text-align: right; }
.bs-bulletin .eleve { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; background: #F7F5EF; border-radius: 10px; padding: 10px 12px; }
.bs-bulletin .defile { overflow-x: auto; }
.bs-bulletin td, .bs-bulletin th { padding: 5px 6px; font-size: 12.5px; white-space: nowrap; }
.bs-bulletin th { font-size: 10.5px; } .bs-bulletin .c { text-align: center; }
.bs-bulletin .totaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bs-bulletin .totaux.annuel { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.bs-bulletin .totaux div { background: #F7F5EF; border-radius: 10px; padding: 9px 12px; }
.bs-bulletin .totaux .ok { background: #E7F3EC; } .bs-bulletin .totaux .ko { background: #FDE6E9; }
.bs-bulletin .totaux b { font-size: 17px; color: var(--vn); } .bs-bulletin .totaux .ko b { color: #B00D24; }
.bs-bulletin .pp { margin: 10px 0 0; }
.bs-bulletin footer { margin-top: 12px; border-top: 1px dashed #D9D3C3; padding-top: 10px; color: var(--gris); font-size: 12px; }
.bs-bulletin .filigrane { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 1; overflow: hidden; }
.bs-bulletin .filigrane span { transform: rotate(-24deg); font-size: 88px; font-weight: 800; color: rgba(232, 17, 45, .1); letter-spacing: .08em; }
.bs-impression { background: #EEEAE0; }
.bs-impression-barre { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--trait); }
.bs-page { margin: 18px auto; }
@media print {
    .bs-impression { background: #fff; } .bs-impression-barre { display: none; }
    .bs-page { margin: 0; max-width: none; page-break-after: always; break-after: page; }
    .bs-bulletin { border: 0; } .bs-bulletin .defile { overflow: visible; }
    .bs-bulletin .eleve, .bs-bulletin .totaux div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .bs-bande span, .bs-bulletin .filigrane span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    @page { size: A4; margin: 12mm; }
}
@media (max-width: 1100px) { .bs-apercu-grille { grid-template-columns: 1fr; } .bs-apercu-grille > :nth-child(2) { grid-row: 1; } .bs-classement { max-height: 360px; } }
@media (max-width: 991px) { .bs-depot-grille { grid-template-columns: 1fr; } .bs-etapes-h { grid-template-columns: 1fr 1fr; } .bs-etapes-h div:nth-child(2) { border-right: 0; } .bs-etapes-h div:nth-child(-n+2) { border-bottom: 1px solid var(--trait); } }
@media (max-width: 680px) {
   
    .bs-etapes-h div { padding: 10px; font-size: 13px; }
    .bs-bulletin .corps { padding: 14px; } .bs-bulletin header { flex-direction: column; } .bs-bulletin header .droite { text-align: left; }
    .bs-bulletin .eleve { grid-template-columns: 1fr 1fr; }
}

/* Tablette */
@media (max-width: 991px) {
    .bs-qui .t { display: none; }
    .bs-g4 { grid-template-columns: 1fr 1fr; } .bs-g3 { grid-template-columns: 1fr 1fr; }
    .bs-haut .in { flex-wrap: wrap; } .bs-nav { order: 3; width: 100%; margin-left: 0; }
}
/* Téléphone */
@media (max-width: 680px) {
    .bs-main { padding: 18px 14px 40px; }
    .bs-haut .in { padding: 10px 14px; }
    .bs-marque small { display: none; }
    .bs h1 { font-size: 22px; }
    .bs-g2, .bs-g3, .bs-g4, .bs-grille.lat { grid-template-columns: 1fr !important; }
    .bs-carte { padding: 16px; }
    .bs-tableau-mobile thead { display: none; }
    .bs-tableau-mobile tr { display: block; border-bottom: 1px solid #EEEADF; padding: 8px 0; }
    .bs-tableau-mobile td { display: block; border: 0; padding: 3px 4px; }
    .bs-tableau-mobile td.actions { padding-top: 8px; }
}

/* Page « Notes de la période » : classes par niveau à gauche, assistant étape par étape à droite */
.bs-notes-grille { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 18px; }
.bs-notes-classes { background: #fff; border: 0; box-shadow: 0 1px 2px rgba(30,40,30,.04), 0 8px 24px rgba(30,40,30,.05); border-radius: 18px; overflow: hidden; position: sticky; top: 16px; padding-bottom: 8px; }
.bs-notes-classes-tete { background: var(--vn); color: #fff; padding: 16px 18px 14px; }
.bs-notes-classes-tete b { display: block; font-size: 15px; }
.bs-notes-classes-tete span { font-size: 13px; opacity: .8; }
.bs-notes-jauge { height: 6px; border-radius: 9px; background: rgba(255,255,255,.18); margin-top: 10px; overflow: hidden; }
.bs-notes-jauge i { display: block; height: 100%; background: var(--j); border-radius: 9px; }
.bs-notes-niveau { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); font-weight: 700; margin: 16px 18px 6px; }
.bs-notes-classe { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 8px; padding: 10px 12px 10px 14px; border-radius: 12px; color: var(--encre); text-decoration: none; transition: background .15s; }
.bs-notes-classe:hover { background: #F4F1E9; }
.bs-notes-classe .txt { display: flex; flex-direction: column; min-width: 0; }
.bs-notes-classe .txt b { font-size: 16px; color: var(--vn); }
.bs-notes-classe .txt small { font-size: 12px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-notes-classe .bs-puce { font-size: 11.5px; padding: 3px 9px; flex-shrink: 0; }
.bs-notes-classe.on { background: #FFF4C7; }
.bs-notes-classe.on .txt b { font-size: 17px; }
.bs-notes-classe.on .txt small { color: #6E5A1A; }
.bs-notes-classe.on .bs-puce.gris { background: #fff; }
.bs-notes-detail { padding: 26px 30px 30px; border: 0 !important; box-shadow: 0 1px 2px rgba(30,40,30,.04), 0 8px 24px rgba(30,40,30,.05); }
.bs-notes-titre .bs-lbl { margin: 0; } .bs-notes-titre h2 { margin: 2px 0 18px; font-size: 26px; color: var(--vn); }
/* Fil des étapes : pastilles reliées par un trait, libellé dessous */
.bs-pas { list-style: none; margin: 4px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.bs-pas li { position: relative; }
.bs-pas li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 3px; border-radius: 3px; background: #ECE6D7; }
.bs-pas li.fait::after { background: var(--v); }
.bs-pas li > button, .bs-pas li > span { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: inherit; color: var(--gris); cursor: pointer; text-align: center; }
.bs-pas li > span { cursor: default; }
.bs-pas i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; background: #F1EDE3; color: var(--gris); transition: background .2s, transform .2s; }
.bs-pas .t { font-size: 13px; font-weight: 600; line-height: 1.25; }
.bs-pas li.fait i { background: var(--v); color: #fff; } .bs-pas li.fait .t { color: var(--vn); }
.bs-pas li.en-cours i { background: var(--vn); color: #fff; transform: scale(1.1); } .bs-pas li.en-cours .t { color: var(--vn); }
.bs-pas li > button:hover i { background: #E3F2E9; color: var(--vn); }
.bs-pas li.fait > button:hover i, .bs-pas li.en-cours > button:hover i { background: var(--vn); color: #fff; }
/* Contenu d'une étape */
.bs-etape-corps h3 { margin: 0 0 8px; font-size: 20px; color: var(--vn); }
.bs-etape-corps p { margin: 0 0 12px; color: #4F5751; line-height: 1.6; font-size: 15px; }
.bs-etape-corps p b, .bs-consignes b { color: var(--encre); }
.bs-coche { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.bs-coche li { padding-left: 26px; position: relative; font-size: 15px; }
.bs-coche li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #E3F2E9; color: var(--v); font-size: 11px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.bs-consignes { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 10px; }
.bs-consignes li { counter-increment: c; position: relative; padding: 12px 14px 12px 50px; background: #F7F4EC; border: 0; border-radius: 12px; font-size: 14.5px; line-height: 1.5; color: #4F5751; }
.bs-consignes li::before { content: counter(c); position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--vn); color: #fff; font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.bs-attention { background: #FFF6D6; border: 0; border-radius: 12px; padding: 11px 14px; color: #5C4800 !important; font-size: 14px !important; }
.bs-etape-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.bs-btn.g { padding: 13px 22px; font-size: 15.5px; }
.bs-lien { background: none; border: 0; font: inherit; color: var(--vn); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 2px; }
.bs-notes-alerte { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.bs-notes-alerte.ko { background: #FDE6E9; color: #8D0A1D; } .bs-notes-alerte.ok { background: #E3F2E9; color: #00653C; font-weight: 600; }
.bs-notes-alerte a { color: inherit; font-weight: 700; }
.bs-zone-fichier { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: #F4F1E9; border-radius: 18px; padding: 34px 16px; text-align: center; cursor: pointer; color: var(--gris); font-size: 14px; transition: background .15s, border-color .15s; }
.bs-zone-fichier .ic { width: 48px; height: 48px; border-radius: 50%; background: #E3F2E9; color: var(--v); display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.bs-zone-fichier b { color: var(--vn); font-size: 17px; }
.bs-zone-fichier:hover, .bs-zone-fichier.survol { background: #FFF4C7; }
.bs-zone-fichier.choisi { background: #E3F2E9; color: var(--vn); font-weight: 600; }
.bs-zone-fichier input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bs-btn[disabled] { opacity: .45; cursor: not-allowed; }
.bs-notes-succes { text-align: center; padding: 18px 10px 8px; }
.bs-notes-succes .rond { width: 64px; height: 64px; border-radius: 50%; background: var(--v); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 700; margin: 0 auto 14px; }
.bs-notes-succes p { max-width: 520px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) {
    .bs-notes-grille { grid-template-columns: minmax(0, 1fr); }
    .bs-notes-classes { position: static; }
    .bs-notes-detail { padding: 18px 16px 22px; }
    .bs-notes-titre h2 { font-size: 22px; }
    .bs-pas .t { font-size: 11.5px; } .bs-pas li:not(.en-cours) .t { opacity: .8; }
    .bs-pas i { width: 30px; height: 30px; font-size: 13px; } .bs-pas li:not(:last-child)::after { top: 14px; left: calc(50% + 20px); right: calc(-50% + 20px); }
    .bs-etape-actions .bs-btn.g { width: 100%; justify-content: center; }
}

/* Tableau de bord « parcours du trimestre » : sobre, sans contours, couleurs du Bénin */
.tb-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tb-tete h1 { margin: 0; }
.tb-bonjour { margin: 0 0 2px; color: var(--gris); font-weight: 600; font-size: 14px; }
.tb-etat { font-size: 13.5px !important; padding: 7px 14px !important; }
.tb-info { background: #FFF6D6; color: #5C4800; border-radius: 14px; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; margin-bottom: 18px; }
.tb-ombre, .tb-priorite, .tb-k, .tb-prepa-bloc { box-shadow: 0 1px 2px rgba(30,40,30,.04), 0 8px 24px rgba(30,40,30,.05); }
.tb-priorite { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 18px; padding: 18px 22px; margin-bottom: 20px; }
.tb-priorite .ic { width: 46px; height: 46px; border-radius: 14px; background: #FFF4C7; color: #6E5A00; display: grid; place-items: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.tb-priorite > div { flex: 1; min-width: 0; }
.tb-priorite .k { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #8A6A00; }
.tb-priorite b { display: block; font-size: 17px; color: var(--encre); margin-top: 1px; }
.tb-priorite small { display: block; color: var(--gris); font-size: 13.5px; margin-top: 2px; line-height: 1.45; }
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 11px 18px; font-weight: 600; font-size: 14.5px; background: #F1EDE3; color: var(--vn) !important; text-decoration: none; white-space: nowrap; transition: filter .15s; }
.tb-btn:hover { filter: brightness(.97); }
.tb-btn.p { background: var(--v); color: #fff !important; } .tb-btn.f { background: var(--vn); color: #fff !important; }
.tb-btn.p:hover, .tb-btn.f:hover { filter: brightness(1.12); }
.tb-parcours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tb-col { background: #EFEBE1; border-radius: 18px; padding: 14px; min-height: 220px; }
.tb-col-tete { display: flex; align-items: center; gap: 9px; margin: 2px 4px 4px; }
.tb-col-tete i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.tb-col-tete i.gris { background: #9A9488; } .tb-col-tete i.rouge { background: var(--r); } .tb-col-tete i.jaune { background: #C9A800; } .tb-col-tete i.vert { background: var(--v); }
.tb-col-tete b { font-size: 15px; color: var(--encre); } .tb-col-tete span { margin-left: auto; font-weight: 700; color: var(--gris); }
.tb-col-aide { margin: 0 4px 12px; font-size: 12.5px; color: var(--gris); line-height: 1.4; min-height: 35px; }
.tb-col-vide { margin: 6px 4px; font-size: 13px; color: #A39D90; }
.tb-k { background: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 9px; }
.tb-k .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tb-k .h b { font-size: 16px; color: var(--vn); } .tb-k .bs-puce { font-size: 11.5px; padding: 3px 9px; }
.tb-k small { display: block; color: var(--gris); font-size: 12.5px; margin: 3px 0 10px; }
.tb-k .tb-btn { width: 100%; padding: 9px 12px; font-size: 13.5px; }
.tb-aide { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tb-aide li { font-size: 13px; color: var(--gris); line-height: 1.45; } .tb-aide b { display: block; color: var(--encre); font-size: 14px; margin-bottom: 2px; }
.tb-prepa-bloc { background: #fff; border-radius: 18px; margin-top: 22px; padding: 4px 20px; }
.tb-prepa-bloc summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.tb-prepa-bloc summary::-webkit-details-marker { display: none; }
.tb-prepa-bloc summary::after { content: "▾"; margin-left: auto; color: var(--gris); } .tb-prepa-bloc[open] summary::after { content: "▴"; }
.tb-prepa-bloc summary b { color: var(--vn); font-size: 15.5px; }
.tb-prepa-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 14px; }
.tb-prepa { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--encre); background: #F7F4EC; }
.tb-prepa:hover { background: #F1EDE3; }
.tb-prepa .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 13.5px; background: #E7E2D5; color: var(--gris); }
.tb-prepa.fait .n { background: var(--v); color: #fff; }
.tb-prepa b { display: block; font-size: 14px; color: var(--vn); } .tb-prepa small { display: block; color: var(--gris); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 1100px) { .tb-parcours, .tb-aide { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tb-prepa-liste { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .tb-parcours, .tb-aide { grid-template-columns: minmax(0, 1fr); }
    .tb-col { min-height: 0; } .tb-col-aide { min-height: 0; }
    .tb-priorite { flex-wrap: wrap; padding: 16px; } .tb-priorite .tb-btn { width: 100%; }
}

/* Classes : tuiles par niveau, création sur une ligne, matières d'une classe */
.cl-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cl-tete h1 { margin: 0; }
.cl-creer { padding: 12px 20px; font-size: 15px; }
.cl-nouvelle { background: #fff; border-radius: 18px; padding: 18px 20px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(30,40,30,.04), 0 8px 24px rgba(30,40,30,.05); }
.cl-nouvelle > b { color: var(--vn); font-size: 16px; }
.cl-ligne { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.cl-champ label { display: block; font-size: 12.5px; font-weight: 700; color: var(--gris); margin-bottom: 6px; }
.cl-champ select, .cl-champ input, .cl-ajout input, .cl-coef { font: inherit; border: 0; background: #F4F1E9; border-radius: 11px; padding: 11px 14px; color: var(--encre); }
.cl-champ select { min-width: 150px; }
.cl-champ.grand { flex: 1; min-width: 180px; } .cl-champ.grand input { width: 100%; }
.cl-champ select:focus, .cl-champ input:focus, .cl-ajout input:focus, .cl-coef:focus { outline: 2px solid #9FD3B6; background: #fff; }
.cl-ligne .bs-btn { padding: 11px 18px; border: 0; }
.cl-aide { margin: 8px 0 0; font-size: 12.5px; color: var(--gris); }
.cl-niveau { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); font-weight: 700; margin: 22px 0 10px; }
.cl-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cl-tuile { background: #fff; border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--encre); box-shadow: 0 1px 2px rgba(30,40,30,.04), 0 8px 24px rgba(30,40,30,.05); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; transition: transform .15s; }
.cl-tuile:hover { transform: translateY(-2px); }
.cl-tuile b { font-size: 20px; color: var(--vn); } .cl-tuile small { color: var(--gris); font-size: 12.5px; margin-bottom: 10px; }
.cl-vide { background: #fff; border-radius: 16px; padding: 30px; text-align: center; color: var(--gris); margin-top: 16px; }
.cl-retour { display: inline-block; color: var(--gris); text-decoration: none; font-size: 14px; margin-bottom: 6px; } .cl-retour:hover { color: var(--vn); }
.cl-ok { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #E3F2E9; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.cl-ok b { display: block; color: #00553A; } .cl-ok small { color: #2F6B4F; font-size: 13px; }
.cl-ok-actions { display: flex; gap: 8px; flex-wrap: wrap; } .cl-ok-actions .bs-btn { border: 0; }
.cl-matieres { max-width: 760px; }
.cl-entetes { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; padding: 0 64px 8px 16px; }
#table-matieres { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
#table-matieres td { background: #fff; padding: 8px 10px; }
#table-matieres td.nm { border-radius: 12px 0 0 12px; padding-left: 16px; font-size: 15px; }
#table-matieres td.cf { width: 90px; text-align: right; } #table-matieres td.rt { width: 48px; border-radius: 0 12px 12px 0; text-align: center; }
.cl-coef { width: 70px; text-align: center; font-weight: 700; font-size: 16px; color: var(--vn); padding: 9px 0; }
.cl-retirer { appearance: none; -webkit-appearance: none; width: 32px; height: 32px; margin: 0; border-radius: 9px; cursor: pointer; display: inline-grid; place-items: center; vertical-align: middle; }
.cl-retirer::before { content: "×"; font-size: 20px; color: #A39D90; }
.cl-retirer:hover { background: #F4F1E9; }
.cl-retirer:checked { background: #FDE6E9; } .cl-retirer:checked::before { content: "↺"; color: #A00D22; font-size: 17px; }
#table-matieres tr:has(.cl-retirer:checked) td.nm { text-decoration: line-through; color: #A00D22; }
#table-matieres tr:has(.cl-retirer:checked) td { background: #FFF5F6; }
.cl-aucune { color: var(--gris); border-radius: 12px; padding: 18px !important; }
.cl-ajout { display: flex; gap: 8px; align-items: center; background: #FFF6D6; border-radius: 12px; padding: 10px; margin-top: 4px; }
.cl-ajout #ajout_nom { flex: 1; min-width: 0; background: #fff; } .cl-ajout #ajout_coef { width: 80px; text-align: center; background: #fff; }
.cl-ajout .bs-btn { border: 0; }
.cl-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.cl-pied .bs-btn { border: 0; padding: 12px 24px; }
.bs-btn.f { background: var(--vn); color: #fff !important; }
.cl-liste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--gris); max-width: 760px; }
.cl-liste select { width: auto; border: 0; background: #F4F1E9; }
@media (max-width: 640px) {
    .cl-creer { width: 100%; }
    .cl-ligne > * { width: 100%; } .cl-champ select { width: 100%; }
    .cl-entetes { padding-right: 56px; }
    .cl-ajout { flex-wrap: wrap; } .cl-ajout #ajout_nom { flex-basis: 100%; }
    .cl-pied .bs-btn, .cl-ok-actions .bs-btn { width: 100%; }
}
.cl-tete .bs-btn:not(.p) { border: 0; box-shadow: 0 1px 2px rgba(30,40,30,.06); }
.cl-matieres, .cl-ok, .cl-liste { max-width: 860px; }

/* Page Bulletins : par priorité (à viser, officiels, en préparation) */
.bu-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.bu-tete h1 { margin: 0; }
.bu-section { margin-top: 26px; }
.bu-section h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; color: var(--encre); margin: 0 0 4px; }
.bu-section h2 i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 13px; flex-shrink: 0; }
.bu-section h2 i.jaune { background: #C9A800; } .bu-section h2 i.vert { background: var(--v); } .bu-section h2 i.gris { background: #9A9488; }
.bu-section h2 span { color: var(--gris); font-weight: 600; } .bu-section h2 span b { color: var(--gris); }
.bu-section > p { margin: 0 0 12px; color: var(--gris); font-size: 13.5px; }
.bu-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bu-tuile { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(30,40,30,.04), 0 8px 24px rgba(30,40,30,.05); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.bu-tuile.prio { background: #FFF4C7; }
.bu-tuile b { font-size: 21px; color: var(--vn); } .bu-tuile small { color: var(--gris); font-size: 13px; margin-bottom: 12px; }
.bu-tuile .bs-puce { margin-bottom: 10px; }
.bu-info { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gris); margin: -4px 0 12px; } .bu-info i { width: 8px; height: 8px; border-radius: 50%; background: var(--v); }
.bu-btn { width: 100%; display: inline-flex; justify-content: center; align-items: center; border-radius: 12px; padding: 11px 16px; font-weight: 600; font-size: 14.5px; background: #F1EDE3; color: var(--vn) !important; text-decoration: none; margin-top: auto; }
.bu-btn.f { background: var(--vn); color: #fff !important; } .bu-btn:hover { filter: brightness(.97); } .bu-btn.f:hover { filter: brightness(1.15); }
.bu-actions { display: flex; gap: 10px; align-items: center; width: 100%; margin-top: auto; } .bu-actions .bu-btn { flex: 1; }
.bu-lien { color: var(--vn); font-weight: 600; font-size: 14px; padding: 0 6px; }
.bu-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.bu-pastilles a { display: inline-flex; align-items: center; gap: 6px; background: #EFEBE1; border-radius: 12px; padding: 10px 14px; font-weight: 600; color: var(--gris); text-decoration: none; }
.bu-pastilles a:hover { background: #E7E2D5; color: var(--vn); } .bu-pastilles i.rouge { width: 8px; height: 8px; border-radius: 50%; background: var(--r); }
.bu-vide { background: #fff; border-radius: 14px; padding: 14px 16px; color: var(--gris); font-size: 14px; margin: 0; max-width: 520px; }

/* En-tête sur deux lignes : identité en haut, menu complet en dessous (aucun lien coupé) */
.bs-haut .in { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
.bs-haut .bs-nav { order: 3; width: 100%; margin-left: -10px; flex-wrap: wrap; overflow: visible; }
.bs-haut .bs-marque small { display: inline; }
.bs-qui .t span { display: block; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .bs-haut .bs-marque small { display: none; } .bs-haut .bs-nav { margin-left: -6px; gap: 2px 0; } .bs-haut .bs-nav a { padding: 7px 8px; font-size: 14px; } }

/* Bulle d'aide « ? » sur les mots importants */
.aide-mot { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E7E2D5; color: var(--vn); font-size: 12px; font-weight: 700; cursor: help; vertical-align: middle; margin-left: 4px; text-transform: none; letter-spacing: 0; font-style: normal; }
.aide-mot:hover, .aide-mot:focus { background: var(--vn); color: #fff; outline: none; }
.aide-mot::after { content: attr(data-aide); display: none; position: absolute; z-index: 30; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); width: 280px; max-width: 80vw; background: var(--vn); color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.45; text-align: left; padding: 11px 13px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; white-space: normal; }
.aide-mot:hover::after, .aide-mot:focus::after { display: block; opacity: 1; visibility: visible; }

/* Erreurs du fichier : case Excel, explication, conseil */
.er-bloc { background: #fff; border-radius: 18px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(30,40,30,.04), 0 8px 24px rgba(30,40,30,.05); margin-bottom: 20px; }
.er-tete h2 { margin: 0 0 4px; font-size: 20px; color: #8D0A1D; } .er-tete p { margin: 0 0 14px; color: var(--gris); font-size: 14px; line-height: 1.5; }
.er-astuce { background: #FFF6D6; color: #5C4800; border-radius: 12px; padding: 11px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.er-case { display: inline-block; background: #fff; border: 0; box-shadow: inset 0 0 0 2px #2E7D32; color: #1B5E20; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; border-radius: 4px; padding: 1px 6px; }
.er-case.grande { min-width: 74px; text-align: center; padding: 8px 6px; font-size: 15px; flex-shrink: 0; align-self: flex-start; }
.er-liste { display: grid; gap: 8px; margin-bottom: 18px; }
.er-ligne { display: flex; gap: 14px; align-items: flex-start; background: #FFF5F6; border-radius: 12px; padding: 12px 14px; }
.er-texte { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; } .er-texte b { color: var(--encre); }
.er-texte .message-erreur { color: #8D0A1D; } .er-texte small { color: #4F5751; font-size: 13.5px; }
.er-renvoi { margin-bottom: 10px; }

/* Exemple de ligne remplie (page Notes, étape 2) */
.ex-bloc { background: #F7F4EC; border-radius: 12px; padding: 0 14px; margin: 0 0 12px; }
.ex-bloc summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--vn); font-size: 14.5px; }
.ex-defile { overflow-x: auto; }
.ex-excel { border-collapse: collapse; font-size: 12.5px; background: #fff; margin-bottom: 10px; }
.ex-excel td { border: 1px solid #D9D9D9; padding: 5px 8px; white-space: nowrap; text-align: center; }
.ex-excel tr.lettres td, .ex-excel td:first-child { background: #F2F2F2; color: #777; font-size: 11.5px; }
.ex-excel tr.titres td { background: #E8F1EC; font-weight: 700; color: var(--vn); }
.ex-excel td.n { color: var(--vn); font-weight: 700; } .ex-excel td.vide { background: #FFFBEA; } .ex-excel td.calc { background: #E3F2E9; color: #00653C; }
.ex-notes { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px; color: #4F5751; line-height: 1.6; }
.er-case { box-shadow: none !important; background: #E3F2E9 !important; color: #00553A !important; }
.er-renvoi .bs-depot-zone { border: 0; background: #F4F1E9; padding: 22px 14px; }
.er-renvoi .bs-depot-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.er-renvoi .bs-depot-zone { position: relative; }
.er-renvoi .bs-depot-zone b::before { content: "⇧ "; }

/* Accueil : vérification, pour qui, sécurité, questions */
.bs-v-verif { background: #FBF3CF; border-radius: 20px; padding: 30px 34px; display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.bs-v-verif > div { flex: 1 1 320px; } .bs-v-verif h2 { margin: 0 0 6px; } .bs-v-verif .bs-lbl { margin: 0 0 6px; } .bs-v-verif > div > p:last-child { margin: 0; color: #4F5751; font-size: 16px; }
.bs-v-verif form { display: flex; gap: 10px; flex: 1 1 320px; }
.bs-v-verif input { flex: 1; min-width: 0; border: 0; background: #fff; border-radius: 12px; padding: 16px 18px; font: 600 18px Outfit, sans-serif; letter-spacing: .06em; color: var(--vn); text-transform: uppercase; }
.bs-v-verif input::placeholder { color: #9AA39C; text-transform: none; } .bs-v-verif input:focus { outline: 0; box-shadow: 0 0 0 3px rgba(0, 135, 81, .25); }
.bs-v-verif button { border: 0; background: var(--vn); color: #fff; border-radius: 12px; padding: 0 26px; font: 600 17px Outfit, sans-serif; cursor: pointer; }
.bs-v-verif button:hover { background: #134a31; }
.bs-v-pourqui { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bs-v-pourqui > div { background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(14, 59, 38, .06); }
.bs-v-pourqui i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px; line-height: 0; }
.bs-v-pourqui .c1 { background: #0E3B26; } .bs-v-pourqui .c2 { background: #008751; } .bs-v-pourqui .c3 { background: #C9A400; } .bs-v-pourqui .c4 { background: #B00D24; }
.bs-v-pourqui b { display: block; font-size: 19px; color: var(--vn); margin-bottom: 8px; } .bs-v-pourqui p { margin: 0; color: #4F5751; font-size: 15.5px; line-height: 1.5; }
.bs-v-sur { background: var(--vn); border-radius: 22px; padding: 40px 40px 44px; }
.bs-v-sur .bs-lbl { color: #FCD116; } .bs-v-sur h2 { color: #fff; margin-bottom: 30px; }
.bs-v-sur-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.bs-v-sur-points i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #FCD116; color: var(--vn); font: normal 700 18px Outfit, sans-serif; margin-bottom: 14px; }
.bs-v-sur-points b { display: block; font-size: 20px; color: #fff; margin-bottom: 8px; } .bs-v-sur-points p { margin: 0; color: #C9DACF; font-size: 15.5px; line-height: 1.55; }
.bs-v-faq-sec { padding-bottom: 60px; text-align: center; }
.bs-v-faq { max-width: 820px; margin: 26px auto 0; text-align: left; }
.bs-v-faq details { background: #fff; border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(14, 59, 38, .05); }
.bs-v-faq summary { font-weight: 600; font-size: 18px; color: var(--vn); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.bs-v-faq summary::-webkit-details-marker { display: none; }
.bs-v-faq summary i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #E3EEE7; position: relative; }
.bs-v-faq summary i::before, .bs-v-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--vn); border-radius: 1px; }
.bs-v-faq summary i::after { transform: rotate(90deg); }
.bs-v-faq details[open] summary i { background: var(--vn); } .bs-v-faq details[open] summary i::before { background: #fff; } .bs-v-faq details[open] summary i::after { display: none; }
.bs-v-faq p { margin: 12px 0 0; color: #4F5751; font-size: 16px; line-height: 1.6; }
.bs-v-faq-contact { margin: 20px 0 0; color: #4F5751; font-size: 16px; } .bs-v-faq-contact a { color: var(--v); font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1000px) { .bs-v-pourqui { grid-template-columns: 1fr 1fr; } .bs-v-sur-points { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) {
    .bs-v-verif { padding: 22px 18px; } .bs-v-verif form { flex-direction: column; } .bs-v-verif button { padding: 15px; }
    .bs-v-pourqui { grid-template-columns: 1fr; } .bs-v-sur { padding: 28px 20px; } .bs-v-faq summary { font-size: 16.5px; } .bs-v-faq details { padding: 16px 18px; }
}

/* Effacer les données envoyées : bouton et fenêtre de confirmation */
.bs-btn.bs-btn-effacer { background: #FCE8EA; color: #B00D24 !important; border-color: transparent; font-weight: 600; }
.bs-btn.bs-btn-effacer:hover { background: #F8D5D9; }
.bs-btn.bs-btn-danger { background: #B00D24; color: #fff !important; border-color: transparent; font-weight: 600; }
.bs-btn.bs-btn-danger:hover { background: #950b1e; }
.bs-dialogue { border: 0; border-radius: 18px; padding: 28px 30px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(14, 30, 22, .3); font-family: inherit; }
.bs-dialogue::backdrop { background: rgba(14, 30, 22, .55); }
.bs-dialogue b { display: block; font-size: 21px; color: var(--vn); }
.bs-dialogue p { color: #4F5751; font-size: 16px; line-height: 1.5; margin: 12px 0 0; }
.bs-dialogue-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.bs-dialogue-actions .bs-btn:first-child { background: #F1EFEA; border-color: transparent; }
