/* Style général */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.goals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 3rem;
    color: #ff6f61;
    margin-bottom: 20px;
}

/* Section Motivation */
.motivation-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.motivation-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.motivation-section p {
    font-size: 1.2rem;
    color: #666;
}

#refresh-motivation {
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#refresh-motivation:hover {
    background-color: #1976d2;
}

/* Filtres par Catégorie */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.category-btn.active {
    background-color: #4caf50;
    color: white;
}

.category-btn:hover {
    background-color: #ddd;
}

/* Grille d'Objectifs */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.goal-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.goal-card h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.goal-card p {
    font-size: 1rem;
    color: #666;
}

.goal-progress {
    background-color: #f0f0f0;
    border-radius: 5px;
    height: 10px;
    margin-top: 15px;
    position: relative;
}

.progress-bar {
    background-color: #4caf50;
    border-radius: 5px;
    height: 100%;
}

.progress-text {
    position: absolute;
    right: 5px;
    top: -20px;
    font-size: 0.9rem;
    color: #666;
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

.goal-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.btn-show, .btn-edit, .btn-delete, .btn-new-goal {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-show {
    background-color: #4caf50;
    color: white;
}

.btn-edit {
    background-color: #ffc107;
    color: white;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}

.btn-new-goal {
    background-color: #2196f3;
    color: white;
    margin-top: 20px;
    padding: 15px 25px;
    font-size: 1.2rem;
}

.btn-show:hover, .btn-edit:hover, .btn-delete:hover, .btn-new-goal:hover {
    opacity: 0.9;
}

.no-goals {
    font-size: 1.2rem;
    color: #888;
    margin-top: 20px;
}