:root {
    --main-color: #282c3b;  
    --hover-color: #212531;  ; 
    --button-color: #242835; 
    
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: var(--main-color);
    color: white;
    padding: 10px 0;
}

nav.nav-container {
    display: flex;
    justify-content: space-between; /* Sépare les deux groupes : à gauche et à droite */
    align-items: center;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    gap: 20px; /* Espacement entre les éléments à gauche */
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1; /* Cela permet de pousser "Compte" à l'extrême droite */
}


.nav-item {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-item:hover {
    background-color: var(--hover-color);
}

.logout {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Sections */
main {
    padding: 20px;
}

.user-info, .user-files, .user-invoices {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Liste des fichiers et factures */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background-color: #e9e9e9;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

/* Style du tableau des fichiers */
.files-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.files-table th, .files-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.files-table th {
    background-color: var(--main-color);;
    color: white;
}

.files-table td {
    background-color: #f9f9f9;
}

.files-table tr:hover {
    background-color: #f1f1f1;
}

/* Miniature (image) */
.file-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

/* Responsive pour les petits écrans */
@media screen and (max-width: 768px) {
    .files-table th, .files-table td {
        font-size: 14px;
        padding: 8px;
    }

    .file-thumbnail {
        width: 40px;
        height: 40px;
    }
}


/* Croix rouge pour suppression */
.delete-icon {
    color: red;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    padding: 5px;
}

.delete-icon:hover {
    background-color: #f8d7da;
    border-radius: 5px;
}


.user-info {
  max-width: 600px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 2rem;
}

.account-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.account-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 14px;
  color: var(--main-color);
}

input {
  width: 95%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.btn {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 12px;
}

.btn.primary {
  background-color: var(--main-color);
  color: white;
  transition: background-color 0.2s;
}

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

.btn.danger {
  background-color: #dc3545;
  color: white;
}

.btn.danger:hover {
  background-color: #a71d2a;
}

.danger-zone h3 {
  color: #dc3545;
}