/* Front-end CSS pour Plantes Tropicales */

.pt-front-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pt-front-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d6a4f;
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.pt-front-header h2 {
    margin: 0;
    color: white;
}

.pt-front-user {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pt-logout {
    color: #ffb74d;
    text-decoration: none;
}

.pt-front-actions {
    margin-bottom: 25px;
}

.pt-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pt-btn-primary {
    background: #2d6a4f;
    color: white;
    border: none;
    cursor: pointer;
}

.pt-btn-primary:hover {
    background: #1b4d3e;
    transform: translateY(-2px);
}

.pt-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
}

.pt-btn-edit, .pt-btn-delete, .pt-btn-view {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    margin: 2px;
}

.pt-btn-edit {
    background: #ffb74d;
    color: #2d6a4f;
}

.pt-btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
}

.pt-btn-view {
    background: #6c757d;
    color: white;
}

.pt-front-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.pt-front-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.pt-front-card:hover {
    transform: translateY(-5px);
}

.pt-front-card-icon {
    text-align: center;
    font-size: 3rem;
    background: #f0f4ea;
    padding: 20px;
}

.pt-front-card h3 {
    text-align: center;
    margin: 15px 0 5px;
    color: #2d6a4f;
}

.pt-scientific {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.pt-origin {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
}

.pt-front-card-actions {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.pt-front-empty {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 20px;
}

/* Formulaire front-end */
.pt-front-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pt-front-form-container h2 {
    color: #2d6a4f;
    margin-bottom: 25px;
}

.pt-front-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.pt-front-form-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pt-front-form-card h3 {
    color: #2d6a4f;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.pt-form-field {
    margin-bottom: 18px;
}

.pt-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.pt-form-field input,
.pt-form-field select,
.pt-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.parties-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.parties-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 25px;
}

.pt-front-form-actions {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    text-align: right;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pt-front-form-actions .pt-btn {
    margin-left: 10px;
}

/* Images */
.image-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.image-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.image-item input {
    flex: 1;
    min-width: 120px;
}

.remove-image {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
}

#front-add-image {
    margin-top: 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 800px) {
    .pt-front-form-grid {
        grid-template-columns: 1fr;
    }
}