/* Plugin « Fonctions syndicales » : pages Élu·es et mandaté·es / Vie syndicale, modèle <fonctions>, « Mon compte ».
   Les cartes reprennent .rub-cartes / .rub-carte de rubrique.css (panneau gris, filet rouge). */
/* Tableaux (maquette C) : panneaux .rub-carte de rubrique.css (gris, filet rouge) */
.rub .cgtf-tableaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.rub .cgtf-panneau { min-width: 0; }
.rub .cgtf-panneau:only-child, .rub .cgtf-colonne:only-child { grid-column: 1 / -1; }
/* colonne de droite : boîte des RP puis encadré de contact */
.rub .cgtf-colonne { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.rub .cgtf-colonne .cgtf-contact { margin: 0; }
.rub .cgtf-panneau .rub-carte__qui { margin-top: -4px; }
.rub .cgtf-defile { overflow-x: auto; }
.rub .cgtf-table { width: 100%; border-collapse: collapse; }
.rub .cgtf-table th, .rub .cgtf-table td { padding: 10px 14px; text-align: left; vertical-align: middle; }
.rub .cgtf-table thead th { background: #1D1C1D; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.rub .cgtf-table tbody th, .rub .cgtf-table tbody td { background: #fff; border-bottom: 1px solid #cfcdcd; }
.rub .cgtf-table tbody tr:nth-child(even) th, .rub .cgtf-table tbody tr:nth-child(even) td { background: #f4f3f3; }
.rub .cgtf-table tbody th { font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.rub .cgtf-table tbody tr.cgtf-segment th { background: #c30c07; color: #fff; padding-block: 6px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.rub .cgtf-abr { font-weight: 700; color: #c30c07; letter-spacing: .06em; }
.rub .cgtf-noms { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rub .cgtf-qui { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rub .cgtf-pastille { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
	background: #c30c07; box-shadow: 0 0 0 2px #f8e501; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .03em; }
.rub .cgtf-pastille--logo { position: relative; overflow: hidden; background: #fff; }
.rub .cgtf-pastille--logo img { position: absolute !important; inset: 0 !important; display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50%; object-fit: cover; object-position: center; }
.rub .cgtf-nom { font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.rub .cgtf-fonction { display: block; margin-bottom: 4px; font-family: var(--rub-texte, Barlow, Arial, sans-serif); font-size: 15px; color: #555; }
.rub .cgtf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rub .cgtf-chip { display: inline-block; min-width: 2.6em; padding: 2px 8px; border-radius: 3px; background: #1D1C1D; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .05em; text-align: center; text-decoration: none; cursor: help; }
.rub .cgtf-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.rub .cgtf-dep { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 6px; border-left: 6px solid #c30c07; background: #fff; }
.rub .cgtf-dep h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.rub .cgtf-dep .cgtf-noms { gap: 2px; }
.rub .cgtf-dep .cgtf-nom { font-size: 17px; }
.rub .cgtf-vide { margin: 0; color: #777; font-style: italic; }
.cgtf-modele { margin: 1.5em 0; }

/* « Mon compte » */
.cgtfonctions-mes { margin: 6px 0 0; padding: 0; list-style: none; }
.cgtfonctions-mes li { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-left: 4px solid #c30c07; background: #fff; font-weight: 600; }

@media (max-width: 900px) {
	.rub .cgtf-tableaux { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
	.rub .cgtf-table th, .rub .cgtf-table td { padding: 8px 9px; }
	.rub .cgtf-nom { font-size: 17px; }
}
