@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 200px;
    height: 80px;
    margin-bottom: 10px;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 850px;
    max-width: 90%;
    margin-top: 20px;
}

h1, h2 {
    text-align: center;
    color: #333;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-button {
    background-color: #007bff;
    color: white;
    margin-top: 10px;
}

.add-button:hover {
    background-color: #0056b3;
}

.calculate-button {
    background-color: #28a745;
    color: white;
    width: 100%;
    margin-top: 20px;
}

.calculate-button:hover {
    background-color: #218838;
}

.offer-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section p {
    margin: 5px 0;
    font-size: 1.1em;
}

.bold-text {
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.15em;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 500;
}

.admis {
    color: green;
    font-weight: bold;
}

.ecarte {
    color: red;
    font-weight: bold;
}

.button-section {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.download-button {
    background-color: #17a2b8;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.download-button:hover {
    background-color: #138496;
}

.back-button {
    background-color: #6c757d;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #5a6268;
}

.Imprimé-button {
    background-color: #6c757d;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.Imprimé-button:hover {
    background-color: #5a6268;
}

/* Styles pour l'impression */
@media print {
    body {
        font-family: 'Montserrat', sans-serif;
        background-color: white;
        color: black;
        margin: 0;
        padding: 0;
    }

    .header {
        text-align: center;
        margin-bottom: 20px;
    }

    .logo {
        width: 150px;
        height: auto;
        margin-bottom: 10px;
    }

    .container {
        padding: 20px;
        border: none;
        box-shadow: none;
    }

    h1, h2 {
        color: black;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    th, td {
        padding: 10px;
        border: 1px solid #ddd;
        text-align: left;
    }

    th {
        background-color: #f8f9fa;
    }

    .admis {
        color: green;
        font-weight: bold;
    }

    .ecarte {
        color: red;
        font-weight: bold;
    }

    .button-section {
        display: none; /* Masquer les boutons lors de l'impression */
    }
}