/* =========================================================
   Plateforme Atelier Engagement Diaspora — Vision Sénégal 2050
   Identité institutionnelle : vert profond, or, blanc
   ========================================================= */
:root {
  /* Vert institutionnel OASYS */
  --vert: #0d5c44;
  --vert-fonce: #093f2f;
  --vert-vif: #2fa14f;
  --vert-clair: #e8f2ee;
  /* Bordeaux ministériel (MIAAE) */
  --bordeaux: #910000;
  --bordeaux-fonce: #6b0000;
  --bordeaux-clair: #f7e9e9;
  --or: #d9a441;
  --or-fonce: #b8862e;
  --rouge: #b3403a;
  --encre: #1d2a26;
  --gris: #5b6b66;
  --gris-clair: #eef1f0;
  --fond: #f7f9f8;
  --blanc: #ffffff;
  --rayon: 12px;
  --ombre: 0 2px 12px rgba(17, 45, 37, 0.08);
  --ombre-forte: 0 10px 34px rgba(17, 45, 37, 0.16);
  /* Polices système : aucun téléchargement, rendu instantané même en 2G */
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titre: Cambria, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
}
img { max-width: 100%; }
a { color: var(--vert); }
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.25; color: var(--encre); }

.conteneur { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- En-tête ---------- */
.entete {
  background: var(--blanc);
  border-bottom: 3px solid var(--vert);
  border-top: 4px solid var(--bordeaux);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--ombre);
}
.entete-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.marque-logos { display: flex; align-items: center; gap: 8px; }
.marque-logos img { height: 44px; width: auto; }
.marque-logos img.logo-absent { display: none; }
.marque-texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque-texte strong { font-size: 1.05rem; color: var(--vert-fonce); }
.marque-texte small { color: var(--gris); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.nav-principale { display: flex; align-items: center; gap: 22px; }
.nav-principale a { text-decoration: none; color: var(--encre); font-weight: 600; font-size: .95rem; }
.nav-principale a:hover { color: var(--vert); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s ease;
  font-family: var(--police);
}
.btn-accent { background: var(--vert); color: #fff !important; }
.btn-accent:hover { background: var(--vert-fonce); }
.btn-or { background: var(--bordeaux); color: #fff !important; }
.btn-or:hover { background: var(--bordeaux-fonce); }
.btn-contour { border-color: var(--vert); color: var(--vert); background: transparent; }
.btn-contour:hover { background: var(--vert-clair); }
.btn-blanc { background: #fff; color: var(--vert-fonce) !important; }
.btn-danger { background: transparent; color: var(--rouge); border-color: transparent; padding: 6px 10px; }
.btn-danger:hover { text-decoration: underline; }
.btn-grand { padding: 14px 34px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Messages ---------- */
.zone-messages { margin-top: 16px; }
.message { padding: 12px 18px; border-radius: var(--rayon); margin-bottom: 10px; font-weight: 600; }
.message-success { background: var(--vert-clair); color: var(--vert-fonce); border: 1px solid #bfe0d5; }
.message-error { background: #fbeae9; color: var(--rouge); border: 1px solid #efc9c6; }
.message-info { background: #eef4fb; color: #22537e; border: 1px solid #cfdff0; }

/* ---------- Héros (page publique) ---------- */
.heros {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(47, 161, 79, .30), transparent 60%),
    linear-gradient(160deg, var(--vert-fonce) 0%, var(--vert) 65%, #12724f 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.heros .surtitre {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}
.heros h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: 0 0 14px; max-width: 21ch; }
.heros .sous-titre { font-size: clamp(1rem, 1.9vw, 1.2rem); color: #ddece6; max-width: 62ch; margin-bottom: 30px; }
.heros-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.heros-meta .badge {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
}
.heros-meta .badge small { display: block; font-weight: 600; font-size: .74rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Compte à rebours */
.compteur { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.compteur .bloc {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  min-width: 84px;
  padding: 12px 10px;
  text-align: center;
}
.compteur .bloc b { display: block; font-size: 1.9rem; line-height: 1; }
.compteur .bloc span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }

/* ---------- Sections publiques ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--blanc); }
.section h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 0 0 8px; }
.section .intro-section { color: var(--gris); max-width: 74ch; margin-bottom: 34px; }
.filet { width: 64px; height: 4px; border-radius: 2px; margin: 14px 0 22px;
  background: linear-gradient(90deg, var(--vert) 0 45%, var(--bordeaux) 55% 100%); }

.grille { display: grid; gap: 20px; }
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.carte {
  background: var(--blanc);
  border: 1px solid #e3e9e7;
  border-radius: var(--rayon);
  padding: 26px;
  box-shadow: var(--ombre);
}
.carte h3 { margin-top: 0; font-size: 1.08rem; }
.carte-groupe { border-top: 4px solid var(--vert); transition: transform .15s ease, box-shadow .15s ease; }
.carte-groupe:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.carte-groupe .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--vert-clair); color: var(--vert-fonce);
  font-weight: 900; font-size: 1.1rem; margin-bottom: 12px;
}
.carte-groupe p { color: var(--gris); font-size: .95rem; margin-bottom: 0; }

/* Agenda */
.agenda-jour { margin-bottom: 34px; }
.agenda-jour h3 { color: var(--vert-fonce); border-bottom: 2px solid var(--or); display: inline-block; padding-bottom: 6px; }
.agenda-item { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px dashed #dbe3e0; }
.agenda-item:last-child { border-bottom: none; }
.agenda-item .heure { flex: 0 0 130px; font-weight: 700; color: var(--vert); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Bandeau appel à contribution */
.bandeau-cta {
  background: linear-gradient(140deg, var(--vert-fonce), var(--vert));
  color: #fff;
  border-radius: 18px;
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.bandeau-cta h2 { color: #fff; margin: 0 0 6px; }
.bandeau-cta p { margin: 0; color: #d9eae3; max-width: 60ch; }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: #cfd8d5; padding: 30px 0; margin-top: 60px; font-size: .92rem; }
.pied-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.pied strong { color: #fff; }
.pied-droite { text-align: right; }

/* =========================================================
   Espace partenaire
   ========================================================= */
.page-titre { background: var(--vert-fonce); color: #fff; padding: 34px 0; }
.page-titre h1 { color: #fff; margin: 0; font-size: 1.6rem; }
.page-titre .fil { color: #a8cabd; font-size: .9rem; margin-bottom: 6px; }
.page-titre .fil a { color: #d5e8df; }

.encart {
  background: var(--vert-clair);
  border: 1px solid #bfe0d5;
  border-left: 5px solid var(--vert);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
}
.encart.encart-or { background: #fdf6e7; border-color: #ecd9ac; border-left-color: var(--or); }
.encart.encart-rouge { background: #fbeae9; border-color: #efc9c6; border-left-color: var(--rouge); }
.encart h3 { margin: 0 0 6px; font-family: var(--police); font-size: 1rem; }
.encart p { margin: 0; font-size: .95rem; }

/* Cartes de statut (tableau de bord partenaire) */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin: 30px 0; }
.tuile { background: #fff; border: 1px solid #e3e9e7; border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.tuile h3 { margin: 0 0 8px; font-size: 1.05rem; }
.tuile p { color: var(--gris); font-size: .93rem; flex: 1; }
.tuile .pied-tuile { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.etiquette { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.etiquette-brouillon { background: #fdf6e7; color: var(--or-fonce); border: 1px solid #ecd9ac; }
.etiquette-soumise { background: var(--vert-clair); color: var(--vert-fonce); border: 1px solid #bfe0d5; }
.etiquette-vide { background: var(--gris-clair); color: var(--gris); border: 1px solid #dde3e1; }

/* Barre de progression */
.progression { background: var(--gris-clair); border-radius: 999px; height: 10px; overflow: hidden; }
.progression > i { display: block; height: 100%; background: linear-gradient(90deg, var(--vert), var(--vert-vif)); border-radius: 999px; transition: width .4s ease; }

/* ---------- Formulaires ---------- */
.formulaire-page { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; padding: 40px 0; }
.som-lat { position: sticky; top: 92px; background: #fff; border: 1px solid #e3e9e7; border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); }
.som-lat nav { display: flex; flex-direction: column; gap: 2px; }
.som-lat a { text-decoration: none; color: var(--gris); font-size: .88rem; padding: 7px 10px; border-radius: 8px; font-weight: 600; }
.som-lat a:hover { background: var(--vert-clair); color: var(--vert-fonce); }
.som-lat .etat-sauvegarde { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gris-clair); font-size: .82rem; color: var(--gris); }
.som-lat .etat-sauvegarde b.ok { color: var(--vert); }
.som-lat .etat-sauvegarde b.attente { color: var(--or-fonce); }

.section-form { background: #fff; border: 1px solid #e3e9e7; border-radius: var(--rayon); padding: 30px; margin-bottom: 26px; box-shadow: var(--ombre); scroll-margin-top: 96px; }
.section-form > h2 {
  font-family: var(--police);
  font-size: 1.12rem;
  margin: 0 0 4px;
  color: var(--vert-fonce);
  display: flex; align-items: center; gap: 10px;
}
.section-form > h2 .pastille {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--vert); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800;
}
.section-form .aide { color: var(--gris); font-size: .92rem; margin: 0 0 18px; }

.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; }
.champ .facultatif { color: var(--gris); font-weight: 400; font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cfd9d5;
  border-radius: 9px;
  font-family: var(--police);
  font-size: .98rem;
  color: var(--encre);
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, .14);
}
textarea { min-height: 96px; resize: vertical; }

.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 22px; }

/* Cases à cocher en grille */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.case { display: flex; align-items: flex-start; gap: 9px; font-size: .95rem; padding: 7px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.case:hover { background: var(--vert-clair); }
.case input { margin-top: 4px; accent-color: var(--vert); width: 17px; height: 17px; flex: 0 0 auto; }
.case input:checked + span { font-weight: 700; color: var(--vert-fonce); }

/* Choix du groupe (radio en cartes) */
.choix-groupes { display: grid; gap: 10px; }
.choix-groupe { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #dbe3e0; border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: border-color .12s, background .12s; }
.choix-groupe:hover { border-color: var(--vert); }
.choix-groupe input { margin-top: 4px; accent-color: var(--vert); width: 18px; height: 18px; flex: 0 0 auto; }
.choix-groupe.actif { border-color: var(--vert); background: var(--vert-clair); }
.choix-groupe b { display: block; }
.choix-groupe small { color: var(--gris); }

/* Tableaux Oui / Non */
.tableau-ouinon { width: 100%; border-collapse: collapse; }
.tableau-ouinon th, .tableau-ouinon td { padding: 9px 12px; border-bottom: 1px solid var(--gris-clair); text-align: left; font-size: .95rem; }
.tableau-ouinon th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
.tableau-ouinon td.centre, .tableau-ouinon th.centre { text-align: center; width: 76px; }
.tableau-ouinon input[type="radio"] { accent-color: var(--vert); width: 17px; height: 17px; }

/* Section documents (lignes dynamiques) */
.ligne-document { display: grid; grid-template-columns: 1fr 90px 150px 210px 40px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #dbe3e0; }
.ligne-document select { padding: 9px 10px; }
.zone-fichier { position: relative; }
.zone-fichier input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.zone-fichier .btn-fichier {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.5px dashed var(--vert);
  color: var(--vert-fonce);
  background: var(--vert-clair);
  border-radius: 9px;
  padding: 9px 10px;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zone-fichier.avec-fichier .btn-fichier { border-style: solid; background: #fff; }
.btn-suppr { background: none; border: none; color: var(--rouge); font-size: 1.2rem; cursor: pointer; padding: 4px; line-height: 1; }
.btn-suppr:hover { transform: scale(1.15); }

/* Zone de dépôt communication */
.depot {
  border: 2px dashed #b9cdc5;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: #fbfdfc;
  transition: border-color .15s, background .15s;
}
.depot.survol { border-color: var(--vert); background: var(--vert-clair); }
.depot p { margin: 6px 0; color: var(--gris); font-size: .93rem; }

/* Barre d'actions collante */
.barre-actions {
  position: sticky; bottom: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(4px);
  border-top: 1px solid #e3e9e7;
  padding: 14px 0;
  margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.indicateur-sauvegarde { font-size: .88rem; color: var(--gris); display: flex; align-items: center; gap: 8px; }
.indicateur-sauvegarde .point { width: 9px; height: 9px; border-radius: 50%; background: var(--vert); }
.indicateur-sauvegarde.attente .point { background: var(--or); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* =========================================================
   Espace gestion (administrateurs)
   ========================================================= */
.gestion-layout { display: grid; grid-template-columns: 235px 1fr; min-height: calc(100vh - 0px); }
.gestion-lat { background: var(--encre); color: #c4d2cd; padding: 24px 0; }
.gestion-lat .titre-lat { padding: 0 22px 18px; color: #fff; font-weight: 800; font-size: 1.02rem; border-bottom: 1px solid #33423d; margin-bottom: 14px; }
.gestion-lat .titre-lat small { display: block; color: #8fa39c; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.gestion-lat nav a { display: block; color: #c4d2cd; text-decoration: none; padding: 10px 22px; font-weight: 600; font-size: .93rem; border-left: 3px solid transparent; }
.gestion-lat nav a:hover, .gestion-lat nav a.actif { background: rgba(255, 255, 255, .06); color: #fff; border-left-color: var(--or); }
.gestion-lat .lat-bas { padding: 18px 22px 0; margin-top: 18px; border-top: 1px solid #33423d; font-size: .85rem; }
.gestion-lat .lat-bas a { color: #d9a441; }
.gestion-contenu { padding: 34px 38px; }
.gestion-contenu h1 { margin-top: 0; font-size: 1.5rem; }

.stat-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 24px 0 34px; }
.stat-carte { background: #fff; border: 1px solid #e3e9e7; border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); }
.stat-carte b { display: block; font-size: 2rem; color: var(--vert-fonce); line-height: 1.1; }
.stat-carte span { color: var(--gris); font-size: .87rem; font-weight: 600; }

.tableau { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.tableau th { background: var(--vert-fonce); color: #fff; text-align: left; padding: 12px 14px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.tableau td { padding: 12px 14px; border-bottom: 1px solid var(--gris-clair); font-size: .94rem; vertical-align: top; }
.tableau tr:hover td { background: #fbfdfc; }
.tableau a { font-weight: 700; }

.barre-filtres { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; align-items: center; }
.barre-filtres select, .barre-filtres input { width: auto; min-width: 180px; }

.barre-groupe { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.barre-groupe .lib { flex: 0 0 320px; font-size: .9rem; }
.barre-groupe .barre { flex: 1; background: var(--gris-clair); height: 14px; border-radius: 7px; overflow: hidden; }
.barre-groupe .barre i { display: block; height: 100%; background: var(--vert); border-radius: 7px; }
.barre-groupe .val { flex: 0 0 44px; font-weight: 800; color: var(--vert-fonce); text-align: right; }

/* Fiches détail (gestion) */
.fiche-bloc { background: #fff; border: 1px solid #e3e9e7; border-radius: var(--rayon); padding: 24px 28px; margin-bottom: 20px; box-shadow: var(--ombre); }
.fiche-bloc h2 { font-family: var(--police); font-size: 1.05rem; color: var(--vert-fonce); margin: 0 0 14px; border-bottom: 2px solid var(--vert-clair); padding-bottom: 8px; }
.fiche-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.fiche-champ small { display: block; color: var(--gris); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.fiche-champ div { font-weight: 600; }
.fiche-texte { white-space: pre-wrap; background: var(--fond); border-radius: 8px; padding: 12px 14px; font-size: .95rem; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces span { background: var(--vert-clair); color: var(--vert-fonce); border-radius: 999px; padding: 4px 13px; font-size: .86rem; font-weight: 700; }

/* Page connexion / accès */
.page-acces { display: flex; align-items: center; justify-content: center; min-height: 72vh; padding: 50px 20px; }
.carte-acces { background: #fff; border-radius: 16px; box-shadow: var(--ombre-forte); max-width: 470px; width: 100%; padding: 40px; border-top: 5px solid var(--vert); }
.carte-acces h1 { font-size: 1.4rem; margin: 0 0 8px; }
.carte-acces .aide { color: var(--gris); font-size: .95rem; margin-bottom: 24px; }

.impression-seulement { display: none; }

@media (max-width: 900px) {
  .formulaire-page { grid-template-columns: 1fr; }
  .som-lat { position: static; order: -1; }
  .gestion-layout { grid-template-columns: 1fr; }
  .gestion-lat { padding: 10px 0; }
  .gestion-lat nav { display: flex; flex-wrap: wrap; }
  .gestion-lat nav a { border-left: none; }
  .ligne-document { grid-template-columns: 1fr 1fr; }
  .nav-principale a:not(.btn) { display: none; }
  .pied-droite { text-align: left; }
}

@media print {
  .entete, .pied, .barre-actions, .som-lat, .gestion-lat, .btn, .zone-messages { display: none !important; }
  body { background: #fff; }
  .section-form, .fiche-bloc { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .gestion-layout { grid-template-columns: 1fr; }
  .impression-seulement { display: block; }
}

/* =========================================================
   Cloche de notifications (espace gestion)
   ========================================================= */
.barre-gestion-haut { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-bottom: 18px; }
.cloche { position: relative; }
.cloche > button {
  background: #fff; border: 1px solid #e3e9e7; border-radius: 12px;
  padding: 9px 14px; cursor: pointer; font-size: 1.15rem; box-shadow: var(--ombre);
}
.cloche .badge-notif {
  position: absolute; top: -7px; right: -7px;
  background: var(--bordeaux); color: #fff;
  min-width: 22px; height: 22px; border-radius: 999px;
  display: none; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 800; padding: 0 5px;
}
.cloche .badge-notif.visible { display: inline-flex; }
.panneau-notifs {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 360px; max-width: 88vw;
  background: #fff; border: 1px solid #e3e9e7; border-radius: 14px;
  box-shadow: var(--ombre-forte); z-index: 80; display: none; overflow: hidden;
}
.panneau-notifs.ouvert { display: block; }
.panneau-notifs .pn-tete { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--gris-clair); font-weight: 800; }
.panneau-notifs .pn-tete a { font-size: .82rem; }
.panneau-notifs .pn-item { display: block; padding: 11px 16px; border-bottom: 1px solid var(--gris-clair); text-decoration: none; color: var(--encre); }
.panneau-notifs .pn-item:hover { background: var(--vert-clair); }
.panneau-notifs .pn-item b { display: block; font-size: .9rem; }
.panneau-notifs .pn-item span { font-size: .82rem; color: var(--gris); }
.panneau-notifs .pn-vide { padding: 22px 16px; text-align: center; color: var(--gris); font-size: .9rem; }
.notif-ligne { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #e3e9e7; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.notif-ligne.non-lue { border-left: 4px solid var(--bordeaux); }
.notif-ligne .quand { margin-left: auto; color: var(--gris); font-size: .82rem; white-space: nowrap; }
.pastille-type { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--vert-clair); color: var(--vert-fonce); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }

/* =========================================================
   Pointage des présences
   ========================================================= */
.onglets-jour { display: flex; gap: 10px; margin: 18px 0; }
.onglets-jour a {
  padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 700;
  border: 1.5px solid #cfd9d5; color: var(--gris);
  background: #fff;
}
.onglets-jour a.actif { background: var(--vert); border-color: var(--vert); color: #fff; }
.compteur-presences { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.compteur-presences .gros {
  background: var(--vert-clair); border: 1px solid #bfe0d5; border-radius: 12px;
  padding: 10px 20px; font-weight: 800; color: var(--vert-fonce); font-size: 1.15rem;
}
.recherche-presence { width: 100%; max-width: 460px; font-size: 1.05rem; padding: 13px 16px; }
.ligne-presence {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #e3e9e7; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 8px;
}
.ligne-presence .infos { flex: 1; min-width: 0; }
.ligne-presence .infos b { display: block; }
.ligne-presence .infos small { color: var(--gris); }
.btn-pointer {
  flex: 0 0 auto; min-width: 132px;
  border-radius: 999px; border: 2px solid var(--vert);
  background: #fff; color: var(--vert); font-weight: 800; font-size: .95rem;
  padding: 11px 18px; cursor: pointer; transition: all .12s ease;
}
.btn-pointer.present { background: var(--vert); color: #fff; }
.btn-pointer:active { transform: scale(.97); }
.ligne-presence.est-present { background: var(--vert-clair); border-color: #bfe0d5; }

/* =========================================================
   Enquête de satisfaction (mobile d'abord)
   ========================================================= */
.page-satisfaction { max-width: 560px; margin: 0 auto; padding: 26px 18px 60px; }
.etoiles { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; }
.etoiles input { display: none; }
.etoiles label { font-size: 2.1rem; color: #d5ddd9; cursor: pointer; transition: transform .08s ease; line-height: 1; }
.etoiles label:hover { transform: scale(1.12); }
.etoiles input:checked ~ label, .etoiles label:hover, .etoiles label:hover ~ label { color: var(--or); }
.critere { background: #fff; border: 1px solid #e3e9e7; border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--ombre); }
.critere > span { display: block; font-weight: 700; margin-bottom: 8px; }

/* =========================================================
   Badge participant (QR)
   ========================================================= */
.badge-carte {
  max-width: 430px; margin: 34px auto; background: #fff;
  border-radius: 18px; box-shadow: var(--ombre-forte); overflow: hidden;
  border-top: 6px solid var(--vert); text-align: center;
}
.badge-carte .bc-tete { background: var(--vert-fonce); color: #fff; padding: 18px 24px; }
.badge-carte .bc-tete strong { display: block; font-size: 1.02rem; }
.badge-carte .bc-tete small { color: #bcd8cc; }
.badge-carte img.qr { width: 240px; height: 240px; margin: 22px auto 8px; display: block; }
.badge-carte .bc-nom { font-size: 1.25rem; font-weight: 800; color: var(--vert-fonce); }
.badge-carte .bc-institution { color: var(--gris); margin-bottom: 6px; }
.badge-carte .bc-groupe { display: inline-block; background: var(--bordeaux); color: #fff; border-radius: 999px; padding: 4px 16px; font-size: .85rem; font-weight: 700; margin: 8px 0 22px; }

/* =========================================================
   Mur live (grand écran)
   ========================================================= */
body.live-body { background: #071e17; color: #fff; overflow: hidden; }
.live-scene { height: 100vh; display: flex; flex-direction: column; padding: 3vh 4vw; }
.live-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3vh; }
.live-tete h1 { color: #fff; font-size: clamp(1.2rem, 2.4vw, 2rem); margin: 0; }
.live-tete .lt-sous { color: #7fbfa4; font-size: clamp(.8rem, 1.2vw, 1rem); }
.live-tete img { height: clamp(38px, 5vw, 64px); background: #fff; border-radius: 10px; padding: 5px 10px; }
.live-vues { flex: 1; position: relative; }
.live-vue { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.live-vue.active { opacity: 1; }
.live-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; height: 100%; align-content: center; }
.jauge {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px; padding: 3vh 2vw; text-align: center;
}
.jauge .valeur { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; color: var(--or); line-height: 1.1; }
.jauge .etoiles-aff { font-size: clamp(1.1rem, 2vw, 1.7rem); letter-spacing: .18em; color: var(--or); }
.jauge .lib { color: #cfe6db; font-size: clamp(.85rem, 1.4vw, 1.15rem); margin-top: 1vh; }
.live-feedbacks { display: flex; flex-direction: column; gap: 2vh; justify-content: center; height: 100%; }
.bulle-feedback {
  background: rgba(255, 255, 255, .07); border-left: 6px solid var(--vert-vif);
  border-radius: 14px; padding: 2.4vh 2.2vw;
  font-size: clamp(1rem, 2.1vw, 1.7rem); line-height: 1.45;
}
.bulle-feedback .auteur { display: block; margin-top: 1vh; color: #7fbfa4; font-size: clamp(.8rem, 1.3vw, 1.05rem); font-weight: 700; }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; align-content: center; height: 100%; }
.stat-live { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 4vh 2vw; text-align: center; }
.stat-live b { display: block; font-size: clamp(2.8rem, 7vw, 5.6rem); color: #fff; line-height: 1.05; }
.stat-live span { color: #cfe6db; font-size: clamp(.9rem, 1.5vw, 1.2rem); }
.stat-live.accent b { color: var(--or); }
.live-groupes { grid-column: 1 / -1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 3vh 2.4vw; }
.live-groupes .lg-ligne { display: flex; align-items: center; gap: 1.4vw; margin: 1.2vh 0; }
.live-groupes .lg-lib { flex: 0 0 34%; font-size: clamp(.8rem, 1.3vw, 1.05rem); color: #cfe6db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-groupes .lg-barre { flex: 1; height: clamp(10px, 1.6vh, 16px); background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.live-groupes .lg-barre i { display: block; height: 100%; background: linear-gradient(90deg, var(--vert-vif), var(--or)); border-radius: 999px; transition: width 1s ease; }
.live-groupes .lg-val { flex: 0 0 3ch; font-weight: 900; color: #fff; text-align: right; font-size: clamp(1rem, 1.8vw, 1.5rem); }
.live-pied { display: flex; justify-content: space-between; align-items: center; color: #7fbfa4; margin-top: 2.5vh; font-size: clamp(.8rem, 1.2vw, 1rem); }
.live-pied .points { display: flex; gap: 8px; }
.live-pied .points i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.live-pied .points i.actif { background: var(--or); }

/* Documents publics */
.doc-public { display: flex; align-items: center; gap: 18px; }
.doc-public .dp-icone {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px;
  background: var(--vert-clair); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.doc-public .dp-infos { flex: 1; min-width: 0; }
.doc-public .dp-infos h3 { margin: 0 0 3px; font-size: 1.02rem; }
.doc-public .dp-infos p { margin: 0 0 4px; color: var(--gris); font-size: .9rem; }
.doc-public .dp-infos small { color: var(--gris); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.doc-public .dp-bouton { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 560px) {
  .doc-public { flex-wrap: wrap; }
  .doc-public .dp-bouton { width: 100%; text-align: center; }
}

/* Pagination */
.pagination { display: flex; gap: 8px; margin: 22px 0; align-items: center; }
.pagination a, .pagination span.courante {
  padding: 7px 14px; border-radius: 8px; text-decoration: none; font-weight: 700;
  border: 1px solid #dbe3e0; background: #fff;
}
.pagination span.courante { background: var(--vert); color: #fff; border-color: var(--vert); }
