:root {
    --main-orange: #ff9800;
    --main-black: #222;
    --main-white: #fff;
    --border-radius: 8px;
    --input-border: #ddd;
}

body {
    background: var(--main-white);
    color: var(--main-black);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

h1, h2, h3 {
    color: var(--main-black);
    font-weight: 600;
    margin-bottom: 18px;
}

a {
    color: var(--main-orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.login-container,
.main-container {
    max-width: 350px;
    margin: 10vh auto 0 auto;
    background: var(--main-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(34,34,34,0.07);
    padding: 32px 24px 60px 24px;
    position: relative;
    text-align: center;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: var(--main-white);
    color: var(--main-black);
}

input[type="file"] {
    padding: 8px 0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: var(--main-orange);
    color: var(--main-white);
    transition: background 0.2s;
}

.btn:hover {
    background: #e68900;
}

.btn-secondary {
    background: var(--main-black);
    color: var(--main-white);
    padding: 8px 5px; /* Augmente le padding horizontal */
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}


.btn-secondary:hover {
    background: #444;
}

.admin-login-btn {
    position: absolute;
    right: 24px;
    bottom: 15px;
    background: var(--main-black);
    color: var(--main-white);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(34,34,34,0.10);
    transition: background 0.2s;
}

.admin-login-btn:hover {
    background: var(--main-orange);
    color: var(--main-black);
}

.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 15px;
    background: #fff7e6;
    color: var(--main-black);
    border: 1px solid #ffe0b2;
}

.message.error {
    background: #fff0f0;
    color: #c00;
    border: 1px solid #ffc2c2;
}

.message.success {
    background: #f6fff0;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.photos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
}

.photo-card {
    background: var(--main-white);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 6px rgba(34,34,34,0.07);
    overflow: hidden;
    text-align: left;
}

.photo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
    display: block;
}

.photo-info {
    padding: 10px 14px;
    font-size: 14px;
    color: #555;
}

@media (max-width: 500px) {
    .login-container,
    .main-container {
        max-width: 98vw;
        padding: 18px 6px 60px 6px;
    }
    .admin-login-btn {
        right: 8px;
        bottom: 8px;
        font-size: 13px;
        padding: 7px 12px;
    }
    .photo-card img {
        height: 120px;
    }
    
}
/* Ajoute à la fin de /Applications/MAMP/htdocs/hsev/public/css/style.css */
.chauffeurs-table, .photos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #fff;
}
.chauffeurs-table th, .chauffeurs-table td,
.photos-table th, .photos-table td {
    border: 1px solid #eee;
    padding: 8px 6px;
    text-align: left;
}
.chauffeurs-table tr:hover {
    background: #ffe0b2;
}
.photos-table th {
    background: #ff9800;
    color: #fff;
}

.admin-pc {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding: 32px 32px 60px 32px;
    background: var(--main-white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(34,34,34,0.07);
}

.chauffeurs-table, .photos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
    font-size: 16px;
}

.chauffeurs-table th, .chauffeurs-table td,
.photos-table th, .photos-table td {
    border: 1px solid #eee;
    padding: 12px 10px;
    text-align: left;
}

.chauffeurs-table th, .photos-table th {
    background: #ff9800;
    color: #fff;
    font-weight: 600;
}

.chauffeurs-table tr:hover {
    background: #ffe0b2;
    cursor: pointer;
}

.photos-table tr:nth-child(even) {
    background: #fafafa;
}

#photosSection h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--main-black);
}

#newUsername,
#newPassword {
    max-width: 220px;
    width: 100%;
    margin: 0 auto;
    display: block;
}
#createUserForm .btn {
    max-width: 220px;
    width: 80%;
    margin: 0 auto;
    display: block;
}

.photos-table tr.photo-row:hover {
    background: #fff3e0;
}

.photo-actions {
    margin-bottom: 18px;
    position: relative;
}
.photo-options {
    display: none;
    position: absolute;
    left: 0;
    top: 45px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(34,34,34,0.10);
    padding: 10px 0;
    z-index: 10;
}
.photo-options .btn {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: var(--main-black);
    text-align: left;
    padding-left: 18px;
}
.photo-options .btn:last-child {
    border-bottom: none;
}
.photo-options .btn:hover {
    background: #fff3e0;
    color: var(--main-orange);
}

#addPhotoBtn {
    background: #eee;
    color: var(--main-black);
    border: 1px solid #ccc;
}

#addPhotoBtn:hover {
    background: #ddd;
    color: var(--main-orange);
}

#validatePhotoBtn {
    margin-top: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#closePhotosBtn {
    margin-left: 18px;
    margin-right: 18px;
}