body {
    font-family: Arial, sans-serif;
    background-color: #c6ede3;
    margin: 0;
    padding: 0;
    /* Pour un iframe : élimine sa propre scrollbar si la hauteur est ajustée */
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px; /* Augmente ici */
    margin: 40px auto;
    padding: 30px 35px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid #0fd3a0;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #0033a0;
    font-size: 28px;
    margin: 0 0 18px;
    position: relative;
    line-height: 1.2;
}

h1::after {
    content: "";
    display: block;
    width: 100%; /* ou 100% si tu préfères un trait pleine largeur */
    height: 1.5px;
    background: #0fd3a0;
    margin: 14px auto 0;
    border-radius: 2px;
}

form label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
    color: #005177;
}

form input, form select, form button {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 18px;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input:focus, form select:focus {
    outline: 2px solid #0fd3a0;
    border-color: #0fd3a0;
}

small {
    display: block;
    color: #555;
    font-size: 0.80em;
    margin: -10px 0 14px;
    font-style: italic;
    line-height: 1.35;
}

form button {
    background-color: #0033a0;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    font-weight: bold;
    transition: background .18s, transform .12s;
}

form button:hover {
    background-color: #1e7de4;
}

form button:active {
    transform: scale(.97);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

table th, table td {
    text-align: left;
    padding: 11px 10px;
    border-bottom: 1px solid #e3e3e3;
    font-size: 15px;
}

table th {
    background-color: #f5f7f8;
    font-weight: 600;
    color: #00395e;
}

.montant {
    text-align: right;
    white-space: nowrap;
}

.total-ttc {
    color: #0033a0;
    font-weight: bold;
}

a, .btn-blue {
    display: inline-block;
    margin-top: 24px;
    text-decoration: none;
    color: #0033a0;
    font-weight: 600;
}

.btn-blue {
    padding: 10px 24px;
    background: #0033a0;
    color: #fff !important;
    border-radius: 6px;
    transition: background .2s;
    box-shadow: 0 2px 6px rgba(25,118,210,0.12);
}

.btn-blue:hover {
    background: #1565c0;
}

@media (max-width: 760px) {
    .container {
        margin: 25px auto;
        padding: 22px 18px;
        max-width: 100%;
        border-radius: 0;
    }
    h1 { font-size: 23px; }
    h1::after { width: 180px; }
    table th, table td { font-size: 14px; padding: 8px 6px; }
    form input, form select, form button { font-size: 15px; }
}