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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.env-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 10px;
}

.env-badge.dev {
    background: #ffd93d;
    color: #333;
}

.env-badge.prod {
    background: #28a745;
    color: white;
}

main {
    padding: 40px;
}

.step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.required {
    color: #e74c3c;
}

.hint {
    font-size: 0.85em;
    color: #999;
    font-weight: 400;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.counter {
    text-align: right;
    font-size: 0.85em;
    color: #999;
    margin-top: 5px;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-buttons .btn-secondary {
    flex: 0 0 150px;
}

.action-buttons .btn-primary {
    flex: 1;
}

/* Résultat validation */
.validation-result {
    margin-bottom: 30px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-item.valid {
    background: #d4edda;
    border: 2px solid #28a745;
}

.summary-item.invalid {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.summary-item.total {
    background: #d1ecf1;
    border: 2px solid #17a2b8;
}

.summary-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-item.valid .summary-number {
    color: #28a745;
}

.summary-item.invalid .summary-number {
    color: #dc3545;
}

.summary-item.total .summary-number {
    color: #17a2b8;
}

.summary-label {
    font-size: 1em;
    font-weight: 600;
    color: #555;
}

/* Listes emails */
.email-list {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
}

.email-list.valid-list {
    background: #f8fff9;
    border: 2px solid #28a745;
}

.email-list.invalid-list {
    background: #fff8f8;
    border: 2px solid #dc3545;
}

.email-list h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.email-list ul {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.email-list li {
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    font-size: 0.95em;
}

.email-list.invalid-list li {
    border-left-color: #dc3545;
}

.reason {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

/* Résultat envoi */
.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.success-message h3 {
    color: #28a745;
    font-size: 2em;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.3em;
    color: #155724;
}

footer {
    background: #f8f9fa;
    padding: 20px 40px;
    text-align: center;
    color: #666;
}

footer p {
    margin: 5px 0;
}

.warning {
    color: #ff6b6b;
    font-weight: 600;
}

.warning-email {
    border-left-color: #ffc107 !important;
    background: #fff9e6 !important;
}

.info-note {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    font-size: 0.9em;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 20px;
    }
    
    .summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-secondary {
        flex: 1;
    }
}