* { box-sizing: border-box; margin: 0; }
html { font-size: 18px; }
:root {
  /* Theme sombre fidele a egliselacite.ca : noir charbon + cyan vif */
  --noir: #0c0f15; --noir-2: #090b10; --carte: #12161d; --carte-2: #1b212b;
  --bordure: #232b36;
  --cyan: #22b8d1; --cyan-vif: #3fc9e0; --sarcelle: #226d7a;
  --texte: #f5f7f7; --gris: #a9b4b7;
}
body {
  font-family: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--noir); color: var(--texte);
  display: flex; min-height: 100vh;
}
/* Tout lien de contenu = cyan (jamais le bleu/mauve navigateur) */
main a, .espace a { color: var(--cyan-vif); text-decoration: none; }
main a:hover, .espace a:hover { text-decoration: underline; }
main a.btn, .espace a.btn, .groupes-nav a { text-decoration: none; }
main a.btn:hover, .espace a.btn:hover, .groupes-nav a:hover { text-decoration: none; }
main a.btn, .espace a.btn { color: #fff; }
main a.btn.btn-secondaire, .espace a.btn.btn-secondaire { color: var(--texte); }
aside {
  width: 220px; background: var(--noir-2); color: var(--texte);
  display: flex; flex-direction: column; padding: 1.2rem .8rem; flex-shrink: 0;
  border-right: 1px solid var(--bordure);
}
aside h1 {
  font-size: 1rem; padding: 0 .6rem .9rem; color: #fff;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
aside nav { display: flex; flex-direction: column; gap: 2px; }
aside nav a, aside .pied a {
  color: #aeb6c2; text-decoration: none; padding: .55rem .7rem;
  border-radius: 10px; font-size: .95rem; font-weight: 500;
  display: flex; align-items: center; gap: .65rem;
}
aside nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
aside nav a:hover { color: #fff; background: var(--carte); }
aside nav a.actif { color: #fff; background: rgba(34, 184, 209, .16); }
aside nav a.actif svg { color: var(--cyan-vif); opacity: 1; }
.logo-pill { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem 1.1rem; }
.logo-pill .pastille-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--cyan);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-pill .pastille-logo img { width: 26px; height: 26px; }
.logo-pill b { color: #fff; font-size: .98rem; font-weight: 700; white-space: nowrap; }
.profil-pied { display: flex; align-items: center; gap: .6rem; padding: .8rem .5rem 0;
  border-top: 1px solid var(--bordure); margin-top: .8rem; }
.profil-pied .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--carte-2);
  color: var(--cyan-vif); font-weight: 700; display: flex; align-items: center;
  justify-content: center; text-transform: uppercase; flex-shrink: 0; }
.profil-pied .qui { flex: 1; min-width: 0; }
.profil-pied .qui a { color: #fff; font-weight: 600; text-decoration: none; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.profil-pied .qui small { color: var(--gris); font-size: .8rem; }
.profil-pied .sortie { color: var(--gris); text-decoration: none; font-size: 1.1rem; }
.profil-pied .sortie:hover { color: #fff; }
aside .pied { margin-top: auto; display: flex; flex-direction: column; font-size: .9rem; }
aside .pied a { text-transform: none; font-weight: 400; color: var(--gris); }
main { flex: 1; padding: 2.1rem 2.6rem; }
h2 { font-size: 1.5rem; margin-bottom: 1.4rem; color: #fff; font-weight: 700; }
.mt { margin-top: 2rem; }

.cartes { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.carte {
  background: var(--carte); border-radius: 20px; padding: 2rem 2.2rem;
  border: 1px solid var(--bordure);
  min-width: 230px; flex: 1;
}
.carte h3 { font-size: .9rem; color: var(--cyan); margin-bottom: .6rem;
            text-transform: uppercase; letter-spacing: .05em; }
.chiffres div { padding: .65rem 0; color: var(--gris); }
.chiffres span { font-size: 1.3rem; font-weight: 700; color: #fff; margin-right: .35rem; }
.chiffres a { color: inherit; text-decoration: none; }
.chiffres a:hover, .chiffres a:hover span { color: var(--cyan-vif); }
.carte-lien { cursor: pointer; }
.carte-lien:hover { border-color: var(--cyan); }
.carte-alerte { border-color: #5a4a1e; }
.alerte-ligne { color: #e0a422; }
.alerte-ligne span { color: #e0a422; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.1rem; }
.texte-doux { color: var(--gris); }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: 1fr; } }

.barre { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

/* ----- organigramme boites + fleches ----- */
.organigramme {
  background: var(--noir-2); border: 1px solid var(--bordure);
  border-radius: 12px; overflow: auto; padding: .5rem;
  height: 72vh; min-height: 320px; overscroll-behavior: contain;
}
.organigramme .vide { padding: 2rem; color: var(--gris); }
/* Page organigramme : la page ne scrolle jamais, seul le cadre noir scrolle */
main:has(.org-pleine) { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
main:has(.org-pleine) .haut { flex-shrink: 0; }
.org-pleine { flex: 1; min-height: 0; height: auto; width: 100%; }
.organigramme:fullscreen { background: var(--noir); border: 0; border-radius: 0; padding: 1rem; }
.ob-lien { fill: none; stroke: var(--cyan); stroke-width: 1.6; }
.ob-fleche { fill: var(--cyan); }
.ob-boite {
  height: 100%; border-radius: 10px; padding: .5rem .65rem;
  font-size: .93rem; line-height: 1.55; overflow: hidden;
  border: 1px solid var(--bordure);
  background: var(--carte); color: var(--texte);
}
.ob-boite a { color: inherit; text-decoration: none; }
.ob-boite a:hover { color: var(--cyan-vif); text-decoration: underline; }
.ob-titre { font-weight: 700; font-size: .96rem; color: #fff; }
.ob-detail { color: var(--gris); font-size: .93rem; margin: .25rem 0 .55rem; }
.ob-etiquette {
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
  color: var(--cyan); font-weight: 700;
}
.ob-set { background: var(--cyan); border-color: var(--cyan); text-align: center;
          display: flex; align-items: center; justify-content: center; }
.ob-set .ob-titre { font-size: .95rem; color: #0d0d0d; text-transform: uppercase; letter-spacing: .05em; }
.ob-responsable { background: var(--carte-2); border-color: var(--cyan); text-align: center; }
.ob-groupe { background: var(--carte); }
.ob-groupe .ob-titre { color: var(--cyan-vif); }
.ob-ligne { margin-top: .45rem; }
.ob-ligne b { color: #fff; font-weight: 600; }
.ob-part-titre { border-top: 1px solid var(--bordure); margin-top: .6rem; padding-top: .5rem; }
.ob-participants { color: var(--gris); }
.ob-participants div { padding: .12rem 0; }

table { width: 100%; border-collapse: collapse; background: var(--carte);
        border-radius: 20px; overflow: hidden; border: 1px solid var(--bordure); }
th, td { text-align: left; padding: 1.15rem 1.3rem; font-size: .96rem; }
th { background: var(--carte-2); color: var(--gris);
     font-weight: 600; font-size: .93rem; }
tr:not(:last-child) td { border-bottom: 1px solid var(--bordure); }
tr.cliquable:hover td { background: var(--carte-2); cursor: pointer; }
td a { color: var(--cyan-vif); text-decoration: none; }
td a:hover { text-decoration: underline; }

form.fiche { background: var(--carte); border-radius: 20px; padding: 1.9rem 2.1rem;
             border: 1px solid var(--bordure); max-width: 1040px; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 2rem; }
.grille label { min-width: 0; }
.grille input, .grille select, .grille textarea { width: 100%; max-width: 100%; }
label { display: flex; flex-direction: column; font-size: .78rem; color: var(--gris);
  gap: .35rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
label input, label select, label textarea { text-transform: none; letter-spacing: 0; font-weight: 400; }
input, select, textarea {
  font: inherit; padding: .7rem 1rem; border: 1px solid var(--bordure);
  border-radius: 12px; background: #171d26; color: var(--texte);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
textarea { min-height: 110px; grid-column: 1 / -1; }
label.pleine, fieldset.pleine { grid-column: 1 / -1; }
button, .btn {
  font: inherit; font-weight: 600;
  font-size: .95rem; background: var(--cyan); color: #fff; border: 0;
  padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover { background: var(--cyan-vif); }
.btn-secondaire { background: var(--carte-2); color: var(--texte); border: 1px solid var(--bordure); }
.btn-danger { background: #3a1d1c; color: #ff9d94; border: 1px solid #593230; }
.btn-danger:hover { background: #4b2422; }
.actions { margin-top: 1.7rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

.badge { display: inline-block; padding: .1rem .5rem; border-radius: 99px;
         font-size: .93rem; background: var(--carte-2); color: var(--texte);
         border: 1px solid var(--bordure); }
.mois { color: var(--cyan); font-size: 1.05rem; text-transform: uppercase;
        letter-spacing: .05em; margin: 3rem 0 1.4rem; text-align: center; }
.sous-section { color: #fff; font-size: 1.05rem; margin: 2.2rem 0 1.2rem; }
fieldset.visibilite { border: 1px solid var(--bordure); border-radius: 12px;
                      padding: 1.1rem 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.7rem; }
fieldset.visibilite legend { color: var(--gris); font-size: .93rem; padding: 0 .3rem; }
label.case { flex-direction: row; align-items: center; gap: .5rem; color: var(--texte);
  text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; }
label.case input { accent-color: var(--cyan); }
.badge.vis-comite { background: #3a2a4a; color: #cdaaf5; }
.badge.vis-responsable { background: #2a2a4a; color: #a9b8f5; }
.badge.vis-animateur { background: var(--cyan); color: #0d0d0d; border: 0; }
.badge.vis-co_animateur { background: var(--sarcelle); color: #fff; border: 0; }
.badge.vis-participant { background: var(--carte-2); color: var(--texte); }
.badge.animateur { background: var(--cyan); color: #0d0d0d; border: 0; font-weight: 700; }
.badge.co_animateur { background: var(--sarcelle); color: #fff; border: 0; }
.badge.propose { background: #3a1f1f; color: #f1a1a1; }
.badge.actif, .badge.valide { background: #16321f; color: #7fd8a1; }
.badge.inactif { background: #35301c; color: #e0ce8a; }
.badge.termine { background: #2a2a2a; color: #9c9c9c; }

.photo-fiche { width: 110px; height: 110px; object-fit: cover; border-radius: 12px;
               border: 1px solid var(--bordure); }
.erreur { background: rgba(255, 120, 110, .12); border: 1px solid rgba(255, 120, 110, .3); color: #ff9d94; padding: .6rem .9rem; border-radius: 12px; margin-bottom: .8rem; }
.succes { background: rgba(80, 220, 140, .1); border: 1px solid rgba(80, 220, 140, .3); color: #7fd8a1; padding: .6rem .9rem; border-radius: 12px; margin-bottom: .8rem; }

/* ----- carte interactive ----- */
main:has(.carte-cadre) { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
main:has(.carte-cadre) .haut { flex-shrink: 0; flex-wrap: wrap; gap: .6rem; }
.carte-cadre { flex: 1; min-height: 0; width: 100%; border-radius: 12px;
               border: 1px solid var(--bordure); }
.filtres-carte { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.pastille-carte { display: inline-block; width: 12px; height: 12px; border-radius: 50%;
                  margin-right: .25rem; vertical-align: middle; }
.pastille-carte.pastille-carree { border-radius: 3px; }
.leaflet-container { background: #0d0d0d; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--carte); color: var(--texte); }
.leaflet-popup-content a { color: var(--cyan-vif); text-decoration: none; }

/* ----- espace personnel (magic link) ----- */
.page-espace { display: block; }
.espace { width: 100%; max-width: none; margin: 0 auto; padding: 1.8rem 2.2rem 3.5rem; }

.espace-tete { padding: 1rem 0 1.4rem; }
.espace-tete h1 { color: #fff; font-size: 1.6rem; }
.roles-tete { margin-top: .4rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.onglets { display: flex; gap: .6rem; margin: 1.4rem 0 2rem; border-bottom: 1px solid var(--bordure); }
.onglets a { padding: .6rem 1.4rem; font-weight: 700; color: var(--gris); text-decoration: none; border-bottom: 3px solid transparent; font-size: .9rem; }
.onglets a:hover { color: var(--cyan-vif); text-decoration: none; }
.onglets a.actif { color: var(--cyan); border-bottom-color: var(--cyan); }
.agenda { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2.2rem; }

.agenda-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--carte); border: 1px solid var(--bordure);
  border-left: 4px solid var(--cyan); border-radius: 8px; padding: 1.8rem 2rem;
}
.agenda-date { min-width: 84px; text-align: center; flex-shrink: 0; }
.agenda-etiquette { text-transform: uppercase; letter-spacing: .06em;
  font-size: .74rem; color: var(--cyan); font-weight: 700; margin-bottom: .3rem; }
.agenda-jour { font-size: 1.9rem; font-weight: 700; color: var(--cyan-vif); line-height: 1; }
.agenda-heure { color: var(--gris); margin-top: .35rem; white-space: nowrap; font-size: .9rem; }
.agenda-corps { flex: 1; }
.agenda-corps a { color: var(--cyan-vif); text-decoration: none; }
.agenda-corps a:hover { text-decoration: underline; }
.agenda-corps a:visited { color: var(--cyan-vif); }
.agenda-titre { font-weight: 700; font-size: 1.12rem; color: #fff; margin-bottom: .8rem; }
.agenda-titre .badge { vertical-align: middle; }
.groupes-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.groupes-nav a {
  display: flex; flex-direction: column; gap: .1rem;
  background: var(--carte); border: 1px solid var(--bordure); border-radius: 12px;
  padding: .45rem .8rem; color: var(--texte); text-decoration: none;
  font-weight: 600; font-size: .9rem;
}
.groupes-nav a small { color: var(--gris); font-weight: 400; font-size: .9rem; }
.groupes-nav a:hover { border-color: var(--cyan); }
.groupes-nav a.actif { background: var(--cyan); border-color: var(--cyan); color: #0d0d0d; }
.groupes-nav a.actif small { color: #10333a; }
.badge.role-tete { background: var(--cyan); color: #0d0d0d; border: 0; font-weight: 700; }
.badge.responsable { background: #7c3aed; color: #fff; border: 0; }
.badge.accueillant { background: #4a3413; color: #f0b95e; border: 0; }
.ajout-cal { font-size: .9rem; color: var(--gris); margin-top: .25rem; }
.ajout-cal a { color: var(--cyan-vif); text-decoration: none; }
.ajout-cal a:hover { text-decoration: underline; }
.entete-groupe { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.entete-groupe h2 { margin: 0; }
.nav-espace { height: 1.6rem; }
.bandeau-mdp { background: rgba(34, 184, 209, .1); border: 1px solid rgba(34, 184, 209, .35); border-radius: 12px;
  padding: .55rem .8rem; margin-bottom: .9rem; }
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 2.6rem; }
.cal-entete { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--gris); padding: .2rem .45rem; }
.cal-case { background: var(--carte); border: 1px solid var(--bordure); border-radius: 12px; min-height: 100px; padding: .45rem .5rem; }
.cal-case.hors-mois { opacity: .32; }
.cal-case.cal-auj { border-color: var(--cyan); }
.cal-num { font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.cal-auj .cal-num { color: var(--cyan-vif); }
main a.cal-ev, .espace a.cal-ev { display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; background: #10333a; color: var(--cyan-vif); border-radius: 8px;
  padding: .22rem .45rem; font-size: .82rem; margin-bottom: .3rem; text-decoration: none;
  overflow: hidden; line-height: 1.35; }
.cal-case.cal-we { background: #191d1e; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  margin: 1.2rem 0 1.6rem; flex-wrap: wrap; }
main a.cal-ev:hover, .espace a.cal-ev:hover { background: #14434d; text-decoration: none; }
.th-triable { cursor: pointer; user-select: none; }
.th-triable.tri-asc::after { content: " ▲"; font-size: .7em; }
.th-triable.tri-desc::after { content: " ▼"; font-size: .7em; }
.pastille { display: inline-block; min-width: 1.55em; padding: 0 .4em; border-radius: 999px;
  background: #d33; color: #fff; font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.6em; }
.espace section { margin-top: 3rem; }
.espace section > h2 { margin-bottom: 1.2rem; }
.espace section > .texte-doux { margin-bottom: 1.8rem; }
.agenda-corps p { margin: .8rem 0; line-height: 1.7; }
.espace h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.carte a { color: var(--cyan-vif); text-decoration: none; }
.carte a:hover { text-decoration: underline; }
.carte a:visited { color: var(--cyan-vif); }
.carte.semaine { margin-top: 1.4rem; border-top: 3px solid var(--cyan); }
.carte.semaine h3 { margin-bottom: 1.4rem; }
.carte.semaine p { margin: 1.3rem 0; line-height: 1.8; }
.carte.semaine h3 { color: #fff; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.presence-liste { display: flex; flex-direction: column; gap: .55rem; margin: 1rem 0 1.2rem; max-width: 480px; }
.presence-ligne { display: flex; align-items: center; gap: .85rem; background: var(--carte-2);
  border: 1px solid var(--bordure); border-radius: 12px; padding: .6rem .85rem; cursor: pointer; }
.presence-ligne input[type=checkbox] { width: 1.3rem; height: 1.3rem; accent-color: var(--cyan); flex-shrink: 0; }
.presence-nom { flex: 1; }
.presence-taux { color: var(--gris); font-size: .9rem; white-space: nowrap; }
.presence-grille { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin: 1.8rem 0 2rem; }
.reponse { background: var(--noir-2); border-left: 3px solid var(--cyan);
           padding: .5rem .7rem; border-radius: 8px; margin-top: .4rem; }
.question-ouverte { border-top-color: #e0a422; }
.espace-pied { margin-top: 3rem; text-align: center; }
code { background: var(--noir-2); padding: .2rem .45rem; border-radius: 8px;
       font-size: .9rem; word-break: break-all; }
details.carte.semaine summary { cursor: pointer; color: var(--cyan-vif); font-weight: 600; }

.page-login { align-items: center; justify-content: center; background: var(--noir-2); }
.boite-login { background: var(--carte); border: 1px solid var(--bordure);
               padding: 2rem; border-radius: 8px; width: 340px;
               display: flex; flex-direction: column; gap: .9rem; }
.boite-login h1 { color: #fff; font-size: 1.3rem; text-align: center;
                  text-transform: uppercase; letter-spacing: .06em; }
.boite-login .sous-titre { text-align: center; color: var(--gris); margin-top: -.6rem; }

@media (max-width: 760px) {
  body { flex-direction: column; }
  aside { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap;
          border-right: 0; border-bottom: 1px solid var(--bordure); }
  aside nav { flex-direction: row; flex-wrap: wrap; }
  aside .pied { margin: 0 0 0 auto; flex-direction: row; gap: .6rem; }
  main { padding: 1rem; }
  .grille { grid-template-columns: 1fr; }
  form.fiche { padding: 1.1rem 1rem; }
}

.logo-espace { height: 44px; display: block; margin-bottom: .7rem; }
.logo-admin { width: 150px; display: block; margin: 0 0 .5rem; }

/* ----- page de connexion (mobile-first) ----- */
.connexion-page { max-width: 420px; margin: 0 auto; padding: 2.2rem 1.2rem;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.connexion-tete { text-align: center; margin-bottom: 1.6rem; }
.logo-connexion { height: 64px; margin: 0 auto .9rem; display: block; }
.connexion-tete h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.connexion-carte { max-width: none; padding: 1.4rem 1.3rem; }
.connexion-carte label { margin-bottom: .9rem; }
.connexion-bouton { width: 100%; padding: .85rem 1rem; font-size: 1.02rem; margin-top: .3rem; }
.connexion-lien { text-align: center; margin-top: 1.1rem; }
.connexion-recup { display: none; margin-top: 1rem; }
.connexion-recup.ouvert { display: block; }

/* ----- espaces /moi en mobile ----- */
@media (max-width: 640px) {
  .espace { padding: 1.1rem .9rem; }
  .espace h1 { font-size: 1.35rem; }
  .espace h2 { font-size: 1.15rem; }
  .logo-espace { height: 34px; }
  /* onglets : barre defilante pleine largeur */
  .onglets { display: flex; gap: 0; margin: 0 -.9rem 1.2rem; padding: 0;
    border-bottom: 1px solid var(--bordure); }
  .onglets a { flex: 1 1 0; text-align: center; font-size: .88rem; min-height: 44px;
    padding: .8rem .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* pastille toujours visible : badge flottant au coin de l'onglet (le texte peut etre tronque) */
  .onglets a { position: relative; }
  .onglets .pastille { position: absolute; top: .15rem; right: .15rem;
    font-size: .68rem; min-width: 1.5em; line-height: 1.5em; padding: 0 .3em; }
  /* entete de groupe : titre et bouton empiles */
  .entete-groupe { flex-direction: column; align-items: stretch; gap: .7rem; }
  .entete-groupe .btn { text-align: center; }
  /* tableaux larges : defilement horizontal au lieu d ecraser */
  .espace table { display: block; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch; }
  .espace th, .espace td { padding: .7rem .6rem; font-size: .9rem; }
  /* formulaires sur une colonne */
  .espace .grille { grid-template-columns: 1fr; }
  /* tuiles agenda compactes */
  .agenda-item { flex-direction: column; gap: .6rem; }
  .agenda-date { display: flex; align-items: baseline; gap: .5rem; }
  .agenda-date .agenda-jour { font-size: 1.3rem; }
  /* presences en 2 colonnes max */
  .presence-grille { grid-template-columns: 1fr 1fr; }
  /* boutons d actions empiles pleine largeur */
  .espace .actions { flex-wrap: wrap; }
  .espace .actions button, .espace .actions .btn { flex: 1 1 45%; text-align: center; }
  .groupes-nav { overflow-x: auto; white-space: nowrap; display: flex; flex-wrap: nowrap;
    margin: 0 -.9rem; padding: 0 .9rem .3rem; }
  .groupes-nav a { flex-shrink: 0; }
}

@media (max-width: 640px) {

}

.espace table input[type=checkbox] { width: 1.25rem; height: 1.25rem; accent-color: var(--cyan); cursor: pointer; }

.espace form.fiche { max-width: none; }

/* Parcours en cours sur les pages publiques d inscription : l animateur doit
   voir NOIR SUR BLANC pour quel parcours il inscrit son groupe. */
.badge-set { display: inline-block; margin-top: .5rem; padding: .3rem .95rem;
  border-radius: 999px; background: rgba(34, 184, 209, .16); color: var(--cyan-vif);
  font-weight: 700; letter-spacing: .03em; font-size: 1rem; }
.rappel-set { margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: 12px;
  background: rgba(34, 184, 209, .1); border: 1px solid rgba(34, 184, 209, .3);
  color: var(--texte); }

/* Bloc replie derriere un bouton (ex. "Ajouter un participant" dans l espace) :
   la page de l animateur sert surtout a CONSULTER son groupe, l ajout est occasionnel. */
.repliable { margin-bottom: 1.6rem; }
.repliable > summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  list-style: none; padding: .6rem 1.3rem; border-radius: 999px; font-weight: 700;
  background: var(--carte-2); color: var(--texte); border: 1px solid var(--bordure);
  font-size: .95rem; }
.repliable > summary::-webkit-details-marker { display: none; }
.repliable > summary:hover { border-color: var(--cyan); color: var(--cyan-vif); }
.repliable[open] > summary { margin-bottom: 1rem; background: rgba(34,184,209,.16);
  color: var(--cyan-vif); border-color: rgba(34,184,209,.4); }

/* Fenetre d aide des espaces : un mailto seul ne fonctionne pas sur un ordi
   sans logiciel de courriel configure (constate 2026-09-18) - on offre aussi
   la copie de l adresse et Gmail. */
.dlg-aide { background: var(--carte); color: var(--texte); border: 1px solid var(--bordure);
  border-radius: 20px; padding: 1.8rem 2rem; max-width: 460px; width: calc(100% - 2rem); }
.dlg-aide::backdrop { background: rgba(0,0,0,.6); }
.adresse-aide { font-size: 1.15rem; font-weight: 700; color: var(--cyan-vif);
  background: #171d26; border: 1px solid var(--bordure); border-radius: 12px;
  padding: .8rem 1rem; margin: 1rem 0; word-break: break-all; user-select: all; }

/* Le lien de composition Gmail web ne fonctionne pas sur telephone (constate
   2026-09-18) : la-bas, mailto ouvre l app de courriel correctement. */
@media (max-width: 760px) { .sur-ordi { display: none !important; } }

.adresse-aide a { color: var(--cyan-vif); text-decoration: none; }
.adresse-aide a:hover { text-decoration: underline; }
