/*
Fichier : ensemble.css
Chemin  : D:\speedclicV2\www\assets\css\ensemble.css
Rôle    : LE DESSIN DE L'ÉCRAN ENSEMBLE (ensemble_rendu.php, ensemble_modales.php), calé
          sur les maquettes de Ramon du 24/09/2026 : colonne de gauche (salut, recherche,
          calendrier + « Un membre… », onglets des membres), centre (menu, activités,
          barres orange et violette, cartes photo, liste du jour), colonne de droite des
          affiches. Préfixe .ens- partout : aucun écran voisin ne peut en hériter.
          LES COULEURS SONT CELLES DE SPEEDCLIC (Ramon, 25/09/2026 : « il ne faut pas aller
          jusqu'à copier les couleurs d'OVS, on doit avoir notre look propre ») : le bleu
          #1c5fbe et le cyan #13a8d8 du site, le marine #1a2535 de la colonne, le rouge
          #c0392b des boutons d'action (« Je déménage », « Retour à la recherche »). Seule la
          DISPOSITION suit les maquettes, pas la charte du concurrent.
Créé    : 24/09/2026
*/

.ens-wrap {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr) 300px;
    gap: 0;
    min-height: 100vh;
    background: #fff;
    font: 14px/1.4 system-ui, "Segoe UI", Arial, sans-serif;
    color: #2c3641;
}
.ens-wrap .sc-right-ads { grid-column: 3; }

/* ═══════════ GAUCHE ═══════════ */
.ens-gauche { padding: 10px 12px; border-right: 4px solid #2f2f2f; display: flex; flex-direction: column; gap: 10px; }
.ens-salut { font-size: 14px; }
.ens-salut-l1 b { font-weight: 700; }
.ens-salut-l1 i { color: #5d6975; }
.ens-salut-l2 { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ens-statut-ok { color: #1d7a35; font-weight: 700; }
.ens-statut-non { color: #8a5a00; font-weight: 600; }
.ens-bt-certifier {
    border: 0; border-radius: 4px; padding: 3px 10px; background: #c0392b; color: #fff;
    font-weight: 600; cursor: pointer; font-size: 12px;
}
.ens-bt-certifier:hover { background: #a3231b; }

.ens-recherche {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    background: #eaf6fb; border: 1px solid #bcd9f0; border-radius: 6px;
    border-bottom: 3px solid #1a2535;
}
.ens-recherche-lib { font-weight: 700; white-space: nowrap; }
.ens-recherche-sel {
    flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
    font: 700 15px system-ui, "Segoe UI", Arial, sans-serif; color: #13496a; cursor: pointer;
}

.ens-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ens-cal, .ens-membre { border: 1px solid #cfd6dd; border-radius: 6px; padding: 6px; background: #fff; }
.ens-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 2px;
    background: linear-gradient(#eaf3fb, #bcd9f0); border-radius: 6px; padding: 4px 6px; }
.ens-cal-mois { flex: 1 1 auto; text-align: center; font-weight: 700; color: #13496a; font-size: 14px; }
.ens-cal-nav { border: 0; background: none; color: #13496a; cursor: pointer; font-size: 14px; padding: 0 3px; }
.ens-cal-cejour { display: block; margin: 4px auto; border: 0; background: none; color: #1c5fbe; cursor: pointer; font-size: 13px; }
.ens-cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.ens-cal-js { font-size: 11px; color: #13496a; background: #eef3f8; padding: 2px 0; }
.ens-cal-we { font-weight: 700; }
.ens-cal-j { border: 0; background: none; cursor: pointer; font-size: 13px; color: #1a2535; padding: 3px 0; border-radius: 3px; }
.ens-cal-j:hover { background: #eaf6fb; }
.ens-cal-plein { font-weight: 800; color: #c0392b; }
.ens-cal-auj { outline: 2px solid #13a8d8; outline-offset: -2px; }
.ens-cal-choisi { background: #1c5fbe; color: #fff; }
.ens-cal-pied { text-align: center; color: #6b7a8c; font-size: 13px; margin-top: 4px; }

.ens-membre { display: flex; flex-direction: column; align-items: center; }
.ens-membre-titre { width: 100%; text-align: center; font-weight: 700; color: #13496a;
    background: linear-gradient(#eaf3fb, #bcd9f0); border-radius: 6px; padding: 4px 0; margin-bottom: 6px; }
.ens-membre-img { width: 100%; max-width: 170px; aspect-ratio: 170 / 200; object-fit: cover; border-radius: 3px; }
.ens-membre-nom { color: #1c5fbe; font-weight: 700; margin-top: 3px; }
.ens-membre-vide { width: 100%; flex: 1 1 auto; min-height: 150px; background: #f4f7fa; border-radius: 3px; }

.ens-onglets { border: 1px solid #1c5fbe; border-radius: 6px; overflow: hidden; }
.ens-onglets-tete { display: grid; grid-template-columns: repeat(3, 1fr); }
.ens-onglet { border: 0; padding: 6px 0; background: #eaf3fb; color: #13496a; font-weight: 700; cursor: pointer; }
.ens-onglet.ens-on { background: #1c5fbe; color: #fff; }
.ens-onglets-corps { background: #f5f9fc; padding: 8px 10px; min-height: 160px; max-height: 420px; overflow: auto; }
.ens-membres-liste { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 12px; column-rule: 1px dashed #bcd9f0; }
.ens-membres-liste li { font-weight: 700; font-size: 13px; padding: 1px 0; break-inside: avoid; }
.ens-m-part { color: #1c5fbe; }
.ens-m-pro  { color: #1d7a35; }

/* ═══════════ CENTRE ═══════════ */
.ens-centre { padding: 8px 10px; min-width: 0; border-right: 1px solid #d0d0d0; }
.ens-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding: 4px 0 8px 0; font-size: 14px; }
.ens-menu-lien { border: 0; background: none; color: #1a2535; cursor: pointer; font: inherit; text-decoration: none; padding: 0 12px; position: relative; }
.ens-menu-lien + .ens-menu-lien::before { content: "|"; position: absolute; left: -2px; color: #bcd9f0; }
.ens-menu-lien:hover { text-decoration: underline; }
.ens-menu-lien.ens-on { font-weight: 700; color: #1c5fbe; }
/* Barre du haut (25/09/2026) : « Signaler un problème » en rouge après les liens, puis tout à
   droite « Gestion personnelle » et « Ajouter + ». */
.ens-menu .ens-bt-signaler { margin-left: 14px; }
.ens-gestion { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.ens-bt-bleu { display: inline-block; border: 0; border-radius: 5px; padding: 6px 14px; background: #1c5fbe; color: #fff; font-weight: 700; font-size: 13px; line-height: normal; text-decoration: none; cursor: pointer; font-family: system-ui, "Segoe UI", Arial, sans-serif; }
.ens-bt-bleu:hover { background: #13496a; color: #fff; }
.ens-bt-bleu.ens-on { background: #13496a; box-shadow: inset 0 0 0 2px #13a8d8; }
#ens-org-annuler { margin-right: auto; }
.ens-sg-motifs { border: 1px solid #cfd6dd; border-radius: 4px; padding: 6px 10px; margin: 0 0 10px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ens-sg-motifs legend { font-weight: 700; color: #13496a; padding: 0 4px; }
.ens-sg-motif { cursor: pointer; white-space: nowrap; }
.ens-organiser {
    margin-left: auto; border: 0; border-radius: 5px; padding: 6px 14px;
    background: #c0392b; color: #fff; font-weight: 700; cursor: pointer;
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
}
.ens-organiser:hover { background: #a3231b; }
.ens-organiser:disabled { opacity: .6; cursor: wait; }

/* LES ACTIVITÉS : le format des petites annonces (54 x 68). */
.ens-cats { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid #e3e3e3; margin-bottom: 8px; }
.ens-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px;
    border: 1px solid transparent; border-radius: 4px; text-decoration: none; color: #2c3641; min-width: 60px; min-height: 74px; }
.ens-cat img { width: 54px; height: 68px; }
.ens-cat span { font-size: 11px; line-height: 1.15; text-align: center; max-width: 64px; overflow-wrap: anywhere; font-weight: 600; }
.ens-cat.ens-cat-txt { min-height: 0; min-width: 0; padding: 4px 9px; border-color: #cfd6dd; background: #f5f9fc; }
.ens-cat.ens-cat-txt span { max-width: none; font-size: 12px; white-space: nowrap; }
.ens-cat:hover { background: #f2f6fb; border-color: #cfd6dd; }
.ens-cat.ens-on { background: #eaf1fb; border-color: #1c5fbe; }
/* UNE SEULE LIGNE (Ramon, 25/09/2026 : « réduis un peu les espaces pour que le dernier icone
   aille à sa place »). Les tuiles à image se serrent (1 px) et, si la place manque encore,
   rétrécissent ensemble en gardant leur proportion 54 x 68, au lieu de passer à la ligne. */
.ens-cats { flex-wrap: nowrap; gap: 1px; }
/* L'heure en deux listes (25/09/2026). */
.ens-heure { display: flex; align-items: center; gap: 4px; }
.ens-heure select { width: auto; min-width: 64px; }
.ens-heure b { font-weight: 700; color: #1a2535; }
.ens-cat:not(.ens-cat-txt) { padding: 1px; min-width: 0; min-height: 0; flex: 0 1 58px; }
.ens-cat:not(.ens-cat-txt) img { width: 100%; max-width: 54px; height: auto; aspect-ratio: 54 / 68; }
.ens-cats:has(.ens-cat-txt) { flex-wrap: wrap; }
@media (max-width: 700px) { .ens-cats { flex-wrap: wrap; } }
/* Le Retour en tête des rubriques, un peu détaché d'elles (25/09/2026). */
.ens-cat.ens-retour { margin-right: 8px; }

.ens-barre {
    margin: 10px 0 6px 0; padding: 5px 16px; font: 700 15px system-ui, "Segoe UI", Arial, sans-serif;
    color: #fff; border-radius: 4px; display: flex; align-items: center; gap: 10px;
}
.ens-barre-orange  { background: linear-gradient(90deg, #13a8d8, #1c5fbe); }
.ens-barre-violette { background: linear-gradient(90deg, #1a2535, #13496a); }
.ens-barre-lien { margin-left: auto; color: #bcd9f0; font-size: 12px; font-weight: 400; }

.ens-cartes { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 16px 8px 16px; }
.ens-carte { border: 1px solid #cfd6dd; border-radius: 6px; overflow: hidden; background: #fff; padding: 0; cursor: pointer; width: 210px; text-align: left;
    display: flex; flex-direction: column; font: inherit; color: inherit; }
.ens-carte:hover { box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.ens-carte-photo { width: 100%; aspect-ratio: 210 / 135; display: flex; align-items: center; justify-content: center; background: #eef3f8; overflow: hidden; }
.ens-carte-photo img { width: 100%; height: 100%; object-fit: cover; }
.ens-carte-photo .ens-carte-picto { width: 54px; height: 68px; object-fit: contain; }
.ens-carte-cat { font-weight: 700; color: #13496a; }
.ens-carte-legende { background: #f5f9fc; border-top: 3px solid #13a8d8; padding: 4px 7px; font-size: 12px; color: #1a2535; }
.ens-carte-l1 { display: flex; gap: 10px; font-weight: 600; }
.ens-carte-date { color: #c0392b; }
.ens-carte-l2 { display: block; color: #6b7a8c; }
.ens-carte-titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ens-cartes-grandes .ens-carte { width: calc((100% - 24px) / 3); min-width: 220px; }
.ens-cartes-grandes .ens-carte-photo { aspect-ratio: 300 / 350; }
.ens-cartes-grandes .ens-carte-legende { font-size: 14px; padding: 5px 9px; }
.ens-annulee { opacity: .55; }
.ens-tag-annulee { color: #b3261e; font-weight: 700; margin-left: 6px; }
.ens-vide { color: #6c7780; font-style: italic; margin: 6px 0; }
.ens-nodept { margin: 40px auto; max-width: 440px; text-align: center; padding: 24px; border: 1px dashed #bcd9f0; border-radius: 8px; color: #13496a; font-weight: 600; }

/* LA LISTE DU JOUR (2e maquette). */
.ens-liste-tete { text-align: center; margin: 6px 0 8px 0; }
.ens-liste-date { color: #c0392b; }
.ens-liste-aide { font-size: 12px; color: #4b4b4b; }
.ens-table { width: 100%; border-collapse: separate; border-spacing: 2px 0; font-size: 12px; }
.ens-table th { font-weight: 600; color: #13496a; text-align: left; padding: 4px 6px; white-space: nowrap; border-bottom: 2px solid #bcd9f0; }
.ens-table th.ens-th-violet { background: #1c5fbe; color: #fff; font-weight: 700; text-align: center; border-radius: 3px; border-bottom: 0; }
.ens-table td { padding: 3px 6px; border-bottom: 1px solid #e3e8ee; vertical-align: middle; }
.ens-table tbody tr.ens-tr:nth-child(odd) td { background: #f5f9fc; }
.ens-tr-jour td { background: #eaf3fb; color: #13496a; font-weight: 700; padding-left: 26px; }
.ens-td-heure { white-space: nowrap; color: #333; }
.ens-td-titre { min-width: 160px; }
.ens-picto { width: 18px; height: 22px; vertical-align: middle; margin-right: 4px; }
.ens-lien { border: 0; background: none; padding: 0; color: #1c5fbe; cursor: pointer; font: inherit; text-align: left; }
.ens-lien:hover { text-decoration: underline; }
.ens-td-inscrits { text-align: center; white-space: nowrap; }
.ens-td-orga { font-weight: 700; }
.ens-td-fin { white-space: nowrap; }
.ens-bt-carte { border: 1px solid #bcd9f0; border-radius: 10px; background: #eaf6fb; cursor: pointer; padding: 1px 8px; font-size: 12px; }

/* ═══════════ DROITE ═══════════ */
.ens-droite { padding: 8px; display: flex; flex-direction: column; gap: 10px; }
.ens-affiche { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.ens-affiche img { width: 100%; display: block; }
.ens-affiche-legende { display: block; background: #f5f9fc; border-top: 3px solid #13a8d8; padding: 4px 8px; font-size: 14px; color: #1a2535; }
/* Colonne droite : deux cases égales, l'une sous l'autre (25/09/2026). Chacune se remplit
   entièrement, comme la zone publicitaire du site (object-fit: cover). */
.ens-droite-duo { padding: 0; gap: 4px; height: 100vh; position: sticky; top: 0; }
.ens-droite-case { flex: 1 1 0; min-height: 0; display: flex; overflow: hidden; background: #f5f9fc; }
.ens-droite-case .sc-pub-carrousel { flex: 1; }
.ens-droite-decor { width: 100%; height: 100%; object-fit: cover; display: block; }
.ens-droite-case .ens-affiche { display: flex; flex-direction: column; width: 100%; }
.ens-droite-case .ens-affiche img { flex: 1; min-height: 0; object-fit: cover; }

/* ═══════════ FENÊTRES ═══════════ */
#ens-fiche .ens-fiche-boite { width: 94%; max-width: 1180px; }
/* Les icônes ont leur propre cadre : AUCUNE zone autour (Ramon, 25/09/2026 : « mettre une zone
   grisée autour de boutons n'a pas de sens »). Sans elle, la ligne tient dans une fenêtre
   ordinaire, et elle repasse à la ligne sur un téléphone. */
#ens-org .ens-org-boite { width: 94%; max-width: 780px; }
.ens-age-boite { width: 56%; }
.ens-fiche-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.ens-fiche-infos { border-collapse: collapse; margin-bottom: 8px; }
.ens-fiche-infos th { text-align: left; padding: 2px 12px 2px 0; color: #13496a; font-weight: 600; white-space: nowrap; vertical-align: top; }
.ens-fiche-infos td { padding: 2px 0; }
.ens-fiche-h { margin: 12px 0 4px 0; color: #13496a; font-size: 14px; border-bottom: 1px solid #bcd9f0; }
.ens-fiche-texte { font-size: 13px; }
/* LA FICHE EN TROIS COLONNES (25/09/2026) : participants | texte | carte, comme l'annuaire.
   La loupe (.ens-loupe, reprise de l'annuaire) agrandit la carte sur toute la
   largeur ; la fenêtre, elle, garde sa taille. */
/* Chaque colonne a SA largeur (Ramon, 25/09/2026 : « les colonnes 2 et 3 se chevauchent ») :
   le texte ne descend pas sous 420 px, la carte garde 440 px. */
.ens-fiche { display: grid; grid-template-columns: 190px minmax(360px, 520px) minmax(320px, 400px); gap: 20px; align-items: start; justify-content: center; }
.ens-fiche-centre { min-width: 0; overflow-wrap: anywhere; }
.ens-fiche-infos { width: auto; table-layout: auto; }
.ens-fiche-infos td { overflow-wrap: anywhere; }
.ens-fiche-reste { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #fff; background: #1c5fbe; border-radius: 10px; padding: 2px 10px; }
.ens-fiche-reste:empty { display: none; }
.ens-fiche-reste.ens-complet { background: #c0392b; }
.ens-fiche-gauche { border-right: 1px solid #bcd9f0; padding-right: 12px; }
.ens-fiche-gauche .ens-fiche-h:first-child, .ens-fiche-centre > .ens-fiche-h:first-child { margin-top: 0; }
.ens-fiche-gens { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ens-fiche-gens li { padding: 3px 0; border-bottom: 1px dotted #dbe3ec; }
.ens-fiche-gens .ens-fiche-orga { font-weight: 700; }
.ens-fiche-gens .ens-fiche-orga::before { content: '★ '; color: #c0392b; }
.ens-fiche-droite { position: sticky; top: 0; }
.ens-fiche-carte-cadre { position: relative; height: 320px; border: 1px solid #dbe3ec; border-radius: 6px; overflow: hidden; background: #eef2f6; }
.ens-fiche-carte { position: absolute; inset: 0; }
/* La loupe DESSINÉE de l'annuaire (annuaire.css n'est pas chargée ici). */
.ens-loupe { position: absolute; top: 6px; right: 6px; z-index: 500; width: 26px; height: 26px; padding: 0; border: 1px solid #cfd9e3; border-radius: 4px; background: rgba(255, 255, 255, .92); cursor: pointer; }
.ens-loupe:hover { background: #fff; border-color: #1c5fbe; }
.ens-loupe span { display: block; width: 11px; height: 11px; margin: 3px 0 0 4px; border: 2px solid #33404f; border-radius: 50%; position: relative; }
.ens-loupe span::after { content: ''; position: absolute; right: -5px; bottom: -4px; width: 7px; height: 2px; background: #33404f; transform: rotate(45deg); }
.ens-fiche-carte-vide { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: #8493a4; font-size: 13px; font-style: italic; background: repeating-linear-gradient(45deg, #f4f7fa 0 10px, #eef2f6 10px 20px); }
.ens-fiche-carte-plein { grid-template-columns: minmax(0, 1fr); }
.ens-fiche-carte-plein .ens-fiche-gauche, .ens-fiche-carte-plein .ens-fiche-centre { display: none; }
.ens-fiche-carte-plein .ens-fiche-carte-cadre { height: 480px; }
#ens-fiche .ep-modale-pied:has(.ens-msg:empty) { display: none; }
.ens-fiche-age { grid-column: 1 / -1; margin-top: 4px; padding: 12px 16px; border: 1px solid #bcd9f0; border-left: 4px solid #c0392b; border-radius: 6px; background: #eaf3fb; font-size: 13px; line-height: 1.5; color: #13496a; }
.ens-fiche-age p { margin: 0 0 10px 0; }
.ens-fiche-age .ens-organiser { margin-left: 0; }
.ens-fiche-carte-plein .ens-fiche-age { display: none; }
@media (max-width: 1100px) {
    .ens-fiche { grid-template-columns: minmax(0, 1fr); }
    .ens-fiche-gauche { border-right: 0; padding-right: 0; order: 3; }
    .ens-fiche-droite { position: static; }
    .ens-fiche-carte-cadre { height: 240px; }
}
.ens-fiche-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ens-fiche-actions .ens-organiser { margin-left: 0; }
/* Le bouton rouge dans la barre de la fiche (25/09/2026). */
#ens-fiche .ep-modale-tete { display: flex; align-items: center; gap: 10px; }
/* Titre puis places restantes, côte à côte ; la croix seule part à droite (Ramon, 25/09/2026). */
#ens-fiche .ep-modale-titre { flex: 0 1 auto; min-width: 0; }
#ens-fiche .ens-fiche-reste { margin-left: 18px; }
#ens-fiche .ens-fiche-tete-actions { margin-left: 10px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; }
#ens-fiche .ep-modale-x { margin-left: auto; }
#ens-fiche .ens-fiche-tete-actions .ens-organiser, #ens-fiche .ens-fiche-tete-actions .ep-btn { margin: 0; padding: 4px 12px; font-size: 13px; }
#ens-fiche .ens-fiche-tete-actions .ens-accomp { color: #fff; white-space: nowrap; }
#ens-fiche .ens-fiche-tete-actions .ens-ok { color: #9fe0b0; font-weight: 700; }
.ens-fiche-tete-actions { flex: 0 0 auto; }
.ens-fiche-tete-actions .ens-tete-bt { margin: 0; padding: 4px 12px; font-size: 13px; }
.ens-bt-danger, .ep-btn.ens-bt-danger { background: #b3261e; border-color: #b3261e; color: #fff; font-weight: 700; }
.ep-btn.ens-bt-danger:hover { background: #8e1d17; border-color: #8e1d17; color: #fff; }
.ens-invitation { width: 100%; padding: 4px; font-size: 12px; }
.ens-accomp { display: inline-flex; align-items: center; gap: 4px; }
.ens-gris { color: #6c7780; }
.ens-petit { font-size: 11px; }
.ens-ok { color: #1d7a35; font-weight: 600; }
.ens-msg { margin-right: auto; color: #b3261e; font-weight: 600; font-size: 13px; }

.ens-org-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ens-champ { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.ens-champ > span { font-weight: 600; font-size: 12px; color: #13496a; }
.ens-champ input[type="text"], .ens-champ input[type="date"], .ens-champ input[type="time"],
.ens-champ input[type="number"], .ens-champ select, .ens-champ textarea {
    padding: 5px 7px; border: 1px solid #b6c0cb; border-radius: 5px; font: inherit;
}
.ens-champ-large { grid-column: 1 / -1; }
.ens-champ-case { flex-direction: row; align-items: center; gap: 6px; }
.ens-org-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.ens-org-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
    position: relative; border: 0; padding: 0 0 5px 0; background: none; }
.ens-org-cat input { position: absolute; opacity: 0; pointer-events: none; }
.ens-org-cat img { width: 40px; height: 50px; }
.ens-org-cat span { font-size: 11px; text-align: center; font-weight: 600; }
.ens-org-cat:hover img { transform: translateY(-2px); }
.ens-org-cat img { transition: transform .12s; }
/* La sélection : un trait bleu sous l'icône, rien autour. */
.ens-org-cat:has(input:checked)::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: 3px; border-radius: 2px; background: #1c5fbe; }

.ens-sg-aide { margin: 0 0 8px 0; font-size: 13px; }
.ens-sg-texte { width: 100%; box-sizing: border-box; font: inherit; padding: 6px; }

.ens-note { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 9500;
    background: #1f2a36; color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.3); font-size: 14px; }
.ens-note[hidden] { display: none; }

/* Les écrans plus étroits : la droite passe dessous, puis la gauche. */
@media (max-width: 1400px) {
    .ens-wrap { grid-template-columns: 380px minmax(0, 1fr); }
    .ens-droite, .ens-wrap .sc-right-ads { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .ens-droite-duo { height: 260px; position: static; }
    .ens-droite-case { flex: 1 1 280px; }
    .ens-affiche { width: 280px; }
}
@media (max-width: 980px) {
    .ens-wrap { grid-template-columns: 1fr; }
    .ens-gauche { border-right: 0; }
    .ens-org-form { grid-template-columns: 1fr; }
    .ens-cartes-grandes .ens-carte { width: 100%; }
}

/* ═══ LE LIEU EN TROIS CASES, LA SÉRIE, LA PASTILLE (25/09/2026) ═══ */
.ens-lieu { border: 1px solid #cfd6dd; border-radius: 6px; padding: 8px 12px 10px; margin: 4px 0 8px; }
.ens-lieu legend { font-weight: 700; color: #13496a; padding: 0 4px; }
.ens-lieu-modes { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 6px; }
.ens-lieu-geo { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ens-lieu-geo .ens-champ { flex: 1 1 220px; }
.ens-lieu-pro { position: relative; margin-top: 6px; }
.ens-lieu-pro input[type="text"] { width: 100%; box-sizing: border-box; }
.ens-pro-liste { list-style: none; margin: 2px 0 0; padding: 0; border: 1px solid #cfd6dd; border-radius: 4px; background: #fff; max-height: 220px; overflow-y: auto; }
.ens-pro-liste li { border-bottom: 1px solid #eef2f6; }
.ens-pro-liste li.ens-gris { padding: 6px 10px; font-size: 13px; }
.ens-pro-liste button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 10px; cursor: pointer; font: inherit; }
.ens-pro-liste button:hover { background: #eaf3fb; }
.ens-pro-choisi { padding: 6px 0; font-size: 14px; }
.ens-pro-changer { margin-left: 8px; padding: 2px 10px; font-size: 12px; }
.ens-lieu-carte { margin-top: 6px; }
.ens-org-carte-cadre { position: relative; height: 280px; border: 1px solid #dbe3ec; border-radius: 6px; overflow: hidden; background: #eef2f6; }
.ens-org-carte { position: absolute; inset: 0; }
.ens-ici-ligne { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ens-ici-ok { color: #1f7a3a; font-weight: 700; font-size: 13px; }
.ens-serie { border-top: 1px dashed #cfd6dd; padding-top: 6px; }
.ens-serie-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 13px; }
.ens-serie-jour { white-space: nowrap; cursor: pointer; }
.ens-serie-fin { white-space: nowrap; margin-left: 8px; }
.ens-pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; background: #9aa5b1; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #cfd6dd; }
.ens-pastille-rouge { background: #c0392b; }
.ens-pastille-bleu { background: #1c5fbe; }
.ens-pastille-lien { color: inherit; text-decoration: none; white-space: nowrap; }
.ens-pastille-lien:hover { text-decoration: underline; color: #1c5fbe; }
.ens-fiche-compte { margin: 2px 0 6px; font-weight: 700; color: #13496a; font-size: 14px; }
.ens-pro-conf-boite { width: 94%; max-width: 460px; }
#ens-org-serie-stop { margin-right: 0; }

/* ═══ LES RANGÉES QUI DÉFILENT (25/09/2026) : Mes événements, Mes participations ═══ */
.ens-defile { position: relative; }
.ens-cartes-rang { flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.ens-cartes-rang .ens-carte { flex: 0 0 210px; }
.ens-defile-bt { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: #1c5fbe; color: #fff; font-size: 24px; line-height: 30px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ens-defile-bt:hover { background: #13496a; }
.ens-defile-g { left: 2px; }
.ens-defile-d { right: 2px; }

/* La barre des deux mois (25/09/2026). */
.ens-mois-nav { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ens-mois-bt { color: inherit; text-decoration: none; padding: 0 6px; border-radius: 4px; font-weight: 700; }
.ens-mois-bt:hover { background: rgba(255,255,255,.25); }
.ens-liste-tete .ens-mois-bt { color: #1c5fbe; }
.ens-liste-tete .ens-mois-bt:hover { background: #eaf3fb; }

.ens-quota { color: #c0392b; font-weight: 700; }

/* La barre du 25/09/2026 : bleus à gauche, rouge à droite, orange pour revenir. */
.ens-menu { gap: 8px; }
.ens-menu .ens-bt-signaler { margin-left: auto; }
.ens-bt-orange { display: inline-block; border: 0; border-radius: 5px; padding: 6px 14px; background: #e67e22; color: #fff; font-weight: 700;
    font-size: 13px; text-decoration: none; cursor: pointer; font-family: system-ui, "Segoe UI", Arial, sans-serif; }
.ens-bt-orange:hover { background: #c96a15; color: #fff; }

/* Le filtre « qui organise » (25/09/2026), sous l'activité. */
.ens-orga { display: flex; flex-direction: column; gap: 3px; width: 50%; margin: 6px 0; }
.ens-orga-bt { text-align: left; border: 1px solid #bcd9f0; border-radius: 4px; background: #eaf6fb; color: #13496a; font: inherit;
    font-size: 13px; font-weight: 600; padding: 4px 10px; cursor: pointer; }
.ens-orga-bt:hover { background: #d6ecf8; }
.ens-orga-bt.ens-on { background: #1c5fbe; border-color: #1c5fbe; color: #fff; }

/* Les deux moitiés sous l'activité (25/09/2026) : « qui organise » | Bonjour, statut, Participants, Diffuseurs. */
.ens-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.ens-deux .ens-orga { width: auto; margin: 0; }
.ens-moi { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ens-moi-l1 { font-size: 13px; color: #1a2535; overflow-wrap: anywhere; line-height: 1.25; min-height: 26px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ens-moi-l2 { font-size: 13px; min-height: 26px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ens-moi-l2 .ens-bt-certifier { margin: 0; }
a.ens-orga-bt { text-decoration: none; display: block; }
.ens-gens { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 12px; }
@media (min-width: 900px) { .ens-gens { display: grid; grid-template-columns: 1fr 1fr; } }
.ens-gens-carte.ens-diff { text-align: left; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.ens-diff-lien { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 0; }
.ens-diff-lien:hover { color: #1c5fbe; }
/* Participant : « RamonM 1 événement » sur une seule ligne (Ramon, 25/09/2026). */
.ens-diff-lien.ens-diff-ligne { flex-direction: row; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ens-diff-ligne span { overflow: hidden; text-overflow: ellipsis; }
.ens-diff > .ens-bt-bleu, .ens-diff-bts { flex-shrink: 0; }
.ens-diff > .ens-bt-bleu { padding: 3px 10px; font-size: 12px; }
/* Des dizaines de lignes : cartes basses, liste qui défile dans sa zone, 3 colonnes sur grand écran. */
.ens-gens { max-height: 70vh; overflow-y: auto; align-content: start; }
.ens-gens .ens-diff { padding: 4px 10px; min-width: 0; flex: 1 1 260px; }
.ens-diff-bts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ens-diff-bts .ens-bt-bleu, .ens-liste-tete .ens-bt-bleu { padding: 3px 10px; font-size: 12px; }
.ens-bt-clair { background: #fff; color: #1c5fbe; box-shadow: inset 0 0 0 1px #1c5fbe; }
.ens-bt-clair:hover { background: #eaf3fb; color: #13496a; }
.ens-gens-carte { display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 6px 10px; border: 1px solid #cfd6dd; border-radius: 6px;
    background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.ens-gens-carte small { font-weight: 400; color: #6b7a8c; font-size: 12px; }
a.ens-gens-carte:hover { box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* La fiche d'un participant (25/09/2026) : ses caractéristiques | son avatar et son métier. */
#ens-profil .ens-profil-boite { width: 94%; max-width: 560px; }
.ens-profil-corps { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; align-items: start; }
.ens-profil-scene { position: relative; display: flex; flex-direction: column; align-items: center; }
.ens-profil-avatar { width: 110px; height: 110px; object-fit: contain; position: relative; z-index: 2; }
.ens-profil-metier { width: 170px; margin-top: -30px; }
@media (max-width: 560px) { .ens-profil-corps { grid-template-columns: minmax(0, 1fr); } }

/* === FIN DU FICHIER : D:\speedclicV2\www\assets\css\ensemble.css === */

/* Filtre des Participants (25/09/2026). */
.ens-barre-filtre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ens-barre-filtre h2 { margin: 0; font: inherit; color: inherit; }
.ens-gens-filtre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ens-barre-filtre .ens-bt-bleu { box-shadow: 0 0 0 1px #fff; }
.ens-gens-genres { display: flex; gap: 6px; }
.ens-gens-genres .ens-bt-bleu { padding: 3px 12px; font-size: 13px; }
#ens-gens-q { flex: 1 1 180px; max-width: 260px; padding: 3px 10px; border: 1px solid #fff; border-radius: 6px; font-size: 14px; }
.ens-gens .ens-diff[hidden] { display: none; }

/* Le nom n'est plus cliquable ; « N événements » et « Voir sa fiche » : deux boutons (25/09/2026). */
.ens-diff-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #13496a; }
/* Sans cadre, de la place pour le pseudo (Ramon, 25/09/2026) : colonnes de 340px au moins,
   deux sur un PC, une sur un téléphone. */
.ens-gens { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 4px 28px; }
.ens-gens .ens-gens-carte.ens-diff { border: 0; background: transparent; box-shadow: none; border-radius: 0; padding: 4px 2px; }
.ens-gens .ens-diff-nom { flex: 1 1 auto; min-width: 7em; font-size: 15px; }
@media (max-width: 420px) { .ens-gens { grid-template-columns: 1fr; } }
/* Le pseudo de l'organisateur ouvre sa fiche (25/09/2026) : il garde la couleur de sa colonne. */
.ens-td-orga .ens-orga-fiche { color: inherit; font: inherit; text-decoration: none; }
.ens-td-orga .ens-orga-fiche:hover { text-decoration: underline; }
/* Catalogue du mois (25/09/2026). */
.ens-barre-violette .ens-bt-bleu { box-shadow: 0 0 0 1px #fff; padding: 3px 14px; font-size: 13px; }
.ens-mois-barre .ens-mois-bt, .ens-mois-barre .ens-mois-lib { color: #fff; }
#ens-cat-ville { padding: 3px 8px; border: 1px solid #fff; border-radius: 6px; font-size: 14px; max-width: 260px; }
.ens-table tr[hidden] { display: none; }
.ens-membres-liste .ens-lien { color: inherit; font-weight: 700; font-size: 13px; text-decoration: none; }
.ens-membres-liste .ens-lien:hover { text-decoration: underline; }
/* Présents : la ligne de filtres sous les onglets (25/09/2026). */
.ens-pres-filtre { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 6px 2px; }
.ens-pres-filtre .ens-bt-bleu { padding: 2px 8px; font-size: 12px; }
#ens-pres-q { flex: 1 1 90px; min-width: 0; padding: 2px 6px; border: 1px solid #cfd6dd; border-radius: 6px; font-size: 13px; }
.ens-membres-liste li[hidden] { display: none; }
/* « Participants présents (1) » : le mot n'apparaît que sur l'onglet choisi (25/09/2026). */
.ens-onglet .ens-onglet-pres { display: none; }
.ens-onglet.ens-on .ens-onglet-pres { display: inline; }
/* Deux onglets sur toute la largeur, « Participants présents (2) » sur une ligne, et la zone
   qui descend jusqu'au bas de la colonne (Ramon, 25/09/2026). */
.ens-onglets-tete { display: flex; }
.ens-onglet { flex: 1 1 auto; white-space: nowrap; padding: 6px 10px; }
.ens-onglets { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 220px; }
.ens-onglets-corps { flex: 1 1 auto; max-height: none; }
/* Derniers événements entrés (25/09/2026). */
.ens-barre-droite { margin-left: auto; }
.ens-derniers { max-height: none; }
.ens-derniers .ens-diff-nom { color: #13496a; font-weight: 600; text-align: left; }
.ens-derniers-date { color: #c0392b; font-weight: 700; margin-right: 4px; }
.ens-derniers-ville { flex-shrink: 0; color: #6b7a8c; }
/* DEUX COLONNES, LA GAUCHE D'ABORD (Ramon, 25/09/2026) : on remplit la colonne de gauche puis
   celle de droite ; une seule colonne quand la place manque (téléphone). */
.ens-gens { display: block; columns: 2 340px; column-gap: 28px; max-height: none; overflow: visible; }
.ens-gens > .ens-gens-carte, .ens-gens > .ens-vide { break-inside: avoid; margin-bottom: 4px; }
.ens-gens > .ens-gens-carte.ens-diff { display: flex; }
.ens-gens > .ens-gens-carte.ens-diff[hidden] { display: none; }
/* Avatars des derniers particuliers qui ont publié (25/09/2026). */
.ens-avatars { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; border-bottom: 1px solid #e3e3e3; margin-bottom: 8px; min-height: 60px; }
.ens-avatar { flex: 0 0 auto; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; padding: 0; cursor: pointer; }
.ens-avatar img, .ens-avatar-init { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #bcd9f0; background: #eaf3fb; }
.ens-avatar-init { display: flex; align-items: center; justify-content: center; font-weight: 700; color: #1c5fbe; font-size: 20px; }
.ens-avatar-nom { max-width: 64px; font-size: 11px; font-weight: 600; color: #1c5fbe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ens-avatar:hover img, .ens-avatar:hover .ens-avatar-init { border-color: #1c5fbe; }
/* Présents (25/09/2026) : la colonne de gauche se remplit d'abord (10 lignes), puis la droite ;
   soi-même en vert, les hommes en bleu, les femmes en violet. */
.ens-membres-liste { columns: auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(10, auto);
    grid-auto-flow: column; column-gap: 12px; align-content: start; }
.ens-membres-liste li.ens-g-homme { color: #1c5fbe; }
.ens-membres-liste li.ens-g-femme { color: #7b3fb5; }
.ens-membres-liste li.ens-moi-pres { color: #1f8a3b; }
