 body {
        font-family: 'Open Sans', sans-serif;
        background-color: #fff;
        color: #0c2340;
        margin: 0;
        padding: 30px;
    }
        .group-form {
        position: relative;
        display: flex;
        align-items: center;
        /* border-bottom: 1px solid #0c2340; */ /* ligne continue */
        margin-bottom: 15px;
        font-family: 'Open Sans', sans-serif;
        }

        .group-form label {
        flex: 0 0 auto;
        white-space: nowrap;
        font-weight: 600;
        color: #0c2340;
        font-size: 15px;
        margin-right: 8px;
        }

        .group-form input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 15px;
        background: transparent;
        color: #0c2340;
        padding: 4px 0;
        border-bottom: 1px solid #000;
        }
    h1 {
        text-align: center;
        margin-bottom: 20px;
    }
    h1 img {
        display: block;       /* pour centrer */
        margin: 0 auto;       /* centrer horizontalement */
        width: 150px;         /* largeur fixe */
        height: 100px;        /* hauteur fixe */
        object-fit: contain;  /* conserver les proportions sans déformer */
    }
    form {
        max-width: 1000px;
        margin: 0 auto;
        color: #0c2340;
    }
    .header-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    label {
        display: block;
        font-weight: 600;
        margin-bottom: 0px;
    }
    input[type="text"] {
        width: 100%;
        border: none;
        border-bottom: 1px solid #0c2340;
        padding: 4px;
        font-size: 15px;
        background: transparent;
    }
    input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #f5f5f5 !important;
    background: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
    opacity: 0.7;
}
    p {
        font-size: 14px;
        margin-top: 0;
    }
    .columns {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    h3 {
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 8px;
        margin-top: 20px;
    }
    .checkbox-group label {
        font-weight: 400;
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 14px;
        margin-bottom: 5px;
    }
    input[type="checkbox"] {
        accent-color: #00a3af;
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }
input:disabled,
textarea:disabled,
select:disabled {
    background-color: #f5f5f5 !important;  /* Ajout de !important */
    background: #f5f5f5 !important;         /* Pour forcer aussi la propriété background */
    color: #999 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
    opacity: 0.6;
}
    .subtext {
        font-weight: 600;
        margin-top: 10px;
        font-size: 14px;
    }
    textarea {
        width: 100%;
        border: none;
        border-bottom: 1px solid #0c2340;
        height: 60px;
        background: transparent;
    }

     .section {
        max-width: 950px;
        margin: 0 auto;
    }
    .highlight {
        font-weight: 700;
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 15px;
    }
    .checkbox {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        margin-bottom: 30px;
    }
    input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #00a3af;
    }
    .footer {
        display: flex;
        justify-content: space-between;
        border-top: 1px solid transparent;
        margin-top: 20px;
        gap: 20px;
    }
    .footer div {
        flex: 1;
    }
    .footer label {
        display: block;
        font-weight: 700;
        font-size: 14px;
        margin-bottom: 5px;
    }
    .footer input {
        border: none;
        border-bottom: 1px solid #0c2340;
        width: 100%;
        background: transparent;
        height: 25px;
    }
.container {
    max-width: 950px;
    margin: 0 auto;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #00a3af;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.header .icon {
    width: 35px;
    height: 35px;
    border: 2px solid #00a3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a3af;
    font-size: 18px;
    font-weight: bold;
}
p {
    font-size: 14px;
    margin: 10px 0;
}
.bold {
    font-weight: 700;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00a3af;
}
h3 {
    font-weight: 700;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 5px;
}
.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 30px;
}
.footer div {
    flex: 1;
}
.footer label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}
.footer input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #0c2340;
    background: transparent;
    height: 25px;
}
a {
    color: #0c2340;
    text-decoration: underline;
}.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;

  border-radius: 8px;
}

.footer > div {
  flex: 1 1 45%;
  min-width: 250px;
}

.footer label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
  color: #333;
}

.footer input[type="date"],
.footer input[type="text"],
.footer button {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

#signature-pad {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1; /* garde les proportions sur mobile */
  border: 2px solid #000;
  border-radius: 8px;
  touch-action: none;
  display: block;
  margin-bottom: 10px;
}

.footer button {
  background-color: #00a3af;;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.footer button:hover {
  background-color: #0056b3;
}

/* Responsive mobile */

button[type="submit"]
{
    background-color: #00a3af;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #008c97;
}
.textarea-class {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea-class:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.textarea-class::placeholder {
    color: #9ca3af;
}

@media (max-width: 768px) {
    /* Header fields */
    .header-fields {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Columns */
    .columns {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Footer */
    .footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .footer > div {
        flex: 1 1 100% !important;
    }

    /* Signature pad */
    #signature-pad {
        height: 180px !important;
    }

    /* Submit button */
    form button[type="submit"] {
        width: 100% !important;
        font-size: 18px !important;
        padding: 12px !important;
    }
}