/* Styles pour l'administration - Palette La Porte du Cœur */
:root {
    --color-beige: #F9F0E4;
    --color-sky-blue: #F9F0E4;
    --color-blue: #4A90A4;
    --color-green: #5b8647;
    --color-red: #D85A5A;
    --color-orange: #FF6B35;
    --color-orange-dark: #E55A2B;
    --color-text-dark: #2C3E50;
    --color-text-light: #6C757D;
    --color-white: #FFFFFF;
    --color-light-gray: #F9F0E4;
    --color-gradient-light: #D96B2F;
    --color-gradient-dark: #D35355;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #F9F0E4;
    margin: 0;
}

/* Header admin */
.admin-header {
    background: linear-gradient(135deg, var(--color-gradient-light) 0%, var(--color-gradient-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(217, 107, 47, 0.3);
}

.admin-header h1 {
    font-family: 'Philosopher', sans-serif;
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

.header-actions {
    margin-top: 20px;
}

/* Containers */
.table-container,
.form-container {
    background: var(--color-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(74, 144, 164, 0.1);
    overflow-x: auto;
}

.form-container {
    padding: 30px;
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--color-text-light);
    font-size: 0.9em;
}

.form-errors {
    color: var(--color-red);
    font-size: 0.9em;
    margin-top: 5px;
}

/* Answers section */
.answers-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.answer-item {
    background: #F9F0E4;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #E0E7EF;
    transition: box-shadow 0.3s ease;
}

.answer-item:hover {
    box-shadow: 0 2px 8px rgba(74, 144, 164, 0.1);
}

.answer-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.answer-item-header h4 {
    margin: 0;
    color: var(--color-blue);
    font-weight: 600;
}

/* Buttons */
.btn-action,
.btn-new {
    background: var(--color-white);
    color: var(--color-gradient-dark);
    border: 2px solid var(--color-white);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.btn-action:hover,
.btn-new:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-gradient-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-remove {
    background: var(--color-red);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #C04A4A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(216, 90, 90, 0.3);
}

.btn-send-result-email {
    background: var(--color-blue);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-send-result-email:hover {
    background: var(--color-gradient-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mail-sent {
    color: var(--color-green);
    font-size: 0.9em;
    white-space: nowrap;
}

.mail-not-sent {
    color: var(--color-text-light);
    font-size: 0.9em;
}

.btn-add-answer {
    background: linear-gradient(135deg, var(--color-gradient-light) 0%, var(--color-gradient-dark) 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(217, 107, 47, 0.3);
}

.btn-add-answer:hover {
    background: linear-gradient(135deg, var(--color-gradient-dark) 0%, var(--color-gradient-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 107, 47, 0.4);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-gradient-light) 0%, var(--color-gradient-dark) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 107, 47, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--color-gradient-dark) 0%, var(--color-gradient-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 107, 47, 0.4);
}

.btn-cancel {
    background: var(--color-text-light);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #5A6C7D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #F9F0E4;
    font-weight: 600;
    color: var(--color-text-dark);
}

tr:hover {
    background: #F9F0E4;
}

.question-text {
    max-width: 400px;
    word-wrap: break-word;
}

/* Badges */
.percentage-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-gradient-light) 0%, var(--color-gradient-dark) 100%);
    color: white;
    font-weight: 600;
    margin: 2px;
    font-size: 0.9em;
    box-shadow: 0 2px 6px rgba(74, 144, 164, 0.2);
}

.answer-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    background: #F9F0E4;
    color: var(--color-text-dark);
    font-size: 0.85em;
    margin: 2px;
    border: 1px solid #E0E7EF;
}

.dominant-type {
    font-weight: bold;
    color: var(--color-blue);
}

.answered-count {
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 4px 10px;
    background: #F9F0E4;
    border-radius: 12px;
    display: inline-block;
    font-size: 0.95em;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid var(--color-green);
    border-left: 4px solid var(--color-green);
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid var(--color-red);
    border-left: 4px solid var(--color-red);
}

/* No data */
.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

