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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    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);
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

h2 {
    margin: 20px 0;
    color: #3498db;
}

h3 {
    margin: 15px 0;
    color: #2c3e50;
}

/* Form styles */
form {
    margin-top: 20px;
}

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

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

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.required {
    color: #e74c3c;
}

.help-text {
    margin-top: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Status messages */
.error, .success {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.error {
    background-color: #ffecec;
    color: #e74c3c;
    border-left: 5px solid #e74c3c;
}

.success {
    background-color: #e7f9e7;
    color: #27ae60;
    border-left: 5px solid #27ae60;
}

/* API response */
.result {
    margin-top: 30px;
}

.response-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid #eee;
}

pre {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    color: #2c3e50;
}

/* Style pour les liens dans la réponse API */
.api-link {
    color: #3498db;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s;
}

.api-link:hover {
    color: #2980b9;
}

.api-details {
    margin: 25px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
}

.api-details ul {
    list-style-type: none;
}

.api-details li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.api-details li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    input, select, .btn {
        padding: 10px;
        font-size: 14px;
    }
}
