    body {
      font-family: 'Segoe UI', sans-serif;
      background: #f7fafc;
      color: #333;
      text-align: center;
      margin: 0;
      padding: 0;
      margin-bottom: 80px;
    }


    h1 {
      background: #0074D9;
      color: white;
      padding: 1rem;
      margin: 0;
    }

    .layout {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 40px;
    }

    .left-panel .container {
      display: flex;
      align-items: flex-start;
    }

    button {
      margin: 0.5rem;
      padding: 0.6rem 1.2rem;
      border: none;
      border-radius: 5px;
      background-color: #0074D9;
      color: white;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s;
    }

    button:hover {
      background-color: #005fa3;
    }

    #scene {
      position: relative;
      width: 100px;
      background: #e0e0ff;
      border: 1px solid #aaa;
    }

    #scene {
      position: relative;
      width: 100px;
      background-image: url("img/fond-chute.png");
      background-size: cover;
      background-position: bottom;
      border: 1px solid #aaa;
    }

    #ball {
      position: absolute;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      //background: red;
      left: 35px;
      top: 0;
    }

    #scale {
      width: 40px;
      position: relative;
      background: repeating-linear-gradient(to bottom,
          #ddd,
          #ddd 1px,
          transparent 1px,
          transparent 19px);
      border: 1px solid #aaa;
      margin-right: 10px;
    }

    .scale-label {
      position: absolute;
      left: 0;
      width: 100%;
      text-align: center;
      font-size: 0.8em;
      color: black;
    }

    .scale-label.top {
      top: 0;
      transform: translateY(-100%);
    }

    .scale-label.bottom {
      bottom: 0;
      transform: translateY(100%);
    }


    #scale-container {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    #scale-top,
    #scale-bottom {
      font-size: 0.8em;
      margin: 4px;
    }

    .controls {
      margin-bottom: 15px;
      font-size: 1em;
    }

    #info {
      margin: 20px 0;
      font-size: 1em;
    }

    #donnees {
      margin: 20px 0;
      font-size: 1em;
    }

    table {
      width: 100%;
      font-size: 0.9em;
      border-collapse: collapse;
      margin-top: 10px;
    }

    th,
    td {
      padding: 4px 8px;
      border: 1px solid #999;
      text-align: center;
    }

    .energy-line {
      display: flex;
      align-items: center;
      margin-bottom: 6px;
      gap: 10px;
    }

    .energy-label {
      white-space: nowrap;
      font-size: 1em;
      min-width: 220px;
    }

    .bar-container {
      flex-grow: 1;
      background-color: #eee;
      border: 1px solid #aaa;
      height: 12px;
      position: relative;
    }

    .bar {
      height: 100%;
      width: 0%;
      transition: width 0.1s linear;
    }

    #bar-ep {
      background-color: orange;
    }

    #bar-ec {
      background-color: green;
    }

    #bar-em {
      background-color: purple;
    }


    #startBtn,
    #exportBtn {
      font-size: 1em;
      padding: 10px 20px;
      background-color: #28a745;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      margin: 10px 0;
    }

    #controls {
      margin: 20px auto;
      padding: 1rem;
      max-width: 600px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Disposition responsive */
    @media screen and (max-width: 768px) {
      .layout {
        flex-direction: column;
        align-items: center;
        gap: 20px;
      }

      .left-panel,
      .right-panel {
        width: 100%;
        max-width: 95%;
      }

      #scene {
        width: 100px;
        margin: 0 auto;
      }

      fieldset {
        width: 100%;
      }

      table {
        font-size: 0.85em;
      }

      .energy-label {
        min-width: auto;
      }

      #btnInstructions {
        width: 100%;
        margin-bottom: 10px;
      }

      #bandeau-bas {
        position: static;
        margin-top: 20px;
      }
    }