/* Zayan Computer — interface de gestion et espace étudiant.
   Bleu très foncé, blanc, gris discrets. Aucune ressource externe (connexions limitées). */

:root {
	--ze-navy: #0b1a3d;
	--ze-navy-2: #14286b;
	--ze-blue: #1f3aa6;
	--ze-blue-soft: #e8ecf8;
	--ze-bg: #f4f5f7;
	--ze-surface: #ffffff;
	--ze-line: #dde1e7;
	--ze-line-2: #eceff3;
	--ze-text: #1a1f2b;
	--ze-muted: #5b6475;
	--ze-ok: #16693a;
	--ze-ok-bg: #e5f4ea;
	--ze-warn: #8a5a00;
	--ze-warn-bg: #fdf3dc;
	--ze-err: #a8201a;
	--ze-err-bg: #fbe9e7;
	--ze-gold: #a57c1b;
	--ze-radius: 8px;
	--ze-focus: 0 0 0 3px #ffbf47;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ze-text);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ze-bg); }
a { color: var(--ze-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: none; box-shadow: var(--ze-focus);
}
img { max-width: 100%; height: auto; }
.ze-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ze-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.ze-skip:focus { left: 8px; top: 8px; }

/* ---------- Barre supérieure ---------- */
.ze-topbar {
	display: flex; align-items: center; gap: 16px;
	background: var(--ze-navy); color: #fff;
	padding: 8px 16px; min-height: 56px;
	position: sticky; top: 0; z-index: 20;
}
.ze-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.ze-brand img { background: #fff; border-radius: 6px; padding: 2px; width: 44px; height: auto; }
.ze-brand small { display: block; font-weight: 400; opacity: .75; font-size: 12px; }
.ze-user { margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.ze-user a { color: #fff; }
.ze-username { opacity: .85; }
.ze-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #ffbf47; color: #1a1f2b; font-size: 12px; font-weight: 700; text-align: center; }
.ze-menu-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 16px; cursor: pointer; }

/* ---------- Mise en page ---------- */
.ze-layout { display: flex; min-height: calc(100vh - 56px); }
.ze-nav { width: 240px; flex: 0 0 240px; background: var(--ze-surface); border-right: 1px solid var(--ze-line); padding: 12px 0; }
.ze-nav ul { list-style: none; margin: 0; padding: 0; }
.ze-nav a { display: block; padding: 9px 20px; color: var(--ze-text); text-decoration: none; border-left: 3px solid transparent; }
.ze-nav a:hover { background: var(--ze-bg); }
.ze-nav a[aria-current="page"] { border-left-color: var(--ze-blue); background: var(--ze-blue-soft); color: var(--ze-navy); font-weight: 600; }
.ze-demo-flag { margin: 16px; padding: 8px; font-size: 13px; background: var(--ze-warn-bg); color: var(--ze-warn); border-radius: 6px; }
.ze-main { flex: 1; min-width: 0; padding: 24px 32px 48px; max-width: 1400px; }
.ze-main:focus { outline: none; }
.ze-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ze-page-head h1 { font-size: 26px; margin: 0; color: var(--ze-navy); }
.ze-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
h2 { font-size: 19px; color: var(--ze-navy); margin: 28px 0 12px; }
h3 { font-size: 16px; margin: 20px 0 8px; }

/* ---------- Cartes et indicateurs ---------- */
.ze-card { background: var(--ze-surface); border: 1px solid var(--ze-line); border-radius: var(--ze-radius); padding: 20px; margin-bottom: 20px; }
.ze-card > h2:first-child, .ze-card > h3:first-child { margin-top: 0; }
.ze-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.ze-kpi { display: block; background: var(--ze-surface); border: 1px solid var(--ze-line); border-radius: var(--ze-radius); padding: 14px 16px; text-decoration: none; color: var(--ze-text); }
.ze-kpi:hover { border-color: var(--ze-blue); }
.ze-kpi-label { font-size: 13px; color: var(--ze-muted); display: block; }
.ze-kpi-value { font-size: 26px; font-weight: 700; color: var(--ze-navy); display: block; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ze-kpi-value small { font-size: 14px; font-weight: 600; }
.ze-kpi-warn .ze-kpi-value { color: var(--ze-err); }
.ze-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ze-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.ze-dl dt { color: var(--ze-muted); }
.ze-dl dd { margin: 0; }

/* ---------- Tableaux ---------- */
.ze-table-wrap { overflow-x: auto; background: var(--ze-surface); border: 1px solid var(--ze-line); border-radius: var(--ze-radius); }
table.ze-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ze-table th, .ze-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ze-line-2); vertical-align: top; }
.ze-table th { background: #f8f9fb; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--ze-muted); white-space: nowrap; }
.ze-table tbody tr:hover { background: #fafbfc; }
.ze-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ze-table tfoot td { font-weight: 700; background: #f8f9fb; }
.ze-table caption { text-align: left; padding: 10px 12px; font-weight: 600; }

/* ---------- Pastilles ---------- */
.ze-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 13px; background: var(--ze-line-2); color: var(--ze-text); white-space: nowrap; }
.ze-pill-inscrit, .ze-pill-a_venir, .ze-pill-prevue, .ze-pill-prevu, .ze-pill-nouvelle, .ze-pill-brouillon, .ze-pill-attente { background: var(--ze-blue-soft); color: var(--ze-navy-2); }
.ze-pill-en_formation, .ze-pill-realise, .ze-pill-present, .ze-pill-reussi, .ze-pill-delivre, .ze-pill-valide, .ze-pill-acceptee, .ze-pill-effectue, .ze-pill-effectuee { background: var(--ze-ok-bg); color: var(--ze-ok); }
.ze-pill-suspension, .ze-pill-retard, .ze-pill-reporte, .ze-pill-reprise, .ze-pill-reportee, .ze-pill-en_cours, .ze-pill-justifie { background: var(--ze-warn-bg); color: var(--ze-warn); }
.ze-pill-abandon, .ze-pill-absent, .ze-pill-non_reussi, .ze-pill-revoque, .ze-pill-annule, .ze-pill-annulee, .ze-pill-refusee { background: var(--ze-err-bg); color: var(--ze-err); }

/* ---------- Boutons ---------- */
.ze-btn, button.ze-btn, input[type=submit].ze-btn {
	display: inline-flex; align-items: center; gap: 6px; justify-content: center;
	background: var(--ze-navy); color: #fff; border: 1px solid var(--ze-navy);
	padding: 9px 16px; border-radius: 6px; font-size: 15px; font-weight: 600;
	text-decoration: none; cursor: pointer; line-height: 1.3; min-height: 42px;
}
.ze-btn:hover { background: var(--ze-navy-2); }
.ze-btn-secondary { background: #fff; color: var(--ze-navy); border-color: var(--ze-line); }
.ze-btn-secondary:hover { background: var(--ze-bg); }
.ze-btn-danger { background: var(--ze-err); border-color: var(--ze-err); }
.ze-btn-danger:hover { background: #87170f; }
.ze-btn-small { padding: 4px 10px; font-size: 14px; min-height: 32px; }
.ze-btn[disabled], .ze-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ze-link-btn { background: none; border: 0; color: var(--ze-blue); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------- Formulaires ---------- */
.ze-form { max-width: 860px; }
.ze-fieldset { border: 1px solid var(--ze-line); border-radius: var(--ze-radius); background: var(--ze-surface); padding: 16px 20px 4px; margin: 0 0 20px; }
.ze-fieldset legend { font-weight: 700; color: var(--ze-navy); padding: 0 6px; }
.ze-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.ze-field { margin-bottom: 16px; }
.ze-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.ze-field input[type=text], .ze-field input[type=email], .ze-field input[type=tel], .ze-field input[type=date],
.ze-field input[type=datetime-local], .ze-field input[type=number], .ze-field input[type=password], .ze-field input[type=time],
.ze-field input[type=search], .ze-field input[type=url], .ze-field select, .ze-field textarea {
	width: 100%; padding: 9px 11px; font: inherit; border: 1px solid #b9c0cc; border-radius: 6px; background: #fff; color: var(--ze-text); min-height: 42px;
}
.ze-field textarea { min-height: 90px; }
.ze-field.has-error input, .ze-field.has-error select, .ze-field.has-error textarea { border-color: var(--ze-err); border-width: 2px; }
.ze-req { color: var(--ze-err); }
.ze-opt { font-weight: 400; color: var(--ze-muted); font-size: 14px; }
.ze-help { margin: 4px 0 0; font-size: 14px; color: var(--ze-muted); }
.ze-error { margin: 4px 0 0; font-size: 14px; color: var(--ze-err); font-weight: 600; }
.ze-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.ze-check input { margin-top: 4px; width: 18px; height: 18px; }
.ze-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ze-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--ze-surface); border: 1px solid var(--ze-line); border-radius: var(--ze-radius); padding: 12px 14px; margin-bottom: 16px; }
.ze-filters .ze-field { margin: 0; min-width: 160px; flex: 1 1 160px; }
.ze-filters .ze-field label { font-size: 13px; }
.ze-inline-form { display: inline; }

/* ---------- Messages ---------- */
.ze-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; border-left: 4px solid; }
.ze-notice ul { margin: 6px 0 0; padding-left: 20px; }
.ze-notice-success { background: var(--ze-ok-bg); border-color: var(--ze-ok); color: #0f4a28; }
.ze-notice-error { background: var(--ze-err-bg); border-color: var(--ze-err); color: #6e1510; }
.ze-notice-warning { background: var(--ze-warn-bg); border-color: var(--ze-warn); color: #5c3c00; }
.ze-notice-info { background: var(--ze-blue-soft); border-color: var(--ze-blue); color: var(--ze-navy); }
.ze-empty { background: var(--ze-surface); border: 1px dashed var(--ze-line); border-radius: var(--ze-radius); padding: 28px; text-align: center; color: var(--ze-muted); }
.ze-muted { color: var(--ze-muted); }
.ze-small { font-size: 14px; }
.ze-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ze-code-box { font-family: ui-monospace, Menlo, monospace; font-size: 28px; letter-spacing: .12em; padding: 16px; background: #fff; border: 2px dashed var(--ze-navy); display: inline-block; border-radius: 8px; }

/* ---------- Onglets ---------- */
.ze-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ze-line); margin-bottom: 20px; overflow-x: auto; }
.ze-tabs a { padding: 10px 14px; text-decoration: none; color: var(--ze-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.ze-tabs a[aria-current="page"] { color: var(--ze-navy); border-bottom-color: var(--ze-navy); font-weight: 600; }

/* ---------- Photo ---------- */
.ze-photo { width: 120px; height: 150px; object-fit: cover; border-radius: 6px; border: 1px solid var(--ze-line); background: var(--ze-bg); }
.ze-photo-empty { display: flex; align-items: center; justify-content: center; color: var(--ze-muted); font-size: 13px; text-align: center; }
.ze-head-card { display: flex; gap: 20px; align-items: flex-start; }

/* ---------- Appel ---------- */
.ze-appel td.ze-choix { white-space: nowrap; }
.ze-appel label.ze-radio { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; padding: 4px 8px; border: 1px solid var(--ze-line); border-radius: 6px; cursor: pointer; }
.ze-appel input[type=radio] { width: 18px; height: 18px; }

/* ---------- Calendrier ---------- */
.ze-cal-day { margin-bottom: 16px; }
.ze-cal-day h3 { margin: 0 0 6px; font-size: 15px; color: var(--ze-muted); text-transform: capitalize; }
.ze-cal-item { display: flex; gap: 12px; padding: 10px 12px; background: var(--ze-surface); border: 1px solid var(--ze-line); border-left: 4px solid var(--ze-blue); border-radius: 6px; margin-bottom: 6px; align-items: center; flex-wrap: wrap; }
.ze-cal-item.type-direct { border-left-color: #7b3fbf; }
.ze-cal-item.type-examen { border-left-color: var(--ze-err); }
.ze-cal-item.statut-annulee { opacity: .6; text-decoration: line-through; }
.ze-cal-time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ze-menu-toggle { display: inline-block; }
	.ze-nav { display: none; position: fixed; top: 56px; left: 0; bottom: 0; z-index: 30; overflow-y: auto; box-shadow: 4px 0 16px rgba(0,0,0,.15); }
	.ze-nav.is-open { display: block; }
	.ze-main { padding: 16px; }
	.ze-grid-2 { grid-template-columns: 1fr; }
	.ze-username { display: none; }
	.ze-head-card { flex-direction: column; }
	.ze-page-head h1 { font-size: 22px; }
	/* Tableaux empilés sur téléphone */
	table.ze-stack thead { display: none; }
	table.ze-stack tr { display: block; border-bottom: 1px solid var(--ze-line); padding: 8px 0; }
	table.ze-stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 12px; text-align: right; }
	table.ze-stack td::before { content: attr(data-label); font-weight: 600; color: var(--ze-muted); text-align: left; }
	table.ze-stack td.num { text-align: right; }
}

/* ---------- Impression ---------- */
@media print {
	.ze-topbar, .ze-nav, .ze-page-actions, .ze-filters, .ze-pagination, .ze-no-print, .ze-skip, .ze-form-actions { display: none !important; }
	body { background: #fff; }
	.ze-main { padding: 0; max-width: none; }
	.ze-card, .ze-table-wrap { border: 0; padding: 0; }
	.ze-print-only { display: block !important; }
	a { color: inherit; text-decoration: none; }
}
.ze-print-only { display: none; }
.ze-pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0; }

/* ---------- Connexion ---------- */
.ze-auth { background: var(--ze-bg); }
.ze-auth-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.ze-auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--ze-line); border-radius: 12px; padding: 28px; }
.ze-auth-logo { display: block; text-align: center; margin-bottom: 8px; }
.ze-auth-logo img { width: 160px; height: auto; }
.ze-auth-card h1 { font-size: 22px; text-align: center; color: var(--ze-navy); margin: 0 0 20px; }
.ze-auth-links { margin-top: 20px; font-size: 14px; color: var(--ze-muted); border-top: 1px solid var(--ze-line-2); padding-top: 12px; }
.ze-auth-foot { margin-top: 16px; font-size: 14px; }

/* ---------- Documents imprimables (fiches, listes, reçus HTML) ---------- */
.ze-print-page { background: #fff; }
.ze-sheet { max-width: 900px; margin: 0 auto; padding: 24px; }
.ze-sheet-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--ze-navy); padding-bottom: 12px; margin-bottom: 20px; }
.ze-sheet-head img { width: 110px; }
.ze-sheet-title { margin-left: auto; text-align: right; font-weight: 700; color: var(--ze-navy); font-size: 18px; }
.ze-sheet .ze-table th { width: auto; }
.ze-sign-line { margin-top: 48px; display: flex; justify-content: space-between; gap: 40px; }
.ze-sign-line div { flex: 1; border-top: 1px solid #333; padding-top: 4px; font-size: 13px; text-align: center; }
@page { margin: 14mm; }

/* Ajustements après revue visuelle */
.ze-filters .ze-opt { display: none; }
.ze-appel td.ze-choix { white-space: normal; }
.ze-appel td.ze-choix fieldset { display: flex; flex-wrap: wrap; gap: 6px; }
.ze-appel label.ze-radio { margin-right: 0; }
.ze-brand img { background: transparent; padding: 0; }
@media (max-width: 900px) {
	table.ze-stack td.ze-choix { display: block; text-align: left; }
	table.ze-stack td.ze-choix::before { display: block; margin-bottom: 4px; }
	.ze-appel input[type=text] { width: 100%; }
}
.ze-auth-nom { text-align: center; font-size: 20px; font-weight: 700; color: var(--ze-navy); margin: 0 0 4px; letter-spacing: .02em; }

/* Photos du site (gestion) */
.ze-photos-liste { display: flex; flex-direction: column; gap: 4px; }
.ze-photo-fiche { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin-bottom: 0; }
.ze-photo-vignette img { width: 100%; height: 170px; object-fit: cover; border-radius: 6px; display: block; }
.ze-photo-vignette .ze-pill { margin: 8px 0 4px; }
.ze-photo-vignette small { display: block; word-break: break-all; }
.ze-photo-retirer { margin: 0 0 20px; text-align: right; }
@media (max-width: 900px) { .ze-photo-fiche { grid-template-columns: 1fr; } }

/* Choix Oui / Non (accès à un ordinateur) */
.ze-field label.ze-radio { display: inline-flex; align-items: center; gap: 6px; margin: 4px 12px 0 0; padding: 8px 14px; border: 1px solid var(--ze-line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.ze-field label.ze-radio input { width: 18px; height: 18px; margin: 0; }
.ze-field label.ze-radio:has(input:checked) { border-color: var(--ze-navy); background: var(--ze-blue-soft); }
fieldset.ze-field { border: 0; padding: 0; margin: 0 0 16px; }

/* Événements */
.ze-evenement { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.ze-evenement h3 { margin: 0 0 4px; }
.ze-evenement p { margin: 4px 0; }
.ze-evenement-date { flex: none; width: 64px; text-align: center; background: var(--ze-navy); color: #fff; border-radius: 12px; padding: 8px 0; line-height: 1.1; }
.ze-evenement-date span { display: block; font-size: 24px; font-weight: 800; }
.ze-evenement-date small { display: block; text-transform: uppercase; letter-spacing: .06em; color: #e9cf85; }
.ze-evenement-inactif { opacity: .7; }
.ze-evenement-texte p { margin: 6px 0; }
.ze-evenements-resume { padding-left: 18px; }
.ze-evenements-resume li { margin: 6px 0; }
.ze-cal-item.type-evenement { border-left-color: #c9a43a; }

/* Heure sur 12 heures : heure, minutes, AM/PM */
.ze-heure12 { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.ze-heure12 select { width: auto; min-width: 4.6em; }

/* Ligne de total (impayés par groupe) */
.ze-table tr.ze-total td { background: var(--ze-blue-soft); border-top: 2px solid var(--ze-navy); }

/* Lien « Retour au site » dans la barre du haut */
.ze-user .ze-site-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); text-decoration: none; font-weight: 600; }
.ze-user .ze-site-link:hover { background: rgba(255,255,255,.22); }
@media (max-width: 560px) {
	.ze-brand span { display: none; }
	.ze-user { gap: 10px; font-size: 13px; }
	.ze-user .ze-site-link { padding: 7px; }
	.ze-user .ze-site-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Statistiques */
.ze-graphe svg { width: 100%; height: 260px; display: block; }
.ze-graphe-barre { fill: var(--ze-navy); }
.ze-graphe-barre:hover { fill: #c9a43a; }
.ze-graphe-grille { stroke: var(--ze-line); stroke-width: 1; }
.ze-graphe-txt { font-size: 11px; fill: var(--ze-muted, #5b6475); }
.ze-barre-mini { height: 6px; background: var(--ze-line); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.ze-barre-mini span { display: block; height: 100%; background: linear-gradient(90deg, var(--ze-navy), #c9a43a); border-radius: 3px; }
div.ze-kpi small { display: block; margin-top: 2px; }

/* Messages et notifications sur le téléphone */
.ze-message-nouveau { border-left: 4px solid var(--ze-navy); }
.ze-message h2 { margin: 0 0 4px; font-size: 1.1rem; }
.ze-message-texte p { margin: 8px 0; }
.ze-push { border: 1px dashed var(--ze-navy); }
.ze-push h2 { margin-top: 0; font-size: 1.05rem; }

/* Un élément masqué reste masqué, même si sa classe impose un affichage (boutons…). */
[hidden] { display: none !important; }

/* Mes informations : ce qui n'a pas été fourni à l'école */
.ze-non-fourni { color: var(--ze-muted, #5b6475); font-style: italic; }

/* Paiements : bascule « Paiements reçus » / « Pas encore payé » */
.ze-tabs.ze-tabs-sous { border-bottom: 0; gap: 8px; margin: 12px 0 16px; padding-bottom: 2px; }
.ze-tabs.ze-tabs-sous a { border: 1px solid var(--ze-line); border-radius: 999px; padding: 7px 16px; }
.ze-tabs.ze-tabs-sous a[aria-current="page"] { background: var(--ze-navy); border-color: var(--ze-navy); color: #fff; }
.ze-ligne-retard td:first-child { box-shadow: inset 3px 0 0 #c0392b; }

/* Bourses */
.ze-pill-bourse { background: #e8f0fe; color: #1a3d8f; border: 1px solid #c3d4f7; }
@media (prefers-color-scheme: dark) { .ze-pill-bourse { background: #1a2b52; color: #c9d8ff; border-color: #2e4580; } }

/* Export des dossiers : un bouton par format */
.ze-formats { display: flex; flex-wrap: wrap; gap: 8px; }
.ze-formats .ze-btn { white-space: normal; text-align: left; }

/* Événements : photos et vidéos */
.ze-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.ze-galerie-item { margin: 0; border-radius: 10px; overflow: hidden; background: var(--ze-line); }
.ze-galerie-item img, .ze-galerie-item video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.ze-galerie-item figcaption { padding: 4px 8px; background: var(--ze-surface); }
.ze-liens-video { list-style: none; padding: 0; margin: 8px 0; }
.ze-liens-video a { font-weight: 600; }
.ze-galerie-dl { display: block; padding: 4px 8px; font-size: 13px; background: var(--ze-surface); }
.ze-fichiers-choisis { list-style: none; padding: 0; margin: 6px 0 0; }
.ze-fichiers-choisis li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--ze-line); border-radius: 8px; margin-top: 4px; font-size: 14px; }
.ze-fichiers-choisis button { border: 0; background: none; color: #a8201a; font-weight: 600; cursor: pointer; }
.ze-sujets { list-style: none; padding: 0; margin: 6px 0; }
.ze-sujets li { padding: 6px 0; border-bottom: 1px solid var(--ze-line); }
.ze-sujets a { font-weight: 600; }

/* Examens en ligne */
.ze-eel-choix { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.ze-eel-choix input[type=text] { flex: 1; }
.ze-eel-chrono { position: sticky; top: 64px; z-index: 5; display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--ze-navy); color: #fff; margin-bottom: 12px; }
.ze-eel-chrono strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.ze-eel-chrono.ze-urgent { background: #a8201a; }
.ze-eel-chrono small { margin-left: auto; opacity: .85; }
.ze-eel-question legend { padding: 0 4px; }
.ze-eel-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--ze-line); border-radius: 10px; margin: 6px 0; cursor: pointer; }
.ze-eel-option input { margin-top: 3px; }
.ze-eel-question textarea, .ze-eel-question input[type=text] { width: 100%; }
.ze-eel-copie { border-left: 4px solid var(--ze-line); padding: 6px 12px; margin: 10px 0; }
.ze-eel-juste { border-color: #1e7a3c; } .ze-eel-faux { border-color: #a8201a; } .ze-eel-partiel, .ze-eel-attente { border-color: #c98a00; }
.ze-eel-bon { font-weight: 600; color: #1e7a3c; }
.ze-eel-rep { background: var(--ze-surface); padding: 8px; border-radius: 8px; }
.ze-eel-note { font-size: 20px; font-weight: 700; }
.ze-eel-image img { max-width: 100%; max-height: 420px; border-radius: 8px; border: 1px solid var(--ze-line); }
.ze-eel-barre { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: var(--ze-line); vertical-align: middle; overflow: hidden; }
.ze-eel-barre span { display: block; height: 100%; }

/* Statistiques en direct */
.ze-direct-stats h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.ze-point-direct { width: 10px; height: 10px; border-radius: 50%; background: #1e7a3c; box-shadow: 0 0 0 0 rgba(30,122,60,.6); animation: zePouls 2s infinite; }
@keyframes zePouls { 0% { box-shadow: 0 0 0 0 rgba(30,122,60,.6); } 70% { box-shadow: 0 0 0 10px rgba(30,122,60,0); } 100% { box-shadow: 0 0 0 0 rgba(30,122,60,0); } }
@media (prefers-reduced-motion: reduce) { .ze-point-direct { animation: none; } }

/* Boutons WhatsApp */
.ze-btn.ze-btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.ze-btn.ze-btn-wa:hover { background: #17713d; }
/* Menu : sous-entrées (Dépenses, Bilan, Dossiers incomplets) légèrement en retrait */
.ze-sidebar a.ze-menu-sous, nav a.ze-menu-sous { padding-left: 32px; font-size: .95em; }

/* Évaluation : notes de 1 à 5 */
.ze-eval-notes { display: flex; gap: 8px; flex-wrap: wrap; }
.ze-eval-notes label { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border: 1px solid var(--ze-line); border-radius: 10px; cursor: pointer; }

/* Cours en ligne : leçons, devoirs, questions */
.ze-progression{height:10px;border-radius:6px;background:rgba(11,26,61,.12);overflow:hidden;margin:6px 0}
.ze-progression span{display:block;height:100%;background:#0b1a3d;border-radius:6px}
.ze-lecons-liste li{margin:6px 0}
.ze-video{position:relative;padding-top:56.25%;margin:0 0 16px;border-radius:10px;overflow:hidden;background:#000}
.ze-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ze-lecon img{max-width:100%;height:auto}
.ze-fil-rep{margin:8px 0 8px 18px;padding:6px 12px;border-left:3px solid rgba(11,26,61,.25)}
.ze-fil textarea{box-sizing:border-box}

/* Recherche globale (gestion) */
.ze-recherche-globale { flex: 1 1 220px; max-width: 360px; margin: 0 12px; }
.ze-recherche-globale input { width: 100%; box-sizing: border-box; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: inherit; font: inherit; font-size: 14px; }
.ze-recherche-globale input::placeholder { color: rgba(255,255,255,.75); }
.ze-recherche-globale input:focus { outline: 2px solid #fff; outline-offset: 1px; background: rgba(255,255,255,.2); }
.ze-resultats-recherche { list-style: none; padding: 0; margin: 0; }
.ze-resultats-recherche li { padding: 8px 0; border-bottom: 1px solid rgba(11,26,61,.1); }
@media (max-width: 760px) { .ze-topbar { flex-wrap: wrap; } .ze-recherche-globale { order: 10; flex-basis: 100%; max-width: none; margin: 8px 0 0; } }
