* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 1065px;
    max-width: 100%;
}

/* Sélecteur de secteur */
.sector-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.sector-btn {
    padding: 8px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: white;
    font-size: 12pt;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.sector-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.sector-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Section 2 colonnes */
.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
    margin-bottom: 15px;
}

.column {
    background: #e5e5e5;
    border-radius: 12px;
    padding: 15px;
}

/* Titres colonnes */
.column-title {
    font-size: 12pt;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Liste articles */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d0d0d0;
}

.article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Labels articles */
.article-label {
    font-size: 11pt;
    font-weight: 400;
    color: #000000;
    margin-bottom: 3px;
}

/* Input JSON */
.json-input {
    width: 100%;
    padding: 8px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.75em;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s ease;
    resize: vertical;
    background: white;
    min-height: 80px;
}

.json-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

/* Bouton */
.button-wrapper {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.submit-btn {
    width: 350px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Section résultats */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Flash boxes */
.flash-box {
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flash-title {
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.flash-text {
    font-size: 0.9em;
    line-height: 1.5;
}

/* Couleurs des flash boxes */
.flash-sms {
    background: #f8d7da;
    color: #721c24;
}

.flash-sms .flash-title {
    color: #491217;
}

.flash-explanation {
    background: #cce5ff;
    color: #004085;
}

.flash-explanation .flash-title {
    color: #002752;
}

/* Responsive */
@media (max-width: 1065px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .sector-selector {
        flex-direction: column;
    }
    
    .sector-btn {
        width: 100%;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .submit-btn {
        width: 100%;
    }
}