/* Style pour la grille des articles assignés */
body .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

body .user-list li {
    border-bottom: 1px solid #333;
}
.article-item {
    background: #222 !important;
}



.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.article-item {
    border: 1px solid #444;
    background: #222;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.article-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    max-height: 150px;
    object-fit: cover;
}

.article-item h3 {
    font-size: 1.2em;
    margin: 10px 0 0;
    color: #00c4cc;
}

.article-item h3 a {
    text-decoration: none;
    color: #00c4cc;
    transition: color 0.3s;
}

.article-item h3 a:hover {
    color: #ff4081;
}

/* Liste des utilisateurs inscrits */
.user-list {
    list-style: none;
    margin: 0;
    padding: 20px;
    background: #111;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.user-list li {
    border-bottom: 1px solid #333;
    padding: 15px 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.user-list li:last-child {
    border-bottom: none;
}

.user-list strong {
    color: #00c4cc;
}

.user-list .user-info {
    flex: 1;
    font-size: 1rem;
}

.user-list .user-info span {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #ccc;
}

.user-list .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00c4cc;
    margin-right: 10px;
}

.user-list .user-avatar img {
    width: 100%;
    height: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .user-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-list .user-avatar {
        margin-bottom: 10px;
    }
}
body .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

body .article-item {
    background: #222 !important;
    color: #fff !important;
}

/* Affichage all-registre en tableau */
.registered-users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background-color: #2c2c2c; /* Fond noir */
    color: #fff; /* Texte blanc */
    border: 1px solid #444; /* Bordures fines */
}

.registered-users-table thead {
    background-color: #444; /* Fond légèrement plus clair pour les en-têtes */
    text-transform: uppercase;
}

.registered-users-table th,
.registered-users-table td {
    padding: 12px 15px;
    border: 1px solid #555; /* Bordures des cellules */
}

.registered-users-table tbody tr:nth-child(even) {
    background-color: #333; /* Alternance des lignes */
}

.registered-users-table tbody tr:hover {
    background-color: #555; /* Surbrillance au survol */
}

.registered-users-table th {
    font-weight: bold;
    text-align: center;
}

/* Affichage registre en tableau */
/* Style pour le tableau */
.registered-users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

.registered-users-table thead {
    background-color: #2c3e50; /* Couleur bleu WordPress */
    color: #fff;
    text-transform: uppercase;
}

.registered-users-table th,
.registered-users-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.registered-users-table tbody tr:nth-child(even) {
    background-color: #f2f2f2; /* Alternance des lignes */
}

.registered-users-table tbody tr:hover {
    background-color: #e6f7ff; /* Surbrillance au survol */
}

.registered-users-table th {
    font-weight: bold;
    text-align: center;
}

/* Style pour le modal */
#article-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    padding: 20px;
    border-radius: 10px;
}

#article-modal .modal-content {
    text-align: center;
}

#article-modal h2 {
    margin-bottom: 20px;
}

#article-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#article-modal li {
    margin: 10px 0;
}

#article-modal button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#article-modal button:hover {
    background-color: #005b89;
}

/* Nouvel fenetre Assigner les articles */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-table th, .user-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.user-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    height: 90%;
    overflow-y: auto;
    text-align: center;
}

.articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.article-item {
    width: 45%;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
}

.article-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button.close-btn {
    background: #f44336;
}

button.submit-btn {
    background: #28a745;
}

.error-message {
    margin-top: 10px;
    color: red;
    font-weight: bold;
}

/* Nouvel fenetre voir les articles Assigner*/
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.articles-grid {
    
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.article-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.article-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button.close-btn {
    background: #f44336;
}

button.submit-btn {
    background: #28a745;
}

.error-message {
    margin-top: 10px;
    color: red;
    font-weight: bold;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.user-table th, .user-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.user-table th {
    background-color: #2c3e50; 
    color: #fff;
    font-weight: 100;
}

.user-table button {
    padding: 5px 10px;
    font-size: 14px;
}


/* Liste programme assigner du client*/
/* Conteneur principal de la grille */
.article-gridd {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Colonnes flexibles */
    gap: 20px; /* Espacement entre les articles */
    margin: 20px auto; /* Espacement externe autour de la grille */
    max-width: 1200px; /* Limite la largeur pour un meilleur design */
    padding: 10px; /* Ajoute un léger padding autour */
    box-sizing: border-box; /* Gère le padding dans les dimensions */
}

/* Style pour chaque article */
.article-itemm {
    border: 1px solid #ddd; /* Bordure légère autour des articles */
    border-radius: 8px; /* Coins arrondis */
    overflow: hidden; /* Contient les éléments internes */
    background: #414141; /* Fond blanc pour un contraste propre */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère pour un effet de carte */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition fluide */
    width: 100%;
}

/* Effet au survol */
.article-itemm:hover {
    transform: translateY(-5px); /* Légère élévation */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Accentuation de l'ombre */
}

/* Image mise en avant */
.article-itemm img {
    width: 100%; /* Occupe toute la largeur */
    height: 200px; /* Hauteur fixe */
    object-fit: cover; /* Remplit le conteneur sans distorsion */
    border-bottom: 1px solid #ddd; /* Séparation sous l'image */
}

/* Titre de l'article */
.article-itemm h3 {
    font-size: 1.2rem; /* Taille du texte */
    margin: 15px; /* Espacement interne */
    text-align: center; /* Centré */
    font-weight: 600; /* Texte en gras */
    color: #e2e2e2; /* Couleur neutre */
}

/* Lien dans le titre */
.article-itemm h3 a {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Hérite de la couleur parent */
    transition: color 0.3s ease; /* Transition fluide pour la couleur */
}

.article-itemm h3 a:hover {
    color: #0073aa; /* Change la couleur au survol */
}
