{
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 25px;
    font-family: Arial, sans-serif;
    color: #222;
    background: #f3f4f6;
}

.conteneur {
    max-width: 620px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

h1, h2, p {
    text-align: center;
}

label {
    display: block;
    margin-top: 18px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-top: 7px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 5px;
}

button {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    border: none;
    border-radius: 5px;
    background: #222;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.qr-resultat {
    margin-top: 30px;
    text-align: center;
}

.qr-resultat img {
    width: 280px;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.nom-wifi {
    font-size: 24px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.erreur {
    color: #b00020;
    text-align: center;
}

@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        background: white;
        padding: 0;
    }

    .conteneur {
        max-width: none;
        border: none;
        padding: 0;
    }

    .formulaire, .erreur, .actions, .explication {
        display: none !important;
    }

    .qr-resultat {
        display: block;
        margin-top: 25mm;
        break-inside: avoid;
    }

    .qr-resultat img {
        width: 90mm;
        height: 90mm;
    }

    h2 {
        font-size: 24pt;
    }

    .nom-wifi {
        font-size: 22pt;
    }

    p {
        font-size: 14pt;
    }
}