:root {
    --accent: #0f927b;
    --input-bg: #fcfcff;
    --input-border: #c8c8df;
    --input-radius: 10px;
    --label-size: 1.25em;
    --input-size: 1.18em;
    --legend-size: 1.15em;
    --btn-radius: 8px;
  }
  
  body {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 840px;
    margin: auto;
    padding: 24px 6vw;
    background: #f3f6fa;
    font-size: 1.125em;
  }
  
  h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.6em;
    color: #222;
  }
  
  form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(40,60,110,0.095);
    padding: 18px 14px 28px 14px;
  }
  
  label {
    display: block;
    font-size: var(--label-size);
    margin-top: 18px;
    color: #222c54;
    font-weight: 500;
    letter-spacing: .01em;
  }
  
  input[type="text"], 
  input[type="email"], 
  input[type="tel"], 
  input[type="number"],
  textarea {
    width: 100%;
    padding: 14px 13px;
    font-size: var(--input-size);
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--input-radius);
    margin-top: 7px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
    box-shadow: 0 1px 4px rgba(80,110,160,0.04);
  }
  
  input:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(255,152,0,0.06);
  }
  
  textarea {
    resize: vertical;
    min-height: 54px;
    max-height: 340px;
  }
  
  fieldset {
    margin-top: 18px;
    padding: 21px 16px 16px 16px;
    border-radius: 11px;
    border: 2px solid #ededfa;
    background: #fafbfe;
    position: relative;
  }
  legend {
    font-size: var(--legend-size);
    background: var(--accent);
    color: white;
    border-radius: 5px;
    padding: 6px 14px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
  }
  .menu-header {
    background: #0f927b; padding: 0; margin-bottom: 30px;
    display: flex; align-items: center; box-shadow:0 1px 7px #d0dacf;
}
.menu-header .nav {
    display:flex; gap:10px; padding:0; margin: 0 40px;
}
.menu-header .nav a {
    display:block; color:#fff; text-decoration:none;
    font-weight:bold; padding:13px 24px;
    border-bottom: 3px solid rgba(0,0,0,0);
    transition:background .2s, border .2s;
    font-size: 1.09em !important;
}
.menu-header .nav a.active, .menu-header .nav a:hover {
    background: #09a390;font-weight:900;border-bottom:3px solid #fff;
}
.menu-header .logo {
    font-size:1.2em; color:#fff; font-weight:bold;
    letter-spacing: 1px; margin-right:30px;
    padding:0 24px;
}
@media (max-width:600px){
    .menu-header .logo { font-size:1em; padding:0 8px;}
    .menu-header .nav a { padding:10px 12px; font-size:1em;}
}
  /* Checkboxes ergonomiques */
  .checkbox-list {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 24px;
  }
  .checkbox-list label {
    font-size: 1.12em;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    padding-left: 2px;
    margin-bottom: 0;
  }
  .checkbox-list input[type="checkbox"] {
    width: 25px;
    height: 25px;
    margin-right: 12px;
    accent-color: var(--accent);
    flex-shrink: 0;
    border-radius: 7px;
  }
  
  input[type="file"] {
    font-size: var(--input-size);
    margin-top: 8px;
    background: none;
  }
  
  #imeiPhotoPreview {
    max-width: 100%; 
    margin-top: 8px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(80,120,180,0.14);
    display: none;
  }
  
  .btn {
    margin-top: 27px;
    padding: 14px 28px;
    font-size: 1.19em;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--btn-radius);
    box-shadow: 0 2px 16px rgba(255,152,0,0.08);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.16s, box-shadow .17s;
    min-width: 120px;
  }
  .btn:active {
    background: #e17a00;
    box-shadow: 0 1px 8px rgba(255,152,0,0.06);
  }
  .btn:disabled {
    background: #efefef;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
  }
  
  .signature-block {
    display: flex;
    border: 3px solid var(--accent);
    border-radius: 11px;
    margin-top: 22px;
    background: #fff8e8;
    box-shadow: 0 2px 10px rgba(255,152,0,0.04);
  }
  
  .signature-mentions {
    flex: 1.1 1 270px;
    font-size: 1.1em;
    color: #666;
    padding: 18px 10px 10px 18px;
    background: #fff;
    line-height: 1.45;
    border-right: 2px solid var(--accent);
  }
  
  .signature-zone {
    flex: 1 1 250px;
    background: #f8f8f8;
    position: relative;
    min-width: 200px;
    padding: 14px 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-radius: 0 8px 8px 0;
  }
  
  .signature-label {
    font-weight: bold;
    margin-bottom: 6px;
    margin-left: 5px;
    color: #111;
    font-size: 1.06em;
  }
  
  .signature-canvas-wrap {
    width: 99%; /* évite que le canvas déborde */
    position: relative;
    display: block;
  }
  #signatureCanvas {
    border: 1.8px solid #bbb;
    border-radius: 7px;
    width: 100%;
    height: 170px;
    background: #fafafb;
    touch-action: none;
    display: block;
    outline: none;
  }
  
  #signatureOverlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.82);
    color: #555;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35em;
    pointer-events: auto;
    z-index: 1000;
    border-radius: 7px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  
  /* Responsive tablette */
  @media (max-width: 900px) {
    body { padding: 14px 2vw; }
    .signature-block { flex-direction: column;}
    .signature-mentions, .signature-zone {border-right: 0; border-bottom: 2px solid var(--accent);}
    .signature-zone {border-radius: 0 0 8px 8px;}
    fieldset { padding:13px 6vw 13px 6vw;}
  }
  
  /* Pour la "grande tablette" ou desktop HD */
  @media (min-width:1280px){
    html { font-size: 1.22em;}
  }
  
  ::-webkit-input-placeholder { color: #999; }
  ::-moz-placeholder { color: #999; }
  :-ms-input-placeholder { color: #999; }
  ::placeholder { color: #aaa; }
  .steps-nav { display: flex; justify-content: center; margin-bottom:20px;}
  .steps-nav .step {
    padding: 7px 23px; margin: 0 5px; border-radius: 8px;
    font-weight:bold; font-size:1.08em; color:#088;
    background: #eafaf5;
    border: 2px solid #0f927b;
    transition: background .2s;
  }
  .steps-nav .current {
    background: #0f927b; color: #fff; border-color: #0f927b;
  }
  .nav-btns {
    display:flex;justify-content:space-between;margin-top:32px;
  }