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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.search-form {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto 30px;
}

.input-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.input-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    display: block;
    width: 100%;
}

.input-group input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 300px;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-search {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
}

.examples {
    text-align: center;
    color: white;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.examples code {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 5px;
}

.stats {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 15px 30px;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 30px;
}

.alert {
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.alert-error { background: #fee; color: #c33; border: 2px solid #fcc; }
.alert-info { background: rgba(255,255,255,0.9); color: #666; }

.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.resultats-table {
    width: 100%;
    border-collapse: collapse;
}

.resultats-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
}

.resultats-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.resultats-table tr:hover {
    background: #f8f9ff;
}

.resultats-table tr:last-child td {
    border-bottom: none;
}

.btn-back, .btn-download {
    display: inline-block;
    padding: 12px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.btn-back:hover, .btn-download:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-download {
    padding: 10px 12px;
    font-size: 1.2em;
    min-width: 50px;
    text-align: center;
}

footer {
    text-align: center;
    color: rgba(255,255,255,0.8);
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group input[type="text"] {
        min-width: auto;
    }
    
    .resultats-table {
        font-size: 0.9em;
    }
    
    .resultats-table th,
    .resultats-table td {
        padding: 10px 8px;
    }
}
