/* Global Styles */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Évite le décalage horizontal */
}

.container {
    max-width: 100%;
    padding: 0 10px; /* Ajoute une marge pour éviter que le contenu touche les bords */
}

img {
    max-width: 100%;
    height: auto;
}

/* Media Queries pour les petits écrans */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Réduit la taille de la police sur les petits écrans */
    }
    .container {
        padding: 10px; /* Ajoute plus de padding sur les petits écrans */
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

/* Header */
header {
    background-color: #d32f2f;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.home-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.left img {
    width: 200px;
    margin: 10px;
}

.right {
    max-width: 500px;
    padding: 20px;
}

.btn {
    background-color: #d32f2f;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background-color: #b71c1c;
}

/* Loan Form */
#loan-form {
    background-color: white;
    padding: 20px;
    margin: 30px auto;
    width: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#loan-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

#loan-form select,
#loan-form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-envoyer {
    background-color: green;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn-envoyer:hover {
    background-color: darkgreen;
}

/* Footer */
footer {
    background-color: #d32f2f;
    color: white;
    padding: 20px;
    margin-top: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    display: inline;
    margin: 0 10px;
}

.footer-links li a {
    color: white;
    text-decoration: none;
}

.footer-links li a:hover {
    text-decoration: underline;
}
