/* Styles pour la partie publique du plugin Label IGE */

/* Styles généraux */
.label-ige-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.label-ige-header {
    margin-bottom: 30px;
    text-align: center;
}

.label-ige-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.label-ige-header p {
    font-size: 16px;
    color: #666;
}

.label-ige-content {
    margin-top: 30px;
}

/* Formulaires */
.label-ige-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.label-ige-form-step {
    display: none;
}

.label-ige-form-step.active {
    display: block;
}

.label-ige-form-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.label-ige-form-row {
    margin-bottom: 20px;
}

.label-ige-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.label-ige-form-row input[type="text"],
.label-ige-form-row input[type="date"],
.label-ige-form-row input[type="url"],
.label-ige-form-row textarea,
.label-ige-form-row select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.label-ige-form-row textarea {
    min-height: 120px;
}

.label-ige-form-row .description {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.label-ige-form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.label-ige-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.label-ige-btn:hover {
    background-color: #005f8b;
    color: #fff;
}

.label-ige-btn-secondary {
    background-color: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
}

.label-ige-btn-secondary:hover {
    background-color: #eee;
    color: #555;
}

/* Options de type de contenu */
.label-ige-content-types {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.label-ige-content-type-option {
    flex: 1 0 calc(50% - 15px);
    padding: 20px;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.label-ige-content-type-option:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.label-ige-content-type-option.selected {
    background-color: #e6f7ff;
    border-color: #0073aa;
}

.label-ige-content-type-option h3 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 18px;
}

.label-ige-content-type-option p {
    color: #666;
    font-size: 14px;
}

/* Questionnaires */
.label-ige-questionnaire {
    margin-top: 30px;
}

.label-ige-question {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.label-ige-question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.label-ige-question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label-ige-question-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.label-ige-question-option:hover {
    background-color: #f0f0f0;
}

.label-ige-question-option.selected {
    background-color: #e6f7ff;
    border-color: #0073aa;
}

.label-ige-question-option input[type="radio"] {
    margin-right: 10px;
}

.label-ige-question-option-label {
    font-size: 16px;
}

/* Résultats */
.label-ige-result {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.label-ige-result-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.label-ige-result-score {
    margin: 30px 0;
}

.label-ige-score-gauge {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

.label-ige-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.label-ige-score-label {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.label-ige-score-vert {
    background-color: #5cb85c;
}

.label-ige-score-bleu {
    background-color: #5bc0de;
}

.label-ige-score-violet {
    background-color: #9b59b6;
}

.label-ige-result-actions {
    margin-top: 30px;
}

.label-ige-result-download {
    margin-top: 20px;
}

/* Affichage du projet */
.label-ige-project {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.label-ige-project-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.label-ige-project-header h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.label-ige-project-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.label-ige-project-meta span {
    margin-bottom: 8px;
}

.label-ige-project-content {
    margin-bottom: 30px;
}

.label-ige-project-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.label-ige-project-description {
    margin-bottom: 25px;
    line-height: 1.6;
}

.label-ige-project-tools {
    margin-bottom: 25px;
    line-height: 1.6;
}

.label-ige-project-types {
    margin-bottom: 25px;
}

.label-ige-project-type {
    margin-bottom: 20px;
}

.label-ige-project-type-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.label-ige-project-type-score {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-weight: 600;
}

.label-ige-project-responses {
    margin-top: 15px;
}

.label-ige-project-response {
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.label-ige-project-response-question {
    font-weight: 600;
    margin-bottom: 5px;
}

.label-ige-project-response-answer {
    color: #666;
}

/* Page créateur */
.label-ige-creator-projects {
    margin-top: 30px;
}

.label-ige-project-item {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.label-ige-project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.label-ige-project-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.label-ige-project-item-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.label-ige-project-item-number {
    font-size: 14px;
    color: #666;
}

.label-ige-project-item-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.label-ige-project-item-score {
    display: inline-block;
    margin-bottom: 15px;
}

.label-ige-project-item-score span {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

.label-ige-project-item-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Recherche */
.label-ige-search-form {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.label-ige-search-input {
    display: flex;
}

.label-ige-search-input input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.label-ige-search-input button {
    padding: 12px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
}

.label-ige-search-input button:hover {
    background-color: #005f8b;
}

.label-ige-search-results {
    margin-top: 30px;
}

.label-ige-search-result {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.label-ige-search-result-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.label-ige-search-result-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.label-ige-search-result-meta {
    font-size: 14px;
    color: #666;
}

.label-ige-search-result-score {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

.label-ige-search-result-actions {
    margin-top: 15px;
}

/* Messages */
.label-ige-notice {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.label-ige-notice-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.label-ige-notice-error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.label-ige-notice-warning {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
}

.label-ige-notice-info {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .label-ige-content-type-option {
        flex: 1 0 100%;
    }
    
    .label-ige-form {
        padding: 20px;
    }
    
    .label-ige-form-title {
        font-size: 20px;
    }
    
    .label-ige-question-text {
        font-size: 16px;
    }
    
    .label-ige-score-gauge {
        width: 150px;
        height: 150px;
    }
    
    .label-ige-score-value {
        font-size: 28px;
    }
    
    .label-ige-project-header h2 {
        font-size: 22px;
    }
}
