body {
	font-family: Arial;
	margin: 20px;
}

table {
	border-collapse: collapse;
	width: 100%;
}

table td {
    vertical-align: middle;
}

th, td {
	border: 1px solid #ccc;
	padding: 8px;
}

/* Première colonne plus étroite et centrée */
th:first-child,
td:first-child {
	width: 30px;
	text-align: center;
}

/* Entête du tableau plus petit */
th {
	background: #eee;
	font-size: 0.9em;
}

/* Entête de groupe (grade + nombre) */
.grade-row {
	background: #eee;
	font-weight: bold;
	font-size: 1em;
	font-family: Arial !important;
	text-align: left !important;
}

.grade-row .count {
	font-weight: normal;
	font-size: 0.85em;
	color: #666;
	margin-left: 10px;
}

/* Ligne total en bas */
.total {
	background: #ddd;
	font-weight: bold;
	text-align: left;
	font-size: 1em;
	font-family: Arial;
}

/* colonne date centrée */
td:nth-child(3),
th:nth-child(3) {
  text-align: center;
}

/* colonne Ancienneté centrée */
td:nth-child(4),
th:nth-child(4) {
  text-align: center;
}

.regle-cell {
  text-align: center;
}

.regle-ok {
  background: #2ecc71;
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
}

.regle-ko {
  background: #e74c3c;
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
}

.membre-link {
	color: inherit;
	text-decoration: none;
}

.membre-link:hover {
	color: #2980b9;
	cursor: pointer;
}

.membre-row {
	cursor: pointer;
}

.membre-row:hover td {
	color: #2980b9;
}


/* ===== Anciens Membres ===== */
.anciens-table {
    width: 100%;
    table-layout: fixed;
}

.anciens-table th, .anciens-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

/* Colonne 1 : numéro, centrée, largeur fixe */
.anciens-table th:first-child,
.anciens-table td:first-child {
    width: 30px;
    text-align: center;
}

/* Colonne 2 : Nom Avatar, aligné à gauche */
.anciens-table th:nth-child(2) {
    text-align: left;
    font-weight: bold;
}

.anciens-table td:nth-child(2) {
    text-align: left;
}

/* Colonnes 3 à 6 : largeur automatique, alignement */
.anciens-table th:nth-child(3),
.anciens-table td:nth-child(3),
.anciens-table th:nth-child(4),
.anciens-table td:nth-child(4),
.anciens-table th:nth-child(5),
.anciens-table td:nth-child(5) {
    width: 100px;
}

/* Colonnes 5 et 6 centrées (Total Présence et Nbr Périodes) */
.anciens-table th:nth-child(5),
.anciens-table td:nth-child(5) {
    text-align: center;
}


.anciens-table th:nth-child(6),
.anciens-table td:nth-child(6) {
    width: 50px;
    text-align: center;
}

.card{

background:white;
padding:20px;
margin-bottom:20px;

border-radius:8px;

box-shadow:0 2px 6px rgba(0,0,0,0.15);

}

.fiche-grid{

display:grid;
grid-template-columns:1fr 1fr;
gap:10px;

}

.fiche-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.fiche-info-panel {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}

.fiche-info-title {
  margin: -12px -12px 10px -12px;
  padding: 8px 10px;
  background: #eeeeee;
  border-bottom: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  text-align: center;
}

.fiche-info-line {
  margin-top: 5px;
  line-height: 1.4;
}

.fiche-info-line span {
  font-weight: bold;
}

.fiche-regle-info {
  text-align: center;
}

.discord-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.discord-role-card {
  min-width: 0;
  margin-bottom: 0;
  text-align: center;
}

.discord-role-card h2 {
  margin-top: 0;
  text-align: center;
}

.discord-role-section {
  margin-top: 16px;
}

.discord-staff-section {
  text-align: center;
}

.discord-role-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.discord-role-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.discord-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.discord-role-function {
  color: #fff;
  background: #6c4dc4;
  font-weight: 700;
}

.discord-role-activity {
  color: #174a2b;
  background: #d9f5e2;
  border: 1px solid #9ed7af;
}

.discord-role-staff {
  color: #5c3b00;
  background: #fff3cd;
  border: 1px solid #e6cb78;
}

.discord-roles-synced-at {
  margin-top: 14px;
  color: #666;
  font-size: 0.8rem;
  text-align: center;
}

.icon-discord{

height:16px;
vertical-align:middle;

}

.historique-table{

width:100%;
border-collapse:collapse;

}

.historique-table th,
.historique-table td{

padding:6px;
border-bottom:1px solid #ddd;

}

.btn-retour {
    display: inline-block;
    padding: 10px 20px;
    background: #2980b9;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-retour:hover {
    background: #3498db;
}

.card ul{
	list-style: disc;
	padding-left: 20px;
}

.card li{
	padding: 4px 6px;
}

.membre-row:hover{
	color:#2980b9;
	cursor:pointer;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-header {
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.link-header:hover {
  text-decoration: underline;
  cursor: pointer;
  opacity: 1;
}

.fiche-actions-admin {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn-fiche-action,
.btn-sync-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-fiche-action:hover,
.btn-sync-discord:hover {
    background-color: #357ab8;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
}

.modal-action {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.modal-action h2 {
    margin: 0 0 12px 0;
    text-align: center;
}

.modal-title-success {
    color: #2ecc71;
}

.modal-title-warning {
    color: #d68910;
}

.modal-title-error {
    color: #e74c3c;
}

.modal-message-box {
    max-width: 460px;
}

.modal-message-text {
    margin: 0 0 8px 0;
    line-height: 1.5;
    text-align: center;
}

.modal-action-details {
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.modal-field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.modal-field-label-spaced {
    margin-top: 12px;
}

.modal-date-input,
.modal-select {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.modal-date-input:focus,
.modal-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.modal-error {
    min-height: 18px;
    margin-top: 8px;
    color: #e74c3c;
    font-size: 0.9em;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-modal {
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-modal-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-modal-primary:hover {
    background-color: #357ab8;
}

.btn-modal-secondary {
    background-color: #eee;
    color: #333;
}

.btn-modal-secondary:hover {
    background-color: #ddd;
}

.form-card {
    max-width: 520px;
    margin: 0 auto 20px auto;
}

.form-label {
    display: block;
    margin: 14px 0 6px 0;
    font-weight: bold;
}

.form-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.form-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.form-message {
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
    font-size: 0.95em;
}

.form-message-error {
    color: #e74c3c;
}

.form-message-ok {
    color: #2ecc71;
    font-weight: bold;
}

