/* Variables */
:root {
    --primary-color: #0056b3;
    --secondary-color: #28a745;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #fff;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #003d7a;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #003d7a;
    border-color: #003d7a;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 20px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons button {
    padding: 8px 16px;
    border-radius: var(--radius);
}

.auth-buttons button:first-child {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.auth-buttons button:first-child:hover {
    background-color: rgba(0, 86, 179, 0.1);
}

.menu-toggle {
    display: none;
    font-size: 24px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1508873696983-2dfd5898f08b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 100px 20px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease-out;
}

.search-box {
    display: flex;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 5px;
    box-shadow: var(--shadow);
}

.search-box i {
    color: #777;
    padding: 12px;
}

.search-box input,
.search-box select {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 16px;
}

.search-box select {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background-color: white;
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
}

.search-btn:hover {
    background-color: #003d7a;
}

/* Search Results Section */
.search-results {
    padding: 50px 20px;
    background-color: var(--light-bg);
}

.search-results h2 {
    text-align: center;
    margin-bottom: 30px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: white;
    outline: none;
}

#apply-filters {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    margin-top: auto;
    align-self: flex-end;
}

#apply-filters:hover {
    background-color: #003d7a;
}

/* Styles pour la grille des travailleurs SUR LA PAGE DE RESULTATS */
.search-results .workers-grid {
    display: grid;
    /* Réduire la taille minimale pour potentiellement afficher plus de colonnes */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 15px; /* Réduire légèrement l'espacement */
    margin-top: 20px;
}

/* Ajustements mineurs pour les cartes DANS LA PAGE DE RESULTATS si nécessaire */
/* Si les styles généraux .worker-card sont déjà satisfaisants, ces règles peuvent être omises */


/* Les styles de pagination .pagination-controls sont déjà définis */
/* Pas besoin de les redéfinir sauf si un style spécifique est voulu ici */

/* Grille des travailleurs - disposition verticale */
.workers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.worker-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.worker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.worker-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 15px;
}

.worker-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.worker-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.worker-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.worker-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: var(--primary-color-dark);
}

.worker-info p {
    margin: 3px 0;
    color: #666;
}

.worker-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    width: 100%;
}

.worker-details p {
    line-height: 1.6;
    color: #555;
}

.worker-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

.worker-actions button {
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.worker-actions button:hover {
    transform: translateY(-2px);
}

.contact-btn {
    background-color: var(--primary-color);
    color: #333;
}

.contact-btn:hover {
    background-color: var(--primary-color-dark);
}

.profile-btn {
    background-color: #f0f0f0;
    color: #333;
}

.profile-btn:hover {
    background-color: #e0e0e0;
}

/* Pour les petits écrans, ajustements de la carte */
@media (max-width: 600px) {
    .worker-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .worker-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .worker-actions button {
        width: 100%;
    }
}

/* Worker Registration Section */
.worker-registration {
    padding: 50px 20px;
}

.worker-registration h2 {
    text-align: center;
    margin-bottom: 30px;
}

.registration-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.registration-info,
.registration-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.registration-info h3,
.registration-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.registration-info ul {
    margin-bottom: 20px;
}

.registration-info ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.registration-info ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.pricing, .payment-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--radius);
}

.pricing h4, .payment-info h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.payment-code {
    background-color: #eee;
    padding: 10px;
    border-radius: var(--radius);
    margin: 10px 0;
    word-break: break-all;
    font-family: monospace;
}

.payment-qr {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.payment-qr-img {
    max-width: 200px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #777;
}

/* About Section */
.about {
    padding: 50px 20px;
    background-color: var(--light-bg);
}

.about h2 {
    text-align: center;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.about-logo {
    max-width: 300px;
    animation: pulse 2s infinite;
}

/* Contact Section */
.contact {
    padding: 50px 20px;
}

.contact h2 {
    text-align: center;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #003d7a;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 50px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 10px;
}

.footer-links,
.footer-newsletter {
    flex: 1;
    min-width: 200px;
}

.footer-links h4,
.footer-newsletter h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
}

.footer-links ul li a:hover {
    color: var(--light-text);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 15px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.newsletter-form button:hover {
    background-color: #003d7a;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #555;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: modalFadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #777;
}

.close-modal:hover {
    color: var(--text-color);
}

.auth-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 40%;
    height: 1px;
    background-color: var(--border-color);
}

.auth-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 40%;
    height: 1px;
    background-color: var(--border-color);
}

.google-auth-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-auth-btn:hover {
    background-color: #f5f5f5;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-logo {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        position: relative;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        display: none;
        width: 100%;
        z-index: 999;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .auth-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        padding: 10px;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .auth-buttons button {
        margin: 0;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    main {
        padding-bottom: 60px; /* Espace pour les boutons fixes en bas */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input,
    .search-box select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-box select {
        border: 1px solid var(--border-color);
    }
    
    .worker-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Styles pour la navigation entre modales */
.switch-auth {
    margin-top: 20px;
    text-align: center;
}

.switch-auth a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* S'assurer que les boutons sont cliquables */
button {
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.primary-btn {
    cursor: pointer;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.primary-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.primary-btn:active {
    transform: translateY(0);
}

/* Style pour l'élément close-modal */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #3498db;
}

/* Styles spécifiques pour la modale de détails du travailleur */
.worker-details-modal {
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.worker-details-header {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.worker-details-photo {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 20px;
    margin-bottom: 15px;
}

.worker-details-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.worker-details-info {
    flex: 1;
    min-width: 250px;
}

.worker-details-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.worker-details-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.worker-details-section:last-child {
    border-bottom: none;
}

.worker-details-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les avis */
.reviews-scroll-container {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 86, 179, 0.5) #f0f0f0;
}

.reviews-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.reviews-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.reviews-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 86, 179, 0.5);
    border-radius: 10px;
}

.review-item {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 0.85rem;
    color: #777;
}

.review-rating {
    margin-bottom: 8px;
    color: #f1c40f;
}

.review-comment {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
}

.loading-reviews, .no-reviews {
    padding: 30px;
    text-align: center;
    color: #666;
}

.loading-reviews i, .no-reviews i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: #999;
}

.no-reviews i {
    color: #f1c40f;
}

/* Styles pour la page de callback de paiement */
.payment-callback-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.payment-status {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.status-icon i.fa-check-circle {
    color: #4CAF50;
}

.status-icon i.fa-times-circle {
    color: #f44336;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour la section de paiement dans le formulaire d'inscription */
.payment-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.payment-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-section p {
    margin: 0.5rem 0;
    color: #666;
}

.footer-legal {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-legal a {
    color: var(--light-text-color);
    text-decoration: underline;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Styles pour la gestion des paiements */
.payment-card {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.payment-details p {
    margin: 5px 0;
    color: #666;
}

.payment-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.payment-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.verify-payment-btn {
    background-color: var(--primary-color);
    color: white;
}

.update-status-btn {
    background-color: #666;
    color: white;
}

.renew-subscription-btn {
    background-color: #28a745;
    color: white;
}

.payment-actions button:hover {
    opacity: 0.9;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-verified {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-expired {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

#payment-status-filter {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

/* Styles du footer réorganisé */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color) !important;
    font-weight: 600;
    visibility: hidden;
}

.admin-link:hover {
    color: #fff !important;
}

.admin-setup-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-setup-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Styles pour les notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.info {
    background-color: var(--primary-color);
}

/* Styles pour le menu mobile et la navigation */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.dashboard-nav {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--dark-bg);
    color: white;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.nav-header {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.nav-header .profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: auto;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .dashboard-nav {
        transform: translateX(-100%);
        z-index: 999;
    }

    .dashboard-nav.active {
        transform: translateX(0);
    }

    .dashboard-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    /* Styles responsifs pour les tables d'administration (ex: paiements) */
    .admin-table {
        display: block; /* Force la table à se comporter comme un bloc */
        width: 100%;
    }

    .admin-table thead {
        display: none; /* Cache les en-têtes de tableau */
    }

    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block; /* Chaque cellule prend toute la largeur */
        width: 100%;
        text-align: right; /* Aligne le texte à droite pour la valeur */
        padding-left: 50%; /* Crée de l'espace à gauche pour le label */
        position: relative; /* Pour positionner le label */
        border-bottom: 1px solid #eee;
        margin-bottom: 10px; /* Espace entre les "lignes" */
    }
    
    .admin-table tr {
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-bottom: 15px;
      padding: 10px 0;
    }

    .admin-table td::before {
        content: attr(data-label); /* Récupère le label depuis l'attribut data-label */
        position: absolute;
        left: 10px; /* Positionne le label à gauche */
        width: 45%; 
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
        white-space: nowrap;
    }

    /* Ajustement pour les boutons d'action dans les cellules */
    .admin-table td.actions {
        text-align: center; /* Centre les boutons */
        padding-left: 0; /* Pas besoin de padding spécial */
    }
    
    .admin-table td.actions::before {
        display: none; /* Cache le pseudo-label pour la cellule d'actions */
    }
    
    .admin-table td.actions button {
        display: inline-block;
        margin: 5px;
        width: auto;
    }
}

/* Overlay pour le menu mobile */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

/* Styles pour les champs de formulaire individuels */
.form-field {
    margin-bottom: 1rem;
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-field .edit-btn {
    position: absolute;
    right: 0.5rem;
    top: 2.25rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.form-field .edit-btn:hover {
    color: #0056b3;
}

.form-field.editing input,
.form-field.editing textarea,
.form-field.editing select {
    border-color: var(--primary-color);
    background-color: #fff;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.save-btn,
.cancel-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.save-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
}

/* Styles pour le formulaire de profil */
.profile-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-field.editing input,
.form-field.editing select,
.form-field.editing textarea {
    border-color: var(--primary-color);
    background-color: #fff;
}

.form-field input[readonly],
.form-field select[disabled],
.form-field textarea[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.edit-btn {
    position: absolute;
    right: 0.5rem;
    top: 2.25rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    color: #0056b3;
    transform: scale(1.1);
}

.photo-field {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-photo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.photo-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-photo-container:hover .photo-upload-overlay {
    opacity: 1;
}

.upload-btn {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-btn i {
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Styles pour la section de paiement en attente */
.payment-info-container {
    margin: 20px 0;
    padding: 0 15px;
}

.payment-info-container .alert {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-info-container h4 {
    color: #0d6efd;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-info-container h4 i {
    font-size: 1.2em;
}

.payment-info-container ol {
    margin: 15px 0;
    padding-left: 20px;
}

.payment-info-container ol li {
    margin-bottom: 10px;
    color: #495057;
}

.payment-info-container .contact-info {
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.payment-info-container .contact-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
}

.payment-info-container .contact-info i {
    color: #0d6efd;
    font-size: 1.1em;
}

.payment-info-container .note {
    font-style: italic;
    color: #6c757d;
    margin-top: 15px;
    margin-bottom: 0;
}

.payment-info-container strong {
    color: #0d6efd;
    font-weight: 600;
}

.payment-info-container .wave-link {
    display: inline-block;
    background-color: #00C9A7;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin: 5px 0;
    transition: background-color 0.3s ease;
}

.payment-info-container .wave-link:hover {
    background-color: #00B394;
    color: white;
    text-decoration: none;
}

/* Responsivité du dashboard améliorée */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .dashboard-nav {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background-color: #fff;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .dashboard-nav.active {
        left: 0;
    }
    
    .dashboard-content {
        margin-left: 0;
        padding: 15px;
        width: 100%;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #0d6efd;
        color: white;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .profile-section .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-photo {
        margin: 0 auto 15px;
    }
    
    .worker-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .profile-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .review-item {
        flex-direction: column;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-date {
        margin-top: 5px;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-info-card .subscription-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subscription-badge {
        margin-top: 10px;
    }
    
    .message-container {
        flex-direction: column;
    }
    
    .message-list {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .message-details {
        width: 100%;
        padding: 15px 0;
    }
    
    .payment-info-container .alert {
        padding: 15px;
    }
    
    .contact-info {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .dashboard-section {
        padding: 15px 10px;
    }
    
    .profile-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-actions button {
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .notification-group {
        padding: 10px;
    }
    
    .notification-toggle {
        margin-right: 0;
    }
    
    .payment-info-container .wave-link {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
    
    .worker-name {
        font-size: 1.5rem;
    }
    
    .worker-profession {
        font-size: 1rem;
    }
    
    .status-badge {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* Styles pour la boîte de dialogue personnalisée */
.custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dialog-content {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dialog-content h3 {
    margin-top: 0;
    color: #0d6efd;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.dialog-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
}

.dialog-content a.wave-link {
    display: inline-block;
    background-color: #0d6efd;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    transition: background-color 0.3s;
}

.dialog-content a.wave-link:hover {
    background-color: #0b5ed7;
    text-decoration: none;
}

.dialog-content button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin-top: 20px;
    margin-left: auto;
    transition: background-color 0.3s;
}

.dialog-content button:hover {
    background-color: #5a6268;
}

@media (max-width: 576px) {
    .dialog-content {
        width: 95%;
        padding: 15px;
    }
    
    .dialog-content h3 {
        font-size: 1.3rem;
    }
}

/* Styles pour l'aperçu de la photo de profil dans le formulaire */
.profile-photo-preview {
    display: block; /* Assurez-vous qu'il est visible */
    width: 100px; /* Ajustez la taille selon vos besoins */
    height: 100px;
    border-radius: 50%; /* Pour un aperçu rond */
    object-fit: cover; /* Pour bien cadrer l'image */
    margin-top: 15px; /* Espace au-dessus de l'aperçu */
    border: 2px solid #ddd; /* Optionnel : ajoute une bordure */
}

/* Styles pour la section "Fonctionnalité bientôt disponible" */
.feature-soon {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-top: 5px;
    flex-wrap: wrap; /* Permet le retour à la ligne si nécessaire */
}

.feature-soon i {
    color: #6c757d;
    font-size: 1.2rem;
    margin-right: 10px;
}

.feature-soon span {
    color: #6c757d;
    font-style: italic;
    flex-grow: 1; /* Prend l'espace restant */
    margin-right: 15px; /* Espace avant la photo */
}

.feature-soon .profile-photo-current {
    width: 50px; /* Taille de la photo actuelle affichée */
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Styles pour la grille des travailleurs sur la page d'accueil */
#recherche .workers-grid {
    display: grid;
    /* Ajustez minmax pour la taille souhaitée des cartes */
    /* Ex: 250px min, 1fr max pour remplir l'espace */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    margin-top: 20px;
}

/* Réduire la taille des cartes spécifiquement dans cette section */
#recherche .worker-card {
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out;
}

#recherche .worker-card:hover {
    transform: translateY(-5px);
}

#recherche .worker-card h3 {
    font-size: 1.1rem; /* Taille de titre réduite */
    margin-bottom: 8px;
}

#recherche .worker-card p {
    font-size: 0.85rem; /* Taille de paragraphe réduite */
    margin-bottom: 5px;
    color: #555;
}

#recherche .worker-card .profession {
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
}

#recherche .worker-card .region {
    color: #777;
    text-transform: uppercase;
}

#recherche .worker-card .rating {
    font-size: 0.8rem;
    color: #ffc107; /* Jaune pour les étoiles */
    margin-top: 8px;
}

#recherche .worker-card .rating span {
    color: #6c757d;
    margin-left: 5px;
    font-size: 0.75rem;
}

#recherche .worker-card .contact-info {
    display: none; /* Cacher les infos contact détaillées dans cette vue */
}

#recherche .worker-card .worker-actions button {
    padding: 6px 10px; /* Boutons plus petits */
    font-size: 0.8rem;
}

/* Styles pour la pagination sur la page d'accueil */
#pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 15px 0;
}

#pagination-controls button {
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

#pagination-controls button:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

#pagination-controls button:disabled {
    color: #6c757d;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

#pagination-controls span {
    margin: 0 10px;
    font-weight: 500;
    color: #495057;
}

/* Styles pour la pagination sur la page de résultats de recherche */
#pagination-controls-results {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px; /* Espace au-dessus des contrôles */
    padding: 20px 0; /* Plus de padding vertical */
    width: 100%; /* Assure que le conteneur prend la largeur */
}

#pagination-controls-results button {
    background-color: var(--primary-color); /* Bouton bleu primaire */
    border: 1px solid var(--primary-color);
    color: var(--light-text); /* Texte blanc */
    padding: 10px 18px; /* Légèrement plus grand que ceux de l'accueil */
    margin: 0 8px; /* Un peu plus d'espacement */
    border-radius: var(--radius); /* Utilise le radius global */
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

#pagination-controls-results button:hover:not(:disabled) {
    background-color: #003d7a; /* Bleu plus foncé au survol */
    border-color: #003d7a;
    transform: translateY(-2px); /* Effet de soulèvement */
}

#pagination-controls-results button:disabled {
    background-color: #e0e0e0; /* Gris plus clair pour désactivé */
    border-color: #e0e0e0;
    color: #999; /* Texte gris plus clair */
    cursor: not-allowed;
    transform: none; /* Pas d'effet de survol si désactivé */
}

#pagination-controls-results span#page-info-results {
    margin: 0 15px; /* Plus d'espace autour du texte */
    font-weight: 600; /* Texte un peu plus gras */
    color: var(--text-color); /* Couleur de texte standard */
    font-size: 1rem; /* Taille de police standard */
    min-width: 80px; /* Assure un espace minimum même si le texte est court */
    text-align: center;
}

/* Ajustements responsifs pour la pagination des résultats */
@media (max-width: 480px) {
    #pagination-controls-results {
        padding: 15px 0;
    }
    #pagination-controls-results button {
        padding: 8px 12px;
        margin: 0 5px;
        font-size: 0.9rem;
    }
    #pagination-controls-results span#page-info-results {
        margin: 0 10px;
        font-size: 0.9rem;
        min-width: 60px;
    }
}

/* Styles spécifiques à l'admin */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: none; /* Caché initialement, affiché par JS */
}

/* ... styles existants pour login-container, admin-header ... */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
    color: var(--primary-color);
}

/* Amélioration des onglets admin */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    /* Permettre le défilement horizontal sur mobile */
    overflow-x: auto;
    /* Masquer la barre de défilement par défaut (optionnel) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.admin-tabs::-webkit-scrollbar { /* Chrome, Safari, Opera */
    display: none;
}

.admin-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    /* Empêcher le retour à la ligne des titres d'onglet */
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.admin-tab:hover {
    color: var(--primary-color);
}

.admin-tab.active {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* ... styles existants pour tab-content ... */

.filter-controls {
    display: flex;
    flex-wrap: wrap; /* Permettre le retour à la ligne */
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-controls select, 
.filter-controls button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.filter-controls button {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

/* ... styles existants pour worker-card, worker-header, etc. ... */

/* Style pour les détails qui s'affichent */
.worker-details {
    display: none; /* Caché par défaut */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

.worker-details.active {
    display: block; /* Affiché quand la classe active est ajoutée */
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Grille responsive */
    gap: 15px;
}

/* ... autres styles existants ... */

@media (max-width: 768px) {
    /* ... styles responsifs existants pour admin-table ... */

    .admin-stats {
        grid-template-columns: 1fr 1fr; /* Deux colonnes sur tablettes */
        gap: 15px;
    }

    .details-grid {
        grid-template-columns: 1fr; /* Une seule colonne pour les détails */
    }
}

@media (max-width: 576px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr; /* Une seule colonne sur petits mobiles */
    }

    .filter-controls {
        flex-direction: column; /* Empiler les filtres */
        align-items: stretch;
    }
    
    .filter-controls select, 
    .filter-controls button {
        width: 100%;
    }
    
    .worker-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .worker-actions {
        flex-direction: column; /* Empiler les boutons d'action */
        align-items: stretch;
    }
    
    .worker-actions button {
        width: 100%;
    }
} 