html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* important pour iPhone */
}

body {
    font-family: 'Georgia', serif;

    background-image: url('fond3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* ✅ PC : effet parallaxe */

    color: #333;

    /* Hauteur pleine page */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


/* Formulaire centré et stylisé */
form {
    background-color: #ffffff;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Libellés */
label {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #5a3e36;
}

/* Champs de saisie */
input[type="text"],
input[type="email"],
textarea {
    font-family: Arial, sans-serif;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    /* important pour iPhone, évite le zoom auto */
    background-color: #fdfdfd;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #e07a5f;
}

/* Bouton d'envoi */
button {
    padding: 0.9rem;
    font-size: 16px;
    /* idem, pas en dessous de 16px */
    background-color: #a82318;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Georgia', serif;
    width: 100%;
}

button:hover {
    background-color: #bc614c;
}

/* Bouton de retour au shop */
.btn-retour {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 16px;
    font-family: 'Georgia', serif;
    color: #fff;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    z-index: 1000;
    cursor: pointer;
}

.btn-retour:hover {
    text-decoration: none;
    background-color: #fffae0;
    border-radius: 3px;
    padding: 2px 4px;
}

/* ✅ Patch iPhone : on annule le fixed */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
        min-height: 100svh;
        /* plein écran iOS */
    }
}

/* Responsive petits écrans */
@media (max-width: 480px) {
    form {
        padding: 1.5rem 1rem;
    }

    label {
        font-size: 0.9rem;
    }

    button {
        font-size: 15px;
        padding: 0.8rem;
    }
}