
.section {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.section-title {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.input-group select,
.input-group input[type="text"],
.input-group input[type="number"] {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    color: #333;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.2s;
}

.input-group select:focus,
.input-group input[type="text"]:focus,
.input-group input[type="number"]:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.input-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* ---------- ZONE FICHIER (style comme la capture) ---------- */

.file-upload-zone {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    background: #fafafa;
    height: 46px;
    overflow: hidden;
}

.file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 180px;
    /* zone cliquable = bouton gris */
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-wrapper label {
    display: inline-block;
    width: 180px;
    text-align: center;
    padding: 12px 10px;
    background: #f0f0f0;
    color: #333;
    border-right: 1px solid #c7c7c7;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.file-input-wrapper label:hover {
    background: #e5e5e5;
}

.file-input-wrapper label:active {
    background: #d8d8d8;
}

.file-name {
    flex: 1;
    padding-left: 12px;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- BOUTONS ---------- */

.tab-content button {
    width: 100%;
    padding: 12px 24px;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 10px;
}

.tab-content button:hover:not(:disabled){ /*:not(.nav-link) { */
    background: #006cbd;
}

.tab-content button:disabled {
    background: #d0d0d0;
    color: #999;
    cursor: not-allowed;
}

.tab-content button.download-btn {
    background: #0078d4;
}

.tab-content button.download-btn:hover:not(:disabled) {
    background: #006cbd;
}

/* ---------- PRÉVISUALISATION & STATS ---------- */

.preview-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.preview-section h2 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.preview-section textarea {
    width: 100%;
    height: 400px;
    background: #fafafa;
    color: #333;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}

.preview-section textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: #fafafa;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.stat-item .label {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item .value {
    color: #0078d4;
    font-size: 28px;
    font-weight: 700;
}

.status {
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    border-left: 4px solid;
}

.status.error {
    background: #fef0f0;
    color: #c50f1f;
    border-color: #c50f1f;
}

.status.success {
    background: #f0fdf4;
    color: #107c10;
    border-color: #107c10;
}

.status.info {
    background: #f0f6ff;
    color: #0078d4;
    border-color: #0078d4;
}