body {
    background-image: url('assets/fond.jpg'); 
    background-size: cover;
    background-position: center; 
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background-color: rgba(255, 255, 255, 1); 
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); 
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}

h1, h2 { text-align: center; color: #333; }

.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input, textarea, select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Grille pour mettre Nom et Prénom côte à côte par exemple */
.row { display: flex; gap: 10px; }
.col { flex: 1; }

/* Zone de Signature */
.signature-container {
    border: 2px dashed #ccc;
    background-color: #fafafa;
    position: relative;
    height: 200px;
    margin-bottom: 10px;
}
canvas { width: 100%; height: 100%; }

/* Boutons */
.btn-group { display: flex; gap: 10px; margin-top: 20px; }
button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-clear { background: #e74c3c; max-width: 100px; }
.btn-download { background: #3498db; }
.btn-email { background: #27ae60; }
button:hover { opacity: 0.9; }

@media (max-width: 768px) {
   
    .row {
        flex-direction: column;
        gap: 0;
    }

    .col {
        margin-bottom: 10px;
    }
    .container {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}
canvas {
    touch-action: none; 
}