/* Calculateurs Pratiques - Style Principal */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

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

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

header h1 a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 700;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

header nav ul li a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

header nav ul li a:hover {
    color: #1e40af;
}

/* Mobile menu */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Main content */
main {
    min-height: 60vh;
    padding: 2rem 0;
}

h1 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: 1.25rem;
    color: #374151;
    margin: 1.5rem 0 0.5rem 0;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #1e40af;
}

/* Buttons */
button, .btn {
    background: #1e40af;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover, .btn:hover {
    background: #1e3a8a;
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

/* Results */
.result-box {
    background: #eff6ff;
    border-left: 4px solid #1e40af;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.result-box h3 {
    color: #1e40af;
    margin-top: 0;
}

/* Footer */
footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #6b7280;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #1e40af;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}
