/* =========================================================
   CARNETS D'ATELIER
	Nuage de mots
   ========================================================= */
    :root {
      --bg-color: #f8f9fa;
      --card-bg: #ffffff;
      --text-main: #212529;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-main);
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      margin: 0;
      padding: 20px;
    }

    .container {
      background-color: var(--card-bg);
      padding: 40px;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      max-width: 720px;
      width: 100%;
      text-align: center;
    }

    h1 {
      margin-top: 0;
      margin-bottom: 15px;
      font-size: 2.5rem;
      color: #70280d;
    }

    .word-cloud {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 12px 18px;
      line-height: 1.4;
      padding: 20px;
      text-align: center;
    }

    .word-cloud span,
    .word-cloud a {
      display: inline-block;
      transition: transform 0.2s ease, opacity 0.2s ease;
      user-select: none;
    }

    .word-cloud span {
      cursor: default;
    }

    .word-cloud a {
      text-decoration: none;
      cursor: pointer;
    }

    .word-cloud span:hover,
    .word-cloud a:hover {
      transform: scale(1.15);
      z-index: 10;
    }

    /* Tailles proportionnelles à l'importance de la difficulté */
    .size-xl {
      font-size: 2.4rem;
      font-weight: 800;
    }

    .size-l {
      font-size: 1.9rem;
      font-weight: 700;
    }

    .size-m {
      font-size: 1.4rem;
      font-weight: 600;
    }

    .size-s {
      font-size: 1.1rem;
      font-weight: 500;
    }

    .size-xs {
      font-size: 0.85rem;
      font-weight: 400;
      opacity: 0.8;
    }

    /* Nuances */
    .color-1 { color: #111111; }
    .color-2 { color: #7a6666; }
    .color-3 { color: #2d3e54; }
    .color-4 { color: #9c8a8a; }
    .color-5 { color: #9c7070; }
    .color-6 { color: #bbbbbb; }
    .color-7 { color: #918c8c; }

   /* =================
   BOUTON ACCUEIL
   ================= */

.btn-home {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 18px;
  background-color: #dfede6;
  color: #695f5f;
  text-decoration: none;
  font-family:Arial, Helvetica, sans-serif;
  font-size: 14px;
  border-radius: 0px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
  z-index: 1000;
}

.btn-home:hover {
  background-color: #5c5b5b;
}

    /* Adaptation mobile */
    @media (max-width: 600px) {
      .container {
        padding: 25px 15px;
      }

      .word-cloud {
        gap: 10px 12px;
        padding: 15px 5px;
      }

      .size-xl {
        font-size: 1.8rem;
      }

      .size-l {
        font-size: 1.5rem;
      }

      .size-m {
        font-size: 1.2rem;
      }

      .size-s {
        font-size: 1rem;
      }

      .size-xs {
        font-size: 0.8rem;
      }

  }