  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: #fff;
    color: #000;
    font: 1rem/1.5 system-ui, sans-serif;
  }
  main { max-width: 64rem; margin: 2rem auto; padding: 0 1.25rem; }
  .entete { max-width: 64rem; margin: 1.5rem auto 0; padding: 0 1.25rem; }
  .entete img { display: block; height: 5.5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
  .entete + main { margin-top: 1.25rem; }
  h1 { margin: 0 0 1rem; font-size: 1.85rem; line-height: 1.15; }
  h2 { margin: 0; font-size: 1.25rem; }
  p { margin: 0.5rem 0 1rem; }
  button, input, textarea { font: inherit; color: inherit; }
  button, input, textarea {
    border: 1px solid #595959;
    border-radius: 0.2rem;
    padding: 0.4rem 0.55rem;
    background: #fff;
  }
  button { cursor: pointer; }
  button:hover { background: #eee; }
  button:disabled { opacity: 0.5; cursor: default; }
  :focus-visible { outline: 2px solid #000; outline-offset: 2px; }
  label { display: grid; align-content: start; gap: 0.2rem; min-width: 0; font-size: 0.9rem; }
  input, textarea { width: 100%; min-width: 0; font-size: 1rem; }
  textarea { resize: vertical; }
  .atelier {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid #595959;
  }
  .barre {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
  }
  .exports { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .champs-atelier {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) minmax(12rem, 2fr) minmax(9rem, 1fr);
    gap: 0.75rem;
    margin: 0.9rem 0 1.1rem;
  }
  .commentaire-atelier { grid-column: 1 / -1; }
  .reglements { margin-bottom: 0.75rem; }
  .eleve {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    padding: 0.65rem 0;
    border-top: 1px solid #aaa;
    gap: 0.25rem 0.75rem;
  }
  .eleve h3 { margin: 0; font-size: 1rem; }
  .commentaire { margin-bottom: 0.4rem; }
  .actions-eleve { display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; }
  .texte-bouton {
    border: 0;
    background: transparent;
    padding: 0.1rem 0;
    text-decoration: underline;
    font-size: 0.85rem;
  }
  .paiement {
    display: grid;
    grid-template-columns: minmax(6rem, 1fr) minmax(0, 3fr) minmax(9rem, 1fr) auto;
    gap: 0.35rem 0.6rem;
    align-items: start;
    margin-bottom: 0.6rem;
  }
  .choix { min-width: 0; margin: 0; padding: 0; border: 0; }
  .choix legend { padding: 0; margin-bottom: 0.2rem; font-size: 0.9rem; }
  .options { display: flex; flex-wrap: wrap; gap: 0.15rem 0.7rem; }
  .options-shopify { flex-direction: column; }
  .options label { display: inline-flex; align-items: center; gap: 0.3rem; }
  .options input { width: 1em; height: 1em; margin: 0; padding: 0; accent-color: #000; }
  .mode-personnalise { margin-top: 0.3rem; }
  .mode-personnalise[hidden] { display: none; }
  .total { font-variant-numeric: tabular-nums; }
  .imprimer { border-color: #000; font-weight: 700; }
  .message { margin: 0.6rem 0 0; min-height: 1.5em; font-size: 0.9rem; }
  #envoi:empty { display: none; }
  #envoi.succes { color: #0a6b2d; font-weight: 700; }
  #envoi.erreur { color: #b00020; font-weight: 700; }
  #releve { display: none; }
  @media (max-width: 690px) {
    .champs-atelier { grid-template-columns: 1fr; }
    .eleve { grid-template-columns: 1fr; }
    .paiement { grid-template-columns: minmax(0, 1fr); }
    .options-shopify { flex-direction: row; }
    .paiement > button { justify-self: start; }
  }
  @page { size: A4; margin: 15mm; }
  @media print {
    body { font-size: 10pt; }
    #saisie { display: none; }
    .entete { max-width: none; margin: 0 0 6mm; padding: 0; }
    .entete img { height: 16mm; }
    #releve { display: block; max-width: none; margin: 0; padding: 0; }
    h1 { font-size: 17pt; }
    h2 { font-size: 12pt; }
    th, td { padding: 1.4mm 2mm; border-bottom: 1px solid #777; text-align: left; }
    td, h2, p { overflow-wrap: anywhere; }
    table { width: 100%; border-collapse: collapse; table-layout: fixed; }
    thead { display: table-header-group; }
    tr { break-inside: avoid; }
    .intro-atelier { break-inside: avoid; break-after: avoid; }
    .bloc-atelier { margin: 0 0 6mm; }
    .montant { text-align: right; }
    .commentaire-imprime { white-space: pre-wrap; }
    .total-imprime { break-inside: avoid; margin: 2mm 0 0; text-align: right; }
  }
