:root {
      --bg: #f9f9fb;
      --card: #ffffff;
      --txt: #1f2937;
      --muted: #6b7280;
      --primary: #0f62fe; /* bleu discret */
      --ring: rgba(15, 98, 254, .25);
      --br: 14px;
      --shadow: 0 8px 24px rgba(0,0,0,.08);
    }
header {
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

main {
    padding: 40px;
}

form {
    display: inline-block;
    text-align: left;
    margin-top: 20px;
}

input[type="email"],
input[type="file"] {
    display: block;
    margin: 10px 0;
    padding: 8px;
    width: 300px;
}

button {
    padding: 10px 20px;
    background: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.error {
    color: red;
    margin-top: 10px;
}


body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    text-align: center;
}
*{ box-sizing: border-box; }
    body{ background:var(--bg); color:var(--txt); text-align:initial; }

    .container{ max-width: 1120px; margin: 40px auto; padding: 0 16px; }

    header.app{
      background: var(--card);
      border-bottom: 1px solid #e5e7eb;
      position: sticky; top: 0; z-index: 10;
    }
    header.app .wrap{ max-width: 980px; margin: 0 auto; padding: 18px 16px; display:flex; align-items:center; gap:12px; }
    .brand{ font-weight:700; letter-spacing:.2px; }

    .card{ background: var(--card); border:1px solid #ececec; border-radius: var(--br); box-shadow: var(--shadow); }

    .form-shell{ padding: 8px; }
    .progress{ display:flex; align-items:center; gap:10px; padding:16px; border-bottom:1px solid #eee; }
    .step{ display:flex; align-items:center; gap:8px; color:var(--muted); }
    .step .dot{ width:10px; height:10px; border-radius:999px; background:#e5e7eb; }
    .step.active{ color:var(--txt); font-weight:600; }
    .step.active .dot{ background: var(--primary); }
    .step.done .dot{ background: #10b981; }

    details.accordion{ border-top:1px solid #f1f1f1; }
    details.accordion summary{
      list-style: none; cursor: pointer; user-select:none; padding:18px 22px; font-weight:600;
      display:flex; align-items:center; justify-content:space-between;
    }
    details.accordion[disabled] summary{ color:#b8b8b8; cursor:not-allowed; }
    details.accordion .section{ padding: 0 22px 24px; }

    .grid{ display:grid; gap:14px; }
    .grid > .field{ min-width:0; }
    .grid > .cols-span-2{ grid-column: span 2; }
    .grid > .cols-span-3{ grid-column: span 3; }
    .grid.cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
    @media (max-width: 840px){ .grid.cols-2, .grid.cols-3{ grid-template-columns: 1fr; } }

    label{ font-size:.92rem; font-weight:600; color:#374151; }
    .hint{ font-size:.82rem; color:var(--muted); }

    .field{ display:flex; flex-direction:column; gap:6px; }
    input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea, select{
      appearance:none; width:100%; padding:12px 14px; border-radius:12px; border:1px solid #e5e7eb; background:#fff;
      outline:none; transition: box-shadow .12s ease, border-color .12s ease; box-sizing: border-box;
    }
    textarea{ min-height: 120px; resize: vertical; }
    input:focus, textarea:focus, select:focus{ border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }

    .row-actions{ display:flex; gap:10px; justify-content:flex-end; padding: 16px 22px 22px; border-top:1px solid #f1f1f1; }
    .btn{ border:0; border-radius: 999px; padding: 12px 18px; font-weight:600; cursor:pointer; }
    .btn.primary{ background: var(--primary); color:#fff; }
    .btn.ghost{ background:#eef2ff; }
    .btn[disabled]{ opacity:.5; cursor:not-allowed; }

    .files{ display:flex; gap:12px; flex-wrap:wrap; }
    .inline{ display:flex; gap:10px; align-items:center; }

    .success{ display:none; padding:14px 18px; background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; border-radius:12px; margin-top:16px; }
    .error{ color:#b91c1c; margin-top:8px; }