/* c:\wamp64\www\php83\barometroa\style.css */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background: #f4f4f4; color: #333; }
.container { max-width: 1000px; margin: 20px auto; padding: 20px; background: white; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
h1, h2, h3 { color: #2c3e50; }
.result-card { border-top: 4px solid #3498db; margin-top: 30px; padding-top: 20px; }
.axis-detail { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.axis-detail ul { list-style: none; padding: 0; }
.axis-detail li { padding: 5px 0; }
.axis-detail li.inactive { color: #ccc; }
.axis-detail li.active { color: #27ae60; font-weight: 500; }
.comment { font-style: italic; color: #555; margin-left: 20px; font-size: 0.9em; border-left: 2px solid #ddd; padding-left: 5px; margin-top: 2px; }
.comment-trad { font-style: italic; color: #7f8c8d; margin-left: 40px; font-size: 0.9em; border-left: 2px solid #bdc3c7; padding-left: 5px; margin-top: 5px; }
.trad-label { font-weight: bold; font-style: normal; font-size: 0.85em; color: #95a5a6; text-transform: uppercase; }
.comment-empty { font-style: italic; color: #95a5a6; font-size: 0.85em; margin-left: 20px; margin-top: 2px; }
.login-form { max-width: 300px; margin: 100px auto; padding: 20px; background: white; border: 1px solid #ddd; text-align: center; }
.login-form input { width: 90%; padding: 10px; margin: 10px 0; }
.login-form button { width: 100%; padding: 10px; background: #3498db; color: white; border: none; cursor: pointer; }

.commune-item { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.commune-name { color: #2c3e50; border-left: 5px solid #3498db; padding-left: 10px; margin-bottom: 10px; }
.lists-sublist { list-style: none; padding: 0; margin: 0; }
.list-entry { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #f9f9f9; margin-bottom: 5px; border-radius: 4px; }
.list-info strong { display: block; font-size: 1.1em; color: #333; }
.list-head { font-size: 0.9em; color: #666; }
.list-count { font-size: 0.9em; color: #27ae60; font-weight: bold; margin-top: 2px; }
.btn-results { background: #3498db; color: white; padding: 8px 15px; text-decoration: none; border-radius: 4px; font-size: 0.9em; transition: background 0.3s; }
.btn-results:hover { background: #2980b9; }
.list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* Empêche le conteneur de se réduire */
}
.evaluation-status { font-style: italic; color: #7f8c8d; font-size: 0.9em; white-space: nowrap; }

.comment-box { margin-top: 5px; padding: 10px; border: 1px dotted #27ae60; border-radius: 5px;font-style: italic;
    color: #555;font-weight: 500;font-size: 0.9em;}

/* Styles from index.php */
.engagement-high { color: #27ae60; font-weight: bold; }
.engagement-medium { color: #f39c12; font-weight: bold; }
.engagement-low { color: #e74c3c; font-weight: bold; }
.engagement-none { color: #95a5a6; font-style: italic; }

/* Styles from admin.php */
.admin-container { max-width: 1200px; margin: 20px auto; padding: 20px; background: white; }
.commune-group { margin-bottom: 20px; border: 1px solid #ddd; padding: 15px; border-radius: 5px; }
.commune-title { font-size: 1.2em; font-weight: bold; color: #2c3e50; border-bottom: 2px solid #3498db; margin-bottom: 10px; padding-bottom: 5px; }
.sub-item { display: flex; justify-content: space-between; padding: 8px; border-bottom: 1px solid #eee; align-items: center; }
.sub-item:last-child { border-bottom: none; }
.status-dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.published { background-color: #27ae60; }
.unpublished { background-color: #e74c3c; }

.detail-header { background: #f9f9f9; padding: 15px; margin-bottom: 20px; border-left: 5px solid #3498db; }
.axis-section { margin-bottom: 30px; }
.axis-title { background: #333; color: white; padding: 10px; font-size: 1.1em; }
.question-item { margin: 10px 0; padding: 10px; border-bottom: 1px solid #eee; }
.question-text { font-weight: bold; }

.score-table { width: 100%; border-collapse: collapse; margin-top: 10px; table-layout: fixed; }
.score-table th, .score-table td { border: 1px solid #ddd; padding: 8px; text-align: center; }
.score-table th:first-child { width: 30%; }
.score-table th:last-child { width: 70%; }
.score-table th { background-color: #f2f2f2; }
.avg-row { font-weight: bold; background-color: #e8f6f3; }
.flash-message { position: fixed; top: 80px; right: 20px; background: #27ae60; color: white; padding: 15px; border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 1000; animation: fadeOut 0.5s ease 2.5s forwards; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

.top-bar-admin { display: flex; justify-content: space-between; align-items: center; background: #333; color: white; padding: 10px; }
.top-bar-admin a { color: white; text-decoration: none; margin: 0 10px; }

.edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.edit-form label { font-weight: bold; }
.edit-form input { width: 100%; padding: 5px; }
.edit-form .full-width { grid-column: span 2; }

/* Responsive Top Bar */
.top-bar { background: #333; color: white; padding: 10px; position: relative; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.logo-area { display: flex; align-items: center; justify-content: space-between; }
.logo-area img { height: 30px; vertical-align: middle; }
.logo-area a { color: white; text-decoration: none; font-weight: bold; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { color: white; text-decoration: none; font-size: 0.95em; white-space: nowrap; }
.hamburger { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 0 10px; }
.sep { color: #7f8c8d; margin: 0 2px; }

/* Mobile Styles */
@media (max-width: 768px) {
    .top-bar-content { flex-direction: column; align-items: stretch; }
    .logo-area { width: 100%; }
    .hamburger { display: block; }
    
    .nav-links { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        padding-top: 10px; 
        border-top: 1px solid #444;
        margin-top: 10px;
        gap: 0;
    }
    .nav-links.active { display: flex; }
    .nav-links a { display: block; width: 100%; padding: 10px 0; border-bottom: 1px solid #444; text-align: center; }
    .sep { display: none; }

    /* Chart & Layout Adjustments */
    .chart-container { height: 50vh !important; width: 100% !important; }
    .list-entry { flex-direction: column; align-items: flex-start; }
    .list-info { width: 100%; margin-bottom: 10px; }
    .list-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 5px; }
    .btn-results { flex: 1; text-align: center; }
    .translation-grid { grid-template-columns: 1fr; }
    .comment-trad { margin-left: 15px; }
    .top-bar-admin { flex-direction: column; gap: 10px; text-align: center; }
}

/* Admin Translation Grid */
.translation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; background: #f9f9f9; padding: 10px; border: 1px solid #eee; border-radius: 4px; }
.original-comment { font-size: 0.9em; color: #444; white-space: pre-wrap; }
.translation-input textarea { width: 100%; box-sizing: border-box; border: 1px solid #ccc; padding: 5px; font-family: inherit; }
@media (max-width: 768px) { .translation-grid { grid-template-columns: 1fr; } }
