/* =====================================================================
   Université des Savants d'Afrique en ligne — feuille de style
   Couleurs principales : modifiez-les ici pour tout le site
   ===================================================================== */
:root {
  --vert: #0E3B2E;
  --vert-2: #164B3A;
  --vert-3: #1F5C46;
  --vert-pale: #E7EFEA;
  --fond: #F3F6F3;
  --or: #C8902A;
  --or-texte: #7A5410;
  --or-pale: #F6ECD9;
  --texte: #1C1F1D;
  --texte-2: #3A433E;
  --gris: #55605A;
  --bord: #E2E6E1;
  --bord-2: #B9C7BE;
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--texte); background: #fff; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--vert-3); }
a:hover { color: var(--vert); }
h1, h2, h3 { font-family: var(--serif); color: var(--vert); margin: 0; line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 24px; border-radius: 10px; border: 0; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-or { background: var(--or); color: #1A1406 !important; }
.btn-or:hover { background: #B57F1F; }
.btn-vert { background: var(--vert); color: #fff !important; }
.btn-vert:hover { background: var(--vert-3); }
.btn-ligne { border: 1.5px solid currentColor; background: none; color: var(--vert); font-weight: 600; }
.btn-ligne-blanc { border: 1.5px solid #fff; color: #fff !important; font-weight: 600; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--bord); position: relative; z-index: 10; }
.topbar { background: var(--vert); color: #E8EFEA; font-size: 13px; }
.topbar-in { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.langs { display: flex; gap: 10px; }
.langs a { color: #C9D6CE; font-weight: 400; }
.langs a[aria-current] { color: #fff; font-weight: 700; }
.mainbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--vert); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-nom { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.brand-sous { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px; border-radius: 8px; color: var(--texte-2); }
.nav a:not(.btn):hover { background: var(--fond); color: var(--vert); }
.nav a.actif { color: var(--vert); background: var(--vert-pale); font-weight: 700; }
.nav .btn { margin-left: 10px; font-size: 15px; padding: 12px 20px; }
.menu-btn { display: none; font: inherit; font-weight: 600; background: var(--vert); color: #fff; border: 0; border-radius: 8px; padding: 12px 18px; min-height: 44px; cursor: pointer; }

/* Bandeaux */
.hero { background: var(--vert); color: #fff; }
.hero-in { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-txt { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.hero-lead { font-size: 19px; line-height: 1.6; color: #D5E3DA; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.surtitre { color: var(--or-texte); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.hero .surtitre, .sombre .surtitre, .diapo .surtitre { color: #E2B866; }
.hero-carte { flex: 1 1 380px; min-width: 0; background: var(--vert-2); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.hero-carte-titre { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chiffres div { background: var(--vert); border-radius: 10px; padding: 14px; }
.chiffres b { display: block; font-size: 18px; }
.chiffres span { font-size: 14px; color: #C9D6CE; }
.petit { font-size: 12px; color: #A9BDB2; }
.pagehead { background: var(--vert); color: #fff; }
.pagehead .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.pagehead h1 { color: #fff; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; }
.pagehead p { font-size: 18px; line-height: 1.6; color: #D5E3DA; max-width: 780px; }
.ariane { font-size: 14px; color: #C9D6CE; }
.ariane a { color: #C9D6CE; }

/* Recherche */
.recherche { display: flex; flex-wrap: wrap; gap: 10px; background: #fff; padding: 8px; border-radius: 12px; max-width: 700px; }
.recherche input { flex: 1 1 240px; min-width: 0; border: 0; font: inherit; font-size: 16px; padding: 12px 14px; outline: none; color: var(--texte); }
.recherche button { background: var(--vert); color: #fff; border: 0; padding: 12px 22px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }

/* Sections */
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.section-s { padding-top: 56px; padding-bottom: 56px; }
.fond { background: var(--fond); }
.sombre { background: var(--vert); color: #fff; }
.sombre h2 { color: #fff; }
.entete-section { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.entete-section h2, .titre-section { font-size: clamp(28px, 3.4vw, 40px); }
.entete-ligne { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; }
.lien-fort { font-weight: 600; }
.grille { display: grid; gap: 20px; }
.g-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.lead { color: var(--gris); line-height: 1.6; font-size: 17px; }

/* Cartes */
.carte { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.carte-titre { font-weight: 700; font-size: 18px; color: var(--vert); }
.carte p, .carte .desc { color: var(--gris); line-height: 1.6; }
.carte-fac { text-decoration: none; color: var(--texte); background: var(--fond); border: 0; border-top: 4px solid var(--or); }
.carte-fac:hover { background: var(--vert-pale); }
.carte-fac h3, .carte h3 { font-size: 23px; font-weight: 600; }
.carte-or { border: 0; border-top: 4px solid var(--or); }
.carte-blanche { background: #fff; border: 0; }
.etiquette { font-size: 13px; font-weight: 700; color: var(--or-texte); letter-spacing: .1em; text-transform: uppercase; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.badge-vert { background: var(--vert-pale); color: var(--vert); }
.badge-or { background: var(--or-pale); color: #6B4A0E; }
.badge-plein { background: var(--or); color: #1A1406; }

.cours-carte { text-decoration: none; color: var(--texte); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.cours-carte:hover { border-color: var(--vert-3); }
.cours-visuel { height: 120px; background: var(--vert-2); display: flex; align-items: flex-end; padding: 16px; }
.cours-corps { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.cours-titre { font-weight: 700; font-size: 17px; line-height: 1.35; }
.meta { color: var(--gris); font-size: 14px; }

.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.etape { display: flex; flex-direction: column; gap: 10px; }
.puce { width: 44px; height: 44px; border-radius: 50%; background: var(--vert); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.etape b { font-size: 18px; }
.etape span { color: var(--gris); line-height: 1.6; }

.heritage { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.heritage-txt { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.heritage-txt p { font-size: 18px; line-height: 1.7; color: #D5E3DA; }
.citation { flex: 1 1 360px; min-width: 0; margin: 0; background: var(--vert-2); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.citation p { font-family: var(--serif); font-size: 26px; line-height: 1.35; }
.citation footer { color: #C9D6CE; }
.lien-or { color: #E2B866 !important; font-weight: 700; text-decoration: none; }

.deux-col { display: flex; flex-wrap: wrap; gap: 40px; }
.col-large { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.col-etroite { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.actu { display: flex; flex-direction: column; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--bord); }
.actu-cat { font-size: 13px; color: var(--or-texte); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.actu b { font-size: 18px; }
.actu p { color: var(--gris); line-height: 1.6; }
.evt { display: flex; gap: 16px; align-items: flex-start; background: var(--fond); border-radius: 12px; padding: 16px; }
.evt-date { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 8px 12px; font-weight: 700; color: var(--vert); font-size: 14px; white-space: nowrap; }
.evt div { display: flex; flex-direction: column; gap: 4px; }
.evt span { color: var(--gris); font-size: 14px; }

.appel { background: var(--or); border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.appel-titre { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: #1A1406; }
.appel p { color: #2E2209; font-size: 17px; }
.bandeau-action { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }

/* Onglets et filtres */
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 20px; border-radius: 999px; cursor: pointer; min-height: 44px; background: #fff; color: var(--vert); border: 1.5px solid var(--bord-2); }
.pastille[aria-pressed="true"], .pastille[aria-selected="true"] { background: var(--vert); color: #fff; border-color: var(--vert); }
.infos-niveau { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; background: var(--fond); border-radius: var(--rayon); padding: 24px; }
.infos-niveau span { display: block; font-size: 13px; color: var(--gris); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.infos-niveau b { font-size: 18px; color: var(--vert); }
.prog { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
[hidden] { display: none !important; }

.catalogue { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.filtres { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.filtre-groupe { display: flex; flex-direction: column; gap: 8px; }
.filtre-groupe legend, .filtre-titre { font-weight: 700; font-size: 15px; margin-bottom: 4px; padding: 0; }
.filtre-groupe { border: 0; margin: 0; padding: 0; }
.filtre { font: inherit; font-size: 15px; text-align: left; padding: 10px 14px; border-radius: 8px; cursor: pointer; min-height: 44px; border: 0; background: var(--fond); color: var(--texte); }
.filtre[aria-pressed="true"] { background: var(--vert); color: #fff; font-weight: 700; }
.resultats { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.grille-cours { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cours-item { font: inherit; text-align: left; cursor: pointer; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--texte); }
.cours-item:hover { border-color: var(--vert-3); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.fiche { border: 2px solid var(--vert); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--fond); }
.fiche-haut { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.fiche h2 { font-size: 30px; }
.fermer { background: #fff; border: 1px solid var(--bord-2); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; font-size: 20px; }
.fiche-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.fiche-infos span { display: block; font-size: 13px; color: var(--gris); }

/* Personnes */
.photo { width: 72px; height: 72px; border-radius: 50%; background: var(--vert-pale); border: 2px solid var(--or); display: flex; align-items: center; justify-content: center; color: var(--vert); font-weight: 700; font-size: 13px; overflow: hidden; }
.figure-nom { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--vert); }
.figure-dates { font-size: 14px; font-weight: 600; color: var(--or-texte); }

/* Tableaux */
.tableau-box { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--rayon); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau-box table { min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; }
thead tr { background: var(--fond); }
thead.sombre-tete tr { background: var(--vert); color: #fff; }
tbody tr { border-top: 1px solid var(--bord); }
tbody tr:nth-child(even) { background: #F7F9F7; }
.num { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--or); color: #1A1406; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-right: 12px; }
th[scope="row"] { color: var(--vert); font-weight: 700; white-space: nowrap; }

/* Formulaires */
.formulaire { background: #fff; border-radius: 16px; padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-weight: 600; }
.champ input, .champ select, .champ textarea { font: inherit; padding: 12px; border: 1px solid var(--bord-2); border-radius: 8px; background: #fff; color: var(--texte); width: 100%; }
.champ textarea { resize: vertical; }
.plein { grid-column: 1 / -1; }
.case { display: flex; gap: 10px; align-items: flex-start; }
.case input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.aide { font-size: 14px; color: var(--gris); }
.hp { position: absolute; left: -9999px; }
.message-ok { background: #fff; border: 2px solid var(--vert-3); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.message-erreur { background: #FDECEA; border: 2px solid #B3261E; color: #5C1410; border-radius: 16px; padding: 20px; }
.ligne-cal { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #D6DED8; padding-bottom: 10px; }
.ligne-cal:last-of-type { border-bottom: 0; }
.contact-box { background: var(--vert); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-box h2 { color: #fff; font-size: 28px; }
.contact-box .champ input, .contact-box .champ textarea { border: 0; }

/* FAQ */
.faq details { border: 1px solid var(--bord); border-radius: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 18px 20px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--texte-2); line-height: 1.6; }
.partenaire { background: #fff; border: 1px dashed var(--bord-2); border-radius: 12px; height: 88px; display: flex; align-items: center; justify-content: center; color: var(--gris); font-size: 14px; text-align: center; padding: 8px; }
.valeur p { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--vert); }

/* Espace étudiant */
.espace { background: var(--fond); }
.espace-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.espace-nav { flex: 1 1 230px; min-width: 0; background: var(--vert); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.profil { display: flex; gap: 12px; align-items: center; padding: 6px 6px 16px; border-bottom: 1px solid #2A5446; margin-bottom: 8px; color: #fff; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--or); color: #1A1406; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.profil small { display: block; color: #C9D6CE; font-size: 13px; }
.onglet { font: inherit; font-size: 15px; text-align: left; padding: 12px 14px; border-radius: 10px; cursor: pointer; border: 0; min-height: 44px; background: transparent; color: #E8EFEA; text-decoration: none; }
.onglet[aria-selected="true"] { background: #fff; color: var(--vert); font-weight: 700; }
.espace-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panneau { background: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.barre { height: 8px; background: var(--bord); border-radius: 999px; overflow: hidden; }
.barre div { height: 100%; background: var(--or); border-radius: 999px; }
.ligne-seance { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--bord); padding-top: 12px; }
.ligne-seance > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.demo { background: var(--or-pale); color: #5A3D0A; border-radius: 12px; padding: 14px 18px; font-size: 15px; }

/* Pied de page */
.site-footer { background: #0B2E24; color: #D5E0D9; font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.footer-grid .col { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #D5E0D9; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid p { line-height: 1.6; }
.footer-nom { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; }
.footer-titre { color: #E2B866; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.fort { color: #fff !important; font-weight: 600; }
.footer-bas { border-top: 1px solid #2A5446; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: #A9BDB2; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #A9BDB2; }

/* Texte long (mentions légales) */
.texte-long { max-width: 820px; display: flex; flex-direction: column; gap: 16px; line-height: 1.7; }
.texte-long h2 { font-size: 28px; margin-top: 16px; }

/* Mobile */
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav.ouvert { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .hero-in { padding-top: 56px; padding-bottom: 64px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .appel { padding: 32px; }
}
@media print {
  .site-header, .site-footer, .appel { display: none; }
}

/* =====================================================================
   Espaces connectés (administration, comptabilité, professeurs, étudiants)
   ===================================================================== */
.app-top { background: var(--vert); color: #fff; }
.app-top-in { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.brand-clair, .brand-clair .brand-nom { color: #fff; }
.app-top-liens { display: flex; gap: 18px; flex-wrap: wrap; }
.app-top-liens a { color: #fff; font-weight: 500; text-decoration: none; font-size: 15px; }
.app-top-liens a:hover { text-decoration: underline; }
.app-bas { background: var(--fond); color: var(--gris); font-size: 13px; padding: 20px 0 32px; }
.app .espace { min-height: calc(100vh - 140px); }
.onglet[aria-current="page"] { background: #fff; color: var(--vert); font-weight: 700; }
a.onglet:hover { background: rgba(255,255,255,.1); }
.espace-main h1 { font-size: clamp(26px, 3vw, 32px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: #fff; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--texte); }
.stat b { font-size: 28px; color: var(--vert); font-family: var(--serif); }
.stat span { font-size: 14px; color: var(--gris); }
.stat.alerte { border-left: 0; box-shadow: inset 0 0 0 2px var(--or); }
.t-simple { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-simple th, .t-simple td { padding: 10px 12px; }
.boite-table { overflow-x: auto; border: 1px solid var(--bord); border-radius: 12px; background: #fff; }
.boite-table table { min-width: 720px; }
.statut { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.s-ok { background: #DDF0E4; color: #135C33; }
.s-attente { background: var(--or-pale); color: #6B4A0E; }
.s-non { background: #FBE3E1; color: #8C1D18; }
.s-neutre { background: #E8ECEA; color: #3A433E; }
.btn-p { font-size: 14px; padding: 9px 14px; border-radius: 8px; min-height: 40px; }
.btn-rouge { background: #B3261E; color: #fff !important; }
.btn-gris { background: #E8ECEA; color: var(--texte) !important; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline { display: inline; }
.panneau .formulaire { padding: 0; border-radius: 0; }
.barre-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.barre-outils .champ { min-width: 160px; flex: 1 1 160px; }
.code-acces { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fond); border: 1px dashed var(--bord-2); border-radius: 8px; padding: 2px 8px; font-size: 15px; user-select: all; }
.note-grande { font-family: var(--serif); font-size: 28px; color: var(--vert); font-weight: 700; }
details.depli summary { cursor: pointer; font-weight: 600; color: var(--vert-3); }
details.depli[open] summary { margin-bottom: 12px; }
.vide { color: var(--gris); padding: 18px; background: #fff; border-radius: 12px; border: 1px dashed var(--bord-2); }
.photo-prof { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--or); background: var(--vert-pale); }
.liste-puces { margin: 0; padding-left: 20px; line-height: 1.7; }
.carte-auth { max-width: 460px; margin: 48px auto; background: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 0 var(--bord); }
.recu { max-width: 760px; margin: 32px auto; background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.recu-tete { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--vert); padding-bottom: 16px; }
.recu dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 16px; margin: 0; }
.recu dt { color: var(--gris); }
.recu dd { margin: 0; font-weight: 600; }
.tampon { align-self: flex-start; border: 3px solid #135C33; color: #135C33; font-weight: 800; letter-spacing: .1em; padding: 8px 16px; border-radius: 8px; transform: rotate(-4deg); }
@media (max-width: 600px) { .recu dl { grid-template-columns: 1fr; } .recu { padding: 24px; } }
@media print {
  .app-top, .app-bas, .espace-nav, .no-print { display: none !important; }
  body { background: #fff; }
  .recu { border: 0; margin: 0; }
}

/* Bandeau d'accueil des espaces (logo) */
.bienvenue { position: relative; overflow: hidden; background: #fff; border-radius: 16px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; border-top: 4px solid var(--or); }
.bienvenue::after { content: ""; position: absolute; right: -40px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%); background: url("../img/embleme-vert.png") center / contain no-repeat; opacity: .06; pointer-events: none; }
.bienvenue img { flex: none; }
.bienvenue-txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.bienvenue-action { position: relative; z-index: 1; }

/* Diaporama des facultés (accueil) */
.diapo { position: relative; background: var(--vert-2); color: #fff; }
.diapo-piste { position: relative; min-height: 460px; }
.diapo-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; overflow: hidden; display: flex; align-items: center; }
.diapo-slide.active { opacity: 1; visibility: visible; position: relative; min-height: 460px; }
.diapo-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo-slide:has(.diapo-fond)::after { content: ""; position: absolute; inset: 0; background: rgba(8, 36, 28, .72); }
.diapo-motif { position: absolute; inset: 0; background: var(--vert-2); }
.diapo-motif.t1 { background: var(--vert); }
.diapo-motif.t2 { background: #12443A; }
.diapo-motif::after { content: ""; position: absolute; right: 4%; top: 50%; width: 380px; height: 380px; transform: translateY(-50%); background: url("../img/embleme-blanc.png") center / contain no-repeat; opacity: .09; }
.diapo-contenu { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; max-width: 1240px; width: 100%; }
.diapo-contenu h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); max-width: 820px; }
.diapo-texte { font-size: 19px; line-height: 1.6; color: #E1EBE5; max-width: 760px; }
.diapo-meta { color: #C9D6CE; font-size: 15px; max-width: 760px; }
.diapo-meta b { color: #fff; }
.diapo-commandes { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 24px; flex-wrap: wrap; }
.diapo-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: transparent; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.diapo-btn:hover { background: rgba(255,255,255,.12); }
.diapo-pause { font-size: 13px; }
.diapo-onglets { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; justify-content: center; }
.diapo-onglet { font: inherit; font-size: 13px; font-weight: 600; color: #DDE7E1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 12px; cursor: pointer; min-height: 36px; }
.diapo-onglet[aria-selected="true"] { background: var(--or); color: #1A1406; border-color: var(--or); }
@media (prefers-reduced-motion: reduce) { .diapo-slide { transition: none; } }
@media (max-width: 700px) { .diapo-piste, .diapo-slide.active { min-height: 520px; } .diapo-onglets { display: none; } }

/* Mot du Recteur */
.mot-recteur { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 36px; }
.mot-txt { flex: 1 1 480px; display: flex; flex-direction: column; gap: 14px; }

/* Discussions */
.pastille-nb { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--or); color: #1A1406; font-size: 12px; font-weight: 700; text-align: center; }
.avis-suivi { background: var(--or-pale); color: #5A3D0A; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.fil { display: flex; flex-direction: column; gap: 12px; }
.bulle { max-width: 78%; align-self: flex-start; background: #fff; border: 1px solid var(--bord); border-radius: 14px 14px 14px 4px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.bulle.moi { align-self: flex-end; background: var(--vert-pale); border-color: #CFE0D6; border-radius: 14px 14px 4px 14px; }
.bulle.admin { align-self: center; max-width: 90%; background: var(--or-pale); border: 1.5px solid var(--or); border-radius: 12px; }
.bulle.masque { opacity: .7; border-style: dashed; }
.bulle-tete { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--gris); flex-wrap: wrap; }
.bulle-tete b { color: var(--texte); }
.bulle p { white-space: pre-line; line-height: 1.6; }
.ligne-disc { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--bord); text-decoration: none; color: var(--texte); }
.ligne-disc:hover { background: var(--fond); }
.ligne-disc.non-lue b.sujet { color: var(--vert); }
.ligne-disc .infos { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ligne-disc .extrait { color: var(--gris); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .bulle { max-width: 95%; } }
